diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index 1c7f0689c0..0000000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,67 +0,0 @@ -# Update the VARIANT arg in devcontainer.json to pick a Java version >= 17 -ARG VARIANT=17 -FROM openjdk:${VARIANT}-jdk-buster - -# Options for setup script -ARG INSTALL_ZSH="true" -ARG UPGRADE_PACKAGES="false" -ARG USERNAME=vscode -ARG USER_UID=1000 -ARG USER_GID=$USER_UID - -# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies. -COPY library-scripts/*.sh /tmp/library-scripts/ -RUN apt-get update \ - && /bin/bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" \ - && apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts - -# [Optional] Install Maven -ARG INSTALL_MAVEN="false" -ARG MAVEN_VERSION=3.6.3 -ARG MAVEN_DOWNLOAD_SHA="dev-mode" -ENV MAVEN_HOME /usr/share/maven \ - MAVEN_CONFIG /root/.m2 -COPY maven-settings.xml /usr/share/maven/ref/ -RUN if [ "${INSTALL_MAVEN}" = "true" ]; then \ - mkdir -p /usr/share/maven /usr/share/maven/ref \ - && curl -fsSL -o /tmp/apache-maven.tar.gz https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ - && ([ "${MAVEN_DOWNLOAD_SHA}" = "dev-mode" ] || echo "${MAVEN_DOWNLOAD_SHA} */tmp/apache-maven.tar.gz" | sha512sum -c - ) \ - && tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 \ - && rm -f /tmp/apache-maven.tar.gz \ - && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn; \ - fi - -# [Optional] Install Gradle -ARG INSTALL_GRADLE="false" -ARG GRADLE_VERSION=5.4.1 -ARG GRADLE_DOWNLOAD_SHA="dev-mode" -ENV GRADLE_HOME=/opt/gradle -RUN if [ "${INSTALL_GRADLE}" = "true" ]; then \ - curl -sSL --output gradle.zip "https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip" \ - && ([ "${GRADLE_DOWNLOAD_SHA}" = "dev-mode" ] || echo "${GRADLE_DOWNLOAD_SHA} *gradle.zip" | sha256sum --check - ) \ - && unzip gradle.zip \ - && rm gradle.zip \ - && mv "gradle-${GRADLE_VERSION}" "${GRADLE_HOME}/" \ - && ln -s "${GRADLE_HOME}/bin/gradle" /usr/bin/gradle; \ - fi - -# Allow for a consistant java home location for settings - image is changing over time -RUN if [ ! -d "/docker-java-home" ]; then ln -s "${JAVA_HOME}" /docker-java-home; fi - -# [Optional] Install Node.js for use with web applications - update the INSTALL_NODE arg in devcontainer.json to enable. -ARG INSTALL_NODE="false" -ARG NODE_VERSION="lts/*" -ENV NVM_DIR=/usr/local/share/nvm \ - NVM_SYMLINK_CURRENT=true \ - PATH=${NVM_DIR}/current/bin:${PATH} -COPY library-scripts/node-debian.sh /tmp/library-scripts/ -RUN if [ "$INSTALL_NODE" = "true" ]; then \ - /bin/bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "${NODE_VERSION}" "${USERNAME}" \ - && apt-get clean -y && rm -rf /var/lib/apt/lists/*; \ - fi \ - && rm -rf /tmp/library-scripts - -# [Optional] Uncomment this section to install additional OS packages. -# RUN apt-get update \ -# && export DEBIAN_FRONTEND=noninteractive \ -# && apt-get -y install --no-install-recommends \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d2411fa995..2e84b84dc2 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,39 +1,28 @@ { "name": "Java", - "build": { - "dockerfile": "Dockerfile", - "args": { - // Update the VARIANT arg to pick a Java version >= 17 - "VARIANT": "17", - // Options to install Maven or Gradle - "INSTALL_MAVEN": "true", - "MAVEN_VERSION": "3.6.3", - "MAVEN_DOWNLOAD_SHA": "c35a1803a6e70a126e80b2b3ae33eed961f83ed74d18fcd16909b2d44d7dada3203f1ffe726c17ef8dcca2dcaa9fca676987befeadc9b9f759967a8cb77181c0", - "INSTALL_GRADLE": "true", - "GRADLE_VERSION": "5.4.1", - "GRADLE_DOWNLOAD_SHA": "7bdbad1e4f54f13c8a78abc00c26d44dd8709d4aedb704d913fb1bb78ac025dc", - "INSTALL_NODE": "false", - "NODE_VERSION": "lts/*" - } - }, - + "image": "mcr.microsoft.com/devcontainers/java:17-bookworm", // Set *default* container specific settings.json values on container create. - "settings": { + "settings": { "terminal.integrated.shell.linux": "/bin/bash", - "java.home": "/docker-java-home" }, - // Add the IDs of extensions you want installed when the container is created. "extensions": [ "vscjava.vscode-java-pack" - ] - + ], + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": "none", + "installGradle": "true", + "installMaven": "true" + }, + "ghcr.io/devcontainers/features/node:1": { + "version": "latest" + } + } // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. // "postCreateCommand": "java -version", - // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. // "remoteUser": "vscode" -} +} \ No newline at end of file diff --git a/.devcontainer/library-scripts/README.md b/.devcontainer/library-scripts/README.md deleted file mode 100644 index d06dfd1a95..0000000000 --- a/.devcontainer/library-scripts/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Warning: Folder contents may be replaced - -The contents of this folder will be automatically replaced with a file of the same name in the [vscode-dev-containers](https://github.com/microsoft/vscode-dev-containers) repository's [script-library folder](https://github.com/microsoft/vscode-dev-containers/tree/master/script-library) whenever the repository is packaged. - -To retain your edits, move the file to a different location. You may also delete the files if they are not needed. \ No newline at end of file diff --git a/.devcontainer/library-scripts/common-debian.sh b/.devcontainer/library-scripts/common-debian.sh deleted file mode 100755 index ffef7ba2d4..0000000000 --- a/.devcontainer/library-scripts/common-debian.sh +++ /dev/null @@ -1,123 +0,0 @@ -#!/usr/bin/env bash -#------------------------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. -#------------------------------------------------------------------------------------------------------------- - -# Syntax: ./common-debian.sh - -set -e - -INSTALL_ZSH=${1:-"true"} -USERNAME=${2:-"$(awk -v val=1000 -F ":" '$3==val{print $1}' /etc/passwd)"} -USER_UID=${3:-1000} -USER_GID=${4:-1000} -UPGRADE_PACKAGES=${5:-"true"} - -if [ "$(id -u)" -ne 0 ]; then - echo 'Script must be run a root. Use sudo or set "USER root" before running the script.' - exit 1 -fi - -# Treat a user name of "none" as root -if [ "${USERNAME}" = "none" ] || [ "${USERNAME}" = "root" ]; then - USERNAME=root - USER_UID=0 - USER_GID=0 -fi - -# Ensure apt is in non-interactive to avoid prompts -export DEBIAN_FRONTEND=noninteractive - -# Install apt-utils to avoid debconf warning -apt-get -y install --no-install-recommends apt-utils 2> >( grep -v 'debconf: delaying package configuration, since apt-utils is not installed' >&2 ) - -# Get to latest versions of all packages -if [ "${UPGRADE_PACKAGES}" = "true" ]; then - apt-get -y upgrade --no-install-recommends -fi - -# Install common developer tools and dependencies -apt-get -y install --no-install-recommends \ - git \ - openssh-client \ - less \ - iproute2 \ - procps \ - curl \ - wget \ - unzip \ - nano \ - jq \ - lsb-release \ - ca-certificates \ - apt-transport-https \ - dialog \ - gnupg2 \ - libc6 \ - libgcc1 \ - libgssapi-krb5-2 \ - libicu[0-9][0-9] \ - liblttng-ust0 \ - libstdc++6 \ - zlib1g \ - locales - -# Ensure at least the en_US.UTF-8 UTF-8 locale is available. -# Common need for both applications and things like the agnoster ZSH theme. -echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen -locale-gen - -# Install libssl1.1 if available -if [[ ! -z $(apt-cache --names-only search ^libssl1.1$) ]]; then - apt-get -y install --no-install-recommends libssl1.1 -fi - -# Install appropriate version of libssl1.0.x if available -LIBSSL=$(dpkg-query -f '${db:Status-Abbrev}\t${binary:Package}\n' -W 'libssl1\.0\.?' 2>&1 || echo '') -if [ "$(echo "$LIBSSL" | grep -o 'libssl1\.0\.[0-9]:' | uniq | sort | wc -l)" -eq 0 ]; then - if [[ ! -z $(apt-cache --names-only search ^libssl1.0.2$) ]]; then - # Debian 9 - apt-get -y install --no-install-recommends libssl1.0.2 - elif [[ ! -z $(apt-cache --names-only search ^libssl1.0.0$) ]]; then - # Ubuntu 18.04, 16.04, earlier - apt-get -y install --no-install-recommends libssl1.0.0 - fi -fi - -# Create or update a non-root user to match UID/GID - see https://aka.ms/vscode-remote/containers/non-root-user. -if id -u $USERNAME > /dev/null 2>&1; then - # User exists, update if needed - if [ "$USER_GID" != "$(id -G $USERNAME)" ]; then - groupmod --gid $USER_GID $USERNAME - usermod --gid $USER_GID $USERNAME - fi - if [ "$USER_UID" != "$(id -u $USERNAME)" ]; then - usermod --uid $USER_UID $USERNAME - fi -else - # Create user - groupadd --gid $USER_GID $USERNAME - useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME -fi - -# Add add sudo support for non-root user -apt-get install -y sudo -echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME -chmod 0440 /etc/sudoers.d/$USERNAME - -# Ensure ~/.local/bin is in the PATH for root and non-root users for bash. (zsh is later) -echo "export PATH=\$PATH:\$HOME/.local/bin" | tee -a /root/.bashrc >> /home/$USERNAME/.bashrc -chown $USER_UID:$USER_GID /home/$USERNAME/.bashrc - -# Optionally install and configure zsh -if [ "$INSTALL_ZSH" = "true" ] && [ ! -d "/root/.oh-my-zsh" ]; then - apt-get install -y zsh - sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - echo "export PATH=\$PATH:\$HOME/.local/bin" >> /root/.zshrc - cp -R /root/.oh-my-zsh /home/$USERNAME - cp /root/.zshrc /home/$USERNAME - sed -i -e "s/\/root\/.oh-my-zsh/\/home\/$USERNAME\/.oh-my-zsh/g" /home/$USERNAME/.zshrc - chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrc -fi - diff --git a/.devcontainer/library-scripts/node-debian.sh b/.devcontainer/library-scripts/node-debian.sh deleted file mode 100644 index 306fcd0120..0000000000 --- a/.devcontainer/library-scripts/node-debian.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash -#------------------------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. -#------------------------------------------------------------------------------------------------------------- - -# Syntax: ./node-debian.sh - -set -e - -export NVM_DIR=${1:-"/usr/local/share/nvm"} -export NODE_VERSION=${2:-"lts/*"} -NONROOT_USER=${3:-"vscode"} - -if [ "$(id -u)" -ne 0 ]; then - echo 'Script must be run a root. Use sudo or set "USER root" before running the script.' - exit 1 -fi - -# Ensure apt is in non-interactive to avoid prompts -export DEBIAN_FRONTEND=noninteractive - -if [ "${NODE_VERSION}" = "none" ]; then - export NODE_VERSION= -fi - -# Install NVM -mkdir -p ${NVM_DIR} -curl -so- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash 2>&1 -if [ "${NODE_VERSION}" != "" ]; then - /bin/bash -c "source $NVM_DIR/nvm.sh && nvm alias default ${NODE_VERSION}" 2>&1 -fi - -echo -e "export NVM_DIR=\"${NVM_DIR}\"\n\ -[ -s \"\$NVM_DIR/nvm.sh\" ] && \\. \"\$NVM_DIR/nvm.sh\"\n\ -[ -s \"\$NVM_DIR/bash_completion\" ] && \\. \"\$NVM_DIR/bash_completion\"" \ -| tee -a /home/${NONROOT_USER}/.bashrc /home/${NONROOT_USER}/.zshrc >> /root/.zshrc - -echo -e "if [ \"\$(stat -c '%U' \$NVM_DIR)\" != \"${NONROOT_USER}\" ]; then\n\ - sudo chown -R ${NONROOT_USER}:root \$NVM_DIR\n\ -fi" | tee -a /root/.bashrc /root/.zshrc /home/${NONROOT_USER}/.bashrc >> /home/${NONROOT_USER}/.zshrc - -chown ${NONROOT_USER}:${NONROOT_USER} /home/${NONROOT_USER}/.bashrc /home/${NONROOT_USER}/.zshrc -chown -R ${NONROOT_USER}:root ${NVM_DIR} - -# Install yarn -curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - 2>/dev/null -echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list -apt-get update -apt-get -y install --no-install-recommends yarn diff --git a/.devcontainer/maven-settings.xml b/.devcontainer/maven-settings.xml deleted file mode 100644 index 50439abb02..0000000000 --- a/.devcontainer/maven-settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - /usr/share/maven/ref/repository - \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 296bb0d6b4..5661aeae1b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -3,9 +3,17 @@ name: "CodeQL" on: push: branches: [ master ] + paths: + - '**/*.java' + - '**/pom.xml' + - '.github/workflows/codeql-analysis.yml' pull_request: # The branches below must be a subset of the branches above branches: [ master ] + paths: + - '**/*.java' + - '**/pom.xml' + - '.github/workflows/codeql-analysis.yml' schedule: - cron: '37 19 * * 0' @@ -28,15 +36,15 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 with: distribution: 'temurin' java-version: 17.0.x # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4 with: languages: ${{ matrix.language }} @@ -46,4 +54,4 @@ jobs: run: ./mvnw clean package -f "pom.xml" -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Dspotbugs.skip -Denforcer.skip -Dmaven.javadoc.skip -DskipTests -Dmaven.test.skip.exec -Dlicense.skip=true -Drat.skip=true -Dspotless.check.skip=true - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4 diff --git a/.github/workflows/generate-crd.yml b/.github/workflows/generate-crd.yml index 665efabc3d..895423e9cd 100644 --- a/.github/workflows/generate-crd.yml +++ b/.github/workflows/generate-crd.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Run CRD Model Generation run: | read CRD_SRC_ARGS < <(echo '${{ github.event.inputs.crds }}' | perl -ne 'print join " ", map {"-u $_"} split /,/') @@ -48,7 +48,7 @@ jobs: -p ${{ github.event.inputs.generatingJavaPackage }} \ -o "$(pwd)/${GEN_DIR}" ls -lh ${GEN_DIR} - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 with: name: generated-java-crd-model path: | diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 6559065108..56fe64c6c9 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -17,9 +17,15 @@ on: required: true default: false description: If true, skip patching code after generation + skip_proto: + type: boolean + required: false + default: false + description: If true, skip proto generation permissions: contents: read + pull-requests: write jobs: generate: @@ -29,14 +35,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Java - uses: actions/checkout@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + token: ${{ secrets.PAT_TOKEN }} - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 with: distribution: 'temurin' - java-version: 11 + java-version: 17.0.x - name: Checkout Gen - uses: actions/checkout@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: path: gen repository: kubernetes-client/gen @@ -70,17 +78,28 @@ jobs: USE_SINGLE_PARAMETER=true 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: Generate Proto + if: ${{ github.event.inputs.skip_proto != 'true' }} + run: | + pushd gen/proto + # Download proto dependencies for the specified Kubernetes branch + bash dependencies.sh "${{ github.event.inputs.kubernetesBranch }}" + # Generate Java proto classes + bash generate.sh java ../../proto/src/main/java/ + popd + rm -rf gen + git add proto/ + git commit -s -m 'Automated proto 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 . + ls scripts/patches/*.diff | xargs -I {} bash -xc 'patch -p1 < "{}"' + git add *.java git commit -s -m 'Applied patches under scripts/patches/*.diff' - name: Generate Fluent run: | @@ -105,11 +124,11 @@ jobs: git push origin "$BRANCH" - name: Pull Request if: ${{ github.event.inputs.dry_run != 'true' }} - uses: repo-sync/pull-request@v2 + uses: repo-sync/pull-request@7e79a9f5dc3ad0ce53138f01df2fad14a04831c5 # v2 with: source_branch: ${{ env.BRANCH }} destination_branch: ${{ github.ref_name }} - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.PAT_TOKEN }} pr_title: "Automated Generate from openapi ${{ github.event.inputs.kubernetesBranch }}" diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 95cb072de2..e5f1bd4275 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -6,20 +6,34 @@ name: build on: push: branches: [ "master", "master-java8", "release-**" ] + paths: + - '**/*.java' + - '**/pom.xml' + - '.mvn/**' + - 'mvnw' + - 'mvnw.cmd' + - '.github/workflows/maven.yml' pull_request: branches: [ "master", "master-java8", "release-**" ] + paths: + - '**/*.java' + - '**/pom.xml' + - '.mvn/**' + - 'mvnw' + - 'mvnw.cmd' + - '.github/workflows/maven.yml' jobs: verify-format: runs-on: ubuntu-latest name: Verify Source Format steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 with: distribution: 'temurin' - java-version: 11 + java-version: 17 - name: Verify Format and License run: ./mvnw spotless:check build: @@ -30,14 +44,14 @@ jobs: os: [ macos-latest, windows-latest, ubuntu-latest ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 with: distribution: 'temurin' java-version: ${{ matrix.java }} - name: Cache local Maven repository - uses: actions/cache@v4 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ matrix.java }}-${{ hashFiles('pom.xml', '**/pom.xml') }} @@ -55,8 +69,8 @@ jobs: runs-on: ubuntu-latest name: GraalVM Maven Test steps: - - uses: actions/checkout@v4 - - uses: graalvm/setup-graalvm@v1 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + - uses: graalvm/setup-graalvm@60c26726de13f8b90771df4bc1641a52a3159994 # v1 with: version: '22.3.0' java-version: '17' @@ -67,11 +81,11 @@ jobs: runs-on: ubuntu-latest name: End-to-End Test Against Real Cluster steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Create k8s Kind Cluster - uses: helm/kind-action@v1.10.0 + uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 with: distribution: 'temurin' java-version: 17.0.x @@ -92,14 +106,14 @@ jobs: runs-on: ubuntu-latest name: Examples smoke test steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 with: distribution: 'temurin' java-version: 17.0.x - name: Cache local Maven repository - uses: actions/cache@v4 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} @@ -142,9 +156,9 @@ jobs: - 5000:5000 name: CRD Java Models Code Generation steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Publish to Registry - uses: elgohr/Publish-Docker-Github-Action@v5 + uses: elgohr/Publish-Docker-Github-Action@1c2f28ccd9476e8a936ac9a1f287405504c93304 # v5 with: name: kubernetes-client/java/crd-model-gen tags: gh-action-tmp diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 300d399275..7763fbcd07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,11 +6,11 @@ on: releaseVersion: type: string required: true - description: The POM release version of this release. Must be a semantic version of the form X.Y.Z. + description: The POM release version of this release. Must be a semantic version of the form X.Y.Z. (For cutting legacy release, use format X.Y.Z-legacy) nextDevelopmentVersion: type: string required: true - description: The next POM development version after the release is done. Must be of the form X.Y.${Z+1}-SNAPSHOT + description: The next POM development version after the release is done. Must be of the form X.Y.${Z+1}-SNAPSHOT. (For cutting legacy release, use format X.Y.${Z+1}-legacy-SNAPSHOT) dry-run: type: boolean required: true @@ -27,13 +27,15 @@ jobs: 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$/' - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + token: ${{ secrets.PAT_TOKEN }} - name: Check Actor run: | # Release actor should be in the OWNER list cat OWNERS | grep ${{ github.actor }} - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 with: distribution: 'temurin' java-version: 17.0.x @@ -61,7 +63,7 @@ jobs: run: | git checkout -b 'automated-release-${{ github.event.inputs.releaseVersion }}' ./mvnw --batch-mode \ - release:prepare \ + org.apache.maven.plugins:maven-release-plugin:prepare \ -Dtag=v${{ github.event.inputs.releaseVersion }} \ -DconnectionUrl=https://${{ github.token }}@github.com/${{ github.repository }}.git \ -DreleaseVersion=${{ github.event.inputs.releaseVersion }} \ @@ -76,21 +78,28 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSWORD }} run: | # The tests are already executed in the prepare, skipping - ./mvnw -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DlocalCheckout=true -Darguments=-DskipTests release:perform + ./mvnw -s /home/runner/.m2/settings.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DlocalCheckout=true -Darguments=-DskipTests org.apache.maven.plugins:maven-release-plugin:perform + curl -X POST \ + -H "Authorization: Bearer $(echo ${{ secrets.SNAPSHOT_UPLOAD_USER }}:${{ secrets.SNAPSHOT_UPLOAD_PASSWORD }} | base64 -w0)" \ + https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.kubernetes -v git push https://${{ github.token }}@github.com/${{ github.repository }}.git \ automated-release-${{ github.event.inputs.releaseVersion }}:automated-release-${{ github.event.inputs.releaseVersion }} git push https://${{ github.token }}@github.com/${{ github.repository }}.git v${{ github.event.inputs.releaseVersion }} - name: Pull Request if: ${{ github.event.inputs.dry-run != 'true' }} - uses: repo-sync/pull-request@v2 - with: - source_branch: automated-release-${{ github.event.inputs.releaseVersion }} - destination_branch: ${{ github.ref_name }} - github_token: ${{ secrets.GITHUB_TOKEN }} - pr_title: "Automated Release: ${{ github.event.inputs.releaseVersion }}" + env: + GH_TOKEN: ${{ secrets.PAT_TOKEN }} + run: | + gh pr create \ + --base ${{ github.ref_name }} \ + --head automated-release-${{ github.event.inputs.releaseVersion }} \ + --title "Automated Release: ${{ github.event.inputs.releaseVersion }}" \ + --body "" - name: Publish Release if: ${{ github.event.inputs.dry-run != 'true' }} - uses: ncipollo/release-action@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - tag: v${{ github.event.inputs.releaseVersion }} + env: + GH_TOKEN: ${{ secrets.PAT_TOKEN }} + run: | + gh release create v${{ github.event.inputs.releaseVersion }} \ + --title "v${{ github.event.inputs.releaseVersion }}" \ + --generate-notes diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index b8a7c82c1d..52fe249ac5 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -4,6 +4,10 @@ on: push: branches: - master + paths: + - '**/*.java' + - '**/pom.xml' + - '.github/workflows/snapshot.yml' workflow_dispatch: {} permissions: @@ -15,9 +19,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Setup Java - uses: actions/setup-java@v4 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 with: distribution: 'temurin' java-version: 17.0.x diff --git a/.gitignore b/.gitignore index 1c182ed926..4d5f7e7f93 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ hs_err_pid* # generated stuff kubernetes/bin kubernetes/swagger.json.unprocessed +**/*.orig diff --git a/CHANGELOG.md b/CHANGELOG.md index ecdd45fb3e..029cc57119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,150 @@ +# 25.0.0 (November 25, 2025) + +* Features + * Bump Kubernetes API spec to v1.34. + * Add support for v5 of the streaming protocol. ([#3800](https://github.com/kubernetes-client/java/pull/3800)) + * Add terminal resize support in ExecProcess. ([#3801](https://github.com/kubernetes-client/java/pull/3801)) + * Enable reuse of cached informers in SharedInformerFactory. ([#3856](https://github.com/kubernetes-client/java/pull/3856)) + * Add ApiClient integration to ClientBuilder. ([#4152](https://github.com/kubernetes-client/java/pull/4152)) + * Migrate EKS authentication from AWS SDK 1.x to 2.x. ([#4113](https://github.com/kubernetes-client/java/pull/4113)) +* Bugfixes + * Fix missing continue token when building cluster list call. ([#3930](https://github.com/kubernetes-client/java/pull/3930)) + * Fix NPE in KubectlTop when pods are down. ([#4087](https://github.com/kubernetes-client/java/pull/4087)) + * Fix fieldManager parameter in makeClusterCreateCallBuilder. ([#4140](https://github.com/kubernetes-client/java/pull/4140)) + * Fix patch workflow compatibility for Linux environments. ([#4055](https://github.com/kubernetes-client/java/pull/4055)) +* Misc + * Remove unused dependencies (jakarta.ws.rs-api and others). ([#3907](https://github.com/kubernetes-client/java/pull/3907), [#3909](https://github.com/kubernetes-client/java/pull/3909)) + * Refactor to use StandardCharsets. ([#4188](https://github.com/kubernetes-client/java/pull/4188)) + +# 24.0.0 (May 26, 2025) + +* Features + * Bump Kubernetes API spec to v1.33. +* Misc + * API client code regenerated for the Kubernetes 1.33 release cycle. + +# 23.0.0 (February 24, 2025) + +* Features + * Bump Kubernetes API spec to v1.32. +* Misc + * API client code regenerated for the Kubernetes 1.32 release cycle. + +# 22.0.1 (February 12, 2025) + +* Misc + * Regenerate OpenAPI models for upstream Kubernetes 1.31 patch release. + +# 22.0.0 (November 19, 2024) + +* Features + * Bump Kubernetes API spec to v1.31. +* Misc + * API client code regenerated for the Kubernetes 1.31 release cycle. + +# 21.0.1 (July 30, 2024) + +* Misc + * Patch release — dependency and stability updates. + +# 21.0.0 (June 21, 2024) + +* Features + * Bump Kubernetes API spec to v1.30. +* Misc + * API client code regenerated for the Kubernetes 1.30 release cycle. + +# 20.0.1 (March 13, 2024) + +* Misc + * Patch release — bug fixes and dependency updates. + +# 20.0.0 (February 7, 2024) + +* Features + * Bump Kubernetes API spec to v1.29. +* Breaking Changes + * Optional parameters are now consolidated into a single options object, changing the method signatures across the generated API client. ([#3019](https://github.com/kubernetes-client/java/pull/3019)) + * Java 8 support has been removed. Java 11 or later is now required. + * A legacy SDK module is available with the `-legacy` suffix (e.g., `20.0.0-legacy`) for users who prefer the previous interface. + +# 19.0.1 (March 14, 2024) + +* Misc + * Patch release — bug fixes and dependency updates. + +# 19.0.0 (January 10, 2024) + +* Features + * Bump Kubernetes API spec to v1.28. +* Misc + * API client code regenerated for the Kubernetes 1.28 release cycle. + +# 18.0.1 (July 10, 2023) + +* Misc + * Patch release — bug fixes and dependency updates. + +# 18.0.0 (March 3, 2023) + +* Features + * Bump Kubernetes API spec to v1.27. +* Misc + * API client code regenerated for the Kubernetes 1.27 release cycle. + +# 17.0.2 (April 14, 2023) + +* Misc + * Patch release — bug fixes and dependency updates. + +# 17.0.1 (January 31, 2023) + +* Misc + * Patch release — bug fixes and dependency updates. + +# 17.0.0 (December 8, 2022) + +* Features + * Bump Kubernetes API spec to v1.26. + * Add support for v1 exec credentials. +* Misc + * API client code regenerated for the Kubernetes 1.26 release cycle. + * Multiple dependency updates and bug fixes. + +# 16.0.3 (January 31, 2023) + +* Misc + * Patch release — bug fixes and dependency updates. + +# 16.0.2 (November 3, 2022) + +* Bugfixes + * Cherry-picked bug fixes from the main branch. + +# 16.0.1 (October 20, 2022) + +* Bugfixes + * Bump snakeyaml to 1.33 to address security vulnerability. + +# 16.0.0 (June 28, 2022) + +* Features + * Bump Kubernetes API spec to v1.25. +* Misc + * API client code regenerated for the Kubernetes 1.25 release cycle. + +# 15.0.2 (January 30, 2023) + +* Misc + * Patch release — bug fixes and dependency updates. + +# 15.0.0 + +* Features + * Bump Kubernetes API spec to v1.24. +* Misc + * API client code regenerated for the Kubernetes 1.24 release cycle. + # 14.0.0 * Feature diff --git a/README.md b/README.md index 1197eaed15..c294a7fbf0 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ See the wiki page and documentation [here](https://github.com/kubernetes-client/ ## Release -Starting from `20.0.0` (Kubernetes 1.28), `client-java-api` was introduced non-backward-compatible changes. Optional +Starting from `20.0.0` (Kubernetes 1.28), `client-java-api` has introduced non-backward-compatible changes. Optional parameters are now consolidated into a single object, and Java8 support has been removed. For Java8 users or those preferring the old SDK interface, a legacy SDK module version is available with a "-legacy" suffix, like `20.0.0-legacy`. diff --git a/RELEASES.md b/RELEASES.md index 105ff25dce..3cb10eb004 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -60,6 +60,18 @@ will also be packed on the tag. In the end, don't forget to clarify the release notes on the GITHUB release. +### Publish the staging artifacts on Sonatype webconsole + +Login to the following website to browse all the releases under `io.kubernetes` namespace: + +> https://central.sonatype.com/ + +Click into "Publish" -> "Deployments", you will see a list containg all the history releases +as well as the pending release waiting for you to confirm manually and publish. Click the +pending deployment the above github workflow created then click on "Publish" button, and then +the new release should be present in maven central in ~1 day. + + ## One time setup You will need to have the following in place: diff --git a/client-java-contrib/Dockerfile b/client-java-contrib/Dockerfile index 0900e76b07..da2aa77ba2 100644 --- a/client-java-contrib/Dockerfile +++ b/client-java-contrib/Dockerfile @@ -1,4 +1,4 @@ -FROM docker:stable +FROM docker:29 # install git, bash, kind, kubectl and clone the kubernetes-client/gen code base RUN apk add --no-cache git bash && \ diff --git a/client-java-contrib/admissionreview/pom.xml b/client-java-contrib/admissionreview/pom.xml index 60946273b5..151be7aa5f 100644 --- a/client-java-contrib/admissionreview/pom.xml +++ b/client-java-contrib/admissionreview/pom.xml @@ -6,41 +6,30 @@ io.kubernetes client-java-parent - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT ../../pom.xml - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT io.swagger swagger-annotations - - com.google.code.findbugs - jsr305 - + com.google.code.gson gson - javax.annotation - javax.annotation-api + jakarta.annotation + jakarta.annotation-api provided - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - true - - com.diffplug.spotless spotless-maven-plugin @@ -48,6 +37,10 @@ true + + org.apache.maven.plugins + maven-javadoc-plugin + diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionRequest.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionRequest.java index 0d9c5d78f0..e16502b9cf 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionRequest.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionRequest.java @@ -21,7 +21,7 @@ /** AdmissionRequest describes the admission.Attributes for the admission request. */ @ApiModel( description = "AdmissionRequest describes the admission.Attributes for the admission request.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class AdmissionRequest { @@ -112,7 +112,7 @@ public AdmissionRequest dryRun(Boolean dryRun) { * * @return dryRun */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "DryRun indicates that modifications will definitely not be persisted for this request. Defaults to false.") @@ -157,7 +157,7 @@ public AdmissionRequest name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and rely on the server to generate the name. If that is the case, this field will contain an empty string.") @@ -180,7 +180,7 @@ public AdmissionRequest namespace(String namespace) { * * @return namespace */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Namespace is the namespace associated with the request (if any).") public String getNamespace() { return namespace; @@ -201,7 +201,7 @@ public AdmissionRequest _object(Map _object) { * * @return _object */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Map getObject() { return _object; @@ -222,7 +222,7 @@ public AdmissionRequest oldObject(Map oldObject) { * * @return oldObject */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Map getOldObject() { return oldObject; @@ -267,7 +267,7 @@ public AdmissionRequest options(Map options) { * * @return options */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Map getOptions() { return options; @@ -288,7 +288,7 @@ public AdmissionRequest requestKind(GroupVersionKind requestKind) { * * @return requestKind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public GroupVersionKind getRequestKind() { return requestKind; @@ -309,7 +309,7 @@ public AdmissionRequest requestResource(GroupVersionResource requestResource) { * * @return requestResource */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public GroupVersionResource getRequestResource() { return requestResource; @@ -333,7 +333,7 @@ public AdmissionRequest requestSubResource(String requestSubResource) { * * @return requestSubResource */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "RequestSubResource is the name of the subresource of the original API request, if any (for example, \"status\" or \"scale\") If this is specified and differs from the value in \"subResource\", an equivalent match and conversion was performed. See documentation for the \"matchPolicy\" field in the webhook configuration type.") @@ -377,7 +377,7 @@ public AdmissionRequest subResource(String subResource) { * * @return subResource */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "SubResource is the subresource being requested, if any (for example, \"status\" or \"scale\")") diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionResponse.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionResponse.java index fa06ac9de6..bba1cc94fc 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionResponse.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionResponse.java @@ -24,7 +24,7 @@ /** AdmissionResponse describes an admission response. */ @ApiModel(description = "AdmissionResponse describes an admission response.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class AdmissionResponse { @@ -108,7 +108,7 @@ public AdmissionResponse putAuditAnnotationsItem(String key, String auditAnnotat * * @return auditAnnotations */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted). MutatingAdmissionWebhook and ValidatingAdmissionWebhook admission controller will prefix the keys with admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by the admission webhook to add additional context to the audit log for this request.") @@ -131,7 +131,7 @@ public AdmissionResponse patch(byte[] patch) { * * @return patch */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The patch body. Currently we only support \"JSONPatch\" which implements RFC 6902.") public byte[] getPatch() { @@ -153,7 +153,7 @@ public AdmissionResponse patchType(String patchType) { * * @return patchType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "The type of Patch. Currently we only allow \"JSONPatch\".") public String getPatchType() { return patchType; @@ -174,7 +174,7 @@ public AdmissionResponse status(Status status) { * * @return status */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Status getStatus() { return status; @@ -230,7 +230,7 @@ public AdmissionResponse addWarningsItem(String warningsItem) { * * @return warnings */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "warnings is a list of warning messages to return to the requesting API client. Warning messages describe a problem the client making the API request should correct or be aware of. Limit warnings to 120 characters if possible. Warnings over 256 characters and large numbers of warnings may be truncated.") diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionReview.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionReview.java index d9aca69c41..b51d1da11f 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionReview.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/AdmissionReview.java @@ -19,7 +19,7 @@ /** AdmissionReview describes an admission review request/response. */ @ApiModel(description = "AdmissionReview describes an admission review request/response.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class AdmissionReview { @@ -57,7 +57,7 @@ public AdmissionReview apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -83,7 +83,7 @@ public AdmissionReview kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -106,7 +106,7 @@ public AdmissionReview request(AdmissionRequest request) { * * @return request */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public AdmissionRequest getRequest() { return request; @@ -127,7 +127,7 @@ public AdmissionReview response(AdmissionResponse response) { * * @return response */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public AdmissionResponse getResponse() { return response; diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/GroupVersionKind.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/GroupVersionKind.java index 6329259ae0..2cb8fe98c2 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/GroupVersionKind.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/GroupVersionKind.java @@ -24,7 +24,7 @@ @ApiModel( description = "GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class GroupVersionKind { diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/GroupVersionResource.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/GroupVersionResource.java index 746d0262dc..db4f5c2f13 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/GroupVersionResource.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/GroupVersionResource.java @@ -25,7 +25,7 @@ @ApiModel( description = "GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion to avoid automatic coersion. It doesn't use a GroupVersion to avoid custom marshalling") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class GroupVersionResource { diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/ListMeta.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/ListMeta.java index df29a96f22..5608664d67 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/ListMeta.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/ListMeta.java @@ -24,7 +24,7 @@ @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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class ListMeta { @@ -65,7 +65,7 @@ public ListMeta _continue(String _continue) { * * @return _continue */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.") @@ -95,7 +95,7 @@ public ListMeta remainingItemCount(Long remainingItemCount) { * * @return remainingItemCount */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.") @@ -121,7 +121,7 @@ public ListMeta resourceVersion(String resourceVersion) { * * @return resourceVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency") @@ -146,7 +146,7 @@ public ListMeta selfLink(String selfLink) { * * @return selfLink */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.") diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/Status.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/Status.java index 393763dcd3..1ba2a878cf 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/Status.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/Status.java @@ -19,7 +19,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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class Status { @@ -77,7 +77,7 @@ public Status apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -100,7 +100,7 @@ public Status code(Integer code) { * * @return code */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Suggested HTTP return code for this status, 0 if not set.") public Integer getCode() { return code; @@ -121,7 +121,7 @@ public Status details(StatusDetails details) { * * @return details */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public StatusDetails getDetails() { return details; @@ -145,7 +145,7 @@ public Status kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -168,7 +168,7 @@ public Status message(String message) { * * @return message */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "A human-readable description of the status of this operation.") public String getMessage() { return message; @@ -189,7 +189,7 @@ public Status metadata(ListMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public ListMeta getMetadata() { return metadata; @@ -212,7 +212,7 @@ public Status reason(String reason) { * * @return reason */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.") @@ -236,7 +236,7 @@ public Status status(String status) { * * @return status */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/StatusCause.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/StatusCause.java index c5bd7dff50..28a2c497b4 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/StatusCause.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/StatusCause.java @@ -24,7 +24,7 @@ @ApiModel( description = "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class StatusCause { @@ -59,7 +59,7 @@ public StatusCause field(String field) { * * @return field */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\"") @@ -83,7 +83,7 @@ public StatusCause message(String message) { * * @return message */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "A human-readable description of the cause of the error. This field may be presented as-is to a reader.") @@ -107,7 +107,7 @@ public StatusCause reason(String reason) { * * @return reason */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "A machine-readable description of the cause of the error. If this value is empty there is no information available.") diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/StatusDetails.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/StatusDetails.java index b407c9c5e9..b59b1ef2a6 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/StatusDetails.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/StatusDetails.java @@ -28,7 +28,7 @@ @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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class StatusDetails { @@ -82,7 +82,7 @@ public StatusDetails addCausesItem(StatusCause causesItem) { * * @return causes */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.") @@ -105,7 +105,7 @@ public StatusDetails group(String group) { * * @return group */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The group attribute of the resource associated with the status StatusReason.") public String getGroup() { @@ -129,7 +129,7 @@ public StatusDetails kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -153,7 +153,7 @@ public StatusDetails name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).") @@ -178,7 +178,7 @@ public StatusDetails retryAfterSeconds(Integer retryAfterSeconds) { * * @return retryAfterSeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.") @@ -202,7 +202,7 @@ public StatusDetails uid(String uid) { * * @return uid */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids") diff --git a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/UserInfo.java b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/UserInfo.java index ed70aac09f..ae74669099 100644 --- a/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/UserInfo.java +++ b/client-java-contrib/admissionreview/src/main/java/io/kubernetes/client/admissionreview/models/UserInfo.java @@ -25,7 +25,7 @@ @ApiModel( description = "UserInfo holds the information about the user needed to implement the user.Info interface.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-07-01T14:30:02.888Z[Etc/UTC]") public class UserInfo { @@ -68,7 +68,7 @@ public UserInfo putExtraItem(String key, List extraItem) { * * @return extra */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Any additional information provided by the authenticator.") public Map> getExtra() { return extra; @@ -97,7 +97,7 @@ public UserInfo addGroupsItem(String groupsItem) { * * @return groups */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "The names of groups this user is a part of.") public List getGroups() { return groups; @@ -119,7 +119,7 @@ public UserInfo uid(String uid) { * * @return uid */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.") @@ -142,7 +142,7 @@ public UserInfo username(String username) { * * @return username */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "The name that uniquely identifies this user among all active users.") public String getUsername() { return username; diff --git a/client-java-contrib/cert-manager/pom.xml b/client-java-contrib/cert-manager/pom.xml index d399457845..b37c24a93e 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 - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT ../../pom.xml - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT io.kubernetes @@ -21,14 +21,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - true - - com.diffplug.spotless spotless-maven-plugin @@ -36,6 +28,10 @@ true + + org.apache.maven.plugins + maven-javadoc-plugin + diff --git a/client-java-contrib/prometheus-operator/pom.xml b/client-java-contrib/prometheus-operator/pom.xml index 2a29a97e63..3aac8a8131 100644 --- a/client-java-contrib/prometheus-operator/pom.xml +++ b/client-java-contrib/prometheus-operator/pom.xml @@ -3,14 +3,19 @@ client-java-parent io.kubernetes - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT ../../pom.xml 4.0.0 + prometheus-operator-models client-java-prometheus-operator-models - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT + + jakarta.annotation + jakarta.annotation-api + io.kubernetes client-java @@ -20,14 +25,6 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - true - - com.diffplug.spotless spotless-maven-plugin @@ -35,6 +32,10 @@ true + + org.apache.maven.plugins + maven-javadoc-plugin + diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1Alertmanager.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1Alertmanager.java index 0e1a892943..38135819cb 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1Alertmanager.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1Alertmanager.java @@ -20,7 +20,7 @@ /** Alertmanager describes an Alertmanager cluster. */ @ApiModel(description = "Alertmanager describes an Alertmanager cluster.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1Alertmanager implements io.kubernetes.client.common.KubernetesObject { @@ -63,7 +63,7 @@ public V1Alertmanager apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -89,7 +89,7 @@ public V1Alertmanager kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -112,7 +112,7 @@ public V1Alertmanager metadata(V1ObjectMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; @@ -153,7 +153,7 @@ public V1Alertmanager status(V1AlertmanagerStatus status) { * * @return status */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AlertmanagerStatus getStatus() { return status; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerList.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerList.java index e5c7f5d6cf..a0e259423f 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerList.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerList.java @@ -22,7 +22,7 @@ /** AlertmanagerList is a list of Alertmanager */ @ApiModel(description = "AlertmanagerList is a list of Alertmanager") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1AlertmanagerList implements io.kubernetes.client.common.KubernetesListObject { @@ -60,7 +60,7 @@ public V1AlertmanagerList apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -115,7 +115,7 @@ public V1AlertmanagerList kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -138,7 +138,7 @@ public V1AlertmanagerList metadata(V1ListMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpec.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpec.java index 5fa45cb0ac..3b1cf69743 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpec.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpec.java @@ -28,7 +28,7 @@ @ApiModel( description = "Specification of the desired behavior of the Alertmanager cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1AlertmanagerSpec { @@ -212,7 +212,7 @@ public V1AlertmanagerSpec addAdditionalPeersItem(String additionalPeersItem) { * * @return additionalPeers */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "AdditionalPeers allows injecting a set of additional Alertmanagers to peer with to form a highly available cluster.") @@ -235,7 +235,7 @@ public V1AlertmanagerSpec affinity(V1ThanosRulerSpecAffinity affinity) { * * @return affinity */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAffinity getAffinity() { return affinity; @@ -256,7 +256,7 @@ public V1AlertmanagerSpec baseImage(String baseImage) { * * @return baseImage */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Base image that is used to deploy pods, without tag.") public String getBaseImage() { return baseImage; @@ -287,7 +287,7 @@ public V1AlertmanagerSpec addConfigMapsItem(String configMapsItem) { * * @return configMaps */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ConfigMaps is a list of ConfigMaps in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods. The ConfigMaps are mounted into /etc/alertmanager/configmaps/.") @@ -313,7 +313,7 @@ public V1AlertmanagerSpec configSecret(String configSecret) { * * @return configSecret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ConfigSecret is the name of a Kubernetes Secret in the same namespace as the Alertmanager object, which contains configuration for this Alertmanager instance. Defaults to 'alertmanager-' The secret is mounted into /etc/alertmanager/config.") @@ -345,7 +345,7 @@ public V1AlertmanagerSpec addContainersItem(V1ThanosRulerSpecContainers containe * * @return containers */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Containers allows injecting additional containers. This is meant to allow adding an authentication proxy to an Alertmanager pod.") @@ -369,7 +369,7 @@ public V1AlertmanagerSpec externalUrl(String externalUrl) { * * @return externalUrl */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The external URL the Alertmanager instances will be available under. This is necessary to generate correct URLs. This is necessary if Alertmanager is not served from root of a DNS name.") @@ -394,7 +394,7 @@ public V1AlertmanagerSpec image(String image) { * * @return image */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Image if specified has precedence over baseImage, tag and sha combinations. Specifying the version is still necessary to ensure the Prometheus Operator knows what version of Alertmanager is being configured.") @@ -429,7 +429,7 @@ public V1AlertmanagerSpec addImagePullSecretsItem( * * @return imagePullSecrets */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "An optional list of references to secrets in the same namespace to use for pulling prometheus and alertmanager images from registries see https://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod") @@ -466,7 +466,7 @@ public V1AlertmanagerSpec addInitContainersItem(V1ThanosRulerSpecContainers init * * @return initContainers */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "InitContainers allows adding initContainers to the pod definition. Those can be used to e.g. fetch secrets for injection into the Alertmanager configuration from external sources. Any errors during the execution of an initContainer will lead to a restart of the Pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ Using initContainers for any use case other then secret fetching is entirely outside the scope of what the maintainers will support and by doing so, you accept that this behaviour may break at any time without notice.") @@ -490,7 +490,7 @@ public V1AlertmanagerSpec listenLocal(Boolean listenLocal) { * * @return listenLocal */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ListenLocal makes the Alertmanager server listen on loopback, so that it does not bind against the Pod IP. Note this is only for the Alertmanager UI, not the gossip communication.") @@ -513,7 +513,7 @@ public V1AlertmanagerSpec logFormat(String logFormat) { * * @return logFormat */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Log format for Alertmanager to be configured with.") public String getLogFormat() { return logFormat; @@ -534,7 +534,7 @@ public V1AlertmanagerSpec logLevel(String logLevel) { * * @return logLevel */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Log level for Alertmanager to be configured with.") public String getLogLevel() { return logLevel; @@ -563,7 +563,7 @@ public V1AlertmanagerSpec putNodeSelectorItem(String key, String nodeSelectorIte * * @return nodeSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Define which Nodes the Pods are scheduled on.") public Map getNodeSelector() { return nodeSelector; @@ -585,7 +585,7 @@ public V1AlertmanagerSpec paused(Boolean paused) { * * @return paused */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "If set to true all actions on the underlaying managed objects are not goint to be performed, except for delete actions.") @@ -608,7 +608,7 @@ public V1AlertmanagerSpec podMetadata(V1AlertmanagerSpecPodMetadata podMetadata) * * @return podMetadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AlertmanagerSpecPodMetadata getPodMetadata() { return podMetadata; @@ -629,7 +629,7 @@ public V1AlertmanagerSpec portName(String portName) { * * @return portName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Port name used for the pods and governing service. This defaults to web") public String getPortName() { @@ -651,7 +651,7 @@ public V1AlertmanagerSpec priorityClassName(String priorityClassName) { * * @return priorityClassName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Priority class assigned to the Pods") public String getPriorityClassName() { return priorityClassName; @@ -673,7 +673,7 @@ public V1AlertmanagerSpec replicas(Integer replicas) { * * @return replicas */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Size is the expected size of the alertmanager cluster. The controller will eventually make the size of the running cluster equal to the expected size.") @@ -696,7 +696,7 @@ public V1AlertmanagerSpec resources(V1AlertmanagerSpecResources resources) { * * @return resources */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AlertmanagerSpecResources getResources() { return resources; @@ -718,7 +718,7 @@ public V1AlertmanagerSpec retention(String retention) { * * @return retention */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Time duration Alertmanager shall retain data for. Default is '120h', and must match the regular expression `[0-9]+(ms|s|m|h)` (milliseconds seconds minutes hours).") @@ -744,7 +744,7 @@ public V1AlertmanagerSpec routePrefix(String routePrefix) { * * @return routePrefix */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The route prefix Alertmanager registers HTTP handlers for. This is useful, if using ExternalURL and a proxy is rewriting HTTP routes of a request, and the actual ExternalURL is still true, but the server serves requests under a different route prefix. For example for use with `kubectl proxy`.") @@ -777,7 +777,7 @@ public V1AlertmanagerSpec addSecretsItem(String secretsItem) { * * @return secrets */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Secrets is a list of Secrets in the same namespace as the Alertmanager object, which shall be mounted into the Alertmanager Pods. The Secrets are mounted into /etc/alertmanager/secrets/.") @@ -800,7 +800,7 @@ public V1AlertmanagerSpec securityContext(V1ThanosRulerSpecSecurityContext1 secu * * @return securityContext */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecurityContext1 getSecurityContext() { return securityContext; @@ -821,7 +821,7 @@ public V1AlertmanagerSpec serviceAccountName(String serviceAccountName) { * * @return serviceAccountName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ServiceAccountName is the name of the ServiceAccount to use to run the Prometheus Pods.") @@ -846,7 +846,7 @@ public V1AlertmanagerSpec sha(String sha) { * * @return sha */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "SHA of Alertmanager container image to be deployed. Defaults to the value of `version`. Similar to a tag, but the SHA explicitly deploys an immutable container image. Version and Tag are ignored if SHA is set.") @@ -869,7 +869,7 @@ public V1AlertmanagerSpec storage(V1AlertmanagerSpecStorage storage) { * * @return storage */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AlertmanagerSpecStorage getStorage() { return storage; @@ -891,7 +891,7 @@ public V1AlertmanagerSpec tag(String tag) { * * @return tag */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Tag of Alertmanager container image to be deployed. Defaults to the value of `version`. Version is ignored if Tag is set.") @@ -922,7 +922,7 @@ public V1AlertmanagerSpec addTolerationsItem(V1ThanosRulerSpecTolerations tolera * * @return tolerations */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the pod's tolerations.") public List getTolerations() { return tolerations; @@ -943,7 +943,7 @@ public V1AlertmanagerSpec version(String version) { * * @return version */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Version the cluster should be on.") public String getVersion() { return version; @@ -974,7 +974,7 @@ public V1AlertmanagerSpec addVolumeMountsItem(V1ThanosRulerSpecVolumeMounts volu * * @return volumeMounts */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "VolumeMounts allows configuration of additional VolumeMounts on the output StatefulSet definition. VolumeMounts specified will be appended to other VolumeMounts in the alertmanager container, that are generated as a result of StorageSpec objects.") @@ -1007,7 +1007,7 @@ public V1AlertmanagerSpec addVolumesItem(V1ThanosRulerSpecVolumes volumesItem) { * * @return volumes */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Volumes allows configuration of additional volumes on the output StatefulSet definition. Volumes specified will be appended to other volumes that are generated as a result of StorageSpec objects.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecPodMetadata.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecPodMetadata.java index ad9aa5f8ee..fb085f3f0a 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecPodMetadata.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecPodMetadata.java @@ -23,7 +23,7 @@ @ApiModel( description = "PodMetadata configures Labels and Annotations which are propagated to the alertmanager pods.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1AlertmanagerSpecPodMetadata { @@ -58,7 +58,7 @@ public V1AlertmanagerSpecPodMetadata putAnnotationsItem(String key, String annot * * @return annotations */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations") @@ -91,7 +91,7 @@ public V1AlertmanagerSpecPodMetadata putLabelsItem(String key, String labelsItem * * @return labels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/user-guide/labels") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecResources.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecResources.java index cf4e53adad..aee6df9acf 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecResources.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecResources.java @@ -21,7 +21,7 @@ /** Define resources requests and limits for single Pods. */ @ApiModel(description = "Define resources requests and limits for single Pods.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1AlertmanagerSpecResources { @@ -55,7 +55,7 @@ public V1AlertmanagerSpecResources putLimitsItem(String key, String limitsItem) * * @return limits */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") @@ -89,7 +89,7 @@ public V1AlertmanagerSpecResources putRequestsItem(String key, String requestsIt * * @return requests */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecStorage.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecStorage.java index 41fda26246..cb59596ed2 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecStorage.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerSpecStorage.java @@ -21,7 +21,7 @@ @ApiModel( description = "Storage is the definition of how storage will be used by the Alertmanager instances.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1AlertmanagerSpecStorage { @@ -46,7 +46,7 @@ public V1AlertmanagerSpecStorage emptyDir(V1ThanosRulerSpecStorageEmptyDir empty * * @return emptyDir */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageEmptyDir getEmptyDir() { return emptyDir; @@ -68,7 +68,7 @@ public V1AlertmanagerSpecStorage volumeClaimTemplate( * * @return volumeClaimTemplate */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageVolumeClaimTemplate getVolumeClaimTemplate() { return volumeClaimTemplate; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerStatus.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerStatus.java index 1bf6c97ffd..c07912cdc9 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerStatus.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1AlertmanagerStatus.java @@ -25,7 +25,7 @@ @ApiModel( description = "Most recent observed status of the Alertmanager cluster. Read-only. Not included when requesting from the apiserver, only from the Prometheus Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1AlertmanagerStatus { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitor.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitor.java index 41023a152b..dafc436499 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitor.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitor.java @@ -20,7 +20,7 @@ /** PodMonitor defines monitoring for a set of pods. */ @ApiModel(description = "PodMonitor defines monitoring for a set of pods.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PodMonitor implements io.kubernetes.client.common.KubernetesObject { @@ -58,7 +58,7 @@ public V1PodMonitor apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -84,7 +84,7 @@ public V1PodMonitor kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -107,7 +107,7 @@ public V1PodMonitor metadata(V1ObjectMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorList.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorList.java index 368bdd09f7..fa262a8fb7 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorList.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorList.java @@ -22,7 +22,7 @@ /** PodMonitorList is a list of PodMonitor */ @ApiModel(description = "PodMonitorList is a list of PodMonitor") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PodMonitorList implements io.kubernetes.client.common.KubernetesListObject { @@ -60,7 +60,7 @@ public V1PodMonitorList apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -115,7 +115,7 @@ public V1PodMonitorList kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -138,7 +138,7 @@ public V1PodMonitorList metadata(V1ListMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpec.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpec.java index 9ec63ac076..dd6c7d72b5 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpec.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpec.java @@ -22,7 +22,7 @@ /** Specification of desired Pod selection for target discovery by Prometheus. */ @ApiModel( description = "Specification of desired Pod selection for target discovery by Prometheus.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PodMonitorSpec { @@ -68,7 +68,7 @@ public V1PodMonitorSpec jobLabel(String jobLabel) { * * @return jobLabel */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "The label to use to retrieve the job name from.") public String getJobLabel() { return jobLabel; @@ -90,7 +90,7 @@ public V1PodMonitorSpec namespaceSelector( * * @return namespaceSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecNamespaceSelector getNamespaceSelector() { return namespaceSelector; @@ -149,7 +149,7 @@ public V1PodMonitorSpec addPodTargetLabelsItem(String podTargetLabelsItem) { * * @return podTargetLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "PodTargetLabels transfers labels on the Kubernetes Pod onto the target.") public List getPodTargetLabels() { @@ -171,7 +171,7 @@ public V1PodMonitorSpec sampleLimit(Long sampleLimit) { * * @return sampleLimit */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpecPodMetricsEndpoints.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpecPodMetricsEndpoints.java index 32956ce769..680aacbddd 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpecPodMetricsEndpoints.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpecPodMetricsEndpoints.java @@ -27,7 +27,7 @@ @ApiModel( description = "PodMetricsEndpoint defines a scrapeable endpoint of a Kubernetes Pod serving Prometheus metrics.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PodMonitorSpecPodMetricsEndpoints { @@ -102,7 +102,7 @@ public V1PodMonitorSpecPodMetricsEndpoints honorLabels(Boolean honorLabels) { * * @return honorLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "HonorLabels chooses the metric's labels on collisions with target labels.") public Boolean getHonorLabels() { @@ -124,7 +124,7 @@ public V1PodMonitorSpecPodMetricsEndpoints honorTimestamps(Boolean honorTimestam * * @return honorTimestamps */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "HonorTimestamps controls whether Prometheus respects the timestamps present in scraped data.") @@ -147,7 +147,7 @@ public V1PodMonitorSpecPodMetricsEndpoints interval(String interval) { * * @return interval */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Interval at which metrics should be scraped") public String getInterval() { return interval; @@ -178,7 +178,7 @@ public V1PodMonitorSpecPodMetricsEndpoints addMetricRelabelingsItem( * * @return metricRelabelings */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "MetricRelabelConfigs to apply to samples before ingestion.") public List getMetricRelabelings() { return metricRelabelings; @@ -207,7 +207,7 @@ public V1PodMonitorSpecPodMetricsEndpoints putParamsItem(String key, List> getParams() { return params; @@ -228,7 +228,7 @@ public V1PodMonitorSpecPodMetricsEndpoints path(String path) { * * @return path */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "HTTP path to scrape for metrics.") public String getPath() { return path; @@ -249,7 +249,7 @@ public V1PodMonitorSpecPodMetricsEndpoints port(String port) { * * @return port */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the pod port this endpoint refers to. Mutually exclusive with targetPort.") public String getPort() { @@ -271,7 +271,7 @@ public V1PodMonitorSpecPodMetricsEndpoints proxyUrl(String proxyUrl) { * * @return proxyUrl */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ProxyURL eg http://proxyserver:2195 Directs scrapes to proxy through this endpoint.") public String getProxyUrl() { @@ -304,7 +304,7 @@ public V1PodMonitorSpecPodMetricsEndpoints addRelabelingsItem( * * @return relabelings */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "RelabelConfigs to apply to samples before ingestion. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config") @@ -327,7 +327,7 @@ public V1PodMonitorSpecPodMetricsEndpoints scheme(String scheme) { * * @return scheme */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "HTTP scheme to use for scraping.") public String getScheme() { return scheme; @@ -348,7 +348,7 @@ public V1PodMonitorSpecPodMetricsEndpoints scrapeTimeout(String scrapeTimeout) { * * @return scrapeTimeout */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Timeout after which the scrape is ended") public String getScrapeTimeout() { return scrapeTimeout; @@ -369,7 +369,7 @@ public V1PodMonitorSpecPodMetricsEndpoints targetPort(Object targetPort) { * * @return targetPort */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Deprecated: Use 'port' instead.") public Object getTargetPort() { return targetPort; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpecSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpecSelector.java index deb04bae0b..b62c66919f 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpecSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PodMonitorSpecSelector.java @@ -23,7 +23,7 @@ /** Selector to select Pod objects. */ @ApiModel(description = "Selector to select Pod objects.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PodMonitorSpecSelector { @@ -58,7 +58,7 @@ public V1PodMonitorSpecSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -93,7 +93,7 @@ public V1PodMonitorSpecSelector putMatchLabelsItem(String key, String matchLabel * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1Prometheus.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1Prometheus.java index b45441b59a..4b76a69993 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1Prometheus.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1Prometheus.java @@ -20,7 +20,7 @@ /** Prometheus defines a Prometheus deployment. */ @ApiModel(description = "Prometheus defines a Prometheus deployment.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1Prometheus implements io.kubernetes.client.common.KubernetesObject { @@ -63,7 +63,7 @@ public V1Prometheus apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -89,7 +89,7 @@ public V1Prometheus kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -112,7 +112,7 @@ public V1Prometheus metadata(V1ObjectMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; @@ -153,7 +153,7 @@ public V1Prometheus status(V1PrometheusStatus status) { * * @return status */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusStatus getStatus() { return status; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusList.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusList.java index 4f1d1fb7a1..ab78da1a83 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusList.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusList.java @@ -22,7 +22,7 @@ /** PrometheusList is a list of Prometheus */ @ApiModel(description = "PrometheusList is a list of Prometheus") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusList implements io.kubernetes.client.common.KubernetesListObject { @@ -60,7 +60,7 @@ public V1PrometheusList apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -115,7 +115,7 @@ public V1PrometheusList kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -138,7 +138,7 @@ public V1PrometheusList metadata(V1ListMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRule.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRule.java index 6549aead9d..df0bcbea96 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRule.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRule.java @@ -20,7 +20,7 @@ /** PrometheusRule defines alerting rules for a Prometheus instance */ @ApiModel(description = "PrometheusRule defines alerting rules for a Prometheus instance") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusRule implements io.kubernetes.client.common.KubernetesObject { @@ -58,7 +58,7 @@ public V1PrometheusRule apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -84,7 +84,7 @@ public V1PrometheusRule kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -107,7 +107,7 @@ public V1PrometheusRule metadata(V1ObjectMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleList.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleList.java index d0dbf7e943..034e2d6dbb 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleList.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleList.java @@ -22,7 +22,7 @@ /** PrometheusRuleList is a list of PrometheusRule */ @ApiModel(description = "PrometheusRuleList is a list of PrometheusRule") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusRuleList implements io.kubernetes.client.common.KubernetesListObject { @@ -60,7 +60,7 @@ public V1PrometheusRuleList apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -115,7 +115,7 @@ public V1PrometheusRuleList kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -138,7 +138,7 @@ public V1PrometheusRuleList metadata(V1ListMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpec.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpec.java index 86450c9a8b..ba1fbcb37e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpec.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpec.java @@ -21,7 +21,7 @@ /** Specification of desired alerting rule definitions for Prometheus. */ @ApiModel(description = "Specification of desired alerting rule definitions for Prometheus.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusRuleSpec { @@ -49,7 +49,7 @@ public V1PrometheusRuleSpec addGroupsItem(V1PrometheusRuleSpecGroups groupsItem) * * @return groups */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Content of Prometheus rule file") public List getGroups() { return groups; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpecGroups.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpecGroups.java index e10cb37f2a..366eceaf10 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpecGroups.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpecGroups.java @@ -28,7 +28,7 @@ @ApiModel( description = "RuleGroup is a list of sequentially evaluated recording and alerting rules. Note: PartialResponseStrategy is only used by ThanosRuler and will be ignored by Prometheus instances. Valid values for this field are 'warn' or 'abort'. More info: https://github.com/thanos-io/thanos/blob/master/docs/components/rule.md#partial-response") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusRuleSpecGroups { @@ -64,7 +64,7 @@ public V1PrometheusRuleSpecGroups interval(String interval) { * * @return interval */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getInterval() { return interval; @@ -105,7 +105,7 @@ public V1PrometheusRuleSpecGroups partialResponseStrategy(String partialResponse * * @return partialResponseStrategy */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getPartialResponseStrategy() { return partialResponseStrategy; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpecRules.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpecRules.java index 5ba6e01ae3..28ce759dc2 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpecRules.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusRuleSpecRules.java @@ -21,7 +21,7 @@ /** Rule describes an alerting or recording rule. */ @ApiModel(description = "Rule describes an alerting or recording rule.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusRuleSpecRules { @@ -66,7 +66,7 @@ public V1PrometheusRuleSpecRules alert(String alert) { * * @return alert */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getAlert() { return alert; @@ -95,7 +95,7 @@ public V1PrometheusRuleSpecRules putAnnotationsItem(String key, String annotatio * * @return annotations */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Map getAnnotations() { return annotations; @@ -136,7 +136,7 @@ public V1PrometheusRuleSpecRules _for(String _for) { * * @return _for */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getFor() { return _for; @@ -165,7 +165,7 @@ public V1PrometheusRuleSpecRules putLabelsItem(String key, String labelsItem) { * * @return labels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Map getLabels() { return labels; @@ -186,7 +186,7 @@ public V1PrometheusRuleSpecRules record(String record) { * * @return record */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public String getRecord() { return record; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpec.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpec.java index 9f6a03310c..d86522e641 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpec.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpec.java @@ -28,7 +28,7 @@ @ApiModel( description = "Specification of the desired behavior of the Prometheus cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpec { @@ -352,7 +352,7 @@ public V1PrometheusSpec additionalAlertManagerConfigs( * * @return additionalAlertManagerConfigs */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecAdditionalAlertManagerConfigs getAdditionalAlertManagerConfigs() { return additionalAlertManagerConfigs; @@ -375,7 +375,7 @@ public V1PrometheusSpec additionalAlertRelabelConfigs( * * @return additionalAlertRelabelConfigs */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecAdditionalAlertRelabelConfigs getAdditionalAlertRelabelConfigs() { return additionalAlertRelabelConfigs; @@ -398,7 +398,7 @@ public V1PrometheusSpec additionalScrapeConfigs( * * @return additionalScrapeConfigs */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecAdditionalScrapeConfigs getAdditionalScrapeConfigs() { return additionalScrapeConfigs; @@ -420,7 +420,7 @@ public V1PrometheusSpec affinity(V1ThanosRulerSpecAffinity affinity) { * * @return affinity */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAffinity getAffinity() { return affinity; @@ -441,7 +441,7 @@ public V1PrometheusSpec alerting(V1PrometheusSpecAlerting alerting) { * * @return alerting */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecAlerting getAlerting() { return alerting; @@ -462,7 +462,7 @@ public V1PrometheusSpec apiserverConfig(V1PrometheusSpecApiserverConfig apiserve * * @return apiserverConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecApiserverConfig getApiserverConfig() { return apiserverConfig; @@ -484,7 +484,7 @@ public V1PrometheusSpec arbitraryFSAccessThroughSMs( * * @return arbitraryFSAccessThroughSMs */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecArbitraryFSAccessThroughSMs getArbitraryFSAccessThroughSMs() { return arbitraryFSAccessThroughSMs; @@ -506,7 +506,7 @@ public V1PrometheusSpec baseImage(String baseImage) { * * @return baseImage */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Base image to use for a Prometheus deployment.") public String getBaseImage() { return baseImage; @@ -537,7 +537,7 @@ public V1PrometheusSpec addConfigMapsItem(String configMapsItem) { * * @return configMaps */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ConfigMaps is a list of ConfigMaps in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods. The ConfigMaps are mounted into /etc/prometheus/configmaps/.") @@ -576,7 +576,7 @@ public V1PrometheusSpec addContainersItem(V1ThanosRulerSpecContainers containers * * @return containers */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Containers allows injecting additional containers or modifying operator generated containers. This can be used to allow adding an authentication proxy to a Prometheus pod or to change the behavior of an operator generated container. Containers described here modify an operator generated container if they share the same name and modifications are done via a strategic merge patch. The current container names are: `prometheus`, `prometheus-config-reloader`, `rules-configmap-reloader`, and `thanos-sidecar`. Overriding containers is entirely outside the scope of what the maintainers will support and by doing so, you accept that this behaviour may break at any time without notice.") @@ -599,7 +599,7 @@ public V1PrometheusSpec disableCompaction(Boolean disableCompaction) { * * @return disableCompaction */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Disable prometheus compaction.") public Boolean getDisableCompaction() { return disableCompaction; @@ -625,7 +625,7 @@ public V1PrometheusSpec enableAdminAPI(Boolean enableAdminAPI) { * * @return enableAdminAPI */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Enable access to prometheus web admin API. Defaults to the value of `false`. WARNING: Enabling the admin APIs enables mutating endpoints, to delete data, shutdown Prometheus, and more. Enabling this should be done with care and the user is advised to add additional authentication authorization via a proxy to ensure only clients authorized to perform these actions can do so. For more information see https://prometheus.io/docs/prometheus/latest/querying/api/#tsdb-admin-apis") @@ -650,7 +650,7 @@ public V1PrometheusSpec enforcedNamespaceLabel(String enforcedNamespaceLabel) { * * @return enforcedNamespaceLabel */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "EnforcedNamespaceLabel enforces adding a namespace label of origin for each alert and metric that is user created. The label value will always be the namespace of the object that is being created.") @@ -673,7 +673,7 @@ public V1PrometheusSpec evaluationInterval(String evaluationInterval) { * * @return evaluationInterval */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Interval between consecutive evaluations.") public String getEvaluationInterval() { return evaluationInterval; @@ -703,7 +703,7 @@ public V1PrometheusSpec putExternalLabelsItem(String key, String externalLabelsI * * @return externalLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The labels to add to any time series or alerts when communicating with external systems (federation, remote storage, Alertmanager).") @@ -727,7 +727,7 @@ public V1PrometheusSpec externalUrl(String externalUrl) { * * @return externalUrl */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The external URL the Prometheus instances will be available under. This is necessary to generate correct URLs. This is necessary if Prometheus is not served from root of a DNS name.") @@ -752,7 +752,7 @@ public V1PrometheusSpec ignoreNamespaceSelectors(Boolean ignoreNamespaceSelector * * @return ignoreNamespaceSelectors */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "IgnoreNamespaceSelectors if set to true will ignore NamespaceSelector settings from the podmonitor and servicemonitor configs, and they will only discover endpoints within their current namespace. Defaults to false.") @@ -777,7 +777,7 @@ public V1PrometheusSpec image(String image) { * * @return image */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Image if specified has precedence over baseImage, tag and sha combinations. Specifying the version is still necessary to ensure the Prometheus Operator knows what version of Prometheus is being configured.") @@ -812,7 +812,7 @@ public V1PrometheusSpec addImagePullSecretsItem( * * @return imagePullSecrets */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "An optional list of references to secrets in the same namespace to use for pulling prometheus and alertmanager images from registries see https://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod") @@ -849,7 +849,7 @@ public V1PrometheusSpec addInitContainersItem(V1ThanosRulerSpecContainers initCo * * @return initContainers */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "InitContainers allows adding initContainers to the pod definition. Those can be used to e.g. fetch secrets for injection into the Prometheus configuration from external sources. Any errors during the execution of an initContainer will lead to a restart of the Pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ Using initContainers for any use case other then secret fetching is entirely outside the scope of what the maintainers will support and by doing so, you accept that this behaviour may break at any time without notice.") @@ -873,7 +873,7 @@ public V1PrometheusSpec listenLocal(Boolean listenLocal) { * * @return listenLocal */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ListenLocal makes the Prometheus server listen on loopback, so that it does not bind against the Pod IP.") @@ -896,7 +896,7 @@ public V1PrometheusSpec logFormat(String logFormat) { * * @return logFormat */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Log format for Prometheus to be configured with.") public String getLogFormat() { return logFormat; @@ -917,7 +917,7 @@ public V1PrometheusSpec logLevel(String logLevel) { * * @return logLevel */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Log level for Prometheus to be configured with.") public String getLogLevel() { return logLevel; @@ -946,7 +946,7 @@ public V1PrometheusSpec putNodeSelectorItem(String key, String nodeSelectorItem) * * @return nodeSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Define which Nodes the Pods are scheduled on.") public Map getNodeSelector() { return nodeSelector; @@ -968,7 +968,7 @@ public V1PrometheusSpec overrideHonorLabels(Boolean overrideHonorLabels) { * * @return overrideHonorLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "OverrideHonorLabels if set to true overrides all user configured honor_labels. If HonorLabels is set in ServiceMonitor or PodMonitor to true, this overrides honor_labels to false.") @@ -991,7 +991,7 @@ public V1PrometheusSpec overrideHonorTimestamps(Boolean overrideHonorTimestamps) * * @return overrideHonorTimestamps */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "OverrideHonorTimestamps allows to globally enforce honoring timestamps in all scrape configs.") @@ -1015,7 +1015,7 @@ public V1PrometheusSpec paused(Boolean paused) { * * @return paused */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "When a Prometheus deployment is paused, no actions except for deletion will be performed on the underlying objects.") @@ -1038,7 +1038,7 @@ public V1PrometheusSpec podMetadata(V1PrometheusSpecPodMetadata podMetadata) { * * @return podMetadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecPodMetadata getPodMetadata() { return podMetadata; @@ -1060,7 +1060,7 @@ public V1PrometheusSpec podMonitorNamespaceSelector( * * @return podMonitorNamespaceSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecPodMonitorNamespaceSelector getPodMonitorNamespaceSelector() { return podMonitorNamespaceSelector; @@ -1083,7 +1083,7 @@ public V1PrometheusSpec podMonitorSelector( * * @return podMonitorSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecPodMonitorSelector getPodMonitorSelector() { return podMonitorSelector; @@ -1104,7 +1104,7 @@ public V1PrometheusSpec portName(String portName) { * * @return portName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Port name used for the pods and governing service. This defaults to web") public String getPortName() { @@ -1126,7 +1126,7 @@ public V1PrometheusSpec priorityClassName(String priorityClassName) { * * @return priorityClassName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Priority class assigned to the Pods") public String getPriorityClassName() { return priorityClassName; @@ -1149,7 +1149,7 @@ public V1PrometheusSpec prometheusExternalLabelName(String prometheusExternalLab * * @return prometheusExternalLabelName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of Prometheus external label used to denote Prometheus instance name. Defaults to the value of `prometheus`. External label will _not_ be added when value is set to empty string (`\"\"`).") @@ -1172,7 +1172,7 @@ public V1PrometheusSpec query(V1PrometheusSpecQuery query) { * * @return query */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecQuery getQuery() { return query; @@ -1202,7 +1202,7 @@ public V1PrometheusSpec addRemoteReadItem(V1PrometheusSpecRemoteRead remoteReadI * * @return remoteRead */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "If specified, the remote_read spec. This is an experimental feature, it may change in any upcoming release in a breaking way.") @@ -1234,7 +1234,7 @@ public V1PrometheusSpec addRemoteWriteItem(V1PrometheusSpecRemoteWrite remoteWri * * @return remoteWrite */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "If specified, the remote_write spec. This is an experimental feature, it may change in any upcoming release in a breaking way.") @@ -1259,7 +1259,7 @@ public V1PrometheusSpec replicaExternalLabelName(String replicaExternalLabelName * * @return replicaExternalLabelName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of Prometheus external label used to denote replica name. Defaults to the value of `prometheus_replica`. External label will _not_ be added when value is set to empty string (`\"\"`).") @@ -1282,7 +1282,7 @@ public V1PrometheusSpec replicas(Integer replicas) { * * @return replicas */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Number of instances to deploy for a Prometheus deployment.") public Integer getReplicas() { return replicas; @@ -1303,7 +1303,7 @@ public V1PrometheusSpec resources(V1AlertmanagerSpecResources resources) { * * @return resources */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1AlertmanagerSpecResources getResources() { return resources; @@ -1326,7 +1326,7 @@ public V1PrometheusSpec retention(String retention) { * * @return retention */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Time duration Prometheus shall retain data for. Default is '24h', and must match the regular expression `[0-9]+(ms|s|m|h|d|w|y)` (milliseconds seconds minutes hours days weeks years).") @@ -1349,7 +1349,7 @@ public V1PrometheusSpec retentionSize(String retentionSize) { * * @return retentionSize */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Maximum amount of disk space used by blocks.") public String getRetentionSize() { return retentionSize; @@ -1373,7 +1373,7 @@ public V1PrometheusSpec routePrefix(String routePrefix) { * * @return routePrefix */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The route prefix Prometheus registers HTTP handlers for. This is useful, if using ExternalURL and a proxy is rewriting HTTP routes of a request, and the actual ExternalURL is still true, but the server serves requests under a different route prefix. For example for use with `kubectl proxy`.") @@ -1397,7 +1397,7 @@ public V1PrometheusSpec ruleNamespaceSelector( * * @return ruleNamespaceSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecRuleNamespaceSelector getRuleNamespaceSelector() { return ruleNamespaceSelector; @@ -1419,7 +1419,7 @@ public V1PrometheusSpec ruleSelector(V1PrometheusSpecRuleSelector ruleSelector) * * @return ruleSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecRuleSelector getRuleSelector() { return ruleSelector; @@ -1440,7 +1440,7 @@ public V1PrometheusSpec rules(V1PrometheusSpecRules rules) { * * @return rules */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecRules getRules() { return rules; @@ -1461,7 +1461,7 @@ public V1PrometheusSpec scrapeInterval(String scrapeInterval) { * * @return scrapeInterval */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Interval between consecutive scrapes.") public String getScrapeInterval() { return scrapeInterval; @@ -1492,7 +1492,7 @@ public V1PrometheusSpec addSecretsItem(String secretsItem) { * * @return secrets */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Secrets is a list of Secrets in the same namespace as the Prometheus object, which shall be mounted into the Prometheus Pods. The Secrets are mounted into /etc/prometheus/secrets/.") @@ -1515,7 +1515,7 @@ public V1PrometheusSpec securityContext(V1ThanosRulerSpecSecurityContext1 securi * * @return securityContext */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecurityContext1 getSecurityContext() { return securityContext; @@ -1536,7 +1536,7 @@ public V1PrometheusSpec serviceAccountName(String serviceAccountName) { * * @return serviceAccountName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ServiceAccountName is the name of the ServiceAccount to use to run the Prometheus Pods.") @@ -1560,7 +1560,7 @@ public V1PrometheusSpec serviceMonitorNamespaceSelector( * * @return serviceMonitorNamespaceSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecServiceMonitorNamespaceSelector getServiceMonitorNamespaceSelector() { return serviceMonitorNamespaceSelector; @@ -1583,7 +1583,7 @@ public V1PrometheusSpec serviceMonitorSelector( * * @return serviceMonitorSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecServiceMonitorSelector getServiceMonitorSelector() { return serviceMonitorSelector; @@ -1607,7 +1607,7 @@ public V1PrometheusSpec sha(String sha) { * * @return sha */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "SHA of Prometheus container image to be deployed. Defaults to the value of `version`. Similar to a tag, but the SHA explicitly deploys an immutable container image. Version and Tag are ignored if SHA is set.") @@ -1630,7 +1630,7 @@ public V1PrometheusSpec storage(V1ThanosRulerSpecStorage storage) { * * @return storage */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorage getStorage() { return storage; @@ -1652,7 +1652,7 @@ public V1PrometheusSpec tag(String tag) { * * @return tag */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Tag of Prometheus container image to be deployed. Defaults to the value of `version`. Version is ignored if Tag is set.") @@ -1675,7 +1675,7 @@ public V1PrometheusSpec thanos(V1PrometheusSpecThanos thanos) { * * @return thanos */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecThanos getThanos() { return thanos; @@ -1704,7 +1704,7 @@ public V1PrometheusSpec addTolerationsItem(V1ThanosRulerSpecTolerations tolerati * * @return tolerations */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the pod's tolerations.") public List getTolerations() { return tolerations; @@ -1725,7 +1725,7 @@ public V1PrometheusSpec version(String version) { * * @return version */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Version of Prometheus to be deployed.") public String getVersion() { return version; @@ -1756,7 +1756,7 @@ public V1PrometheusSpec addVolumeMountsItem(V1ThanosRulerSpecVolumeMounts volume * * @return volumeMounts */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "VolumeMounts allows configuration of additional VolumeMounts on the output StatefulSet definition. VolumeMounts specified will be appended to other VolumeMounts in the prometheus container, that are generated as a result of StorageSpec objects.") @@ -1789,7 +1789,7 @@ public V1PrometheusSpec addVolumesItem(V1ThanosRulerSpecVolumes volumesItem) { * * @return volumes */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Volumes allows configuration of additional volumes on the output StatefulSet definition. Volumes specified will be appended to other volumes that are generated as a result of StorageSpec objects.") @@ -1813,7 +1813,7 @@ public V1PrometheusSpec walCompression(Boolean walCompression) { * * @return walCompression */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Enable compression of the write-ahead log using Snappy. This flag is only available in versions of Prometheus >= 2.11.0.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalAlertManagerConfigs.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalAlertManagerConfigs.java index 0043ef74eb..f2244491fe 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalAlertManagerConfigs.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalAlertManagerConfigs.java @@ -31,7 +31,7 @@ @ApiModel( description = "AdditionalAlertManagerConfigs allows specifying a key of a Secret containing additional Prometheus AlertManager configurations. AlertManager configurations specified are appended to the configurations generated by the Prometheus Operator. Job configurations specified must have the form as specified in the official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alertmanager_config. As AlertManager configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible AlertManager configs are going to break Prometheus after the upgrade.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecAdditionalAlertManagerConfigs { @@ -85,7 +85,7 @@ public V1PrometheusSpecAdditionalAlertManagerConfigs name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -108,7 +108,7 @@ public V1PrometheusSpecAdditionalAlertManagerConfigs optional(Boolean optional) * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalAlertRelabelConfigs.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalAlertRelabelConfigs.java index 3930da400a..9995245fba 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalAlertRelabelConfigs.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalAlertRelabelConfigs.java @@ -31,7 +31,7 @@ @ApiModel( description = "AdditionalAlertRelabelConfigs allows specifying a key of a Secret containing additional Prometheus alert relabel configurations. Alert relabel configurations specified are appended to the configurations generated by the Prometheus Operator. Alert relabel configurations specified must have the form as specified in the official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs. As alert relabel configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible alert relabel configs are going to break Prometheus after the upgrade.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecAdditionalAlertRelabelConfigs { @@ -85,7 +85,7 @@ public V1PrometheusSpecAdditionalAlertRelabelConfigs name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -108,7 +108,7 @@ public V1PrometheusSpecAdditionalAlertRelabelConfigs optional(Boolean optional) * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalScrapeConfigs.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalScrapeConfigs.java index 207af6af5d..bd26dae53b 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalScrapeConfigs.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAdditionalScrapeConfigs.java @@ -31,7 +31,7 @@ @ApiModel( description = "AdditionalScrapeConfigs allows specifying a key of a Secret containing additional Prometheus scrape configurations. Scrape configurations specified are appended to the configurations generated by the Prometheus Operator. Job configurations specified must have the form as specified in the official Prometheus documentation: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config. As scrape configs are appended, the user is responsible to make sure it is valid. Note that using this feature may expose the possibility to break upgrades of Prometheus. It is advised to review Prometheus release notes to ensure that no incompatible scrape configs are going to break Prometheus after the upgrade.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecAdditionalScrapeConfigs { @@ -85,7 +85,7 @@ public V1PrometheusSpecAdditionalScrapeConfigs name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -108,7 +108,7 @@ public V1PrometheusSpecAdditionalScrapeConfigs optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlerting.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlerting.java index adc124f10f..c812a64d88 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlerting.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlerting.java @@ -21,7 +21,7 @@ /** Define details regarding alerting. */ @ApiModel(description = "Define details regarding alerting.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecAlerting { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlertingAlertmanagers.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlertingAlertmanagers.java index 6277ecb281..bcb1b0f4c3 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlertingAlertmanagers.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlertingAlertmanagers.java @@ -24,7 +24,7 @@ @ApiModel( description = "AlertmanagerEndpoints defines a selection of a single Endpoints object containing alertmanager IPs to fire alerts against.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecAlertingAlertmanagers { @@ -80,7 +80,7 @@ public V1PrometheusSpecAlertingAlertmanagers apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Version of the Alertmanager API that Prometheus uses to send alerts. It can be \"v1\" or \"v2\".") @@ -103,7 +103,7 @@ public V1PrometheusSpecAlertingAlertmanagers bearerTokenFile(String bearerTokenF * * @return bearerTokenFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "BearerTokenFile to read from filesystem to use when authenticating to Alertmanager.") public String getBearerTokenFile() { @@ -165,7 +165,7 @@ public V1PrometheusSpecAlertingAlertmanagers pathPrefix(String pathPrefix) { * * @return pathPrefix */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Prefix for the HTTP path alerts are pushed to.") public String getPathPrefix() { return pathPrefix; @@ -206,7 +206,7 @@ public V1PrometheusSpecAlertingAlertmanagers scheme(String scheme) { * * @return scheme */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Scheme to use when firing alerts.") public String getScheme() { return scheme; @@ -228,7 +228,7 @@ public V1PrometheusSpecAlertingAlertmanagers tlsConfig( * * @return tlsConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecAlertingTlsConfig getTlsConfig() { return tlsConfig; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlertingTlsConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlertingTlsConfig.java index 9a19dcac94..17f653e0e4 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlertingTlsConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecAlertingTlsConfig.java @@ -19,7 +19,7 @@ /** TLS Config to use for alertmanager connection. */ @ApiModel(description = "TLS Config to use for alertmanager connection.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecAlertingTlsConfig { @@ -74,7 +74,7 @@ public V1PrometheusSpecAlertingTlsConfig ca(V1ServiceMonitorSpecTlsConfigCa ca) * * @return ca */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCa getCa() { return ca; @@ -95,7 +95,7 @@ public V1PrometheusSpecAlertingTlsConfig caFile(String caFile) { * * @return caFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the CA cert in the Prometheus container to use for the targets.") public String getCaFile() { @@ -117,7 +117,7 @@ public V1PrometheusSpecAlertingTlsConfig cert(V1ServiceMonitorSpecTlsConfigCert * * @return cert */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCert getCert() { return cert; @@ -138,7 +138,7 @@ public V1PrometheusSpecAlertingTlsConfig certFile(String certFile) { * * @return certFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client cert file in the Prometheus container for the targets.") public String getCertFile() { @@ -160,7 +160,7 @@ public V1PrometheusSpecAlertingTlsConfig insecureSkipVerify(Boolean insecureSkip * * @return insecureSkipVerify */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Disable target certificate validation.") public Boolean getInsecureSkipVerify() { return insecureSkipVerify; @@ -181,7 +181,7 @@ public V1PrometheusSpecAlertingTlsConfig keyFile(String keyFile) { * * @return keyFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client key file in the Prometheus container for the targets.") public String getKeyFile() { @@ -204,7 +204,7 @@ public V1PrometheusSpecAlertingTlsConfig keySecret( * * @return keySecret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigKeySecret getKeySecret() { return keySecret; @@ -225,7 +225,7 @@ public V1PrometheusSpecAlertingTlsConfig serverName(String serverName) { * * @return serverName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Used to verify the hostname for the targets.") public String getServerName() { return serverName; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfig.java index 0397971807..bb6f7aeb02 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfig.java @@ -26,7 +26,7 @@ @ApiModel( description = "APIServerConfig allows specifying a host and auth methods to access apiserver. If left empty, Prometheus is assumed to run inside of the cluster and will discover API servers automatically and use the pod's CA certificate and bearer token file at /var/run/secrets/kubernetes.io/serviceaccount/.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecApiserverConfig { @@ -67,7 +67,7 @@ public V1PrometheusSpecApiserverConfig basicAuth( * * @return basicAuth */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecApiserverConfigBasicAuth getBasicAuth() { return basicAuth; @@ -88,7 +88,7 @@ public V1PrometheusSpecApiserverConfig bearerToken(String bearerToken) { * * @return bearerToken */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Bearer token for accessing apiserver.") public String getBearerToken() { return bearerToken; @@ -109,7 +109,7 @@ public V1PrometheusSpecApiserverConfig bearerTokenFile(String bearerTokenFile) { * * @return bearerTokenFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "File to read bearer token for accessing apiserver.") public String getBearerTokenFile() { return bearerTokenFile; @@ -155,7 +155,7 @@ public V1PrometheusSpecApiserverConfig tlsConfig( * * @return tlsConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecApiserverConfigTlsConfig getTlsConfig() { return tlsConfig; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfigBasicAuth.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfigBasicAuth.java index a68c8ff2b4..d332926923 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfigBasicAuth.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfigBasicAuth.java @@ -19,7 +19,7 @@ /** BasicAuth allow an endpoint to authenticate over basic authentication */ @ApiModel(description = "BasicAuth allow an endpoint to authenticate over basic authentication") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecApiserverConfigBasicAuth { @@ -45,7 +45,7 @@ public V1PrometheusSpecApiserverConfigBasicAuth password( * * @return password */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecBasicAuthPassword getPassword() { return password; @@ -67,7 +67,7 @@ public V1PrometheusSpecApiserverConfigBasicAuth username( * * @return username */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecBasicAuthUsername getUsername() { return username; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfigTlsConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfigTlsConfig.java index 35286ef321..179ff9e88e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfigTlsConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecApiserverConfigTlsConfig.java @@ -19,7 +19,7 @@ /** TLS Config to use for accessing apiserver. */ @ApiModel(description = "TLS Config to use for accessing apiserver.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecApiserverConfigTlsConfig { @@ -74,7 +74,7 @@ public V1PrometheusSpecApiserverConfigTlsConfig ca(V1ServiceMonitorSpecTlsConfig * * @return ca */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCa getCa() { return ca; @@ -95,7 +95,7 @@ public V1PrometheusSpecApiserverConfigTlsConfig caFile(String caFile) { * * @return caFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the CA cert in the Prometheus container to use for the targets.") public String getCaFile() { @@ -117,7 +117,7 @@ public V1PrometheusSpecApiserverConfigTlsConfig cert(V1ServiceMonitorSpecTlsConf * * @return cert */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCert getCert() { return cert; @@ -138,7 +138,7 @@ public V1PrometheusSpecApiserverConfigTlsConfig certFile(String certFile) { * * @return certFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client cert file in the Prometheus container for the targets.") public String getCertFile() { @@ -160,7 +160,7 @@ public V1PrometheusSpecApiserverConfigTlsConfig insecureSkipVerify(Boolean insec * * @return insecureSkipVerify */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Disable target certificate validation.") public Boolean getInsecureSkipVerify() { return insecureSkipVerify; @@ -181,7 +181,7 @@ public V1PrometheusSpecApiserverConfigTlsConfig keyFile(String keyFile) { * * @return keyFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client key file in the Prometheus container for the targets.") public String getKeyFile() { @@ -204,7 +204,7 @@ public V1PrometheusSpecApiserverConfigTlsConfig keySecret( * * @return keySecret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigKeySecret getKeySecret() { return keySecret; @@ -225,7 +225,7 @@ public V1PrometheusSpecApiserverConfigTlsConfig serverName(String serverName) { * * @return serverName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Used to verify the hostname for the targets.") public String getServerName() { return serverName; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecArbitraryFSAccessThroughSMs.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecArbitraryFSAccessThroughSMs.java index 2dffb16b65..5e88f90210 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecArbitraryFSAccessThroughSMs.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecArbitraryFSAccessThroughSMs.java @@ -24,7 +24,7 @@ @ApiModel( description = "ArbitraryFSAccessThroughSMs configures whether configuration based on a service monitor can access arbitrary files on the file system of the Prometheus container e.g. bearer token files.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecArbitraryFSAccessThroughSMs { @@ -44,7 +44,7 @@ public V1PrometheusSpecArbitraryFSAccessThroughSMs deny(Boolean deny) { * * @return deny */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public Boolean getDeny() { return deny; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecBasicAuth.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecBasicAuth.java index 7bed363dda..cbfdae268b 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecBasicAuth.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecBasicAuth.java @@ -19,7 +19,7 @@ /** BasicAuth for the URL. */ @ApiModel(description = "BasicAuth for the URL.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecBasicAuth { @@ -44,7 +44,7 @@ public V1PrometheusSpecBasicAuth password(V1ServiceMonitorSpecBasicAuthPassword * * @return password */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecBasicAuthPassword getPassword() { return password; @@ -65,7 +65,7 @@ public V1PrometheusSpecBasicAuth username(V1ServiceMonitorSpecBasicAuthUsername * * @return username */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecBasicAuthUsername getUsername() { return username; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMetadata.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMetadata.java index 12b110a460..957e1f7c5b 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMetadata.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMetadata.java @@ -23,7 +23,7 @@ @ApiModel( description = "PodMetadata configures Labels and Annotations which are propagated to the prometheus pods.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecPodMetadata { @@ -58,7 +58,7 @@ public V1PrometheusSpecPodMetadata putAnnotationsItem(String key, String annotat * * @return annotations */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations") @@ -91,7 +91,7 @@ public V1PrometheusSpecPodMetadata putLabelsItem(String key, String labelsItem) * * @return labels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/user-guide/labels") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMonitorNamespaceSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMonitorNamespaceSelector.java index 03b66e98b2..4748258991 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMonitorNamespaceSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMonitorNamespaceSelector.java @@ -25,7 +25,7 @@ @ApiModel( description = "Namespaces to be selected for PodMonitor discovery. If nil, only check own namespace.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecPodMonitorNamespaceSelector { @@ -60,7 +60,7 @@ public V1PrometheusSpecPodMonitorNamespaceSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -96,7 +96,7 @@ public V1PrometheusSpecPodMonitorNamespaceSelector putMatchLabelsItem( * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMonitorSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMonitorSelector.java index ee5419b98c..85c7684648 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMonitorSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecPodMonitorSelector.java @@ -23,7 +23,7 @@ /** *Experimental* PodMonitors to be selected for target discovery. */ @ApiModel(description = "*Experimental* PodMonitors to be selected for target discovery.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecPodMonitorSelector { @@ -58,7 +58,7 @@ public V1PrometheusSpecPodMonitorSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -93,7 +93,7 @@ public V1PrometheusSpecPodMonitorSelector putMatchLabelsItem(String key, String * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecQuery.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecQuery.java index 7e838b07f8..6e39b2fc20 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecQuery.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecQuery.java @@ -19,7 +19,7 @@ /** QuerySpec defines the query command line flags when starting Prometheus. */ @ApiModel(description = "QuerySpec defines the query command line flags when starting Prometheus.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecQuery { @@ -54,7 +54,7 @@ public V1PrometheusSpecQuery lookbackDelta(String lookbackDelta) { * * @return lookbackDelta */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The delta difference allowed for retrieving metrics during expression evaluations.") public String getLookbackDelta() { @@ -76,7 +76,7 @@ public V1PrometheusSpecQuery maxConcurrency(Integer maxConcurrency) { * * @return maxConcurrency */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Number of concurrent queries that can be run at once.") public Integer getMaxConcurrency() { return maxConcurrency; @@ -99,7 +99,7 @@ public V1PrometheusSpecQuery maxSamples(Integer maxSamples) { * * @return maxSamples */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Maximum number of samples a single query can load into memory. Note that queries will fail if they would load more samples than this into memory, so this also limits the number of samples a query can return.") @@ -122,7 +122,7 @@ public V1PrometheusSpecQuery timeout(String timeout) { * * @return timeout */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Maximum time a query may take before being aborted.") public String getTimeout() { return timeout; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecQueueConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecQueueConfig.java index c1b17efe56..7325925dbb 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecQueueConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecQueueConfig.java @@ -19,7 +19,7 @@ /** QueueConfig allows tuning of the remote write queue parameters. */ @ApiModel(description = "QueueConfig allows tuning of the remote write queue parameters.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecQueueConfig { @@ -74,7 +74,7 @@ public V1PrometheusSpecQueueConfig batchSendDeadline(String batchSendDeadline) { * * @return batchSendDeadline */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "BatchSendDeadline is the maximum time a sample will wait in buffer.") public String getBatchSendDeadline() { return batchSendDeadline; @@ -95,7 +95,7 @@ public V1PrometheusSpecQueueConfig capacity(Integer capacity) { * * @return capacity */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Capacity is the number of samples to buffer per shard before we start dropping them.") @@ -118,7 +118,7 @@ public V1PrometheusSpecQueueConfig maxBackoff(String maxBackoff) { * * @return maxBackoff */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "MaxBackoff is the maximum retry delay.") public String getMaxBackoff() { return maxBackoff; @@ -139,7 +139,7 @@ public V1PrometheusSpecQueueConfig maxRetries(Integer maxRetries) { * * @return maxRetries */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "MaxRetries is the maximum number of times to retry a batch on recoverable errors.") public Integer getMaxRetries() { @@ -161,7 +161,7 @@ public V1PrometheusSpecQueueConfig maxSamplesPerSend(Integer maxSamplesPerSend) * * @return maxSamplesPerSend */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "MaxSamplesPerSend is the maximum number of samples per send.") public Integer getMaxSamplesPerSend() { return maxSamplesPerSend; @@ -182,7 +182,7 @@ public V1PrometheusSpecQueueConfig maxShards(Integer maxShards) { * * @return maxShards */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "MaxShards is the maximum number of shards, i.e. amount of concurrency.") public Integer getMaxShards() { @@ -204,7 +204,7 @@ public V1PrometheusSpecQueueConfig minBackoff(String minBackoff) { * * @return minBackoff */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "MinBackoff is the initial retry delay. Gets doubled for every retry.") public String getMinBackoff() { return minBackoff; @@ -225,7 +225,7 @@ public V1PrometheusSpecQueueConfig minShards(Integer minShards) { * * @return minShards */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "MinShards is the minimum number of shards, i.e. amount of concurrency.") public Integer getMinShards() { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRemoteRead.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRemoteRead.java index 92cfb4d111..10109d9b48 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRemoteRead.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRemoteRead.java @@ -21,7 +21,7 @@ /** RemoteReadSpec defines the remote_read configuration for prometheus. */ @ApiModel(description = "RemoteReadSpec defines the remote_read configuration for prometheus.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecRemoteRead { @@ -81,7 +81,7 @@ public V1PrometheusSpecRemoteRead basicAuth(V1PrometheusSpecBasicAuth basicAuth) * * @return basicAuth */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecBasicAuth getBasicAuth() { return basicAuth; @@ -102,7 +102,7 @@ public V1PrometheusSpecRemoteRead bearerToken(String bearerToken) { * * @return bearerToken */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "bearer token for remote read.") public String getBearerToken() { return bearerToken; @@ -123,7 +123,7 @@ public V1PrometheusSpecRemoteRead bearerTokenFile(String bearerTokenFile) { * * @return bearerTokenFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "File to read bearer token for remote read.") public String getBearerTokenFile() { return bearerTokenFile; @@ -144,7 +144,7 @@ public V1PrometheusSpecRemoteRead proxyUrl(String proxyUrl) { * * @return proxyUrl */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional ProxyURL") public String getProxyUrl() { return proxyUrl; @@ -166,7 +166,7 @@ public V1PrometheusSpecRemoteRead readRecent(Boolean readRecent) { * * @return readRecent */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Whether reads should be made for queries for time ranges that the local storage should have complete data for.") @@ -189,7 +189,7 @@ public V1PrometheusSpecRemoteRead remoteTimeout(String remoteTimeout) { * * @return remoteTimeout */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Timeout for requests to the remote read endpoint.") public String getRemoteTimeout() { return remoteTimeout; @@ -220,7 +220,7 @@ public V1PrometheusSpecRemoteRead putRequiredMatchersItem( * * @return requiredMatchers */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "An optional list of equality matchers which have to be present in a selector to query the remote read endpoint.") @@ -243,7 +243,7 @@ public V1PrometheusSpecRemoteRead tlsConfig(V1PrometheusSpecTlsConfig tlsConfig) * * @return tlsConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecTlsConfig getTlsConfig() { return tlsConfig; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRemoteWrite.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRemoteWrite.java index e8c473eb2b..5a524ce686 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRemoteWrite.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRemoteWrite.java @@ -21,7 +21,7 @@ /** RemoteWriteSpec defines the remote_write configuration for prometheus. */ @ApiModel(description = "RemoteWriteSpec defines the remote_write configuration for prometheus.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecRemoteWrite { @@ -81,7 +81,7 @@ public V1PrometheusSpecRemoteWrite basicAuth(V1PrometheusSpecBasicAuth basicAuth * * @return basicAuth */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecBasicAuth getBasicAuth() { return basicAuth; @@ -102,7 +102,7 @@ public V1PrometheusSpecRemoteWrite bearerToken(String bearerToken) { * * @return bearerToken */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "File to read bearer token for remote write.") public String getBearerToken() { return bearerToken; @@ -123,7 +123,7 @@ public V1PrometheusSpecRemoteWrite bearerTokenFile(String bearerTokenFile) { * * @return bearerTokenFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "File to read bearer token for remote write.") public String getBearerTokenFile() { return bearerTokenFile; @@ -144,7 +144,7 @@ public V1PrometheusSpecRemoteWrite proxyUrl(String proxyUrl) { * * @return proxyUrl */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional ProxyURL") public String getProxyUrl() { return proxyUrl; @@ -165,7 +165,7 @@ public V1PrometheusSpecRemoteWrite queueConfig(V1PrometheusSpecQueueConfig queue * * @return queueConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecQueueConfig getQueueConfig() { return queueConfig; @@ -186,7 +186,7 @@ public V1PrometheusSpecRemoteWrite remoteTimeout(String remoteTimeout) { * * @return remoteTimeout */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Timeout for requests to the remote write endpoint.") public String getRemoteTimeout() { return remoteTimeout; @@ -207,7 +207,7 @@ public V1PrometheusSpecRemoteWrite tlsConfig(V1PrometheusSpecTlsConfig1 tlsConfi * * @return tlsConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecTlsConfig1 getTlsConfig() { return tlsConfig; @@ -258,7 +258,7 @@ public V1PrometheusSpecRemoteWrite addWriteRelabelConfigsItem( * * @return writeRelabelConfigs */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "The list of remote write relabel configurations.") public List getWriteRelabelConfigs() { return writeRelabelConfigs; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRuleNamespaceSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRuleNamespaceSelector.java index b44a41f95e..671984c5a2 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRuleNamespaceSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRuleNamespaceSelector.java @@ -28,7 +28,7 @@ @ApiModel( description = "Namespaces to be selected for PrometheusRules discovery. If unspecified, only the same namespace as the Prometheus object is in is used.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecRuleNamespaceSelector { @@ -63,7 +63,7 @@ public V1PrometheusSpecRuleNamespaceSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -99,7 +99,7 @@ public V1PrometheusSpecRuleNamespaceSelector putMatchLabelsItem( * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRuleSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRuleSelector.java index 8aa0150e13..fef3fc24e8 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRuleSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRuleSelector.java @@ -30,7 +30,7 @@ @ApiModel( description = "A selector to select which PrometheusRules to mount for loading alerting rules from. Until (excluding) Prometheus Operator v0.24.0 Prometheus Operator will migrate any legacy rule ConfigMaps to PrometheusRule custom resources selected by RuleSelector. Make sure it does not match any config maps that you do not want to be migrated.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecRuleSelector { @@ -65,7 +65,7 @@ public V1PrometheusSpecRuleSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -100,7 +100,7 @@ public V1PrometheusSpecRuleSelector putMatchLabelsItem(String key, String matchL * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRules.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRules.java index 89792c8233..efc06e9038 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRules.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRules.java @@ -19,7 +19,7 @@ /** /--rules.*_/ command-line arguments. */ @ApiModel(description = "/--rules.*_/ command-line arguments.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecRules { @@ -39,7 +39,7 @@ public V1PrometheusSpecRules alert(V1PrometheusSpecRulesAlert alert) { * * @return alert */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecRulesAlert getAlert() { return alert; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRulesAlert.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRulesAlert.java index edeaeec44c..e7f91a1ec1 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRulesAlert.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecRulesAlert.java @@ -19,7 +19,7 @@ /** /--rules.alert.*_/ command-line arguments */ @ApiModel(description = "/--rules.alert.*_/ command-line arguments") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecRulesAlert { @@ -50,7 +50,7 @@ public V1PrometheusSpecRulesAlert forGracePeriod(String forGracePeriod) { * * @return forGracePeriod */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Minimum duration between alert and restored 'for' state. This is maintained only for alerts with configured 'for' time greater than grace period.") @@ -73,7 +73,7 @@ public V1PrometheusSpecRulesAlert forOutageTolerance(String forOutageTolerance) * * @return forOutageTolerance */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Max time to tolerate prometheus outage for restoring 'for' state of alert.") public String getForOutageTolerance() { @@ -95,7 +95,7 @@ public V1PrometheusSpecRulesAlert resendDelay(String resendDelay) { * * @return resendDelay */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Minimum amount of time to wait before resending an alert to Alertmanager.") public String getResendDelay() { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecServiceMonitorNamespaceSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecServiceMonitorNamespaceSelector.java index bf48751b80..36a11b8ad6 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecServiceMonitorNamespaceSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecServiceMonitorNamespaceSelector.java @@ -25,7 +25,7 @@ @ApiModel( description = "Namespaces to be selected for ServiceMonitor discovery. If nil, only check own namespace.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecServiceMonitorNamespaceSelector { @@ -60,7 +60,7 @@ public V1PrometheusSpecServiceMonitorNamespaceSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -97,7 +97,7 @@ public V1PrometheusSpecServiceMonitorNamespaceSelector putMatchLabelsItem( * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecServiceMonitorSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecServiceMonitorSelector.java index 8cf61a5aa4..4763b43af4 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecServiceMonitorSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecServiceMonitorSelector.java @@ -23,7 +23,7 @@ /** ServiceMonitors to be selected for target discovery. */ @ApiModel(description = "ServiceMonitors to be selected for target discovery.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecServiceMonitorSelector { @@ -58,7 +58,7 @@ public V1PrometheusSpecServiceMonitorSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -94,7 +94,7 @@ public V1PrometheusSpecServiceMonitorSelector putMatchLabelsItem( * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecThanos.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecThanos.java index 6861a75229..bec4f60479 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecThanos.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecThanos.java @@ -26,7 +26,7 @@ @ApiModel( description = "Thanos configuration allows configuring various aspects of a Prometheus server in a Thanos environment. This section is experimental, it may change significantly without deprecation notice in any release. This is experimental and may change significantly without backward compatibility in any release.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecThanos { @@ -91,7 +91,7 @@ public V1PrometheusSpecThanos baseImage(String baseImage) { * * @return baseImage */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Thanos base image if other than default.") public String getBaseImage() { return baseImage; @@ -113,7 +113,7 @@ public V1PrometheusSpecThanos grpcServerTlsConfig( * * @return grpcServerTlsConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecGrpcServerTlsConfig getGrpcServerTlsConfig() { return grpcServerTlsConfig; @@ -136,7 +136,7 @@ public V1PrometheusSpecThanos image(String image) { * * @return image */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Image if specified has precedence over baseImage, tag and sha combinations. Specifying the version is still necessary to ensure the Prometheus Operator knows what version of Thanos is being configured.") @@ -160,7 +160,7 @@ public V1PrometheusSpecThanos listenLocal(Boolean listenLocal) { * * @return listenLocal */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ListenLocal makes the Thanos sidecar listen on loopback, so that it does not bind against the Pod IP.") @@ -184,7 +184,7 @@ public V1PrometheusSpecThanos objectStorageConfig( * * @return objectStorageConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecObjectStorageConfig getObjectStorageConfig() { return objectStorageConfig; @@ -205,7 +205,7 @@ public V1PrometheusSpecThanos resources(V1PrometheusSpecThanosResources resource * * @return resources */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1PrometheusSpecThanosResources getResources() { return resources; @@ -228,7 +228,7 @@ public V1PrometheusSpecThanos sha(String sha) { * * @return sha */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "SHA of Thanos container image to be deployed. Defaults to the value of `version`. Similar to a tag, but the SHA explicitly deploys an immutable container image. Version and Tag are ignored if SHA is set.") @@ -252,7 +252,7 @@ public V1PrometheusSpecThanos tag(String tag) { * * @return tag */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Tag of Thanos sidecar container image to be deployed. Defaults to the value of `version`. Version is ignored if Tag is set.") @@ -275,7 +275,7 @@ public V1PrometheusSpecThanos tracingConfig(V1ThanosRulerSpecTracingConfig traci * * @return tracingConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecTracingConfig getTracingConfig() { return tracingConfig; @@ -296,7 +296,7 @@ public V1PrometheusSpecThanos version(String version) { * * @return version */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Version describes the version of Thanos to use.") public String getVersion() { return version; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecThanosResources.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecThanosResources.java index fdec0a4029..d952538a78 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecThanosResources.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecThanosResources.java @@ -26,7 +26,7 @@ @ApiModel( description = "Resources defines the resource requirements for the Thanos sidecar. If not provided, no requests/limits will be set") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecThanosResources { @@ -60,7 +60,7 @@ public V1PrometheusSpecThanosResources putLimitsItem(String key, String limitsIt * * @return limits */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") @@ -94,7 +94,7 @@ public V1PrometheusSpecThanosResources putRequestsItem(String key, String reques * * @return requests */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecTlsConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecTlsConfig.java index b6911393d9..b787f5d9ff 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecTlsConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecTlsConfig.java @@ -19,7 +19,7 @@ /** TLS Config to use for remote read. */ @ApiModel(description = "TLS Config to use for remote read.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecTlsConfig { @@ -74,7 +74,7 @@ public V1PrometheusSpecTlsConfig ca(V1ServiceMonitorSpecTlsConfigCa ca) { * * @return ca */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCa getCa() { return ca; @@ -95,7 +95,7 @@ public V1PrometheusSpecTlsConfig caFile(String caFile) { * * @return caFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the CA cert in the Prometheus container to use for the targets.") public String getCaFile() { @@ -117,7 +117,7 @@ public V1PrometheusSpecTlsConfig cert(V1ServiceMonitorSpecTlsConfigCert cert) { * * @return cert */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCert getCert() { return cert; @@ -138,7 +138,7 @@ public V1PrometheusSpecTlsConfig certFile(String certFile) { * * @return certFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client cert file in the Prometheus container for the targets.") public String getCertFile() { @@ -160,7 +160,7 @@ public V1PrometheusSpecTlsConfig insecureSkipVerify(Boolean insecureSkipVerify) * * @return insecureSkipVerify */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Disable target certificate validation.") public Boolean getInsecureSkipVerify() { return insecureSkipVerify; @@ -181,7 +181,7 @@ public V1PrometheusSpecTlsConfig keyFile(String keyFile) { * * @return keyFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client key file in the Prometheus container for the targets.") public String getKeyFile() { @@ -203,7 +203,7 @@ public V1PrometheusSpecTlsConfig keySecret(V1ServiceMonitorSpecTlsConfigKeySecre * * @return keySecret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigKeySecret getKeySecret() { return keySecret; @@ -224,7 +224,7 @@ public V1PrometheusSpecTlsConfig serverName(String serverName) { * * @return serverName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Used to verify the hostname for the targets.") public String getServerName() { return serverName; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecTlsConfig1.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecTlsConfig1.java index 72c5a34e97..df024c5b89 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecTlsConfig1.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusSpecTlsConfig1.java @@ -19,7 +19,7 @@ /** TLS Config to use for remote write. */ @ApiModel(description = "TLS Config to use for remote write.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusSpecTlsConfig1 { @@ -74,7 +74,7 @@ public V1PrometheusSpecTlsConfig1 ca(V1ServiceMonitorSpecTlsConfigCa ca) { * * @return ca */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCa getCa() { return ca; @@ -95,7 +95,7 @@ public V1PrometheusSpecTlsConfig1 caFile(String caFile) { * * @return caFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the CA cert in the Prometheus container to use for the targets.") public String getCaFile() { @@ -117,7 +117,7 @@ public V1PrometheusSpecTlsConfig1 cert(V1ServiceMonitorSpecTlsConfigCert cert) { * * @return cert */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCert getCert() { return cert; @@ -138,7 +138,7 @@ public V1PrometheusSpecTlsConfig1 certFile(String certFile) { * * @return certFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client cert file in the Prometheus container for the targets.") public String getCertFile() { @@ -160,7 +160,7 @@ public V1PrometheusSpecTlsConfig1 insecureSkipVerify(Boolean insecureSkipVerify) * * @return insecureSkipVerify */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Disable target certificate validation.") public Boolean getInsecureSkipVerify() { return insecureSkipVerify; @@ -181,7 +181,7 @@ public V1PrometheusSpecTlsConfig1 keyFile(String keyFile) { * * @return keyFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client key file in the Prometheus container for the targets.") public String getKeyFile() { @@ -203,7 +203,7 @@ public V1PrometheusSpecTlsConfig1 keySecret(V1ServiceMonitorSpecTlsConfigKeySecr * * @return keySecret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigKeySecret getKeySecret() { return keySecret; @@ -224,7 +224,7 @@ public V1PrometheusSpecTlsConfig1 serverName(String serverName) { * * @return serverName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Used to verify the hostname for the targets.") public String getServerName() { return serverName; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusStatus.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusStatus.java index 7a7b12c410..28df224883 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusStatus.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1PrometheusStatus.java @@ -25,7 +25,7 @@ @ApiModel( description = "Most recent observed status of the Prometheus cluster. Read-only. Not included when requesting from the apiserver, only from the Prometheus Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1PrometheusStatus { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitor.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitor.java index cfa85b4d0e..5f789945e3 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitor.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitor.java @@ -20,7 +20,7 @@ /** ServiceMonitor defines monitoring for a set of services. */ @ApiModel(description = "ServiceMonitor defines monitoring for a set of services.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitor implements io.kubernetes.client.common.KubernetesObject { @@ -58,7 +58,7 @@ public V1ServiceMonitor apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -84,7 +84,7 @@ public V1ServiceMonitor kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -107,7 +107,7 @@ public V1ServiceMonitor metadata(V1ObjectMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorList.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorList.java index b7fb4c35e4..3864706bf7 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorList.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorList.java @@ -22,7 +22,7 @@ /** ServiceMonitorList is a list of ServiceMonitor */ @ApiModel(description = "ServiceMonitorList is a list of ServiceMonitor") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorList implements io.kubernetes.client.common.KubernetesListObject { @@ -60,7 +60,7 @@ public V1ServiceMonitorList apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -115,7 +115,7 @@ public V1ServiceMonitorList kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -138,7 +138,7 @@ public V1ServiceMonitorList metadata(V1ListMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpec.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpec.java index 479e940ed1..3b769b739e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpec.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpec.java @@ -22,7 +22,7 @@ /** Specification of desired Service selection for target discovery by Prometheus. */ @ApiModel( description = "Specification of desired Service selection for target discovery by Prometheus.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpec { @@ -100,7 +100,7 @@ public V1ServiceMonitorSpec jobLabel(String jobLabel) { * * @return jobLabel */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "The label to use to retrieve the job name from.") public String getJobLabel() { return jobLabel; @@ -122,7 +122,7 @@ public V1ServiceMonitorSpec namespaceSelector( * * @return namespaceSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecNamespaceSelector getNamespaceSelector() { return namespaceSelector; @@ -151,7 +151,7 @@ public V1ServiceMonitorSpec addPodTargetLabelsItem(String podTargetLabelsItem) { * * @return podTargetLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "PodTargetLabels transfers labels on the Kubernetes Pod onto the target.") public List getPodTargetLabels() { @@ -173,7 +173,7 @@ public V1ServiceMonitorSpec sampleLimit(Long sampleLimit) { * * @return sampleLimit */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "SampleLimit defines per-scrape limit on number of scraped samples that will be accepted.") @@ -224,7 +224,7 @@ public V1ServiceMonitorSpec addTargetLabelsItem(String targetLabelsItem) { * * @return targetLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "TargetLabels transfers labels on the Kubernetes Service onto the target.") public List getTargetLabels() { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuth.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuth.java index 101d3eae08..6870f5ce7c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuth.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuth.java @@ -24,7 +24,7 @@ @ApiModel( description = "BasicAuth allow an endpoint to authenticate over basic authentication More info: https://prometheus.io/docs/operating/configuration/#endpoints") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecBasicAuth { @@ -49,7 +49,7 @@ public V1ServiceMonitorSpecBasicAuth password(V1ServiceMonitorSpecBasicAuthPassw * * @return password */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecBasicAuthPassword getPassword() { return password; @@ -70,7 +70,7 @@ public V1ServiceMonitorSpecBasicAuth username(V1ServiceMonitorSpecBasicAuthUsern * * @return username */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecBasicAuthUsername getUsername() { return username; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuthPassword.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuthPassword.java index f0e0640ca9..49f6ef28f7 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuthPassword.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuthPassword.java @@ -21,7 +21,7 @@ @ApiModel( description = "The secret in the service monitor namespace that contains the password for authentication.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecBasicAuthPassword { @@ -75,7 +75,7 @@ public V1ServiceMonitorSpecBasicAuthPassword name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -98,7 +98,7 @@ public V1ServiceMonitorSpecBasicAuthPassword optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuthUsername.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuthUsername.java index 0d37bf77b3..4dbb106acc 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuthUsername.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBasicAuthUsername.java @@ -21,7 +21,7 @@ @ApiModel( description = "The secret in the service monitor namespace that contains the username for authentication.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecBasicAuthUsername { @@ -75,7 +75,7 @@ public V1ServiceMonitorSpecBasicAuthUsername name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -98,7 +98,7 @@ public V1ServiceMonitorSpecBasicAuthUsername optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBearerTokenSecret.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBearerTokenSecret.java index ae305f2d1f..2223ecd75e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBearerTokenSecret.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecBearerTokenSecret.java @@ -24,7 +24,7 @@ @ApiModel( description = "Secret to mount to read bearer token for scraping targets. The secret needs to be in the same namespace as the service monitor and accessible by the Prometheus Operator.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecBearerTokenSecret { @@ -78,7 +78,7 @@ public V1ServiceMonitorSpecBearerTokenSecret name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -101,7 +101,7 @@ public V1ServiceMonitorSpecBearerTokenSecret optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecEndpoints.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecEndpoints.java index 37d73903c0..3ae38e6ce2 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecEndpoints.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecEndpoints.java @@ -23,7 +23,7 @@ /** Endpoint defines a scrapeable endpoint serving Prometheus metrics. */ @ApiModel(description = "Endpoint defines a scrapeable endpoint serving Prometheus metrics.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecEndpoints { @@ -118,7 +118,7 @@ public V1ServiceMonitorSpecEndpoints basicAuth(V1ServiceMonitorSpecBasicAuth bas * * @return basicAuth */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecBasicAuth getBasicAuth() { return basicAuth; @@ -139,7 +139,7 @@ public V1ServiceMonitorSpecEndpoints bearerTokenFile(String bearerTokenFile) { * * @return bearerTokenFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "File to read bearer token for scraping targets.") public String getBearerTokenFile() { return bearerTokenFile; @@ -161,7 +161,7 @@ public V1ServiceMonitorSpecEndpoints bearerTokenSecret( * * @return bearerTokenSecret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecBearerTokenSecret getBearerTokenSecret() { return bearerTokenSecret; @@ -182,7 +182,7 @@ public V1ServiceMonitorSpecEndpoints honorLabels(Boolean honorLabels) { * * @return honorLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "HonorLabels chooses the metric's labels on collisions with target labels.") public Boolean getHonorLabels() { @@ -204,7 +204,7 @@ public V1ServiceMonitorSpecEndpoints honorTimestamps(Boolean honorTimestamps) { * * @return honorTimestamps */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "HonorTimestamps controls whether Prometheus respects the timestamps present in scraped data.") @@ -227,7 +227,7 @@ public V1ServiceMonitorSpecEndpoints interval(String interval) { * * @return interval */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Interval at which metrics should be scraped") public String getInterval() { return interval; @@ -258,7 +258,7 @@ public V1ServiceMonitorSpecEndpoints addMetricRelabelingsItem( * * @return metricRelabelings */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "MetricRelabelConfigs to apply to samples before ingestion.") public List getMetricRelabelings() { return metricRelabelings; @@ -287,7 +287,7 @@ public V1ServiceMonitorSpecEndpoints putParamsItem(String key, List para * * @return params */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional HTTP URL parameters") public Map> getParams() { return params; @@ -308,7 +308,7 @@ public V1ServiceMonitorSpecEndpoints path(String path) { * * @return path */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "HTTP path to scrape for metrics.") public String getPath() { return path; @@ -329,7 +329,7 @@ public V1ServiceMonitorSpecEndpoints port(String port) { * * @return port */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the service port this endpoint refers to. Mutually exclusive with targetPort.") @@ -352,7 +352,7 @@ public V1ServiceMonitorSpecEndpoints proxyUrl(String proxyUrl) { * * @return proxyUrl */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ProxyURL eg http://proxyserver:2195 Directs scrapes to proxy through this endpoint.") public String getProxyUrl() { @@ -385,7 +385,7 @@ public V1ServiceMonitorSpecEndpoints addRelabelingsItem( * * @return relabelings */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "RelabelConfigs to apply to samples before scraping. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config") @@ -408,7 +408,7 @@ public V1ServiceMonitorSpecEndpoints scheme(String scheme) { * * @return scheme */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "HTTP scheme to use for scraping.") public String getScheme() { return scheme; @@ -429,7 +429,7 @@ public V1ServiceMonitorSpecEndpoints scrapeTimeout(String scrapeTimeout) { * * @return scrapeTimeout */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Timeout after which the scrape is ended") public String getScrapeTimeout() { return scrapeTimeout; @@ -450,7 +450,7 @@ public V1ServiceMonitorSpecEndpoints targetPort(Object targetPort) { * * @return targetPort */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name or number of the pod port this endpoint refers to. Mutually exclusive with port.") @@ -473,7 +473,7 @@ public V1ServiceMonitorSpecEndpoints tlsConfig(V1ServiceMonitorSpecTlsConfig tls * * @return tlsConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfig getTlsConfig() { return tlsConfig; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecMetricRelabelings.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecMetricRelabelings.java index ed7f5d1f24..f4029506b3 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecMetricRelabelings.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecMetricRelabelings.java @@ -28,7 +28,7 @@ @ApiModel( description = "RelabelConfig allows dynamic rewriting of the label set, being applied to samples before ingestion. It defines ``-section of Prometheus configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecMetricRelabelings { @@ -78,7 +78,7 @@ public V1ServiceMonitorSpecMetricRelabelings action(String action) { * * @return action */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Action to perform based on regex matching. Default is 'replace'") public String getAction() { return action; @@ -99,7 +99,7 @@ public V1ServiceMonitorSpecMetricRelabelings modulus(Long modulus) { * * @return modulus */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Modulus to take of the hash of the source label values.") public Long getModulus() { return modulus; @@ -120,7 +120,7 @@ public V1ServiceMonitorSpecMetricRelabelings regex(String regex) { * * @return regex */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Regular expression against which the extracted value is matched. Default is '(.*)'") public String getRegex() { @@ -143,7 +143,7 @@ public V1ServiceMonitorSpecMetricRelabelings replacement(String replacement) { * * @return replacement */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Replacement value against which a regex replace is performed if the regular expression matches. Regex capture groups are available. Default is '$1'") @@ -166,7 +166,7 @@ public V1ServiceMonitorSpecMetricRelabelings separator(String separator) { * * @return separator */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Separator placed between concatenated source label values. default is ';'.") public String getSeparator() { @@ -198,7 +198,7 @@ public V1ServiceMonitorSpecMetricRelabelings addSourceLabelsItem(String sourceLa * * @return sourceLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The source labels select values from existing labels. Their content is concatenated using the configured separator and matched against the configured regular expression for the replace, keep, and drop actions.") @@ -222,7 +222,7 @@ public V1ServiceMonitorSpecMetricRelabelings targetLabel(String targetLabel) { * * @return targetLabel */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Label to which the resulting value is written in a replace action. It is mandatory for replace actions. Regex capture groups are available.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecNamespaceSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecNamespaceSelector.java index d09b92228b..5eaab23300 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecNamespaceSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecNamespaceSelector.java @@ -22,7 +22,7 @@ /** Selector to select which namespaces the Endpoints objects are discovered from. */ @ApiModel( description = "Selector to select which namespaces the Endpoints objects are discovered from.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecNamespaceSelector { @@ -47,7 +47,7 @@ public V1ServiceMonitorSpecNamespaceSelector any(Boolean any) { * * @return any */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Boolean describing whether all namespaces are selected in contrast to a list restricting them.") @@ -78,7 +78,7 @@ public V1ServiceMonitorSpecNamespaceSelector addMatchNamesItem(String matchNames * * @return matchNames */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "List of namespace names.") public List getMatchNames() { return matchNames; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecSelector.java index 89cc6948f2..e13ceddb2f 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecSelector.java @@ -23,7 +23,7 @@ /** Selector to select Endpoints objects. */ @ApiModel(description = "Selector to select Endpoints objects.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecSelector { @@ -58,7 +58,7 @@ public V1ServiceMonitorSpecSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -93,7 +93,7 @@ public V1ServiceMonitorSpecSelector putMatchLabelsItem(String key, String matchL * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecSelectorMatchExpressions.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecSelectorMatchExpressions.java index cbf9529b99..4573e97e42 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecSelectorMatchExpressions.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecSelectorMatchExpressions.java @@ -26,7 +26,7 @@ @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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecSelectorMatchExpressions { @@ -110,7 +110,7 @@ public V1ServiceMonitorSpecSelectorMatchExpressions addValuesItem(String valuesI * * @return values */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfig.java index a80a3f1999..22cd929f50 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfig.java @@ -19,7 +19,7 @@ /** TLS configuration to use when scraping the endpoint */ @ApiModel(description = "TLS configuration to use when scraping the endpoint") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecTlsConfig { @@ -74,7 +74,7 @@ public V1ServiceMonitorSpecTlsConfig ca(V1ServiceMonitorSpecTlsConfigCa ca) { * * @return ca */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCa getCa() { return ca; @@ -95,7 +95,7 @@ public V1ServiceMonitorSpecTlsConfig caFile(String caFile) { * * @return caFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the CA cert in the Prometheus container to use for the targets.") public String getCaFile() { @@ -117,7 +117,7 @@ public V1ServiceMonitorSpecTlsConfig cert(V1ServiceMonitorSpecTlsConfigCert cert * * @return cert */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCert getCert() { return cert; @@ -138,7 +138,7 @@ public V1ServiceMonitorSpecTlsConfig certFile(String certFile) { * * @return certFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client cert file in the Prometheus container for the targets.") public String getCertFile() { @@ -160,7 +160,7 @@ public V1ServiceMonitorSpecTlsConfig insecureSkipVerify(Boolean insecureSkipVeri * * @return insecureSkipVerify */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Disable target certificate validation.") public Boolean getInsecureSkipVerify() { return insecureSkipVerify; @@ -181,7 +181,7 @@ public V1ServiceMonitorSpecTlsConfig keyFile(String keyFile) { * * @return keyFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client key file in the Prometheus container for the targets.") public String getKeyFile() { @@ -203,7 +203,7 @@ public V1ServiceMonitorSpecTlsConfig keySecret(V1ServiceMonitorSpecTlsConfigKeyS * * @return keySecret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigKeySecret getKeySecret() { return keySecret; @@ -224,7 +224,7 @@ public V1ServiceMonitorSpecTlsConfig serverName(String serverName) { * * @return serverName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Used to verify the hostname for the targets.") public String getServerName() { return serverName; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCa.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCa.java index 7bb501f49c..55e65afb59 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCa.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCa.java @@ -19,7 +19,7 @@ /** Stuct containing the CA cert to use for the targets. */ @ApiModel(description = "Stuct containing the CA cert to use for the targets.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecTlsConfigCa { @@ -45,7 +45,7 @@ public V1ServiceMonitorSpecTlsConfigCa configMap( * * @return configMap */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCaConfigMap getConfigMap() { return configMap; @@ -66,7 +66,7 @@ public V1ServiceMonitorSpecTlsConfigCa secret(V1ServiceMonitorSpecTlsConfigCaSec * * @return secret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCaSecret getSecret() { return secret; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCaConfigMap.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCaConfigMap.java index 800710bd02..eb6f0ade6f 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCaConfigMap.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCaConfigMap.java @@ -19,7 +19,7 @@ /** ConfigMap containing data to use for the targets. */ @ApiModel(description = "ConfigMap containing data to use for the targets.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecTlsConfigCaConfigMap { @@ -71,7 +71,7 @@ public V1ServiceMonitorSpecTlsConfigCaConfigMap name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -94,7 +94,7 @@ public V1ServiceMonitorSpecTlsConfigCaConfigMap optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the ConfigMap or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCaSecret.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCaSecret.java index 2aa7851d1d..0f997370bf 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCaSecret.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCaSecret.java @@ -19,7 +19,7 @@ /** Secret containing data to use for the targets. */ @ApiModel(description = "Secret containing data to use for the targets.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecTlsConfigCaSecret { @@ -73,7 +73,7 @@ public V1ServiceMonitorSpecTlsConfigCaSecret name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -96,7 +96,7 @@ public V1ServiceMonitorSpecTlsConfigCaSecret optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCert.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCert.java index d786834188..797d051ba5 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCert.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigCert.java @@ -19,7 +19,7 @@ /** Struct containing the client cert file for the targets. */ @ApiModel(description = "Struct containing the client cert file for the targets.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecTlsConfigCert { @@ -45,7 +45,7 @@ public V1ServiceMonitorSpecTlsConfigCert configMap( * * @return configMap */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCaConfigMap getConfigMap() { return configMap; @@ -66,7 +66,7 @@ public V1ServiceMonitorSpecTlsConfigCert secret(V1ServiceMonitorSpecTlsConfigCaS * * @return secret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCaSecret getSecret() { return secret; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigKeySecret.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigKeySecret.java index 57eb429338..7d2e52c871 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigKeySecret.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ServiceMonitorSpecTlsConfigKeySecret.java @@ -19,7 +19,7 @@ /** Secret containing the client key file for the targets. */ @ApiModel(description = "Secret containing the client key file for the targets.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ServiceMonitorSpecTlsConfigKeySecret { @@ -73,7 +73,7 @@ public V1ServiceMonitorSpecTlsConfigKeySecret name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -96,7 +96,7 @@ public V1ServiceMonitorSpecTlsConfigKeySecret optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRuler.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRuler.java index bd2ce6d649..4ec3462472 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRuler.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRuler.java @@ -20,7 +20,7 @@ /** ThanosRuler defines a ThanosRuler deployment. */ @ApiModel(description = "ThanosRuler defines a ThanosRuler deployment.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRuler implements io.kubernetes.client.common.KubernetesObject { @@ -63,7 +63,7 @@ public V1ThanosRuler apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -89,7 +89,7 @@ public V1ThanosRuler kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -112,7 +112,7 @@ public V1ThanosRuler metadata(V1ObjectMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ObjectMeta getMetadata() { return metadata; @@ -153,7 +153,7 @@ public V1ThanosRuler status(V1ThanosRulerStatus status) { * * @return status */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerStatus getStatus() { return status; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerList.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerList.java index 387bdb6090..64a8c423ae 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerList.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerList.java @@ -22,7 +22,7 @@ /** ThanosRulerList is a list of ThanosRuler */ @ApiModel(description = "ThanosRulerList is a list of ThanosRuler") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerList implements io.kubernetes.client.common.KubernetesListObject { @@ -60,7 +60,7 @@ public V1ThanosRulerList apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -115,7 +115,7 @@ public V1ThanosRulerList kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -138,7 +138,7 @@ public V1ThanosRulerList metadata(V1ListMeta metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ListMeta getMetadata() { return metadata; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpec.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpec.java index ae724934fe..1fa7b27839 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpec.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpec.java @@ -28,7 +28,7 @@ @ApiModel( description = "Specification of the desired behavior of the ThanosRuler cluster. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpec { @@ -228,7 +228,7 @@ public V1ThanosRulerSpec affinity(V1ThanosRulerSpecAffinity affinity) { * * @return affinity */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAffinity getAffinity() { return affinity; @@ -259,7 +259,7 @@ public V1ThanosRulerSpec addAlertDropLabelsItem(String alertDropLabelsItem) { * * @return alertDropLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "AlertDropLabels configure the label names which should be dropped in ThanosRuler alerts. If `labels` field is not provided, `thanos_ruler_replica` will be dropped in alerts by default.") @@ -283,7 +283,7 @@ public V1ThanosRulerSpec alertQueryUrl(String alertQueryUrl) { * * @return alertQueryUrl */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The external Query URL the Thanos Ruler will set in the 'Source' field of all alerts. Maps to the '--alert.query-url' CLI arg.") @@ -307,7 +307,7 @@ public V1ThanosRulerSpec alertmanagersConfig( * * @return alertmanagersConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAlertmanagersConfig getAlertmanagersConfig() { return alertmanagersConfig; @@ -338,7 +338,7 @@ public V1ThanosRulerSpec addAlertmanagersUrlItem(String alertmanagersUrlItem) { * * @return alertmanagersUrl */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Define URLs to send alerts to Alertmanager. For Thanos v0.10.0 and higher, AlertManagersConfig should be used instead. Note: this field will be ignored if AlertManagersConfig is specified. Maps to the `alertmanagers.url` arg.") @@ -376,7 +376,7 @@ public V1ThanosRulerSpec addContainersItem(V1ThanosRulerSpecContainers container * * @return containers */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Containers allows injecting additional containers or modifying operator generated containers. This can be used to allow adding an authentication proxy to a ThanosRuler pod or to change the behavior of an operator generated container. Containers described here modify an operator generated container if they share the same name and modifications are done via a strategic merge patch. The current container names are: `thanos-ruler` and `rules-configmap-reloader`. Overriding containers is entirely outside the scope of what the maintainers will support and by doing so, you accept that this behaviour may break at any time without notice.") @@ -401,7 +401,7 @@ public V1ThanosRulerSpec enforcedNamespaceLabel(String enforcedNamespaceLabel) { * * @return enforcedNamespaceLabel */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "EnforcedNamespaceLabel enforces adding a namespace label of origin for each alert and metric that is user created. The label value will always be the namespace of the object that is being created.") @@ -424,7 +424,7 @@ public V1ThanosRulerSpec evaluationInterval(String evaluationInterval) { * * @return evaluationInterval */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Interval between consecutive evaluations.") public String getEvaluationInterval() { return evaluationInterval; @@ -446,7 +446,7 @@ public V1ThanosRulerSpec externalPrefix(String externalPrefix) { * * @return externalPrefix */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The external URL the Thanos Ruler instances will be available under. This is necessary to generate correct URLs. This is necessary if Thanos Ruler is not served from root of a DNS name.") @@ -470,7 +470,7 @@ public V1ThanosRulerSpec grpcServerTlsConfig( * * @return grpcServerTlsConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecGrpcServerTlsConfig getGrpcServerTlsConfig() { return grpcServerTlsConfig; @@ -491,7 +491,7 @@ public V1ThanosRulerSpec image(String image) { * * @return image */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Thanos container image URL.") public String getImage() { return image; @@ -524,7 +524,7 @@ public V1ThanosRulerSpec addImagePullSecretsItem( * * @return imagePullSecrets */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "An optional list of references to secrets in the same namespace to use for pulling thanos images from registries see http://kubernetes.io/docs/user-guide/images#specifying-imagepullsecrets-on-a-pod") @@ -561,7 +561,7 @@ public V1ThanosRulerSpec addInitContainersItem(V1ThanosRulerSpecContainers initC * * @return initContainers */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "InitContainers allows adding initContainers to the pod definition. Those can be used to e.g. fetch secrets for injection into the ThanosRuler configuration from external sources. Any errors during the execution of an initContainer will lead to a restart of the Pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ Using initContainers for any use case other then secret fetching is entirely outside the scope of what the maintainers will support and by doing so, you accept that this behaviour may break at any time without notice.") @@ -593,7 +593,7 @@ public V1ThanosRulerSpec putLabelsItem(String key, String labelsItem) { * * @return labels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Labels configure the external label pairs to ThanosRuler. If not provided, default replica label `thanos_ruler_replica` will be added as a label and be dropped in alerts.") @@ -617,7 +617,7 @@ public V1ThanosRulerSpec listenLocal(Boolean listenLocal) { * * @return listenLocal */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ListenLocal makes the Thanos ruler listen on loopback, so that it does not bind against the Pod IP.") @@ -640,7 +640,7 @@ public V1ThanosRulerSpec logFormat(String logFormat) { * * @return logFormat */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Log format for ThanosRuler to be configured with.") public String getLogFormat() { return logFormat; @@ -661,7 +661,7 @@ public V1ThanosRulerSpec logLevel(String logLevel) { * * @return logLevel */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Log level for ThanosRuler to be configured with.") public String getLogLevel() { return logLevel; @@ -690,7 +690,7 @@ public V1ThanosRulerSpec putNodeSelectorItem(String key, String nodeSelectorItem * * @return nodeSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Define which Nodes the Pods are scheduled on.") public Map getNodeSelector() { return nodeSelector; @@ -712,7 +712,7 @@ public V1ThanosRulerSpec objectStorageConfig( * * @return objectStorageConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecObjectStorageConfig getObjectStorageConfig() { return objectStorageConfig; @@ -734,7 +734,7 @@ public V1ThanosRulerSpec paused(Boolean paused) { * * @return paused */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "When a ThanosRuler deployment is paused, no actions except for deletion will be performed on the underlying objects.") @@ -757,7 +757,7 @@ public V1ThanosRulerSpec podMetadata(V1ThanosRulerSpecPodMetadata podMetadata) { * * @return podMetadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecPodMetadata getPodMetadata() { return podMetadata; @@ -778,7 +778,7 @@ public V1ThanosRulerSpec portName(String portName) { * * @return portName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Port name used for the pods and governing service. This defaults to web") public String getPortName() { @@ -800,7 +800,7 @@ public V1ThanosRulerSpec priorityClassName(String priorityClassName) { * * @return priorityClassName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Priority class assigned to the Pods") public String getPriorityClassName() { return priorityClassName; @@ -821,7 +821,7 @@ public V1ThanosRulerSpec queryConfig(V1ThanosRulerSpecQueryConfig queryConfig) { * * @return queryConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecQueryConfig getQueryConfig() { return queryConfig; @@ -851,7 +851,7 @@ public V1ThanosRulerSpec addQueryEndpointsItem(String queryEndpointsItem) { * * @return queryEndpoints */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "QueryEndpoints defines Thanos querier endpoints from which to query metrics. Maps to the --query flag of thanos ruler.") @@ -874,7 +874,7 @@ public V1ThanosRulerSpec replicas(Integer replicas) { * * @return replicas */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Number of thanos ruler instances to deploy.") public Integer getReplicas() { return replicas; @@ -895,7 +895,7 @@ public V1ThanosRulerSpec resources(V1ThanosRulerSpecResources1 resources) { * * @return resources */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecResources1 getResources() { return resources; @@ -918,7 +918,7 @@ public V1ThanosRulerSpec retention(String retention) { * * @return retention */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Time duration ThanosRuler shall retain data for. Default is '24h', and must match the regular expression `[0-9]+(ms|s|m|h|d|w|y)` (milliseconds seconds minutes hours days weeks years).") @@ -942,7 +942,7 @@ public V1ThanosRulerSpec routePrefix(String routePrefix) { * * @return routePrefix */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The route prefix ThanosRuler registers HTTP handlers for. This allows thanos UI to be served on a sub-path.") @@ -966,7 +966,7 @@ public V1ThanosRulerSpec ruleNamespaceSelector( * * @return ruleNamespaceSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecRuleNamespaceSelector getRuleNamespaceSelector() { return ruleNamespaceSelector; @@ -988,7 +988,7 @@ public V1ThanosRulerSpec ruleSelector(V1ThanosRulerSpecRuleSelector ruleSelector * * @return ruleSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecRuleSelector getRuleSelector() { return ruleSelector; @@ -1009,7 +1009,7 @@ public V1ThanosRulerSpec securityContext(V1ThanosRulerSpecSecurityContext1 secur * * @return securityContext */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecurityContext1 getSecurityContext() { return securityContext; @@ -1030,7 +1030,7 @@ public V1ThanosRulerSpec serviceAccountName(String serviceAccountName) { * * @return serviceAccountName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ServiceAccountName is the name of the ServiceAccount to use to run the Thanos Ruler Pods.") @@ -1053,7 +1053,7 @@ public V1ThanosRulerSpec storage(V1ThanosRulerSpecStorage storage) { * * @return storage */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorage getStorage() { return storage; @@ -1082,7 +1082,7 @@ public V1ThanosRulerSpec addTolerationsItem(V1ThanosRulerSpecTolerations tolerat * * @return tolerations */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "If specified, the pod's tolerations.") public List getTolerations() { return tolerations; @@ -1103,7 +1103,7 @@ public V1ThanosRulerSpec tracingConfig(V1ThanosRulerSpecTracingConfig tracingCon * * @return tracingConfig */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecTracingConfig getTracingConfig() { return tracingConfig; @@ -1134,7 +1134,7 @@ public V1ThanosRulerSpec addVolumesItem(V1ThanosRulerSpecVolumes volumesItem) { * * @return volumes */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Volumes allows configuration of additional volumes on the output StatefulSet definition. Volumes specified will be appended to other volumes that are generated as a result of StorageSpec objects.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinity.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinity.java index ae38c5a5ac..0f430848e0 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinity.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinity.java @@ -19,7 +19,7 @@ /** If specified, the pod's scheduling constraints. */ @ApiModel(description = "If specified, the pod's scheduling constraints.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinity { @@ -50,7 +50,7 @@ public V1ThanosRulerSpecAffinity nodeAffinity( * * @return nodeAffinity */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAffinityNodeAffinity getNodeAffinity() { return nodeAffinity; @@ -71,7 +71,7 @@ public V1ThanosRulerSpecAffinity podAffinity(V1ThanosRulerSpecAffinityPodAffinit * * @return podAffinity */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAffinityPodAffinity getPodAffinity() { return podAffinity; @@ -93,7 +93,7 @@ public V1ThanosRulerSpecAffinity podAntiAffinity( * * @return podAntiAffinity */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAffinityPodAntiAffinity getPodAntiAffinity() { return podAntiAffinity; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinity.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinity.java index 189621a212..7990296ec1 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinity.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinity.java @@ -21,7 +21,7 @@ /** Describes node affinity scheduling rules for the pod. */ @ApiModel(description = "Describes node affinity scheduling rules for the pod.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityNodeAffinity { @@ -73,7 +73,7 @@ public V1ThanosRulerSpecAffinityNodeAffinity preferredDuringSchedulingIgnoredDur * * @return preferredDuringSchedulingIgnoredDuringExecution */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.") @@ -103,7 +103,7 @@ public V1ThanosRulerSpecAffinityNodeAffinity requiredDuringSchedulingIgnoredDuri * * @return requiredDuringSchedulingIgnoredDuringExecution */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution getRequiredDuringSchedulingIgnoredDuringExecution() { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreference.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreference.java index d9fc9ec317..7770d5422c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreference.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreference.java @@ -21,7 +21,7 @@ /** A node selector term, associated with the corresponding weight. */ @ApiModel(description = "A node selector term, associated with the corresponding weight.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityNodeAffinityPreference { @@ -58,7 +58,7 @@ public V1ThanosRulerSpecAffinityNodeAffinityPreference addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of node selector requirements by node's labels.") public List getMatchExpressions() { @@ -92,7 +92,7 @@ public V1ThanosRulerSpecAffinityNodeAffinityPreference addMatchFieldsItem( * * @return matchFields */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of node selector requirements by node's fields.") public List getMatchFields() { return matchFields; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreferenceMatchExpressions.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreferenceMatchExpressions.java index f0bb9d867c..306e245b1e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreferenceMatchExpressions.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreferenceMatchExpressions.java @@ -26,7 +26,7 @@ @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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityNodeAffinityPreferenceMatchExpressions { @@ -113,7 +113,7 @@ public V1ThanosRulerSpecAffinityNodeAffinityPreferenceMatchExpressions addValues * * @return values */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java index 1e723d9c69..1cabafa215 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution.java @@ -24,7 +24,7 @@ @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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityNodeAffinityPreferredDuringSchedulingIgnoredDuringExecution { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java index 31b9590649..0a79029be0 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution.java @@ -28,7 +28,7 @@ @ApiModel( 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 an update), the system may or may not try to eventually evict the pod from its node.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java index 2c8be77832..ba3ac7f0b4 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionNodeSelectorTerms.java @@ -26,7 +26,7 @@ @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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public @@ -68,7 +68,7 @@ class V1ThanosRulerSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuring * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of node selector requirements by node's labels.") public List getMatchExpressions() { @@ -106,7 +106,7 @@ public void setMatchExpressions( * * @return matchFields */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "A list of node selector requirements by node's fields.") public List getMatchFields() { return matchFields; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinity.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinity.java index 6c87da869b..1bdc33ad15 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinity.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinity.java @@ -26,7 +26,7 @@ @ApiModel( description = "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityPodAffinity { @@ -78,7 +78,7 @@ public V1ThanosRulerSpecAffinityPodAffinity preferredDuringSchedulingIgnoredDuri * * @return preferredDuringSchedulingIgnoredDuringExecution */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") @@ -126,7 +126,7 @@ public V1ThanosRulerSpecAffinityPodAffinity addRequiredDuringSchedulingIgnoredDu * * @return requiredDuringSchedulingIgnoredDuringExecution */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPodAffinityTerm.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPodAffinityTerm.java index 4aed698bc0..0069d2ff6c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPodAffinityTerm.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPodAffinityTerm.java @@ -21,7 +21,7 @@ /** Required. A pod affinity term, associated with the corresponding weight. */ @ApiModel(description = "Required. A pod affinity term, associated with the corresponding weight.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityPodAffinityPodAffinityTerm { @@ -52,7 +52,7 @@ public V1ThanosRulerSpecAffinityPodAffinityPodAffinityTerm labelSelector( * * @return labelSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAffinityPodAffinityPodAffinityTermLabelSelector getLabelSelector() { return labelSelector; @@ -84,7 +84,7 @@ public V1ThanosRulerSpecAffinityPodAffinityPodAffinityTerm addNamespacesItem( * * @return namespaces */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPodAffinityTermLabelSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPodAffinityTermLabelSelector.java index f29fe72c25..ed902be947 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPodAffinityTermLabelSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPodAffinityTermLabelSelector.java @@ -23,7 +23,7 @@ /** A label query over a set of resources, in this case pods. */ @ApiModel(description = "A label query over a set of resources, in this case pods.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityPodAffinityPodAffinityTermLabelSelector { @@ -58,7 +58,7 @@ public V1ThanosRulerSpecAffinityPodAffinityPodAffinityTermLabelSelector addMatch * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -95,7 +95,7 @@ public V1ThanosRulerSpecAffinityPodAffinityPodAffinityTermLabelSelector putMatch * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java index c250c30eee..34a24f8081 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution.java @@ -24,7 +24,7 @@ @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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityPodAffinityPreferredDuringSchedulingIgnoredDuringExecution { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java index 31bf4cdfd9..b751ba92db 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution.java @@ -28,7 +28,7 @@ @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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecution { @@ -60,7 +60,7 @@ public class V1ThanosRulerSpecAffinityPodAffinityRequiredDuringSchedulingIgnored * * @return labelSelector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAffinityPodAffinityPodAffinityTermLabelSelector getLabelSelector() { return labelSelector; @@ -93,7 +93,7 @@ public void setLabelSelector( * * @return namespaces */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAntiAffinity.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAntiAffinity.java index d86ba6b47c..3c40401e9a 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAntiAffinity.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAffinityPodAntiAffinity.java @@ -26,7 +26,7 @@ @ApiModel( description = "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAffinityPodAntiAffinity { @@ -78,7 +78,7 @@ public V1ThanosRulerSpecAffinityPodAntiAffinity preferredDuringSchedulingIgnored * * @return preferredDuringSchedulingIgnoredDuringExecution */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") @@ -127,7 +127,7 @@ public V1ThanosRulerSpecAffinityPodAntiAffinity requiredDuringSchedulingIgnoredD * * @return requiredDuringSchedulingIgnoredDuringExecution */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAlertmanagersConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAlertmanagersConfig.java index a0813a5221..ce37a05fd4 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAlertmanagersConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAlertmanagersConfig.java @@ -24,7 +24,7 @@ @ApiModel( description = "Define configuration for connecting to alertmanager. Only available with thanos v0.10.0 and higher. Maps to the `alertmanagers.config` arg.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAlertmanagersConfig { @@ -78,7 +78,7 @@ public V1ThanosRulerSpecAlertmanagersConfig name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -101,7 +101,7 @@ public V1ThanosRulerSpecAlertmanagersConfig optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAwsElasticBlockStore.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAwsElasticBlockStore.java index 260bbea5b4..1ec0ff3e7d 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAwsElasticBlockStore.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAwsElasticBlockStore.java @@ -25,7 +25,7 @@ @ApiModel( description = "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAwsElasticBlockStore { @@ -64,7 +64,7 @@ public V1ThanosRulerSpecAwsElasticBlockStore fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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 TODO: how do we prevent errors in the filesystem from compromising the machine") @@ -90,7 +90,7 @@ public V1ThanosRulerSpecAwsElasticBlockStore partition(Integer partition) { * * @return partition */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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).") @@ -115,7 +115,7 @@ public V1ThanosRulerSpecAwsElasticBlockStore readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAzureDisk.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAzureDisk.java index 732b7536a8..8f235ace7e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAzureDisk.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAzureDisk.java @@ -21,7 +21,7 @@ @ApiModel( description = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAzureDisk { @@ -66,7 +66,7 @@ public V1ThanosRulerSpecAzureDisk cachingMode(String cachingMode) { * * @return cachingMode */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Host Caching mode: None, Read Only, Read Write.") public String getCachingMode() { return cachingMode; @@ -129,7 +129,7 @@ public V1ThanosRulerSpecAzureDisk fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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.") @@ -154,7 +154,7 @@ public V1ThanosRulerSpecAzureDisk kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Expected values 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") @@ -177,7 +177,7 @@ public V1ThanosRulerSpecAzureDisk readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAzureFile.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAzureFile.java index 5310468ac2..58a373ea2e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAzureFile.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecAzureFile.java @@ -21,7 +21,7 @@ @ApiModel( description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecAzureFile { @@ -51,7 +51,7 @@ public V1ThanosRulerSpecAzureFile readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCephfs.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCephfs.java index 30a0a2d9f2..c7ea0b21de 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCephfs.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCephfs.java @@ -22,7 +22,7 @@ /** CephFS represents a Ceph FS mount on the host that shares a pod's lifetime */ @ApiModel( description = "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecCephfs { @@ -96,7 +96,7 @@ public V1ThanosRulerSpecCephfs path(String path) { * * @return path */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: Used as the mounted root, rather than the full Ceph tree, default is /") public String getPath() { @@ -119,7 +119,7 @@ public V1ThanosRulerSpecCephfs readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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") @@ -143,7 +143,7 @@ public V1ThanosRulerSpecCephfs secretFile(String secretFile) { * * @return secretFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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") @@ -166,7 +166,7 @@ public V1ThanosRulerSpecCephfs secretRef(V1ThanosRulerSpecCephfsSecretRef secret * * @return secretRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecCephfsSecretRef getSecretRef() { return secretRef; @@ -188,7 +188,7 @@ public V1ThanosRulerSpecCephfs user(String user) { * * @return user */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCephfsSecretRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCephfsSecretRef.java index ad583f4bfc..e9066708d6 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCephfsSecretRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCephfsSecretRef.java @@ -24,7 +24,7 @@ @ApiModel( description = "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecCephfsSecretRef { @@ -46,7 +46,7 @@ public V1ThanosRulerSpecCephfsSecretRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCinder.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCinder.java index b30dbd2f0e..c61077d424 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCinder.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCinder.java @@ -24,7 +24,7 @@ @ApiModel( description = "Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecCinder { @@ -61,7 +61,7 @@ public V1ThanosRulerSpecCinder fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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") @@ -85,7 +85,7 @@ public V1ThanosRulerSpecCinder readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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") @@ -108,7 +108,7 @@ public V1ThanosRulerSpecCinder secretRef(V1ThanosRulerSpecCinderSecretRef secret * * @return secretRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecCinderSecretRef getSecretRef() { return secretRef; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCinderSecretRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCinderSecretRef.java index 7146bfe425..f65b464aca 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCinderSecretRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCinderSecretRef.java @@ -21,7 +21,7 @@ @ApiModel( description = "Optional: points to a secret object containing parameters used to connect to OpenStack.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecCinderSecretRef { @@ -43,7 +43,7 @@ public V1ThanosRulerSpecCinderSecretRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMap.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMap.java index f5a1181a18..cf6309b160 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMap.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMap.java @@ -21,7 +21,7 @@ /** ConfigMap represents a configMap that should populate this volume */ @ApiModel(description = "ConfigMap represents a configMap that should populate this volume") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecConfigMap { @@ -59,7 +59,7 @@ public V1ThanosRulerSpecConfigMap defaultMode(Integer defaultMode) { * * @return defaultMode */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. 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.") @@ -95,7 +95,7 @@ public V1ThanosRulerSpecConfigMap addItemsItem(V1ThanosRulerSpecConfigMapItems i * * @return items */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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 '..'.") @@ -120,7 +120,7 @@ public V1ThanosRulerSpecConfigMap name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -143,7 +143,7 @@ public V1ThanosRulerSpecConfigMap optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the ConfigMap or its keys must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMapItems.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMapItems.java index d12cac44a2..aaa68e647c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMapItems.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMapItems.java @@ -19,7 +19,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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecConfigMapItems { @@ -71,7 +71,7 @@ public V1ThanosRulerSpecConfigMapItems mode(Integer mode) { * * @return mode */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: mode bits to use on this file, must be a value between 0 and 0777. 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.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMapRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMapRef.java index 7f3597185f..628f0632a3 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMapRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecConfigMapRef.java @@ -19,7 +19,7 @@ /** The ConfigMap to select from */ @ApiModel(description = "The ConfigMap to select from") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecConfigMapRef { @@ -46,7 +46,7 @@ public V1ThanosRulerSpecConfigMapRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -69,7 +69,7 @@ public V1ThanosRulerSpecConfigMapRef optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the ConfigMap must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecContainers.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecContainers.java index a7303597f1..c359859cd6 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecContainers.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecContainers.java @@ -21,7 +21,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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecContainers { @@ -161,7 +161,7 @@ public V1ThanosRulerSpecContainers addArgsItem(String argsItem) { * * @return args */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Arguments to the entrypoint. The docker 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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(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") @@ -198,7 +198,7 @@ public V1ThanosRulerSpecContainers addCommandItem(String commandItem) { * * @return command */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Entrypoint array. Not executed within a shell. The docker 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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(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") @@ -229,7 +229,7 @@ public V1ThanosRulerSpecContainers addEnvItem(V1ThanosRulerSpecEnv envItem) { * * @return env */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "List of environment variables to set in the container. Cannot be updated.") public List getEnv() { @@ -263,7 +263,7 @@ public V1ThanosRulerSpecContainers addEnvFromItem(V1ThanosRulerSpecEnvFrom envFr * * @return envFrom */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") @@ -288,7 +288,7 @@ public V1ThanosRulerSpecContainers image(String image) { * * @return image */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Docker 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.") @@ -313,7 +313,7 @@ public V1ThanosRulerSpecContainers imagePullPolicy(String imagePullPolicy) { * * @return imagePullPolicy */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images") @@ -336,7 +336,7 @@ public V1ThanosRulerSpecContainers lifecycle(V1ThanosRulerSpecLifecycle lifecycl * * @return lifecycle */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecycle getLifecycle() { return lifecycle; @@ -357,7 +357,7 @@ public V1ThanosRulerSpecContainers livenessProbe(V1ThanosRulerSpecLivenessProbe * * @return livenessProbe */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLivenessProbe getLivenessProbe() { return livenessProbe; @@ -414,7 +414,7 @@ public V1ThanosRulerSpecContainers addPortsItem(V1ThanosRulerSpecPorts portsItem * * @return ports */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. 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. Cannot be updated.") @@ -438,7 +438,7 @@ public V1ThanosRulerSpecContainers readinessProbe( * * @return readinessProbe */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecReadinessProbe getReadinessProbe() { return readinessProbe; @@ -459,7 +459,7 @@ public V1ThanosRulerSpecContainers resources(V1ThanosRulerSpecResources resource * * @return resources */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecResources getResources() { return resources; @@ -481,7 +481,7 @@ public V1ThanosRulerSpecContainers securityContext( * * @return securityContext */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecurityContext getSecurityContext() { return securityContext; @@ -502,7 +502,7 @@ public V1ThanosRulerSpecContainers startupProbe(V1ThanosRulerSpecStartupProbe st * * @return startupProbe */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStartupProbe getStartupProbe() { return startupProbe; @@ -524,7 +524,7 @@ public V1ThanosRulerSpecContainers stdin(Boolean stdin) { * * @return stdin */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.") @@ -553,7 +553,7 @@ public V1ThanosRulerSpecContainers stdinOnce(Boolean stdinOnce) { * * @return stdinOnce */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false") @@ -580,7 +580,7 @@ public V1ThanosRulerSpecContainers terminationMessagePath(String terminationMess * * @return terminationMessagePath */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.") @@ -607,7 +607,7 @@ public V1ThanosRulerSpecContainers terminationMessagePolicy(String terminationMe * * @return terminationMessagePolicy */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.") @@ -631,7 +631,7 @@ public V1ThanosRulerSpecContainers tty(Boolean tty) { * * @return tty */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.") @@ -664,7 +664,7 @@ public V1ThanosRulerSpecContainers addVolumeDevicesItem( * * @return volumeDevices */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "volumeDevices is the list of block devices to be used by the container. This is a beta feature.") @@ -697,7 +697,7 @@ public V1ThanosRulerSpecContainers addVolumeMountsItem( * * @return volumeMounts */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Pod volumes to mount into the container's filesystem. Cannot be updated.") public List getVolumeMounts() { @@ -720,7 +720,7 @@ public V1ThanosRulerSpecContainers workingDir(String workingDir) { * * @return workingDir */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCsi.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCsi.java index 5bba259262..ce2af89c69 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCsi.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCsi.java @@ -26,7 +26,7 @@ @ApiModel( description = "CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature).") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecCsi { @@ -92,7 +92,7 @@ public V1ThanosRulerSpecCsi fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Filesystem type 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.") @@ -116,7 +116,7 @@ public V1ThanosRulerSpecCsi nodePublishSecretRef( * * @return nodePublishSecretRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecCsiNodePublishSecretRef getNodePublishSecretRef() { return nodePublishSecretRef; @@ -138,7 +138,7 @@ public V1ThanosRulerSpecCsi readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Specifies a read-only configuration for the volume. Defaults to false (read/write).") public Boolean getReadOnly() { @@ -169,7 +169,7 @@ public V1ThanosRulerSpecCsi putVolumeAttributesItem(String key, String volumeAtt * * @return volumeAttributes */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCsiNodePublishSecretRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCsiNodePublishSecretRef.java index c0891bd006..310280c60c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCsiNodePublishSecretRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecCsiNodePublishSecretRef.java @@ -26,7 +26,7 @@ @ApiModel( description = "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecCsiNodePublishSecretRef { @@ -48,7 +48,7 @@ public V1ThanosRulerSpecCsiNodePublishSecretRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPI.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPI.java index 150fb0ca71..c8b64feff5 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPI.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPI.java @@ -23,7 +23,7 @@ @ApiModel( description = "DownwardAPI represents downward API about the pod that should populate this volume") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecDownwardAPI { @@ -51,7 +51,7 @@ public V1ThanosRulerSpecDownwardAPI defaultMode(Integer defaultMode) { * * @return defaultMode */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. 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.") @@ -82,7 +82,7 @@ public V1ThanosRulerSpecDownwardAPI addItemsItem(V1ThanosRulerSpecDownwardAPIIte * * @return items */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Items is a list of downward API volume file") public List getItems() { return items; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIFieldRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIFieldRef.java index 03ed1cdb0f..7c7ce6d435 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIFieldRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIFieldRef.java @@ -23,7 +23,7 @@ @ApiModel( description = "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecDownwardAPIFieldRef { @@ -48,7 +48,7 @@ public V1ThanosRulerSpecDownwardAPIFieldRef apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".") public String getApiVersion() { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIItems.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIItems.java index f5f8f1ac9f..19f2a8b8a0 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIItems.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIItems.java @@ -21,7 +21,7 @@ @ApiModel( description = "DownwardAPIVolumeFile represents information to create the file containing the pod field") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecDownwardAPIItems { @@ -56,7 +56,7 @@ public V1ThanosRulerSpecDownwardAPIItems fieldRef(V1ThanosRulerSpecDownwardAPIFi * * @return fieldRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecDownwardAPIFieldRef getFieldRef() { return fieldRef; @@ -79,7 +79,7 @@ public V1ThanosRulerSpecDownwardAPIItems mode(Integer mode) { * * @return mode */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: mode bits to use on this file, must be a value between 0 and 0777. 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.") @@ -128,7 +128,7 @@ public V1ThanosRulerSpecDownwardAPIItems resourceFieldRef( * * @return resourceFieldRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecDownwardAPIResourceFieldRef getResourceFieldRef() { return resourceFieldRef; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIResourceFieldRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIResourceFieldRef.java index 892fe9b635..16d07d9215 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIResourceFieldRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecDownwardAPIResourceFieldRef.java @@ -24,7 +24,7 @@ @ApiModel( description = "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecDownwardAPIResourceFieldRef { @@ -54,7 +54,7 @@ public V1ThanosRulerSpecDownwardAPIResourceFieldRef containerName(String contain * * @return containerName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Container name: required for volumes, optional for env vars") public String getContainerName() { return containerName; @@ -75,7 +75,7 @@ public V1ThanosRulerSpecDownwardAPIResourceFieldRef divisor(String divisor) { * * @return divisor */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Specifies the output format of the exposed resources, defaults to \"1\"") public String getDivisor() { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEmptyDir.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEmptyDir.java index 035df724df..9f52e1c09d 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEmptyDir.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEmptyDir.java @@ -24,7 +24,7 @@ @ApiModel( description = "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecEmptyDir { @@ -51,7 +51,7 @@ public V1ThanosRulerSpecEmptyDir medium(String medium) { * * @return medium */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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") @@ -78,7 +78,7 @@ public V1ThanosRulerSpecEmptyDir sizeLimit(String sizeLimit) { * * @return sizeLimit */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEnv.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEnv.java index 9695d3c8df..f8ffbb747b 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEnv.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEnv.java @@ -19,7 +19,7 @@ /** EnvVar represents an environment variable present in a Container. */ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecEnv { @@ -75,7 +75,7 @@ public V1ThanosRulerSpecEnv value(String value) { * * @return value */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Variable references $(VAR_NAME) are expanded using the previous 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. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".") @@ -98,7 +98,7 @@ public V1ThanosRulerSpecEnv valueFrom(V1ThanosRulerSpecValueFrom valueFrom) { * * @return valueFrom */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecValueFrom getValueFrom() { return valueFrom; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEnvFrom.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEnvFrom.java index b50ed8e8bc..653aa17d17 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEnvFrom.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecEnvFrom.java @@ -19,7 +19,7 @@ /** EnvFromSource represents the source of a set of ConfigMaps */ @ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecEnvFrom { @@ -49,7 +49,7 @@ public V1ThanosRulerSpecEnvFrom configMapRef(V1ThanosRulerSpecConfigMapRef confi * * @return configMapRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecConfigMapRef getConfigMapRef() { return configMapRef; @@ -70,7 +70,7 @@ public V1ThanosRulerSpecEnvFrom prefix(String prefix) { * * @return prefix */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.") @@ -93,7 +93,7 @@ public V1ThanosRulerSpecEnvFrom secretRef(V1ThanosRulerSpecSecretRef secretRef) * * @return secretRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecretRef getSecretRef() { return secretRef; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFc.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFc.java index 9c2eadeea3..8a79666a17 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFc.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFc.java @@ -26,7 +26,7 @@ @ApiModel( description = "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecFc { @@ -69,7 +69,7 @@ public V1ThanosRulerSpecFc fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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. TODO: how do we prevent errors in the filesystem from compromising the machine") @@ -92,7 +92,7 @@ public V1ThanosRulerSpecFc lun(Integer lun) { * * @return lun */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: FC target lun number") public Integer getLun() { return lun; @@ -114,7 +114,7 @@ public V1ThanosRulerSpecFc readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") @@ -145,7 +145,7 @@ public V1ThanosRulerSpecFc addTargetWWNsItem(String targetWWNsItem) { * * @return targetWWNs */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: FC target worldwide names (WWNs)") public List getTargetWWNs() { return targetWWNs; @@ -175,7 +175,7 @@ public V1ThanosRulerSpecFc addWwidsItem(String wwidsItem) { * * @return wwids */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlexVolume.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlexVolume.java index ee7d39fccc..efed07aea1 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlexVolume.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlexVolume.java @@ -26,7 +26,7 @@ @ApiModel( description = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecFlexVolume { @@ -90,7 +90,7 @@ public V1ThanosRulerSpecFlexVolume fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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.") @@ -121,7 +121,7 @@ public V1ThanosRulerSpecFlexVolume putOptionsItem(String key, String optionsItem * * @return options */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: Extra command options if any.") public Map getOptions() { return options; @@ -143,7 +143,7 @@ public V1ThanosRulerSpecFlexVolume readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") @@ -166,7 +166,7 @@ public V1ThanosRulerSpecFlexVolume secretRef(V1ThanosRulerSpecFlexVolumeSecretRe * * @return secretRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecFlexVolumeSecretRef getSecretRef() { return secretRef; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlexVolumeSecretRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlexVolumeSecretRef.java index e0d8d634b6..1b7ea17502 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlexVolumeSecretRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlexVolumeSecretRef.java @@ -25,7 +25,7 @@ @ApiModel( description = "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecFlexVolumeSecretRef { @@ -47,7 +47,7 @@ public V1ThanosRulerSpecFlexVolumeSecretRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlocker.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlocker.java index bd30517e62..47ca606b24 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlocker.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecFlocker.java @@ -24,7 +24,7 @@ @ApiModel( description = "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecFlocker { @@ -50,7 +50,7 @@ public V1ThanosRulerSpecFlocker datasetName(String datasetName) { * * @return datasetName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated") @@ -73,7 +73,7 @@ public V1ThanosRulerSpecFlocker datasetUUID(String datasetUUID) { * * @return datasetUUID */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "UUID of the dataset. This is unique identifier of a Flocker dataset") public String getDatasetUUID() { return datasetUUID; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGcePersistentDisk.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGcePersistentDisk.java index 3d112f87d0..a16a647c7c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGcePersistentDisk.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGcePersistentDisk.java @@ -25,7 +25,7 @@ @ApiModel( description = "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecGcePersistentDisk { @@ -64,7 +64,7 @@ public V1ThanosRulerSpecGcePersistentDisk fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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 TODO: how do we prevent errors in the filesystem from compromising the machine") @@ -90,7 +90,7 @@ public V1ThanosRulerSpecGcePersistentDisk partition(Integer partition) { * * @return partition */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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") @@ -138,7 +138,7 @@ public V1ThanosRulerSpecGcePersistentDisk readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGitRepo.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGitRepo.java index bc44dbeb7b..48cbc72a6c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGitRepo.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGitRepo.java @@ -25,7 +25,7 @@ @ApiModel( description = "GitRepo represents a git repository at a particular revision. 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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecGitRepo { @@ -57,7 +57,7 @@ public V1ThanosRulerSpecGitRepo directory(String directory) { * * @return directory */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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.") @@ -100,7 +100,7 @@ public V1ThanosRulerSpecGitRepo revision(String revision) { * * @return revision */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Commit hash for the specified revision.") public String getRevision() { return revision; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGlusterfs.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGlusterfs.java index 4013805e12..2031c0209b 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGlusterfs.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGlusterfs.java @@ -24,7 +24,7 @@ @ApiModel( description = "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecGlusterfs { @@ -103,7 +103,7 @@ public V1ThanosRulerSpecGlusterfs readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGrpcServerTlsConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGrpcServerTlsConfig.java index 49f81571df..5203d2a995 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGrpcServerTlsConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecGrpcServerTlsConfig.java @@ -25,7 +25,7 @@ @ApiModel( description = "GRPCServerTLSConfig configures the gRPC server from which Thanos Querier reads recorded rule data. Note: Currently only the CAFile, CertFile, and KeyFile fields are supported. Maps to the '--grpc-server-tls-*' CLI args.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecGrpcServerTlsConfig { @@ -80,7 +80,7 @@ public V1ThanosRulerSpecGrpcServerTlsConfig ca(V1ServiceMonitorSpecTlsConfigCa c * * @return ca */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCa getCa() { return ca; @@ -101,7 +101,7 @@ public V1ThanosRulerSpecGrpcServerTlsConfig caFile(String caFile) { * * @return caFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the CA cert in the Prometheus container to use for the targets.") public String getCaFile() { @@ -123,7 +123,7 @@ public V1ThanosRulerSpecGrpcServerTlsConfig cert(V1ServiceMonitorSpecTlsConfigCe * * @return cert */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigCert getCert() { return cert; @@ -144,7 +144,7 @@ public V1ThanosRulerSpecGrpcServerTlsConfig certFile(String certFile) { * * @return certFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client cert file in the Prometheus container for the targets.") public String getCertFile() { @@ -166,7 +166,7 @@ public V1ThanosRulerSpecGrpcServerTlsConfig insecureSkipVerify(Boolean insecureS * * @return insecureSkipVerify */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Disable target certificate validation.") public Boolean getInsecureSkipVerify() { return insecureSkipVerify; @@ -187,7 +187,7 @@ public V1ThanosRulerSpecGrpcServerTlsConfig keyFile(String keyFile) { * * @return keyFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path to the client key file in the Prometheus container for the targets.") public String getKeyFile() { @@ -210,7 +210,7 @@ public V1ThanosRulerSpecGrpcServerTlsConfig keySecret( * * @return keySecret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ServiceMonitorSpecTlsConfigKeySecret getKeySecret() { return keySecret; @@ -231,7 +231,7 @@ public V1ThanosRulerSpecGrpcServerTlsConfig serverName(String serverName) { * * @return serverName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Used to verify the hostname for the targets.") public String getServerName() { return serverName; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecHostPath.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecHostPath.java index a850bace43..4f5473cc8c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecHostPath.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecHostPath.java @@ -28,7 +28,7 @@ @ApiModel( description = "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath --- TODO(jonesdl) We need to restrict who can use host directory mounts and who can/can not mount host directories as read/write.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecHostPath { @@ -78,7 +78,7 @@ public V1ThanosRulerSpecHostPath type(String type) { * * @return type */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecImagePullSecrets.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecImagePullSecrets.java index eb99044b8c..7c85d22c8e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecImagePullSecrets.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecImagePullSecrets.java @@ -24,7 +24,7 @@ @ApiModel( description = "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecImagePullSecrets { @@ -46,7 +46,7 @@ public V1ThanosRulerSpecImagePullSecrets name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecIscsi.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecIscsi.java index 2ef2e4fc7f..1771e82170 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecIscsi.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecIscsi.java @@ -26,7 +26,7 @@ @ApiModel( description = "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecIscsi { @@ -96,7 +96,7 @@ public V1ThanosRulerSpecIscsi chapAuthDiscovery(Boolean chapAuthDiscovery) { * * @return chapAuthDiscovery */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "whether support iSCSI Discovery CHAP authentication") public Boolean getChapAuthDiscovery() { return chapAuthDiscovery; @@ -117,7 +117,7 @@ public V1ThanosRulerSpecIscsi chapAuthSession(Boolean chapAuthSession) { * * @return chapAuthSession */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "whether support iSCSI Session CHAP authentication") public Boolean getChapAuthSession() { return chapAuthSession; @@ -142,7 +142,7 @@ public V1ThanosRulerSpecIscsi fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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 TODO: how do we prevent errors in the filesystem from compromising the machine") @@ -167,7 +167,7 @@ public V1ThanosRulerSpecIscsi initiatorName(String initiatorName) { * * @return initiatorName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.") @@ -210,7 +210,7 @@ public V1ThanosRulerSpecIscsi iscsiInterface(String iscsiInterface) { * * @return iscsiInterface */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).") public String getIscsiInterface() { @@ -261,7 +261,7 @@ public V1ThanosRulerSpecIscsi addPortalsItem(String portalsItem) { * * @return portals */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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).") @@ -284,7 +284,7 @@ public V1ThanosRulerSpecIscsi readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.") public Boolean getReadOnly() { @@ -306,7 +306,7 @@ public V1ThanosRulerSpecIscsi secretRef(V1ThanosRulerSpecIscsiSecretRef secretRe * * @return secretRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecIscsiSecretRef getSecretRef() { return secretRef; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecIscsiSecretRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecIscsiSecretRef.java index 84127c9302..0f2139e8bc 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecIscsiSecretRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecIscsiSecretRef.java @@ -19,7 +19,7 @@ /** CHAP Secret for iSCSI target and initiator authentication */ @ApiModel(description = "CHAP Secret for iSCSI target and initiator authentication") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecIscsiSecretRef { @@ -41,7 +41,7 @@ public V1ThanosRulerSpecIscsiSecretRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecycle.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecycle.java index 19121b9f9d..1749bf95a3 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecycle.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecycle.java @@ -24,7 +24,7 @@ @ApiModel( description = "Actions that the management system should take in response to container lifecycle events. Cannot be updated.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecLifecycle { @@ -49,7 +49,7 @@ public V1ThanosRulerSpecLifecycle postStart(V1ThanosRulerSpecLifecyclePostStart * * @return postStart */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStart getPostStart() { return postStart; @@ -70,7 +70,7 @@ public V1ThanosRulerSpecLifecycle preStop(V1ThanosRulerSpecLifecyclePreStop preS * * @return preStop */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePreStop getPreStop() { return preStop; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStart.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStart.java index 37f2cec28a..82c5869031 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStart.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStart.java @@ -26,7 +26,7 @@ @ApiModel( description = "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecLifecyclePostStart { @@ -56,7 +56,7 @@ public V1ThanosRulerSpecLifecyclePostStart exec(V1ThanosRulerSpecLifecyclePostSt * * @return exec */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartExec getExec() { return exec; @@ -78,7 +78,7 @@ public V1ThanosRulerSpecLifecyclePostStart httpGet( * * @return httpGet */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartHttpGet getHttpGet() { return httpGet; @@ -100,7 +100,7 @@ public V1ThanosRulerSpecLifecyclePostStart tcpSocket( * * @return tcpSocket */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartTcpSocket getTcpSocket() { return tcpSocket; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartExec.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartExec.java index 2a1c67471a..a32548cf68 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartExec.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartExec.java @@ -23,7 +23,7 @@ @ApiModel( description = "One and only one of the following should be specified. Exec specifies the action to take.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecLifecyclePostStartExec { @@ -55,7 +55,7 @@ public V1ThanosRulerSpecLifecyclePostStartExec addCommandItem(String commandItem * * @return command */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartHttpGet.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartHttpGet.java index a2f2a40f79..5382a4726c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartHttpGet.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartHttpGet.java @@ -21,7 +21,7 @@ /** HTTPGet specifies the http request to perform. */ @ApiModel(description = "HTTPGet specifies the http request to perform.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecLifecyclePostStartHttpGet { @@ -62,7 +62,7 @@ public V1ThanosRulerSpecLifecyclePostStartHttpGet host(String host) { * * @return host */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.") @@ -95,7 +95,7 @@ public V1ThanosRulerSpecLifecyclePostStartHttpGet addHttpHeadersItem( * * @return httpHeaders */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Custom headers to set in the request. HTTP allows repeated headers.") public List getHttpHeaders() { return httpHeaders; @@ -117,7 +117,7 @@ public V1ThanosRulerSpecLifecyclePostStartHttpGet path(String path) { * * @return path */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Path to access on the HTTP server.") public String getPath() { return path; @@ -162,7 +162,7 @@ public V1ThanosRulerSpecLifecyclePostStartHttpGet scheme(String scheme) { * * @return scheme */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Scheme to use for connecting to the host. Defaults to HTTP.") public String getScheme() { return scheme; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartHttpGetHttpHeaders.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartHttpGetHttpHeaders.java index ad82f156cc..56fc958585 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartHttpGetHttpHeaders.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartHttpGetHttpHeaders.java @@ -19,7 +19,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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecLifecyclePostStartHttpGetHttpHeaders { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartTcpSocket.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartTcpSocket.java index 394b57d638..f2a97eb43f 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartTcpSocket.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePostStartTcpSocket.java @@ -24,7 +24,7 @@ @ApiModel( description = "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported TODO: implement a realistic TCP lifecycle hook") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecLifecyclePostStartTcpSocket { @@ -49,7 +49,7 @@ public V1ThanosRulerSpecLifecyclePostStartTcpSocket host(String host) { * * @return host */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Optional: Host name to connect to, defaults to the pod IP.") public String getHost() { return host; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePreStop.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePreStop.java index 90342f8e82..e2e62af6bc 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePreStop.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLifecyclePreStop.java @@ -30,7 +30,7 @@ @ApiModel( description = "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecLifecyclePreStop { @@ -60,7 +60,7 @@ public V1ThanosRulerSpecLifecyclePreStop exec(V1ThanosRulerSpecLifecyclePostStar * * @return exec */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartExec getExec() { return exec; @@ -82,7 +82,7 @@ public V1ThanosRulerSpecLifecyclePreStop httpGet( * * @return httpGet */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartHttpGet getHttpGet() { return httpGet; @@ -104,7 +104,7 @@ public V1ThanosRulerSpecLifecyclePreStop tcpSocket( * * @return tcpSocket */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartTcpSocket getTcpSocket() { return tcpSocket; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLivenessProbe.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLivenessProbe.java index 2ac2124e31..6d7e655022 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLivenessProbe.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecLivenessProbe.java @@ -25,7 +25,7 @@ @ApiModel( description = "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecLivenessProbe { @@ -80,7 +80,7 @@ public V1ThanosRulerSpecLivenessProbe exec(V1ThanosRulerSpecLifecyclePostStartEx * * @return exec */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartExec getExec() { return exec; @@ -102,7 +102,7 @@ public V1ThanosRulerSpecLivenessProbe failureThreshold(Integer failureThreshold) * * @return failureThreshold */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.") @@ -126,7 +126,7 @@ public V1ThanosRulerSpecLivenessProbe httpGet( * * @return httpGet */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartHttpGet getHttpGet() { return httpGet; @@ -148,7 +148,7 @@ public V1ThanosRulerSpecLivenessProbe initialDelaySeconds(Integer initialDelaySe * * @return initialDelaySeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") @@ -171,7 +171,7 @@ public V1ThanosRulerSpecLivenessProbe periodSeconds(Integer periodSeconds) { * * @return periodSeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.") @@ -195,7 +195,7 @@ public V1ThanosRulerSpecLivenessProbe successThreshold(Integer successThreshold) * * @return successThreshold */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.") @@ -219,7 +219,7 @@ public V1ThanosRulerSpecLivenessProbe tcpSocket( * * @return tcpSocket */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartTcpSocket getTcpSocket() { return tcpSocket; @@ -241,7 +241,7 @@ public V1ThanosRulerSpecLivenessProbe timeoutSeconds(Integer timeoutSeconds) { * * @return timeoutSeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecNfs.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecNfs.java index 8fa82802fa..434ba80430 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecNfs.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecNfs.java @@ -24,7 +24,7 @@ @ApiModel( description = "NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecNfs { @@ -79,7 +79,7 @@ public V1ThanosRulerSpecNfs readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecObjectStorageConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecObjectStorageConfig.java index 31f6f9e562..313683acae 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecObjectStorageConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecObjectStorageConfig.java @@ -19,7 +19,7 @@ /** ObjectStorageConfig configures object storage in Thanos. */ @ApiModel(description = "ObjectStorageConfig configures object storage in Thanos.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecObjectStorageConfig { @@ -73,7 +73,7 @@ public V1ThanosRulerSpecObjectStorageConfig name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -96,7 +96,7 @@ public V1ThanosRulerSpecObjectStorageConfig optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPersistentVolumeClaim.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPersistentVolumeClaim.java index 6d768e7495..d62cf5ab3e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPersistentVolumeClaim.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPersistentVolumeClaim.java @@ -25,7 +25,7 @@ @ApiModel( description = "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecPersistentVolumeClaim { @@ -75,7 +75,7 @@ public V1ThanosRulerSpecPersistentVolumeClaim readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Will force the ReadOnly setting in VolumeMounts. Default false.") public Boolean getReadOnly() { return readOnly; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPhotonPersistentDisk.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPhotonPersistentDisk.java index 7dc67dc77c..3d6b5aad5d 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPhotonPersistentDisk.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPhotonPersistentDisk.java @@ -24,7 +24,7 @@ @ApiModel( description = "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecPhotonPersistentDisk { @@ -51,7 +51,7 @@ public V1ThanosRulerSpecPhotonPersistentDisk fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPodMetadata.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPodMetadata.java index 5117045342..5f9274bcd5 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPodMetadata.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPodMetadata.java @@ -23,7 +23,7 @@ @ApiModel( description = "PodMetadata contains Labels and Annotations gets propagated to the thanos ruler pods.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecPodMetadata { @@ -58,7 +58,7 @@ public V1ThanosRulerSpecPodMetadata putAnnotationsItem(String key, String annota * * @return annotations */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations") @@ -91,7 +91,7 @@ public V1ThanosRulerSpecPodMetadata putLabelsItem(String key, String labelsItem) * * @return labels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPorts.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPorts.java index 9c8c3c3441..288902bbdf 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPorts.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPorts.java @@ -19,7 +19,7 @@ /** ContainerPort represents a network port in a single container. */ @ApiModel(description = "ContainerPort represents a network port in a single container.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecPorts { @@ -83,7 +83,7 @@ public V1ThanosRulerSpecPorts hostIP(String hostIP) { * * @return hostIP */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "What host IP to bind the external port to.") public String getHostIP() { return hostIP; @@ -106,7 +106,7 @@ public V1ThanosRulerSpecPorts hostPort(Integer hostPort) { * * @return hostPort */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.") @@ -130,7 +130,7 @@ public V1ThanosRulerSpecPorts name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.") @@ -153,7 +153,7 @@ public V1ThanosRulerSpecPorts protocol(String protocol) { * * @return protocol */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".") public String getProtocol() { return protocol; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPortworxVolume.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPortworxVolume.java index 5e7fef2eb3..4861e8d31f 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPortworxVolume.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecPortworxVolume.java @@ -21,7 +21,7 @@ @ApiModel( description = "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecPortworxVolume { @@ -53,7 +53,7 @@ public V1ThanosRulerSpecPortworxVolume fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.") @@ -76,7 +76,7 @@ public V1ThanosRulerSpecPortworxVolume readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjected.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjected.java index db90a10b1a..e12c3550c2 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjected.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjected.java @@ -21,7 +21,7 @@ /** Items for all in one resources secrets, configmaps, and downward API */ @ApiModel(description = "Items for all in one resources secrets, configmaps, and downward API") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecProjected { @@ -49,7 +49,7 @@ public V1ThanosRulerSpecProjected defaultMode(Integer defaultMode) { * * @return defaultMode */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Mode bits to use on created files by default. Must be a value between 0 and 0777. 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.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedConfigMap.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedConfigMap.java index 9c1b0d960d..9cabbf0d42 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedConfigMap.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedConfigMap.java @@ -21,7 +21,7 @@ /** information about the configMap data to project */ @ApiModel(description = "information about the configMap data to project") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecProjectedConfigMap { @@ -65,7 +65,7 @@ public V1ThanosRulerSpecProjectedConfigMap addItemsItem( * * @return items */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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 '..'.") @@ -90,7 +90,7 @@ public V1ThanosRulerSpecProjectedConfigMap name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -113,7 +113,7 @@ public V1ThanosRulerSpecProjectedConfigMap optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the ConfigMap or its keys must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedDownwardAPI.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedDownwardAPI.java index c0641aacd8..ce509c116a 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedDownwardAPI.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedDownwardAPI.java @@ -21,7 +21,7 @@ /** information about the downwardAPI data to project */ @ApiModel(description = "information about the downwardAPI data to project") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecProjectedDownwardAPI { @@ -51,7 +51,7 @@ public V1ThanosRulerSpecProjectedDownwardAPI addItemsItem( * * @return items */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Items is a list of DownwardAPIVolume file") public List getItems() { return items; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedSecret.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedSecret.java index 7b6d9a90b7..1b652b6161 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedSecret.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedSecret.java @@ -21,7 +21,7 @@ /** information about the secret data to project */ @ApiModel(description = "information about the secret data to project") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecProjectedSecret { @@ -64,7 +64,7 @@ public V1ThanosRulerSpecProjectedSecret addItemsItem(V1ThanosRulerSpecConfigMapI * * @return items */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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 '..'.") @@ -89,7 +89,7 @@ public V1ThanosRulerSpecProjectedSecret name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -112,7 +112,7 @@ public V1ThanosRulerSpecProjectedSecret optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedServiceAccountToken.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedServiceAccountToken.java index 66cd61e160..96f421d1b3 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedServiceAccountToken.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedServiceAccountToken.java @@ -19,7 +19,7 @@ /** information about the serviceAccountToken data to project */ @ApiModel(description = "information about the serviceAccountToken data to project") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecProjectedServiceAccountToken { @@ -51,7 +51,7 @@ public V1ThanosRulerSpecProjectedServiceAccountToken audience(String audience) { * * @return audience */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.") @@ -78,7 +78,7 @@ public V1ThanosRulerSpecProjectedServiceAccountToken expirationSeconds(Long expi * * @return expirationSeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedSources.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedSources.java index 2cb4f00837..1b2bc63bf4 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedSources.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecProjectedSources.java @@ -19,7 +19,7 @@ /** Projection that may be projected along with other supported volume types */ @ApiModel(description = "Projection that may be projected along with other supported volume types") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecProjectedSources { @@ -55,7 +55,7 @@ public V1ThanosRulerSpecProjectedSources configMap( * * @return configMap */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecProjectedConfigMap getConfigMap() { return configMap; @@ -77,7 +77,7 @@ public V1ThanosRulerSpecProjectedSources downwardAPI( * * @return downwardAPI */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecProjectedDownwardAPI getDownwardAPI() { return downwardAPI; @@ -98,7 +98,7 @@ public V1ThanosRulerSpecProjectedSources secret(V1ThanosRulerSpecProjectedSecret * * @return secret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecProjectedSecret getSecret() { return secret; @@ -120,7 +120,7 @@ public V1ThanosRulerSpecProjectedSources serviceAccountToken( * * @return serviceAccountToken */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecProjectedServiceAccountToken getServiceAccountToken() { return serviceAccountToken; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecQueryConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecQueryConfig.java index 97901d5202..1197ba8417 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecQueryConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecQueryConfig.java @@ -25,7 +25,7 @@ @ApiModel( description = "Define configuration for connecting to thanos query instances. If this is defined, the QueryEndpoints field will be ignored. Maps to the `query.config` CLI argument. Only available with thanos v0.11.0 and higher.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecQueryConfig { @@ -79,7 +79,7 @@ public V1ThanosRulerSpecQueryConfig name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -102,7 +102,7 @@ public V1ThanosRulerSpecQueryConfig optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecQuobyte.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecQuobyte.java index 3114d48cd7..4cdbbd621e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecQuobyte.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecQuobyte.java @@ -20,7 +20,7 @@ /** Quobyte represents a Quobyte mount on the host that shares a pod's lifetime */ @ApiModel( description = "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecQuobyte { @@ -65,7 +65,7 @@ public V1ThanosRulerSpecQuobyte group(String group) { * * @return group */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Group to map volume access to Default is no group") public String getGroup() { return group; @@ -87,7 +87,7 @@ public V1ThanosRulerSpecQuobyte readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.") @@ -136,7 +136,7 @@ public V1ThanosRulerSpecQuobyte tenant(String tenant) { * * @return tenant */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin") @@ -159,7 +159,7 @@ public V1ThanosRulerSpecQuobyte user(String user) { * * @return user */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "User to map volume access to Defaults to serivceaccount user") public String getUser() { return user; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRbd.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRbd.java index c87d1e5363..f23c2362dd 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRbd.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRbd.java @@ -26,7 +26,7 @@ @ApiModel( description = "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecRbd { @@ -85,7 +85,7 @@ public V1ThanosRulerSpecRbd fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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 TODO: how do we prevent errors in the filesystem from compromising the machine") @@ -132,7 +132,7 @@ public V1ThanosRulerSpecRbd keyring(String keyring) { * * @return keyring */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") @@ -185,7 +185,7 @@ public V1ThanosRulerSpecRbd pool(String pool) { * * @return pool */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") @@ -209,7 +209,7 @@ public V1ThanosRulerSpecRbd readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") @@ -232,7 +232,7 @@ public V1ThanosRulerSpecRbd secretRef(V1ThanosRulerSpecRbdSecretRef secretRef) { * * @return secretRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecRbdSecretRef getSecretRef() { return secretRef; @@ -254,7 +254,7 @@ public V1ThanosRulerSpecRbd user(String user) { * * @return user */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRbdSecretRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRbdSecretRef.java index d1b61a0a0f..7d7286db42 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRbdSecretRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRbdSecretRef.java @@ -24,7 +24,7 @@ @ApiModel( description = "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecRbdSecretRef { @@ -46,7 +46,7 @@ public V1ThanosRulerSpecRbdSecretRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecReadinessProbe.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecReadinessProbe.java index 3fa45f7b8d..bf3e7973b2 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecReadinessProbe.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecReadinessProbe.java @@ -25,7 +25,7 @@ @ApiModel( description = "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecReadinessProbe { @@ -80,7 +80,7 @@ public V1ThanosRulerSpecReadinessProbe exec(V1ThanosRulerSpecLifecyclePostStartE * * @return exec */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartExec getExec() { return exec; @@ -102,7 +102,7 @@ public V1ThanosRulerSpecReadinessProbe failureThreshold(Integer failureThreshold * * @return failureThreshold */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.") @@ -126,7 +126,7 @@ public V1ThanosRulerSpecReadinessProbe httpGet( * * @return httpGet */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartHttpGet getHttpGet() { return httpGet; @@ -148,7 +148,7 @@ public V1ThanosRulerSpecReadinessProbe initialDelaySeconds(Integer initialDelayS * * @return initialDelaySeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") @@ -171,7 +171,7 @@ public V1ThanosRulerSpecReadinessProbe periodSeconds(Integer periodSeconds) { * * @return periodSeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.") @@ -195,7 +195,7 @@ public V1ThanosRulerSpecReadinessProbe successThreshold(Integer successThreshold * * @return successThreshold */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.") @@ -219,7 +219,7 @@ public V1ThanosRulerSpecReadinessProbe tcpSocket( * * @return tcpSocket */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartTcpSocket getTcpSocket() { return tcpSocket; @@ -241,7 +241,7 @@ public V1ThanosRulerSpecReadinessProbe timeoutSeconds(Integer timeoutSeconds) { * * @return timeoutSeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecResources.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecResources.java index d260ba2ebb..e92d93a427 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecResources.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecResources.java @@ -26,7 +26,7 @@ @ApiModel( description = "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecResources { @@ -60,7 +60,7 @@ public V1ThanosRulerSpecResources putLimitsItem(String key, String limitsItem) { * * @return limits */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") @@ -94,7 +94,7 @@ public V1ThanosRulerSpecResources putRequestsItem(String key, String requestsIte * * @return requests */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecResources1.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecResources1.java index 45190e5173..0dc0fe432c 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecResources1.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecResources1.java @@ -26,7 +26,7 @@ @ApiModel( description = "Resources defines the resource requirements for single Pods. If not provided, no requests/limits will be set") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecResources1 { @@ -60,7 +60,7 @@ public V1ThanosRulerSpecResources1 putLimitsItem(String key, String limitsItem) * * @return limits */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") @@ -94,7 +94,7 @@ public V1ThanosRulerSpecResources1 putRequestsItem(String key, String requestsIt * * @return requests */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRuleNamespaceSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRuleNamespaceSelector.java index 0f93dbf157..ee0d3eeb65 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRuleNamespaceSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRuleNamespaceSelector.java @@ -28,7 +28,7 @@ @ApiModel( description = "Namespaces to be selected for Rules discovery. If unspecified, only the same namespace as the ThanosRuler object is in is used.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecRuleNamespaceSelector { @@ -63,7 +63,7 @@ public V1ThanosRulerSpecRuleNamespaceSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -99,7 +99,7 @@ public V1ThanosRulerSpecRuleNamespaceSelector putMatchLabelsItem( * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRuleSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRuleSelector.java index e7f9191716..0d867a7c8d 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRuleSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecRuleSelector.java @@ -25,7 +25,7 @@ @ApiModel( description = "A label selector to select which PrometheusRules to mount for alerting and recording.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecRuleSelector { @@ -60,7 +60,7 @@ public V1ThanosRulerSpecRuleSelector addMatchExpressionsItem( * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -95,7 +95,7 @@ public V1ThanosRulerSpecRuleSelector putMatchLabelsItem(String key, String match * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecScaleIO.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecScaleIO.java index 7edf8a25a6..b7e40fb9e3 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecScaleIO.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecScaleIO.java @@ -21,7 +21,7 @@ @ApiModel( description = "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecScaleIO { @@ -87,7 +87,7 @@ public V1ThanosRulerSpecScaleIO fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".") @@ -130,7 +130,7 @@ public V1ThanosRulerSpecScaleIO protectionDomain(String protectionDomain) { * * @return protectionDomain */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "The name of the ScaleIO Protection Domain for the configured storage.") public String getProtectionDomain() { return protectionDomain; @@ -151,7 +151,7 @@ public V1ThanosRulerSpecScaleIO readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") @@ -194,7 +194,7 @@ public V1ThanosRulerSpecScaleIO sslEnabled(Boolean sslEnabled) { * * @return sslEnabled */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Flag to enable/disable SSL communication with Gateway, default false") public Boolean getSslEnabled() { return sslEnabled; @@ -216,7 +216,7 @@ public V1ThanosRulerSpecScaleIO storageMode(String storageMode) { * * @return storageMode */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.") @@ -239,7 +239,7 @@ public V1ThanosRulerSpecScaleIO storagePool(String storagePool) { * * @return storagePool */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "The ScaleIO Storage Pool associated with the protection domain.") public String getStoragePool() { return storagePool; @@ -283,7 +283,7 @@ public V1ThanosRulerSpecScaleIO volumeName(String volumeName) { * * @return volumeName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The name of a volume already created in the ScaleIO system that is associated with this volume source.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecScaleIOSecretRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecScaleIOSecretRef.java index d25137455b..409cf6a586 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecScaleIOSecretRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecScaleIOSecretRef.java @@ -24,7 +24,7 @@ @ApiModel( description = "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecScaleIOSecretRef { @@ -46,7 +46,7 @@ public V1ThanosRulerSpecScaleIOSecretRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecret.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecret.java index 23da081669..b725509c91 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecret.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecret.java @@ -26,7 +26,7 @@ @ApiModel( description = "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecret { @@ -64,7 +64,7 @@ public V1ThanosRulerSpecSecret defaultMode(Integer defaultMode) { * * @return defaultMode */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. 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.") @@ -100,7 +100,7 @@ public V1ThanosRulerSpecSecret addItemsItem(V1ThanosRulerSpecConfigMapItems item * * @return items */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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 '..'.") @@ -123,7 +123,7 @@ public V1ThanosRulerSpecSecret optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its keys must be defined") public Boolean getOptional() { return optional; @@ -145,7 +145,7 @@ public V1ThanosRulerSpecSecret secretName(String secretName) { * * @return secretName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecretRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecretRef.java index 4b3386a546..fba9ec6c7a 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecretRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecretRef.java @@ -19,7 +19,7 @@ /** The Secret to select from */ @ApiModel(description = "The Secret to select from") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecretRef { @@ -46,7 +46,7 @@ public V1ThanosRulerSpecSecretRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -69,7 +69,7 @@ public V1ThanosRulerSpecSecretRef optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext.java index 10d8a2ace6..dc65bbbf6d 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext.java @@ -25,7 +25,7 @@ @ApiModel( description = "Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecurityContext { @@ -95,7 +95,7 @@ public V1ThanosRulerSpecSecurityContext allowPrivilegeEscalation( * * @return allowPrivilegeEscalation */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN") @@ -119,7 +119,7 @@ public V1ThanosRulerSpecSecurityContext capabilities( * * @return capabilities */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecurityContextCapabilities getCapabilities() { return capabilities; @@ -141,7 +141,7 @@ public V1ThanosRulerSpecSecurityContext privileged(Boolean privileged) { * * @return privileged */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.") @@ -166,7 +166,7 @@ public V1ThanosRulerSpecSecurityContext procMount(String procMount) { * * @return procMount */ - @javax.annotation.Nullable + @jakarta.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.") @@ -189,7 +189,7 @@ public V1ThanosRulerSpecSecurityContext readOnlyRootFilesystem(Boolean readOnlyR * * @return readOnlyRootFilesystem */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Whether this container has a read-only root filesystem. Default is false.") public Boolean getReadOnlyRootFilesystem() { @@ -213,7 +213,7 @@ public V1ThanosRulerSpecSecurityContext runAsGroup(Long runAsGroup) { * * @return runAsGroup */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") @@ -240,7 +240,7 @@ public V1ThanosRulerSpecSecurityContext runAsNonRoot(Boolean runAsNonRoot) { * * @return runAsNonRoot */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") @@ -265,7 +265,7 @@ public V1ThanosRulerSpecSecurityContext runAsUser(Long runAsUser) { * * @return runAsUser */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") @@ -289,7 +289,7 @@ public V1ThanosRulerSpecSecurityContext seLinuxOptions( * * @return seLinuxOptions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecurityContextSeLinuxOptions getSeLinuxOptions() { return seLinuxOptions; @@ -311,7 +311,7 @@ public V1ThanosRulerSpecSecurityContext windowsOptions( * * @return windowsOptions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecurityContextWindowsOptions getWindowsOptions() { return windowsOptions; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1.java index c1c80921d5..110f8e8d8a 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1.java @@ -26,7 +26,7 @@ @ApiModel( description = "SecurityContext holds pod-level security attributes and common container settings. This defaults to the default PodSecurityContext.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecurityContext1 { @@ -85,7 +85,7 @@ public V1ThanosRulerSpecSecurityContext1 fsGroup(Long fsGroup) { * * @return fsGroup */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume.") @@ -110,7 +110,7 @@ public V1ThanosRulerSpecSecurityContext1 runAsGroup(Long runAsGroup) { * * @return runAsGroup */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.") @@ -137,7 +137,7 @@ public V1ThanosRulerSpecSecurityContext1 runAsNonRoot(Boolean runAsNonRoot) { * * @return runAsNonRoot */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") @@ -162,7 +162,7 @@ public V1ThanosRulerSpecSecurityContext1 runAsUser(Long runAsUser) { * * @return runAsUser */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.") @@ -186,7 +186,7 @@ public V1ThanosRulerSpecSecurityContext1 seLinuxOptions( * * @return seLinuxOptions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecurityContext1SeLinuxOptions getSeLinuxOptions() { return seLinuxOptions; @@ -216,7 +216,7 @@ public V1ThanosRulerSpecSecurityContext1 addSupplementalGroupsItem(Long suppleme * * @return supplementalGroups */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.") @@ -250,7 +250,7 @@ public V1ThanosRulerSpecSecurityContext1 addSysctlsItem( * * @return sysctls */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.") @@ -274,7 +274,7 @@ public V1ThanosRulerSpecSecurityContext1 windowsOptions( * * @return windowsOptions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecurityContext1WindowsOptions getWindowsOptions() { return windowsOptions; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1SeLinuxOptions.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1SeLinuxOptions.java index 2a5314fb20..bf9d8ac9a6 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1SeLinuxOptions.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1SeLinuxOptions.java @@ -26,7 +26,7 @@ @ApiModel( description = "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecurityContext1SeLinuxOptions { @@ -61,7 +61,7 @@ public V1ThanosRulerSpecSecurityContext1SeLinuxOptions level(String level) { * * @return level */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Level is SELinux level label that applies to the container.") public String getLevel() { return level; @@ -82,7 +82,7 @@ public V1ThanosRulerSpecSecurityContext1SeLinuxOptions role(String role) { * * @return role */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Role is a SELinux role label that applies to the container.") public String getRole() { return role; @@ -103,7 +103,7 @@ public V1ThanosRulerSpecSecurityContext1SeLinuxOptions type(String type) { * * @return type */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Type is a SELinux type label that applies to the container.") public String getType() { return type; @@ -124,7 +124,7 @@ public V1ThanosRulerSpecSecurityContext1SeLinuxOptions user(String user) { * * @return user */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "User is a SELinux user label that applies to the container.") public String getUser() { return user; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1Sysctls.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1Sysctls.java index 76e6eee634..3785a96876 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1Sysctls.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1Sysctls.java @@ -19,7 +19,7 @@ /** Sysctl defines a kernel parameter to be set */ @ApiModel(description = "Sysctl defines a kernel parameter to be set") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecurityContext1Sysctls { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1WindowsOptions.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1WindowsOptions.java index d0599275e6..84ad5bfbae 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1WindowsOptions.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContext1WindowsOptions.java @@ -25,7 +25,7 @@ @ApiModel( description = "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecurityContext1WindowsOptions { @@ -59,7 +59,7 @@ public V1ThanosRulerSpecSecurityContext1WindowsOptions gmsaCredentialSpec( * * @return gmsaCredentialSpec */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.") @@ -84,7 +84,7 @@ public V1ThanosRulerSpecSecurityContext1WindowsOptions gmsaCredentialSpecName( * * @return gmsaCredentialSpecName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.") @@ -111,7 +111,7 @@ public V1ThanosRulerSpecSecurityContext1WindowsOptions runAsUserName(String runA * * @return runAsUserName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. This field is beta-level and may be disabled with the WindowsRunAsUserName feature flag.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextCapabilities.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextCapabilities.java index d90070feb1..b5bc62b3af 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextCapabilities.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextCapabilities.java @@ -26,7 +26,7 @@ @ApiModel( description = "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecurityContextCapabilities { @@ -59,7 +59,7 @@ public V1ThanosRulerSpecSecurityContextCapabilities addAddItem(String addItem) { * * @return add */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Added capabilities") public List getAdd() { return add; @@ -88,7 +88,7 @@ public V1ThanosRulerSpecSecurityContextCapabilities addDropItem(String dropItem) * * @return drop */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Removed capabilities") public List getDrop() { return drop; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextSeLinuxOptions.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextSeLinuxOptions.java index 3a79c0a6d3..bf2070cd98 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextSeLinuxOptions.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextSeLinuxOptions.java @@ -26,7 +26,7 @@ @ApiModel( description = "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecurityContextSeLinuxOptions { @@ -61,7 +61,7 @@ public V1ThanosRulerSpecSecurityContextSeLinuxOptions level(String level) { * * @return level */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Level is SELinux level label that applies to the container.") public String getLevel() { return level; @@ -82,7 +82,7 @@ public V1ThanosRulerSpecSecurityContextSeLinuxOptions role(String role) { * * @return role */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Role is a SELinux role label that applies to the container.") public String getRole() { return role; @@ -103,7 +103,7 @@ public V1ThanosRulerSpecSecurityContextSeLinuxOptions type(String type) { * * @return type */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Type is a SELinux type label that applies to the container.") public String getType() { return type; @@ -124,7 +124,7 @@ public V1ThanosRulerSpecSecurityContextSeLinuxOptions user(String user) { * * @return user */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "User is a SELinux user label that applies to the container.") public String getUser() { return user; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextWindowsOptions.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextWindowsOptions.java index a19ca80542..0878320e12 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextWindowsOptions.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecSecurityContextWindowsOptions.java @@ -25,7 +25,7 @@ @ApiModel( description = "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecSecurityContextWindowsOptions { @@ -59,7 +59,7 @@ public V1ThanosRulerSpecSecurityContextWindowsOptions gmsaCredentialSpec( * * @return gmsaCredentialSpec */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.") @@ -84,7 +84,7 @@ public V1ThanosRulerSpecSecurityContextWindowsOptions gmsaCredentialSpecName( * * @return gmsaCredentialSpecName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.") @@ -111,7 +111,7 @@ public V1ThanosRulerSpecSecurityContextWindowsOptions runAsUserName(String runAs * * @return runAsUserName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. This field is beta-level and may be disabled with the WindowsRunAsUserName feature flag.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStartupProbe.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStartupProbe.java index 70ada44246..98808da89e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStartupProbe.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStartupProbe.java @@ -29,7 +29,7 @@ @ApiModel( description = "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. This is an alpha feature enabled by the StartupProbe feature flag. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStartupProbe { @@ -84,7 +84,7 @@ public V1ThanosRulerSpecStartupProbe exec(V1ThanosRulerSpecLifecyclePostStartExe * * @return exec */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartExec getExec() { return exec; @@ -106,7 +106,7 @@ public V1ThanosRulerSpecStartupProbe failureThreshold(Integer failureThreshold) * * @return failureThreshold */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.") @@ -129,7 +129,7 @@ public V1ThanosRulerSpecStartupProbe httpGet(V1ThanosRulerSpecLifecyclePostStart * * @return httpGet */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartHttpGet getHttpGet() { return httpGet; @@ -151,7 +151,7 @@ public V1ThanosRulerSpecStartupProbe initialDelaySeconds(Integer initialDelaySec * * @return initialDelaySeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") @@ -174,7 +174,7 @@ public V1ThanosRulerSpecStartupProbe periodSeconds(Integer periodSeconds) { * * @return periodSeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.") @@ -198,7 +198,7 @@ public V1ThanosRulerSpecStartupProbe successThreshold(Integer successThreshold) * * @return successThreshold */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.") @@ -222,7 +222,7 @@ public V1ThanosRulerSpecStartupProbe tcpSocket( * * @return tcpSocket */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecLifecyclePostStartTcpSocket getTcpSocket() { return tcpSocket; @@ -244,7 +244,7 @@ public V1ThanosRulerSpecStartupProbe timeoutSeconds(Integer timeoutSeconds) { * * @return timeoutSeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorage.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorage.java index 040af722b0..28bdb46047 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorage.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorage.java @@ -19,7 +19,7 @@ /** Storage spec to specify how storage shall be used. */ @ApiModel(description = "Storage spec to specify how storage shall be used.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorage { @@ -44,7 +44,7 @@ public V1ThanosRulerSpecStorage emptyDir(V1ThanosRulerSpecStorageEmptyDir emptyD * * @return emptyDir */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageEmptyDir getEmptyDir() { return emptyDir; @@ -66,7 +66,7 @@ public V1ThanosRulerSpecStorage volumeClaimTemplate( * * @return volumeClaimTemplate */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageVolumeClaimTemplate getVolumeClaimTemplate() { return volumeClaimTemplate; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageEmptyDir.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageEmptyDir.java index 07d1d78e85..36319bb8ab 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageEmptyDir.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageEmptyDir.java @@ -24,7 +24,7 @@ @ApiModel( description = "EmptyDirVolumeSource to be used by the Prometheus StatefulSets. If specified, used in place of any volumeClaimTemplate. More info: https://kubernetes.io/docs/concepts/storage/volumes/#emptydir") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageEmptyDir { @@ -51,7 +51,7 @@ public V1ThanosRulerSpecStorageEmptyDir medium(String medium) { * * @return medium */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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") @@ -78,7 +78,7 @@ public V1ThanosRulerSpecStorageEmptyDir sizeLimit(String sizeLimit) { * * @return sizeLimit */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/user-guide/volumes#emptydir") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplate.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplate.java index 92ae3b589e..9a6b780ef7 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplate.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplate.java @@ -19,7 +19,7 @@ /** A PVC spec to be used by the Prometheus StatefulSets. */ @ApiModel(description = "A PVC spec to be used by the Prometheus StatefulSets.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageVolumeClaimTemplate { @@ -62,7 +62,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplate apiVersion(String apiVersion) * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources") @@ -88,7 +88,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplate kind(String kind) { * * @return kind */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") @@ -112,7 +112,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplate metadata(Object metadata) { * * @return metadata */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") @@ -136,7 +136,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplate spec( * * @return spec */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageVolumeClaimTemplateSpec getSpec() { return spec; @@ -158,7 +158,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplate status( * * @return status */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageVolumeClaimTemplateStatus getStatus() { return status; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpec.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpec.java index 3ed1e30601..4c2bd5d646 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpec.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpec.java @@ -26,7 +26,7 @@ @ApiModel( description = "Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageVolumeClaimTemplateSpec { @@ -86,7 +86,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpec addAccessModesItem( * * @return accessModes */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1") @@ -110,7 +110,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpec dataSource( * * @return dataSource */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageVolumeClaimTemplateSpecDataSource getDataSource() { return dataSource; @@ -132,7 +132,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpec resources( * * @return resources */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageVolumeClaimTemplateSpecResources getResources() { return resources; @@ -154,7 +154,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpec selector( * * @return selector */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageVolumeClaimTemplateSpecSelector getSelector() { return selector; @@ -176,7 +176,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpec storageClassName(String s * * @return storageClassName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1") @@ -200,7 +200,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpec volumeMode(String volumeM * * @return volumeMode */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature.") @@ -223,7 +223,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpec volumeName(String volumeN * * @return volumeName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "VolumeName is the binding reference to the PersistentVolume backing this claim.") public String getVolumeName() { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecDataSource.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecDataSource.java index 6ac73df447..0dacf32623 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecDataSource.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecDataSource.java @@ -28,7 +28,7 @@ @ApiModel( description = "This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageVolumeClaimTemplateSpecDataSource { @@ -60,7 +60,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpecDataSource apiGroup(String * * @return apiGroup */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecResources.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecResources.java index c6dbe467e1..9fd5cbadcf 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecResources.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecResources.java @@ -26,7 +26,7 @@ @ApiModel( description = "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageVolumeClaimTemplateSpecResources { @@ -62,7 +62,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpecResources putLimitsItem( * * @return limits */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") @@ -98,7 +98,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpecResources putRequestsItem( * * @return requests */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecSelector.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecSelector.java index 22635a4972..e59739893e 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecSelector.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateSpecSelector.java @@ -23,7 +23,7 @@ /** A label query over volumes to consider for binding. */ @ApiModel(description = "A label query over volumes to consider for binding.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageVolumeClaimTemplateSpecSelector { @@ -58,7 +58,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpecSelector addMatchExpressio * * @return matchExpressions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") @@ -95,7 +95,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateSpecSelector putMatchLabelsIte * * @return matchLabels */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatus.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatus.java index 63c44261fa..02d21dfe7b 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatus.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatus.java @@ -28,7 +28,7 @@ @ApiModel( description = "Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageVolumeClaimTemplateStatus { @@ -73,7 +73,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatus addAccessModesItem( * * @return accessModes */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1") @@ -105,7 +105,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatus putCapacityItem( * * @return capacity */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Represents the actual resources of the underlying volume.") public Map getCapacity() { return capacity; @@ -138,7 +138,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatus addConditionsItem( * * @return conditions */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.") @@ -162,7 +162,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatus phase(String phase) { * * @return phase */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Phase represents the current phase of PersistentVolumeClaim.") public String getPhase() { return phase; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions.java index f9dc2ba2da..2c456ee174 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions.java @@ -20,7 +20,7 @@ /** PersistentVolumeClaimCondition contails details about state of pvc */ @ApiModel(description = "PersistentVolumeClaimCondition contails details about state of pvc") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions { @@ -66,7 +66,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions lastProbeTime * * @return lastProbeTime */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time we probed the condition.") public OffsetDateTime getLastProbeTime() { return lastProbeTime; @@ -88,7 +88,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions lastTransitio * * @return lastTransitionTime */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; @@ -109,7 +109,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions message(Strin * * @return message */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Human-readable message indicating details about last transition.") public String getMessage() { return message; @@ -132,7 +132,7 @@ public V1ThanosRulerSpecStorageVolumeClaimTemplateStatusConditions reason(String * * @return reason */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageos.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageos.java index 1e21620328..0f963f0bed 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageos.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageos.java @@ -21,7 +21,7 @@ @ApiModel( description = "StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageos { @@ -63,7 +63,7 @@ public V1ThanosRulerSpecStorageos fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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.") @@ -86,7 +86,7 @@ public V1ThanosRulerSpecStorageos readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") @@ -109,7 +109,7 @@ public V1ThanosRulerSpecStorageos secretRef(V1ThanosRulerSpecStorageosSecretRef * * @return secretRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageosSecretRef getSecretRef() { return secretRef; @@ -131,7 +131,7 @@ public V1ThanosRulerSpecStorageos volumeName(String volumeName) { * * @return volumeName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.") @@ -158,7 +158,7 @@ public V1ThanosRulerSpecStorageos volumeNamespace(String volumeNamespace) { * * @return volumeNamespace */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageosSecretRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageosSecretRef.java index 349bf17d5f..6f27aaa8ea 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageosSecretRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecStorageosSecretRef.java @@ -24,7 +24,7 @@ @ApiModel( description = "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecStorageosSecretRef { @@ -46,7 +46,7 @@ public V1ThanosRulerSpecStorageosSecretRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecTolerations.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecTolerations.java index c7c1f4c78c..910b7fc494 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecTolerations.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecTolerations.java @@ -24,7 +24,7 @@ @ApiModel( description = "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecTolerations { @@ -65,7 +65,7 @@ public V1ThanosRulerSpecTolerations effect(String effect) { * * @return effect */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.") @@ -89,7 +89,7 @@ public V1ThanosRulerSpecTolerations key(String key) { * * @return key */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.") @@ -114,7 +114,7 @@ public V1ThanosRulerSpecTolerations operator(String operator) { * * @return operator */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.") @@ -140,7 +140,7 @@ public V1ThanosRulerSpecTolerations tolerationSeconds(Long tolerationSeconds) { * * @return tolerationSeconds */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.") @@ -164,7 +164,7 @@ public V1ThanosRulerSpecTolerations value(String value) { * * @return value */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecTracingConfig.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecTracingConfig.java index 2dad1fd66f..4b2b2e13ba 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecTracingConfig.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecTracingConfig.java @@ -24,7 +24,7 @@ @ApiModel( description = "TracingConfig configures tracing in Thanos. This is an experimental feature, it may change in any upcoming release in a breaking way.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecTracingConfig { @@ -78,7 +78,7 @@ public V1ThanosRulerSpecTracingConfig name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -101,7 +101,7 @@ public V1ThanosRulerSpecTracingConfig optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFrom.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFrom.java index 291d9d8423..4c368e7fe9 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFrom.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFrom.java @@ -21,7 +21,7 @@ @ApiModel( description = "Source for the environment variable's value. Cannot be used if value is not empty.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecValueFrom { @@ -57,7 +57,7 @@ public V1ThanosRulerSpecValueFrom configMapKeyRef( * * @return configMapKeyRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecValueFromConfigMapKeyRef getConfigMapKeyRef() { return configMapKeyRef; @@ -78,7 +78,7 @@ public V1ThanosRulerSpecValueFrom fieldRef(V1ThanosRulerSpecValueFromFieldRef fi * * @return fieldRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecValueFromFieldRef getFieldRef() { return fieldRef; @@ -100,7 +100,7 @@ public V1ThanosRulerSpecValueFrom resourceFieldRef( * * @return resourceFieldRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecValueFromResourceFieldRef getResourceFieldRef() { return resourceFieldRef; @@ -122,7 +122,7 @@ public V1ThanosRulerSpecValueFrom secretKeyRef( * * @return secretKeyRef */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecValueFromSecretKeyRef getSecretKeyRef() { return secretKeyRef; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromConfigMapKeyRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromConfigMapKeyRef.java index a9614e36e5..00f10c7d17 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromConfigMapKeyRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromConfigMapKeyRef.java @@ -19,7 +19,7 @@ /** Selects a key of a ConfigMap. */ @ApiModel(description = "Selects a key of a ConfigMap.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecValueFromConfigMapKeyRef { @@ -71,7 +71,7 @@ public V1ThanosRulerSpecValueFromConfigMapKeyRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -94,7 +94,7 @@ public V1ThanosRulerSpecValueFromConfigMapKeyRef optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the ConfigMap or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromFieldRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromFieldRef.java index 7b9da72a5b..a14ec0b725 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromFieldRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromFieldRef.java @@ -25,7 +25,7 @@ @ApiModel( description = "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecValueFromFieldRef { @@ -50,7 +50,7 @@ public V1ThanosRulerSpecValueFromFieldRef apiVersion(String apiVersion) { * * @return apiVersion */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".") public String getApiVersion() { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromResourceFieldRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromResourceFieldRef.java index f6f4d4b76a..43348c3b72 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromResourceFieldRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromResourceFieldRef.java @@ -25,7 +25,7 @@ @ApiModel( description = "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecValueFromResourceFieldRef { @@ -55,7 +55,7 @@ public V1ThanosRulerSpecValueFromResourceFieldRef containerName(String container * * @return containerName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Container name: required for volumes, optional for env vars") public String getContainerName() { return containerName; @@ -76,7 +76,7 @@ public V1ThanosRulerSpecValueFromResourceFieldRef divisor(String divisor) { * * @return divisor */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Specifies the output format of the exposed resources, defaults to \"1\"") public String getDivisor() { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromSecretKeyRef.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromSecretKeyRef.java index fc18ab9a7c..69f345e142 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromSecretKeyRef.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecValueFromSecretKeyRef.java @@ -19,7 +19,7 @@ /** Selects a key of a secret in the pod's namespace */ @ApiModel(description = "Selects a key of a secret in the pod's namespace") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecValueFromSecretKeyRef { @@ -73,7 +73,7 @@ public V1ThanosRulerSpecValueFromSecretKeyRef name(String name) { * * @return name */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?") @@ -96,7 +96,7 @@ public V1ThanosRulerSpecValueFromSecretKeyRef optional(Boolean optional) { * * @return optional */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") public Boolean getOptional() { return optional; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumeDevices.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumeDevices.java index 19cbaabbb0..2697dcf134 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumeDevices.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumeDevices.java @@ -20,7 +20,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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecVolumeDevices { diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumeMounts.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumeMounts.java index 215adf3b39..bf0db8ab40 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumeMounts.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumeMounts.java @@ -19,7 +19,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( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecVolumeMounts { @@ -88,7 +88,7 @@ public V1ThanosRulerSpecVolumeMounts mountPropagation(String mountPropagation) { * * @return mountPropagation */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.") @@ -131,7 +131,7 @@ public V1ThanosRulerSpecVolumeMounts readOnly(Boolean readOnly) { * * @return readOnly */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.") @@ -155,7 +155,7 @@ public V1ThanosRulerSpecVolumeMounts subPath(String subPath) { * * @return subPath */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).") @@ -181,7 +181,7 @@ public V1ThanosRulerSpecVolumeMounts subPathExpr(String subPathExpr) { * * @return subPathExpr */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.") diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumes.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumes.java index 30e00d463c..f2fb8893fa 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumes.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVolumes.java @@ -21,7 +21,7 @@ @ApiModel( description = "Volume represents a named volume in a pod that may be accessed by any container in the pod.") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecVolumes { @@ -182,7 +182,7 @@ public V1ThanosRulerSpecVolumes awsElasticBlockStore( * * @return awsElasticBlockStore */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAwsElasticBlockStore getAwsElasticBlockStore() { return awsElasticBlockStore; @@ -203,7 +203,7 @@ public V1ThanosRulerSpecVolumes azureDisk(V1ThanosRulerSpecAzureDisk azureDisk) * * @return azureDisk */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAzureDisk getAzureDisk() { return azureDisk; @@ -224,7 +224,7 @@ public V1ThanosRulerSpecVolumes azureFile(V1ThanosRulerSpecAzureFile azureFile) * * @return azureFile */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecAzureFile getAzureFile() { return azureFile; @@ -245,7 +245,7 @@ public V1ThanosRulerSpecVolumes cephfs(V1ThanosRulerSpecCephfs cephfs) { * * @return cephfs */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecCephfs getCephfs() { return cephfs; @@ -266,7 +266,7 @@ public V1ThanosRulerSpecVolumes cinder(V1ThanosRulerSpecCinder cinder) { * * @return cinder */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecCinder getCinder() { return cinder; @@ -287,7 +287,7 @@ public V1ThanosRulerSpecVolumes configMap(V1ThanosRulerSpecConfigMap configMap) * * @return configMap */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecConfigMap getConfigMap() { return configMap; @@ -308,7 +308,7 @@ public V1ThanosRulerSpecVolumes csi(V1ThanosRulerSpecCsi csi) { * * @return csi */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecCsi getCsi() { return csi; @@ -329,7 +329,7 @@ public V1ThanosRulerSpecVolumes downwardAPI(V1ThanosRulerSpecDownwardAPI downwar * * @return downwardAPI */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecDownwardAPI getDownwardAPI() { return downwardAPI; @@ -350,7 +350,7 @@ public V1ThanosRulerSpecVolumes emptyDir(V1ThanosRulerSpecEmptyDir emptyDir) { * * @return emptyDir */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecEmptyDir getEmptyDir() { return emptyDir; @@ -371,7 +371,7 @@ public V1ThanosRulerSpecVolumes fc(V1ThanosRulerSpecFc fc) { * * @return fc */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecFc getFc() { return fc; @@ -392,7 +392,7 @@ public V1ThanosRulerSpecVolumes flexVolume(V1ThanosRulerSpecFlexVolume flexVolum * * @return flexVolume */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecFlexVolume getFlexVolume() { return flexVolume; @@ -413,7 +413,7 @@ public V1ThanosRulerSpecVolumes flocker(V1ThanosRulerSpecFlocker flocker) { * * @return flocker */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecFlocker getFlocker() { return flocker; @@ -435,7 +435,7 @@ public V1ThanosRulerSpecVolumes gcePersistentDisk( * * @return gcePersistentDisk */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecGcePersistentDisk getGcePersistentDisk() { return gcePersistentDisk; @@ -456,7 +456,7 @@ public V1ThanosRulerSpecVolumes gitRepo(V1ThanosRulerSpecGitRepo gitRepo) { * * @return gitRepo */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecGitRepo getGitRepo() { return gitRepo; @@ -477,7 +477,7 @@ public V1ThanosRulerSpecVolumes glusterfs(V1ThanosRulerSpecGlusterfs glusterfs) * * @return glusterfs */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecGlusterfs getGlusterfs() { return glusterfs; @@ -498,7 +498,7 @@ public V1ThanosRulerSpecVolumes hostPath(V1ThanosRulerSpecHostPath hostPath) { * * @return hostPath */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecHostPath getHostPath() { return hostPath; @@ -519,7 +519,7 @@ public V1ThanosRulerSpecVolumes iscsi(V1ThanosRulerSpecIscsi iscsi) { * * @return iscsi */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecIscsi getIscsi() { return iscsi; @@ -564,7 +564,7 @@ public V1ThanosRulerSpecVolumes nfs(V1ThanosRulerSpecNfs nfs) { * * @return nfs */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecNfs getNfs() { return nfs; @@ -586,7 +586,7 @@ public V1ThanosRulerSpecVolumes persistentVolumeClaim( * * @return persistentVolumeClaim */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecPersistentVolumeClaim getPersistentVolumeClaim() { return persistentVolumeClaim; @@ -609,7 +609,7 @@ public V1ThanosRulerSpecVolumes photonPersistentDisk( * * @return photonPersistentDisk */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecPhotonPersistentDisk getPhotonPersistentDisk() { return photonPersistentDisk; @@ -630,7 +630,7 @@ public V1ThanosRulerSpecVolumes portworxVolume(V1ThanosRulerSpecPortworxVolume p * * @return portworxVolume */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecPortworxVolume getPortworxVolume() { return portworxVolume; @@ -651,7 +651,7 @@ public V1ThanosRulerSpecVolumes projected(V1ThanosRulerSpecProjected projected) * * @return projected */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecProjected getProjected() { return projected; @@ -672,7 +672,7 @@ public V1ThanosRulerSpecVolumes quobyte(V1ThanosRulerSpecQuobyte quobyte) { * * @return quobyte */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecQuobyte getQuobyte() { return quobyte; @@ -693,7 +693,7 @@ public V1ThanosRulerSpecVolumes rbd(V1ThanosRulerSpecRbd rbd) { * * @return rbd */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecRbd getRbd() { return rbd; @@ -714,7 +714,7 @@ public V1ThanosRulerSpecVolumes scaleIO(V1ThanosRulerSpecScaleIO scaleIO) { * * @return scaleIO */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecScaleIO getScaleIO() { return scaleIO; @@ -735,7 +735,7 @@ public V1ThanosRulerSpecVolumes secret(V1ThanosRulerSpecSecret secret) { * * @return secret */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecSecret getSecret() { return secret; @@ -756,7 +756,7 @@ public V1ThanosRulerSpecVolumes storageos(V1ThanosRulerSpecStorageos storageos) * * @return storageos */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecStorageos getStorageos() { return storageos; @@ -777,7 +777,7 @@ public V1ThanosRulerSpecVolumes vsphereVolume(V1ThanosRulerSpecVsphereVolume vsp * * @return vsphereVolume */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "") public V1ThanosRulerSpecVsphereVolume getVsphereVolume() { return vsphereVolume; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVsphereVolume.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVsphereVolume.java index 773e16a870..7e040f05a9 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVsphereVolume.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerSpecVsphereVolume.java @@ -21,7 +21,7 @@ @ApiModel( description = "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerSpecVsphereVolume { @@ -58,7 +58,7 @@ public V1ThanosRulerSpecVsphereVolume fsType(String fsType) { * * @return fsType */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "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.") @@ -81,7 +81,7 @@ public V1ThanosRulerSpecVsphereVolume storagePolicyID(String storagePolicyID) { * * @return storagePolicyID */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty( value = "Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.") @@ -104,7 +104,7 @@ public V1ThanosRulerSpecVsphereVolume storagePolicyName(String storagePolicyName * * @return storagePolicyName */ - @javax.annotation.Nullable + @jakarta.annotation.Nullable @ApiModelProperty(value = "Storage Policy Based Management (SPBM) profile name.") public String getStoragePolicyName() { return storagePolicyName; diff --git a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerStatus.java b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerStatus.java index 9f2f99bbb6..e5b5824165 100644 --- a/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerStatus.java +++ b/client-java-contrib/prometheus-operator/src/main/java/com/coreos/monitoring/models/V1ThanosRulerStatus.java @@ -25,7 +25,7 @@ @ApiModel( description = "Most recent observed status of the ThanosRuler cluster. Read-only. Not included when requesting from the apiserver, only from the ThanosRuler Operator API itself. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") -@javax.annotation.Generated( +@jakarta.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-31T19:41:55.826Z[Etc/UTC]") public class V1ThanosRulerStatus { diff --git a/e2e/pom.xml b/e2e/pom.xml index 3a737d192f..3def901bd6 100644 --- a/e2e/pom.xml +++ b/e2e/pom.xml @@ -9,7 +9,7 @@ client-java-parent io.kubernetes - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT ../pom.xml @@ -24,15 +24,22 @@ client-java-extended ${project.version} - + + + org.assertj + assertj-core + test + + + org.junit.jupiter junit-jupiter test - org.assertj - assertj-core + org.junit.jupiter + junit-jupiter-params test @@ -42,12 +49,6 @@ ${slf4j.version} test - - org.slf4j - slf4j-simple - ${slf4j.version} - test - org.awaitility awaitility diff --git a/e2e/src/test/java/io/kubernetes/client/e2e/basic/ProtoClientTest.java b/e2e/src/test/java/io/kubernetes/client/e2e/basic/ProtoClientTest.java new file mode 100644 index 0000000000..e72ca9d205 --- /dev/null +++ b/e2e/src/test/java/io/kubernetes/client/e2e/basic/ProtoClientTest.java @@ -0,0 +1,80 @@ +/* +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.e2e.basic; + +import static org.assertj.core.api.Assertions.assertThat; + +import io.kubernetes.client.ProtoClient; +import io.kubernetes.client.ProtoClient.ObjectOrStatus; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.proto.Meta.ObjectMeta; +import io.kubernetes.client.proto.V1.Namespace; +import io.kubernetes.client.proto.V1.NamespaceList; +import io.kubernetes.client.util.ClientBuilder; +import org.junit.jupiter.api.Test; + +class ProtoClientTest { + + @Test + void createListGetAndDeleteNamespace() throws Exception { + ApiClient client = ClientBuilder.defaultClient(); + ProtoClient protoClient = new ProtoClient(client); + + // Create a namespace using protocol buffers + Namespace namespace = Namespace.newBuilder() + .setMetadata(ObjectMeta.newBuilder().setName("e2e-proto-test").build()) + .build(); + + ObjectOrStatus createResult = protoClient.create( + namespace, + "/api/v1/namespaces", + "v1", + "Namespace"); + + assertThat(createResult.object).isNotNull(); + assertThat(createResult.object.getMetadata().getName()).isEqualTo("e2e-proto-test"); + assertThat(createResult.status).isNull(); + + // List namespaces using protocol buffers + ObjectOrStatus listResult = protoClient.list( + NamespaceList.newBuilder(), + "/api/v1/namespaces"); + + assertThat(listResult.object).isNotNull(); + assertThat(listResult.object.getItemsCount()).isGreaterThan(0); + assertThat(listResult.status).isNull(); + + // Verify our namespace is in the list + boolean found = listResult.object.getItemsList().stream() + .anyMatch(ns -> ns.getMetadata().getName().equals("e2e-proto-test")); + assertThat(found).isTrue(); + + // Get the specific namespace using protocol buffers + ObjectOrStatus getResult = protoClient.get( + Namespace.newBuilder(), + "/api/v1/namespaces/e2e-proto-test"); + + assertThat(getResult.object).isNotNull(); + assertThat(getResult.object.getMetadata().getName()).isEqualTo("e2e-proto-test"); + assertThat(getResult.status).isNull(); + + // Delete the namespace using protocol buffers + ObjectOrStatus deleteResult = protoClient.delete( + Namespace.newBuilder(), + "/api/v1/namespaces/e2e-proto-test"); + + assertThat(deleteResult).isNotNull(); + // Either we get the namespace object back or a status + assertThat(deleteResult.object != null || deleteResult.status != null).isTrue(); + } +} diff --git a/examples/examples-release-17/Dockerfile b/examples/examples-release-17/Dockerfile deleted file mode 100644 index ac90eb1d67..0000000000 --- a/examples/examples-release-17/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM openjdk:8-jre - -COPY target/client-java-examples-*-SNAPSHOT-jar-with-dependencies.jar /examples.jar - -CMD ["java", "-jar", "/examples.jar"] - - diff --git a/examples/examples-release-17/README.md b/examples/examples-release-17/README.md deleted file mode 100644 index c6e02e41fd..0000000000 --- a/examples/examples-release-17/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Running examples - -```sh -export REPO_ROOT=/path/to/client-java/repo - -cd ${REPO_ROOT}/ -mvn install - -cd ${REPO_ROOT}/examples/examples-14 -mvn compile -mvn exec:java -Dexec.mainClass="io.kubernetes.client.examples.Example" -``` - diff --git a/examples/examples-release-17/createPod.sh b/examples/examples-release-17/createPod.sh deleted file mode 100755 index 18a9841317..0000000000 --- a/examples/examples-release-17/createPod.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# creates a pod and runs -# Example.java(list pods for all namespaces) on starting of pod - -# Exit on any error. -set -e - -if ! which minikube > /dev/null; then - echo "This script requires minikube installed." - exit 100 -fi - -dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -export REPO_ROOT=${dir}/.. - -cd ${REPO_ROOT} -mvn install - -cd ${REPO_ROOT}/examples -mvn package - -eval $(minikube docker-env) -docker build -t test/examples:1.0 . -kubectl apply -f test.yaml diff --git a/examples/examples-release-17/pom.xml b/examples/examples-release-17/pom.xml deleted file mode 100644 index c8a1851a57..0000000000 --- a/examples/examples-release-17/pom.xml +++ /dev/null @@ -1,124 +0,0 @@ - - 4.0.0 - - client-java-examples-release-17 - client-java-examples-release-17 - io.kubernetes - 17.0.0 - - - - ch.qos.logback - logback-classic - 1.5.9 - runtime - - - io.prometheus - simpleclient - 0.15.0 - - - io.prometheus - simpleclient_httpserver - 0.15.0 - - - io.kubernetes - client-java-api - 17.0.0 - - - io.kubernetes - client-java - 17.0.0 - - - io.kubernetes - client-java-extended - 17.0.0 - - - io.kubernetes - client-java-spring-integration - 17.0.0 - - - io.kubernetes - client-java-proto - 17.0.0 - - - commons-cli - commons-cli - 1.9.0 - - - io.kubernetes - client-java-cert-manager-models - 10.0.1 - - - io.kubernetes - client-java-prometheus-operator-models - 10.0.1 - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - org.wiremock - wiremock - 3.9.1 - test - - - - org.springframework.boot - spring-boot-starter-web - ${spring.boot.version} - - - org.springframework.boot - spring-boot-starter-actuator - ${spring.boot.version} - - - - - - - - com.diffplug.spotless - spotless-maven-plugin - 2.43.0 - - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - true - - - - org.apache.maven.plugins - maven-deploy-plugin - - true - - - - - - 5.11.2 - 3.3.4 - - \ No newline at end of file diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/AttachExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/AttachExample.java deleted file mode 100644 index 7f753b8d8f..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/AttachExample.java +++ /dev/null @@ -1,77 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Attach; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStreamReader; -import java.io.OutputStream; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.AttachExample" - * - *

From inside $REPO_DIR/examples - */ -public class AttachExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Attach attach = new Attach(); - final Attach.AttachResult result = attach.attach("default", "nginx-4217019353-k5sn9", true); - - new Thread( - new Runnable() { - public void run() { - BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); - OutputStream output = result.getStandardInputStream(); - try { - while (true) { - String line = in.readLine(); - output.write(line.getBytes()); - output.write('\n'); - output.flush(); - } - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(result.getStandardOutputStream(), System.out); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - Thread.sleep(10 * 1000); - result.close(); - System.exit(0); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CertManagerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CertManagerExample.java deleted file mode 100644 index b616a18ee9..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CertManagerExample.java +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.cert.manager.models.V1alpha2IssuerSpecSelfSigned; -import io.cert.manager.models.V1beta1Issuer; -import io.cert.manager.models.V1beta1IssuerList; -import io.cert.manager.models.V1beta1IssuerSpec; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.io.IOException; - -/** - * This sample creates a self signed issuer "self-signed-issuer" in default namespace on a - * Kubernetes cluster where cert-manager is installed - */ -public class CertManagerExample { - public static void main(String[] args) throws IOException { - GenericKubernetesApi issuerApi = - new GenericKubernetesApi<>( - V1beta1Issuer.class, - V1beta1IssuerList.class, - "cert-manager.io", - "v1beta1", - "issuers", - ClientBuilder.defaultClient()); - issuerApi.create( - new V1beta1Issuer() - .metadata(new V1ObjectMeta().namespace("default").name("self-signed-issuer")) - .kind("Issuer") - .apiVersion("cert-manager.io/v1beta1") - .spec(new V1beta1IssuerSpec().selfSigned(new V1alpha2IssuerSpecSelfSigned()))); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ControllerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ControllerExample.java deleted file mode 100644 index fed0e544d3..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ControllerExample.java +++ /dev/null @@ -1,163 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.controller.Controller; -import io.kubernetes.client.extended.controller.ControllerManager; -import io.kubernetes.client.extended.controller.LeaderElectingController; -import io.kubernetes.client.extended.controller.builder.ControllerBuilder; -import io.kubernetes.client.extended.controller.reconciler.Reconciler; -import io.kubernetes.client.extended.controller.reconciler.Request; -import io.kubernetes.client.extended.controller.reconciler.Result; -import io.kubernetes.client.extended.event.EventType; -import io.kubernetes.client.extended.event.legacy.EventBroadcaster; -import io.kubernetes.client.extended.event.legacy.EventRecorder; -import io.kubernetes.client.extended.event.legacy.LegacyEventBroadcaster; -import io.kubernetes.client.extended.leaderelection.LeaderElectionConfig; -import io.kubernetes.client.extended.leaderelection.LeaderElector; -import io.kubernetes.client.extended.leaderelection.resourcelock.EndpointsLock; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1EventSource; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.util.CallGeneratorParams; -import java.io.IOException; -import java.time.Duration; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -public class ControllerExample { - public static void main(String[] args) throws IOException { - - CoreV1Api coreV1Api = new CoreV1Api(); - ApiClient apiClient = coreV1Api.getApiClient(); - OkHttpClient httpClient = - apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - apiClient.setHttpClient(httpClient); - - // instantiating an informer-factory, and there should be only one informer-factory - // globally. - SharedInformerFactory informerFactory = new SharedInformerFactory(); - // registering node-informer into the informer-factory. - SharedIndexInformer nodeInformer = - informerFactory.sharedIndexInformerFor( - (CallGeneratorParams params) -> { - return coreV1Api.listNodeCall( - null, - null, - null, - null, - null, - null, - params.resourceVersion, - null, - params.timeoutSeconds, - params.watch, - null); - }, - V1Node.class, - V1NodeList.class); - informerFactory.startAllRegisteredInformers(); - - EventBroadcaster eventBroadcaster = new LegacyEventBroadcaster(coreV1Api); - - // nodeReconciler prints node information on events - NodePrintingReconciler nodeReconciler = - new NodePrintingReconciler( - nodeInformer, - eventBroadcaster.newRecorder( - new V1EventSource().host("localhost").component("node-printer"))); - - // Use builder library to construct a default controller. - Controller controller = - ControllerBuilder.defaultBuilder(informerFactory) - .watch( - (workQueue) -> - ControllerBuilder.controllerWatchBuilder(V1Node.class, workQueue) - .withWorkQueueKeyFunc( - (V1Node node) -> - new Request(node.getMetadata().getName())) // optional, default to - .withOnAddFilter( - (V1Node createdNode) -> - createdNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onAdd filter - .withOnUpdateFilter( - (V1Node oldNode, V1Node newNode) -> - newNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onUpdate filter - .withOnDeleteFilter( - (V1Node deletedNode, Boolean stateUnknown) -> - deletedNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onDelete filter - .build()) - .withReconciler(nodeReconciler) // required, set the actual reconciler - .withName("node-printing-controller") // optional, set name for controller - .withWorkerCount(4) // optional, set worker thread count - .withReadyFunc(nodeInformer::hasSynced) // optional, only starts controller when the - // cache has synced up - .build(); - - // Use builder library to manage one or multiple controllers. - ControllerManager controllerManager = - ControllerBuilder.controllerManagerBuilder(informerFactory) - .addController(controller) - .build(); - - LeaderElectingController leaderElectingController = - new LeaderElectingController( - new LeaderElector( - new LeaderElectionConfig( - new EndpointsLock("kube-system", "leader-election", "foo"), - Duration.ofMillis(10000), - Duration.ofMillis(8000), - Duration.ofMillis(5000))), - controllerManager); - - leaderElectingController.run(); - } - - static class NodePrintingReconciler implements Reconciler { - - private Lister nodeLister; - private EventRecorder eventRecorder; - - public NodePrintingReconciler( - SharedIndexInformer nodeInformer, EventRecorder recorder) { - this.nodeLister = new Lister<>(nodeInformer.getIndexer()); - this.eventRecorder = recorder; - } - - @Override - public Result reconcile(Request request) { - V1Node node = this.nodeLister.get(request.getName()); - System.out.println("triggered reconciling " + node.getMetadata().getName()); - this.eventRecorder.event( - node, - EventType.Normal, - "Print Node", - "Successfully printed %s", - node.getMetadata().getName()); - return new Result(false); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CopyExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CopyExample.java deleted file mode 100644 index bbb6575676..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/CopyExample.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Copy; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import io.kubernetes.client.util.exception.CopyNotSupportedException; -import java.io.IOException; -import java.io.InputStream; -import java.nio.file.Paths; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.CopyExample" - * - *

From inside $REPO_DIR/examples - */ -public class CopyExample { - public static void main(String[] args) - throws IOException, ApiException, InterruptedException, CopyNotSupportedException { - String podName = "kube-addon-manager-minikube"; - String namespace = "kube-system"; - - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Copy copy = new Copy(); - InputStream dataStream = copy.copyFileFromPod(namespace, podName, "/etc/motd"); - Streams.copy(dataStream, System.out); - - copy.copyDirectoryFromPod(namespace, podName, null, "/etc", Paths.get("/tmp/etc")); - - System.out.println("Done!"); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java deleted file mode 100644 index b8cb04616d..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java +++ /dev/null @@ -1,42 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.dynamic.DynamicKubernetesApi; -import io.kubernetes.client.util.generic.dynamic.DynamicKubernetesObject; -import java.io.IOException; - -public class DynamicClientExample { - - public static void main(String[] args) throws IOException, ApiException { - - ApiClient apiClient = ClientBuilder.standard().build(); - - // retrieving the latest state of the default namespace - DynamicKubernetesApi dynamicApi = new DynamicKubernetesApi("", "v1", "namespaces", apiClient); - DynamicKubernetesObject defaultNamespace = - dynamicApi.get("default").throwsApiException().getObject(); - - // attaching a "foo=bar" label to the default namespace - defaultNamespace.setMetadata(defaultNamespace.getMetadata().putLabelsItem("foo", "bar")); - DynamicKubernetesObject updatedDefaultNamespace = - dynamicApi.update(defaultNamespace).throwsApiException().getObject(); - - System.out.println(updatedDefaultNamespace); - - apiClient.getHttpClient().connectionPool().evictAll(); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/Example.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/Example.java deleted file mode 100644 index 95d7fa51bc..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/Example.java +++ /dev/null @@ -1,44 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.Example" - * - *

From inside $REPO_DIR/examples - */ -public class Example { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExecExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExecExample.java deleted file mode 100644 index acea8e815a..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExecExample.java +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Exec; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.CommandLineParser; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.ParseException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ExecExample" - * - *

From inside $REPO_DIR/examples - */ -public class ExecExample { - public static void main(String[] args) - throws IOException, ApiException, InterruptedException, ParseException { - final Options options = new Options(); - options.addOption(new Option("p", "pod", true, "The name of the pod")); - options.addOption(new Option("n", "namespace", true, "The namespace of the pod")); - - CommandLineParser parser = new DefaultParser(); - CommandLine cmd = parser.parse(options, args); - - String podName = cmd.getOptionValue("p", "nginx-dbddb74b8-s4cx5"); - String namespace = cmd.getOptionValue("n", "default"); - args = cmd.getArgs(); - - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Exec exec = new Exec(); - boolean tty = System.console() != null; - // final Process proc = exec.exec("default", "nginx-4217019353-k5sn9", new String[] - // {"sh", "-c", "echo foo"}, true, tty); - final Process proc = - exec.exec(namespace, podName, args.length == 0 ? new String[] {"sh"} : args, true, tty); - - Thread in = - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(System.in, proc.getOutputStream()); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - in.start(); - - Thread out = - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(proc.getInputStream(), System.out); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - out.start(); - - proc.waitFor(); - - // wait for any last output; no need to wait for input thread - out.join(); - - proc.destroy(); - - System.exit(proc.exitValue()); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExpandedExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExpandedExample.java deleted file mode 100644 index 8701bda841..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ExpandedExample.java +++ /dev/null @@ -1,274 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1DeploymentList; -import io.kubernetes.client.openapi.models.V1DeploymentSpec; -import io.kubernetes.client.openapi.models.V1NamespaceList; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1ServiceList; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.List; -import java.util.Optional; -import java.util.stream.Collectors; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ExpandedExample" - * - *

From inside $REPO_DIR/examples - */ -public class ExpandedExample { - - private static CoreV1Api COREV1_API; - private static final String DEFAULT_NAME_SPACE = "default"; - private static final Integer TIME_OUT_VALUE = 180; - private static final Logger LOGGER = LoggerFactory.getLogger(ExpandedExample.class); - - /** - * Main method - * - * @param args - */ - public static void main(String[] args) { - try { - ApiClient client = Config.defaultClient(); - // To change the context of k8s cluster, you can use - // io.kubernetes.client.util.KubeConfig - Configuration.setDefaultApiClient(client); - COREV1_API = new CoreV1Api(client); - - // ScaleUp/ScaleDown the Deployment pod - // Please change the name of Deployment? - System.out.println("----- Scale Deployment Start -----"); - scaleDeployment("account-service", 5); - - // List all of the namespaces and pods - List nameSpaces = getAllNameSpaces(); - nameSpaces.stream() - .forEach( - namespace -> { - try { - System.out.println("----- " + namespace + " -----"); - getNamespacedPod(namespace).stream().forEach(System.out::println); - } catch (ApiException ex) { - LOGGER.warn("Couldn't get the pods in namespace:{}", namespace, ex); - } - }); - - // Print all of the Services - System.out.println("----- Print list all Services Start -----"); - List services = getServices(); - services.stream().forEach(System.out::println); - System.out.println("----- Print list all Services End -----"); - - // Print log of specific pod. In this example show the first pod logs. - System.out.println("----- Print Log of Specific Pod Start -----"); - String firstPodName = getPods().get(0); - printLog(DEFAULT_NAME_SPACE, firstPodName); - System.out.println("----- Print Log of Specific Pod End -----"); - } catch (ApiException | IOException ex) { - LOGGER.warn("Exception had occured ", ex); - } - } - - /** - * Get all namespaces in k8s cluster - * - * @return - * @throws ApiException - */ - public static List getAllNameSpaces() throws ApiException { - V1NamespaceList listNamespace = - COREV1_API.listNamespace( - "true", null, null, null, null, 0, null, null, Integer.MAX_VALUE, Boolean.FALSE); - List list = - listNamespace.getItems().stream() - .map(v1Namespace -> v1Namespace.getMetadata().getName()) - .collect(Collectors.toList()); - return list; - } - - /** - * List all pod names in all namespaces in k8s cluster - * - * @return - * @throws ApiException - */ - public static List getPods() throws ApiException { - V1PodList v1podList = - COREV1_API.listPodForAllNamespaces( - null, null, null, null, null, null, null, null, null, null); - List podList = - v1podList.getItems().stream() - .map(v1Pod -> v1Pod.getMetadata().getName()) - .collect(Collectors.toList()); - return podList; - } - - /** - * List all pod in the default namespace - * - * @return - * @throws ApiException - */ - public static List getNamespacedPod() throws ApiException { - return getNamespacedPod(DEFAULT_NAME_SPACE, null); - } - - /** - * List pod in specific namespace - * - * @param namespace - * @return - * @throws ApiException - */ - public static List getNamespacedPod(String namespace) throws ApiException { - return getNamespacedPod(namespace, null); - } - - /** - * List pod in specific namespace with label - * - * @param namespace - * @param label - * @return - * @throws ApiException - */ - public static List getNamespacedPod(String namespace, String label) throws ApiException { - V1PodList listNamespacedPod = - COREV1_API.listNamespacedPod( - namespace, - null, - null, - null, - null, - label, - Integer.MAX_VALUE, - null, - null, - TIME_OUT_VALUE, - Boolean.FALSE); - List listPods = - listNamespacedPod.getItems().stream() - .map(v1pod -> v1pod.getMetadata().getName()) - .collect(Collectors.toList()); - return listPods; - } - - /** - * List all Services in default namespace - * - * @return - * @throws ApiException - */ - public static List getServices() throws ApiException { - V1ServiceList listNamespacedService = - COREV1_API.listNamespacedService( - DEFAULT_NAME_SPACE, - null, - null, - null, - null, - null, - Integer.MAX_VALUE, - null, - null, - TIME_OUT_VALUE, - Boolean.FALSE); - return listNamespacedService.getItems().stream() - .map(v1service -> v1service.getMetadata().getName()) - .collect(Collectors.toList()); - } - - /** - * Scale up/down the number of pod in Deployment - * - * @param deploymentName - * @param numberOfReplicas - * @throws ApiException - */ - public static void scaleDeployment(String deploymentName, int numberOfReplicas) - throws ApiException { - AppsV1Api appsV1Api = new AppsV1Api(); - appsV1Api.setApiClient(COREV1_API.getApiClient()); - V1DeploymentList listNamespacedDeployment = - appsV1Api.listNamespacedDeployment( - DEFAULT_NAME_SPACE, - null, - null, - null, - null, - null, - null, - null, - null, - null, - Boolean.FALSE); - - List appsV1DeploymentItems = listNamespacedDeployment.getItems(); - Optional findedDeployment = - appsV1DeploymentItems.stream() - .filter( - (V1Deployment deployment) -> - deployment.getMetadata().getName().equals(deploymentName)) - .findFirst(); - findedDeployment.ifPresent( - (V1Deployment deploy) -> { - try { - V1DeploymentSpec newSpec = deploy.getSpec().replicas(numberOfReplicas); - V1Deployment newDeploy = deploy.spec(newSpec); - appsV1Api.replaceNamespacedDeployment( - deploymentName, DEFAULT_NAME_SPACE, newDeploy, null, null, null, null); - } catch (ApiException ex) { - LOGGER.warn("Scale the pod failed for Deployment:{}", deploymentName, ex); - } - }); - } - - /** - * Print out the Log for specific Pods - * - * @param namespace - * @param podName - * @throws ApiException - */ - public static void printLog(String namespace, String podName) throws ApiException { - // https://github.com/kubernetes-client/java/blob/master/kubernetes/docs/CoreV1Api.md#readNamespacedPodLog - String readNamespacedPodLog = - COREV1_API.readNamespacedPodLog( - podName, - namespace, - null, - Boolean.FALSE, - null, - Integer.MAX_VALUE, - null, - Boolean.FALSE, - Integer.MAX_VALUE, - 40, - Boolean.FALSE); - System.out.println(readNamespacedPodLog); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/FluentExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/FluentExample.java deleted file mode 100644 index 8e48cc51b3..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/FluentExample.java +++ /dev/null @@ -1,75 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodBuilder; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.Arrays; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.FluentExample" - * - *

From inside $REPO_DIR/examples - */ -public class FluentExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - - V1Pod pod = - new V1PodBuilder() - .withNewMetadata() - .withName("apod") - .endMetadata() - .withNewSpec() - .addNewContainer() - .withName("www") - .withImage("nginx") - .endContainer() - .endSpec() - .build(); - - api.createNamespacedPod("default", pod, null, null, null, null); - - V1Pod pod2 = - new V1Pod() - .metadata(new V1ObjectMeta().name("anotherpod")) - .spec( - new V1PodSpec() - .containers(Arrays.asList(new V1Container().name("www").image("nginx")))); - - api.createNamespacedPod("default", pod2, null, null, null, null); - - V1PodList list = - api.listNamespacedPod( - "default", null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/GenericClientExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/GenericClientExample.java deleted file mode 100644 index ddfb1243b8..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/GenericClientExample.java +++ /dev/null @@ -1,63 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.util.Arrays; - -public class GenericClientExample { - - public static void main(String[] args) throws Exception { - - // The following codes demonstrates using generic client to manipulate pods - V1Pod pod = - new V1Pod() - .metadata(new V1ObjectMeta().name("foo").namespace("default")) - .spec( - new V1PodSpec() - .containers(Arrays.asList(new V1Container().name("c").image("test")))); - - ApiClient apiClient = ClientBuilder.standard().build(); - GenericKubernetesApi podClient = - new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient); - - V1Pod latestPod = podClient.create(pod).throwsApiException().getObject(); - System.out.println("Created!"); - - V1Pod patchedPod = - podClient - .patch( - "default", - "foo", - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - new V1Patch("{\"metadata\":{\"finalizers\":[\"example.io/foo\"]}}")) - .throwsApiException() - .getObject(); - System.out.println("Patched!"); - - V1Pod deletedPod = podClient.delete("default", "foo").throwsApiException().getObject(); - if (deletedPod != null) { - System.out.println( - "Received after-deletion status of the requested object, will be deleting in background!"); - } - System.out.println("Deleted!"); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java deleted file mode 100644 index 7ab705b440..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.ClientBuilder; -import java.io.IOException; - -/** - * A simple example of how to use the Java API inside a kubernetes cluster - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.InClusterClientExample" - * - *

From inside $REPO_DIR/examples - */ -public class InClusterClientExample { - public static void main(String[] args) throws IOException, ApiException { - - // loading the in-cluster config, including: - // 1. service-account CA - // 2. service-account bearer-token - // 3. service-account namespace - // 4. master endpoints(ip, port) from pre-set environment variables - ApiClient client = ClientBuilder.cluster().build(); - - // if you prefer not to refresh service account token, please use: - // ApiClient client = ClientBuilder.oldCluster().build(); - - // set the global default api-client to the in-cluster one from above - Configuration.setDefaultApiClient(client); - - // the CoreV1Api loads default api-client from global configuration. - CoreV1Api api = new CoreV1Api(); - - // invokes the CoreV1Api client - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InformerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InformerExample.java deleted file mode 100644 index bae1ef3595..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/InformerExample.java +++ /dev/null @@ -1,106 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.informer.ResourceEventHandler; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.CallGeneratorParams; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.InformerExample" - * - *

From inside $REPO_DIR/examples - */ -public class InformerExample { - public static void main(String[] args) throws Exception { - CoreV1Api coreV1Api = new CoreV1Api(); - ApiClient apiClient = coreV1Api.getApiClient(); - OkHttpClient httpClient = - apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - apiClient.setHttpClient(httpClient); - - SharedInformerFactory factory = new SharedInformerFactory(apiClient); - - // Node informer - SharedIndexInformer nodeInformer = - factory.sharedIndexInformerFor( - (CallGeneratorParams params) -> { - // **NOTE**: - // The following "CallGeneratorParams" lambda merely generates a stateless - // HTTPs requests, the effective apiClient is the one specified when constructing - // the informer-factory. - return coreV1Api.listNodeCall( - null, - null, - null, - null, - null, - null, - params.resourceVersion, - null, - params.timeoutSeconds, - params.watch, - null); - }, - V1Node.class, - V1NodeList.class); - - nodeInformer.addEventHandler( - new ResourceEventHandler() { - @Override - public void onAdd(V1Node node) { - System.out.printf("%s node added!\n", node.getMetadata().getName()); - } - - @Override - public void onUpdate(V1Node oldNode, V1Node newNode) { - System.out.printf( - "%s => %s node updated!\n", - oldNode.getMetadata().getName(), newNode.getMetadata().getName()); - } - - @Override - public void onDelete(V1Node node, boolean deletedFinalStateUnknown) { - System.out.printf("%s node deleted!\n", node.getMetadata().getName()); - } - }); - - factory.startAllRegisteredInformers(); - - V1Node nodeToCreate = new V1Node(); - V1ObjectMeta metadata = new V1ObjectMeta(); - metadata.setName("noxu"); - nodeToCreate.setMetadata(metadata); - V1Node createdNode = coreV1Api.createNode(nodeToCreate, null, null, null, null); - Thread.sleep(3000); - - Lister nodeLister = new Lister(nodeInformer.getIndexer()); - V1Node node = nodeLister.get("noxu"); - System.out.printf("noxu created! %s\n", node.getMetadata().getCreationTimestamp()); - factory.stopAllRegisteredInformers(); - Thread.sleep(3000); - System.out.println("informer stopped.."); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java deleted file mode 100644 index 95c94a1e80..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.KubeConfig; -import java.io.FileReader; -import java.io.IOException; - -/** - * A simple example of how to use the Java API from an application outside a kubernetes cluster - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.KubeConfigFileClientExample" - * - *

From inside $REPO_DIR/examples - */ -public class KubeConfigFileClientExample { - public static void main(String[] args) throws IOException, ApiException { - - // file path to your KubeConfig - - String kubeConfigPath = System.getenv("HOME") + "/.kube/config"; - - // loading the out-of-cluster config, a kubeconfig from file-system - ApiClient client = - ClientBuilder.kubeconfig(KubeConfig.loadKubeConfig(new FileReader(kubeConfigPath))).build(); - - // set the global default api-client to the out-of-cluster one from above - Configuration.setDefaultApiClient(client); - - // the CoreV1Api loads default api-client from global configuration. - CoreV1Api api = new CoreV1Api(); - - // invokes the CoreV1Api client - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubectlExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubectlExample.java deleted file mode 100644 index 2619c9f271..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/KubectlExample.java +++ /dev/null @@ -1,311 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import static io.kubernetes.client.extended.kubectl.Kubectl.apiResources; -import static io.kubernetes.client.extended.kubectl.Kubectl.copy; -import static io.kubernetes.client.extended.kubectl.Kubectl.cordon; -import static io.kubernetes.client.extended.kubectl.Kubectl.delete; -import static io.kubernetes.client.extended.kubectl.Kubectl.drain; -import static io.kubernetes.client.extended.kubectl.Kubectl.exec; -import static io.kubernetes.client.extended.kubectl.Kubectl.label; -import static io.kubernetes.client.extended.kubectl.Kubectl.log; -import static io.kubernetes.client.extended.kubectl.Kubectl.portforward; -import static io.kubernetes.client.extended.kubectl.Kubectl.scale; -import static io.kubernetes.client.extended.kubectl.Kubectl.taint; -import static io.kubernetes.client.extended.kubectl.Kubectl.top; -import static io.kubernetes.client.extended.kubectl.Kubectl.uncordon; -import static io.kubernetes.client.extended.kubectl.Kubectl.version; -import static io.kubernetes.client.extended.kubectl.KubectlTop.podMetricSum; - -import io.kubernetes.client.common.KubernetesObject; -import io.kubernetes.client.custom.NodeMetrics; -import io.kubernetes.client.custom.PodMetrics; -import io.kubernetes.client.extended.kubectl.KubectlExec; -import io.kubernetes.client.extended.kubectl.KubectlPortForward; -import io.kubernetes.client.extended.kubectl.exception.KubectlException; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1ReplicationController; -import io.kubernetes.client.openapi.models.V1Service; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.ParseException; -import org.apache.commons.lang3.tuple.Pair; - -/** - * A Java equivalent for the kubectl command line tool. Not nearly as complete. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.KubectlExample" -Dexec.args="log some-pod" - * - *

From inside $REPO_DIR/examples - */ -public class KubectlExample { - static Class getClassForKind(String kind) { - switch (kind) { - case "pod": - case "pods": - return V1Pod.class; - case "deployment": - case "deployments": - return V1Deployment.class; - case "service": - case "services": - return V1Service.class; - case "node": - case "nodes": - return V1Node.class; - case "replicationcontroller": - case "replicationcontrollers": - return V1ReplicationController.class; - } - return null; - } - - private static final String PADDING = " "; - - private static String pad(String value) { - while (value.length() < PADDING.length()) { - value += " "; - } - return value; - } - - public static void main(String[] args) - throws java.io.IOException, KubectlException, ParseException { - ApiClient client = Config.defaultClient(); - - Options options = new Options(); - options.addOption(new Option("n", "namespace", true, "The namespace for the resource")); - options.addOption(new Option("r", "replicas", true, "The number of replicas to scale to")); - options.addOption(new Option("c", "container", true, "The container in a pod to connect to")); - DefaultParser parser = new DefaultParser(); - CommandLine cli = parser.parse(options, args); - - args = cli.getArgs(); - String verb = args[0]; - String ns = cli.getOptionValue("n", "default"); - String kind = null; - String name = null; - - switch (verb) { - case "delete": - kind = args[1]; - name = args[2]; - delete(getClassForKind(kind)).namespace(ns).name(name).execute(); - case "drain": - name = args[1]; - drain().apiClient(client).name(name).execute(); - System.out.println("Node drained"); - System.exit(0); - case "cordon": - name = args[1]; - cordon().apiClient(client).name(name).execute(); - System.out.println("Node cordoned"); - System.exit(0); - case "uncordon": - name = args[1]; - uncordon().apiClient(client).name(name).execute(); - System.out.println("Node uncordoned"); - System.exit(0); - case "top": - String what = args[1]; - switch (what) { - case "nodes": - case "node": - List> nodes = - top(V1Node.class, NodeMetrics.class).apiClient(client).metric("cpu").execute(); - System.out.println(pad("Node") + "\tCPU\t\tMemory"); - for (Pair node : nodes) { - System.out.println( - pad(node.getLeft().getMetadata().getName()) - + "\t" - + node.getRight().getUsage().get("cpu").getNumber() - + "\t" - + node.getRight().getUsage().get("memory").getNumber()); - } - System.exit(0); - case "pods": - case "pod": - List> pods = - top(V1Pod.class, PodMetrics.class) - .apiClient(client) - .namespace(ns) - .metric("cpu") - .execute(); - System.out.println(pad("Pod") + "\tCPU\t\tMemory"); - for (Pair pod : pods) { - System.out.println( - pad(pod.getLeft().getMetadata().getName()) - + "\t" - + podMetricSum(pod.getRight(), "cpu") - + "\t" - + podMetricSum(pod.getRight(), "memory")); - } - System.exit(0); - } - System.err.println("Unknown top argument: " + what); - System.exit(-1); - case "cp": - String from = args[1]; - String to = args[2]; - if (from.indexOf(":") != -1) { - String[] parts = from.split(":"); - name = parts[0]; - from = parts[1]; - copy() - .apiClient(client) - .namespace(ns) - .name(name) - .container(cli.getOptionValue("c", "")) - .fromPod(from) - .to(to) - .execute(); - } else if (to.indexOf(":") != -1) { - String[] parts = to.split(":"); - name = parts[0]; - to = parts[1]; - copy() - .apiClient(client) - .namespace(ns) - .name(name) - .container(cli.getOptionValue("c", "")) - .from(from) - .toPod(to) - .execute(); - } else { - System.err.println("Missing pod name for copy."); - System.exit(-1); - } - System.out.println("Copied " + from + " -> " + to); - System.exit(0); - case "taint": - name = args[1]; - String taintSpec = args[2]; - boolean remove = taintSpec.endsWith("-"); - int ix = taintSpec.indexOf("="); - int ix2 = taintSpec.indexOf(":"); - - if (remove) { - taintSpec = taintSpec.substring(0, taintSpec.length() - 2); - String key = ix == -1 ? taintSpec : taintSpec.substring(0, ix); - String effect = ix == -1 ? null : taintSpec.substring(ix + 1); - - if (effect == null) { - taint().apiClient(client).name(name).removeTaint(key).execute(); - } else { - taint().apiClient(client).name(name).removeTaint(key, effect).execute(); - } - System.exit(0); - } - if (ix2 == -1) { - System.err.println("key:effect or key=value:effect is required."); - System.exit(-1); - } - String key = taintSpec.substring(0, ix == -1 ? ix2 : ix); - String value = ix == -1 ? null : taintSpec.substring(ix + 1, ix2); - String effect = taintSpec.substring(ix2 + 1); - - if (value == null) { - taint().apiClient(client).name(name).addTaint(key, effect).execute(); - } else { - taint().apiClient(client).name(name).addTaint(key, value, effect).execute(); - } - System.exit(0); - case "portforward": - name = args[1]; - KubectlPortForward forward = portforward().apiClient(client).name(name).namespace(ns); - for (int i = 2; i < args.length; i++) { - String port = args[i]; - String[] ports = port.split(":"); - System.out.println("Forwarding " + ns + "/" + name + " " + ports[0] + "->" + ports[1]); - forward.ports(Integer.parseInt(ports[0]), Integer.parseInt(ports[1])); - } - forward.execute(); - System.exit(0); - case "log": - name = args[1]; - Streams.copy( - log() - .apiClient(client) - .name(name) - .namespace(ns) - .container(cli.getOptionValue("c", "")) - .execute(), - System.out); - System.exit(0); - case "scale": - kind = args[1]; - name = args[2]; - if (!cli.hasOption("r")) { - System.err.println("--replicas is required"); - System.exit(-3); - } - int replicas = Integer.parseInt(cli.getOptionValue("r")); - scale(getClassForKind(kind)) - .apiClient(client) - .namespace(ns) - .name(name) - .replicas(replicas) - .execute(); - System.out.println("Deployment scaled."); - System.exit(0); - case "version": - System.out.println(version().apiClient(client)); - System.exit(0); - case "label": - kind = args[1]; - name = args[2]; - String labelKey = args[3]; - String labelValue = args[4]; - Class clazz = getClassForKind(kind); - if (clazz == null) { - System.err.println("Unknown kind: " + kind); - System.exit(-2); - } - label(clazz).apiClient(client).namespace(ns).name(name).addLabel(labelKey, labelValue); - System.exit(0); - case "exec": - name = args[1]; - String[] command = Arrays.copyOfRange(args, 2, args.length); - KubectlExec e = - exec() - .apiClient(client) - .namespace(ns) - .name(name) - .command(command) - .container(cli.getOptionValue("c", "")); - System.exit(e.execute()); - case "api-resources": - apiResources().apiClient(client).execute().stream() - .forEach( - r -> - System.out.printf( - "%s\t\t%s\t\t%s\t\t%s\n", - r.getResourcePlural(), r.getGroup(), r.getKind(), r.getNamespaced())); - System.exit(0); - default: - System.out.println("Unknown verb: " + verb); - System.exit(-1); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java deleted file mode 100644 index 0e48689602..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.leaderelection.LeaderElectionConfig; -import io.kubernetes.client.extended.leaderelection.LeaderElector; -import io.kubernetes.client.extended.leaderelection.resourcelock.EndpointsLock; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import java.time.Duration; -import java.util.UUID; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.LeaderElectionExample" - * - *

From inside $REPO_DIR/examples - */ -public class LeaderElectionExample { - public static void main(String[] args) throws Exception { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // New - String appNamespace = "default"; - String appName = "leader-election-foobar"; - String lockHolderIdentityName = UUID.randomUUID().toString(); // Anything unique - EndpointsLock lock = new EndpointsLock(appNamespace, appName, lockHolderIdentityName); - - LeaderElectionConfig leaderElectionConfig = - new LeaderElectionConfig( - lock, Duration.ofMillis(10000), Duration.ofMillis(8000), Duration.ofMillis(2000)); - try (LeaderElector leaderElector = new LeaderElector(leaderElectionConfig)) { - leaderElector.run( - () -> { - System.out.println("Do something when getting leadership."); - }, - () -> { - System.out.println("Do something when losing leadership."); - }); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LogsExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LogsExample.java deleted file mode 100644 index dbfa157eea..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/LogsExample.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.PodLogs; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import java.io.InputStream; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.LogsExample" - * - *

From inside $REPO_DIR/examples - */ -public class LogsExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - CoreV1Api coreApi = new CoreV1Api(client); - - PodLogs logs = new PodLogs(); - V1Pod pod = - coreApi - .listNamespacedPod( - "default", "false", null, null, null, null, null, null, null, null, null) - .getItems() - .get(0); - - InputStream is = logs.streamNamespacedPodLog(pod); - Streams.copy(is, System.out); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/MetricsExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/MetricsExample.java deleted file mode 100644 index 0d8c10e30b..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/MetricsExample.java +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Metrics; -import io.kubernetes.client.custom.ContainerMetrics; -import io.kubernetes.client.custom.NodeMetrics; -import io.kubernetes.client.custom.NodeMetricsList; -import io.kubernetes.client.custom.PodMetrics; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.MetricsExample" - * - *

From inside $REPO_DIR/examples - */ -public class MetricsExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Metrics metrics = new Metrics(client); - NodeMetricsList list = metrics.getNodeMetrics(); - for (NodeMetrics item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - System.out.println("------------------------------"); - for (String key : item.getUsage().keySet()) { - System.out.println("\t" + key); - System.out.println("\t" + item.getUsage().get(key)); - } - System.out.println(); - } - - for (PodMetrics item : metrics.getPodMetrics("default").getItems()) { - System.out.println(item.getMetadata().getName()); - System.out.println("------------------------------"); - if (item.getContainers() == null) { - continue; - } - for (ContainerMetrics container : item.getContainers()) { - System.out.println(container.getName()); - System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); - for (String key : container.getUsage().keySet()) { - System.out.println("\t" + key); - System.out.println("\t" + container.getUsage().get(key)); - } - System.out.println(); - } - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PagerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PagerExample.java deleted file mode 100644 index b0a4ac4fa4..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PagerExample.java +++ /dev/null @@ -1,72 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.pager.Pager; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.openapi.models.V1NamespaceList; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PagerExample" - * - *

From inside $REPO_DIR/examples - */ -public class PagerExample { - public static void main(String[] args) throws IOException { - - ApiClient client = Config.defaultClient(); - OkHttpClient httpClient = - client.getHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build(); - client.setHttpClient(httpClient); - Configuration.setDefaultApiClient(client); - CoreV1Api api = new CoreV1Api(); - int i = 0; - Pager pager = - new Pager( - (Pager.PagerParams param) -> { - try { - return api.listNamespaceCall( - null, - null, - param.getContinueToken(), - null, - null, - param.getLimit(), - null, - null, - 1, - null, - null); - } catch (Exception e) { - throw new RuntimeException(e); - } - }, - client, - 10, - V1NamespaceList.class); - for (V1Namespace namespace : pager) { - System.out.println(namespace.getMetadata().getName()); - } - System.out.println("------------------"); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ParseExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ParseExample.java deleted file mode 100644 index 92866a46fe..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ParseExample.java +++ /dev/null @@ -1,64 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.Config; -import java.io.FileReader; -import java.io.IOException; -import java.io.StringReader; - -/** - * A simple example of how to parse a Kubernetes object. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ParseExample" - * - *

From inside $REPO_DIR/examples - */ -public class ParseExample { - public static void main(String[] args) throws IOException, ApiException, ClassNotFoundException { - if (args.length < 2) { - System.err.println("Usage: ParseExample "); - System.exit(1); - } - ApiClient client = Config.defaultClient(); - FileReader json = new FileReader(args[0]); - Object obj = - client - .getJSON() - .getGson() - .fromJson(json, Class.forName("io.kubernetes.client.models." + args[1])); - - String output = client.getJSON().getGson().toJson(obj); - - // Test round tripping... - Object obj2 = - client - .getJSON() - .getGson() - .fromJson( - new StringReader(output), Class.forName("io.kubernetes.client.models." + args[1])); - - String output2 = client.getJSON().getGson().toJson(obj2); - - // Validate round trip - if (!output.equals(output2)) { - System.err.println("Error, expected:\n" + output + "\nto equal\n" + output2); - System.exit(2); - } - - System.out.println(output); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PatchExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PatchExample.java deleted file mode 100644 index 3f2457a47a..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PatchExample.java +++ /dev/null @@ -1,129 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.PatchUtils; -import java.io.IOException; - -/** - * A simple Example of how to use the Java API.
- * This example demonstrates patching of deployment using Json Patch and Strategic Merge Patch.
- * For generating Json Patches, refer http://jsonpatch.com. For - * generating Strategic Merge Patches, refer strategic-merge-patch.md. - * - *

    - *
  • Creates deployment hello-node with terminationGracePeriodSeconds value as 30 and a - * finalizer. - *
  • Json-Patches deployment hello-node with terminationGracePeriodSeconds value as 27. - *
  • Strategic-Merge-Patches deployment hello-node removing the finalizer. - *
- * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PatchExample" - * - *

From inside $REPO_DIR/examples - */ -public class PatchExample { - static String jsonPatchStr = - "[{\"op\":\"replace\",\"path\":\"/spec/template/spec/terminationGracePeriodSeconds\",\"value\":27}]"; - static String strategicMergePatchStr = - "{\"metadata\":{\"$deleteFromPrimitiveList/finalizers\":[\"example.com/test\"]}}"; - static String jsonDeploymentStr = - "{\"kind\":\"Deployment\",\"apiVersion\":\"apps/v1\",\"metadata\":{\"name\":\"hello-node\",\"finalizers\":[\"example.com/test\"],\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"run\":\"hello-node\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"terminationGracePeriodSeconds\":30,\"containers\":[{\"name\":\"hello-node\",\"image\":\"hello-node:v1\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"resources\":{}}]}},\"strategy\":{}},\"status\":{}}"; - static String applyYamlStr = - "{\"kind\":\"Deployment\",\"apiVersion\":\"apps/v1\",\"metadata\":{\"name\":\"hello-node\",\"finalizers\":[\"example.com/test\"],\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"run\":\"hello-node\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"terminationGracePeriodSeconds\":30,\"containers\":[{\"name\":\"hello-node\",\"image\":\"hello-node:v2\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"resources\":{}}]}},\"strategy\":{}},\"status\":{}}"; - - public static void main(String[] args) throws IOException { - try { - AppsV1Api api = new AppsV1Api(ClientBuilder.standard().build()); - V1Deployment body = - Configuration.getDefaultApiClient() - .getJSON() - .deserialize(jsonDeploymentStr, V1Deployment.class); - - // create a deployment - V1Deployment deploy1 = api.createNamespacedDeployment("default", body, null, null, null, null); - System.out.println("original deployment" + deploy1); - - // json-patch a deployment - V1Deployment deploy2 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeploymentCall( - "hello-node", - "default", - new V1Patch(jsonPatchStr), - null, - null, - null, - null, // field-manager is optional - null, - null), - V1Patch.PATCH_FORMAT_JSON_PATCH, - api.getApiClient()); - System.out.println("json-patched deployment" + deploy2); - - // strategic-merge-patch a deployment - V1Deployment deploy3 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeploymentCall( - "hello-node", - "default", - new V1Patch(strategicMergePatchStr), - null, - null, - null, - null, // field-manager is optional - null, - null), - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - api.getApiClient()); - System.out.println("strategic-merge-patched deployment" + deploy3); - - // apply-yaml a deployment, server side apply is available by default after kubernetes v1.16 - // or opt-in by turning on the feature gate for v1.14 or v1.15. - // https://kubernetes.io/docs/reference/using-api/api-concepts/#server-side-apply - V1Deployment deploy4 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeploymentCall( - "hello-node", - "default", - new V1Patch(applyYamlStr), - null, - null, - "example-field-manager", // field-manager is required for server-side apply - null, - true, - null), - V1Patch.PATCH_FORMAT_APPLY_YAML, - api.getApiClient()); - System.out.println("application/apply-patch+yaml deployment" + deploy4); - - } catch (ApiException e) { - System.out.println(e.getResponseBody()); - e.printStackTrace(); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PortForwardExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PortForwardExample.java deleted file mode 100644 index cbe064db31..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PortForwardExample.java +++ /dev/null @@ -1,87 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.PortForward; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import java.net.ServerSocket; -import java.net.Socket; -import java.util.ArrayList; -import java.util.List; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PortForwardExample" from inside - * $REPO_DIR/examples - * - *

Then: curl localhost:8080 from a different terminal (but be quick about it, the socket times - * out pretty fast...) - */ -public class PortForwardExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - PortForward forward = new PortForward(); - List ports = new ArrayList<>(); - int localPort = 8080; - int targetPort = 8080; - ports.add(targetPort); - final PortForward.PortForwardResult result = - forward.forward("default", "camera-viz-7949dbf7c6-lpxkd", ports); - System.out.println("Forwarding!"); - ServerSocket ss = new ServerSocket(localPort); - - final Socket s = ss.accept(); - System.out.println("Connected!"); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(result.getInputStream(targetPort), s.getOutputStream()); - } catch (IOException ex) { - ex.printStackTrace(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(s.getInputStream(), result.getOutboundStream(targetPort)); - } catch (IOException ex) { - ex.printStackTrace(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - Thread.sleep(10 * 1000); - - System.exit(0); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PromOpExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PromOpExample.java deleted file mode 100644 index 65f38b8ce4..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PromOpExample.java +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import com.coreos.monitoring.models.V1Prometheus; -import com.coreos.monitoring.models.V1PrometheusList; -import com.coreos.monitoring.models.V1PrometheusSpec; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.io.IOException; - -public class PromOpExample { - public static void main(String[] args) throws IOException, ApiException { - GenericKubernetesApi prometheusApi = - new GenericKubernetesApi<>( - V1Prometheus.class, - V1PrometheusList.class, - "monitoring.coreos.com", - "v1", - "prometheuses", - ClientBuilder.defaultClient()); - prometheusApi - .create( - new V1Prometheus() - .metadata(new V1ObjectMeta().namespace("default").name("my-prometheus")) - .kind("Prometheus") - .apiVersion("monitoring.coreos.com/v1") - .spec(new V1PrometheusSpec())) - .throwsApiException(); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PrometheusExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PrometheusExample.java deleted file mode 100644 index d2afb10142..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/PrometheusExample.java +++ /dev/null @@ -1,66 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.monitoring.Monitoring; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API with Prometheus metrics - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PrometheusExample" - * - *

From inside $REPO_DIR/examples - */ -public class PrometheusExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // Install an HTTP Interceptor that adds metrics - Monitoring.installMetrics(client); - - // Install a simple HTTP server to serve prometheus metrics. If you already are serving - // metrics elsewhere, this is unnecessary. - Monitoring.startMetricsServer("localhost", 8080); - - CoreV1Api api = new CoreV1Api(); - - while (true) { - // A request that should return 200 - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null); - // A request that should return 404 - try { - V1Pod pod = api.readNamespacedPod("foo", "bar", null); - } catch (ApiException ex) { - if (ex.getCode() != 404) { - throw ex; - } - } - try { - Thread.sleep(10000); - } catch (InterruptedException ex) { - ex.printStackTrace(); - } - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ProtoExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ProtoExample.java deleted file mode 100644 index e4e05a2aa1..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/ProtoExample.java +++ /dev/null @@ -1,69 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.ProtoClient; -import io.kubernetes.client.ProtoClient.ObjectOrStatus; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.proto.Meta.ObjectMeta; -import io.kubernetes.client.proto.V1.Namespace; -import io.kubernetes.client.proto.V1.NamespaceSpec; -import io.kubernetes.client.proto.V1.Pod; -import io.kubernetes.client.proto.V1.PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ProtoExample" - * - *

From inside $REPO_DIR/examples - */ -public class ProtoExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - ProtoClient pc = new ProtoClient(client); - ObjectOrStatus list = pc.list(PodList.newBuilder(), "/api/v1/namespaces/default/pods"); - - if (list.object.getItemsCount() > 0) { - Pod p = list.object.getItems(0); - System.out.println(p); - } - - Namespace namespace = - Namespace.newBuilder().setMetadata(ObjectMeta.newBuilder().setName("test").build()).build(); - - ObjectOrStatus ns = pc.create(namespace, "/api/v1/namespaces", "v1", "Namespace"); - System.out.println(ns); - if (ns.object != null) { - namespace = - ns.object - .toBuilder() - .setSpec(NamespaceSpec.newBuilder().addFinalizers("test").build()) - .build(); - // This is how you would update an object, but you can't actually - // update namespaces, so this returns a 405 - ns = pc.update(namespace, "/api/v1/namespaces/test", "v1", "Namespace"); - System.out.println(ns.status); - } - - ns = pc.delete(Namespace.newBuilder(), "/api/v1/namespaces/test"); - System.out.println(ns); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java deleted file mode 100644 index f6494a836e..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java +++ /dev/null @@ -1,147 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.controller.Controller; -import io.kubernetes.client.extended.controller.builder.ControllerBuilder; -import io.kubernetes.client.extended.controller.builder.DefaultControllerBuilder; -import io.kubernetes.client.extended.controller.reconciler.Reconciler; -import io.kubernetes.client.extended.controller.reconciler.Request; -import io.kubernetes.client.extended.controller.reconciler.Result; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Endpoints; -import io.kubernetes.client.openapi.models.V1EndpointsList; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.time.Duration; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.CommandLineRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.stereotype.Component; - -@SpringBootApplication -public class SpringControllerExample { - - public static void main(String[] args) { - SpringApplication.run(SpringControllerExample.class, args); - } - - @Configuration - public static class AppConfig { - - @Bean - public CommandLineRunner commandLineRunner( - SharedInformerFactory sharedInformerFactory, Controller nodePrintingController) { - return args -> { - System.out.println("starting informers.."); - sharedInformerFactory.startAllRegisteredInformers(); - - System.out.println("running controller.."); - nodePrintingController.run(); - }; - } - - @Bean - public Controller nodePrintingController( - SharedInformerFactory sharedInformerFactory, NodePrintingReconciler reconciler) { - DefaultControllerBuilder builder = ControllerBuilder.defaultBuilder(sharedInformerFactory); - builder = - builder.watch( - (q) -> { - return ControllerBuilder.controllerWatchBuilder(V1Node.class, q) - .withResyncPeriod(Duration.ofMinutes(1)) - .build(); - }); - builder.withWorkerCount(2); - builder.withReadyFunc(reconciler::informerReady); - return builder.withReconciler(reconciler).withName("nodePrintingController").build(); - } - - @Bean - public SharedIndexInformer endpointsInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>( - V1Endpoints.class, V1EndpointsList.class, "", "v1", "endpoints", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Endpoints.class, 0); - } - - @Bean - public SharedIndexInformer nodeInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>(V1Node.class, V1NodeList.class, "", "v1", "nodes", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Node.class, 60 * 1000L); - } - - @Bean - public SharedIndexInformer podInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Pod.class, 0); - } - } - - @Component - public static class NodePrintingReconciler implements Reconciler { - - @Value("${namespace}") - private String namespace; - - private SharedInformer nodeInformer; - - private SharedInformer podInformer; - - private Lister nodeLister; - - private Lister podLister; - - public NodePrintingReconciler( - SharedIndexInformer nodeInformer, SharedIndexInformer podInformer) { - this.nodeInformer = nodeInformer; - this.podInformer = podInformer; - this.nodeLister = new Lister<>(nodeInformer.getIndexer(), namespace); - this.podLister = new Lister<>(podInformer.getIndexer(), namespace); - } - - // *OPTIONAL* - // If you want to hold the controller from running util some condition.. - public boolean informerReady() { - return podInformer.hasSynced() && nodeInformer.hasSynced(); - } - - @Override - public Result reconcile(Request request) { - V1Node node = nodeLister.get(request.getName()); - - System.out.println("get all pods in namespace " + namespace); - podLister.namespace(namespace).list().stream() - .map(pod -> pod.getMetadata().getName()) - .forEach(System.out::println); - - System.out.println("triggered reconciling " + node.getMetadata().getName()); - return new Result(false); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java deleted file mode 100644 index bafe11e421..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.network.EndpointsLoadBalancer; -import io.kubernetes.client.extended.network.LoadBalancer; -import io.kubernetes.client.extended.network.RoundRobinLoadBalanceStrategy; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.models.V1Endpoints; -import io.kubernetes.client.spring.extended.network.endpoints.InformerEndpointsGetter; -import org.springframework.boot.CommandLineRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -@SpringBootApplication -public class SpringLoadBalancerExample { - - public static void main(String[] args) { - SpringApplication.run(SpringLoadBalancerExample.class, args); - } - - @Configuration - public static class AppConfig { - - @Bean - public CommandLineRunner loadBalancerCommandLineRunner( - SharedInformerFactory sharedInformerFactory, MyService myService) { - return args -> { - System.out.println("starting informers.."); - sharedInformerFactory.startAllRegisteredInformers(); - - System.out.println("routing default/kubernetes:"); - System.out.println(myService.defaultKubernetesLoadBalancer.getTargetIP()); - }; - } - - @Bean - public MyService myService(SharedIndexInformer lister) { - return new MyService(new Lister<>(lister.getIndexer())); - } - } - - public static class MyService { - - private LoadBalancer defaultKubernetesLoadBalancer; - - public MyService(Lister lister) { - InformerEndpointsGetter getter = new InformerEndpointsGetter(lister); - RoundRobinLoadBalanceStrategy strategy = new RoundRobinLoadBalanceStrategy(); - defaultKubernetesLoadBalancer = - new EndpointsLoadBalancer(() -> getter.get("default", "kubernetes"), strategy); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WatchExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WatchExample.java deleted file mode 100644 index c32a74afd4..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WatchExample.java +++ /dev/null @@ -1,54 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import com.google.gson.reflect.TypeToken; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Watch; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** A simple example of how to use Watch API to watch changes in Namespace list. */ -public class WatchExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - // infinite timeout - OkHttpClient httpClient = - client.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - client.setHttpClient(httpClient); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - - Watch watch = - Watch.createWatch( - client, - api.listNamespaceCall( - null, null, null, null, null, 5, null, null, null, Boolean.TRUE, null), - new TypeToken>() {}.getType()); - - try { - for (Watch.Response item : watch) { - System.out.printf("%s : %s%n", item.type, item.object.getMetadata().getName()); - } - } finally { - watch.close(); - } - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java deleted file mode 100644 index e1f54dcd07..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.WebSockets; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; -import okhttp3.WebSocket; - -/** - * This is a pretty low level, most people won't need to use WebSockets directly. - * - *

If you do need to run it, you can run: mvn exec:java \ - * -Dexec.mainClass=io.kubernetes.client.examples.WebSocketsExample \ - * -Dexec.args=/api/v1/namespaces/default/pods//attach?stdout=true - * - *

Note that you'd think 'watch' calls were WebSockets, but you'd be wrong, they're straight HTTP - * GET calls. - */ -public class WebSocketsExample { - public static void main(String... args) throws ApiException, IOException { - final ApiClient client = Config.defaultClient(); - WebSockets.stream( - args[0], - "GET", - client, - new WebSockets.SocketListener() { - private volatile WebSocket socket; - - @Override - public void open(String protocol, WebSocket socket) { - this.socket = socket; - } - - @Override - public void close() {} - - @Override - public void bytesMessage(InputStream is) {} - - @Override - public void failure(Throwable t) { - t.printStackTrace(); - } - - @Override - public void textMessage(Reader in) { - try { - BufferedReader reader = new BufferedReader(in); - for (String line = reader.readLine(); line != null; line = reader.readLine()) { - System.out.println(line); - } - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - } -} diff --git a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/YamlExample.java b/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/YamlExample.java deleted file mode 100644 index 67b5536ab9..0000000000 --- a/examples/examples-release-17/src/main/java/io/kubernetes/client/examples/YamlExample.java +++ /dev/null @@ -1,109 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.IntOrString; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodBuilder; -import io.kubernetes.client.openapi.models.V1Service; -import io.kubernetes.client.openapi.models.V1ServiceBuilder; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Yaml; -import java.io.File; -import java.io.IOException; -import java.util.HashMap; - -/** - * A simple example of how to parse a Kubernetes object. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.YamlExample" - * - *

From inside $REPO_DIR/examples - */ -public class YamlExample { - public static void main(String[] args) throws IOException, ApiException, ClassNotFoundException { - V1Pod pod = - new V1PodBuilder() - .withNewMetadata() - .withName("apod") - .endMetadata() - .withNewSpec() - .addNewContainer() - .withName("www") - .withImage("nginx") - .withNewResources() - .withLimits(new HashMap<>()) - .endResources() - .endContainer() - .endSpec() - .build(); - System.out.println(Yaml.dump(pod)); - - V1Service svc = - new V1ServiceBuilder() - .withNewMetadata() - .withName("aservice") - .endMetadata() - .withNewSpec() - .withSessionAffinity("ClientIP") - .withType("NodePort") - .addNewPort() - .withProtocol("TCP") - .withName("client") - .withPort(8008) - .withNodePort(8080) - .withTargetPort(new IntOrString(8080)) - .endPort() - .endSpec() - .build(); - System.out.println(Yaml.dump(svc)); - - // Read yaml configuration file, and deploy it - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // See issue #474. Not needed at most cases, but it is needed if you are using war - // packging or running this on JUnit. - Yaml.addModelMap("v1", "Service", V1Service.class); - - // Example yaml file can be found in $REPO_DIR/test-svc.yaml - File file = new File("test-svc.yaml"); - V1Service yamlSvc = (V1Service) Yaml.load(file); - - // Deployment and StatefulSet is defined in apps/v1, so you should use AppsV1Api instead of - // CoreV1API - CoreV1Api api = new CoreV1Api(); - V1Service createResult = api.createNamespacedService("default", yamlSvc, null, null, null, null); - - System.out.println(createResult); - - V1Service deleteResult = - api.deleteNamespacedService( - yamlSvc.getMetadata().getName(), - "default", - null, - null, - null, - null, - null, - new V1DeleteOptions()); - System.out.println(deleteResult); - } -} diff --git a/examples/examples-release-17/src/main/resources/application.properties b/examples/examples-release-17/src/main/resources/application.properties deleted file mode 100644 index dc886e5f48..0000000000 --- a/examples/examples-release-17/src/main/resources/application.properties +++ /dev/null @@ -1,2 +0,0 @@ -namespace=airflow -management.endpoints.web.exposure.include=prometheus \ No newline at end of file diff --git a/examples/examples-release-17/src/test/java/io/kubernetes/client/examples/ExampleTest.java b/examples/examples-release-17/src/test/java/io/kubernetes/client/examples/ExampleTest.java deleted file mode 100644 index 5ccccda5af..0000000000 --- a/examples/examples-release-17/src/test/java/io/kubernetes/client/examples/ExampleTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; -import static com.github.tomakehurst.wiremock.client.WireMock.get; -import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo; -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.github.tomakehurst.wiremock.core.WireMockConfiguration; -import com.github.tomakehurst.wiremock.junit5.WireMockExtension; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.RegisterExtension; - -class ExampleTest { - private static final int PORT = 8089; - - @RegisterExtension - static WireMockExtension apiServer = - WireMockExtension.newInstance().options(WireMockConfiguration.options().port(PORT)).build(); - - @Test - void exactUrlOnly() throws ApiException { - ApiClient client = new ApiClient(); - client.setBasePath("http://localhost:" + PORT); - Configuration.setDefaultApiClient(client); - - V1Namespace ns1 = new V1Namespace().metadata(new V1ObjectMeta().name("name")); - - apiServer.stubFor( - get(urlEqualTo("/api/v1/namespaces/name")) - .willReturn( - aResponse() - .withHeader("Content-Type", "application/json") - .withBody(client.getJSON().serialize(ns1)))); - - CoreV1Api api = new CoreV1Api(); - V1Namespace ns2 = api.readNamespace("name", null); - assertEquals(ns1, ns2); - } -} diff --git a/examples/examples-release-17/test-svc.yaml b/examples/examples-release-17/test-svc.yaml deleted file mode 100644 index f225bea76f..0000000000 --- a/examples/examples-release-17/test-svc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: test-service -spec: - type: ClusterIP - selector: - app: test-service - ports: - - name: port-of-container - port: 8080 \ No newline at end of file diff --git a/examples/examples-release-17/test.yaml b/examples/examples-release-17/test.yaml deleted file mode 100644 index 0b46e57003..0000000000 --- a/examples/examples-release-17/test.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: ReplicationController -metadata: - name: test -spec: - replicas: 1 - template: - metadata: - labels: - app: test - spec: - containers: - - name: test - image: test/examples:1.0 - command: ["/bin/sh","-c"] - args: ["java -jar /examples.jar","while :; do sleep 1; done"] diff --git a/examples/examples-release-18/Dockerfile b/examples/examples-release-18/Dockerfile deleted file mode 100644 index ac90eb1d67..0000000000 --- a/examples/examples-release-18/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM openjdk:8-jre - -COPY target/client-java-examples-*-SNAPSHOT-jar-with-dependencies.jar /examples.jar - -CMD ["java", "-jar", "/examples.jar"] - - diff --git a/examples/examples-release-18/README.md b/examples/examples-release-18/README.md deleted file mode 100644 index 80c34ea272..0000000000 --- a/examples/examples-release-18/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Running examples - -```sh -export REPO_ROOT=/path/to/client-java/repo - -cd ${REPO_ROOT}/ -mvn install - -cd ${REPO_ROOT}/examples/examples-15 -mvn compile -mvn exec:java -Dexec.mainClass="io.kubernetes.client.examples.Example" -``` - diff --git a/examples/examples-release-18/createPod.sh b/examples/examples-release-18/createPod.sh deleted file mode 100755 index 18a9841317..0000000000 --- a/examples/examples-release-18/createPod.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# creates a pod and runs -# Example.java(list pods for all namespaces) on starting of pod - -# Exit on any error. -set -e - -if ! which minikube > /dev/null; then - echo "This script requires minikube installed." - exit 100 -fi - -dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -export REPO_ROOT=${dir}/.. - -cd ${REPO_ROOT} -mvn install - -cd ${REPO_ROOT}/examples -mvn package - -eval $(minikube docker-env) -docker build -t test/examples:1.0 . -kubectl apply -f test.yaml diff --git a/examples/examples-release-18/pom.xml b/examples/examples-release-18/pom.xml deleted file mode 100644 index 14fe999aad..0000000000 --- a/examples/examples-release-18/pom.xml +++ /dev/null @@ -1,125 +0,0 @@ - - 4.0.0 - - client-java-examples-release-18 - client-java-examples-release-18 - io.kubernetes - 18.0.0 - - - - - ch.qos.logback - logback-classic - 1.5.9 - runtime - - - io.prometheus - simpleclient - 0.15.0 - - - io.prometheus - simpleclient_httpserver - 0.15.0 - - - io.kubernetes - client-java-api - 18.0.1 - - - io.kubernetes - client-java - 18.0.1 - - - io.kubernetes - client-java-extended - 18.0.1 - - - io.kubernetes - client-java-spring-integration - 18.0.1 - - - io.kubernetes - client-java-proto - 18.0.1 - - - commons-cli - commons-cli - 1.9.0 - - - io.kubernetes - client-java-cert-manager-models - 10.0.1 - - - io.kubernetes - client-java-prometheus-operator-models - 10.0.1 - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - org.wiremock - wiremock - 3.9.1 - test - - - - org.springframework.boot - spring-boot-starter-web - ${spring.boot.version} - - - org.springframework.boot - spring-boot-starter-actuator - ${spring.boot.version} - - - - - - - - com.diffplug.spotless - spotless-maven-plugin - 2.43.0 - - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - true - - - - org.apache.maven.plugins - maven-deploy-plugin - - true - - - - - - 5.11.2 - 3.3.4 - - \ No newline at end of file diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/AttachExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/AttachExample.java deleted file mode 100644 index 7f753b8d8f..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/AttachExample.java +++ /dev/null @@ -1,77 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Attach; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStreamReader; -import java.io.OutputStream; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.AttachExample" - * - *

From inside $REPO_DIR/examples - */ -public class AttachExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Attach attach = new Attach(); - final Attach.AttachResult result = attach.attach("default", "nginx-4217019353-k5sn9", true); - - new Thread( - new Runnable() { - public void run() { - BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); - OutputStream output = result.getStandardInputStream(); - try { - while (true) { - String line = in.readLine(); - output.write(line.getBytes()); - output.write('\n'); - output.flush(); - } - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(result.getStandardOutputStream(), System.out); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - Thread.sleep(10 * 1000); - result.close(); - System.exit(0); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CertManagerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CertManagerExample.java deleted file mode 100644 index b616a18ee9..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CertManagerExample.java +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.cert.manager.models.V1alpha2IssuerSpecSelfSigned; -import io.cert.manager.models.V1beta1Issuer; -import io.cert.manager.models.V1beta1IssuerList; -import io.cert.manager.models.V1beta1IssuerSpec; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.io.IOException; - -/** - * This sample creates a self signed issuer "self-signed-issuer" in default namespace on a - * Kubernetes cluster where cert-manager is installed - */ -public class CertManagerExample { - public static void main(String[] args) throws IOException { - GenericKubernetesApi issuerApi = - new GenericKubernetesApi<>( - V1beta1Issuer.class, - V1beta1IssuerList.class, - "cert-manager.io", - "v1beta1", - "issuers", - ClientBuilder.defaultClient()); - issuerApi.create( - new V1beta1Issuer() - .metadata(new V1ObjectMeta().namespace("default").name("self-signed-issuer")) - .kind("Issuer") - .apiVersion("cert-manager.io/v1beta1") - .spec(new V1beta1IssuerSpec().selfSigned(new V1alpha2IssuerSpecSelfSigned()))); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ControllerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ControllerExample.java deleted file mode 100644 index 4fe2969a3d..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ControllerExample.java +++ /dev/null @@ -1,163 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.controller.Controller; -import io.kubernetes.client.extended.controller.ControllerManager; -import io.kubernetes.client.extended.controller.LeaderElectingController; -import io.kubernetes.client.extended.controller.builder.ControllerBuilder; -import io.kubernetes.client.extended.controller.reconciler.Reconciler; -import io.kubernetes.client.extended.controller.reconciler.Request; -import io.kubernetes.client.extended.controller.reconciler.Result; -import io.kubernetes.client.extended.event.EventType; -import io.kubernetes.client.extended.event.legacy.EventBroadcaster; -import io.kubernetes.client.extended.event.legacy.EventRecorder; -import io.kubernetes.client.extended.event.legacy.LegacyEventBroadcaster; -import io.kubernetes.client.extended.leaderelection.LeaderElectionConfig; -import io.kubernetes.client.extended.leaderelection.LeaderElector; -import io.kubernetes.client.extended.leaderelection.resourcelock.EndpointsLock; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1EventSource; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.util.CallGeneratorParams; -import java.io.IOException; -import java.time.Duration; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -public class ControllerExample { - public static void main(String[] args) throws IOException { - - CoreV1Api coreV1Api = new CoreV1Api(); - ApiClient apiClient = coreV1Api.getApiClient(); - OkHttpClient httpClient = - apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - apiClient.setHttpClient(httpClient); - - // instantiating an informer-factory, and there should be only one informer-factory - // globally. - SharedInformerFactory informerFactory = new SharedInformerFactory(); - // registering node-informer into the informer-factory. - SharedIndexInformer nodeInformer = - informerFactory.sharedIndexInformerFor( - (CallGeneratorParams params) -> { - return coreV1Api.listNodeCall( - null, - null, - null, - null, - null, - null, - params.resourceVersion, - null, - params.timeoutSeconds, - params.watch, - null); - }, - V1Node.class, - V1NodeList.class); - informerFactory.startAllRegisteredInformers(); - - EventBroadcaster eventBroadcaster = new LegacyEventBroadcaster(coreV1Api); - - // nodeReconciler prints node information on events - NodePrintingReconciler nodeReconciler = - new NodePrintingReconciler( - nodeInformer, - eventBroadcaster.newRecorder( - new V1EventSource().host("localhost").component("node-printer"))); - - // Use builder library to construct a default controller. - Controller controller = - ControllerBuilder.defaultBuilder(informerFactory) - .watch( - (workQueue) -> - ControllerBuilder.controllerWatchBuilder(V1Node.class, workQueue) - .withWorkQueueKeyFunc( - (V1Node node) -> - new Request(node.getMetadata().getName())) // optional, default to - .withOnAddFilter( - (V1Node createdNode) -> - createdNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onAdd filter - .withOnUpdateFilter( - (V1Node oldNode, V1Node newNode) -> - newNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onUpdate filter - .withOnDeleteFilter( - (V1Node deletedNode, Boolean stateUnknown) -> - deletedNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onDelete filter - .build()) - .withReconciler(nodeReconciler) // required, set the actual reconciler - .withName("node-printing-controller") // optional, set name for controller - .withWorkerCount(4) // optional, set worker thread count - .withReadyFunc(nodeInformer::hasSynced) // optional, only starts controller when the - // cache has synced up - .build(); - - // Use builder library to manage one or multiple controllers. - ControllerManager controllerManager = - ControllerBuilder.controllerManagerBuilder(informerFactory) - .addController(controller) - .build(); - - LeaderElectingController leaderElectingController = - new LeaderElectingController( - new LeaderElector( - new LeaderElectionConfig( - new EndpointsLock("kube-system", "leader-election", "foo"), - Duration.ofMillis(10000), - Duration.ofMillis(8000), - Duration.ofMillis(5000))), - controllerManager); - - leaderElectingController.run(); - } - - static class NodePrintingReconciler implements Reconciler { - - private Lister nodeLister; - private EventRecorder eventRecorder; - - public NodePrintingReconciler( - SharedIndexInformer nodeInformer, EventRecorder recorder) { - this.nodeLister = new Lister<>(nodeInformer.getIndexer()); - this.eventRecorder = recorder; - } - - @Override - public Result reconcile(Request request) { - V1Node node = this.nodeLister.get(request.getName()); - System.out.println("triggered reconciling " + node.getMetadata().getName()); - this.eventRecorder.event( - node, - EventType.Normal, - "Print Node", - "Successfully printed %s", - node.getMetadata().getName()); - return new Result(false); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CopyExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CopyExample.java deleted file mode 100644 index bbb6575676..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/CopyExample.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Copy; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import io.kubernetes.client.util.exception.CopyNotSupportedException; -import java.io.IOException; -import java.io.InputStream; -import java.nio.file.Paths; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.CopyExample" - * - *

From inside $REPO_DIR/examples - */ -public class CopyExample { - public static void main(String[] args) - throws IOException, ApiException, InterruptedException, CopyNotSupportedException { - String podName = "kube-addon-manager-minikube"; - String namespace = "kube-system"; - - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Copy copy = new Copy(); - InputStream dataStream = copy.copyFileFromPod(namespace, podName, "/etc/motd"); - Streams.copy(dataStream, System.out); - - copy.copyDirectoryFromPod(namespace, podName, null, "/etc", Paths.get("/tmp/etc")); - - System.out.println("Done!"); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java deleted file mode 100644 index 42a2524f7b..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java +++ /dev/null @@ -1,140 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1DeploymentBuilder; -import io.kubernetes.client.openapi.models.V1DeploymentSpec; -import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.openapi.models.V1PodTemplateSpec; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.PatchUtils; -import io.kubernetes.client.util.wait.Wait; -import java.io.IOException; -import java.time.Duration; -import java.time.LocalDateTime; -import java.util.Collections; - -public class DeployRolloutRestartExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - AppsV1Api appsV1Api = new AppsV1Api(client); - - String deploymentName = "example-nginx"; - String imageName = "nginx:1.21.6"; - String namespace = "default"; - - // Create an example deployment - V1DeploymentBuilder deploymentBuilder = - new V1DeploymentBuilder() - .withApiVersion("apps/v1") - .withKind("Deployment") - .withMetadata(new V1ObjectMeta().name(deploymentName).namespace(namespace)) - .withSpec( - new V1DeploymentSpec() - .replicas(1) - .selector(new V1LabelSelector().putMatchLabelsItem("name", deploymentName)) - .template( - new V1PodTemplateSpec() - .metadata(new V1ObjectMeta().putLabelsItem("name", deploymentName)) - .spec( - new V1PodSpec() - .containers( - Collections.singletonList( - new V1Container() - .name(deploymentName) - .image(imageName)))))); - appsV1Api.createNamespacedDeployment( - namespace, deploymentBuilder.build(), null, null, null, null); - - // Wait until example deployment is ready - Wait.poll( - Duration.ofSeconds(3), - Duration.ofSeconds(60), - () -> { - try { - System.out.println("Waiting until example deployment is ready..."); - return appsV1Api - .readNamespacedDeployment(deploymentName, namespace, null) - .getStatus() - .getReadyReplicas() - > 0; - } catch (ApiException e) { - e.printStackTrace(); - return false; - } - }); - System.out.println("Created example deployment!"); - - // Trigger a rollout restart of the example deployment - V1Deployment runningDeployment = - appsV1Api.readNamespacedDeployment(deploymentName, namespace, null); - - // Explicitly set "restartedAt" annotation with current date/time to trigger rollout when patch - // is applied - runningDeployment - .getSpec() - .getTemplate() - .getMetadata() - .putAnnotationsItem("kubectl.kubernetes.io/restartedAt", LocalDateTime.now().toString()); - try { - String deploymentJson = client.getJSON().serialize(runningDeployment); - - PatchUtils.patch( - V1Deployment.class, - () -> - appsV1Api.patchNamespacedDeploymentCall( - deploymentName, - namespace, - new V1Patch(deploymentJson), - null, - null, - "kubectl-rollout", - null, - null, - null), - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - client); - - // Wait until deployment has stabilized after rollout restart - Wait.poll( - Duration.ofSeconds(3), - Duration.ofSeconds(60), - () -> { - try { - System.out.println("Waiting until example deployment restarted successfully..."); - return appsV1Api - .readNamespacedDeployment(deploymentName, namespace, null) - .getStatus() - .getReadyReplicas() - > 0; - } catch (ApiException e) { - e.printStackTrace(); - return false; - } - }); - System.out.println("Example deployment restarted successfully!"); - } catch (ApiException e) { - e.printStackTrace(); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java deleted file mode 100644 index b8cb04616d..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java +++ /dev/null @@ -1,42 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.dynamic.DynamicKubernetesApi; -import io.kubernetes.client.util.generic.dynamic.DynamicKubernetesObject; -import java.io.IOException; - -public class DynamicClientExample { - - public static void main(String[] args) throws IOException, ApiException { - - ApiClient apiClient = ClientBuilder.standard().build(); - - // retrieving the latest state of the default namespace - DynamicKubernetesApi dynamicApi = new DynamicKubernetesApi("", "v1", "namespaces", apiClient); - DynamicKubernetesObject defaultNamespace = - dynamicApi.get("default").throwsApiException().getObject(); - - // attaching a "foo=bar" label to the default namespace - defaultNamespace.setMetadata(defaultNamespace.getMetadata().putLabelsItem("foo", "bar")); - DynamicKubernetesObject updatedDefaultNamespace = - dynamicApi.update(defaultNamespace).throwsApiException().getObject(); - - System.out.println(updatedDefaultNamespace); - - apiClient.getHttpClient().connectionPool().evictAll(); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/Example.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/Example.java deleted file mode 100644 index 2c2d1d737e..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/Example.java +++ /dev/null @@ -1,44 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.Example" - * - *

From inside $REPO_DIR/examples - */ -public class Example { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExecExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExecExample.java deleted file mode 100644 index acea8e815a..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExecExample.java +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Exec; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.CommandLineParser; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.ParseException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ExecExample" - * - *

From inside $REPO_DIR/examples - */ -public class ExecExample { - public static void main(String[] args) - throws IOException, ApiException, InterruptedException, ParseException { - final Options options = new Options(); - options.addOption(new Option("p", "pod", true, "The name of the pod")); - options.addOption(new Option("n", "namespace", true, "The namespace of the pod")); - - CommandLineParser parser = new DefaultParser(); - CommandLine cmd = parser.parse(options, args); - - String podName = cmd.getOptionValue("p", "nginx-dbddb74b8-s4cx5"); - String namespace = cmd.getOptionValue("n", "default"); - args = cmd.getArgs(); - - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Exec exec = new Exec(); - boolean tty = System.console() != null; - // final Process proc = exec.exec("default", "nginx-4217019353-k5sn9", new String[] - // {"sh", "-c", "echo foo"}, true, tty); - final Process proc = - exec.exec(namespace, podName, args.length == 0 ? new String[] {"sh"} : args, true, tty); - - Thread in = - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(System.in, proc.getOutputStream()); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - in.start(); - - Thread out = - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(proc.getInputStream(), System.out); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - out.start(); - - proc.waitFor(); - - // wait for any last output; no need to wait for input thread - out.join(); - - proc.destroy(); - - System.exit(proc.exitValue()); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExpandedExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExpandedExample.java deleted file mode 100644 index 68cf868fa8..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ExpandedExample.java +++ /dev/null @@ -1,274 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1DeploymentList; -import io.kubernetes.client.openapi.models.V1DeploymentSpec; -import io.kubernetes.client.openapi.models.V1NamespaceList; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1ServiceList; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.List; -import java.util.Optional; -import java.util.stream.Collectors; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ExpandedExample" - * - *

From inside $REPO_DIR/examples - */ -public class ExpandedExample { - - private static CoreV1Api COREV1_API; - private static final String DEFAULT_NAME_SPACE = "default"; - private static final Integer TIME_OUT_VALUE = 180; - private static final Logger LOGGER = LoggerFactory.getLogger(ExpandedExample.class); - - /** - * Main method - * - * @param args - */ - public static void main(String[] args) { - try { - ApiClient client = Config.defaultClient(); - // To change the context of k8s cluster, you can use - // io.kubernetes.client.util.KubeConfig - Configuration.setDefaultApiClient(client); - COREV1_API = new CoreV1Api(client); - - // ScaleUp/ScaleDown the Deployment pod - // Please change the name of Deployment? - System.out.println("----- Scale Deployment Start -----"); - scaleDeployment("account-service", 5); - - // List all of the namaspaces and pods - List nameSpaces = getAllNameSpaces(); - nameSpaces.stream() - .forEach( - namespace -> { - try { - System.out.println("----- " + namespace + " -----"); - getNamespacedPod(namespace).stream().forEach(System.out::println); - } catch (ApiException ex) { - LOGGER.warn("Couldn't get the pods in namespace:{}", namespace, ex); - } - }); - - // Print all of the Services - System.out.println("----- Print list all Services Start -----"); - List services = getServices(); - services.stream().forEach(System.out::println); - System.out.println("----- Print list all Services End -----"); - - // Print log of specific pod. In this example show the first pod logs. - System.out.println("----- Print Log of Specific Pod Start -----"); - String firstPodName = getPods().get(0); - printLog(DEFAULT_NAME_SPACE, firstPodName); - System.out.println("----- Print Log of Specific Pod End -----"); - } catch (ApiException | IOException ex) { - LOGGER.warn("Exception had occured ", ex); - } - } - - /** - * Get all namespaces in k8s cluster - * - * @return - * @throws ApiException - */ - public static List getAllNameSpaces() throws ApiException { - V1NamespaceList listNamespace = - COREV1_API.listNamespace( - null, null, null, null, null, null, null, null, null, null); - List list = - listNamespace.getItems().stream() - .map(v1Namespace -> v1Namespace.getMetadata().getName()) - .collect(Collectors.toList()); - return list; - } - - /** - * List all pod names in all namespaces in k8s cluster - * - * @return - * @throws ApiException - */ - public static List getPods() throws ApiException { - V1PodList v1podList = - COREV1_API.listPodForAllNamespaces( - null, null, null, null, null, null, null, null, null, null); - List podList = - v1podList.getItems().stream() - .map(v1Pod -> v1Pod.getMetadata().getName()) - .collect(Collectors.toList()); - return podList; - } - - /** - * List all pod in the default namespace - * - * @return - * @throws ApiException - */ - public static List getNamespacedPod() throws ApiException { - return getNamespacedPod(DEFAULT_NAME_SPACE, null); - } - - /** - * List pod in specific namespace - * - * @param namespace - * @return - * @throws ApiException - */ - public static List getNamespacedPod(String namespace) throws ApiException { - return getNamespacedPod(namespace, null); - } - - /** - * List pod in specific namespace with label - * - * @param namespace - * @param label - * @return - * @throws ApiException - */ - public static List getNamespacedPod(String namespace, String label) throws ApiException { - V1PodList listNamespacedPod = - COREV1_API.listNamespacedPod( - namespace, - null, - null, - null, - null, - label, - null, - null, - null, - TIME_OUT_VALUE, - Boolean.FALSE); - List listPods = - listNamespacedPod.getItems().stream() - .map(v1pod -> v1pod.getMetadata().getName()) - .collect(Collectors.toList()); - return listPods; - } - - /** - * List all Services in default namespace - * - * @return - * @throws ApiException - */ - public static List getServices() throws ApiException { - V1ServiceList listNamespacedService = - COREV1_API.listNamespacedService( - DEFAULT_NAME_SPACE, - null, - null, - null, - null, - null, - null, - null, - null, - TIME_OUT_VALUE, - Boolean.FALSE); - return listNamespacedService.getItems().stream() - .map(v1service -> v1service.getMetadata().getName()) - .collect(Collectors.toList()); - } - - /** - * Scale up/down the number of pod in Deployment - * - * @param deploymentName - * @param numberOfReplicas - * @throws ApiException - */ - public static void scaleDeployment(String deploymentName, int numberOfReplicas) - throws ApiException { - AppsV1Api appsV1Api = new AppsV1Api(); - appsV1Api.setApiClient(COREV1_API.getApiClient()); - V1DeploymentList listNamespacedDeployment = - appsV1Api.listNamespacedDeployment( - DEFAULT_NAME_SPACE, - null, - null, - null, - null, - null, - null, - null, - null, - null, - Boolean.FALSE); - - List appsV1DeploymentItems = listNamespacedDeployment.getItems(); - Optional findedDeployment = - appsV1DeploymentItems.stream() - .filter( - (V1Deployment deployment) -> - deployment.getMetadata().getName().equals(deploymentName)) - .findFirst(); - findedDeployment.ifPresent( - (V1Deployment deploy) -> { - try { - V1DeploymentSpec newSpec = deploy.getSpec().replicas(numberOfReplicas); - V1Deployment newDeploy = deploy.spec(newSpec); - appsV1Api.replaceNamespacedDeployment( - deploymentName, DEFAULT_NAME_SPACE, newDeploy, null, null, null, null); - } catch (ApiException ex) { - LOGGER.warn("Scale the pod failed for Deployment:{}", deploymentName, ex); - } - }); - } - - /** - * Print out the Log for specific Pods - * - * @param namespace - * @param podName - * @throws ApiException - */ - public static void printLog(String namespace, String podName) throws ApiException { - // https://github.com/kubernetes-client/java/blob/master/kubernetes/docs/CoreV1Api.md#readNamespacedPodLog - String readNamespacedPodLog = - COREV1_API.readNamespacedPodLog( - podName, - namespace, - null, - Boolean.FALSE, - null, - Integer.MAX_VALUE, - null, - Boolean.FALSE, - Integer.MAX_VALUE, - 40, - Boolean.FALSE); - System.out.println(readNamespacedPodLog); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/FluentExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/FluentExample.java deleted file mode 100644 index 8e48cc51b3..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/FluentExample.java +++ /dev/null @@ -1,75 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodBuilder; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.Arrays; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.FluentExample" - * - *

From inside $REPO_DIR/examples - */ -public class FluentExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - - V1Pod pod = - new V1PodBuilder() - .withNewMetadata() - .withName("apod") - .endMetadata() - .withNewSpec() - .addNewContainer() - .withName("www") - .withImage("nginx") - .endContainer() - .endSpec() - .build(); - - api.createNamespacedPod("default", pod, null, null, null, null); - - V1Pod pod2 = - new V1Pod() - .metadata(new V1ObjectMeta().name("anotherpod")) - .spec( - new V1PodSpec() - .containers(Arrays.asList(new V1Container().name("www").image("nginx")))); - - api.createNamespacedPod("default", pod2, null, null, null, null); - - V1PodList list = - api.listNamespacedPod( - "default", null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/GenericClientExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/GenericClientExample.java deleted file mode 100644 index ddfb1243b8..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/GenericClientExample.java +++ /dev/null @@ -1,63 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.util.Arrays; - -public class GenericClientExample { - - public static void main(String[] args) throws Exception { - - // The following codes demonstrates using generic client to manipulate pods - V1Pod pod = - new V1Pod() - .metadata(new V1ObjectMeta().name("foo").namespace("default")) - .spec( - new V1PodSpec() - .containers(Arrays.asList(new V1Container().name("c").image("test")))); - - ApiClient apiClient = ClientBuilder.standard().build(); - GenericKubernetesApi podClient = - new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient); - - V1Pod latestPod = podClient.create(pod).throwsApiException().getObject(); - System.out.println("Created!"); - - V1Pod patchedPod = - podClient - .patch( - "default", - "foo", - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - new V1Patch("{\"metadata\":{\"finalizers\":[\"example.io/foo\"]}}")) - .throwsApiException() - .getObject(); - System.out.println("Patched!"); - - V1Pod deletedPod = podClient.delete("default", "foo").throwsApiException().getObject(); - if (deletedPod != null) { - System.out.println( - "Received after-deletion status of the requested object, will be deleting in background!"); - } - System.out.println("Deleted!"); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java deleted file mode 100644 index 7ab705b440..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.ClientBuilder; -import java.io.IOException; - -/** - * A simple example of how to use the Java API inside a kubernetes cluster - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.InClusterClientExample" - * - *

From inside $REPO_DIR/examples - */ -public class InClusterClientExample { - public static void main(String[] args) throws IOException, ApiException { - - // loading the in-cluster config, including: - // 1. service-account CA - // 2. service-account bearer-token - // 3. service-account namespace - // 4. master endpoints(ip, port) from pre-set environment variables - ApiClient client = ClientBuilder.cluster().build(); - - // if you prefer not to refresh service account token, please use: - // ApiClient client = ClientBuilder.oldCluster().build(); - - // set the global default api-client to the in-cluster one from above - Configuration.setDefaultApiClient(client); - - // the CoreV1Api loads default api-client from global configuration. - CoreV1Api api = new CoreV1Api(); - - // invokes the CoreV1Api client - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InformerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InformerExample.java deleted file mode 100644 index e8bef1ce71..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/InformerExample.java +++ /dev/null @@ -1,106 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.informer.ResourceEventHandler; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.CallGeneratorParams; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.InformerExample" - * - *

From inside $REPO_DIR/examples - */ -public class InformerExample { - public static void main(String[] args) throws Exception { - CoreV1Api coreV1Api = new CoreV1Api(); - ApiClient apiClient = coreV1Api.getApiClient(); - OkHttpClient httpClient = - apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - apiClient.setHttpClient(httpClient); - - SharedInformerFactory factory = new SharedInformerFactory(apiClient); - - // Node informer - SharedIndexInformer nodeInformer = - factory.sharedIndexInformerFor( - // **NOTE**: - // The following "CallGeneratorParams" lambda merely generates a stateless - // HTTPs requests, the effective apiClient is the one specified when constructing - // the informer-factory. - (CallGeneratorParams params) -> { - return coreV1Api.listNodeCall( - null, - null, - null, - null, - null, - null, - params.resourceVersion, - null, - params.timeoutSeconds, - params.watch, - null); - }, - V1Node.class, - V1NodeList.class); - - nodeInformer.addEventHandler( - new ResourceEventHandler() { - @Override - public void onAdd(V1Node node) { - System.out.printf("%s node added!\n", node.getMetadata().getName()); - } - - @Override - public void onUpdate(V1Node oldNode, V1Node newNode) { - System.out.printf( - "%s => %s node updated!\n", - oldNode.getMetadata().getName(), newNode.getMetadata().getName()); - } - - @Override - public void onDelete(V1Node node, boolean deletedFinalStateUnknown) { - System.out.printf("%s node deleted!\n", node.getMetadata().getName()); - } - }); - - factory.startAllRegisteredInformers(); - - V1Node nodeToCreate = new V1Node(); - V1ObjectMeta metadata = new V1ObjectMeta(); - metadata.setName("noxu"); - nodeToCreate.setMetadata(metadata); - V1Node createdNode = coreV1Api.createNode(nodeToCreate, null, null, null, null); - Thread.sleep(3000); - - Lister nodeLister = new Lister(nodeInformer.getIndexer()); - V1Node node = nodeLister.get("noxu"); - System.out.printf("noxu created! %s\n", node.getMetadata().getCreationTimestamp()); - factory.stopAllRegisteredInformers(); - Thread.sleep(3000); - System.out.println("informer stopped.."); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java deleted file mode 100644 index 95c94a1e80..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.KubeConfig; -import java.io.FileReader; -import java.io.IOException; - -/** - * A simple example of how to use the Java API from an application outside a kubernetes cluster - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.KubeConfigFileClientExample" - * - *

From inside $REPO_DIR/examples - */ -public class KubeConfigFileClientExample { - public static void main(String[] args) throws IOException, ApiException { - - // file path to your KubeConfig - - String kubeConfigPath = System.getenv("HOME") + "/.kube/config"; - - // loading the out-of-cluster config, a kubeconfig from file-system - ApiClient client = - ClientBuilder.kubeconfig(KubeConfig.loadKubeConfig(new FileReader(kubeConfigPath))).build(); - - // set the global default api-client to the out-of-cluster one from above - Configuration.setDefaultApiClient(client); - - // the CoreV1Api loads default api-client from global configuration. - CoreV1Api api = new CoreV1Api(); - - // invokes the CoreV1Api client - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubectlExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubectlExample.java deleted file mode 100644 index 2619c9f271..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/KubectlExample.java +++ /dev/null @@ -1,311 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import static io.kubernetes.client.extended.kubectl.Kubectl.apiResources; -import static io.kubernetes.client.extended.kubectl.Kubectl.copy; -import static io.kubernetes.client.extended.kubectl.Kubectl.cordon; -import static io.kubernetes.client.extended.kubectl.Kubectl.delete; -import static io.kubernetes.client.extended.kubectl.Kubectl.drain; -import static io.kubernetes.client.extended.kubectl.Kubectl.exec; -import static io.kubernetes.client.extended.kubectl.Kubectl.label; -import static io.kubernetes.client.extended.kubectl.Kubectl.log; -import static io.kubernetes.client.extended.kubectl.Kubectl.portforward; -import static io.kubernetes.client.extended.kubectl.Kubectl.scale; -import static io.kubernetes.client.extended.kubectl.Kubectl.taint; -import static io.kubernetes.client.extended.kubectl.Kubectl.top; -import static io.kubernetes.client.extended.kubectl.Kubectl.uncordon; -import static io.kubernetes.client.extended.kubectl.Kubectl.version; -import static io.kubernetes.client.extended.kubectl.KubectlTop.podMetricSum; - -import io.kubernetes.client.common.KubernetesObject; -import io.kubernetes.client.custom.NodeMetrics; -import io.kubernetes.client.custom.PodMetrics; -import io.kubernetes.client.extended.kubectl.KubectlExec; -import io.kubernetes.client.extended.kubectl.KubectlPortForward; -import io.kubernetes.client.extended.kubectl.exception.KubectlException; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1ReplicationController; -import io.kubernetes.client.openapi.models.V1Service; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.ParseException; -import org.apache.commons.lang3.tuple.Pair; - -/** - * A Java equivalent for the kubectl command line tool. Not nearly as complete. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.KubectlExample" -Dexec.args="log some-pod" - * - *

From inside $REPO_DIR/examples - */ -public class KubectlExample { - static Class getClassForKind(String kind) { - switch (kind) { - case "pod": - case "pods": - return V1Pod.class; - case "deployment": - case "deployments": - return V1Deployment.class; - case "service": - case "services": - return V1Service.class; - case "node": - case "nodes": - return V1Node.class; - case "replicationcontroller": - case "replicationcontrollers": - return V1ReplicationController.class; - } - return null; - } - - private static final String PADDING = " "; - - private static String pad(String value) { - while (value.length() < PADDING.length()) { - value += " "; - } - return value; - } - - public static void main(String[] args) - throws java.io.IOException, KubectlException, ParseException { - ApiClient client = Config.defaultClient(); - - Options options = new Options(); - options.addOption(new Option("n", "namespace", true, "The namespace for the resource")); - options.addOption(new Option("r", "replicas", true, "The number of replicas to scale to")); - options.addOption(new Option("c", "container", true, "The container in a pod to connect to")); - DefaultParser parser = new DefaultParser(); - CommandLine cli = parser.parse(options, args); - - args = cli.getArgs(); - String verb = args[0]; - String ns = cli.getOptionValue("n", "default"); - String kind = null; - String name = null; - - switch (verb) { - case "delete": - kind = args[1]; - name = args[2]; - delete(getClassForKind(kind)).namespace(ns).name(name).execute(); - case "drain": - name = args[1]; - drain().apiClient(client).name(name).execute(); - System.out.println("Node drained"); - System.exit(0); - case "cordon": - name = args[1]; - cordon().apiClient(client).name(name).execute(); - System.out.println("Node cordoned"); - System.exit(0); - case "uncordon": - name = args[1]; - uncordon().apiClient(client).name(name).execute(); - System.out.println("Node uncordoned"); - System.exit(0); - case "top": - String what = args[1]; - switch (what) { - case "nodes": - case "node": - List> nodes = - top(V1Node.class, NodeMetrics.class).apiClient(client).metric("cpu").execute(); - System.out.println(pad("Node") + "\tCPU\t\tMemory"); - for (Pair node : nodes) { - System.out.println( - pad(node.getLeft().getMetadata().getName()) - + "\t" - + node.getRight().getUsage().get("cpu").getNumber() - + "\t" - + node.getRight().getUsage().get("memory").getNumber()); - } - System.exit(0); - case "pods": - case "pod": - List> pods = - top(V1Pod.class, PodMetrics.class) - .apiClient(client) - .namespace(ns) - .metric("cpu") - .execute(); - System.out.println(pad("Pod") + "\tCPU\t\tMemory"); - for (Pair pod : pods) { - System.out.println( - pad(pod.getLeft().getMetadata().getName()) - + "\t" - + podMetricSum(pod.getRight(), "cpu") - + "\t" - + podMetricSum(pod.getRight(), "memory")); - } - System.exit(0); - } - System.err.println("Unknown top argument: " + what); - System.exit(-1); - case "cp": - String from = args[1]; - String to = args[2]; - if (from.indexOf(":") != -1) { - String[] parts = from.split(":"); - name = parts[0]; - from = parts[1]; - copy() - .apiClient(client) - .namespace(ns) - .name(name) - .container(cli.getOptionValue("c", "")) - .fromPod(from) - .to(to) - .execute(); - } else if (to.indexOf(":") != -1) { - String[] parts = to.split(":"); - name = parts[0]; - to = parts[1]; - copy() - .apiClient(client) - .namespace(ns) - .name(name) - .container(cli.getOptionValue("c", "")) - .from(from) - .toPod(to) - .execute(); - } else { - System.err.println("Missing pod name for copy."); - System.exit(-1); - } - System.out.println("Copied " + from + " -> " + to); - System.exit(0); - case "taint": - name = args[1]; - String taintSpec = args[2]; - boolean remove = taintSpec.endsWith("-"); - int ix = taintSpec.indexOf("="); - int ix2 = taintSpec.indexOf(":"); - - if (remove) { - taintSpec = taintSpec.substring(0, taintSpec.length() - 2); - String key = ix == -1 ? taintSpec : taintSpec.substring(0, ix); - String effect = ix == -1 ? null : taintSpec.substring(ix + 1); - - if (effect == null) { - taint().apiClient(client).name(name).removeTaint(key).execute(); - } else { - taint().apiClient(client).name(name).removeTaint(key, effect).execute(); - } - System.exit(0); - } - if (ix2 == -1) { - System.err.println("key:effect or key=value:effect is required."); - System.exit(-1); - } - String key = taintSpec.substring(0, ix == -1 ? ix2 : ix); - String value = ix == -1 ? null : taintSpec.substring(ix + 1, ix2); - String effect = taintSpec.substring(ix2 + 1); - - if (value == null) { - taint().apiClient(client).name(name).addTaint(key, effect).execute(); - } else { - taint().apiClient(client).name(name).addTaint(key, value, effect).execute(); - } - System.exit(0); - case "portforward": - name = args[1]; - KubectlPortForward forward = portforward().apiClient(client).name(name).namespace(ns); - for (int i = 2; i < args.length; i++) { - String port = args[i]; - String[] ports = port.split(":"); - System.out.println("Forwarding " + ns + "/" + name + " " + ports[0] + "->" + ports[1]); - forward.ports(Integer.parseInt(ports[0]), Integer.parseInt(ports[1])); - } - forward.execute(); - System.exit(0); - case "log": - name = args[1]; - Streams.copy( - log() - .apiClient(client) - .name(name) - .namespace(ns) - .container(cli.getOptionValue("c", "")) - .execute(), - System.out); - System.exit(0); - case "scale": - kind = args[1]; - name = args[2]; - if (!cli.hasOption("r")) { - System.err.println("--replicas is required"); - System.exit(-3); - } - int replicas = Integer.parseInt(cli.getOptionValue("r")); - scale(getClassForKind(kind)) - .apiClient(client) - .namespace(ns) - .name(name) - .replicas(replicas) - .execute(); - System.out.println("Deployment scaled."); - System.exit(0); - case "version": - System.out.println(version().apiClient(client)); - System.exit(0); - case "label": - kind = args[1]; - name = args[2]; - String labelKey = args[3]; - String labelValue = args[4]; - Class clazz = getClassForKind(kind); - if (clazz == null) { - System.err.println("Unknown kind: " + kind); - System.exit(-2); - } - label(clazz).apiClient(client).namespace(ns).name(name).addLabel(labelKey, labelValue); - System.exit(0); - case "exec": - name = args[1]; - String[] command = Arrays.copyOfRange(args, 2, args.length); - KubectlExec e = - exec() - .apiClient(client) - .namespace(ns) - .name(name) - .command(command) - .container(cli.getOptionValue("c", "")); - System.exit(e.execute()); - case "api-resources": - apiResources().apiClient(client).execute().stream() - .forEach( - r -> - System.out.printf( - "%s\t\t%s\t\t%s\t\t%s\n", - r.getResourcePlural(), r.getGroup(), r.getKind(), r.getNamespaced())); - System.exit(0); - default: - System.out.println("Unknown verb: " + verb); - System.exit(-1); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java deleted file mode 100644 index 0e48689602..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.leaderelection.LeaderElectionConfig; -import io.kubernetes.client.extended.leaderelection.LeaderElector; -import io.kubernetes.client.extended.leaderelection.resourcelock.EndpointsLock; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import java.time.Duration; -import java.util.UUID; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.LeaderElectionExample" - * - *

From inside $REPO_DIR/examples - */ -public class LeaderElectionExample { - public static void main(String[] args) throws Exception { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // New - String appNamespace = "default"; - String appName = "leader-election-foobar"; - String lockHolderIdentityName = UUID.randomUUID().toString(); // Anything unique - EndpointsLock lock = new EndpointsLock(appNamespace, appName, lockHolderIdentityName); - - LeaderElectionConfig leaderElectionConfig = - new LeaderElectionConfig( - lock, Duration.ofMillis(10000), Duration.ofMillis(8000), Duration.ofMillis(2000)); - try (LeaderElector leaderElector = new LeaderElector(leaderElectionConfig)) { - leaderElector.run( - () -> { - System.out.println("Do something when getting leadership."); - }, - () -> { - System.out.println("Do something when losing leadership."); - }); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LogsExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LogsExample.java deleted file mode 100644 index e1df5964d3..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/LogsExample.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.PodLogs; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import java.io.InputStream; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.LogsExample" - * - *

From inside $REPO_DIR/examples - */ -public class LogsExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - CoreV1Api coreApi = new CoreV1Api(client); - - PodLogs logs = new PodLogs(); - V1Pod pod = - coreApi - .listNamespacedPod( - "default", "false", null, null, null, null, null, null, null, null, null) - .getItems() - .get(0); - - InputStream is = logs.streamNamespacedPodLog(pod); - Streams.copy(is, System.out); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/MetricsExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/MetricsExample.java deleted file mode 100644 index 0d8c10e30b..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/MetricsExample.java +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Metrics; -import io.kubernetes.client.custom.ContainerMetrics; -import io.kubernetes.client.custom.NodeMetrics; -import io.kubernetes.client.custom.NodeMetricsList; -import io.kubernetes.client.custom.PodMetrics; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.MetricsExample" - * - *

From inside $REPO_DIR/examples - */ -public class MetricsExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Metrics metrics = new Metrics(client); - NodeMetricsList list = metrics.getNodeMetrics(); - for (NodeMetrics item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - System.out.println("------------------------------"); - for (String key : item.getUsage().keySet()) { - System.out.println("\t" + key); - System.out.println("\t" + item.getUsage().get(key)); - } - System.out.println(); - } - - for (PodMetrics item : metrics.getPodMetrics("default").getItems()) { - System.out.println(item.getMetadata().getName()); - System.out.println("------------------------------"); - if (item.getContainers() == null) { - continue; - } - for (ContainerMetrics container : item.getContainers()) { - System.out.println(container.getName()); - System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); - for (String key : container.getUsage().keySet()) { - System.out.println("\t" + key); - System.out.println("\t" + container.getUsage().get(key)); - } - System.out.println(); - } - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PagerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PagerExample.java deleted file mode 100644 index b0a4ac4fa4..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PagerExample.java +++ /dev/null @@ -1,72 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.pager.Pager; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.openapi.models.V1NamespaceList; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PagerExample" - * - *

From inside $REPO_DIR/examples - */ -public class PagerExample { - public static void main(String[] args) throws IOException { - - ApiClient client = Config.defaultClient(); - OkHttpClient httpClient = - client.getHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build(); - client.setHttpClient(httpClient); - Configuration.setDefaultApiClient(client); - CoreV1Api api = new CoreV1Api(); - int i = 0; - Pager pager = - new Pager( - (Pager.PagerParams param) -> { - try { - return api.listNamespaceCall( - null, - null, - param.getContinueToken(), - null, - null, - param.getLimit(), - null, - null, - 1, - null, - null); - } catch (Exception e) { - throw new RuntimeException(e); - } - }, - client, - 10, - V1NamespaceList.class); - for (V1Namespace namespace : pager) { - System.out.println(namespace.getMetadata().getName()); - } - System.out.println("------------------"); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ParseExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ParseExample.java deleted file mode 100644 index 92866a46fe..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ParseExample.java +++ /dev/null @@ -1,64 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.Config; -import java.io.FileReader; -import java.io.IOException; -import java.io.StringReader; - -/** - * A simple example of how to parse a Kubernetes object. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ParseExample" - * - *

From inside $REPO_DIR/examples - */ -public class ParseExample { - public static void main(String[] args) throws IOException, ApiException, ClassNotFoundException { - if (args.length < 2) { - System.err.println("Usage: ParseExample "); - System.exit(1); - } - ApiClient client = Config.defaultClient(); - FileReader json = new FileReader(args[0]); - Object obj = - client - .getJSON() - .getGson() - .fromJson(json, Class.forName("io.kubernetes.client.models." + args[1])); - - String output = client.getJSON().getGson().toJson(obj); - - // Test round tripping... - Object obj2 = - client - .getJSON() - .getGson() - .fromJson( - new StringReader(output), Class.forName("io.kubernetes.client.models." + args[1])); - - String output2 = client.getJSON().getGson().toJson(obj2); - - // Validate round trip - if (!output.equals(output2)) { - System.err.println("Error, expected:\n" + output + "\nto equal\n" + output2); - System.exit(2); - } - - System.out.println(output); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PatchExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PatchExample.java deleted file mode 100644 index 7eed3360d3..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PatchExample.java +++ /dev/null @@ -1,130 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.PatchUtils; -import java.io.IOException; - -/** - * A simple Example of how to use the Java API.
- * This example demonstrates patching of deployment using Json Patch and Strategic Merge Patch.
- * For generating Json Patches, refer http://jsonpatch.com. For - * generating Strategic Merge Patches, refer strategic-merge-patch.md. - * - *

    - *
  • Creates deployment hello-node with terminationGracePeriodSeconds value as 30 and a - * finalizer. - *
  • Json-Patches deployment hello-node with terminationGracePeriodSeconds value as 27. - *
  • Strategic-Merge-Patches deployment hello-node removing the finalizer. - *
- * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PatchExample" - * - *

From inside $REPO_DIR/examples - */ -public class PatchExample { - static String jsonPatchStr = - "[{\"op\":\"replace\",\"path\":\"/spec/template/spec/terminationGracePeriodSeconds\",\"value\":27}]"; - static String strategicMergePatchStr = - "{\"metadata\":{\"$deleteFromPrimitiveList/finalizers\":[\"example.com/test\"]}}"; - static String jsonDeploymentStr = - "{\"kind\":\"Deployment\",\"apiVersion\":\"apps/v1\",\"metadata\":{\"name\":\"hello-node\",\"finalizers\":[\"example.com/test\"],\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"run\":\"hello-node\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"terminationGracePeriodSeconds\":30,\"containers\":[{\"name\":\"hello-node\",\"image\":\"hello-node:v1\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"resources\":{}}]}},\"strategy\":{}},\"status\":{}}"; - static String applyYamlStr = - "{\"kind\":\"Deployment\",\"apiVersion\":\"apps/v1\",\"metadata\":{\"name\":\"hello-node\",\"finalizers\":[\"example.com/test\"],\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"run\":\"hello-node\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"terminationGracePeriodSeconds\":30,\"containers\":[{\"name\":\"hello-node\",\"image\":\"hello-node:v2\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"resources\":{}}]}},\"strategy\":{}},\"status\":{}}"; - - public static void main(String[] args) throws IOException { - try { - AppsV1Api api = new AppsV1Api(ClientBuilder.standard().build()); - V1Deployment body = - Configuration.getDefaultApiClient() - .getJSON() - .deserialize(jsonDeploymentStr, V1Deployment.class); - - // create a deployment - V1Deployment deploy1 = - api.createNamespacedDeployment("default", body, null, null, null, null); - System.out.println("original deployment" + deploy1); - - // json-patch a deployment - V1Deployment deploy2 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeploymentCall( - "hello-node", - "default", - new V1Patch(jsonPatchStr), - null, - null, - null, - null, // field-manager is optional - null, - null), - V1Patch.PATCH_FORMAT_JSON_PATCH, - api.getApiClient()); - System.out.println("json-patched deployment" + deploy2); - - // strategic-merge-patch a deployment - V1Deployment deploy3 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeploymentCall( - "hello-node", - "default", - new V1Patch(strategicMergePatchStr), - null, - null, - null, // field-manager is optional - null, - null, - null), - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - api.getApiClient()); - System.out.println("strategic-merge-patched deployment" + deploy3); - - // apply-yaml a deployment, server side apply is available by default after kubernetes v1.16 - // or opt-in by turning on the feature gate for v1.14 or v1.15. - // https://kubernetes.io/docs/reference/using-api/api-concepts/#server-side-apply - V1Deployment deploy4 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeploymentCall( - "hello-node", - "default", - new V1Patch(applyYamlStr), - null, - null, - "example-field-manager", // field-manager is required for server-side apply - null, - true, - null), - V1Patch.PATCH_FORMAT_APPLY_YAML, - api.getApiClient()); - System.out.println("application/apply-patch+yaml deployment" + deploy4); - - } catch (ApiException e) { - System.out.println(e.getResponseBody()); - e.printStackTrace(); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PortForwardExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PortForwardExample.java deleted file mode 100644 index cbe064db31..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PortForwardExample.java +++ /dev/null @@ -1,87 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.PortForward; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import java.net.ServerSocket; -import java.net.Socket; -import java.util.ArrayList; -import java.util.List; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PortForwardExample" from inside - * $REPO_DIR/examples - * - *

Then: curl localhost:8080 from a different terminal (but be quick about it, the socket times - * out pretty fast...) - */ -public class PortForwardExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - PortForward forward = new PortForward(); - List ports = new ArrayList<>(); - int localPort = 8080; - int targetPort = 8080; - ports.add(targetPort); - final PortForward.PortForwardResult result = - forward.forward("default", "camera-viz-7949dbf7c6-lpxkd", ports); - System.out.println("Forwarding!"); - ServerSocket ss = new ServerSocket(localPort); - - final Socket s = ss.accept(); - System.out.println("Connected!"); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(result.getInputStream(targetPort), s.getOutputStream()); - } catch (IOException ex) { - ex.printStackTrace(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(s.getInputStream(), result.getOutboundStream(targetPort)); - } catch (IOException ex) { - ex.printStackTrace(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - Thread.sleep(10 * 1000); - - System.exit(0); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PromOpExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PromOpExample.java deleted file mode 100644 index 65f38b8ce4..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PromOpExample.java +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import com.coreos.monitoring.models.V1Prometheus; -import com.coreos.monitoring.models.V1PrometheusList; -import com.coreos.monitoring.models.V1PrometheusSpec; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.io.IOException; - -public class PromOpExample { - public static void main(String[] args) throws IOException, ApiException { - GenericKubernetesApi prometheusApi = - new GenericKubernetesApi<>( - V1Prometheus.class, - V1PrometheusList.class, - "monitoring.coreos.com", - "v1", - "prometheuses", - ClientBuilder.defaultClient()); - prometheusApi - .create( - new V1Prometheus() - .metadata(new V1ObjectMeta().namespace("default").name("my-prometheus")) - .kind("Prometheus") - .apiVersion("monitoring.coreos.com/v1") - .spec(new V1PrometheusSpec())) - .throwsApiException(); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PrometheusExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PrometheusExample.java deleted file mode 100644 index a365704030..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/PrometheusExample.java +++ /dev/null @@ -1,66 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.monitoring.Monitoring; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API with Prometheus metrics - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PrometheusExample" - * - *

From inside $REPO_DIR/examples - */ -public class PrometheusExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // Install an HTTP Interceptor that adds metrics - Monitoring.installMetrics(client); - - // Install a simple HTTP server to serve prometheus metrics. If you already are serving - // metrics elsewhere, this is unnecessary. - Monitoring.startMetricsServer("localhost", 8080); - - CoreV1Api api = new CoreV1Api(); - - while (true) { - // A request that should return 200 - V1PodList list = - api.listPodForAllNamespaces( null, null, null, null, null, null, null, null, null, null); - // A request that should return 404 - try { - V1Pod pod = api.readNamespacedPod("foo", "bar", null); - } catch (ApiException ex) { - if (ex.getCode() != 404) { - throw ex; - } - } - try { - Thread.sleep(10000); - } catch (InterruptedException ex) { - ex.printStackTrace(); - } - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ProtoExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ProtoExample.java deleted file mode 100644 index e4e05a2aa1..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/ProtoExample.java +++ /dev/null @@ -1,69 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.ProtoClient; -import io.kubernetes.client.ProtoClient.ObjectOrStatus; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.proto.Meta.ObjectMeta; -import io.kubernetes.client.proto.V1.Namespace; -import io.kubernetes.client.proto.V1.NamespaceSpec; -import io.kubernetes.client.proto.V1.Pod; -import io.kubernetes.client.proto.V1.PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ProtoExample" - * - *

From inside $REPO_DIR/examples - */ -public class ProtoExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - ProtoClient pc = new ProtoClient(client); - ObjectOrStatus list = pc.list(PodList.newBuilder(), "/api/v1/namespaces/default/pods"); - - if (list.object.getItemsCount() > 0) { - Pod p = list.object.getItems(0); - System.out.println(p); - } - - Namespace namespace = - Namespace.newBuilder().setMetadata(ObjectMeta.newBuilder().setName("test").build()).build(); - - ObjectOrStatus ns = pc.create(namespace, "/api/v1/namespaces", "v1", "Namespace"); - System.out.println(ns); - if (ns.object != null) { - namespace = - ns.object - .toBuilder() - .setSpec(NamespaceSpec.newBuilder().addFinalizers("test").build()) - .build(); - // This is how you would update an object, but you can't actually - // update namespaces, so this returns a 405 - ns = pc.update(namespace, "/api/v1/namespaces/test", "v1", "Namespace"); - System.out.println(ns.status); - } - - ns = pc.delete(Namespace.newBuilder(), "/api/v1/namespaces/test"); - System.out.println(ns); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java deleted file mode 100644 index f6494a836e..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java +++ /dev/null @@ -1,147 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.controller.Controller; -import io.kubernetes.client.extended.controller.builder.ControllerBuilder; -import io.kubernetes.client.extended.controller.builder.DefaultControllerBuilder; -import io.kubernetes.client.extended.controller.reconciler.Reconciler; -import io.kubernetes.client.extended.controller.reconciler.Request; -import io.kubernetes.client.extended.controller.reconciler.Result; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Endpoints; -import io.kubernetes.client.openapi.models.V1EndpointsList; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.time.Duration; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.CommandLineRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.stereotype.Component; - -@SpringBootApplication -public class SpringControllerExample { - - public static void main(String[] args) { - SpringApplication.run(SpringControllerExample.class, args); - } - - @Configuration - public static class AppConfig { - - @Bean - public CommandLineRunner commandLineRunner( - SharedInformerFactory sharedInformerFactory, Controller nodePrintingController) { - return args -> { - System.out.println("starting informers.."); - sharedInformerFactory.startAllRegisteredInformers(); - - System.out.println("running controller.."); - nodePrintingController.run(); - }; - } - - @Bean - public Controller nodePrintingController( - SharedInformerFactory sharedInformerFactory, NodePrintingReconciler reconciler) { - DefaultControllerBuilder builder = ControllerBuilder.defaultBuilder(sharedInformerFactory); - builder = - builder.watch( - (q) -> { - return ControllerBuilder.controllerWatchBuilder(V1Node.class, q) - .withResyncPeriod(Duration.ofMinutes(1)) - .build(); - }); - builder.withWorkerCount(2); - builder.withReadyFunc(reconciler::informerReady); - return builder.withReconciler(reconciler).withName("nodePrintingController").build(); - } - - @Bean - public SharedIndexInformer endpointsInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>( - V1Endpoints.class, V1EndpointsList.class, "", "v1", "endpoints", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Endpoints.class, 0); - } - - @Bean - public SharedIndexInformer nodeInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>(V1Node.class, V1NodeList.class, "", "v1", "nodes", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Node.class, 60 * 1000L); - } - - @Bean - public SharedIndexInformer podInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Pod.class, 0); - } - } - - @Component - public static class NodePrintingReconciler implements Reconciler { - - @Value("${namespace}") - private String namespace; - - private SharedInformer nodeInformer; - - private SharedInformer podInformer; - - private Lister nodeLister; - - private Lister podLister; - - public NodePrintingReconciler( - SharedIndexInformer nodeInformer, SharedIndexInformer podInformer) { - this.nodeInformer = nodeInformer; - this.podInformer = podInformer; - this.nodeLister = new Lister<>(nodeInformer.getIndexer(), namespace); - this.podLister = new Lister<>(podInformer.getIndexer(), namespace); - } - - // *OPTIONAL* - // If you want to hold the controller from running util some condition.. - public boolean informerReady() { - return podInformer.hasSynced() && nodeInformer.hasSynced(); - } - - @Override - public Result reconcile(Request request) { - V1Node node = nodeLister.get(request.getName()); - - System.out.println("get all pods in namespace " + namespace); - podLister.namespace(namespace).list().stream() - .map(pod -> pod.getMetadata().getName()) - .forEach(System.out::println); - - System.out.println("triggered reconciling " + node.getMetadata().getName()); - return new Result(false); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java deleted file mode 100644 index bafe11e421..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.network.EndpointsLoadBalancer; -import io.kubernetes.client.extended.network.LoadBalancer; -import io.kubernetes.client.extended.network.RoundRobinLoadBalanceStrategy; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.models.V1Endpoints; -import io.kubernetes.client.spring.extended.network.endpoints.InformerEndpointsGetter; -import org.springframework.boot.CommandLineRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -@SpringBootApplication -public class SpringLoadBalancerExample { - - public static void main(String[] args) { - SpringApplication.run(SpringLoadBalancerExample.class, args); - } - - @Configuration - public static class AppConfig { - - @Bean - public CommandLineRunner loadBalancerCommandLineRunner( - SharedInformerFactory sharedInformerFactory, MyService myService) { - return args -> { - System.out.println("starting informers.."); - sharedInformerFactory.startAllRegisteredInformers(); - - System.out.println("routing default/kubernetes:"); - System.out.println(myService.defaultKubernetesLoadBalancer.getTargetIP()); - }; - } - - @Bean - public MyService myService(SharedIndexInformer lister) { - return new MyService(new Lister<>(lister.getIndexer())); - } - } - - public static class MyService { - - private LoadBalancer defaultKubernetesLoadBalancer; - - public MyService(Lister lister) { - InformerEndpointsGetter getter = new InformerEndpointsGetter(lister); - RoundRobinLoadBalanceStrategy strategy = new RoundRobinLoadBalanceStrategy(); - defaultKubernetesLoadBalancer = - new EndpointsLoadBalancer(() -> getter.get("default", "kubernetes"), strategy); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WatchExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WatchExample.java deleted file mode 100644 index 23ecce52d5..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WatchExample.java +++ /dev/null @@ -1,54 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import com.google.gson.reflect.TypeToken; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Watch; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** A simple example of how to use Watch API to watch changes in Namespace list. */ -public class WatchExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - // infinite timeout - OkHttpClient httpClient = - client.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - client.setHttpClient(httpClient); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - - Watch watch = - Watch.createWatch( - client, - api.listNamespaceCall( - null, null, null, null, null, null, null, null, null, Boolean.TRUE, null), - new TypeToken>() {}.getType()); - - try { - for (Watch.Response item : watch) { - System.out.printf("%s : %s%n", item.type, item.object.getMetadata().getName()); - } - } finally { - watch.close(); - } - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java deleted file mode 100644 index e1f54dcd07..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.WebSockets; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; -import okhttp3.WebSocket; - -/** - * This is a pretty low level, most people won't need to use WebSockets directly. - * - *

If you do need to run it, you can run: mvn exec:java \ - * -Dexec.mainClass=io.kubernetes.client.examples.WebSocketsExample \ - * -Dexec.args=/api/v1/namespaces/default/pods//attach?stdout=true - * - *

Note that you'd think 'watch' calls were WebSockets, but you'd be wrong, they're straight HTTP - * GET calls. - */ -public class WebSocketsExample { - public static void main(String... args) throws ApiException, IOException { - final ApiClient client = Config.defaultClient(); - WebSockets.stream( - args[0], - "GET", - client, - new WebSockets.SocketListener() { - private volatile WebSocket socket; - - @Override - public void open(String protocol, WebSocket socket) { - this.socket = socket; - } - - @Override - public void close() {} - - @Override - public void bytesMessage(InputStream is) {} - - @Override - public void failure(Throwable t) { - t.printStackTrace(); - } - - @Override - public void textMessage(Reader in) { - try { - BufferedReader reader = new BufferedReader(in); - for (String line = reader.readLine(); line != null; line = reader.readLine()) { - System.out.println(line); - } - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - } -} diff --git a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/YamlExample.java b/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/YamlExample.java deleted file mode 100644 index b3f0dc6626..0000000000 --- a/examples/examples-release-18/src/main/java/io/kubernetes/client/examples/YamlExample.java +++ /dev/null @@ -1,109 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.IntOrString; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodBuilder; -import io.kubernetes.client.openapi.models.V1Service; -import io.kubernetes.client.openapi.models.V1ServiceBuilder; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Yaml; -import java.io.File; -import java.io.IOException; -import java.util.HashMap; - -/** - * A simple example of how to parse a Kubernetes object. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.YamlExample" - * - *

From inside $REPO_DIR/examples - */ -public class YamlExample { - public static void main(String[] args) throws IOException, ApiException, ClassNotFoundException { - V1Pod pod = - new V1PodBuilder() - .withNewMetadata() - .withName("apod") - .endMetadata() - .withNewSpec() - .addNewContainer() - .withName("www") - .withImage("nginx") - .withNewResources() - .withLimits(new HashMap<>()) - .endResources() - .endContainer() - .endSpec() - .build(); - System.out.println(Yaml.dump(pod)); - - V1Service svc = - new V1ServiceBuilder() - .withNewMetadata() - .withName("aservice") - .endMetadata() - .withNewSpec() - .withSessionAffinity("ClientIP") - .withType("NodePort") - .addNewPort() - .withProtocol("TCP") - .withName("client") - .withPort(8008) - .withNodePort(8080) - .withTargetPort(new IntOrString(8080)) - .endPort() - .endSpec() - .build(); - System.out.println(Yaml.dump(svc)); - - // Read yaml configuration file, and deploy it - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // See issue #474. Not needed at most cases, but it is needed if you are using war - // packging or running this on JUnit. - Yaml.addModelMap("v1", "Service", V1Service.class); - - // Example yaml file can be found in $REPO_DIR/test-svc.yaml - File file = new File("test-svc.yaml"); - V1Service yamlSvc = (V1Service) Yaml.load(file); - - // Deployment and StatefulSet is defined in apps/v1, so you should use AppsV1Api instead of - // CoreV1API - CoreV1Api api = new CoreV1Api(); - V1Service createResult = - api.createNamespacedService("default", yamlSvc, null, null, null, null); - - System.out.println(createResult); - - V1Service deleteResult = - api.deleteNamespacedService( - yamlSvc.getMetadata().getName(), - "default", - null, - null, - null, - null, - null, - new V1DeleteOptions()); - System.out.println(deleteResult); - } -} diff --git a/examples/examples-release-18/src/main/resources/application.properties b/examples/examples-release-18/src/main/resources/application.properties deleted file mode 100644 index dc886e5f48..0000000000 --- a/examples/examples-release-18/src/main/resources/application.properties +++ /dev/null @@ -1,2 +0,0 @@ -namespace=airflow -management.endpoints.web.exposure.include=prometheus \ No newline at end of file diff --git a/examples/examples-release-18/src/test/java/io/kubernetes/client/examples/ExampleTest.java b/examples/examples-release-18/src/test/java/io/kubernetes/client/examples/ExampleTest.java deleted file mode 100644 index 5ccccda5af..0000000000 --- a/examples/examples-release-18/src/test/java/io/kubernetes/client/examples/ExampleTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; -import static com.github.tomakehurst.wiremock.client.WireMock.get; -import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo; -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.github.tomakehurst.wiremock.core.WireMockConfiguration; -import com.github.tomakehurst.wiremock.junit5.WireMockExtension; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.RegisterExtension; - -class ExampleTest { - private static final int PORT = 8089; - - @RegisterExtension - static WireMockExtension apiServer = - WireMockExtension.newInstance().options(WireMockConfiguration.options().port(PORT)).build(); - - @Test - void exactUrlOnly() throws ApiException { - ApiClient client = new ApiClient(); - client.setBasePath("http://localhost:" + PORT); - Configuration.setDefaultApiClient(client); - - V1Namespace ns1 = new V1Namespace().metadata(new V1ObjectMeta().name("name")); - - apiServer.stubFor( - get(urlEqualTo("/api/v1/namespaces/name")) - .willReturn( - aResponse() - .withHeader("Content-Type", "application/json") - .withBody(client.getJSON().serialize(ns1)))); - - CoreV1Api api = new CoreV1Api(); - V1Namespace ns2 = api.readNamespace("name", null); - assertEquals(ns1, ns2); - } -} diff --git a/examples/examples-release-18/test-svc.yaml b/examples/examples-release-18/test-svc.yaml deleted file mode 100644 index f225bea76f..0000000000 --- a/examples/examples-release-18/test-svc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: test-service -spec: - type: ClusterIP - selector: - app: test-service - ports: - - name: port-of-container - port: 8080 \ No newline at end of file diff --git a/examples/examples-release-18/test.yaml b/examples/examples-release-18/test.yaml deleted file mode 100644 index 0b46e57003..0000000000 --- a/examples/examples-release-18/test.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: ReplicationController -metadata: - name: test -spec: - replicas: 1 - template: - metadata: - labels: - app: test - spec: - containers: - - name: test - image: test/examples:1.0 - command: ["/bin/sh","-c"] - args: ["java -jar /examples.jar","while :; do sleep 1; done"] diff --git a/examples/examples-release-19/Dockerfile b/examples/examples-release-19/Dockerfile deleted file mode 100644 index ac90eb1d67..0000000000 --- a/examples/examples-release-19/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM openjdk:8-jre - -COPY target/client-java-examples-*-SNAPSHOT-jar-with-dependencies.jar /examples.jar - -CMD ["java", "-jar", "/examples.jar"] - - diff --git a/examples/examples-release-19/README.md b/examples/examples-release-19/README.md deleted file mode 100644 index 80c34ea272..0000000000 --- a/examples/examples-release-19/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Running examples - -```sh -export REPO_ROOT=/path/to/client-java/repo - -cd ${REPO_ROOT}/ -mvn install - -cd ${REPO_ROOT}/examples/examples-15 -mvn compile -mvn exec:java -Dexec.mainClass="io.kubernetes.client.examples.Example" -``` - diff --git a/examples/examples-release-19/createPod.sh b/examples/examples-release-19/createPod.sh deleted file mode 100755 index 18a9841317..0000000000 --- a/examples/examples-release-19/createPod.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# creates a pod and runs -# Example.java(list pods for all namespaces) on starting of pod - -# Exit on any error. -set -e - -if ! which minikube > /dev/null; then - echo "This script requires minikube installed." - exit 100 -fi - -dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -export REPO_ROOT=${dir}/.. - -cd ${REPO_ROOT} -mvn install - -cd ${REPO_ROOT}/examples -mvn package - -eval $(minikube docker-env) -docker build -t test/examples:1.0 . -kubectl apply -f test.yaml diff --git a/examples/examples-release-19/pom.xml b/examples/examples-release-19/pom.xml deleted file mode 100644 index 2489de1b10..0000000000 --- a/examples/examples-release-19/pom.xml +++ /dev/null @@ -1,129 +0,0 @@ - - 4.0.0 - - client-java-examples-release-19 - client-java-examples-release-19 - io.kubernetes - 19.0.0 - - - - ch.qos.logback - logback-classic - 1.5.9 - runtime - - - io.prometheus - simpleclient - 0.15.0 - - - io.prometheus - simpleclient_httpserver - 0.15.0 - - - io.kubernetes - client-java-api - 19.0.0 - - - io.kubernetes - client-java - 19.0.0 - - - io.kubernetes - client-java-extended - 19.0.0 - - - io.kubernetes - client-java-spring-integration - 19.0.0 - - - io.kubernetes - client-java-proto - 19.0.0 - - - commons-cli - commons-cli - 1.9.0 - - - io.kubernetes - client-java-cert-manager-models - 10.0.1 - - - io.kubernetes - client-java-prometheus-operator-models - 10.0.1 - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - org.wiremock - wiremock - 3.9.1 - test - - - - org.springframework.boot - spring-boot-starter-web - ${spring.boot.version} - - - org.springframework.boot - spring-boot-starter-actuator - ${spring.boot.version} - - - com.amazonaws - aws-java-sdk-sts - 1.12.773 - - - - - - - - com.diffplug.spotless - spotless-maven-plugin - 2.43.0 - - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - true - - - - org.apache.maven.plugins - maven-deploy-plugin - - true - - - - - - 5.11.2 - 3.3.4 - - \ No newline at end of file diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/AttachExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/AttachExample.java deleted file mode 100644 index 7f753b8d8f..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/AttachExample.java +++ /dev/null @@ -1,77 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Attach; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStreamReader; -import java.io.OutputStream; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.AttachExample" - * - *

From inside $REPO_DIR/examples - */ -public class AttachExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Attach attach = new Attach(); - final Attach.AttachResult result = attach.attach("default", "nginx-4217019353-k5sn9", true); - - new Thread( - new Runnable() { - public void run() { - BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); - OutputStream output = result.getStandardInputStream(); - try { - while (true) { - String line = in.readLine(); - output.write(line.getBytes()); - output.write('\n'); - output.flush(); - } - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(result.getStandardOutputStream(), System.out); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - Thread.sleep(10 * 1000); - result.close(); - System.exit(0); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/CertManagerExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/CertManagerExample.java deleted file mode 100644 index b616a18ee9..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/CertManagerExample.java +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.cert.manager.models.V1alpha2IssuerSpecSelfSigned; -import io.cert.manager.models.V1beta1Issuer; -import io.cert.manager.models.V1beta1IssuerList; -import io.cert.manager.models.V1beta1IssuerSpec; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.io.IOException; - -/** - * This sample creates a self signed issuer "self-signed-issuer" in default namespace on a - * Kubernetes cluster where cert-manager is installed - */ -public class CertManagerExample { - public static void main(String[] args) throws IOException { - GenericKubernetesApi issuerApi = - new GenericKubernetesApi<>( - V1beta1Issuer.class, - V1beta1IssuerList.class, - "cert-manager.io", - "v1beta1", - "issuers", - ClientBuilder.defaultClient()); - issuerApi.create( - new V1beta1Issuer() - .metadata(new V1ObjectMeta().namespace("default").name("self-signed-issuer")) - .kind("Issuer") - .apiVersion("cert-manager.io/v1beta1") - .spec(new V1beta1IssuerSpec().selfSigned(new V1alpha2IssuerSpecSelfSigned()))); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ControllerExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ControllerExample.java deleted file mode 100644 index 6e646b1a3e..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ControllerExample.java +++ /dev/null @@ -1,164 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.controller.Controller; -import io.kubernetes.client.extended.controller.ControllerManager; -import io.kubernetes.client.extended.controller.LeaderElectingController; -import io.kubernetes.client.extended.controller.builder.ControllerBuilder; -import io.kubernetes.client.extended.controller.reconciler.Reconciler; -import io.kubernetes.client.extended.controller.reconciler.Request; -import io.kubernetes.client.extended.controller.reconciler.Result; -import io.kubernetes.client.extended.event.EventType; -import io.kubernetes.client.extended.event.legacy.EventBroadcaster; -import io.kubernetes.client.extended.event.legacy.EventRecorder; -import io.kubernetes.client.extended.event.legacy.LegacyEventBroadcaster; -import io.kubernetes.client.extended.leaderelection.LeaderElectionConfig; -import io.kubernetes.client.extended.leaderelection.LeaderElector; -import io.kubernetes.client.extended.leaderelection.resourcelock.EndpointsLock; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1EventSource; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.util.CallGeneratorParams; -import java.io.IOException; -import java.time.Duration; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -public class ControllerExample { - public static void main(String[] args) throws IOException { - - CoreV1Api coreV1Api = new CoreV1Api(); - ApiClient apiClient = coreV1Api.getApiClient(); - OkHttpClient httpClient = - apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - apiClient.setHttpClient(httpClient); - - // instantiating an informer-factory, and there should be only one informer-factory - // globally. - SharedInformerFactory informerFactory = new SharedInformerFactory(); - // registering node-informer into the informer-factory. - SharedIndexInformer nodeInformer = - informerFactory.sharedIndexInformerFor( - (CallGeneratorParams params) -> { - return coreV1Api.listNodeCall( - null, - null, - null, - null, - null, - null, - params.resourceVersion, - null, - null, - params.timeoutSeconds, - params.watch, - null); - }, - V1Node.class, - V1NodeList.class); - informerFactory.startAllRegisteredInformers(); - - EventBroadcaster eventBroadcaster = new LegacyEventBroadcaster(coreV1Api); - - // nodeReconciler prints node information on events - NodePrintingReconciler nodeReconciler = - new NodePrintingReconciler( - nodeInformer, - eventBroadcaster.newRecorder( - new V1EventSource().host("localhost").component("node-printer"))); - - // Use builder library to construct a default controller. - Controller controller = - ControllerBuilder.defaultBuilder(informerFactory) - .watch( - (workQueue) -> - ControllerBuilder.controllerWatchBuilder(V1Node.class, workQueue) - .withWorkQueueKeyFunc( - (V1Node node) -> - new Request(node.getMetadata().getName())) // optional, default to - .withOnAddFilter( - (V1Node createdNode) -> - createdNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onAdd filter - .withOnUpdateFilter( - (V1Node oldNode, V1Node newNode) -> - newNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onUpdate filter - .withOnDeleteFilter( - (V1Node deletedNode, Boolean stateUnknown) -> - deletedNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onDelete filter - .build()) - .withReconciler(nodeReconciler) // required, set the actual reconciler - .withName("node-printing-controller") // optional, set name for controller - .withWorkerCount(4) // optional, set worker thread count - .withReadyFunc(nodeInformer::hasSynced) // optional, only starts controller when the - // cache has synced up - .build(); - - // Use builder library to manage one or multiple controllers. - ControllerManager controllerManager = - ControllerBuilder.controllerManagerBuilder(informerFactory) - .addController(controller) - .build(); - - LeaderElectingController leaderElectingController = - new LeaderElectingController( - new LeaderElector( - new LeaderElectionConfig( - new EndpointsLock("kube-system", "leader-election", "foo"), - Duration.ofMillis(10000), - Duration.ofMillis(8000), - Duration.ofMillis(5000))), - controllerManager); - - leaderElectingController.run(); - } - - static class NodePrintingReconciler implements Reconciler { - - private Lister nodeLister; - private EventRecorder eventRecorder; - - public NodePrintingReconciler( - SharedIndexInformer nodeInformer, EventRecorder recorder) { - this.nodeLister = new Lister<>(nodeInformer.getIndexer()); - this.eventRecorder = recorder; - } - - @Override - public Result reconcile(Request request) { - V1Node node = this.nodeLister.get(request.getName()); - System.out.println("triggered reconciling " + node.getMetadata().getName()); - this.eventRecorder.event( - node, - EventType.Normal, - "Print Node", - "Successfully printed %s", - node.getMetadata().getName()); - return new Result(false); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/CopyExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/CopyExample.java deleted file mode 100644 index bbb6575676..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/CopyExample.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Copy; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import io.kubernetes.client.util.exception.CopyNotSupportedException; -import java.io.IOException; -import java.io.InputStream; -import java.nio.file.Paths; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.CopyExample" - * - *

From inside $REPO_DIR/examples - */ -public class CopyExample { - public static void main(String[] args) - throws IOException, ApiException, InterruptedException, CopyNotSupportedException { - String podName = "kube-addon-manager-minikube"; - String namespace = "kube-system"; - - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Copy copy = new Copy(); - InputStream dataStream = copy.copyFileFromPod(namespace, podName, "/etc/motd"); - Streams.copy(dataStream, System.out); - - copy.copyDirectoryFromPod(namespace, podName, null, "/etc", Paths.get("/tmp/etc")); - - System.out.println("Done!"); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java deleted file mode 100644 index 42a2524f7b..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java +++ /dev/null @@ -1,140 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1DeploymentBuilder; -import io.kubernetes.client.openapi.models.V1DeploymentSpec; -import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.openapi.models.V1PodTemplateSpec; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.PatchUtils; -import io.kubernetes.client.util.wait.Wait; -import java.io.IOException; -import java.time.Duration; -import java.time.LocalDateTime; -import java.util.Collections; - -public class DeployRolloutRestartExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - AppsV1Api appsV1Api = new AppsV1Api(client); - - String deploymentName = "example-nginx"; - String imageName = "nginx:1.21.6"; - String namespace = "default"; - - // Create an example deployment - V1DeploymentBuilder deploymentBuilder = - new V1DeploymentBuilder() - .withApiVersion("apps/v1") - .withKind("Deployment") - .withMetadata(new V1ObjectMeta().name(deploymentName).namespace(namespace)) - .withSpec( - new V1DeploymentSpec() - .replicas(1) - .selector(new V1LabelSelector().putMatchLabelsItem("name", deploymentName)) - .template( - new V1PodTemplateSpec() - .metadata(new V1ObjectMeta().putLabelsItem("name", deploymentName)) - .spec( - new V1PodSpec() - .containers( - Collections.singletonList( - new V1Container() - .name(deploymentName) - .image(imageName)))))); - appsV1Api.createNamespacedDeployment( - namespace, deploymentBuilder.build(), null, null, null, null); - - // Wait until example deployment is ready - Wait.poll( - Duration.ofSeconds(3), - Duration.ofSeconds(60), - () -> { - try { - System.out.println("Waiting until example deployment is ready..."); - return appsV1Api - .readNamespacedDeployment(deploymentName, namespace, null) - .getStatus() - .getReadyReplicas() - > 0; - } catch (ApiException e) { - e.printStackTrace(); - return false; - } - }); - System.out.println("Created example deployment!"); - - // Trigger a rollout restart of the example deployment - V1Deployment runningDeployment = - appsV1Api.readNamespacedDeployment(deploymentName, namespace, null); - - // Explicitly set "restartedAt" annotation with current date/time to trigger rollout when patch - // is applied - runningDeployment - .getSpec() - .getTemplate() - .getMetadata() - .putAnnotationsItem("kubectl.kubernetes.io/restartedAt", LocalDateTime.now().toString()); - try { - String deploymentJson = client.getJSON().serialize(runningDeployment); - - PatchUtils.patch( - V1Deployment.class, - () -> - appsV1Api.patchNamespacedDeploymentCall( - deploymentName, - namespace, - new V1Patch(deploymentJson), - null, - null, - "kubectl-rollout", - null, - null, - null), - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - client); - - // Wait until deployment has stabilized after rollout restart - Wait.poll( - Duration.ofSeconds(3), - Duration.ofSeconds(60), - () -> { - try { - System.out.println("Waiting until example deployment restarted successfully..."); - return appsV1Api - .readNamespacedDeployment(deploymentName, namespace, null) - .getStatus() - .getReadyReplicas() - > 0; - } catch (ApiException e) { - e.printStackTrace(); - return false; - } - }); - System.out.println("Example deployment restarted successfully!"); - } catch (ApiException e) { - e.printStackTrace(); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java deleted file mode 100644 index b8cb04616d..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java +++ /dev/null @@ -1,42 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.dynamic.DynamicKubernetesApi; -import io.kubernetes.client.util.generic.dynamic.DynamicKubernetesObject; -import java.io.IOException; - -public class DynamicClientExample { - - public static void main(String[] args) throws IOException, ApiException { - - ApiClient apiClient = ClientBuilder.standard().build(); - - // retrieving the latest state of the default namespace - DynamicKubernetesApi dynamicApi = new DynamicKubernetesApi("", "v1", "namespaces", apiClient); - DynamicKubernetesObject defaultNamespace = - dynamicApi.get("default").throwsApiException().getObject(); - - // attaching a "foo=bar" label to the default namespace - defaultNamespace.setMetadata(defaultNamespace.getMetadata().putLabelsItem("foo", "bar")); - DynamicKubernetesObject updatedDefaultNamespace = - dynamicApi.update(defaultNamespace).throwsApiException().getObject(); - - System.out.println(updatedDefaultNamespace); - - apiClient.getHttpClient().connectionPool().evictAll(); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/Example.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/Example.java deleted file mode 100644 index b492ba5415..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/Example.java +++ /dev/null @@ -1,44 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.Example" - * - *

From inside $REPO_DIR/examples - */ -public class Example { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ExecExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ExecExample.java deleted file mode 100644 index acea8e815a..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ExecExample.java +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Exec; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.CommandLineParser; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.ParseException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ExecExample" - * - *

From inside $REPO_DIR/examples - */ -public class ExecExample { - public static void main(String[] args) - throws IOException, ApiException, InterruptedException, ParseException { - final Options options = new Options(); - options.addOption(new Option("p", "pod", true, "The name of the pod")); - options.addOption(new Option("n", "namespace", true, "The namespace of the pod")); - - CommandLineParser parser = new DefaultParser(); - CommandLine cmd = parser.parse(options, args); - - String podName = cmd.getOptionValue("p", "nginx-dbddb74b8-s4cx5"); - String namespace = cmd.getOptionValue("n", "default"); - args = cmd.getArgs(); - - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Exec exec = new Exec(); - boolean tty = System.console() != null; - // final Process proc = exec.exec("default", "nginx-4217019353-k5sn9", new String[] - // {"sh", "-c", "echo foo"}, true, tty); - final Process proc = - exec.exec(namespace, podName, args.length == 0 ? new String[] {"sh"} : args, true, tty); - - Thread in = - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(System.in, proc.getOutputStream()); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - in.start(); - - Thread out = - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(proc.getInputStream(), System.out); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - out.start(); - - proc.waitFor(); - - // wait for any last output; no need to wait for input thread - out.join(); - - proc.destroy(); - - System.exit(proc.exitValue()); - } -} 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 deleted file mode 100644 index bcf8d13ee1..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ExpandedExample.java +++ /dev/null @@ -1,277 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1DeploymentList; -import io.kubernetes.client.openapi.models.V1DeploymentSpec; -import io.kubernetes.client.openapi.models.V1NamespaceList; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1ServiceList; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.List; -import java.util.Optional; -import java.util.stream.Collectors; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ExpandedExample" - * - *

From inside $REPO_DIR/examples - */ -public class ExpandedExample { - - private static CoreV1Api COREV1_API; - private static final String DEFAULT_NAME_SPACE = "default"; - private static final Integer TIME_OUT_VALUE = 180; - private static final Logger LOGGER = LoggerFactory.getLogger(ExpandedExample.class); - - /** - * Main method - * - * @param args - */ - public static void main(String[] args) { - try { - ApiClient client = Config.defaultClient(); - // To change the context of k8s cluster, you can use - // io.kubernetes.client.util.KubeConfig - Configuration.setDefaultApiClient(client); - COREV1_API = new CoreV1Api(client); - - // ScaleUp/ScaleDown the Deployment pod - // Please change the name of Deployment? - System.out.println("----- Scale Deployment Start -----"); - scaleDeployment("account-service", 5); - - // List all of the namaspaces and pods - List nameSpaces = getAllNameSpaces(); - nameSpaces.stream() - .forEach( - namespace -> { - try { - System.out.println("----- " + namespace + " -----"); - getNamespacedPod(namespace).stream().forEach(System.out::println); - } catch (ApiException ex) { - LOGGER.warn("Couldn't get the pods in namespace:{}", namespace, ex); - } - }); - - // Print all of the Services - System.out.println("----- Print list all Services Start -----"); - List services = getServices(); - services.stream().forEach(System.out::println); - System.out.println("----- Print list all Services End -----"); - - // Print log of specific pod. In this example show the first pod logs. - System.out.println("----- Print Log of Specific Pod Start -----"); - String firstPodName = getPods().get(0); - printLog(DEFAULT_NAME_SPACE, firstPodName); - System.out.println("----- Print Log of Specific Pod End -----"); - } catch (ApiException | IOException ex) { - LOGGER.warn("Exception had occured ", ex); - } - } - - /** - * Get all namespaces in k8s cluster - * - * @return - * @throws ApiException - */ - public static List getAllNameSpaces() throws ApiException { - V1NamespaceList listNamespace = - COREV1_API.listNamespace( - null, null, null, null, null, null, null, null, null, null, null); - List list = - listNamespace.getItems().stream() - .map(v1Namespace -> v1Namespace.getMetadata().getName()) - .collect(Collectors.toList()); - return list; - } - - /** - * List all pod names in all namespaces in k8s cluster - * - * @return - * @throws ApiException - */ - public static List getPods() throws ApiException { - V1PodList v1podList = - COREV1_API.listPodForAllNamespaces( - null, null, null, null, null, null, null, null, null, null, null); - List podList = - v1podList.getItems().stream() - .map(v1Pod -> v1Pod.getMetadata().getName()) - .collect(Collectors.toList()); - return podList; - } - - /** - * List all pod in the default namespace - * - * @return - * @throws ApiException - */ - public static List getNamespacedPod() throws ApiException { - return getNamespacedPod(DEFAULT_NAME_SPACE, null); - } - - /** - * List pod in specific namespace - * - * @param namespace - * @return - * @throws ApiException - */ - public static List getNamespacedPod(String namespace) throws ApiException { - return getNamespacedPod(namespace, null); - } - - /** - * List pod in specific namespace with label - * - * @param namespace - * @param label - * @return - * @throws ApiException - */ - public static List getNamespacedPod(String namespace, String label) throws ApiException { - V1PodList listNamespacedPod = - COREV1_API.listNamespacedPod( - namespace, - null, - null, - null, - null, - label, - null, - null, - null, - null, - TIME_OUT_VALUE, - Boolean.FALSE); - List listPods = - listNamespacedPod.getItems().stream() - .map(v1pod -> v1pod.getMetadata().getName()) - .collect(Collectors.toList()); - return listPods; - } - - /** - * List all Services in default namespace - * - * @return - * @throws ApiException - */ - public static List getServices() throws ApiException { - V1ServiceList listNamespacedService = - COREV1_API.listNamespacedService( - DEFAULT_NAME_SPACE, - null, - null, - null, - null, - null, - null, - null, - null, - null, - TIME_OUT_VALUE, - Boolean.FALSE); - return listNamespacedService.getItems().stream() - .map(v1service -> v1service.getMetadata().getName()) - .collect(Collectors.toList()); - } - - /** - * Scale up/down the number of pod in Deployment - * - * @param deploymentName - * @param numberOfReplicas - * @throws ApiException - */ - public static void scaleDeployment(String deploymentName, int numberOfReplicas) - throws ApiException { - AppsV1Api appsV1Api = new AppsV1Api(); - appsV1Api.setApiClient(COREV1_API.getApiClient()); - V1DeploymentList listNamespacedDeployment = - appsV1Api.listNamespacedDeployment( - DEFAULT_NAME_SPACE, - null, - null, - null, - null, - null, - null, - null, - null, - null, - null, - Boolean.FALSE); - - List appsV1DeploymentItems = listNamespacedDeployment.getItems(); - Optional findedDeployment = - appsV1DeploymentItems.stream() - .filter( - (V1Deployment deployment) -> - deployment.getMetadata().getName().equals(deploymentName)) - .findFirst(); - findedDeployment.ifPresent( - (V1Deployment deploy) -> { - try { - V1DeploymentSpec newSpec = deploy.getSpec().replicas(numberOfReplicas); - V1Deployment newDeploy = deploy.spec(newSpec); - appsV1Api.replaceNamespacedDeployment( - deploymentName, DEFAULT_NAME_SPACE, newDeploy, null, null, null, null); - } catch (ApiException ex) { - LOGGER.warn("Scale the pod failed for Deployment:{}", deploymentName, ex); - } - }); - } - - /** - * Print out the Log for specific Pods - * - * @param namespace - * @param podName - * @throws ApiException - */ - public static void printLog(String namespace, String podName) throws ApiException { - // https://github.com/kubernetes-client/java/blob/master/kubernetes/docs/CoreV1Api.md#readNamespacedPodLog - String readNamespacedPodLog = - COREV1_API.readNamespacedPodLog( - podName, - namespace, - null, - Boolean.FALSE, - null, - Integer.MAX_VALUE, - null, - Boolean.FALSE, - Integer.MAX_VALUE, - 40, - Boolean.FALSE); - System.out.println(readNamespacedPodLog); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/FluentExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/FluentExample.java deleted file mode 100644 index 3357ac2f00..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/FluentExample.java +++ /dev/null @@ -1,75 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodBuilder; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.Arrays; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.FluentExample" - * - *

From inside $REPO_DIR/examples - */ -public class FluentExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - - V1Pod pod = - new V1PodBuilder() - .withNewMetadata() - .withName("apod") - .endMetadata() - .withNewSpec() - .addNewContainer() - .withName("www") - .withImage("nginx") - .endContainer() - .endSpec() - .build(); - - api.createNamespacedPod("default", pod, null, null, null, null); - - V1Pod pod2 = - new V1Pod() - .metadata(new V1ObjectMeta().name("anotherpod")) - .spec( - new V1PodSpec() - .containers(Arrays.asList(new V1Container().name("www").image("nginx")))); - - api.createNamespacedPod("default", pod2, null, null, null, null); - - V1PodList list = - api.listNamespacedPod( - "default", null, null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/GenericClientExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/GenericClientExample.java deleted file mode 100644 index ddfb1243b8..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/GenericClientExample.java +++ /dev/null @@ -1,63 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.util.Arrays; - -public class GenericClientExample { - - public static void main(String[] args) throws Exception { - - // The following codes demonstrates using generic client to manipulate pods - V1Pod pod = - new V1Pod() - .metadata(new V1ObjectMeta().name("foo").namespace("default")) - .spec( - new V1PodSpec() - .containers(Arrays.asList(new V1Container().name("c").image("test")))); - - ApiClient apiClient = ClientBuilder.standard().build(); - GenericKubernetesApi podClient = - new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient); - - V1Pod latestPod = podClient.create(pod).throwsApiException().getObject(); - System.out.println("Created!"); - - V1Pod patchedPod = - podClient - .patch( - "default", - "foo", - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - new V1Patch("{\"metadata\":{\"finalizers\":[\"example.io/foo\"]}}")) - .throwsApiException() - .getObject(); - System.out.println("Patched!"); - - V1Pod deletedPod = podClient.delete("default", "foo").throwsApiException().getObject(); - if (deletedPod != null) { - System.out.println( - "Received after-deletion status of the requested object, will be deleting in background!"); - } - System.out.println("Deleted!"); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java deleted file mode 100644 index 0d6134bb68..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.ClientBuilder; -import java.io.IOException; - -/** - * A simple example of how to use the Java API inside a kubernetes cluster - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.InClusterClientExample" - * - *

From inside $REPO_DIR/examples - */ -public class InClusterClientExample { - public static void main(String[] args) throws IOException, ApiException { - - // loading the in-cluster config, including: - // 1. service-account CA - // 2. service-account bearer-token - // 3. service-account namespace - // 4. master endpoints(ip, port) from pre-set environment variables - ApiClient client = ClientBuilder.cluster().build(); - - // if you prefer not to refresh service account token, please use: - // ApiClient client = ClientBuilder.oldCluster().build(); - - // set the global default api-client to the in-cluster one from above - Configuration.setDefaultApiClient(client); - - // the CoreV1Api loads default api-client from global configuration. - CoreV1Api api = new CoreV1Api(); - - // invokes the CoreV1Api client - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/InformerExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/InformerExample.java deleted file mode 100644 index b991e7ea49..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/InformerExample.java +++ /dev/null @@ -1,107 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.informer.ResourceEventHandler; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.CallGeneratorParams; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.InformerExample" - * - *

From inside $REPO_DIR/examples - */ -public class InformerExample { - public static void main(String[] args) throws Exception { - CoreV1Api coreV1Api = new CoreV1Api(); - ApiClient apiClient = coreV1Api.getApiClient(); - OkHttpClient httpClient = - apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - apiClient.setHttpClient(httpClient); - - SharedInformerFactory factory = new SharedInformerFactory(apiClient); - - // Node informer - SharedIndexInformer nodeInformer = - factory.sharedIndexInformerFor( - // **NOTE**: - // The following "CallGeneratorParams" lambda merely generates a stateless - // HTTPs requests, the effective apiClient is the one specified when constructing - // the informer-factory. - (CallGeneratorParams params) -> { - return coreV1Api.listNodeCall( - null, - null, - null, - null, - null, - null, - params.resourceVersion, - null, - null, - params.timeoutSeconds, - params.watch, - null); - }, - V1Node.class, - V1NodeList.class); - - nodeInformer.addEventHandler( - new ResourceEventHandler() { - @Override - public void onAdd(V1Node node) { - System.out.printf("%s node added!\n", node.getMetadata().getName()); - } - - @Override - public void onUpdate(V1Node oldNode, V1Node newNode) { - System.out.printf( - "%s => %s node updated!\n", - oldNode.getMetadata().getName(), newNode.getMetadata().getName()); - } - - @Override - public void onDelete(V1Node node, boolean deletedFinalStateUnknown) { - System.out.printf("%s node deleted!\n", node.getMetadata().getName()); - } - }); - - factory.startAllRegisteredInformers(); - - V1Node nodeToCreate = new V1Node(); - V1ObjectMeta metadata = new V1ObjectMeta(); - metadata.setName("noxu"); - nodeToCreate.setMetadata(metadata); - V1Node createdNode = coreV1Api.createNode(nodeToCreate, null, null, null, null); - Thread.sleep(3000); - - Lister nodeLister = new Lister(nodeInformer.getIndexer()); - V1Node node = nodeLister.get("noxu"); - System.out.printf("noxu created! %s\n", node.getMetadata().getCreationTimestamp()); - factory.stopAllRegisteredInformers(); - Thread.sleep(3000); - System.out.println("informer stopped.."); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java deleted file mode 100644 index 5cb40efa6e..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.KubeConfig; -import java.io.FileReader; -import java.io.IOException; - -/** - * A simple example of how to use the Java API from an application outside a kubernetes cluster - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.KubeConfigFileClientExample" - * - *

From inside $REPO_DIR/examples - */ -public class KubeConfigFileClientExample { - public static void main(String[] args) throws IOException, ApiException { - - // file path to your KubeConfig - - String kubeConfigPath = System.getenv("HOME") + "/.kube/config"; - - // loading the out-of-cluster config, a kubeconfig from file-system - ApiClient client = - ClientBuilder.kubeconfig(KubeConfig.loadKubeConfig(new FileReader(kubeConfigPath))).build(); - - // set the global default api-client to the out-of-cluster one from above - Configuration.setDefaultApiClient(client); - - // the CoreV1Api loads default api-client from global configuration. - CoreV1Api api = new CoreV1Api(); - - // invokes the CoreV1Api client - V1PodList list = - api.listPodForAllNamespaces(null, null, null, null, null, null, null, null, null, null, null); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/KubectlExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/KubectlExample.java deleted file mode 100644 index 2619c9f271..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/KubectlExample.java +++ /dev/null @@ -1,311 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import static io.kubernetes.client.extended.kubectl.Kubectl.apiResources; -import static io.kubernetes.client.extended.kubectl.Kubectl.copy; -import static io.kubernetes.client.extended.kubectl.Kubectl.cordon; -import static io.kubernetes.client.extended.kubectl.Kubectl.delete; -import static io.kubernetes.client.extended.kubectl.Kubectl.drain; -import static io.kubernetes.client.extended.kubectl.Kubectl.exec; -import static io.kubernetes.client.extended.kubectl.Kubectl.label; -import static io.kubernetes.client.extended.kubectl.Kubectl.log; -import static io.kubernetes.client.extended.kubectl.Kubectl.portforward; -import static io.kubernetes.client.extended.kubectl.Kubectl.scale; -import static io.kubernetes.client.extended.kubectl.Kubectl.taint; -import static io.kubernetes.client.extended.kubectl.Kubectl.top; -import static io.kubernetes.client.extended.kubectl.Kubectl.uncordon; -import static io.kubernetes.client.extended.kubectl.Kubectl.version; -import static io.kubernetes.client.extended.kubectl.KubectlTop.podMetricSum; - -import io.kubernetes.client.common.KubernetesObject; -import io.kubernetes.client.custom.NodeMetrics; -import io.kubernetes.client.custom.PodMetrics; -import io.kubernetes.client.extended.kubectl.KubectlExec; -import io.kubernetes.client.extended.kubectl.KubectlPortForward; -import io.kubernetes.client.extended.kubectl.exception.KubectlException; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1ReplicationController; -import io.kubernetes.client.openapi.models.V1Service; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.ParseException; -import org.apache.commons.lang3.tuple.Pair; - -/** - * A Java equivalent for the kubectl command line tool. Not nearly as complete. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.KubectlExample" -Dexec.args="log some-pod" - * - *

From inside $REPO_DIR/examples - */ -public class KubectlExample { - static Class getClassForKind(String kind) { - switch (kind) { - case "pod": - case "pods": - return V1Pod.class; - case "deployment": - case "deployments": - return V1Deployment.class; - case "service": - case "services": - return V1Service.class; - case "node": - case "nodes": - return V1Node.class; - case "replicationcontroller": - case "replicationcontrollers": - return V1ReplicationController.class; - } - return null; - } - - private static final String PADDING = " "; - - private static String pad(String value) { - while (value.length() < PADDING.length()) { - value += " "; - } - return value; - } - - public static void main(String[] args) - throws java.io.IOException, KubectlException, ParseException { - ApiClient client = Config.defaultClient(); - - Options options = new Options(); - options.addOption(new Option("n", "namespace", true, "The namespace for the resource")); - options.addOption(new Option("r", "replicas", true, "The number of replicas to scale to")); - options.addOption(new Option("c", "container", true, "The container in a pod to connect to")); - DefaultParser parser = new DefaultParser(); - CommandLine cli = parser.parse(options, args); - - args = cli.getArgs(); - String verb = args[0]; - String ns = cli.getOptionValue("n", "default"); - String kind = null; - String name = null; - - switch (verb) { - case "delete": - kind = args[1]; - name = args[2]; - delete(getClassForKind(kind)).namespace(ns).name(name).execute(); - case "drain": - name = args[1]; - drain().apiClient(client).name(name).execute(); - System.out.println("Node drained"); - System.exit(0); - case "cordon": - name = args[1]; - cordon().apiClient(client).name(name).execute(); - System.out.println("Node cordoned"); - System.exit(0); - case "uncordon": - name = args[1]; - uncordon().apiClient(client).name(name).execute(); - System.out.println("Node uncordoned"); - System.exit(0); - case "top": - String what = args[1]; - switch (what) { - case "nodes": - case "node": - List> nodes = - top(V1Node.class, NodeMetrics.class).apiClient(client).metric("cpu").execute(); - System.out.println(pad("Node") + "\tCPU\t\tMemory"); - for (Pair node : nodes) { - System.out.println( - pad(node.getLeft().getMetadata().getName()) - + "\t" - + node.getRight().getUsage().get("cpu").getNumber() - + "\t" - + node.getRight().getUsage().get("memory").getNumber()); - } - System.exit(0); - case "pods": - case "pod": - List> pods = - top(V1Pod.class, PodMetrics.class) - .apiClient(client) - .namespace(ns) - .metric("cpu") - .execute(); - System.out.println(pad("Pod") + "\tCPU\t\tMemory"); - for (Pair pod : pods) { - System.out.println( - pad(pod.getLeft().getMetadata().getName()) - + "\t" - + podMetricSum(pod.getRight(), "cpu") - + "\t" - + podMetricSum(pod.getRight(), "memory")); - } - System.exit(0); - } - System.err.println("Unknown top argument: " + what); - System.exit(-1); - case "cp": - String from = args[1]; - String to = args[2]; - if (from.indexOf(":") != -1) { - String[] parts = from.split(":"); - name = parts[0]; - from = parts[1]; - copy() - .apiClient(client) - .namespace(ns) - .name(name) - .container(cli.getOptionValue("c", "")) - .fromPod(from) - .to(to) - .execute(); - } else if (to.indexOf(":") != -1) { - String[] parts = to.split(":"); - name = parts[0]; - to = parts[1]; - copy() - .apiClient(client) - .namespace(ns) - .name(name) - .container(cli.getOptionValue("c", "")) - .from(from) - .toPod(to) - .execute(); - } else { - System.err.println("Missing pod name for copy."); - System.exit(-1); - } - System.out.println("Copied " + from + " -> " + to); - System.exit(0); - case "taint": - name = args[1]; - String taintSpec = args[2]; - boolean remove = taintSpec.endsWith("-"); - int ix = taintSpec.indexOf("="); - int ix2 = taintSpec.indexOf(":"); - - if (remove) { - taintSpec = taintSpec.substring(0, taintSpec.length() - 2); - String key = ix == -1 ? taintSpec : taintSpec.substring(0, ix); - String effect = ix == -1 ? null : taintSpec.substring(ix + 1); - - if (effect == null) { - taint().apiClient(client).name(name).removeTaint(key).execute(); - } else { - taint().apiClient(client).name(name).removeTaint(key, effect).execute(); - } - System.exit(0); - } - if (ix2 == -1) { - System.err.println("key:effect or key=value:effect is required."); - System.exit(-1); - } - String key = taintSpec.substring(0, ix == -1 ? ix2 : ix); - String value = ix == -1 ? null : taintSpec.substring(ix + 1, ix2); - String effect = taintSpec.substring(ix2 + 1); - - if (value == null) { - taint().apiClient(client).name(name).addTaint(key, effect).execute(); - } else { - taint().apiClient(client).name(name).addTaint(key, value, effect).execute(); - } - System.exit(0); - case "portforward": - name = args[1]; - KubectlPortForward forward = portforward().apiClient(client).name(name).namespace(ns); - for (int i = 2; i < args.length; i++) { - String port = args[i]; - String[] ports = port.split(":"); - System.out.println("Forwarding " + ns + "/" + name + " " + ports[0] + "->" + ports[1]); - forward.ports(Integer.parseInt(ports[0]), Integer.parseInt(ports[1])); - } - forward.execute(); - System.exit(0); - case "log": - name = args[1]; - Streams.copy( - log() - .apiClient(client) - .name(name) - .namespace(ns) - .container(cli.getOptionValue("c", "")) - .execute(), - System.out); - System.exit(0); - case "scale": - kind = args[1]; - name = args[2]; - if (!cli.hasOption("r")) { - System.err.println("--replicas is required"); - System.exit(-3); - } - int replicas = Integer.parseInt(cli.getOptionValue("r")); - scale(getClassForKind(kind)) - .apiClient(client) - .namespace(ns) - .name(name) - .replicas(replicas) - .execute(); - System.out.println("Deployment scaled."); - System.exit(0); - case "version": - System.out.println(version().apiClient(client)); - System.exit(0); - case "label": - kind = args[1]; - name = args[2]; - String labelKey = args[3]; - String labelValue = args[4]; - Class clazz = getClassForKind(kind); - if (clazz == null) { - System.err.println("Unknown kind: " + kind); - System.exit(-2); - } - label(clazz).apiClient(client).namespace(ns).name(name).addLabel(labelKey, labelValue); - System.exit(0); - case "exec": - name = args[1]; - String[] command = Arrays.copyOfRange(args, 2, args.length); - KubectlExec e = - exec() - .apiClient(client) - .namespace(ns) - .name(name) - .command(command) - .container(cli.getOptionValue("c", "")); - System.exit(e.execute()); - case "api-resources": - apiResources().apiClient(client).execute().stream() - .forEach( - r -> - System.out.printf( - "%s\t\t%s\t\t%s\t\t%s\n", - r.getResourcePlural(), r.getGroup(), r.getKind(), r.getNamespaced())); - System.exit(0); - default: - System.out.println("Unknown verb: " + verb); - System.exit(-1); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java deleted file mode 100644 index 0e48689602..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.leaderelection.LeaderElectionConfig; -import io.kubernetes.client.extended.leaderelection.LeaderElector; -import io.kubernetes.client.extended.leaderelection.resourcelock.EndpointsLock; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import java.time.Duration; -import java.util.UUID; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.LeaderElectionExample" - * - *

From inside $REPO_DIR/examples - */ -public class LeaderElectionExample { - public static void main(String[] args) throws Exception { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // New - String appNamespace = "default"; - String appName = "leader-election-foobar"; - String lockHolderIdentityName = UUID.randomUUID().toString(); // Anything unique - EndpointsLock lock = new EndpointsLock(appNamespace, appName, lockHolderIdentityName); - - LeaderElectionConfig leaderElectionConfig = - new LeaderElectionConfig( - lock, Duration.ofMillis(10000), Duration.ofMillis(8000), Duration.ofMillis(2000)); - try (LeaderElector leaderElector = new LeaderElector(leaderElectionConfig)) { - leaderElector.run( - () -> { - System.out.println("Do something when getting leadership."); - }, - () -> { - System.out.println("Do something when losing leadership."); - }); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/LogsExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/LogsExample.java deleted file mode 100644 index 6305116b5f..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/LogsExample.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.PodLogs; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import java.io.InputStream; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.LogsExample" - * - *

From inside $REPO_DIR/examples - */ -public class LogsExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - CoreV1Api coreApi = new CoreV1Api(client); - - PodLogs logs = new PodLogs(); - V1Pod pod = - coreApi - .listNamespacedPod( - "default", "false", null, null, null, null, null, null, null, null, null, null) - .getItems() - .get(0); - - InputStream is = logs.streamNamespacedPodLog(pod); - Streams.copy(is, System.out); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/MetricsExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/MetricsExample.java deleted file mode 100644 index 0d8c10e30b..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/MetricsExample.java +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Metrics; -import io.kubernetes.client.custom.ContainerMetrics; -import io.kubernetes.client.custom.NodeMetrics; -import io.kubernetes.client.custom.NodeMetricsList; -import io.kubernetes.client.custom.PodMetrics; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.MetricsExample" - * - *

From inside $REPO_DIR/examples - */ -public class MetricsExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Metrics metrics = new Metrics(client); - NodeMetricsList list = metrics.getNodeMetrics(); - for (NodeMetrics item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - System.out.println("------------------------------"); - for (String key : item.getUsage().keySet()) { - System.out.println("\t" + key); - System.out.println("\t" + item.getUsage().get(key)); - } - System.out.println(); - } - - for (PodMetrics item : metrics.getPodMetrics("default").getItems()) { - System.out.println(item.getMetadata().getName()); - System.out.println("------------------------------"); - if (item.getContainers() == null) { - continue; - } - for (ContainerMetrics container : item.getContainers()) { - System.out.println(container.getName()); - System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); - for (String key : container.getUsage().keySet()) { - System.out.println("\t" + key); - System.out.println("\t" + container.getUsage().get(key)); - } - System.out.println(); - } - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PagerExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PagerExample.java deleted file mode 100644 index 3153775ab7..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PagerExample.java +++ /dev/null @@ -1,73 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.pager.Pager; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.openapi.models.V1NamespaceList; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PagerExample" - * - *

From inside $REPO_DIR/examples - */ -public class PagerExample { - public static void main(String[] args) throws IOException { - - ApiClient client = Config.defaultClient(); - OkHttpClient httpClient = - client.getHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build(); - client.setHttpClient(httpClient); - Configuration.setDefaultApiClient(client); - CoreV1Api api = new CoreV1Api(); - int i = 0; - Pager pager = - new Pager( - (Pager.PagerParams param) -> { - try { - return api.listNamespaceCall( - null, - null, - param.getContinueToken(), - null, - null, - param.getLimit(), - null, - null, - null, - 1, - null, - null); - } catch (Exception e) { - throw new RuntimeException(e); - } - }, - client, - 10, - V1NamespaceList.class); - for (V1Namespace namespace : pager) { - System.out.println(namespace.getMetadata().getName()); - } - System.out.println("------------------"); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ParseExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ParseExample.java deleted file mode 100644 index 92866a46fe..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ParseExample.java +++ /dev/null @@ -1,64 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.Config; -import java.io.FileReader; -import java.io.IOException; -import java.io.StringReader; - -/** - * A simple example of how to parse a Kubernetes object. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ParseExample" - * - *

From inside $REPO_DIR/examples - */ -public class ParseExample { - public static void main(String[] args) throws IOException, ApiException, ClassNotFoundException { - if (args.length < 2) { - System.err.println("Usage: ParseExample "); - System.exit(1); - } - ApiClient client = Config.defaultClient(); - FileReader json = new FileReader(args[0]); - Object obj = - client - .getJSON() - .getGson() - .fromJson(json, Class.forName("io.kubernetes.client.models." + args[1])); - - String output = client.getJSON().getGson().toJson(obj); - - // Test round tripping... - Object obj2 = - client - .getJSON() - .getGson() - .fromJson( - new StringReader(output), Class.forName("io.kubernetes.client.models." + args[1])); - - String output2 = client.getJSON().getGson().toJson(obj2); - - // Validate round trip - if (!output.equals(output2)) { - System.err.println("Error, expected:\n" + output + "\nto equal\n" + output2); - System.exit(2); - } - - System.out.println(output); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PatchExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PatchExample.java deleted file mode 100644 index 7eed3360d3..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PatchExample.java +++ /dev/null @@ -1,130 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.PatchUtils; -import java.io.IOException; - -/** - * A simple Example of how to use the Java API.
- * This example demonstrates patching of deployment using Json Patch and Strategic Merge Patch.
- * For generating Json Patches, refer http://jsonpatch.com. For - * generating Strategic Merge Patches, refer strategic-merge-patch.md. - * - *

    - *
  • Creates deployment hello-node with terminationGracePeriodSeconds value as 30 and a - * finalizer. - *
  • Json-Patches deployment hello-node with terminationGracePeriodSeconds value as 27. - *
  • Strategic-Merge-Patches deployment hello-node removing the finalizer. - *
- * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PatchExample" - * - *

From inside $REPO_DIR/examples - */ -public class PatchExample { - static String jsonPatchStr = - "[{\"op\":\"replace\",\"path\":\"/spec/template/spec/terminationGracePeriodSeconds\",\"value\":27}]"; - static String strategicMergePatchStr = - "{\"metadata\":{\"$deleteFromPrimitiveList/finalizers\":[\"example.com/test\"]}}"; - static String jsonDeploymentStr = - "{\"kind\":\"Deployment\",\"apiVersion\":\"apps/v1\",\"metadata\":{\"name\":\"hello-node\",\"finalizers\":[\"example.com/test\"],\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"run\":\"hello-node\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"terminationGracePeriodSeconds\":30,\"containers\":[{\"name\":\"hello-node\",\"image\":\"hello-node:v1\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"resources\":{}}]}},\"strategy\":{}},\"status\":{}}"; - static String applyYamlStr = - "{\"kind\":\"Deployment\",\"apiVersion\":\"apps/v1\",\"metadata\":{\"name\":\"hello-node\",\"finalizers\":[\"example.com/test\"],\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"run\":\"hello-node\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"terminationGracePeriodSeconds\":30,\"containers\":[{\"name\":\"hello-node\",\"image\":\"hello-node:v2\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"resources\":{}}]}},\"strategy\":{}},\"status\":{}}"; - - public static void main(String[] args) throws IOException { - try { - AppsV1Api api = new AppsV1Api(ClientBuilder.standard().build()); - V1Deployment body = - Configuration.getDefaultApiClient() - .getJSON() - .deserialize(jsonDeploymentStr, V1Deployment.class); - - // create a deployment - V1Deployment deploy1 = - api.createNamespacedDeployment("default", body, null, null, null, null); - System.out.println("original deployment" + deploy1); - - // json-patch a deployment - V1Deployment deploy2 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeploymentCall( - "hello-node", - "default", - new V1Patch(jsonPatchStr), - null, - null, - null, - null, // field-manager is optional - null, - null), - V1Patch.PATCH_FORMAT_JSON_PATCH, - api.getApiClient()); - System.out.println("json-patched deployment" + deploy2); - - // strategic-merge-patch a deployment - V1Deployment deploy3 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeploymentCall( - "hello-node", - "default", - new V1Patch(strategicMergePatchStr), - null, - null, - null, // field-manager is optional - null, - null, - null), - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - api.getApiClient()); - System.out.println("strategic-merge-patched deployment" + deploy3); - - // apply-yaml a deployment, server side apply is available by default after kubernetes v1.16 - // or opt-in by turning on the feature gate for v1.14 or v1.15. - // https://kubernetes.io/docs/reference/using-api/api-concepts/#server-side-apply - V1Deployment deploy4 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeploymentCall( - "hello-node", - "default", - new V1Patch(applyYamlStr), - null, - null, - "example-field-manager", // field-manager is required for server-side apply - null, - true, - null), - V1Patch.PATCH_FORMAT_APPLY_YAML, - api.getApiClient()); - System.out.println("application/apply-patch+yaml deployment" + deploy4); - - } catch (ApiException e) { - System.out.println(e.getResponseBody()); - e.printStackTrace(); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PortForwardExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PortForwardExample.java deleted file mode 100644 index cbe064db31..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PortForwardExample.java +++ /dev/null @@ -1,87 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.PortForward; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import java.net.ServerSocket; -import java.net.Socket; -import java.util.ArrayList; -import java.util.List; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PortForwardExample" from inside - * $REPO_DIR/examples - * - *

Then: curl localhost:8080 from a different terminal (but be quick about it, the socket times - * out pretty fast...) - */ -public class PortForwardExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - PortForward forward = new PortForward(); - List ports = new ArrayList<>(); - int localPort = 8080; - int targetPort = 8080; - ports.add(targetPort); - final PortForward.PortForwardResult result = - forward.forward("default", "camera-viz-7949dbf7c6-lpxkd", ports); - System.out.println("Forwarding!"); - ServerSocket ss = new ServerSocket(localPort); - - final Socket s = ss.accept(); - System.out.println("Connected!"); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(result.getInputStream(targetPort), s.getOutputStream()); - } catch (IOException ex) { - ex.printStackTrace(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(s.getInputStream(), result.getOutboundStream(targetPort)); - } catch (IOException ex) { - ex.printStackTrace(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - Thread.sleep(10 * 1000); - - System.exit(0); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PromOpExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PromOpExample.java deleted file mode 100644 index 65f38b8ce4..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PromOpExample.java +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import com.coreos.monitoring.models.V1Prometheus; -import com.coreos.monitoring.models.V1PrometheusList; -import com.coreos.monitoring.models.V1PrometheusSpec; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.io.IOException; - -public class PromOpExample { - public static void main(String[] args) throws IOException, ApiException { - GenericKubernetesApi prometheusApi = - new GenericKubernetesApi<>( - V1Prometheus.class, - V1PrometheusList.class, - "monitoring.coreos.com", - "v1", - "prometheuses", - ClientBuilder.defaultClient()); - prometheusApi - .create( - new V1Prometheus() - .metadata(new V1ObjectMeta().namespace("default").name("my-prometheus")) - .kind("Prometheus") - .apiVersion("monitoring.coreos.com/v1") - .spec(new V1PrometheusSpec())) - .throwsApiException(); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PrometheusExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PrometheusExample.java deleted file mode 100644 index 6fba8a4e75..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/PrometheusExample.java +++ /dev/null @@ -1,66 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.monitoring.Monitoring; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API with Prometheus metrics - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PrometheusExample" - * - *

From inside $REPO_DIR/examples - */ -public class PrometheusExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // Install an HTTP Interceptor that adds metrics - Monitoring.installMetrics(client); - - // Install a simple HTTP server to serve prometheus metrics. If you already are serving - // metrics elsewhere, this is unnecessary. - Monitoring.startMetricsServer("localhost", 8080); - - CoreV1Api api = new CoreV1Api(); - - while (true) { - // A request that should return 200 - V1PodList list = - api.listPodForAllNamespaces( null, null, null, null, null, null, null, null, null, null, null); - // A request that should return 404 - try { - V1Pod pod = api.readNamespacedPod("foo", "bar", null); - } catch (ApiException ex) { - if (ex.getCode() != 404) { - throw ex; - } - } - try { - Thread.sleep(10000); - } catch (InterruptedException ex) { - ex.printStackTrace(); - } - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ProtoExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ProtoExample.java deleted file mode 100644 index e4e05a2aa1..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/ProtoExample.java +++ /dev/null @@ -1,69 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.ProtoClient; -import io.kubernetes.client.ProtoClient.ObjectOrStatus; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.proto.Meta.ObjectMeta; -import io.kubernetes.client.proto.V1.Namespace; -import io.kubernetes.client.proto.V1.NamespaceSpec; -import io.kubernetes.client.proto.V1.Pod; -import io.kubernetes.client.proto.V1.PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ProtoExample" - * - *

From inside $REPO_DIR/examples - */ -public class ProtoExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - ProtoClient pc = new ProtoClient(client); - ObjectOrStatus list = pc.list(PodList.newBuilder(), "/api/v1/namespaces/default/pods"); - - if (list.object.getItemsCount() > 0) { - Pod p = list.object.getItems(0); - System.out.println(p); - } - - Namespace namespace = - Namespace.newBuilder().setMetadata(ObjectMeta.newBuilder().setName("test").build()).build(); - - ObjectOrStatus ns = pc.create(namespace, "/api/v1/namespaces", "v1", "Namespace"); - System.out.println(ns); - if (ns.object != null) { - namespace = - ns.object - .toBuilder() - .setSpec(NamespaceSpec.newBuilder().addFinalizers("test").build()) - .build(); - // This is how you would update an object, but you can't actually - // update namespaces, so this returns a 405 - ns = pc.update(namespace, "/api/v1/namespaces/test", "v1", "Namespace"); - System.out.println(ns.status); - } - - ns = pc.delete(Namespace.newBuilder(), "/api/v1/namespaces/test"); - System.out.println(ns); - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java deleted file mode 100644 index f6494a836e..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java +++ /dev/null @@ -1,147 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.controller.Controller; -import io.kubernetes.client.extended.controller.builder.ControllerBuilder; -import io.kubernetes.client.extended.controller.builder.DefaultControllerBuilder; -import io.kubernetes.client.extended.controller.reconciler.Reconciler; -import io.kubernetes.client.extended.controller.reconciler.Request; -import io.kubernetes.client.extended.controller.reconciler.Result; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Endpoints; -import io.kubernetes.client.openapi.models.V1EndpointsList; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.time.Duration; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.CommandLineRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.stereotype.Component; - -@SpringBootApplication -public class SpringControllerExample { - - public static void main(String[] args) { - SpringApplication.run(SpringControllerExample.class, args); - } - - @Configuration - public static class AppConfig { - - @Bean - public CommandLineRunner commandLineRunner( - SharedInformerFactory sharedInformerFactory, Controller nodePrintingController) { - return args -> { - System.out.println("starting informers.."); - sharedInformerFactory.startAllRegisteredInformers(); - - System.out.println("running controller.."); - nodePrintingController.run(); - }; - } - - @Bean - public Controller nodePrintingController( - SharedInformerFactory sharedInformerFactory, NodePrintingReconciler reconciler) { - DefaultControllerBuilder builder = ControllerBuilder.defaultBuilder(sharedInformerFactory); - builder = - builder.watch( - (q) -> { - return ControllerBuilder.controllerWatchBuilder(V1Node.class, q) - .withResyncPeriod(Duration.ofMinutes(1)) - .build(); - }); - builder.withWorkerCount(2); - builder.withReadyFunc(reconciler::informerReady); - return builder.withReconciler(reconciler).withName("nodePrintingController").build(); - } - - @Bean - public SharedIndexInformer endpointsInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>( - V1Endpoints.class, V1EndpointsList.class, "", "v1", "endpoints", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Endpoints.class, 0); - } - - @Bean - public SharedIndexInformer nodeInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>(V1Node.class, V1NodeList.class, "", "v1", "nodes", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Node.class, 60 * 1000L); - } - - @Bean - public SharedIndexInformer podInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Pod.class, 0); - } - } - - @Component - public static class NodePrintingReconciler implements Reconciler { - - @Value("${namespace}") - private String namespace; - - private SharedInformer nodeInformer; - - private SharedInformer podInformer; - - private Lister nodeLister; - - private Lister podLister; - - public NodePrintingReconciler( - SharedIndexInformer nodeInformer, SharedIndexInformer podInformer) { - this.nodeInformer = nodeInformer; - this.podInformer = podInformer; - this.nodeLister = new Lister<>(nodeInformer.getIndexer(), namespace); - this.podLister = new Lister<>(podInformer.getIndexer(), namespace); - } - - // *OPTIONAL* - // If you want to hold the controller from running util some condition.. - public boolean informerReady() { - return podInformer.hasSynced() && nodeInformer.hasSynced(); - } - - @Override - public Result reconcile(Request request) { - V1Node node = nodeLister.get(request.getName()); - - System.out.println("get all pods in namespace " + namespace); - podLister.namespace(namespace).list().stream() - .map(pod -> pod.getMetadata().getName()) - .forEach(System.out::println); - - System.out.println("triggered reconciling " + node.getMetadata().getName()); - return new Result(false); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java deleted file mode 100644 index bafe11e421..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.network.EndpointsLoadBalancer; -import io.kubernetes.client.extended.network.LoadBalancer; -import io.kubernetes.client.extended.network.RoundRobinLoadBalanceStrategy; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.models.V1Endpoints; -import io.kubernetes.client.spring.extended.network.endpoints.InformerEndpointsGetter; -import org.springframework.boot.CommandLineRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -@SpringBootApplication -public class SpringLoadBalancerExample { - - public static void main(String[] args) { - SpringApplication.run(SpringLoadBalancerExample.class, args); - } - - @Configuration - public static class AppConfig { - - @Bean - public CommandLineRunner loadBalancerCommandLineRunner( - SharedInformerFactory sharedInformerFactory, MyService myService) { - return args -> { - System.out.println("starting informers.."); - sharedInformerFactory.startAllRegisteredInformers(); - - System.out.println("routing default/kubernetes:"); - System.out.println(myService.defaultKubernetesLoadBalancer.getTargetIP()); - }; - } - - @Bean - public MyService myService(SharedIndexInformer lister) { - return new MyService(new Lister<>(lister.getIndexer())); - } - } - - public static class MyService { - - private LoadBalancer defaultKubernetesLoadBalancer; - - public MyService(Lister lister) { - InformerEndpointsGetter getter = new InformerEndpointsGetter(lister); - RoundRobinLoadBalanceStrategy strategy = new RoundRobinLoadBalanceStrategy(); - defaultKubernetesLoadBalancer = - new EndpointsLoadBalancer(() -> getter.get("default", "kubernetes"), strategy); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/WatchExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/WatchExample.java deleted file mode 100644 index 786f84f7bd..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/WatchExample.java +++ /dev/null @@ -1,54 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import com.google.gson.reflect.TypeToken; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Watch; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** A simple example of how to use Watch API to watch changes in Namespace list. */ -public class WatchExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - // infinite timeout - OkHttpClient httpClient = - client.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - client.setHttpClient(httpClient); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - - Watch watch = - Watch.createWatch( - client, - api.listNamespaceCall( - null, null, null, null, null, null, null, null, null, null, Boolean.TRUE, null), - new TypeToken>() {}.getType()); - - try { - for (Watch.Response item : watch) { - System.out.printf("%s : %s%n", item.type, item.object.getMetadata().getName()); - } - } finally { - watch.close(); - } - } -} diff --git a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java b/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java deleted file mode 100644 index e1f54dcd07..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.WebSockets; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; -import okhttp3.WebSocket; - -/** - * This is a pretty low level, most people won't need to use WebSockets directly. - * - *

If you do need to run it, you can run: mvn exec:java \ - * -Dexec.mainClass=io.kubernetes.client.examples.WebSocketsExample \ - * -Dexec.args=/api/v1/namespaces/default/pods//attach?stdout=true - * - *

Note that you'd think 'watch' calls were WebSockets, but you'd be wrong, they're straight HTTP - * GET calls. - */ -public class WebSocketsExample { - public static void main(String... args) throws ApiException, IOException { - final ApiClient client = Config.defaultClient(); - WebSockets.stream( - args[0], - "GET", - client, - new WebSockets.SocketListener() { - private volatile WebSocket socket; - - @Override - public void open(String protocol, WebSocket socket) { - this.socket = socket; - } - - @Override - public void close() {} - - @Override - public void bytesMessage(InputStream is) {} - - @Override - public void failure(Throwable t) { - t.printStackTrace(); - } - - @Override - public void textMessage(Reader in) { - try { - BufferedReader reader = new BufferedReader(in); - for (String line = reader.readLine(); line != null; line = reader.readLine()) { - System.out.println(line); - } - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - } -} 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 deleted file mode 100644 index b3f0dc6626..0000000000 --- a/examples/examples-release-19/src/main/java/io/kubernetes/client/examples/YamlExample.java +++ /dev/null @@ -1,109 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.IntOrString; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodBuilder; -import io.kubernetes.client.openapi.models.V1Service; -import io.kubernetes.client.openapi.models.V1ServiceBuilder; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Yaml; -import java.io.File; -import java.io.IOException; -import java.util.HashMap; - -/** - * A simple example of how to parse a Kubernetes object. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.YamlExample" - * - *

From inside $REPO_DIR/examples - */ -public class YamlExample { - public static void main(String[] args) throws IOException, ApiException, ClassNotFoundException { - V1Pod pod = - new V1PodBuilder() - .withNewMetadata() - .withName("apod") - .endMetadata() - .withNewSpec() - .addNewContainer() - .withName("www") - .withImage("nginx") - .withNewResources() - .withLimits(new HashMap<>()) - .endResources() - .endContainer() - .endSpec() - .build(); - System.out.println(Yaml.dump(pod)); - - V1Service svc = - new V1ServiceBuilder() - .withNewMetadata() - .withName("aservice") - .endMetadata() - .withNewSpec() - .withSessionAffinity("ClientIP") - .withType("NodePort") - .addNewPort() - .withProtocol("TCP") - .withName("client") - .withPort(8008) - .withNodePort(8080) - .withTargetPort(new IntOrString(8080)) - .endPort() - .endSpec() - .build(); - System.out.println(Yaml.dump(svc)); - - // Read yaml configuration file, and deploy it - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // See issue #474. Not needed at most cases, but it is needed if you are using war - // packging or running this on JUnit. - Yaml.addModelMap("v1", "Service", V1Service.class); - - // Example yaml file can be found in $REPO_DIR/test-svc.yaml - File file = new File("test-svc.yaml"); - V1Service yamlSvc = (V1Service) Yaml.load(file); - - // Deployment and StatefulSet is defined in apps/v1, so you should use AppsV1Api instead of - // CoreV1API - CoreV1Api api = new CoreV1Api(); - V1Service createResult = - api.createNamespacedService("default", yamlSvc, null, null, null, null); - - System.out.println(createResult); - - V1Service deleteResult = - api.deleteNamespacedService( - yamlSvc.getMetadata().getName(), - "default", - null, - null, - null, - null, - null, - new V1DeleteOptions()); - System.out.println(deleteResult); - } -} diff --git a/examples/examples-release-19/src/main/resources/application.properties b/examples/examples-release-19/src/main/resources/application.properties deleted file mode 100644 index dc886e5f48..0000000000 --- a/examples/examples-release-19/src/main/resources/application.properties +++ /dev/null @@ -1,2 +0,0 @@ -namespace=airflow -management.endpoints.web.exposure.include=prometheus \ No newline at end of file diff --git a/examples/examples-release-19/src/test/java/io/kubernetes/client/examples/ExampleTest.java b/examples/examples-release-19/src/test/java/io/kubernetes/client/examples/ExampleTest.java deleted file mode 100644 index 5ccccda5af..0000000000 --- a/examples/examples-release-19/src/test/java/io/kubernetes/client/examples/ExampleTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; -import static com.github.tomakehurst.wiremock.client.WireMock.get; -import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo; -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.github.tomakehurst.wiremock.core.WireMockConfiguration; -import com.github.tomakehurst.wiremock.junit5.WireMockExtension; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.RegisterExtension; - -class ExampleTest { - private static final int PORT = 8089; - - @RegisterExtension - static WireMockExtension apiServer = - WireMockExtension.newInstance().options(WireMockConfiguration.options().port(PORT)).build(); - - @Test - void exactUrlOnly() throws ApiException { - ApiClient client = new ApiClient(); - client.setBasePath("http://localhost:" + PORT); - Configuration.setDefaultApiClient(client); - - V1Namespace ns1 = new V1Namespace().metadata(new V1ObjectMeta().name("name")); - - apiServer.stubFor( - get(urlEqualTo("/api/v1/namespaces/name")) - .willReturn( - aResponse() - .withHeader("Content-Type", "application/json") - .withBody(client.getJSON().serialize(ns1)))); - - CoreV1Api api = new CoreV1Api(); - V1Namespace ns2 = api.readNamespace("name", null); - assertEquals(ns1, ns2); - } -} diff --git a/examples/examples-release-19/test-svc.yaml b/examples/examples-release-19/test-svc.yaml deleted file mode 100644 index f225bea76f..0000000000 --- a/examples/examples-release-19/test-svc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: test-service -spec: - type: ClusterIP - selector: - app: test-service - ports: - - name: port-of-container - port: 8080 \ No newline at end of file diff --git a/examples/examples-release-19/test.yaml b/examples/examples-release-19/test.yaml deleted file mode 100644 index 0b46e57003..0000000000 --- a/examples/examples-release-19/test.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: ReplicationController -metadata: - name: test -spec: - replicas: 1 - template: - metadata: - labels: - app: test - spec: - containers: - - name: test - image: test/examples:1.0 - command: ["/bin/sh","-c"] - args: ["java -jar /examples.jar","while :; do sleep 1; done"] diff --git a/examples/examples-release-20/Dockerfile b/examples/examples-release-20/Dockerfile deleted file mode 100644 index ac90eb1d67..0000000000 --- a/examples/examples-release-20/Dockerfile +++ /dev/null @@ -1,7 +0,0 @@ -FROM openjdk:8-jre - -COPY target/client-java-examples-*-SNAPSHOT-jar-with-dependencies.jar /examples.jar - -CMD ["java", "-jar", "/examples.jar"] - - diff --git a/examples/examples-release-20/README.md b/examples/examples-release-20/README.md deleted file mode 100644 index 80c34ea272..0000000000 --- a/examples/examples-release-20/README.md +++ /dev/null @@ -1,13 +0,0 @@ -# Running examples - -```sh -export REPO_ROOT=/path/to/client-java/repo - -cd ${REPO_ROOT}/ -mvn install - -cd ${REPO_ROOT}/examples/examples-15 -mvn compile -mvn exec:java -Dexec.mainClass="io.kubernetes.client.examples.Example" -``` - diff --git a/examples/examples-release-20/createPod.sh b/examples/examples-release-20/createPod.sh deleted file mode 100755 index 18a9841317..0000000000 --- a/examples/examples-release-20/createPod.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash - -# creates a pod and runs -# Example.java(list pods for all namespaces) on starting of pod - -# Exit on any error. -set -e - -if ! which minikube > /dev/null; then - echo "This script requires minikube installed." - exit 100 -fi - -dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" - -export REPO_ROOT=${dir}/.. - -cd ${REPO_ROOT} -mvn install - -cd ${REPO_ROOT}/examples -mvn package - -eval $(minikube docker-env) -docker build -t test/examples:1.0 . -kubectl apply -f test.yaml diff --git a/examples/examples-release-20/pom.xml b/examples/examples-release-20/pom.xml deleted file mode 100644 index 221d086707..0000000000 --- a/examples/examples-release-20/pom.xml +++ /dev/null @@ -1,129 +0,0 @@ - - 4.0.0 - - client-java-examples-release-20 - client-java-examples-release-20 - io.kubernetes - 20.0.0 - - - - ch.qos.logback - logback-classic - 1.5.9 - runtime - - - io.prometheus - simpleclient - 0.15.0 - - - io.prometheus - simpleclient_httpserver - 0.15.0 - - - io.kubernetes - client-java-api - 20.0.0 - - - io.kubernetes - client-java - 20.0.0 - - - io.kubernetes - client-java-extended - 20.0.0 - - - io.kubernetes - client-java-spring-integration - 20.0.0 - - - io.kubernetes - client-java-proto - 20.0.0 - - - commons-cli - commons-cli - 1.9.0 - - - io.kubernetes - client-java-cert-manager-models - 10.0.1 - - - io.kubernetes - client-java-prometheus-operator-models - 10.0.1 - - - - org.junit.jupiter - junit-jupiter - ${junit-jupiter.version} - test - - - org.wiremock - wiremock - 3.9.1 - test - - - - org.springframework.boot - spring-boot-starter-web - ${spring.boot.version} - - - org.springframework.boot - spring-boot-starter-actuator - ${spring.boot.version} - - - com.amazonaws - aws-java-sdk-sts - 1.12.773 - - - - - - - - com.diffplug.spotless - spotless-maven-plugin - 2.43.0 - - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - true - - - - org.apache.maven.plugins - maven-deploy-plugin - - true - - - - - - 5.11.2 - 3.3.4 - - \ No newline at end of file diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/AttachExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/AttachExample.java deleted file mode 100644 index 7f753b8d8f..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/AttachExample.java +++ /dev/null @@ -1,77 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Attach; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStreamReader; -import java.io.OutputStream; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.AttachExample" - * - *

From inside $REPO_DIR/examples - */ -public class AttachExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Attach attach = new Attach(); - final Attach.AttachResult result = attach.attach("default", "nginx-4217019353-k5sn9", true); - - new Thread( - new Runnable() { - public void run() { - BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); - OutputStream output = result.getStandardInputStream(); - try { - while (true) { - String line = in.readLine(); - output.write(line.getBytes()); - output.write('\n'); - output.flush(); - } - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(result.getStandardOutputStream(), System.out); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - Thread.sleep(10 * 1000); - result.close(); - System.exit(0); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/CertManagerExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/CertManagerExample.java deleted file mode 100644 index b616a18ee9..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/CertManagerExample.java +++ /dev/null @@ -1,45 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.cert.manager.models.V1alpha2IssuerSpecSelfSigned; -import io.cert.manager.models.V1beta1Issuer; -import io.cert.manager.models.V1beta1IssuerList; -import io.cert.manager.models.V1beta1IssuerSpec; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.io.IOException; - -/** - * This sample creates a self signed issuer "self-signed-issuer" in default namespace on a - * Kubernetes cluster where cert-manager is installed - */ -public class CertManagerExample { - public static void main(String[] args) throws IOException { - GenericKubernetesApi issuerApi = - new GenericKubernetesApi<>( - V1beta1Issuer.class, - V1beta1IssuerList.class, - "cert-manager.io", - "v1beta1", - "issuers", - ClientBuilder.defaultClient()); - issuerApi.create( - new V1beta1Issuer() - .metadata(new V1ObjectMeta().namespace("default").name("self-signed-issuer")) - .kind("Issuer") - .apiVersion("cert-manager.io/v1beta1") - .spec(new V1beta1IssuerSpec().selfSigned(new V1alpha2IssuerSpecSelfSigned()))); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ControllerExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ControllerExample.java deleted file mode 100644 index f79e990107..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ControllerExample.java +++ /dev/null @@ -1,156 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.controller.Controller; -import io.kubernetes.client.extended.controller.ControllerManager; -import io.kubernetes.client.extended.controller.LeaderElectingController; -import io.kubernetes.client.extended.controller.builder.ControllerBuilder; -import io.kubernetes.client.extended.controller.reconciler.Reconciler; -import io.kubernetes.client.extended.controller.reconciler.Request; -import io.kubernetes.client.extended.controller.reconciler.Result; -import io.kubernetes.client.extended.event.EventType; -import io.kubernetes.client.extended.event.legacy.EventBroadcaster; -import io.kubernetes.client.extended.event.legacy.EventRecorder; -import io.kubernetes.client.extended.event.legacy.LegacyEventBroadcaster; -import io.kubernetes.client.extended.leaderelection.LeaderElectionConfig; -import io.kubernetes.client.extended.leaderelection.LeaderElector; -import io.kubernetes.client.extended.leaderelection.resourcelock.EndpointsLock; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1EventSource; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.util.CallGeneratorParams; -import java.io.IOException; -import java.time.Duration; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -public class ControllerExample { - public static void main(String[] args) throws IOException { - - CoreV1Api coreV1Api = new CoreV1Api(); - ApiClient apiClient = coreV1Api.getApiClient(); - OkHttpClient httpClient = - apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - apiClient.setHttpClient(httpClient); - - // instantiating an informer-factory, and there should be only one informer-factory - // globally. - SharedInformerFactory informerFactory = new SharedInformerFactory(); - // registering node-informer into the informer-factory. - SharedIndexInformer nodeInformer = - informerFactory.sharedIndexInformerFor( - (CallGeneratorParams params) -> { - return coreV1Api.listNode() - .resourceVersion(params.resourceVersion) - .timeoutSeconds(params.timeoutSeconds) - .watch(params.watch) - .buildCall(null); - }, - V1Node.class, - V1NodeList.class); - informerFactory.startAllRegisteredInformers(); - - EventBroadcaster eventBroadcaster = new LegacyEventBroadcaster(coreV1Api); - - // nodeReconciler prints node information on events - NodePrintingReconciler nodeReconciler = - new NodePrintingReconciler( - nodeInformer, - eventBroadcaster.newRecorder( - new V1EventSource().host("localhost").component("node-printer"))); - - // Use builder library to construct a default controller. - Controller controller = - ControllerBuilder.defaultBuilder(informerFactory) - .watch( - (workQueue) -> - ControllerBuilder.controllerWatchBuilder(V1Node.class, workQueue) - .withWorkQueueKeyFunc( - (V1Node node) -> - new Request(node.getMetadata().getName())) // optional, default to - .withOnAddFilter( - (V1Node createdNode) -> - createdNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onAdd filter - .withOnUpdateFilter( - (V1Node oldNode, V1Node newNode) -> - newNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onUpdate filter - .withOnDeleteFilter( - (V1Node deletedNode, Boolean stateUnknown) -> - deletedNode - .getMetadata() - .getName() - .startsWith("docker-")) // optional, set onDelete filter - .build()) - .withReconciler(nodeReconciler) // required, set the actual reconciler - .withName("node-printing-controller") // optional, set name for controller - .withWorkerCount(4) // optional, set worker thread count - .withReadyFunc(nodeInformer::hasSynced) // optional, only starts controller when the - // cache has synced up - .build(); - - // Use builder library to manage one or multiple controllers. - ControllerManager controllerManager = - ControllerBuilder.controllerManagerBuilder(informerFactory) - .addController(controller) - .build(); - - LeaderElectingController leaderElectingController = - new LeaderElectingController( - new LeaderElector( - new LeaderElectionConfig( - new EndpointsLock("kube-system", "leader-election", "foo"), - Duration.ofMillis(10000), - Duration.ofMillis(8000), - Duration.ofMillis(5000))), - controllerManager); - - leaderElectingController.run(); - } - - static class NodePrintingReconciler implements Reconciler { - - private Lister nodeLister; - private EventRecorder eventRecorder; - - public NodePrintingReconciler( - SharedIndexInformer nodeInformer, EventRecorder recorder) { - this.nodeLister = new Lister<>(nodeInformer.getIndexer()); - this.eventRecorder = recorder; - } - - @Override - public Result reconcile(Request request) { - V1Node node = this.nodeLister.get(request.getName()); - System.out.println("triggered reconciling " + node.getMetadata().getName()); - this.eventRecorder.event( - node, - EventType.Normal, - "Print Node", - "Successfully printed %s", - node.getMetadata().getName()); - return new Result(false); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/CopyExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/CopyExample.java deleted file mode 100644 index bbb6575676..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/CopyExample.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Copy; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import io.kubernetes.client.util.exception.CopyNotSupportedException; -import java.io.IOException; -import java.io.InputStream; -import java.nio.file.Paths; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.CopyExample" - * - *

From inside $REPO_DIR/examples - */ -public class CopyExample { - public static void main(String[] args) - throws IOException, ApiException, InterruptedException, CopyNotSupportedException { - String podName = "kube-addon-manager-minikube"; - String namespace = "kube-system"; - - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Copy copy = new Copy(); - InputStream dataStream = copy.copyFileFromPod(namespace, podName, "/etc/motd"); - Streams.copy(dataStream, System.out); - - copy.copyDirectoryFromPod(namespace, podName, null, "/etc", Paths.get("/tmp/etc")); - - System.out.println("Done!"); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java deleted file mode 100644 index 9886e3b480..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/DeployRolloutRestartExample.java +++ /dev/null @@ -1,138 +0,0 @@ -/* -Copyright 2022 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1DeploymentBuilder; -import io.kubernetes.client.openapi.models.V1DeploymentSpec; -import io.kubernetes.client.openapi.models.V1LabelSelector; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.openapi.models.V1PodTemplateSpec; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.PatchUtils; -import io.kubernetes.client.util.wait.Wait; -import java.io.IOException; -import java.time.Duration; -import java.time.LocalDateTime; -import java.util.Collections; - -public class DeployRolloutRestartExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - AppsV1Api appsV1Api = new AppsV1Api(client); - - String deploymentName = "example-nginx"; - String imageName = "nginx:1.21.6"; - String namespace = "default"; - - // Create an example deployment - V1DeploymentBuilder deploymentBuilder = - new V1DeploymentBuilder() - .withApiVersion("apps/v1") - .withKind("Deployment") - .withMetadata(new V1ObjectMeta().name(deploymentName).namespace(namespace)) - .withSpec( - new V1DeploymentSpec() - .replicas(1) - .selector(new V1LabelSelector().putMatchLabelsItem("name", deploymentName)) - .template( - new V1PodTemplateSpec() - .metadata(new V1ObjectMeta().putLabelsItem("name", deploymentName)) - .spec( - new V1PodSpec() - .containers( - Collections.singletonList( - new V1Container() - .name(deploymentName) - .image(imageName)))))); - appsV1Api.createNamespacedDeployment( - namespace, deploymentBuilder.build()).execute(); - - // Wait until example deployment is ready - Wait.poll( - Duration.ofSeconds(3), - Duration.ofSeconds(60), - () -> { - try { - System.out.println("Waiting until example deployment is ready..."); - return appsV1Api - .readNamespacedDeployment(deploymentName, namespace) - .execute() - .getStatus() - .getReadyReplicas() - > 0; - } catch (ApiException e) { - e.printStackTrace(); - return false; - } - }); - System.out.println("Created example deployment!"); - - // Trigger a rollout restart of the example deployment - V1Deployment runningDeployment = - appsV1Api.readNamespacedDeployment(deploymentName, namespace).execute(); - - // Explicitly set "restartedAt" annotation with current date/time to trigger rollout when patch - // is applied - runningDeployment - .getSpec() - .getTemplate() - .getMetadata() - .putAnnotationsItem("kubectl.kubernetes.io/restartedAt", LocalDateTime.now().toString()); - try { - String deploymentJson = client.getJSON().serialize(runningDeployment); - - PatchUtils.patch( - V1Deployment.class, - () -> - appsV1Api.patchNamespacedDeployment( - deploymentName, - namespace, - new V1Patch(deploymentJson)) - .fieldManager("kubectl-rollout") - .buildCall(null), - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - client); - - // Wait until deployment has stabilized after rollout restart - Wait.poll( - Duration.ofSeconds(3), - Duration.ofSeconds(60), - () -> { - try { - System.out.println("Waiting until example deployment restarted successfully..."); - return appsV1Api - .readNamespacedDeployment(deploymentName, namespace) - .execute() - .getStatus() - .getReadyReplicas() - > 0; - } catch (ApiException e) { - e.printStackTrace(); - return false; - } - }); - System.out.println("Example deployment restarted successfully!"); - } catch (ApiException e) { - e.printStackTrace(); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java deleted file mode 100644 index b8cb04616d..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/DynamicClientExample.java +++ /dev/null @@ -1,42 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.dynamic.DynamicKubernetesApi; -import io.kubernetes.client.util.generic.dynamic.DynamicKubernetesObject; -import java.io.IOException; - -public class DynamicClientExample { - - public static void main(String[] args) throws IOException, ApiException { - - ApiClient apiClient = ClientBuilder.standard().build(); - - // retrieving the latest state of the default namespace - DynamicKubernetesApi dynamicApi = new DynamicKubernetesApi("", "v1", "namespaces", apiClient); - DynamicKubernetesObject defaultNamespace = - dynamicApi.get("default").throwsApiException().getObject(); - - // attaching a "foo=bar" label to the default namespace - defaultNamespace.setMetadata(defaultNamespace.getMetadata().putLabelsItem("foo", "bar")); - DynamicKubernetesObject updatedDefaultNamespace = - dynamicApi.update(defaultNamespace).throwsApiException().getObject(); - - System.out.println(updatedDefaultNamespace); - - apiClient.getHttpClient().connectionPool().evictAll(); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/EKSAuthenticationExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/EKSAuthenticationExample.java deleted file mode 100644 index e1e6610a2a..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/EKSAuthenticationExample.java +++ /dev/null @@ -1,53 +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.examples; - -import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; -import com.amazonaws.auth.STSAssumeRoleSessionCredentialsProvider; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.models.VersionInfo; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.credentials.EKSAuthentication; -import io.kubernetes.client.util.version.Version; - -import java.io.IOException; - -public class EKSAuthenticationExample { - public static void main(String[] args) throws IOException, ApiException { - - // Connecting an EKS cluster using {@link io.kubernetes.client.util.credentials.EKSAuthentication } - - // This role should have access to the EKS cluster. - String roleArn = "arn:aws:iam::123456789:role/TestRole"; - // Arbitrary role session name. - String roleSessionName = "test"; - // Region where the EKS cluster at. - String region = "us-west-2"; - // EKS cluster name. - String clusterName = "test-2"; - - STSAssumeRoleSessionCredentialsProvider credProvider = new STSAssumeRoleSessionCredentialsProvider( - new DefaultAWSCredentialsProviderChain().getCredentials(), - roleArn, - roleSessionName); - - ApiClient apiClient = ClientBuilder.standard() - .setAuthentication(new EKSAuthentication(credProvider, region, clusterName)) - .build(); - - Version version = new Version(apiClient); - VersionInfo versionInfo = version.getVersion(); - System.out.println(versionInfo); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/Example.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/Example.java deleted file mode 100644 index 8fa5cb0f99..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/Example.java +++ /dev/null @@ -1,44 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.Example" - * - *

From inside $REPO_DIR/examples - */ -public class Example { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - V1PodList list = api.listPodForAllNamespaces() - .execute(); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ExecExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ExecExample.java deleted file mode 100644 index acea8e815a..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ExecExample.java +++ /dev/null @@ -1,96 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Exec; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.CommandLineParser; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.ParseException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ExecExample" - * - *

From inside $REPO_DIR/examples - */ -public class ExecExample { - public static void main(String[] args) - throws IOException, ApiException, InterruptedException, ParseException { - final Options options = new Options(); - options.addOption(new Option("p", "pod", true, "The name of the pod")); - options.addOption(new Option("n", "namespace", true, "The namespace of the pod")); - - CommandLineParser parser = new DefaultParser(); - CommandLine cmd = parser.parse(options, args); - - String podName = cmd.getOptionValue("p", "nginx-dbddb74b8-s4cx5"); - String namespace = cmd.getOptionValue("n", "default"); - args = cmd.getArgs(); - - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Exec exec = new Exec(); - boolean tty = System.console() != null; - // final Process proc = exec.exec("default", "nginx-4217019353-k5sn9", new String[] - // {"sh", "-c", "echo foo"}, true, tty); - final Process proc = - exec.exec(namespace, podName, args.length == 0 ? new String[] {"sh"} : args, true, tty); - - Thread in = - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(System.in, proc.getOutputStream()); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - in.start(); - - Thread out = - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(proc.getInputStream(), System.out); - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - out.start(); - - proc.waitFor(); - - // wait for any last output; no need to wait for input thread - out.join(); - - proc.destroy(); - - System.exit(proc.exitValue()); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ExpandedExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ExpandedExample.java deleted file mode 100644 index 353f7a2634..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ExpandedExample.java +++ /dev/null @@ -1,244 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1DeploymentList; -import io.kubernetes.client.openapi.models.V1DeploymentSpec; -import io.kubernetes.client.openapi.models.V1NamespaceList; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1ServiceList; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.List; -import java.util.Optional; -import java.util.stream.Collectors; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ExpandedExample" - * - *

From inside $REPO_DIR/examples - */ -public class ExpandedExample { - - private static CoreV1Api COREV1_API; - private static final String DEFAULT_NAME_SPACE = "default"; - private static final Integer TIME_OUT_VALUE = 180; - private static final Logger LOGGER = LoggerFactory.getLogger(ExpandedExample.class); - - /** - * Main method - * - * @param args - */ - public static void main(String[] args) { - try { - ApiClient client = Config.defaultClient(); - // To change the context of k8s cluster, you can use - // io.kubernetes.client.util.KubeConfig - Configuration.setDefaultApiClient(client); - COREV1_API = new CoreV1Api(client); - - // ScaleUp/ScaleDown the Deployment pod - // Please change the name of Deployment? - System.out.println("----- Scale Deployment Start -----"); - scaleDeployment("account-service", 5); - - // List all of the namaspaces and pods - List nameSpaces = getAllNameSpaces(); - nameSpaces.stream() - .forEach( - namespace -> { - try { - System.out.println("----- " + namespace + " -----"); - getNamespacedPod(namespace).stream().forEach(System.out::println); - } catch (ApiException ex) { - LOGGER.warn("Couldn't get the pods in namespace:{}", namespace, ex); - } - }); - - // Print all of the Services - System.out.println("----- Print list all Services Start -----"); - List services = getServices(); - services.stream().forEach(System.out::println); - System.out.println("----- Print list all Services End -----"); - - // Print log of specific pod. In this example show the first pod logs. - System.out.println("----- Print Log of Specific Pod Start -----"); - String firstPodName = getPods().get(0); - printLog(DEFAULT_NAME_SPACE, firstPodName); - System.out.println("----- Print Log of Specific Pod End -----"); - } catch (ApiException | IOException ex) { - LOGGER.warn("Exception had occured ", ex); - } - } - - /** - * Get all namespaces in k8s cluster - * - * @return - * @throws ApiException - */ - public static List getAllNameSpaces() throws ApiException { - V1NamespaceList listNamespace = - COREV1_API.listNamespace().execute(); - List list = - listNamespace.getItems().stream() - .map(v1Namespace -> v1Namespace.getMetadata().getName()) - .collect(Collectors.toList()); - return list; - } - - /** - * List all pod names in all namespaces in k8s cluster - * - * @return - * @throws ApiException - */ - public static List getPods() throws ApiException { - V1PodList v1podList = - COREV1_API.listPodForAllNamespaces().execute(); - List podList = - v1podList.getItems().stream() - .map(v1Pod -> v1Pod.getMetadata().getName()) - .collect(Collectors.toList()); - return podList; - } - - /** - * List all pod in the default namespace - * - * @return - * @throws ApiException - */ - public static List getNamespacedPod() throws ApiException { - return getNamespacedPod(DEFAULT_NAME_SPACE, null); - } - - /** - * List pod in specific namespace - * - * @param namespace - * @return - * @throws ApiException - */ - public static List getNamespacedPod(String namespace) throws ApiException { - return getNamespacedPod(namespace, null); - } - - /** - * List pod in specific namespace with label - * - * @param namespace - * @param label - * @return - * @throws ApiException - */ - public static List getNamespacedPod(String namespace, String label) throws ApiException { - V1PodList listNamespacedPod = - COREV1_API.listNamespacedPod( - namespace) - .labelSelector(label) - .timeoutSeconds(TIME_OUT_VALUE) - .watch(false) - .execute(); - List listPods = - listNamespacedPod.getItems().stream() - .map(v1pod -> v1pod.getMetadata().getName()) - .collect(Collectors.toList()); - return listPods; - } - - /** - * List all Services in default namespace - * - * @return - * @throws ApiException - */ - public static List getServices() throws ApiException { - V1ServiceList listNamespacedService = - COREV1_API.listNamespacedService(DEFAULT_NAME_SPACE) - .timeoutSeconds(TIME_OUT_VALUE) - .watch(false) - .execute(); - return listNamespacedService.getItems().stream() - .map(v1service -> v1service.getMetadata().getName()) - .collect(Collectors.toList()); - } - - /** - * Scale up/down the number of pod in Deployment - * - * @param deploymentName - * @param numberOfReplicas - * @throws ApiException - */ - public static void scaleDeployment(String deploymentName, int numberOfReplicas) - throws ApiException { - AppsV1Api appsV1Api = new AppsV1Api(); - appsV1Api.setApiClient(COREV1_API.getApiClient()); - V1DeploymentList listNamespacedDeployment = - appsV1Api.listNamespacedDeployment( - DEFAULT_NAME_SPACE) - .watch(false) - .execute(); - - List appsV1DeploymentItems = listNamespacedDeployment.getItems(); - Optional findedDeployment = - appsV1DeploymentItems.stream() - .filter( - (V1Deployment deployment) -> - deployment.getMetadata().getName().equals(deploymentName)) - .findFirst(); - findedDeployment.ifPresent( - (V1Deployment deploy) -> { - try { - V1DeploymentSpec newSpec = deploy.getSpec().replicas(numberOfReplicas); - V1Deployment newDeploy = deploy.spec(newSpec); - appsV1Api.replaceNamespacedDeployment( - deploymentName, DEFAULT_NAME_SPACE, newDeploy).execute(); - } catch (ApiException ex) { - LOGGER.warn("Scale the pod failed for Deployment:{}", deploymentName, ex); - } - }); - } - - /** - * Print out the Log for specific Pods - * - * @param namespace - * @param podName - * @throws ApiException - */ - public static void printLog(String namespace, String podName) throws ApiException { - // https://github.com/kubernetes-client/java/blob/master/kubernetes/docs/CoreV1Api.md#readNamespacedPodLog - String readNamespacedPodLog = - COREV1_API.readNamespacedPodLog(podName, namespace) - .follow(false) - .limitBytes(Integer.MAX_VALUE) - .sinceSeconds(Integer.MAX_VALUE) - .tailLines(40) - .execute(); - System.out.println(readNamespacedPodLog); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/FluentExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/FluentExample.java deleted file mode 100644 index 52c6c542a9..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/FluentExample.java +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodBuilder; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.Arrays; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.FluentExample" - * - *

From inside $REPO_DIR/examples - */ -public class FluentExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - - V1Pod pod = - new V1PodBuilder() - .withNewMetadata() - .withName("apod") - .endMetadata() - .withNewSpec() - .addNewContainer() - .withName("www") - .withImage("nginx") - .endContainer() - .endSpec() - .build(); - - api.createNamespacedPod("default", pod).execute(); - - V1Pod pod2 = - new V1Pod() - .metadata(new V1ObjectMeta().name("anotherpod")) - .spec( - new V1PodSpec() - .containers(Arrays.asList(new V1Container().name("www").image("nginx")))); - - api.createNamespacedPod("default", pod2).execute(); - - V1PodList list = - api.listNamespacedPod("default").execute(); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/GenericClientExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/GenericClientExample.java deleted file mode 100644 index ddfb1243b8..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/GenericClientExample.java +++ /dev/null @@ -1,63 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Container; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.openapi.models.V1PodSpec; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.util.Arrays; - -public class GenericClientExample { - - public static void main(String[] args) throws Exception { - - // The following codes demonstrates using generic client to manipulate pods - V1Pod pod = - new V1Pod() - .metadata(new V1ObjectMeta().name("foo").namespace("default")) - .spec( - new V1PodSpec() - .containers(Arrays.asList(new V1Container().name("c").image("test")))); - - ApiClient apiClient = ClientBuilder.standard().build(); - GenericKubernetesApi podClient = - new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient); - - V1Pod latestPod = podClient.create(pod).throwsApiException().getObject(); - System.out.println("Created!"); - - V1Pod patchedPod = - podClient - .patch( - "default", - "foo", - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - new V1Patch("{\"metadata\":{\"finalizers\":[\"example.io/foo\"]}}")) - .throwsApiException() - .getObject(); - System.out.println("Patched!"); - - V1Pod deletedPod = podClient.delete("default", "foo").throwsApiException().getObject(); - if (deletedPod != null) { - System.out.println( - "Received after-deletion status of the requested object, will be deleting in background!"); - } - System.out.println("Deleted!"); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java deleted file mode 100644 index ac53b22dd9..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/InClusterClientExample.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.ClientBuilder; -import java.io.IOException; - -/** - * A simple example of how to use the Java API inside a kubernetes cluster - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.InClusterClientExample" - * - *

From inside $REPO_DIR/examples - */ -public class InClusterClientExample { - public static void main(String[] args) throws IOException, ApiException { - - // loading the in-cluster config, including: - // 1. service-account CA - // 2. service-account bearer-token - // 3. service-account namespace - // 4. master endpoints(ip, port) from pre-set environment variables - ApiClient client = ClientBuilder.cluster().build(); - - // if you prefer not to refresh service account token, please use: - // ApiClient client = ClientBuilder.oldCluster().build(); - - // set the global default api-client to the in-cluster one from above - Configuration.setDefaultApiClient(client); - - // the CoreV1Api loads default api-client from global configuration. - CoreV1Api api = new CoreV1Api(); - - // invokes the CoreV1Api client - V1PodList list = - api.listPodForAllNamespaces().execute(); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/InformerExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/InformerExample.java deleted file mode 100644 index 0abf3d5cae..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/InformerExample.java +++ /dev/null @@ -1,99 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.informer.ResourceEventHandler; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.CallGeneratorParams; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.InformerExample" - * - *

From inside $REPO_DIR/examples - */ -public class InformerExample { - public static void main(String[] args) throws Exception { - CoreV1Api coreV1Api = new CoreV1Api(); - ApiClient apiClient = coreV1Api.getApiClient(); - OkHttpClient httpClient = - apiClient.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - apiClient.setHttpClient(httpClient); - - SharedInformerFactory factory = new SharedInformerFactory(apiClient); - - // Node informer - SharedIndexInformer nodeInformer = - factory.sharedIndexInformerFor( - // **NOTE**: - // The following "CallGeneratorParams" lambda merely generates a stateless - // HTTPs requests, the effective apiClient is the one specified when constructing - // the informer-factory. - (CallGeneratorParams params) -> { - return coreV1Api.listNode() - .resourceVersion(params.resourceVersion) - .watch(params.watch) - .timeoutSeconds(params.timeoutSeconds) - .buildCall(null); - }, - V1Node.class, - V1NodeList.class); - - nodeInformer.addEventHandler( - new ResourceEventHandler() { - @Override - public void onAdd(V1Node node) { - System.out.printf("%s node added!\n", node.getMetadata().getName()); - } - - @Override - public void onUpdate(V1Node oldNode, V1Node newNode) { - System.out.printf( - "%s => %s node updated!\n", - oldNode.getMetadata().getName(), newNode.getMetadata().getName()); - } - - @Override - public void onDelete(V1Node node, boolean deletedFinalStateUnknown) { - System.out.printf("%s node deleted!\n", node.getMetadata().getName()); - } - }); - - factory.startAllRegisteredInformers(); - - V1Node nodeToCreate = new V1Node(); - V1ObjectMeta metadata = new V1ObjectMeta(); - metadata.setName("noxu"); - nodeToCreate.setMetadata(metadata); - V1Node createdNode = coreV1Api.createNode(nodeToCreate).execute(); - Thread.sleep(3000); - - Lister nodeLister = new Lister(nodeInformer.getIndexer()); - V1Node node = nodeLister.get("noxu"); - System.out.printf("noxu created! %s\n", node.getMetadata().getCreationTimestamp()); - factory.stopAllRegisteredInformers(); - Thread.sleep(3000); - System.out.println("informer stopped.."); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java deleted file mode 100644 index 7860bd918d..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/KubeConfigFileClientExample.java +++ /dev/null @@ -1,58 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.KubeConfig; -import java.io.FileReader; -import java.io.IOException; - -/** - * A simple example of how to use the Java API from an application outside a kubernetes cluster - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.KubeConfigFileClientExample" - * - *

From inside $REPO_DIR/examples - */ -public class KubeConfigFileClientExample { - public static void main(String[] args) throws IOException, ApiException { - - // file path to your KubeConfig - - String kubeConfigPath = System.getenv("HOME") + "/.kube/config"; - - // loading the out-of-cluster config, a kubeconfig from file-system - ApiClient client = - ClientBuilder.kubeconfig(KubeConfig.loadKubeConfig(new FileReader(kubeConfigPath))).build(); - - // set the global default api-client to the out-of-cluster one from above - Configuration.setDefaultApiClient(client); - - // the CoreV1Api loads default api-client from global configuration. - CoreV1Api api = new CoreV1Api(); - - // invokes the CoreV1Api client - V1PodList list = - api.listPodForAllNamespaces().execute(); - for (V1Pod item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/KubectlExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/KubectlExample.java deleted file mode 100644 index 2619c9f271..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/KubectlExample.java +++ /dev/null @@ -1,311 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import static io.kubernetes.client.extended.kubectl.Kubectl.apiResources; -import static io.kubernetes.client.extended.kubectl.Kubectl.copy; -import static io.kubernetes.client.extended.kubectl.Kubectl.cordon; -import static io.kubernetes.client.extended.kubectl.Kubectl.delete; -import static io.kubernetes.client.extended.kubectl.Kubectl.drain; -import static io.kubernetes.client.extended.kubectl.Kubectl.exec; -import static io.kubernetes.client.extended.kubectl.Kubectl.label; -import static io.kubernetes.client.extended.kubectl.Kubectl.log; -import static io.kubernetes.client.extended.kubectl.Kubectl.portforward; -import static io.kubernetes.client.extended.kubectl.Kubectl.scale; -import static io.kubernetes.client.extended.kubectl.Kubectl.taint; -import static io.kubernetes.client.extended.kubectl.Kubectl.top; -import static io.kubernetes.client.extended.kubectl.Kubectl.uncordon; -import static io.kubernetes.client.extended.kubectl.Kubectl.version; -import static io.kubernetes.client.extended.kubectl.KubectlTop.podMetricSum; - -import io.kubernetes.client.common.KubernetesObject; -import io.kubernetes.client.custom.NodeMetrics; -import io.kubernetes.client.custom.PodMetrics; -import io.kubernetes.client.extended.kubectl.KubectlExec; -import io.kubernetes.client.extended.kubectl.KubectlPortForward; -import io.kubernetes.client.extended.kubectl.exception.KubectlException; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1ReplicationController; -import io.kubernetes.client.openapi.models.V1Service; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; -import org.apache.commons.cli.ParseException; -import org.apache.commons.lang3.tuple.Pair; - -/** - * A Java equivalent for the kubectl command line tool. Not nearly as complete. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.KubectlExample" -Dexec.args="log some-pod" - * - *

From inside $REPO_DIR/examples - */ -public class KubectlExample { - static Class getClassForKind(String kind) { - switch (kind) { - case "pod": - case "pods": - return V1Pod.class; - case "deployment": - case "deployments": - return V1Deployment.class; - case "service": - case "services": - return V1Service.class; - case "node": - case "nodes": - return V1Node.class; - case "replicationcontroller": - case "replicationcontrollers": - return V1ReplicationController.class; - } - return null; - } - - private static final String PADDING = " "; - - private static String pad(String value) { - while (value.length() < PADDING.length()) { - value += " "; - } - return value; - } - - public static void main(String[] args) - throws java.io.IOException, KubectlException, ParseException { - ApiClient client = Config.defaultClient(); - - Options options = new Options(); - options.addOption(new Option("n", "namespace", true, "The namespace for the resource")); - options.addOption(new Option("r", "replicas", true, "The number of replicas to scale to")); - options.addOption(new Option("c", "container", true, "The container in a pod to connect to")); - DefaultParser parser = new DefaultParser(); - CommandLine cli = parser.parse(options, args); - - args = cli.getArgs(); - String verb = args[0]; - String ns = cli.getOptionValue("n", "default"); - String kind = null; - String name = null; - - switch (verb) { - case "delete": - kind = args[1]; - name = args[2]; - delete(getClassForKind(kind)).namespace(ns).name(name).execute(); - case "drain": - name = args[1]; - drain().apiClient(client).name(name).execute(); - System.out.println("Node drained"); - System.exit(0); - case "cordon": - name = args[1]; - cordon().apiClient(client).name(name).execute(); - System.out.println("Node cordoned"); - System.exit(0); - case "uncordon": - name = args[1]; - uncordon().apiClient(client).name(name).execute(); - System.out.println("Node uncordoned"); - System.exit(0); - case "top": - String what = args[1]; - switch (what) { - case "nodes": - case "node": - List> nodes = - top(V1Node.class, NodeMetrics.class).apiClient(client).metric("cpu").execute(); - System.out.println(pad("Node") + "\tCPU\t\tMemory"); - for (Pair node : nodes) { - System.out.println( - pad(node.getLeft().getMetadata().getName()) - + "\t" - + node.getRight().getUsage().get("cpu").getNumber() - + "\t" - + node.getRight().getUsage().get("memory").getNumber()); - } - System.exit(0); - case "pods": - case "pod": - List> pods = - top(V1Pod.class, PodMetrics.class) - .apiClient(client) - .namespace(ns) - .metric("cpu") - .execute(); - System.out.println(pad("Pod") + "\tCPU\t\tMemory"); - for (Pair pod : pods) { - System.out.println( - pad(pod.getLeft().getMetadata().getName()) - + "\t" - + podMetricSum(pod.getRight(), "cpu") - + "\t" - + podMetricSum(pod.getRight(), "memory")); - } - System.exit(0); - } - System.err.println("Unknown top argument: " + what); - System.exit(-1); - case "cp": - String from = args[1]; - String to = args[2]; - if (from.indexOf(":") != -1) { - String[] parts = from.split(":"); - name = parts[0]; - from = parts[1]; - copy() - .apiClient(client) - .namespace(ns) - .name(name) - .container(cli.getOptionValue("c", "")) - .fromPod(from) - .to(to) - .execute(); - } else if (to.indexOf(":") != -1) { - String[] parts = to.split(":"); - name = parts[0]; - to = parts[1]; - copy() - .apiClient(client) - .namespace(ns) - .name(name) - .container(cli.getOptionValue("c", "")) - .from(from) - .toPod(to) - .execute(); - } else { - System.err.println("Missing pod name for copy."); - System.exit(-1); - } - System.out.println("Copied " + from + " -> " + to); - System.exit(0); - case "taint": - name = args[1]; - String taintSpec = args[2]; - boolean remove = taintSpec.endsWith("-"); - int ix = taintSpec.indexOf("="); - int ix2 = taintSpec.indexOf(":"); - - if (remove) { - taintSpec = taintSpec.substring(0, taintSpec.length() - 2); - String key = ix == -1 ? taintSpec : taintSpec.substring(0, ix); - String effect = ix == -1 ? null : taintSpec.substring(ix + 1); - - if (effect == null) { - taint().apiClient(client).name(name).removeTaint(key).execute(); - } else { - taint().apiClient(client).name(name).removeTaint(key, effect).execute(); - } - System.exit(0); - } - if (ix2 == -1) { - System.err.println("key:effect or key=value:effect is required."); - System.exit(-1); - } - String key = taintSpec.substring(0, ix == -1 ? ix2 : ix); - String value = ix == -1 ? null : taintSpec.substring(ix + 1, ix2); - String effect = taintSpec.substring(ix2 + 1); - - if (value == null) { - taint().apiClient(client).name(name).addTaint(key, effect).execute(); - } else { - taint().apiClient(client).name(name).addTaint(key, value, effect).execute(); - } - System.exit(0); - case "portforward": - name = args[1]; - KubectlPortForward forward = portforward().apiClient(client).name(name).namespace(ns); - for (int i = 2; i < args.length; i++) { - String port = args[i]; - String[] ports = port.split(":"); - System.out.println("Forwarding " + ns + "/" + name + " " + ports[0] + "->" + ports[1]); - forward.ports(Integer.parseInt(ports[0]), Integer.parseInt(ports[1])); - } - forward.execute(); - System.exit(0); - case "log": - name = args[1]; - Streams.copy( - log() - .apiClient(client) - .name(name) - .namespace(ns) - .container(cli.getOptionValue("c", "")) - .execute(), - System.out); - System.exit(0); - case "scale": - kind = args[1]; - name = args[2]; - if (!cli.hasOption("r")) { - System.err.println("--replicas is required"); - System.exit(-3); - } - int replicas = Integer.parseInt(cli.getOptionValue("r")); - scale(getClassForKind(kind)) - .apiClient(client) - .namespace(ns) - .name(name) - .replicas(replicas) - .execute(); - System.out.println("Deployment scaled."); - System.exit(0); - case "version": - System.out.println(version().apiClient(client)); - System.exit(0); - case "label": - kind = args[1]; - name = args[2]; - String labelKey = args[3]; - String labelValue = args[4]; - Class clazz = getClassForKind(kind); - if (clazz == null) { - System.err.println("Unknown kind: " + kind); - System.exit(-2); - } - label(clazz).apiClient(client).namespace(ns).name(name).addLabel(labelKey, labelValue); - System.exit(0); - case "exec": - name = args[1]; - String[] command = Arrays.copyOfRange(args, 2, args.length); - KubectlExec e = - exec() - .apiClient(client) - .namespace(ns) - .name(name) - .command(command) - .container(cli.getOptionValue("c", "")); - System.exit(e.execute()); - case "api-resources": - apiResources().apiClient(client).execute().stream() - .forEach( - r -> - System.out.printf( - "%s\t\t%s\t\t%s\t\t%s\n", - r.getResourcePlural(), r.getGroup(), r.getKind(), r.getNamespaced())); - System.exit(0); - default: - System.out.println("Unknown verb: " + verb); - System.exit(-1); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java deleted file mode 100644 index 0e48689602..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.leaderelection.LeaderElectionConfig; -import io.kubernetes.client.extended.leaderelection.LeaderElector; -import io.kubernetes.client.extended.leaderelection.resourcelock.EndpointsLock; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import java.time.Duration; -import java.util.UUID; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.LeaderElectionExample" - * - *

From inside $REPO_DIR/examples - */ -public class LeaderElectionExample { - public static void main(String[] args) throws Exception { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // New - String appNamespace = "default"; - String appName = "leader-election-foobar"; - String lockHolderIdentityName = UUID.randomUUID().toString(); // Anything unique - EndpointsLock lock = new EndpointsLock(appNamespace, appName, lockHolderIdentityName); - - LeaderElectionConfig leaderElectionConfig = - new LeaderElectionConfig( - lock, Duration.ofMillis(10000), Duration.ofMillis(8000), Duration.ofMillis(2000)); - try (LeaderElector leaderElector = new LeaderElector(leaderElectionConfig)) { - leaderElector.run( - () -> { - System.out.println("Do something when getting leadership."); - }, - () -> { - System.out.println("Do something when losing leadership."); - }); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/LogsExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/LogsExample.java deleted file mode 100644 index d01eb40ab3..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/LogsExample.java +++ /dev/null @@ -1,51 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.PodLogs; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import java.io.InputStream; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.LogsExample" - * - *

From inside $REPO_DIR/examples - */ -public class LogsExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - CoreV1Api coreApi = new CoreV1Api(client); - - PodLogs logs = new PodLogs(); - V1Pod pod = - coreApi - .listNamespacedPod("default") - .execute() - .getItems() - .get(0); - - InputStream is = logs.streamNamespacedPodLog(pod); - Streams.copy(is, System.out); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/MetricsExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/MetricsExample.java deleted file mode 100644 index 0d8c10e30b..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/MetricsExample.java +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.Metrics; -import io.kubernetes.client.custom.ContainerMetrics; -import io.kubernetes.client.custom.NodeMetrics; -import io.kubernetes.client.custom.NodeMetricsList; -import io.kubernetes.client.custom.PodMetrics; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.MetricsExample" - * - *

From inside $REPO_DIR/examples - */ -public class MetricsExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - Metrics metrics = new Metrics(client); - NodeMetricsList list = metrics.getNodeMetrics(); - for (NodeMetrics item : list.getItems()) { - System.out.println(item.getMetadata().getName()); - System.out.println("------------------------------"); - for (String key : item.getUsage().keySet()) { - System.out.println("\t" + key); - System.out.println("\t" + item.getUsage().get(key)); - } - System.out.println(); - } - - for (PodMetrics item : metrics.getPodMetrics("default").getItems()) { - System.out.println(item.getMetadata().getName()); - System.out.println("------------------------------"); - if (item.getContainers() == null) { - continue; - } - for (ContainerMetrics container : item.getContainers()) { - System.out.println(container.getName()); - System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); - for (String key : container.getUsage().keySet()) { - System.out.println("\t" + key); - System.out.println("\t" + container.getUsage().get(key)); - } - System.out.println(); - } - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PagerExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PagerExample.java deleted file mode 100644 index 65f0f5d08f..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PagerExample.java +++ /dev/null @@ -1,65 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.pager.Pager; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.openapi.models.V1NamespaceList; -import io.kubernetes.client.util.Config; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PagerExample" - * - *

From inside $REPO_DIR/examples - */ -public class PagerExample { - public static void main(String[] args) throws IOException { - - ApiClient client = Config.defaultClient(); - OkHttpClient httpClient = - client.getHttpClient().newBuilder().readTimeout(60, TimeUnit.SECONDS).build(); - client.setHttpClient(httpClient); - Configuration.setDefaultApiClient(client); - CoreV1Api api = new CoreV1Api(); - int i = 0; - Pager pager = - new Pager( - (Pager.PagerParams param) -> { - try { - return api.listNamespace() - ._continue(param.getContinueToken()) - .limit(param.getLimit()) - .timeoutSeconds(1) - .buildCall(null); - } catch (Exception e) { - throw new RuntimeException(e); - } - }, - client, - 10, - V1NamespaceList.class); - for (V1Namespace namespace : pager) { - System.out.println(namespace.getMetadata().getName()); - } - System.out.println("------------------"); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ParseExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ParseExample.java deleted file mode 100644 index 92866a46fe..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ParseExample.java +++ /dev/null @@ -1,64 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.Config; -import java.io.FileReader; -import java.io.IOException; -import java.io.StringReader; - -/** - * A simple example of how to parse a Kubernetes object. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ParseExample" - * - *

From inside $REPO_DIR/examples - */ -public class ParseExample { - public static void main(String[] args) throws IOException, ApiException, ClassNotFoundException { - if (args.length < 2) { - System.err.println("Usage: ParseExample "); - System.exit(1); - } - ApiClient client = Config.defaultClient(); - FileReader json = new FileReader(args[0]); - Object obj = - client - .getJSON() - .getGson() - .fromJson(json, Class.forName("io.kubernetes.client.models." + args[1])); - - String output = client.getJSON().getGson().toJson(obj); - - // Test round tripping... - Object obj2 = - client - .getJSON() - .getGson() - .fromJson( - new StringReader(output), Class.forName("io.kubernetes.client.models." + args[1])); - - String output2 = client.getJSON().getGson().toJson(obj2); - - // Validate round trip - if (!output.equals(output2)) { - System.err.println("Error, expected:\n" + output + "\nto equal\n" + output2); - System.exit(2); - } - - System.out.println(output); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PatchExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PatchExample.java deleted file mode 100644 index 00e55f8c38..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PatchExample.java +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.AppsV1Api; -import io.kubernetes.client.openapi.models.V1Deployment; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.PatchUtils; -import java.io.IOException; - -/** - * A simple Example of how to use the Java API.
- * This example demonstrates patching of deployment using Json Patch and Strategic Merge Patch.
- * For generating Json Patches, refer http://jsonpatch.com. For - * generating Strategic Merge Patches, refer strategic-merge-patch.md. - * - *

    - *
  • Creates deployment hello-node with terminationGracePeriodSeconds value as 30 and a - * finalizer. - *
  • Json-Patches deployment hello-node with terminationGracePeriodSeconds value as 27. - *
  • Strategic-Merge-Patches deployment hello-node removing the finalizer. - *
- * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PatchExample" - * - *

From inside $REPO_DIR/examples - */ -public class PatchExample { - static String jsonPatchStr = - "[{\"op\":\"replace\",\"path\":\"/spec/template/spec/terminationGracePeriodSeconds\",\"value\":27}]"; - static String strategicMergePatchStr = - "{\"metadata\":{\"$deleteFromPrimitiveList/finalizers\":[\"example.com/test\"]}}"; - static String jsonDeploymentStr = - "{\"kind\":\"Deployment\",\"apiVersion\":\"apps/v1\",\"metadata\":{\"name\":\"hello-node\",\"finalizers\":[\"example.com/test\"],\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"run\":\"hello-node\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"terminationGracePeriodSeconds\":30,\"containers\":[{\"name\":\"hello-node\",\"image\":\"hello-node:v1\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"resources\":{}}]}},\"strategy\":{}},\"status\":{}}"; - static String applyYamlStr = - "{\"kind\":\"Deployment\",\"apiVersion\":\"apps/v1\",\"metadata\":{\"name\":\"hello-node\",\"finalizers\":[\"example.com/test\"],\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"run\":\"hello-node\"}},\"template\":{\"metadata\":{\"creationTimestamp\":null,\"labels\":{\"run\":\"hello-node\"}},\"spec\":{\"terminationGracePeriodSeconds\":30,\"containers\":[{\"name\":\"hello-node\",\"image\":\"hello-node:v2\",\"ports\":[{\"containerPort\":8080,\"protocol\":\"TCP\"}],\"resources\":{}}]}},\"strategy\":{}},\"status\":{}}"; - - public static void main(String[] args) throws IOException { - try { - AppsV1Api api = new AppsV1Api(ClientBuilder.standard().build()); - V1Deployment body = - Configuration.getDefaultApiClient() - .getJSON() - .deserialize(jsonDeploymentStr, V1Deployment.class); - - // create a deployment - V1Deployment deploy1 = - api.createNamespacedDeployment("default", body).execute(); - System.out.println("original deployment" + deploy1); - - // json-patch a deployment - V1Deployment deploy2 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeployment( - "hello-node", - "default", - new V1Patch(jsonPatchStr)) - .buildCall(null), - V1Patch.PATCH_FORMAT_JSON_PATCH, - api.getApiClient()); - System.out.println("json-patched deployment" + deploy2); - - // strategic-merge-patch a deployment - V1Deployment deploy3 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeployment( - "hello-node", - "default", - new V1Patch(strategicMergePatchStr)) - .buildCall(null), - V1Patch.PATCH_FORMAT_STRATEGIC_MERGE_PATCH, - api.getApiClient()); - System.out.println("strategic-merge-patched deployment" + deploy3); - - // apply-yaml a deployment, server side apply is available by default after kubernetes v1.16 - // or opt-in by turning on the feature gate for v1.14 or v1.15. - // https://kubernetes.io/docs/reference/using-api/api-concepts/#server-side-apply - V1Deployment deploy4 = - PatchUtils.patch( - V1Deployment.class, - () -> - api.patchNamespacedDeployment( - "hello-node", - "default", - new V1Patch(applyYamlStr)) - .fieldManager("example-field-manager") - .force(true) - .buildCall(null), - V1Patch.PATCH_FORMAT_APPLY_YAML, - api.getApiClient()); - System.out.println("application/apply-patch+yaml deployment" + deploy4); - - } catch (ApiException e) { - System.out.println(e.getResponseBody()); - e.printStackTrace(); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PortForwardExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PortForwardExample.java deleted file mode 100644 index cbe064db31..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PortForwardExample.java +++ /dev/null @@ -1,87 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.PortForward; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Streams; -import java.io.IOException; -import java.net.ServerSocket; -import java.net.Socket; -import java.util.ArrayList; -import java.util.List; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PortForwardExample" from inside - * $REPO_DIR/examples - * - *

Then: curl localhost:8080 from a different terminal (but be quick about it, the socket times - * out pretty fast...) - */ -public class PortForwardExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - PortForward forward = new PortForward(); - List ports = new ArrayList<>(); - int localPort = 8080; - int targetPort = 8080; - ports.add(targetPort); - final PortForward.PortForwardResult result = - forward.forward("default", "camera-viz-7949dbf7c6-lpxkd", ports); - System.out.println("Forwarding!"); - ServerSocket ss = new ServerSocket(localPort); - - final Socket s = ss.accept(); - System.out.println("Connected!"); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(result.getInputStream(targetPort), s.getOutputStream()); - } catch (IOException ex) { - ex.printStackTrace(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - new Thread( - new Runnable() { - public void run() { - try { - Streams.copy(s.getInputStream(), result.getOutboundStream(targetPort)); - } catch (IOException ex) { - ex.printStackTrace(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - }) - .start(); - - Thread.sleep(10 * 1000); - - System.exit(0); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PromOpExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PromOpExample.java deleted file mode 100644 index 65f38b8ce4..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PromOpExample.java +++ /dev/null @@ -1,43 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import com.coreos.monitoring.models.V1Prometheus; -import com.coreos.monitoring.models.V1PrometheusList; -import com.coreos.monitoring.models.V1PrometheusSpec; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.util.ClientBuilder; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.io.IOException; - -public class PromOpExample { - public static void main(String[] args) throws IOException, ApiException { - GenericKubernetesApi prometheusApi = - new GenericKubernetesApi<>( - V1Prometheus.class, - V1PrometheusList.class, - "monitoring.coreos.com", - "v1", - "prometheuses", - ClientBuilder.defaultClient()); - prometheusApi - .create( - new V1Prometheus() - .metadata(new V1ObjectMeta().namespace("default").name("my-prometheus")) - .kind("Prometheus") - .apiVersion("monitoring.coreos.com/v1") - .spec(new V1PrometheusSpec())) - .throwsApiException(); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PrometheusExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PrometheusExample.java deleted file mode 100644 index 0635051231..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/PrometheusExample.java +++ /dev/null @@ -1,66 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.monitoring.Monitoring; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API with Prometheus metrics - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.PrometheusExample" - * - *

From inside $REPO_DIR/examples - */ -public class PrometheusExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // Install an HTTP Interceptor that adds metrics - Monitoring.installMetrics(client); - - // Install a simple HTTP server to serve prometheus metrics. If you already are serving - // metrics elsewhere, this is unnecessary. - Monitoring.startMetricsServer("localhost", 8080); - - CoreV1Api api = new CoreV1Api(); - - while (true) { - // A request that should return 200 - V1PodList list = - api.listPodForAllNamespaces().execute(); - // A request that should return 404 - try { - V1Pod pod = api.readNamespacedPod("foo", "bar").execute(); - } catch (ApiException ex) { - if (ex.getCode() != 404) { - throw ex; - } - } - try { - Thread.sleep(10000); - } catch (InterruptedException ex) { - ex.printStackTrace(); - } - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ProtoExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ProtoExample.java deleted file mode 100644 index e4e05a2aa1..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/ProtoExample.java +++ /dev/null @@ -1,69 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.ProtoClient; -import io.kubernetes.client.ProtoClient.ObjectOrStatus; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.proto.Meta.ObjectMeta; -import io.kubernetes.client.proto.V1.Namespace; -import io.kubernetes.client.proto.V1.NamespaceSpec; -import io.kubernetes.client.proto.V1.Pod; -import io.kubernetes.client.proto.V1.PodList; -import io.kubernetes.client.util.Config; -import java.io.IOException; - -/** - * A simple example of how to use the Java API - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.ProtoExample" - * - *

From inside $REPO_DIR/examples - */ -public class ProtoExample { - public static void main(String[] args) throws IOException, ApiException, InterruptedException { - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - ProtoClient pc = new ProtoClient(client); - ObjectOrStatus list = pc.list(PodList.newBuilder(), "/api/v1/namespaces/default/pods"); - - if (list.object.getItemsCount() > 0) { - Pod p = list.object.getItems(0); - System.out.println(p); - } - - Namespace namespace = - Namespace.newBuilder().setMetadata(ObjectMeta.newBuilder().setName("test").build()).build(); - - ObjectOrStatus ns = pc.create(namespace, "/api/v1/namespaces", "v1", "Namespace"); - System.out.println(ns); - if (ns.object != null) { - namespace = - ns.object - .toBuilder() - .setSpec(NamespaceSpec.newBuilder().addFinalizers("test").build()) - .build(); - // This is how you would update an object, but you can't actually - // update namespaces, so this returns a 405 - ns = pc.update(namespace, "/api/v1/namespaces/test", "v1", "Namespace"); - System.out.println(ns.status); - } - - ns = pc.delete(Namespace.newBuilder(), "/api/v1/namespaces/test"); - System.out.println(ns); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java deleted file mode 100644 index f6494a836e..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/SpringControllerExample.java +++ /dev/null @@ -1,147 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.controller.Controller; -import io.kubernetes.client.extended.controller.builder.ControllerBuilder; -import io.kubernetes.client.extended.controller.builder.DefaultControllerBuilder; -import io.kubernetes.client.extended.controller.reconciler.Reconciler; -import io.kubernetes.client.extended.controller.reconciler.Request; -import io.kubernetes.client.extended.controller.reconciler.Result; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.models.V1Endpoints; -import io.kubernetes.client.openapi.models.V1EndpointsList; -import io.kubernetes.client.openapi.models.V1Node; -import io.kubernetes.client.openapi.models.V1NodeList; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodList; -import io.kubernetes.client.util.generic.GenericKubernetesApi; -import java.time.Duration; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.boot.CommandLineRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; -import org.springframework.stereotype.Component; - -@SpringBootApplication -public class SpringControllerExample { - - public static void main(String[] args) { - SpringApplication.run(SpringControllerExample.class, args); - } - - @Configuration - public static class AppConfig { - - @Bean - public CommandLineRunner commandLineRunner( - SharedInformerFactory sharedInformerFactory, Controller nodePrintingController) { - return args -> { - System.out.println("starting informers.."); - sharedInformerFactory.startAllRegisteredInformers(); - - System.out.println("running controller.."); - nodePrintingController.run(); - }; - } - - @Bean - public Controller nodePrintingController( - SharedInformerFactory sharedInformerFactory, NodePrintingReconciler reconciler) { - DefaultControllerBuilder builder = ControllerBuilder.defaultBuilder(sharedInformerFactory); - builder = - builder.watch( - (q) -> { - return ControllerBuilder.controllerWatchBuilder(V1Node.class, q) - .withResyncPeriod(Duration.ofMinutes(1)) - .build(); - }); - builder.withWorkerCount(2); - builder.withReadyFunc(reconciler::informerReady); - return builder.withReconciler(reconciler).withName("nodePrintingController").build(); - } - - @Bean - public SharedIndexInformer endpointsInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>( - V1Endpoints.class, V1EndpointsList.class, "", "v1", "endpoints", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Endpoints.class, 0); - } - - @Bean - public SharedIndexInformer nodeInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>(V1Node.class, V1NodeList.class, "", "v1", "nodes", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Node.class, 60 * 1000L); - } - - @Bean - public SharedIndexInformer podInformer( - ApiClient apiClient, SharedInformerFactory sharedInformerFactory) { - GenericKubernetesApi genericApi = - new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient); - return sharedInformerFactory.sharedIndexInformerFor(genericApi, V1Pod.class, 0); - } - } - - @Component - public static class NodePrintingReconciler implements Reconciler { - - @Value("${namespace}") - private String namespace; - - private SharedInformer nodeInformer; - - private SharedInformer podInformer; - - private Lister nodeLister; - - private Lister podLister; - - public NodePrintingReconciler( - SharedIndexInformer nodeInformer, SharedIndexInformer podInformer) { - this.nodeInformer = nodeInformer; - this.podInformer = podInformer; - this.nodeLister = new Lister<>(nodeInformer.getIndexer(), namespace); - this.podLister = new Lister<>(podInformer.getIndexer(), namespace); - } - - // *OPTIONAL* - // If you want to hold the controller from running util some condition.. - public boolean informerReady() { - return podInformer.hasSynced() && nodeInformer.hasSynced(); - } - - @Override - public Result reconcile(Request request) { - V1Node node = nodeLister.get(request.getName()); - - System.out.println("get all pods in namespace " + namespace); - podLister.namespace(namespace).list().stream() - .map(pod -> pod.getMetadata().getName()) - .forEach(System.out::println); - - System.out.println("triggered reconciling " + node.getMetadata().getName()); - return new Result(false); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java deleted file mode 100644 index bafe11e421..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/SpringLoadBalancerExample.java +++ /dev/null @@ -1,68 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.extended.network.EndpointsLoadBalancer; -import io.kubernetes.client.extended.network.LoadBalancer; -import io.kubernetes.client.extended.network.RoundRobinLoadBalanceStrategy; -import io.kubernetes.client.informer.SharedIndexInformer; -import io.kubernetes.client.informer.SharedInformerFactory; -import io.kubernetes.client.informer.cache.Lister; -import io.kubernetes.client.openapi.models.V1Endpoints; -import io.kubernetes.client.spring.extended.network.endpoints.InformerEndpointsGetter; -import org.springframework.boot.CommandLineRunner; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; - -@SpringBootApplication -public class SpringLoadBalancerExample { - - public static void main(String[] args) { - SpringApplication.run(SpringLoadBalancerExample.class, args); - } - - @Configuration - public static class AppConfig { - - @Bean - public CommandLineRunner loadBalancerCommandLineRunner( - SharedInformerFactory sharedInformerFactory, MyService myService) { - return args -> { - System.out.println("starting informers.."); - sharedInformerFactory.startAllRegisteredInformers(); - - System.out.println("routing default/kubernetes:"); - System.out.println(myService.defaultKubernetesLoadBalancer.getTargetIP()); - }; - } - - @Bean - public MyService myService(SharedIndexInformer lister) { - return new MyService(new Lister<>(lister.getIndexer())); - } - } - - public static class MyService { - - private LoadBalancer defaultKubernetesLoadBalancer; - - public MyService(Lister lister) { - InformerEndpointsGetter getter = new InformerEndpointsGetter(lister); - RoundRobinLoadBalanceStrategy strategy = new RoundRobinLoadBalanceStrategy(); - defaultKubernetesLoadBalancer = - new EndpointsLoadBalancer(() -> getter.get("default", "kubernetes"), strategy); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/WatchExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/WatchExample.java deleted file mode 100644 index 75fe42b895..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/WatchExample.java +++ /dev/null @@ -1,55 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import com.google.gson.reflect.TypeToken; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Watch; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import okhttp3.OkHttpClient; - -/** A simple example of how to use Watch API to watch changes in Namespace list. */ -public class WatchExample { - public static void main(String[] args) throws IOException, ApiException { - ApiClient client = Config.defaultClient(); - // infinite timeout - OkHttpClient httpClient = - client.getHttpClient().newBuilder().readTimeout(0, TimeUnit.SECONDS).build(); - client.setHttpClient(httpClient); - Configuration.setDefaultApiClient(client); - - CoreV1Api api = new CoreV1Api(); - - Watch watch = - Watch.createWatch( - client, - api.listNamespace() - .watch(true) - .buildCall(null), - new TypeToken>() {}.getType()); - - try { - for (Watch.Response item : watch) { - System.out.printf("%s : %s%n", item.type, item.object.getMetadata().getName()); - } - } finally { - watch.close(); - } - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java deleted file mode 100644 index e1f54dcd07..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/WebSocketsExample.java +++ /dev/null @@ -1,74 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.WebSockets; -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.Reader; -import okhttp3.WebSocket; - -/** - * This is a pretty low level, most people won't need to use WebSockets directly. - * - *

If you do need to run it, you can run: mvn exec:java \ - * -Dexec.mainClass=io.kubernetes.client.examples.WebSocketsExample \ - * -Dexec.args=/api/v1/namespaces/default/pods//attach?stdout=true - * - *

Note that you'd think 'watch' calls were WebSockets, but you'd be wrong, they're straight HTTP - * GET calls. - */ -public class WebSocketsExample { - public static void main(String... args) throws ApiException, IOException { - final ApiClient client = Config.defaultClient(); - WebSockets.stream( - args[0], - "GET", - client, - new WebSockets.SocketListener() { - private volatile WebSocket socket; - - @Override - public void open(String protocol, WebSocket socket) { - this.socket = socket; - } - - @Override - public void close() {} - - @Override - public void bytesMessage(InputStream is) {} - - @Override - public void failure(Throwable t) { - t.printStackTrace(); - } - - @Override - public void textMessage(Reader in) { - try { - BufferedReader reader = new BufferedReader(in); - for (String line = reader.readLine(); line != null; line = reader.readLine()) { - System.out.println(line); - } - } catch (IOException ex) { - ex.printStackTrace(); - } - } - }); - } -} diff --git a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/YamlExample.java b/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/YamlExample.java deleted file mode 100644 index 4846a1f0cb..0000000000 --- a/examples/examples-release-20/src/main/java/io/kubernetes/client/examples/YamlExample.java +++ /dev/null @@ -1,103 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import io.kubernetes.client.custom.IntOrString; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.openapi.models.V1Pod; -import io.kubernetes.client.openapi.models.V1PodBuilder; -import io.kubernetes.client.openapi.models.V1Service; -import io.kubernetes.client.openapi.models.V1ServiceBuilder; -import io.kubernetes.client.util.Config; -import io.kubernetes.client.util.Yaml; -import java.io.File; -import java.io.IOException; -import java.util.HashMap; - -/** - * A simple example of how to parse a Kubernetes object. - * - *

Easiest way to run this: mvn exec:java - * -Dexec.mainClass="io.kubernetes.client.examples.YamlExample" - * - *

From inside $REPO_DIR/examples - */ -public class YamlExample { - public static void main(String[] args) throws IOException, ApiException, ClassNotFoundException { - V1Pod pod = - new V1PodBuilder() - .withNewMetadata() - .withName("apod") - .endMetadata() - .withNewSpec() - .addNewContainer() - .withName("www") - .withImage("nginx") - .withNewResources() - .withLimits(new HashMap<>()) - .endResources() - .endContainer() - .endSpec() - .build(); - System.out.println(Yaml.dump(pod)); - - V1Service svc = - new V1ServiceBuilder() - .withNewMetadata() - .withName("aservice") - .endMetadata() - .withNewSpec() - .withSessionAffinity("ClientIP") - .withType("NodePort") - .addNewPort() - .withProtocol("TCP") - .withName("client") - .withPort(8008) - .withNodePort(8080) - .withTargetPort(new IntOrString(8080)) - .endPort() - .endSpec() - .build(); - System.out.println(Yaml.dump(svc)); - - // Read yaml configuration file, and deploy it - ApiClient client = Config.defaultClient(); - Configuration.setDefaultApiClient(client); - - // See issue #474. Not needed at most cases, but it is needed if you are using war - // packging or running this on JUnit. - Yaml.addModelMap("v1", "Service", V1Service.class); - - // Example yaml file can be found in $REPO_DIR/test-svc.yaml - File file = new File("test-svc.yaml"); - V1Service yamlSvc = (V1Service) Yaml.load(file); - - // Deployment and StatefulSet is defined in apps/v1, so you should use AppsV1Api instead of - // CoreV1API - CoreV1Api api = new CoreV1Api(); - V1Service createResult = - api.createNamespacedService("default", yamlSvc).execute(); - - System.out.println(createResult); - - V1Service deleteResult = - api.deleteNamespacedService( - yamlSvc.getMetadata().getName(), - "default").execute(); - System.out.println(deleteResult); - } -} diff --git a/examples/examples-release-20/src/main/resources/application.properties b/examples/examples-release-20/src/main/resources/application.properties deleted file mode 100644 index dc886e5f48..0000000000 --- a/examples/examples-release-20/src/main/resources/application.properties +++ /dev/null @@ -1,2 +0,0 @@ -namespace=airflow -management.endpoints.web.exposure.include=prometheus \ No newline at end of file diff --git a/examples/examples-release-20/src/test/java/io/kubernetes/client/examples/ExampleTest.java b/examples/examples-release-20/src/test/java/io/kubernetes/client/examples/ExampleTest.java deleted file mode 100644 index 3fd5cea7f6..0000000000 --- a/examples/examples-release-20/src/test/java/io/kubernetes/client/examples/ExampleTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.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.examples; - -import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; -import static com.github.tomakehurst.wiremock.client.WireMock.get; -import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo; -import static org.junit.jupiter.api.Assertions.assertEquals; - -import com.github.tomakehurst.wiremock.core.WireMockConfiguration; -import com.github.tomakehurst.wiremock.junit5.WireMockExtension; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.apis.CoreV1Api; -import io.kubernetes.client.openapi.models.V1Namespace; -import io.kubernetes.client.openapi.models.V1ObjectMeta; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.RegisterExtension; - -class ExampleTest { - private static final int PORT = 8089; - - @RegisterExtension - static WireMockExtension apiServer = - WireMockExtension.newInstance().options(WireMockConfiguration.options().port(PORT)).build(); - - @Test - void exactUrlOnly() throws ApiException { - ApiClient client = new ApiClient(); - client.setBasePath("http://localhost:" + PORT); - Configuration.setDefaultApiClient(client); - - V1Namespace ns1 = new V1Namespace().metadata(new V1ObjectMeta().name("name")); - - apiServer.stubFor( - get(urlEqualTo("/api/v1/namespaces/name")) - .willReturn( - aResponse() - .withHeader("Content-Type", "application/json") - .withBody(client.getJSON().serialize(ns1)))); - - CoreV1Api api = new CoreV1Api(); - V1Namespace ns2 = api.readNamespace("name").execute(); - assertEquals(ns1, ns2); - } -} diff --git a/examples/examples-release-20/test-svc.yaml b/examples/examples-release-20/test-svc.yaml deleted file mode 100644 index f225bea76f..0000000000 --- a/examples/examples-release-20/test-svc.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: test-service -spec: - type: ClusterIP - selector: - app: test-service - ports: - - name: port-of-container - port: 8080 \ No newline at end of file diff --git a/examples/examples-release-20/test.yaml b/examples/examples-release-20/test.yaml deleted file mode 100644 index 0b46e57003..0000000000 --- a/examples/examples-release-20/test.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: ReplicationController -metadata: - name: test -spec: - replicas: 1 - template: - metadata: - labels: - app: test - spec: - containers: - - name: test - image: test/examples:1.0 - command: ["/bin/sh","-c"] - args: ["java -jar /examples.jar","while :; do sleep 1; done"] diff --git a/examples/examples-release-latest/pom.xml b/examples/examples-release-latest/pom.xml index 6dc495044a..20d487149f 100644 --- a/examples/examples-release-latest/pom.xml +++ b/examples/examples-release-latest/pom.xml @@ -1,12 +1,10 @@ - + 4.0.0 io.kubernetes client-java-examples-parent - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT .. @@ -14,21 +12,6 @@ client-java-examples-release-latest - - ch.qos.logback - logback-classic - runtime - - - io.prometheus - simpleclient - 0.15.0 - - - io.prometheus - simpleclient_httpserver - 0.15.0 - io.kubernetes client-java-api @@ -79,43 +62,20 @@ wiremock test - - org.springframework.boot - spring-boot-starter-web - ${spring.boot.version} - - - org.springframework.boot - spring-boot-starter-actuator - ${spring.boot.version} - - - com.amazonaws - aws-java-sdk-sts + software.amazon.awssdk + sts - - org.sonatype.plugins - nexus-staging-maven-plugin - true - - true - - org.apache.maven.plugins - maven-deploy-plugin - - true - + maven-javadoc-plugin - \ No newline at end of file + diff --git a/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/EKSAuthenticationExample.java b/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/EKSAuthenticationExample.java index e1e6610a2a..7ca298239a 100644 --- a/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/EKSAuthenticationExample.java +++ b/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/EKSAuthenticationExample.java @@ -12,8 +12,6 @@ */ package io.kubernetes.client.examples; -import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; -import com.amazonaws.auth.STSAssumeRoleSessionCredentialsProvider; import io.kubernetes.client.openapi.ApiClient; import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.models.VersionInfo; @@ -22,6 +20,9 @@ import io.kubernetes.client.util.version.Version; import java.io.IOException; +import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider; +import software.amazon.awssdk.services.sts.StsClient; +import software.amazon.awssdk.services.sts.auth.StsAssumeRoleCredentialsProvider; public class EKSAuthenticationExample { public static void main(String[] args) throws IOException, ApiException { @@ -37,10 +38,14 @@ public static void main(String[] args) throws IOException, ApiException { // EKS cluster name. String clusterName = "test-2"; - STSAssumeRoleSessionCredentialsProvider credProvider = new STSAssumeRoleSessionCredentialsProvider( - new DefaultAWSCredentialsProviderChain().getCredentials(), - roleArn, - roleSessionName); + StsClient stsClient = StsClient.builder() + .credentialsProvider(DefaultCredentialsProvider.builder().build()) + .build(); + + StsAssumeRoleCredentialsProvider credProvider = StsAssumeRoleCredentialsProvider.builder() + .stsClient(stsClient) + .refreshRequest(r -> r.roleArn(roleArn).roleSessionName(roleSessionName)) + .build(); ApiClient apiClient = ClientBuilder.standard() .setAuthentication(new EKSAuthentication(credProvider, region, clusterName)) diff --git a/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/MetricsExample.java b/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/MetricsExample.java index 0d8c10e30b..93815c0694 100644 --- a/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/MetricsExample.java +++ b/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/MetricsExample.java @@ -64,5 +64,22 @@ public static void main(String[] args) throws IOException, ApiException { System.out.println(); } } + + for (PodMetrics item : metrics.getPodMetrics("default", "foo=bar").getItems()) { + System.out.println(item.getMetadata().getName()); + System.out.println("------------------------------"); + if (item.getContainers() == null) { + continue; + } + for (ContainerMetrics container : item.getContainers()) { + System.out.println(container.getName()); + System.out.println("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-"); + for (String key : container.getUsage().keySet()) { + System.out.println("\t" + key); + System.out.println("\t" + container.getUsage().get(key)); + } + System.out.println(); + } + } } } diff --git a/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/YamlCreateResourceExample.java b/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/YamlCreateResourceExample.java new file mode 100644 index 0000000000..c00d7fc7c1 --- /dev/null +++ b/examples/examples-release-latest/src/main/java/io/kubernetes/client/examples/YamlCreateResourceExample.java @@ -0,0 +1,105 @@ +/* +Copyright 2020 The Kubernetes Authors. +Licensed under the Apache License, Version 2.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.examples; + +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.apis.CoreV1Api; +import io.kubernetes.client.openapi.models.V1ConfigMap; +import io.kubernetes.client.openapi.models.V1Pod; +import io.kubernetes.client.util.Config; +import io.kubernetes.client.util.Yaml; +import java.io.File; +import java.io.IOException; + +/** + * A simple example of how to use Yaml.createResource() to create Kubernetes resources from YAML + * without specifying the type upfront. This is equivalent to `kubectl create -f `. + * + *

Easiest way to run this: mvn exec:java + * -Dexec.mainClass="io.kubernetes.client.examples.YamlCreateResourceExample" + * + *

From inside $REPO_DIR/examples + */ +public class YamlCreateResourceExample { + public static void main(String[] args) throws IOException, ApiException { + // Initialize the API client + ApiClient client = Config.defaultClient(); + Configuration.setDefaultApiClient(client); + + // Example 1: Create a ConfigMap from YAML string + // This method automatically determines the resource type (ConfigMap) + // and uses the appropriate API to create it + String configMapYaml = + "apiVersion: v1\n" + + "kind: ConfigMap\n" + + "metadata:\n" + + " name: example-config\n" + + " namespace: default\n" + + "data:\n" + + " database.url: jdbc:postgresql://localhost/mydb\n" + + " database.user: admin\n"; + + System.out.println("Creating ConfigMap from YAML string..."); + Object configMapResult = Yaml.createResource(client, configMapYaml); + System.out.println("Created: " + configMapResult); + + // Example 2: Create a Pod from YAML string + // Again, no need to specify V1Pod.class - the method determines it automatically + String podYaml = + "apiVersion: v1\n" + + "kind: Pod\n" + + "metadata:\n" + + " name: example-pod\n" + + " namespace: default\n" + + "spec:\n" + + " containers:\n" + + " - name: nginx\n" + + " image: nginx:1.14.2\n" + + " ports:\n" + + " - containerPort: 80\n"; + + System.out.println("\nCreating Pod from YAML string..."); + Object podResult = Yaml.createResource(client, podYaml); + System.out.println("Created: " + podResult); + + // Example 3: Create a resource from a YAML file + // This works with any Kubernetes resource type + File yamlFile = new File("example-resource.yaml"); + if (yamlFile.exists()) { + System.out.println("\nCreating resource from YAML file..."); + Object fileResult = Yaml.createResource(client, yamlFile); + System.out.println("Created: " + fileResult); + } + + // Example 4: Type casting if you need to access specific fields + // The returned object is the strongly-typed Kubernetes object + V1ConfigMap configMap = (V1ConfigMap) configMapResult; + System.out.println("\nConfigMap name: " + configMap.getMetadata().getName()); + System.out.println("ConfigMap data: " + configMap.getData()); + + V1Pod pod = (V1Pod) podResult; + System.out.println("\nPod name: " + pod.getMetadata().getName()); + System.out.println("Pod phase: " + pod.getStatus().getPhase()); + + // Clean up - delete the created resources + CoreV1Api api = new CoreV1Api(); + System.out.println("\nCleaning up..."); + api.deleteNamespacedConfigMap("example-config", "default").execute(); + System.out.println("Deleted ConfigMap"); + + api.deleteNamespacedPod("example-pod", "default").execute(); + System.out.println("Deleted Pod"); + } +} diff --git a/examples/examples-release-latest/src/test/java/io/kubernetes/client/examples/ExampleTest.java b/examples/examples-release-latest/src/test/java/io/kubernetes/client/examples/ExampleTest.java index 3fd5cea7f6..348bb82dd3 100644 --- a/examples/examples-release-latest/src/test/java/io/kubernetes/client/examples/ExampleTest.java +++ b/examples/examples-release-latest/src/test/java/io/kubernetes/client/examples/ExampleTest.java @@ -14,7 +14,7 @@ import static com.github.tomakehurst.wiremock.client.WireMock.aResponse; import static com.github.tomakehurst.wiremock.client.WireMock.get; -import static com.github.tomakehurst.wiremock.client.WireMock.urlEqualTo; +import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo; import static org.junit.jupiter.api.Assertions.assertEquals; import com.github.tomakehurst.wiremock.core.WireMockConfiguration; @@ -44,7 +44,7 @@ void exactUrlOnly() throws ApiException { V1Namespace ns1 = new V1Namespace().metadata(new V1ObjectMeta().name("name")); apiServer.stubFor( - get(urlEqualTo("/api/v1/namespaces/name")) + get(urlPathEqualTo("/api/v1/namespaces/name")) .willReturn( aResponse() .withHeader("Content-Type", "application/json") diff --git a/examples/pom.xml b/examples/pom.xml index 83e4ac3273..f3027125cc 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -1,26 +1,20 @@ - + 4.0.0 io.kubernetes client-java-parent - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT ../pom.xml - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT client-java-examples-parent pom client-java-examples-parent - examples-release-17 - examples-release-18 - examples-release-19 - examples-release-20 examples-release-latest @@ -31,13 +25,6 @@ maven-bundle-plugin true - - org.apache.maven.plugins - maven-deploy-plugin - - true - - diff --git a/extended/pom.xml b/extended/pom.xml index 1aaa83122b..b98035edf9 100644 --- a/extended/pom.xml +++ b/extended/pom.xml @@ -9,7 +9,7 @@ client-java-parent io.kubernetes - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT ../pom.xml @@ -19,11 +19,6 @@ client-java-api ${project.version} - - io.kubernetes - client-java-proto - ${project.version} - io.kubernetes client-java @@ -47,40 +42,27 @@ com.bucket4j bucket4j-core - - com.flipkart.zjsonpatch - zjsonpatch - com.github.ben-manes.caffeine caffeine - - org.junit.jupiter - junit-jupiter - test - org.mockito mockito-junit-jupiter test - com.github.stefanbirkner - system-lambda + org.junit.jupiter + junit-jupiter-params test + org.wiremock wiremock test - - org.apache.commons - commons-collections4 - test - org.assertj assertj-core @@ -93,7 +75,7 @@ org.jacoco jacoco-maven-plugin - 0.8.12 + 0.8.14 jacoco-initialize diff --git a/extended/src/main/java/io/kubernetes/client/extended/controller/ControllerWatch.java b/extended/src/main/java/io/kubernetes/client/extended/controller/ControllerWatch.java index e39fa41138..7c76553e18 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/controller/ControllerWatch.java +++ b/extended/src/main/java/io/kubernetes/client/extended/controller/ControllerWatch.java @@ -25,7 +25,7 @@ public interface ControllerWatch { /** * Gets the watching resource class. * - * @return the resouce class + * @return the resource class */ Class getResourceClass(); diff --git a/extended/src/main/java/io/kubernetes/client/extended/controller/builder/ControllerBuilder.java b/extended/src/main/java/io/kubernetes/client/extended/controller/builder/ControllerBuilder.java index a19707bc75..d8187ce6a4 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/controller/builder/ControllerBuilder.java +++ b/extended/src/main/java/io/kubernetes/client/extended/controller/builder/ControllerBuilder.java @@ -35,7 +35,7 @@ public static DefaultControllerBuilder defaultBuilder(SharedInformerFactory fact * Controller manager builder is for building controller-manager . * * @param factory the informer factory - * @return the controller mananger builder + * @return the controller manager builder */ public static ControllerManagerBuilder controllerManagerBuilder(SharedInformerFactory factory) { return new ControllerManagerBuilder(factory); diff --git a/extended/src/main/java/io/kubernetes/client/extended/controller/builder/ControllerManagerBuilder.java b/extended/src/main/java/io/kubernetes/client/extended/controller/builder/ControllerManagerBuilder.java index 8a54740044..602902cbd0 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/controller/builder/ControllerManagerBuilder.java +++ b/extended/src/main/java/io/kubernetes/client/extended/controller/builder/ControllerManagerBuilder.java @@ -18,12 +18,12 @@ import java.util.ArrayList; import java.util.List; -/** The type Controller mananger builder. */ +/** The type Controller manager builder. */ public class ControllerManagerBuilder { private SharedInformerFactory informerFactory; - /** Instantiates a new Controller mananger builder. */ + /** Instantiates a new Controller manager builder. */ ControllerManagerBuilder(SharedInformerFactory factory) { this.informerFactory = factory; this.controllerList = new ArrayList<>(); @@ -32,10 +32,10 @@ public class ControllerManagerBuilder { private List controllerList; /** - * Add controller controller mananger builder. + * Add controller controller manager builder. * * @param controller the controller - * @return the controller mananger builder + * @return the controller manager builder */ public ControllerManagerBuilder addController(Controller controller) { this.controllerList.add(controller); diff --git a/extended/src/main/java/io/kubernetes/client/extended/controller/builder/DefaultControllerBuilder.java b/extended/src/main/java/io/kubernetes/client/extended/controller/builder/DefaultControllerBuilder.java index 04e35cb2b7..a07fbbe568 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/controller/builder/DefaultControllerBuilder.java +++ b/extended/src/main/java/io/kubernetes/client/extended/controller/builder/DefaultControllerBuilder.java @@ -104,6 +104,9 @@ public DefaultControllerBuilder withName(String controllerName) { * @return the controller builder */ public DefaultControllerBuilder withWorkQueue(RateLimitingQueue workQueue) { + if (this.workQueue != null && !this.workQueue.isShuttingDown()){ + this.workQueue.shutDown(); + } this.workQueue = workQueue; return this; } diff --git a/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlGet.java b/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlGet.java index 19479f6a8d..263baf0a8a 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlGet.java +++ b/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlGet.java @@ -29,10 +29,12 @@ public class KubectlGet private ListOptions listOptions; private Class apiTypeClass; private Class apiTypeListClass; + private boolean allNamespaces; KubectlGet(Class apiTypeClass) { this.apiTypeClass = apiTypeClass; this.listOptions = new ListOptions(); + this.allNamespaces = false; } public KubectlGet apiListTypeClass( @@ -51,6 +53,11 @@ public KubectlGet namespace(String namespace) { return this; } + public KubectlGet allNamespaces() { + this.allNamespaces = true; + return this; + } + public KubectlGetSingle name(String name) { return new KubectlGetSingle(name); } @@ -64,7 +71,9 @@ public List execute() throws KubectlException { ? getGenericApi(apiTypeClass) : getGenericApi(apiTypeClass, apiTypeListClass); try { - if (isNamespaced()) { + if (allNamespaces) { + return (List) api.list(listOptions).throwsApiException().getObject().getItems(); + } else if (isNamespaced()) { return (List) api.list(namespace, listOptions).throwsApiException().getObject().getItems(); diff --git a/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlTop.java b/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlTop.java index 9afa9366be..7b9a12cfe3 100644 --- a/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlTop.java +++ b/extended/src/main/java/io/kubernetes/client/extended/kubectl/KubectlTop.java @@ -138,6 +138,9 @@ private static PodMetrics findPodMetric(V1Pod pod, PodMetricsList list) { public static double podMetricSum(PodMetrics podMetrics, String metricName) { double sum = 0; + if (podMetrics == null) { + return 0; + } for (ContainerMetrics containerMetrics : podMetrics.getContainers()) { Quantity value = containerMetrics.getUsage().get(metricName); if (value != null) { @@ -170,7 +173,11 @@ public int compare(V1Pod arg0, V1Pod arg1) { List> result = new ArrayList<>(); for (V1Pod pod : items) { - result.add(new ImmutablePair<>((ApiType) pod, (MetricsType) findPodMetric(pod, metrics))); + PodMetrics podMetrics = findPodMetric(pod, metrics); + if (podMetrics == null) { + continue; + } + result.add(new ImmutablePair<>((ApiType) pod, (MetricsType) podMetrics)); } return result; } diff --git a/extended/src/test/java/io/kubernetes/client/extended/controller/DefaultControllerTest.java b/extended/src/test/java/io/kubernetes/client/extended/controller/DefaultControllerTest.java index fb84907342..3b28dd6aa5 100644 --- a/extended/src/test/java/io/kubernetes/client/extended/controller/DefaultControllerTest.java +++ b/extended/src/test/java/io/kubernetes/client/extended/controller/DefaultControllerTest.java @@ -151,6 +151,10 @@ void controllerKeepsWorkingWhenReconcilerAbortsWithRuntimeException() AtomicBoolean resumed = new AtomicBoolean(false); List finishedRequests = new ArrayList<>(); final Semaphore latch = new Semaphore(1); + + // Grab the latch to block until an event is handled once. + latch.acquire(); + DefaultController testController = new DefaultController( "", diff --git a/extended/src/test/java/io/kubernetes/client/extended/kubectl/KubectlGetTest.java b/extended/src/test/java/io/kubernetes/client/extended/kubectl/KubectlGetTest.java index d3aad023d7..84c2ff799c 100644 --- a/extended/src/test/java/io/kubernetes/client/extended/kubectl/KubectlGetTest.java +++ b/extended/src/test/java/io/kubernetes/client/extended/kubectl/KubectlGetTest.java @@ -96,6 +96,56 @@ void getDefaultNamespacePods() throws KubectlException { assertThat(pods).hasSize(2); } + @Test + void getAllNamespacePodsWithAllNamespacesFlag() throws KubectlException { + V1PodList podList = + new V1PodList() + .items( + Arrays.asList( + new V1Pod().metadata(new V1ObjectMeta().namespace("default").name("foo1")), + new V1Pod().metadata(new V1ObjectMeta().namespace("kube-system").name("foo2")))); + apiServer.stubFor( + get(urlPathEqualTo("/api/v1/pods")) + .willReturn( + aResponse().withStatus(200).withBody(apiClient.getJSON().serialize(podList)))); + + List pods = + Kubectl.get(V1Pod.class) + .apiClient(apiClient) + .skipDiscovery() + .allNamespaces() + .execute(); + + apiServer.verify(1, getRequestedFor(urlPathEqualTo("/api/v1/pods"))); + assertThat(pods).hasSize(2); + } + + @Test + void getAllNamespacesFlagOverridesNamespace() throws KubectlException { + V1PodList podList = + new V1PodList() + .items( + Arrays.asList( + new V1Pod().metadata(new V1ObjectMeta().namespace("default").name("foo1")), + new V1Pod().metadata(new V1ObjectMeta().namespace("kube-system").name("foo2")))); + apiServer.stubFor( + get(urlPathEqualTo("/api/v1/pods")) + .willReturn( + aResponse().withStatus(200).withBody(apiClient.getJSON().serialize(podList)))); + + // When allNamespaces() is called, it should ignore the namespace setting + List pods = + Kubectl.get(V1Pod.class) + .apiClient(apiClient) + .skipDiscovery() + .namespace("default") + .allNamespaces() + .execute(); + + apiServer.verify(1, getRequestedFor(urlPathEqualTo("/api/v1/pods"))); + assertThat(pods).hasSize(2); + } + @Test void getDefaultNamespaceOnePod() throws KubectlException { V1Pod pod = new V1Pod().metadata(new V1ObjectMeta().namespace("default").name("foo1")); diff --git a/fluent-gen/pom.xml b/fluent-gen/pom.xml index c48098b6f3..5d21607366 100644 --- a/fluent-gen/pom.xml +++ b/fluent-gen/pom.xml @@ -9,7 +9,7 @@ io.kubernetes client-java-parent - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT ../pom.xml @@ -36,8 +36,8 @@ - javax.annotation - javax.annotation-api + jakarta.annotation + jakarta.annotation-api io.swagger diff --git a/fluent/pom.xml b/fluent/pom.xml index fc0a1f4e75..fb14085eb3 100644 --- a/fluent/pom.xml +++ b/fluent/pom.xml @@ -7,7 +7,7 @@ io.kubernetes client-java-parent - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT ../pom.xml @@ -17,17 +17,6 @@ client-java-api ${project.version} - - - org.junit.jupiter - junit-jupiter - test - - - org.mockito - mockito-junit-jupiter - test - diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java index bedf6ab2b0..d57bf4c22d 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java @@ -1,19 +1,36 @@ package io.kubernetes.client.fluent; -import java.util.LinkedHashSet; -import java.util.stream.Collectors; -import java.util.Set; -import java.util.Optional; -import java.util.ArrayList; -import java.util.Objects; import java.lang.Object; -import java.util.List; import java.lang.String; +import java.util.ArrayList; import java.util.Arrays; +import java.util.LinkedHashSet; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.Set; +import java.util.stream.Collectors; public class BaseFluent{ - + public static final String VISIT = "visit"; public final VisitableMap _visitables = new VisitableMap(); + + + public static List aggregate(List... lists) { + return new ArrayList(Arrays.stream(lists).filter(Objects::nonNull).collect(Collectors.toList())); + } + + public static Set aggregate(Set... sets) { + return new LinkedHashSet(Arrays.stream(sets).filter(Objects::nonNull).collect(Collectors.toSet())); + } + + public static List build(List> list) { + return list == null ? null : list.stream().map(Builder::build).collect(Collectors.toList()); + } + + public static Set build(Set> set) { + return set == null ? null : new LinkedHashSet(set.stream().map(Builder::build).collect(Collectors.toSet())); + } public static VisitableBuilder builderOf(T item) { if (item instanceof Editable) { @@ -38,20 +55,14 @@ public static VisitableBuilder builderOf(T item) { } } - public static List build(List> list) { - return list == null ? null : list.stream().map(Builder::build).collect(Collectors.toList()); - } - - public static Set build(Set> set) { - return set == null ? null : new LinkedHashSet(set.stream().map(Builder::build).collect(Collectors.toSet())); - } - - public static List aggregate(List... lists) { - return new ArrayList(Arrays.stream(lists).filter(Objects::nonNull).collect(Collectors.toList())); - } - - public static Set aggregate(Set... sets) { - return new LinkedHashSet(Arrays.stream(sets).filter(Objects::nonNull).collect(Collectors.toSet())); + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + return true; } public Optional getVisitableMap() { @@ -65,15 +76,4 @@ public int hashCode() { return result; } - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - return true; - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java b/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java index d9824c870e..e03d506017 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java @@ -3,9 +3,8 @@ import java.lang.FunctionalInterface; @FunctionalInterface public interface Builder{ - + T build(); - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java index 2c1807446b..513865222c 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java @@ -1,38 +1,39 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; import java.lang.Class; import java.lang.Object; -import java.util.List; import java.lang.String; +import java.util.List; +import java.util.Map.Entry; import java.util.function.Predicate; public class DelegatingVisitor implements Visitor{ + + private final Visitor delegate; + private final Class type; + DelegatingVisitor(Class type,Visitor delegate) { this.type = type; this.delegate = delegate; } - private final Class type; - private final Visitor delegate; + + public Predicate>> getRequirement() { + return delegate.getRequirement(); + } public Class getType() { return type; } - public void visit(T target) { - delegate.visit(target); - } - public int order() { return delegate.order(); } - public void visit(List> path,T target) { - delegate.visit(path, target); + public void visit(T target) { + delegate.visit(target); } - public Predicate>> getRequirement() { - return delegate.getRequirement(); + public void visit(List> path,T target) { + delegate.visit(path, target); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java b/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java index 5eb7423ea4..fd8ea0cb9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java @@ -1,9 +1,8 @@ package io.kubernetes.client.fluent; public interface Editable{ - + T edit(); - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java b/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java index fb100d52f0..160b185f55 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java @@ -1,9 +1,8 @@ package io.kubernetes.client.fluent; public interface Nested{ - + F and(); - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java index 3a185e0881..987ea1ad77 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java @@ -1,12 +1,16 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; import java.lang.Class; import java.lang.Object; -import java.util.List; import java.lang.String; import java.lang.reflect.Method; +import java.util.List; +import java.util.Map.Entry; public class PathAwareTypedVisitor extends TypedVisitor{ + + private final Class

parentType; + private final Class type; + PathAwareTypedVisitor() { List args = Visitors.getTypeArguments(PathAwareTypedVisitor.class, getClass()); if (args == null || args.isEmpty()) { @@ -15,8 +19,14 @@ public class PathAwareTypedVisitor extends TypedVisitor{ this.type = (Class) args.get(0); this.parentType = (Class

) args.get(1); } - private final Class type; - private final Class

parentType; + + public P getParent(List> path) { + return path.size() - 1 >= 0 ? (P) path.get(path.size() - 1) : null; + } + + public Class

getParentType() { + return parentType; + } public void visit(V element) { @@ -26,13 +36,4 @@ public void visit(List> path,V element) { visit(element); } - public P getParent(List> path) { - return path.size() - 1 >= 0 ? (P) path.get(path.size() - 1) : null; - } - - public Class

getParentType() { - return parentType; - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java index aa6806d083..85b635bb44 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java @@ -2,12 +2,11 @@ import java.lang.Class; public abstract class TypedVisitor implements Visitor{ - + public Class getType() { return (Class) Visitors.getTypeArguments(TypedVisitor.class, getClass()).get(0); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java index ddbdac942e..a233a03109 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java @@ -1,16 +1,24 @@ package io.kubernetes.client.fluent; -import java.util.AbstractMap; -import java.util.Map.Entry; -import java.util.Optional; -import java.util.ArrayList; import java.lang.Class; import java.lang.Object; -import java.util.List; import java.lang.String; +import java.util.AbstractMap; +import java.util.ArrayList; import java.util.Collections; +import java.util.List; +import java.util.Map.Entry; +import java.util.Optional; public interface Visitable{ + + default T accept(Visitor... visitors) { + return accept(Collections.emptyList(), visitors); + } + + default T accept(List> path,Visitor... visitors) { + return accept(path, "", visitors); + } default T accept(Class type,Visitor visitor) { return accept(Collections.emptyList(), new Visitor() { @@ -31,15 +39,7 @@ public void visit(V element) { }); } - default T accept(io.kubernetes.client.fluent.Visitor... visitors) { - return accept(Collections.emptyList(), visitors); - } - - default T accept(List> path,io.kubernetes.client.fluent.Visitor... visitors) { - return accept(path, "", visitors); - } - - default T accept(List> path,String currentKey,io.kubernetes.client.fluent.Visitor... visitors) { + default T accept(List> path,String currentKey,Visitor... visitors) { List sortedVisitor = new ArrayList<>(); for (Visitor visitor : visitors) { visitor = VisitorListener.wrap(visitor); @@ -88,5 +88,4 @@ default Optional getVisitableMap() { return Optional.empty(); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java index bca1a069e1..031137609c 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java @@ -1,7 +1,8 @@ package io.kubernetes.client.fluent; public interface VisitableBuilder> extends Builder,Visitable{ + + - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java index 8cbaa1d798..f994faa6fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java @@ -1,18 +1,26 @@ package io.kubernetes.client.fluent; -import java.util.stream.Collectors; import java.lang.Iterable; -import java.util.function.Consumer; -import java.util.HashMap; +import java.lang.Object; +import java.lang.String; import java.util.ArrayList; +import java.util.HashMap; import java.util.Iterator; -import java.lang.Object; import java.util.List; -import java.lang.String; import java.util.Spliterator; +import java.util.function.Consumer; +import java.util.stream.Collectors; public class VisitableMap extends HashMap>> implements Iterable>{ + + public List> aggregate() { + return values().stream().flatMap(l -> l.stream()).collect(Collectors.toList()); + } + + public void forEach(Consumer> action) { + aggregate().forEach(action); + } public List> get(Object key) { if (!containsKey(key)) { @@ -21,21 +29,12 @@ public List> get(Object key) { return super.get(key); } - public List> aggregate() { - return values().stream().flatMap(l -> l.stream()).collect(Collectors.toList()); - } - public Iterator> iterator() { return aggregate().iterator(); } - public void forEach(Consumer> action) { - aggregate().forEach(action); - } - public Spliterator spliterator() { return aggregate().spliterator(); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java index 3ccb13b5ee..260aab6201 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java @@ -1,33 +1,29 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; +import java.lang.Boolean; import java.lang.Class; import java.lang.FunctionalInterface; import java.lang.Object; -import java.util.List; import java.lang.String; import java.lang.reflect.Method; -import java.lang.Boolean; +import java.util.List; +import java.util.Map.Entry; import java.util.function.Predicate; @FunctionalInterface public interface Visitor{ + - - default Class getType() { - List args = Visitors.getTypeArguments(Visitor.class, getClass()); - if (args == null || args.isEmpty()) { - return null; - } - return (Class) args.get(0); - } - - void visit(T element); - default int order() { - return 0; + default Visitor addRequirement(Predicate predicate) { + return new DelegatingVisitor(getType(), this) { + @Override + public Predicate> getRequirement() { + return Visitor.this.getRequirement().and(predicate); + } + }; } - default void visit(List> path,T element) { - visit(element); + default

Visitor addRequirement(Class

type,Predicate

predicate) { + return addRequirement(predicate); } default Boolean canVisit(List> path,F target) { @@ -50,6 +46,24 @@ default Boolean canVisit(List> path,F target) { } } + default Predicate>> getRequirement() { + return p -> true; + } + + default Class getType() { + List args = Visitors.getTypeArguments(Visitor.class, getClass()); + if (args == null || args.isEmpty()) { + return null; + } + return (Class) args.get(0); + } + + default Predicate>> hasItem(Class type,Predicate predicate) { + Predicate>> result = l -> l.stream().map(Entry::getValue).filter(i -> type.isInstance(i)) + .map(i -> type.cast(i)).anyMatch(predicate); + return result; + } + default Boolean hasVisitMethodMatching(F target) { for (Method method : getClass().getMethods()) { if (!method.getName().equals("visit") || method.getParameterTypes().length != 1) { @@ -65,28 +79,13 @@ default Boolean hasVisitMethodMatching(F target) { return false; } - default Predicate>> getRequirement() { - return p -> true; - } - - default Predicate>> hasItem(Class type,Predicate predicate) { - Predicate>> result = l -> l.stream().map(Entry::getValue).filter(i -> type.isInstance(i)) - .map(i -> type.cast(i)).anyMatch(predicate); - return result; - } - - default

Visitor addRequirement(Class

type,Predicate

predicate) { - return addRequirement(predicate); + default int order() { + return 0; } - default Visitor addRequirement(Predicate predicate) { - return new DelegatingVisitor(getType(), this) { - @Override - public Predicate> getRequirement() { - return Visitor.this.getRequirement().and(predicate); - } - }; + void visit(T element); + default void visit(List> path,T element) { + visit(element); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java index 9060426abe..8129abf996 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java @@ -1,16 +1,25 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; -import java.util.ServiceLoader; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.Set; import java.lang.Object; -import java.util.List; import java.lang.String; import java.util.HashSet; +import java.util.List; +import java.util.Map.Entry; +import java.util.ServiceLoader; +import java.util.Set; +import java.util.concurrent.atomic.AtomicBoolean; public interface VisitorListener{ - static AtomicBoolean loaded = new AtomicBoolean(); + static Set listeners = new HashSet<>(); + static AtomicBoolean loaded = new AtomicBoolean(); + + default void afterVisit(Visitor v,List> path,T target) { + + } + + default void beforeVisit(Visitor v,List> path,T target) { + + } public static Set getListeners() { if (loaded.get()) { @@ -34,8 +43,8 @@ public static Set getListeners() { return listeners; } - public static Visitor wrap(Visitor visitor) { - return VisitorWiretap.create(visitor, getListeners()); + default void onCheck(Visitor v,boolean canVisit,T target) { + } public static void register(VisitorListener listener) { @@ -46,17 +55,8 @@ public static void unregister(VisitorListener listener) { listeners.add(listener); } - default void beforeVisit(Visitor v,List> path,T target) { - - } - - default void afterVisit(Visitor v,List> path,T target) { - - } - - default void onCheck(Visitor v,boolean canVisit,T target) { - + public static Visitor wrap(Visitor visitor) { + return VisitorWiretap.create(visitor, getListeners()); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java index d00e7725e4..9244050c9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java @@ -1,21 +1,32 @@ package io.kubernetes.client.fluent; -import java.util.Map.Entry; -import java.util.Collection; +import java.lang.Boolean; import java.lang.Class; import java.lang.Object; -import java.util.List; import java.lang.String; -import java.lang.Boolean; +import java.util.Collection; import java.util.Collections; +import java.util.List; +import java.util.Map.Entry; import java.util.function.Predicate; public final class VisitorWiretap implements Visitor{ + + private final Visitor delegate; + private final Collection listeners; + private VisitorWiretap(Visitor delegate,Collection listeners) { this.delegate = delegate; this.listeners = listeners; } - private final Collection listeners; - private final Visitor delegate; + + public Boolean canVisit(List> path,F target) { + boolean canVisit = delegate.canVisit(path, target); + for (VisitorListener l : listeners) { + l.onCheck(delegate, canVisit, target); + } + + return canVisit; + } public static VisitorWiretap create(Visitor visitor,Collection listeners) { if (visitor instanceof VisitorWiretap) { @@ -28,6 +39,10 @@ public Class getType() { return delegate.getType(); } + public int order() { + return delegate.order(); + } + public void visit(T target) { for (VisitorListener l : listeners) { l.beforeVisit(delegate, Collections.emptyList(), target); @@ -38,10 +53,6 @@ public void visit(T target) { } } - public int order() { - return delegate.order(); - } - public void visit(List> path,T target) { for (VisitorListener l : listeners) { l.beforeVisit(delegate, path, target); @@ -52,14 +63,4 @@ public void visit(List> path,T target) { } } - public Boolean canVisit(List> path,F target) { - boolean canVisit = delegate.canVisit(path, target); - for (VisitorListener l : listeners) { - l.onCheck(delegate, canVisit, target); - } - - return canVisit; - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java index e030bb4311..015a0d7a0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java @@ -1,26 +1,67 @@ package io.kubernetes.client.fluent; -import java.util.Optional; -import java.util.ArrayList; +import java.lang.Class; import java.lang.String; -import java.lang.reflect.GenericArrayType; -import java.util.LinkedHashMap; import java.lang.reflect.Array; +import java.lang.reflect.GenericArrayType; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; -import java.lang.Class; -import java.util.List; +import java.util.ArrayList; import java.util.Arrays; +import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; +import java.util.Optional; public final class Visitors{ + + private Visitors() { //Utility Class } + + private static Class getClass(Type type) { + if (type instanceof Class) { + return (Class) type; + } else if (type instanceof ParameterizedType) { + return getClass(((ParameterizedType) type).getRawType()); + } else if (type instanceof GenericArrayType) { + Type componentType = ((GenericArrayType) type).getGenericComponentType(); + Class componentClass = getClass(componentType); + if (componentClass != null) { + return Array.newInstance(componentClass, 0).getClass(); + } else { + return null; + } + } else { + return null; + } + } + private static Optional getMatchingInterface(Class targetInterface,Type... candidates) { + if (candidates == null || candidates.length == 0) { + return Optional.empty(); + } + Optional match = Arrays.stream(candidates).filter(c -> getRawName(c).equals(targetInterface.getTypeName())) + .findFirst(); + if (match.isPresent()) { + return match; + } else { + for (Type candidate : candidates) { + if (candidate instanceof Class) { + Class c = (Class) candidate; + Optional next = getMatchingInterface(targetInterface, c.getGenericInterfaces()); + if (next.isPresent()) { + return Optional.of(c); + } + } + } + return Optional.empty(); + } + } - public static Visitor newVisitor(Class type,Visitor visitor) { - return new DelegatingVisitor(type, visitor); + private static String getRawName(Type type) { + return type instanceof ParameterizedType ? ((ParameterizedType) type).getRawType().getTypeName() : type.getTypeName(); } protected static List getTypeArguments(Class baseClass,Class childClass) { @@ -79,49 +120,8 @@ protected static List getTypeArguments(Class baseClass,Class getClass(Type type) { - if (type instanceof Class) { - return (Class) type; - } else if (type instanceof ParameterizedType) { - return getClass(((ParameterizedType) type).getRawType()); - } else if (type instanceof GenericArrayType) { - Type componentType = ((GenericArrayType) type).getGenericComponentType(); - Class componentClass = getClass(componentType); - if (componentClass != null) { - return Array.newInstance(componentClass, 0).getClass(); - } else { - return null; - } - } else { - return null; - } - } - - private static Optional getMatchingInterface(Class targetInterface,java.lang.reflect.Type... candidates) { - if (candidates == null || candidates.length == 0) { - return Optional.empty(); - } - Optional match = Arrays.stream(candidates).filter(c -> getRawName(c).equals(targetInterface.getTypeName())) - .findFirst(); - if (match.isPresent()) { - return match; - } else { - for (Type candidate : candidates) { - if (candidate instanceof Class) { - Class c = (Class) candidate; - Optional next = getMatchingInterface(targetInterface, c.getGenericInterfaces()); - if (next.isPresent()) { - return Optional.of(c); - } - } - } - return Optional.empty(); - } + public static Visitor newVisitor(Class type,Visitor visitor) { + return new DelegatingVisitor(type, visitor); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java index c480f6f358..75268cdd98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java @@ -1,76 +1,87 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class AbstractOpenApiSchemaFluent> extends BaseFluent{ +public class AbstractOpenApiSchemaFluent> extends BaseFluent{ + + private Boolean isNullable; + private String schemaType; + public AbstractOpenApiSchemaFluent() { } public AbstractOpenApiSchemaFluent(AbstractOpenApiSchema instance) { this.copyInstance(instance); } - private Boolean isNullable; - private String schemaType; - + protected void copyInstance(AbstractOpenApiSchema instance) { if (instance != null) { - this.withSchemaType(instance.getSchemaType()); - } + this.withSchemaType(instance.getSchemaType()); + } } - public Boolean getIsNullable() { - return this.isNullable; - } - - public A withIsNullable(Boolean isNullable) { - this.isNullable = isNullable; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o; + if (!(Objects.equals(isNullable, that.isNullable))) { + return false; + } + if (!(Objects.equals(schemaType, that.schemaType))) { + return false; + } + return true; } - public boolean hasIsNullable() { - return this.isNullable != null; + public Boolean getIsNullable() { + return this.isNullable; } public String getSchemaType() { return this.schemaType; } - public A withSchemaType(String schemaType) { - this.schemaType = schemaType; - return (A) this; + public boolean hasIsNullable() { + return this.isNullable != null; } public boolean hasSchemaType() { return this.schemaType != 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; - AbstractOpenApiSchemaFluent that = (AbstractOpenApiSchemaFluent) o; - if (!java.util.Objects.equals(isNullable, that.isNullable)) return false; - if (!java.util.Objects.equals(schemaType, that.schemaType)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(isNullable, schemaType, super.hashCode()); + return Objects.hash(isNullable, schemaType); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (isNullable != null) { sb.append("isNullable:"); sb.append(isNullable + ","); } - if (schemaType != null) { sb.append("schemaType:"); sb.append(schemaType); } + if (!(isNullable == null)) { + sb.append("isNullable:"); + sb.append(isNullable); + sb.append(","); + } + if (!(schemaType == null)) { + sb.append("schemaType:"); + sb.append(schemaType); + } sb.append("}"); return sb.toString(); } @@ -79,5 +90,14 @@ public A withIsNullable() { return withIsNullable(true); } - + public A withIsNullable(Boolean isNullable) { + this.isNullable = isNullable; + return (A) this; + } + + public A withSchemaType(String schemaType) { + this.schemaType = schemaType; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java index 8eb0f4d786..dea31b7892 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class AdmissionregistrationV1ServiceReferenceBuilder extends AdmissionregistrationV1ServiceReferenceFluent implements VisitableBuilder{ + + AdmissionregistrationV1ServiceReferenceFluent fluent; + public AdmissionregistrationV1ServiceReferenceBuilder() { this(new AdmissionregistrationV1ServiceReference()); } @@ -10,17 +14,16 @@ public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1Ser this(fluent, new AdmissionregistrationV1ServiceReference()); } - public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent fluent,AdmissionregistrationV1ServiceReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReference instance) { this.fluent = this; this.copyInstance(instance); } - AdmissionregistrationV1ServiceReferenceFluent fluent; + public AdmissionregistrationV1ServiceReferenceBuilder(AdmissionregistrationV1ServiceReferenceFluent fluent,AdmissionregistrationV1ServiceReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public AdmissionregistrationV1ServiceReference build() { AdmissionregistrationV1ServiceReference buildable = new AdmissionregistrationV1ServiceReference(); buildable.setName(fluent.getName()); @@ -30,5 +33,4 @@ public AdmissionregistrationV1ServiceReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java index 9796629ebd..1acf807561 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java @@ -1,115 +1,147 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class AdmissionregistrationV1ServiceReferenceFluent> extends BaseFluent{ +public class AdmissionregistrationV1ServiceReferenceFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String path; + private Integer port; + public AdmissionregistrationV1ServiceReferenceFluent() { } public AdmissionregistrationV1ServiceReferenceFluent(AdmissionregistrationV1ServiceReference instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String path; - private Integer port; - + protected void copyInstance(AdmissionregistrationV1ServiceReference instance) { - instance = (instance != null ? instance : new AdmissionregistrationV1ServiceReference()); + instance = instance != null ? instance : new AdmissionregistrationV1ServiceReference(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withPath(instance.getPath()); - this.withPort(instance.getPort()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withPath(instance.getPath()); + this.withPort(instance.getPort()); + } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + AdmissionregistrationV1ServiceReferenceFluent that = (AdmissionregistrationV1ServiceReferenceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } 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 getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + public Integer getPort() { + return this.port; } - public boolean hasPath() { - return this.path != null; + public boolean hasName() { + return this.name != null; } - public Integer getPort() { - return this.port; + public boolean hasNamespace() { + return this.namespace != null; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + public boolean hasPath() { + return this.path != null; } public boolean hasPort() { return this.port != 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; - AdmissionregistrationV1ServiceReferenceFluent that = (AdmissionregistrationV1ServiceReferenceFluent) 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(path, that.path)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); + return Objects.hash(name, namespace, path, port); } 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 (path != null) { sb.append("path:"); sb.append(path + ","); } - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java index 5aa59fe2a1..c40ef3494c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class AdmissionregistrationV1WebhookClientConfigBuilder extends AdmissionregistrationV1WebhookClientConfigFluent implements VisitableBuilder{ + + AdmissionregistrationV1WebhookClientConfigFluent fluent; + public AdmissionregistrationV1WebhookClientConfigBuilder() { this(new AdmissionregistrationV1WebhookClientConfig()); } @@ -10,17 +14,16 @@ public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1 this(fluent, new AdmissionregistrationV1WebhookClientConfig()); } - public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfigFluent fluent,AdmissionregistrationV1WebhookClientConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfig instance) { this.fluent = this; this.copyInstance(instance); } - AdmissionregistrationV1WebhookClientConfigFluent fluent; + public AdmissionregistrationV1WebhookClientConfigBuilder(AdmissionregistrationV1WebhookClientConfigFluent fluent,AdmissionregistrationV1WebhookClientConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public AdmissionregistrationV1WebhookClientConfig build() { AdmissionregistrationV1WebhookClientConfig buildable = new AdmissionregistrationV1WebhookClientConfig(); buildable.setCaBundle(fluent.getCaBundle()); @@ -29,5 +32,4 @@ public AdmissionregistrationV1WebhookClientConfig build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java index d84420cd45..acaaeeaabf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java @@ -1,118 +1,204 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.List; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class AdmissionregistrationV1WebhookClientConfigFluent> extends BaseFluent{ +public class AdmissionregistrationV1WebhookClientConfigFluent> extends BaseFluent{ + + private List caBundle; + private AdmissionregistrationV1ServiceReferenceBuilder service; + private String url; + public AdmissionregistrationV1WebhookClientConfigFluent() { } public AdmissionregistrationV1WebhookClientConfigFluent(AdmissionregistrationV1WebhookClientConfig instance) { this.copyInstance(instance); } - private List caBundle; - private AdmissionregistrationV1ServiceReferenceBuilder service; - private String url; + + public A addAllToCaBundle(Collection items) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; + } + + public A addToCaBundle(Byte... items) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; + } + + public A addToCaBundle(int index,Byte item) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.add(index, item); + return (A) this; + } + + public AdmissionregistrationV1ServiceReference buildService() { + return this.service != null ? this.service.build() : null; + } protected void copyInstance(AdmissionregistrationV1WebhookClientConfig instance) { - instance = (instance != null ? instance : new AdmissionregistrationV1WebhookClientConfig()); + instance = instance != null ? instance : new AdmissionregistrationV1WebhookClientConfig(); if (instance != null) { - this.withCaBundle(instance.getCaBundle()); - this.withService(instance.getService()); - this.withUrl(instance.getUrl()); - } + this.withCaBundle(instance.getCaBundle()); + this.withService(instance.getService()); + this.withUrl(instance.getUrl()); + } } - public A withCaBundle(byte... caBundle) { - if (this.caBundle != null) { - this.caBundle.clear(); - _visitables.remove("caBundle"); + public ServiceNested editOrNewService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new AdmissionregistrationV1ServiceReferenceBuilder().build())); + } + + public ServiceNested editOrNewServiceLike(AdmissionregistrationV1ServiceReference item) { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); + } + + public ServiceNested editService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - if (caBundle != null) { - for (byte item : caBundle) { - this.addToCaBundle(item); - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + AdmissionregistrationV1WebhookClientConfigFluent that = (AdmissionregistrationV1WebhookClientConfigFluent) o; + if (!(Objects.equals(caBundle, that.caBundle))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } + if (!(Objects.equals(url, that.url))) { + return false; + } + return true; } public byte[] getCaBundle() { - int size = caBundle != null ? caBundle.size() : 0;; - byte[] result = new byte[size];; + int size = caBundle != null ? caBundle.size() : 0; + byte[] result = new byte[size]; if (size == 0) { return result; } - int index = 0;; + int index = 0; for (byte item : caBundle) { result[index++] = item; } return result; } - public A addToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - this.caBundle.add(index, item); - return (A)this; + public String getUrl() { + return this.url; } - public A setToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - this.caBundle.set(index, item); return (A)this; + public boolean hasCaBundle() { + return this.caBundle != null && !(this.caBundle.isEmpty()); } - public A addToCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + public boolean hasService() { + return this.service != null; } - public A addAllToCaBundle(Collection items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + public boolean hasUrl() { + return this.url != null; } - public A removeFromCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + public int hashCode() { + return Objects.hash(caBundle, service, url); } public A removeAllFromCaBundle(Collection items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } - public boolean hasCaBundle() { - return this.caBundle != null && !this.caBundle.isEmpty(); + public A removeFromCaBundle(Byte... items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } - public AdmissionregistrationV1ServiceReference buildService() { - return this.service != null ? this.service.build() : null; + public A setToCaBundle(int index,Byte item) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.set(index, item); + return (A) this; } - public A withService(AdmissionregistrationV1ServiceReference service) { - this._visitables.remove("service"); - if (service != null) { - this.service = new AdmissionregistrationV1ServiceReferenceBuilder(service); - this._visitables.get("service").add(this.service); - } else { - this.service = null; - this._visitables.get("service").remove(this.service); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(caBundle == null) && !(caBundle.isEmpty())) { + sb.append("caBundle:"); + sb.append(caBundle); + sb.append(","); } - return (A) this; + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + sb.append(","); + } + if (!(url == null)) { + sb.append("url:"); + sb.append(url); + } + sb.append("}"); + return sb.toString(); } - public boolean hasService() { - return this.service != null; + public A withCaBundle(byte... caBundle) { + if (this.caBundle != null) { + this.caBundle.clear(); + _visitables.remove("caBundle"); + } + if (caBundle != null) { + for (byte item : caBundle) { + this.addToCaBundle(item); + } + } + return (A) this; } public ServiceNested withNewService() { @@ -123,61 +209,30 @@ public ServiceNested withNewServiceLike(AdmissionregistrationV1ServiceReferen return new ServiceNested(item); } - public ServiceNested editService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(null)); - } - - public ServiceNested editOrNewService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(new AdmissionregistrationV1ServiceReferenceBuilder().build())); - } - - public ServiceNested editOrNewServiceLike(AdmissionregistrationV1ServiceReference item) { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(item)); - } - - public String getUrl() { - return this.url; + public A withService(AdmissionregistrationV1ServiceReference service) { + this._visitables.remove("service"); + if (service != null) { + this.service = new AdmissionregistrationV1ServiceReferenceBuilder(service); + this._visitables.get("service").add(this.service); + } else { + this.service = null; + this._visitables.get("service").remove(this.service); + } + return (A) this; } public A withUrl(String url) { this.url = url; return (A) this; } + public class ServiceNested extends AdmissionregistrationV1ServiceReferenceFluent> implements Nested{ - public boolean hasUrl() { - return this.url != 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; - AdmissionregistrationV1WebhookClientConfigFluent that = (AdmissionregistrationV1WebhookClientConfigFluent) o; - if (!java.util.Objects.equals(caBundle, that.caBundle)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; - if (!java.util.Objects.equals(url, that.url)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(caBundle, service, url, super.hashCode()); - } + AdmissionregistrationV1ServiceReferenceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); } - if (service != null) { sb.append("service:"); sb.append(service + ","); } - if (url != null) { sb.append("url:"); sb.append(url); } - sb.append("}"); - return sb.toString(); - } - public class ServiceNested extends AdmissionregistrationV1ServiceReferenceFluent> implements Nested{ ServiceNested(AdmissionregistrationV1ServiceReference item) { this.builder = new AdmissionregistrationV1ServiceReferenceBuilder(this, item); } - AdmissionregistrationV1ServiceReferenceBuilder builder; - + public N and() { return (N) AdmissionregistrationV1WebhookClientConfigFluent.this.withService(builder.build()); } @@ -186,7 +241,5 @@ public N endService() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java index 8a71cbaa1a..ccd696e9f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class ApiextensionsV1ServiceReferenceBuilder extends ApiextensionsV1ServiceReferenceFluent implements VisitableBuilder{ + + ApiextensionsV1ServiceReferenceFluent fluent; + public ApiextensionsV1ServiceReferenceBuilder() { this(new ApiextensionsV1ServiceReference()); } @@ -10,17 +14,16 @@ public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFlu this(fluent, new ApiextensionsV1ServiceReference()); } - public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,ApiextensionsV1ServiceReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReference instance) { this.fluent = this; this.copyInstance(instance); } - ApiextensionsV1ServiceReferenceFluent fluent; + public ApiextensionsV1ServiceReferenceBuilder(ApiextensionsV1ServiceReferenceFluent fluent,ApiextensionsV1ServiceReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public ApiextensionsV1ServiceReference build() { ApiextensionsV1ServiceReference buildable = new ApiextensionsV1ServiceReference(); buildable.setName(fluent.getName()); @@ -30,5 +33,4 @@ public ApiextensionsV1ServiceReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java index 1edcd968da..d181a6768c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java @@ -1,115 +1,147 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class ApiextensionsV1ServiceReferenceFluent> extends BaseFluent{ +public class ApiextensionsV1ServiceReferenceFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String path; + private Integer port; + public ApiextensionsV1ServiceReferenceFluent() { } public ApiextensionsV1ServiceReferenceFluent(ApiextensionsV1ServiceReference instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String path; - private Integer port; - + protected void copyInstance(ApiextensionsV1ServiceReference instance) { - instance = (instance != null ? instance : new ApiextensionsV1ServiceReference()); + instance = instance != null ? instance : new ApiextensionsV1ServiceReference(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withPath(instance.getPath()); - this.withPort(instance.getPort()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withPath(instance.getPath()); + this.withPort(instance.getPort()); + } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + ApiextensionsV1ServiceReferenceFluent that = (ApiextensionsV1ServiceReferenceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } 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 getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + public Integer getPort() { + return this.port; } - public boolean hasPath() { - return this.path != null; + public boolean hasName() { + return this.name != null; } - public Integer getPort() { - return this.port; + public boolean hasNamespace() { + return this.namespace != null; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + public boolean hasPath() { + return this.path != null; } public boolean hasPort() { return this.port != 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; - ApiextensionsV1ServiceReferenceFluent that = (ApiextensionsV1ServiceReferenceFluent) 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(path, that.path)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, namespace, path, port, super.hashCode()); + return Objects.hash(name, namespace, path, port); } 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 (path != null) { sb.append("path:"); sb.append(path + ","); } - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java index a49e24858f..2ffa741a61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class ApiextensionsV1WebhookClientConfigBuilder extends ApiextensionsV1WebhookClientConfigFluent implements VisitableBuilder{ + + ApiextensionsV1WebhookClientConfigFluent fluent; + public ApiextensionsV1WebhookClientConfigBuilder() { this(new ApiextensionsV1WebhookClientConfig()); } @@ -10,17 +14,16 @@ public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientCon this(fluent, new ApiextensionsV1WebhookClientConfig()); } - public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfigFluent fluent,ApiextensionsV1WebhookClientConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfig instance) { this.fluent = this; this.copyInstance(instance); } - ApiextensionsV1WebhookClientConfigFluent fluent; + public ApiextensionsV1WebhookClientConfigBuilder(ApiextensionsV1WebhookClientConfigFluent fluent,ApiextensionsV1WebhookClientConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public ApiextensionsV1WebhookClientConfig build() { ApiextensionsV1WebhookClientConfig buildable = new ApiextensionsV1WebhookClientConfig(); buildable.setCaBundle(fluent.getCaBundle()); @@ -29,5 +32,4 @@ public ApiextensionsV1WebhookClientConfig build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java index 9ac6fd8474..fbff12bc7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java @@ -1,118 +1,204 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.List; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class ApiextensionsV1WebhookClientConfigFluent> extends BaseFluent{ +public class ApiextensionsV1WebhookClientConfigFluent> extends BaseFluent{ + + private List caBundle; + private ApiextensionsV1ServiceReferenceBuilder service; + private String url; + public ApiextensionsV1WebhookClientConfigFluent() { } public ApiextensionsV1WebhookClientConfigFluent(ApiextensionsV1WebhookClientConfig instance) { this.copyInstance(instance); } - private List caBundle; - private ApiextensionsV1ServiceReferenceBuilder service; - private String url; + + public A addAllToCaBundle(Collection items) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; + } + + public A addToCaBundle(Byte... items) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + for (Byte item : items) { + this.caBundle.add(item); + } + return (A) this; + } + + public A addToCaBundle(int index,Byte item) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.add(index, item); + return (A) this; + } + + public ApiextensionsV1ServiceReference buildService() { + return this.service != null ? this.service.build() : null; + } protected void copyInstance(ApiextensionsV1WebhookClientConfig instance) { - instance = (instance != null ? instance : new ApiextensionsV1WebhookClientConfig()); + instance = instance != null ? instance : new ApiextensionsV1WebhookClientConfig(); if (instance != null) { - this.withCaBundle(instance.getCaBundle()); - this.withService(instance.getService()); - this.withUrl(instance.getUrl()); - } + this.withCaBundle(instance.getCaBundle()); + this.withService(instance.getService()); + this.withUrl(instance.getUrl()); + } } - public A withCaBundle(byte... caBundle) { - if (this.caBundle != null) { - this.caBundle.clear(); - _visitables.remove("caBundle"); + public ServiceNested editOrNewService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new ApiextensionsV1ServiceReferenceBuilder().build())); + } + + public ServiceNested editOrNewServiceLike(ApiextensionsV1ServiceReference item) { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); + } + + public ServiceNested editService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - if (caBundle != null) { - for (byte item : caBundle) { - this.addToCaBundle(item); - } + if (o == null || this.getClass() != o.getClass()) { + return false; } - return (A) this; + if (!(super.equals(o))) { + return false; + } + ApiextensionsV1WebhookClientConfigFluent that = (ApiextensionsV1WebhookClientConfigFluent) o; + if (!(Objects.equals(caBundle, that.caBundle))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } + if (!(Objects.equals(url, that.url))) { + return false; + } + return true; } public byte[] getCaBundle() { - int size = caBundle != null ? caBundle.size() : 0;; - byte[] result = new byte[size];; + int size = caBundle != null ? caBundle.size() : 0; + byte[] result = new byte[size]; if (size == 0) { return result; } - int index = 0;; + int index = 0; for (byte item : caBundle) { result[index++] = item; } return result; } - public A addToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - this.caBundle.add(index, item); - return (A)this; + public String getUrl() { + return this.url; } - public A setToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - this.caBundle.set(index, item); return (A)this; + public boolean hasCaBundle() { + return this.caBundle != null && !(this.caBundle.isEmpty()); } - public A addToCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + public boolean hasService() { + return this.service != null; } - public A addAllToCaBundle(Collection items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + public boolean hasUrl() { + return this.url != null; } - public A removeFromCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + public int hashCode() { + return Objects.hash(caBundle, service, url); } public A removeAllFromCaBundle(Collection items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } - public boolean hasCaBundle() { - return this.caBundle != null && !this.caBundle.isEmpty(); + public A removeFromCaBundle(Byte... items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } - public ApiextensionsV1ServiceReference buildService() { - return this.service != null ? this.service.build() : null; + public A setToCaBundle(int index,Byte item) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.set(index, item); + return (A) this; } - public A withService(ApiextensionsV1ServiceReference service) { - this._visitables.remove("service"); - if (service != null) { - this.service = new ApiextensionsV1ServiceReferenceBuilder(service); - this._visitables.get("service").add(this.service); - } else { - this.service = null; - this._visitables.get("service").remove(this.service); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(caBundle == null) && !(caBundle.isEmpty())) { + sb.append("caBundle:"); + sb.append(caBundle); + sb.append(","); } - return (A) this; + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + sb.append(","); + } + if (!(url == null)) { + sb.append("url:"); + sb.append(url); + } + sb.append("}"); + return sb.toString(); } - public boolean hasService() { - return this.service != null; + public A withCaBundle(byte... caBundle) { + if (this.caBundle != null) { + this.caBundle.clear(); + _visitables.remove("caBundle"); + } + if (caBundle != null) { + for (byte item : caBundle) { + this.addToCaBundle(item); + } + } + return (A) this; } public ServiceNested withNewService() { @@ -123,61 +209,30 @@ public ServiceNested withNewServiceLike(ApiextensionsV1ServiceReference item) return new ServiceNested(item); } - public ServiceNested editService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(null)); - } - - public ServiceNested editOrNewService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(new ApiextensionsV1ServiceReferenceBuilder().build())); - } - - public ServiceNested editOrNewServiceLike(ApiextensionsV1ServiceReference item) { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(item)); - } - - public String getUrl() { - return this.url; + public A withService(ApiextensionsV1ServiceReference service) { + this._visitables.remove("service"); + if (service != null) { + this.service = new ApiextensionsV1ServiceReferenceBuilder(service); + this._visitables.get("service").add(this.service); + } else { + this.service = null; + this._visitables.get("service").remove(this.service); + } + return (A) this; } public A withUrl(String url) { this.url = url; return (A) this; } + public class ServiceNested extends ApiextensionsV1ServiceReferenceFluent> implements Nested{ - public boolean hasUrl() { - return this.url != 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; - ApiextensionsV1WebhookClientConfigFluent that = (ApiextensionsV1WebhookClientConfigFluent) o; - if (!java.util.Objects.equals(caBundle, that.caBundle)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; - if (!java.util.Objects.equals(url, that.url)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(caBundle, service, url, super.hashCode()); - } + ApiextensionsV1ServiceReferenceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); } - if (service != null) { sb.append("service:"); sb.append(service + ","); } - if (url != null) { sb.append("url:"); sb.append(url); } - sb.append("}"); - return sb.toString(); - } - public class ServiceNested extends ApiextensionsV1ServiceReferenceFluent> implements Nested{ ServiceNested(ApiextensionsV1ServiceReference item) { this.builder = new ApiextensionsV1ServiceReferenceBuilder(this, item); } - ApiextensionsV1ServiceReferenceBuilder builder; - + public N and() { return (N) ApiextensionsV1WebhookClientConfigFluent.this.withService(builder.build()); } @@ -186,7 +241,5 @@ public N endService() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java index 74490c67a7..92d5e4eec7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class ApiregistrationV1ServiceReferenceBuilder extends ApiregistrationV1ServiceReferenceFluent implements VisitableBuilder{ + + ApiregistrationV1ServiceReferenceFluent fluent; + public ApiregistrationV1ServiceReferenceBuilder() { this(new ApiregistrationV1ServiceReference()); } @@ -10,17 +14,16 @@ public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenc this(fluent, new ApiregistrationV1ServiceReference()); } - public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenceFluent fluent,ApiregistrationV1ServiceReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReference instance) { this.fluent = this; this.copyInstance(instance); } - ApiregistrationV1ServiceReferenceFluent fluent; + public ApiregistrationV1ServiceReferenceBuilder(ApiregistrationV1ServiceReferenceFluent fluent,ApiregistrationV1ServiceReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public ApiregistrationV1ServiceReference build() { ApiregistrationV1ServiceReference buildable = new ApiregistrationV1ServiceReference(); buildable.setName(fluent.getName()); @@ -29,5 +32,4 @@ public ApiregistrationV1ServiceReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java index 066259ab41..ed484d9ee9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java @@ -1,98 +1,124 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class ApiregistrationV1ServiceReferenceFluent> extends BaseFluent{ +public class ApiregistrationV1ServiceReferenceFluent> extends BaseFluent{ + + private String name; + private String namespace; + private Integer port; + public ApiregistrationV1ServiceReferenceFluent() { } public ApiregistrationV1ServiceReferenceFluent(ApiregistrationV1ServiceReference instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private Integer port; - + protected void copyInstance(ApiregistrationV1ServiceReference instance) { - instance = (instance != null ? instance : new ApiregistrationV1ServiceReference()); + instance = instance != null ? instance : new ApiregistrationV1ServiceReference(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withPort(instance.getPort()); - } - } - - public String getName() { - return this.name; + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withPort(instance.getPort()); + } } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + ApiregistrationV1ServiceReferenceFluent that = (ApiregistrationV1ServiceReferenceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } 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 Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + public boolean hasName() { + return this.name != null; } - public boolean hasPort() { - return this.port != null; + 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; - ApiregistrationV1ServiceReferenceFluent that = (ApiregistrationV1ServiceReferenceFluent) 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(port, that.port)) return false; - return true; + public boolean hasPort() { + return this.port != null; } public int hashCode() { - return java.util.Objects.hash(name, namespace, port, super.hashCode()); + return Objects.hash(name, namespace, port); } 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 (port != null) { sb.append("port:"); sb.append(port); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java index c0595e25c9..c332a2cc19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class AuthenticationV1TokenRequestBuilder extends AuthenticationV1TokenRequestFluent implements VisitableBuilder{ + + AuthenticationV1TokenRequestFluent fluent; + public AuthenticationV1TokenRequestBuilder() { this(new AuthenticationV1TokenRequest()); } @@ -10,17 +14,16 @@ public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent this(fluent, new AuthenticationV1TokenRequest()); } - public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent fluent,AuthenticationV1TokenRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequest instance) { this.fluent = this; this.copyInstance(instance); } - AuthenticationV1TokenRequestFluent fluent; + public AuthenticationV1TokenRequestBuilder(AuthenticationV1TokenRequestFluent fluent,AuthenticationV1TokenRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public AuthenticationV1TokenRequest build() { AuthenticationV1TokenRequest buildable = new AuthenticationV1TokenRequest(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public AuthenticationV1TokenRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java index d1a26bbc3b..8a836d4b4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class AuthenticationV1TokenRequestFluent> extends BaseFluent{ +public class AuthenticationV1TokenRequestFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1TokenRequestSpecBuilder spec; + private V1TokenRequestStatusBuilder status; + public AuthenticationV1TokenRequestFluent() { } public AuthenticationV1TokenRequestFluent(AuthenticationV1TokenRequest instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1TokenRequestSpecBuilder spec; - private V1TokenRequestStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1TokenRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1TokenRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(AuthenticationV1TokenRequest instance) { - instance = (instance != null ? instance : new AuthenticationV1TokenRequest()); + instance = instance != null ? instance : new AuthenticationV1TokenRequest(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1TokenRequestSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1TokenRequestSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1TokenRequestStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1TokenRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + AuthenticationV1TokenRequestFluent that = (AuthenticationV1TokenRequestFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1TokenRequestSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1TokenRequestSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1TokenRequestStatus item) { + return new StatusNested(item); } public A withSpec(V1TokenRequestSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1TokenRequestSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1TokenRequestSpec 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 V1TokenRequestSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1TokenRequestSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1TokenRequestStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1TokenRequestStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1TokenRequestStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1TokenRequestStatus 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 V1TokenRequestStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1TokenRequestStatus 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; - AuthenticationV1TokenRequestFluent that = (AuthenticationV1TokenRequestFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) AuthenticationV1TokenRequestFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1TokenRequestSpecFluent> implements Nested{ + + V1TokenRequestSpecBuilder builder; + SpecNested(V1TokenRequestSpec item) { this.builder = new V1TokenRequestSpecBuilder(this, item); } - V1TokenRequestSpecBuilder builder; - + public N and() { return (N) AuthenticationV1TokenRequestFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1TokenRequestStatusFluent> implements Nested{ + + V1TokenRequestStatusBuilder builder; + StatusNested(V1TokenRequestStatus item) { this.builder = new V1TokenRequestStatusBuilder(this, item); } - V1TokenRequestStatusBuilder builder; - + public N and() { return (N) AuthenticationV1TokenRequestFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java index e1661163b0..40d60af64b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class CoreV1EndpointPortBuilder extends CoreV1EndpointPortFluent implements VisitableBuilder{ + + CoreV1EndpointPortFluent fluent; + public CoreV1EndpointPortBuilder() { this(new CoreV1EndpointPort()); } @@ -10,17 +14,16 @@ public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent) { this(fluent, new CoreV1EndpointPort()); } - public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent,CoreV1EndpointPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public CoreV1EndpointPortBuilder(CoreV1EndpointPort instance) { this.fluent = this; this.copyInstance(instance); } - CoreV1EndpointPortFluent fluent; + public CoreV1EndpointPortBuilder(CoreV1EndpointPortFluent fluent,CoreV1EndpointPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public CoreV1EndpointPort build() { CoreV1EndpointPort buildable = new CoreV1EndpointPort(); buildable.setAppProtocol(fluent.getAppProtocol()); @@ -30,5 +33,4 @@ public CoreV1EndpointPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java index 9c4214ea25..2ecbfd37e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java @@ -1,115 +1,147 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class CoreV1EndpointPortFluent> extends BaseFluent{ +public class CoreV1EndpointPortFluent> extends BaseFluent{ + + private String appProtocol; + private String name; + private Integer port; + private String protocol; + public CoreV1EndpointPortFluent() { } public CoreV1EndpointPortFluent(CoreV1EndpointPort instance) { this.copyInstance(instance); } - private String appProtocol; - private String name; - private Integer port; - private String protocol; - + protected void copyInstance(CoreV1EndpointPort instance) { - instance = (instance != null ? instance : new CoreV1EndpointPort()); + instance = instance != null ? instance : new CoreV1EndpointPort(); if (instance != null) { - this.withAppProtocol(instance.getAppProtocol()); - this.withName(instance.getName()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } + this.withAppProtocol(instance.getAppProtocol()); + this.withName(instance.getName()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } - public String getAppProtocol() { - return this.appProtocol; - } - - public A withAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + CoreV1EndpointPortFluent that = (CoreV1EndpointPortFluent) o; + if (!(Objects.equals(appProtocol, that.appProtocol))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } + return true; } - public boolean hasAppProtocol() { - return this.appProtocol != null; + public String getAppProtocol() { + return this.appProtocol; } 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 Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + public String getProtocol() { + return this.protocol; } - public boolean hasPort() { - return this.port != null; + public boolean hasAppProtocol() { + return this.appProtocol != null; } - public String getProtocol() { - return this.protocol; + public boolean hasName() { + return this.name != null; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + public boolean hasPort() { + return this.port != null; } public boolean hasProtocol() { return this.protocol != 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; - CoreV1EndpointPortFluent that = (CoreV1EndpointPortFluent) o; - if (!java.util.Objects.equals(appProtocol, that.appProtocol)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); + return Objects.hash(appProtocol, name, port, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (appProtocol != null) { sb.append("appProtocol:"); sb.append(appProtocol + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(appProtocol == null)) { + sb.append("appProtocol:"); + sb.append(appProtocol); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } - + public A withAppProtocol(String appProtocol) { + this.appProtocol = appProtocol; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java index 6def31bdb1..5bc431e239 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class CoreV1EventBuilder extends CoreV1EventFluent implements VisitableBuilder{ + + CoreV1EventFluent fluent; + public CoreV1EventBuilder() { this(new CoreV1Event()); } @@ -10,17 +14,16 @@ public CoreV1EventBuilder(CoreV1EventFluent fluent) { this(fluent, new CoreV1Event()); } - public CoreV1EventBuilder(CoreV1EventFluent fluent,CoreV1Event instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public CoreV1EventBuilder(CoreV1Event instance) { this.fluent = this; this.copyInstance(instance); } - CoreV1EventFluent fluent; + public CoreV1EventBuilder(CoreV1EventFluent fluent,CoreV1Event instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public CoreV1Event build() { CoreV1Event buildable = new CoreV1Event(); buildable.setAction(fluent.getAction()); @@ -43,5 +46,4 @@ public CoreV1Event build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java index 080cd47540..91a7ebda8c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java @@ -1,24 +1,22 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Integer; -import java.time.OffsetDateTime; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class CoreV1EventFluent> extends BaseFluent{ - public CoreV1EventFluent() { - } - - public CoreV1EventFluent(CoreV1Event instance) { - this.copyInstance(instance); - } +public class CoreV1EventFluent> extends BaseFluent{ + private String action; private String apiVersion; private Integer count; @@ -36,351 +34,487 @@ public CoreV1EventFluent(CoreV1Event instance) { private CoreV1EventSeriesBuilder series; private V1EventSourceBuilder source; private String type; - - protected void copyInstance(CoreV1Event instance) { - instance = (instance != null ? instance : new CoreV1Event()); - if (instance != null) { - this.withAction(instance.getAction()); - this.withApiVersion(instance.getApiVersion()); - this.withCount(instance.getCount()); - this.withEventTime(instance.getEventTime()); - this.withFirstTimestamp(instance.getFirstTimestamp()); - this.withInvolvedObject(instance.getInvolvedObject()); - this.withKind(instance.getKind()); - this.withLastTimestamp(instance.getLastTimestamp()); - this.withMessage(instance.getMessage()); - this.withMetadata(instance.getMetadata()); - this.withReason(instance.getReason()); - this.withRelated(instance.getRelated()); - this.withReportingComponent(instance.getReportingComponent()); - this.withReportingInstance(instance.getReportingInstance()); - this.withSeries(instance.getSeries()); - this.withSource(instance.getSource()); - this.withType(instance.getType()); - } + + public CoreV1EventFluent() { } - public String getAction() { - return this.action; + public CoreV1EventFluent(CoreV1Event instance) { + this.copyInstance(instance); + } + + public V1ObjectReference buildInvolvedObject() { + return this.involvedObject != null ? this.involvedObject.build() : null; } - public A withAction(String action) { - this.action = action; - return (A) this; + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public boolean hasAction() { - return this.action != null; + public V1ObjectReference buildRelated() { + return this.related != null ? this.related.build() : null; } - public String getApiVersion() { - return this.apiVersion; + public CoreV1EventSeries buildSeries() { + return this.series != null ? this.series.build() : null; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public V1EventSource buildSource() { + return this.source != null ? this.source.build() : null; } - public boolean hasApiVersion() { - return this.apiVersion != null; + protected void copyInstance(CoreV1Event instance) { + instance = instance != null ? instance : new CoreV1Event(); + if (instance != null) { + this.withAction(instance.getAction()); + this.withApiVersion(instance.getApiVersion()); + this.withCount(instance.getCount()); + this.withEventTime(instance.getEventTime()); + this.withFirstTimestamp(instance.getFirstTimestamp()); + this.withInvolvedObject(instance.getInvolvedObject()); + this.withKind(instance.getKind()); + this.withLastTimestamp(instance.getLastTimestamp()); + this.withMessage(instance.getMessage()); + this.withMetadata(instance.getMetadata()); + this.withReason(instance.getReason()); + this.withRelated(instance.getRelated()); + this.withReportingComponent(instance.getReportingComponent()); + this.withReportingInstance(instance.getReportingInstance()); + this.withSeries(instance.getSeries()); + this.withSource(instance.getSource()); + this.withType(instance.getType()); + } } - public Integer getCount() { - return this.count; + public InvolvedObjectNested editInvolvedObject() { + return this.withNewInvolvedObjectLike(Optional.ofNullable(this.buildInvolvedObject()).orElse(null)); } - public A withCount(Integer count) { - this.count = count; - return (A) this; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public boolean hasCount() { - return this.count != null; + public InvolvedObjectNested editOrNewInvolvedObject() { + return this.withNewInvolvedObjectLike(Optional.ofNullable(this.buildInvolvedObject()).orElse(new V1ObjectReferenceBuilder().build())); } - public OffsetDateTime getEventTime() { - return this.eventTime; + public InvolvedObjectNested editOrNewInvolvedObjectLike(V1ObjectReference item) { + return this.withNewInvolvedObjectLike(Optional.ofNullable(this.buildInvolvedObject()).orElse(item)); } - public A withEventTime(OffsetDateTime eventTime) { - this.eventTime = eventTime; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasEventTime() { - return this.eventTime != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public OffsetDateTime getFirstTimestamp() { - return this.firstTimestamp; + public RelatedNested editOrNewRelated() { + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); } - public A withFirstTimestamp(OffsetDateTime firstTimestamp) { - this.firstTimestamp = firstTimestamp; - return (A) this; + public RelatedNested editOrNewRelatedLike(V1ObjectReference item) { + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(item)); } - public boolean hasFirstTimestamp() { - return this.firstTimestamp != null; + public SeriesNested editOrNewSeries() { + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(new CoreV1EventSeriesBuilder().build())); } - public V1ObjectReference buildInvolvedObject() { - return this.involvedObject != null ? this.involvedObject.build() : null; + public SeriesNested editOrNewSeriesLike(CoreV1EventSeries item) { + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(item)); } - public A withInvolvedObject(V1ObjectReference involvedObject) { - this._visitables.remove("involvedObject"); - if (involvedObject != null) { - this.involvedObject = new V1ObjectReferenceBuilder(involvedObject); - this._visitables.get("involvedObject").add(this.involvedObject); - } else { - this.involvedObject = null; - this._visitables.get("involvedObject").remove(this.involvedObject); - } - return (A) this; + public SourceNested editOrNewSource() { + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(new V1EventSourceBuilder().build())); } - public boolean hasInvolvedObject() { - return this.involvedObject != null; + public SourceNested editOrNewSourceLike(V1EventSource item) { + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(item)); } - public InvolvedObjectNested withNewInvolvedObject() { - return new InvolvedObjectNested(null); + public RelatedNested editRelated() { + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(null)); } - public InvolvedObjectNested withNewInvolvedObjectLike(V1ObjectReference item) { - return new InvolvedObjectNested(item); + public SeriesNested editSeries() { + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(null)); } - public InvolvedObjectNested editInvolvedObject() { - return withNewInvolvedObjectLike(java.util.Optional.ofNullable(buildInvolvedObject()).orElse(null)); + public SourceNested editSource() { + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(null)); } - public InvolvedObjectNested editOrNewInvolvedObject() { - return withNewInvolvedObjectLike(java.util.Optional.ofNullable(buildInvolvedObject()).orElse(new V1ObjectReferenceBuilder().build())); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + CoreV1EventFluent that = (CoreV1EventFluent) o; + if (!(Objects.equals(action, that.action))) { + return false; + } + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(eventTime, that.eventTime))) { + return false; + } + if (!(Objects.equals(firstTimestamp, that.firstTimestamp))) { + return false; + } + if (!(Objects.equals(involvedObject, that.involvedObject))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(lastTimestamp, that.lastTimestamp))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(related, that.related))) { + return false; + } + if (!(Objects.equals(reportingComponent, that.reportingComponent))) { + return false; + } + if (!(Objects.equals(reportingInstance, that.reportingInstance))) { + return false; + } + if (!(Objects.equals(series, that.series))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public InvolvedObjectNested editOrNewInvolvedObjectLike(V1ObjectReference item) { - return withNewInvolvedObjectLike(java.util.Optional.ofNullable(buildInvolvedObject()).orElse(item)); + public String getAction() { + return this.action; } - public String getKind() { - return this.kind; + public String getApiVersion() { + return this.apiVersion; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public Integer getCount() { + return this.count; } - public boolean hasKind() { - return this.kind != null; + public OffsetDateTime getEventTime() { + return this.eventTime; } - public OffsetDateTime getLastTimestamp() { - return this.lastTimestamp; + public OffsetDateTime getFirstTimestamp() { + return this.firstTimestamp; } - public A withLastTimestamp(OffsetDateTime lastTimestamp) { - this.lastTimestamp = lastTimestamp; - return (A) this; + public String getKind() { + return this.kind; } - public boolean hasLastTimestamp() { - return this.lastTimestamp != null; + public OffsetDateTime getLastTimestamp() { + return this.lastTimestamp; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getReportingComponent() { + return this.reportingComponent; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public String getReportingInstance() { + return this.reportingInstance; } - 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 String getType() { + return this.type; } - public boolean hasMetadata() { - return this.metadata != null; + public boolean hasAction() { + return this.action != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public boolean hasApiVersion() { + return this.apiVersion != null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public boolean hasCount() { + return this.count != null; } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public boolean hasEventTime() { + return this.eventTime != null; } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public boolean hasFirstTimestamp() { + return this.firstTimestamp != null; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public boolean hasInvolvedObject() { + return this.involvedObject != null; } - public String getReason() { - return this.reason; + public boolean hasKind() { + return this.kind != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTimestamp() { + return this.lastTimestamp != null; } - public boolean hasReason() { - return this.reason != null; + public boolean hasMessage() { + return this.message != null; } - public V1ObjectReference buildRelated() { - return this.related != null ? this.related.build() : null; + public boolean hasMetadata() { + return this.metadata != null; } - public A withRelated(V1ObjectReference related) { - this._visitables.remove("related"); - if (related != null) { - this.related = new V1ObjectReferenceBuilder(related); - this._visitables.get("related").add(this.related); - } else { - this.related = null; - this._visitables.get("related").remove(this.related); - } - return (A) this; + public boolean hasReason() { + return this.reason != null; } public boolean hasRelated() { return this.related != null; } - public RelatedNested withNewRelated() { - return new RelatedNested(null); + public boolean hasReportingComponent() { + return this.reportingComponent != null; } - public RelatedNested withNewRelatedLike(V1ObjectReference item) { - return new RelatedNested(item); + public boolean hasReportingInstance() { + return this.reportingInstance != null; } - public RelatedNested editRelated() { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(null)); + public boolean hasSeries() { + return this.series != null; } - public RelatedNested editOrNewRelated() { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); + public boolean hasSource() { + return this.source != null; } - public RelatedNested editOrNewRelatedLike(V1ObjectReference item) { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(item)); + public boolean hasType() { + return this.type != null; } - public String getReportingComponent() { - return this.reportingComponent; + public int hashCode() { + return Objects.hash(action, apiVersion, count, eventTime, firstTimestamp, involvedObject, kind, lastTimestamp, message, metadata, reason, related, reportingComponent, reportingInstance, series, source, type); } - public A withReportingComponent(String reportingComponent) { - this.reportingComponent = reportingComponent; - return (A) this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(action == null)) { + sb.append("action:"); + sb.append(action); + sb.append(","); + } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(eventTime == null)) { + sb.append("eventTime:"); + sb.append(eventTime); + sb.append(","); + } + if (!(firstTimestamp == null)) { + sb.append("firstTimestamp:"); + sb.append(firstTimestamp); + sb.append(","); + } + if (!(involvedObject == null)) { + sb.append("involvedObject:"); + sb.append(involvedObject); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(lastTimestamp == null)) { + sb.append("lastTimestamp:"); + sb.append(lastTimestamp); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(related == null)) { + sb.append("related:"); + sb.append(related); + sb.append(","); + } + if (!(reportingComponent == null)) { + sb.append("reportingComponent:"); + sb.append(reportingComponent); + sb.append(","); + } + if (!(reportingInstance == null)) { + sb.append("reportingInstance:"); + sb.append(reportingInstance); + sb.append(","); + } + if (!(series == null)) { + sb.append("series:"); + sb.append(series); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public boolean hasReportingComponent() { - return this.reportingComponent != null; + public A withAction(String action) { + this.action = action; + return (A) this; } - public String getReportingInstance() { - return this.reportingInstance; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public A withReportingInstance(String reportingInstance) { - this.reportingInstance = reportingInstance; + public A withCount(Integer count) { + this.count = count; return (A) this; } - public boolean hasReportingInstance() { - return this.reportingInstance != null; + public A withEventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; + return (A) this; } - public CoreV1EventSeries buildSeries() { - return this.series != null ? this.series.build() : null; + public A withFirstTimestamp(OffsetDateTime firstTimestamp) { + this.firstTimestamp = firstTimestamp; + return (A) this; } - public A withSeries(CoreV1EventSeries series) { - this._visitables.remove("series"); - if (series != null) { - this.series = new CoreV1EventSeriesBuilder(series); - this._visitables.get("series").add(this.series); + public A withInvolvedObject(V1ObjectReference involvedObject) { + this._visitables.remove("involvedObject"); + if (involvedObject != null) { + this.involvedObject = new V1ObjectReferenceBuilder(involvedObject); + this._visitables.get("involvedObject").add(this.involvedObject); } else { - this.series = null; - this._visitables.get("series").remove(this.series); + this.involvedObject = null; + this._visitables.get("involvedObject").remove(this.involvedObject); } return (A) this; } - public boolean hasSeries() { - return this.series != null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public SeriesNested withNewSeries() { - return new SeriesNested(null); + public A withLastTimestamp(OffsetDateTime lastTimestamp) { + this.lastTimestamp = lastTimestamp; + return (A) this; } - public SeriesNested withNewSeriesLike(CoreV1EventSeries item) { - return new SeriesNested(item); + public A withMessage(String message) { + this.message = message; + return (A) this; } - public SeriesNested editSeries() { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(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 SeriesNested editOrNewSeries() { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(new CoreV1EventSeriesBuilder().build())); + public InvolvedObjectNested withNewInvolvedObject() { + return new InvolvedObjectNested(null); } - public SeriesNested editOrNewSeriesLike(CoreV1EventSeries item) { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(item)); + public InvolvedObjectNested withNewInvolvedObjectLike(V1ObjectReference item) { + return new InvolvedObjectNested(item); } - public V1EventSource buildSource() { - return this.source != null ? this.source.build() : null; + public MetadataNested withNewMetadata() { + return new MetadataNested(null); } - public A withSource(V1EventSource source) { - this._visitables.remove("source"); - if (source != null) { - this.source = new V1EventSourceBuilder(source); - this._visitables.get("source").add(this.source); - } else { - this.source = null; - this._visitables.get("source").remove(this.source); - } - return (A) this; + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } - public boolean hasSource() { - return this.source != null; + public RelatedNested withNewRelated() { + return new RelatedNested(null); + } + + public RelatedNested withNewRelatedLike(V1ObjectReference item) { + return new RelatedNested(item); + } + + public SeriesNested withNewSeries() { + return new SeriesNested(null); + } + + public SeriesNested withNewSeriesLike(CoreV1EventSeries item) { + return new SeriesNested(item); } public SourceNested withNewSource() { @@ -391,89 +525,69 @@ public SourceNested withNewSourceLike(V1EventSource item) { return new SourceNested(item); } - public SourceNested editSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(null)); + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - public SourceNested editOrNewSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(new V1EventSourceBuilder().build())); + public A withRelated(V1ObjectReference related) { + this._visitables.remove("related"); + if (related != null) { + this.related = new V1ObjectReferenceBuilder(related); + this._visitables.get("related").add(this.related); + } else { + this.related = null; + this._visitables.get("related").remove(this.related); + } + return (A) this; } - public SourceNested editOrNewSourceLike(V1EventSource item) { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(item)); + public A withReportingComponent(String reportingComponent) { + this.reportingComponent = reportingComponent; + return (A) this; } - public String getType() { - return this.type; + public A withReportingInstance(String reportingInstance) { + this.reportingInstance = reportingInstance; + return (A) this; } - public A withType(String type) { - this.type = type; + public A withSeries(CoreV1EventSeries series) { + this._visitables.remove("series"); + if (series != null) { + this.series = new CoreV1EventSeriesBuilder(series); + this._visitables.get("series").add(this.series); + } else { + this.series = null; + this._visitables.get("series").remove(this.series); + } return (A) this; } - public boolean hasType() { - return this.type != null; + public A withSource(V1EventSource source) { + this._visitables.remove("source"); + if (source != null) { + this.source = new V1EventSourceBuilder(source); + this._visitables.get("source").add(this.source); + } else { + this.source = null; + this._visitables.get("source").remove(this.source); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - CoreV1EventFluent that = (CoreV1EventFluent) o; - if (!java.util.Objects.equals(action, that.action)) return false; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(count, that.count)) return false; - if (!java.util.Objects.equals(eventTime, that.eventTime)) return false; - if (!java.util.Objects.equals(firstTimestamp, that.firstTimestamp)) return false; - if (!java.util.Objects.equals(involvedObject, that.involvedObject)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(lastTimestamp, that.lastTimestamp)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(related, that.related)) return false; - if (!java.util.Objects.equals(reportingComponent, that.reportingComponent)) return false; - if (!java.util.Objects.equals(reportingInstance, that.reportingInstance)) return false; - if (!java.util.Objects.equals(series, that.series)) return false; - if (!java.util.Objects.equals(source, that.source)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; + public A withType(String type) { + this.type = type; + return (A) this; } + public class InvolvedObjectNested extends V1ObjectReferenceFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(action, apiVersion, count, eventTime, firstTimestamp, involvedObject, kind, lastTimestamp, message, metadata, reason, related, reportingComponent, reportingInstance, series, source, type, super.hashCode()); - } + V1ObjectReferenceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (action != null) { sb.append("action:"); sb.append(action + ","); } - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (count != null) { sb.append("count:"); sb.append(count + ","); } - if (eventTime != null) { sb.append("eventTime:"); sb.append(eventTime + ","); } - if (firstTimestamp != null) { sb.append("firstTimestamp:"); sb.append(firstTimestamp + ","); } - if (involvedObject != null) { sb.append("involvedObject:"); sb.append(involvedObject + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (lastTimestamp != null) { sb.append("lastTimestamp:"); sb.append(lastTimestamp + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (related != null) { sb.append("related:"); sb.append(related + ","); } - if (reportingComponent != null) { sb.append("reportingComponent:"); sb.append(reportingComponent + ","); } - if (reportingInstance != null) { sb.append("reportingInstance:"); sb.append(reportingInstance + ","); } - if (series != null) { sb.append("series:"); sb.append(series + ","); } - if (source != null) { sb.append("source:"); sb.append(source + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - public class InvolvedObjectNested extends V1ObjectReferenceFluent> implements Nested{ InvolvedObjectNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withInvolvedObject(builder.build()); } @@ -482,14 +596,15 @@ public N endInvolvedObject() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withMetadata(builder.build()); } @@ -498,14 +613,15 @@ public N endMetadata() { return and(); } - } public class RelatedNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + RelatedNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withRelated(builder.build()); } @@ -514,14 +630,15 @@ public N endRelated() { return and(); } - } public class SeriesNested extends CoreV1EventSeriesFluent> implements Nested{ + + CoreV1EventSeriesBuilder builder; + SeriesNested(CoreV1EventSeries item) { this.builder = new CoreV1EventSeriesBuilder(this, item); } - CoreV1EventSeriesBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withSeries(builder.build()); } @@ -530,14 +647,15 @@ public N endSeries() { return and(); } - } public class SourceNested extends V1EventSourceFluent> implements Nested{ + + V1EventSourceBuilder builder; + SourceNested(V1EventSource item) { this.builder = new V1EventSourceBuilder(this, item); } - V1EventSourceBuilder builder; - + public N and() { return (N) CoreV1EventFluent.this.withSource(builder.build()); } @@ -546,7 +664,5 @@ public N endSource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java index 00a567cc7d..aa8b2b5cf2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class CoreV1EventListBuilder extends CoreV1EventListFluent implements VisitableBuilder{ + + CoreV1EventListFluent fluent; + public CoreV1EventListBuilder() { this(new CoreV1EventList()); } @@ -10,17 +14,16 @@ public CoreV1EventListBuilder(CoreV1EventListFluent fluent) { this(fluent, new CoreV1EventList()); } - public CoreV1EventListBuilder(CoreV1EventListFluent fluent,CoreV1EventList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public CoreV1EventListBuilder(CoreV1EventList instance) { this.fluent = this; this.copyInstance(instance); } - CoreV1EventListFluent fluent; + public CoreV1EventListBuilder(CoreV1EventListFluent fluent,CoreV1EventList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public CoreV1EventList build() { CoreV1EventList buildable = new CoreV1EventList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public CoreV1EventList build() { return buildable; } - } \ No newline at end of file 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..5879cf1ea1 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class CoreV1EventListFluent> extends BaseFluent{ +public class CoreV1EventListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public CoreV1EventListFluent() { } public CoreV1EventListFluent(CoreV1EventList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(CoreV1EventList instance) { - instance = (instance != null ? instance : new CoreV1EventList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(CoreV1Event item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(CoreV1Event... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,CoreV1Event item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public CoreV1Event buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { - if (this.items == null) {this.items = new ArrayList();} - for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public CoreV1Event buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { - if (this.items == null) return (A)this; - for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public CoreV1Event buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (CoreV1Event item : items) {CoreV1EventBuilder builder = new CoreV1EventBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public CoreV1Event buildMatchingItem(Predicate predicate) { + for (CoreV1EventBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - CoreV1EventBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(CoreV1EventList instance) { + instance = instance != null ? instance : new CoreV1EventList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public CoreV1Event buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public CoreV1Event buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public CoreV1Event buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + CoreV1EventListFluent that = (CoreV1EventListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public CoreV1Event buildMatchingItem(Predicate predicate) { - for (CoreV1EventBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(CoreV1Event... items) { + if (this.items == null) { + return (A) this; + } + for (CoreV1Event item : items) { + CoreV1EventBuilder builder = new CoreV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + CoreV1EventBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,CoreV1Event item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { + public A withItems(CoreV1Event... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.CoreV1Event... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(CoreV1Event item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,CoreV1Event 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends CoreV1EventFluent> implements Nested{ - 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; - CoreV1EventListFluent that = (CoreV1EventListFluent) 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()); - } + CoreV1EventBuilder builder; + int index; - 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 CoreV1EventFluent> implements Nested{ ItemsNested(int index,CoreV1Event item) { this.index = index; this.builder = new CoreV1EventBuilder(this, item); } - CoreV1EventBuilder builder; - int index; - + public N and() { - return (N) CoreV1EventListFluent.this.setToItems(index,builder.build()); + return (N) CoreV1EventListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) CoreV1EventListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java index 63472fb6c0..c776863407 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class CoreV1EventSeriesBuilder extends CoreV1EventSeriesFluent implements VisitableBuilder{ + + CoreV1EventSeriesFluent fluent; + public CoreV1EventSeriesBuilder() { this(new CoreV1EventSeries()); } @@ -10,17 +14,16 @@ public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent) { this(fluent, new CoreV1EventSeries()); } - public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent,CoreV1EventSeries instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public CoreV1EventSeriesBuilder(CoreV1EventSeries instance) { this.fluent = this; this.copyInstance(instance); } - CoreV1EventSeriesFluent fluent; + public CoreV1EventSeriesBuilder(CoreV1EventSeriesFluent fluent,CoreV1EventSeries instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public CoreV1EventSeries build() { CoreV1EventSeries buildable = new CoreV1EventSeries(); buildable.setCount(fluent.getCount()); @@ -28,5 +31,4 @@ public CoreV1EventSeries build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java index 62557be302..8077d3fde9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java @@ -1,82 +1,102 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class CoreV1EventSeriesFluent> extends BaseFluent{ +public class CoreV1EventSeriesFluent> extends BaseFluent{ + + private Integer count; + private OffsetDateTime lastObservedTime; + public CoreV1EventSeriesFluent() { } public CoreV1EventSeriesFluent(CoreV1EventSeries instance) { this.copyInstance(instance); } - private Integer count; - private OffsetDateTime lastObservedTime; - + protected void copyInstance(CoreV1EventSeries instance) { - instance = (instance != null ? instance : new CoreV1EventSeries()); + instance = instance != null ? instance : new CoreV1EventSeries(); if (instance != null) { - this.withCount(instance.getCount()); - this.withLastObservedTime(instance.getLastObservedTime()); - } - } - - public Integer getCount() { - return this.count; + this.withCount(instance.getCount()); + this.withLastObservedTime(instance.getLastObservedTime()); + } } - public A withCount(Integer count) { - this.count = count; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + CoreV1EventSeriesFluent that = (CoreV1EventSeriesFluent) o; + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(lastObservedTime, that.lastObservedTime))) { + return false; + } + return true; } - public boolean hasCount() { - return this.count != null; + public Integer getCount() { + return this.count; } public OffsetDateTime getLastObservedTime() { return this.lastObservedTime; } - public A withLastObservedTime(OffsetDateTime lastObservedTime) { - this.lastObservedTime = lastObservedTime; - return (A) this; + public boolean hasCount() { + return this.count != null; } public boolean hasLastObservedTime() { return this.lastObservedTime != 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; - CoreV1EventSeriesFluent that = (CoreV1EventSeriesFluent) o; - if (!java.util.Objects.equals(count, that.count)) return false; - if (!java.util.Objects.equals(lastObservedTime, that.lastObservedTime)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(count, lastObservedTime, super.hashCode()); + return Objects.hash(count, lastObservedTime); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (count != null) { sb.append("count:"); sb.append(count + ","); } - if (lastObservedTime != null) { sb.append("lastObservedTime:"); sb.append(lastObservedTime); } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(lastObservedTime == null)) { + sb.append("lastObservedTime:"); + sb.append(lastObservedTime); + } sb.append("}"); return sb.toString(); } - + public A withCount(Integer count) { + this.count = count; + return (A) this; + } + + public A withLastObservedTime(OffsetDateTime lastObservedTime) { + this.lastObservedTime = lastObservedTime; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java new file mode 100644 index 0000000000..fe2046092f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class CoreV1ResourceClaimBuilder extends CoreV1ResourceClaimFluent implements VisitableBuilder{ + + CoreV1ResourceClaimFluent fluent; + + public CoreV1ResourceClaimBuilder() { + this(new CoreV1ResourceClaim()); + } + + public CoreV1ResourceClaimBuilder(CoreV1ResourceClaimFluent fluent) { + this(fluent, new CoreV1ResourceClaim()); + } + + public CoreV1ResourceClaimBuilder(CoreV1ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public CoreV1ResourceClaimBuilder(CoreV1ResourceClaimFluent fluent,CoreV1ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public CoreV1ResourceClaim build() { + CoreV1ResourceClaim buildable = new CoreV1ResourceClaim(); + buildable.setName(fluent.getName()); + buildable.setRequest(fluent.getRequest()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java new file mode 100644 index 0000000000..653c931276 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java @@ -0,0 +1,100 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class CoreV1ResourceClaimFluent> extends BaseFluent{ + + private String name; + private String request; + + public CoreV1ResourceClaimFluent() { + } + + public CoreV1ResourceClaimFluent(CoreV1ResourceClaim instance) { + this.copyInstance(instance); + } + + protected void copyInstance(CoreV1ResourceClaim instance) { + instance = instance != null ? instance : new CoreV1ResourceClaim(); + if (instance != null) { + this.withName(instance.getName()); + this.withRequest(instance.getRequest()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + CoreV1ResourceClaimFluent that = (CoreV1ResourceClaimFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getRequest() { + return this.request; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasRequest() { + return this.request != null; + } + + public int hashCode() { + return Objects.hash(name, request); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(request == null)) { + sb.append("request:"); + sb.append(request); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java index 89534de2a1..18793253c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class DiscoveryV1EndpointPortBuilder extends DiscoveryV1EndpointPortFluent implements VisitableBuilder{ + + DiscoveryV1EndpointPortFluent fluent; + public DiscoveryV1EndpointPortBuilder() { this(new DiscoveryV1EndpointPort()); } @@ -10,17 +14,16 @@ public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent) { this(fluent, new DiscoveryV1EndpointPort()); } - public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent,DiscoveryV1EndpointPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPort instance) { this.fluent = this; this.copyInstance(instance); } - DiscoveryV1EndpointPortFluent fluent; + public DiscoveryV1EndpointPortBuilder(DiscoveryV1EndpointPortFluent fluent,DiscoveryV1EndpointPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public DiscoveryV1EndpointPort build() { DiscoveryV1EndpointPort buildable = new DiscoveryV1EndpointPort(); buildable.setAppProtocol(fluent.getAppProtocol()); @@ -30,5 +33,4 @@ public DiscoveryV1EndpointPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java index 38652a7d35..711de23b94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java @@ -1,115 +1,147 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class DiscoveryV1EndpointPortFluent> extends BaseFluent{ +public class DiscoveryV1EndpointPortFluent> extends BaseFluent{ + + private String appProtocol; + private String name; + private Integer port; + private String protocol; + public DiscoveryV1EndpointPortFluent() { } public DiscoveryV1EndpointPortFluent(DiscoveryV1EndpointPort instance) { this.copyInstance(instance); } - private String appProtocol; - private String name; - private Integer port; - private String protocol; - + protected void copyInstance(DiscoveryV1EndpointPort instance) { - instance = (instance != null ? instance : new DiscoveryV1EndpointPort()); + instance = instance != null ? instance : new DiscoveryV1EndpointPort(); if (instance != null) { - this.withAppProtocol(instance.getAppProtocol()); - this.withName(instance.getName()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } + this.withAppProtocol(instance.getAppProtocol()); + this.withName(instance.getName()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } - public String getAppProtocol() { - return this.appProtocol; - } - - public A withAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + DiscoveryV1EndpointPortFluent that = (DiscoveryV1EndpointPortFluent) o; + if (!(Objects.equals(appProtocol, that.appProtocol))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } + return true; } - public boolean hasAppProtocol() { - return this.appProtocol != null; + public String getAppProtocol() { + return this.appProtocol; } 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 Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + public String getProtocol() { + return this.protocol; } - public boolean hasPort() { - return this.port != null; + public boolean hasAppProtocol() { + return this.appProtocol != null; } - public String getProtocol() { - return this.protocol; + public boolean hasName() { + return this.name != null; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + public boolean hasPort() { + return this.port != null; } public boolean hasProtocol() { return this.protocol != 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; - DiscoveryV1EndpointPortFluent that = (DiscoveryV1EndpointPortFluent) o; - if (!java.util.Objects.equals(appProtocol, that.appProtocol)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(appProtocol, name, port, protocol, super.hashCode()); + return Objects.hash(appProtocol, name, port, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (appProtocol != null) { sb.append("appProtocol:"); sb.append(appProtocol + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(appProtocol == null)) { + sb.append("appProtocol:"); + sb.append(appProtocol); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } - + public A withAppProtocol(String appProtocol) { + this.appProtocol = appProtocol; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java index 82c1140473..19f7dc909c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class EventsV1EventBuilder extends EventsV1EventFluent implements VisitableBuilder{ + + EventsV1EventFluent fluent; + public EventsV1EventBuilder() { this(new EventsV1Event()); } @@ -10,17 +14,16 @@ public EventsV1EventBuilder(EventsV1EventFluent fluent) { this(fluent, new EventsV1Event()); } - public EventsV1EventBuilder(EventsV1EventFluent fluent,EventsV1Event instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public EventsV1EventBuilder(EventsV1Event instance) { this.fluent = this; this.copyInstance(instance); } - EventsV1EventFluent fluent; + public EventsV1EventBuilder(EventsV1EventFluent fluent,EventsV1Event instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public EventsV1Event build() { EventsV1Event buildable = new EventsV1Event(); buildable.setAction(fluent.getAction()); @@ -43,5 +46,4 @@ public EventsV1Event build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java index 9bcc496a81..12ef2ccf40 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java @@ -1,24 +1,22 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Integer; -import java.time.OffsetDateTime; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class EventsV1EventFluent> extends BaseFluent{ - public EventsV1EventFluent() { - } - - public EventsV1EventFluent(EventsV1Event instance) { - this.copyInstance(instance); - } +public class EventsV1EventFluent> extends BaseFluent{ + private String action; private String apiVersion; private Integer deprecatedCount; @@ -36,351 +34,482 @@ public EventsV1EventFluent(EventsV1Event instance) { private String reportingInstance; private EventsV1EventSeriesBuilder series; private String type; + + public EventsV1EventFluent() { + } - protected void copyInstance(EventsV1Event instance) { - instance = (instance != null ? instance : new EventsV1Event()); - if (instance != null) { - this.withAction(instance.getAction()); - this.withApiVersion(instance.getApiVersion()); - this.withDeprecatedCount(instance.getDeprecatedCount()); - this.withDeprecatedFirstTimestamp(instance.getDeprecatedFirstTimestamp()); - this.withDeprecatedLastTimestamp(instance.getDeprecatedLastTimestamp()); - this.withDeprecatedSource(instance.getDeprecatedSource()); - this.withEventTime(instance.getEventTime()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withNote(instance.getNote()); - this.withReason(instance.getReason()); - this.withRegarding(instance.getRegarding()); - this.withRelated(instance.getRelated()); - this.withReportingController(instance.getReportingController()); - this.withReportingInstance(instance.getReportingInstance()); - this.withSeries(instance.getSeries()); - this.withType(instance.getType()); - } + public EventsV1EventFluent(EventsV1Event instance) { + this.copyInstance(instance); + } + + public V1EventSource buildDeprecatedSource() { + return this.deprecatedSource != null ? this.deprecatedSource.build() : null; } - public String getAction() { - return this.action; + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withAction(String action) { - this.action = action; - return (A) this; + public V1ObjectReference buildRegarding() { + return this.regarding != null ? this.regarding.build() : null; } - public boolean hasAction() { - return this.action != null; + public V1ObjectReference buildRelated() { + return this.related != null ? this.related.build() : null; } - public String getApiVersion() { - return this.apiVersion; + public EventsV1EventSeries buildSeries() { + return this.series != null ? this.series.build() : null; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + protected void copyInstance(EventsV1Event instance) { + instance = instance != null ? instance : new EventsV1Event(); + if (instance != null) { + this.withAction(instance.getAction()); + this.withApiVersion(instance.getApiVersion()); + this.withDeprecatedCount(instance.getDeprecatedCount()); + this.withDeprecatedFirstTimestamp(instance.getDeprecatedFirstTimestamp()); + this.withDeprecatedLastTimestamp(instance.getDeprecatedLastTimestamp()); + this.withDeprecatedSource(instance.getDeprecatedSource()); + this.withEventTime(instance.getEventTime()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withNote(instance.getNote()); + this.withReason(instance.getReason()); + this.withRegarding(instance.getRegarding()); + this.withRelated(instance.getRelated()); + this.withReportingController(instance.getReportingController()); + this.withReportingInstance(instance.getReportingInstance()); + this.withSeries(instance.getSeries()); + this.withType(instance.getType()); + } } - public boolean hasApiVersion() { - return this.apiVersion != null; + public DeprecatedSourceNested editDeprecatedSource() { + return this.withNewDeprecatedSourceLike(Optional.ofNullable(this.buildDeprecatedSource()).orElse(null)); } - public Integer getDeprecatedCount() { - return this.deprecatedCount; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withDeprecatedCount(Integer deprecatedCount) { - this.deprecatedCount = deprecatedCount; - return (A) this; + public DeprecatedSourceNested editOrNewDeprecatedSource() { + return this.withNewDeprecatedSourceLike(Optional.ofNullable(this.buildDeprecatedSource()).orElse(new V1EventSourceBuilder().build())); } - public boolean hasDeprecatedCount() { - return this.deprecatedCount != null; + public DeprecatedSourceNested editOrNewDeprecatedSourceLike(V1EventSource item) { + return this.withNewDeprecatedSourceLike(Optional.ofNullable(this.buildDeprecatedSource()).orElse(item)); } - public OffsetDateTime getDeprecatedFirstTimestamp() { - return this.deprecatedFirstTimestamp; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public A withDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { - this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; - return (A) this; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public boolean hasDeprecatedFirstTimestamp() { - return this.deprecatedFirstTimestamp != null; + public RegardingNested editOrNewRegarding() { + return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(new V1ObjectReferenceBuilder().build())); } - public OffsetDateTime getDeprecatedLastTimestamp() { - return this.deprecatedLastTimestamp; + public RegardingNested editOrNewRegardingLike(V1ObjectReference item) { + return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(item)); } - public A withDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { - this.deprecatedLastTimestamp = deprecatedLastTimestamp; - return (A) this; + public RelatedNested editOrNewRelated() { + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); } - public boolean hasDeprecatedLastTimestamp() { - return this.deprecatedLastTimestamp != null; + public RelatedNested editOrNewRelatedLike(V1ObjectReference item) { + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(item)); } - public V1EventSource buildDeprecatedSource() { - return this.deprecatedSource != null ? this.deprecatedSource.build() : null; + public SeriesNested editOrNewSeries() { + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(new EventsV1EventSeriesBuilder().build())); } - public A withDeprecatedSource(V1EventSource deprecatedSource) { - this._visitables.remove("deprecatedSource"); - if (deprecatedSource != null) { - this.deprecatedSource = new V1EventSourceBuilder(deprecatedSource); - this._visitables.get("deprecatedSource").add(this.deprecatedSource); - } else { - this.deprecatedSource = null; - this._visitables.get("deprecatedSource").remove(this.deprecatedSource); - } - return (A) this; + public SeriesNested editOrNewSeriesLike(EventsV1EventSeries item) { + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(item)); } - public boolean hasDeprecatedSource() { - return this.deprecatedSource != null; + public RegardingNested editRegarding() { + return this.withNewRegardingLike(Optional.ofNullable(this.buildRegarding()).orElse(null)); } - public DeprecatedSourceNested withNewDeprecatedSource() { - return new DeprecatedSourceNested(null); + public RelatedNested editRelated() { + return this.withNewRelatedLike(Optional.ofNullable(this.buildRelated()).orElse(null)); } - public DeprecatedSourceNested withNewDeprecatedSourceLike(V1EventSource item) { - return new DeprecatedSourceNested(item); + public SeriesNested editSeries() { + return this.withNewSeriesLike(Optional.ofNullable(this.buildSeries()).orElse(null)); } - public DeprecatedSourceNested editDeprecatedSource() { - return withNewDeprecatedSourceLike(java.util.Optional.ofNullable(buildDeprecatedSource()).orElse(null)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + EventsV1EventFluent that = (EventsV1EventFluent) o; + if (!(Objects.equals(action, that.action))) { + return false; + } + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(deprecatedCount, that.deprecatedCount))) { + return false; + } + if (!(Objects.equals(deprecatedFirstTimestamp, that.deprecatedFirstTimestamp))) { + return false; + } + if (!(Objects.equals(deprecatedLastTimestamp, that.deprecatedLastTimestamp))) { + return false; + } + if (!(Objects.equals(deprecatedSource, that.deprecatedSource))) { + return false; + } + if (!(Objects.equals(eventTime, that.eventTime))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(note, that.note))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(regarding, that.regarding))) { + return false; + } + if (!(Objects.equals(related, that.related))) { + return false; + } + if (!(Objects.equals(reportingController, that.reportingController))) { + return false; + } + if (!(Objects.equals(reportingInstance, that.reportingInstance))) { + return false; + } + if (!(Objects.equals(series, that.series))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public DeprecatedSourceNested editOrNewDeprecatedSource() { - return withNewDeprecatedSourceLike(java.util.Optional.ofNullable(buildDeprecatedSource()).orElse(new V1EventSourceBuilder().build())); + public String getAction() { + return this.action; } - public DeprecatedSourceNested editOrNewDeprecatedSourceLike(V1EventSource item) { - return withNewDeprecatedSourceLike(java.util.Optional.ofNullable(buildDeprecatedSource()).orElse(item)); + public String getApiVersion() { + return this.apiVersion; } - public OffsetDateTime getEventTime() { - return this.eventTime; + public Integer getDeprecatedCount() { + return this.deprecatedCount; } - public A withEventTime(OffsetDateTime eventTime) { - this.eventTime = eventTime; - return (A) this; + public OffsetDateTime getDeprecatedFirstTimestamp() { + return this.deprecatedFirstTimestamp; } - public boolean hasEventTime() { - return this.eventTime != null; + public OffsetDateTime getDeprecatedLastTimestamp() { + return this.deprecatedLastTimestamp; + } + + public OffsetDateTime getEventTime() { + return this.eventTime; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public String getNote() { + return this.note; } - public boolean hasKind() { - return this.kind != null; + public String getReason() { + return this.reason; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public String getReportingController() { + return this.reportingController; } - 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 String getReportingInstance() { + return this.reportingInstance; } - public boolean hasMetadata() { - return this.metadata != null; + public String getType() { + return this.type; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public boolean hasAction() { + return this.action != null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public boolean hasApiVersion() { + return this.apiVersion != null; } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public boolean hasDeprecatedCount() { + return this.deprecatedCount != null; } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public boolean hasDeprecatedFirstTimestamp() { + return this.deprecatedFirstTimestamp != null; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public boolean hasDeprecatedLastTimestamp() { + return this.deprecatedLastTimestamp != null; } - public String getNote() { - return this.note; + public boolean hasDeprecatedSource() { + return this.deprecatedSource != null; } - public A withNote(String note) { - this.note = note; - return (A) this; + public boolean hasEventTime() { + return this.eventTime != null; } - public boolean hasNote() { - return this.note != null; + public boolean hasKind() { + return this.kind != null; } - public String getReason() { - return this.reason; + public boolean hasMetadata() { + return this.metadata != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasNote() { + return this.note != null; } public boolean hasReason() { return this.reason != null; } - public V1ObjectReference buildRegarding() { - return this.regarding != null ? this.regarding.build() : null; - } - - public A withRegarding(V1ObjectReference regarding) { - this._visitables.remove("regarding"); - if (regarding != null) { - this.regarding = new V1ObjectReferenceBuilder(regarding); - this._visitables.get("regarding").add(this.regarding); - } else { - this.regarding = null; - this._visitables.get("regarding").remove(this.regarding); - } - return (A) this; - } - public boolean hasRegarding() { return this.regarding != null; } - public RegardingNested withNewRegarding() { - return new RegardingNested(null); + public boolean hasRelated() { + return this.related != null; } - public RegardingNested withNewRegardingLike(V1ObjectReference item) { - return new RegardingNested(item); + public boolean hasReportingController() { + return this.reportingController != null; } - public RegardingNested editRegarding() { - return withNewRegardingLike(java.util.Optional.ofNullable(buildRegarding()).orElse(null)); + public boolean hasReportingInstance() { + return this.reportingInstance != null; } - public RegardingNested editOrNewRegarding() { - return withNewRegardingLike(java.util.Optional.ofNullable(buildRegarding()).orElse(new V1ObjectReferenceBuilder().build())); + public boolean hasSeries() { + return this.series != null; } - public RegardingNested editOrNewRegardingLike(V1ObjectReference item) { - return withNewRegardingLike(java.util.Optional.ofNullable(buildRegarding()).orElse(item)); + public boolean hasType() { + return this.type != null; } - public V1ObjectReference buildRelated() { - return this.related != null ? this.related.build() : null; + public int hashCode() { + return Objects.hash(action, apiVersion, deprecatedCount, deprecatedFirstTimestamp, deprecatedLastTimestamp, deprecatedSource, eventTime, kind, metadata, note, reason, regarding, related, reportingController, reportingInstance, series, type); } - public A withRelated(V1ObjectReference related) { - this._visitables.remove("related"); - if (related != null) { - this.related = new V1ObjectReferenceBuilder(related); - this._visitables.get("related").add(this.related); - } else { - this.related = null; - this._visitables.get("related").remove(this.related); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(action == null)) { + sb.append("action:"); + sb.append(action); + sb.append(","); + } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(deprecatedCount == null)) { + sb.append("deprecatedCount:"); + sb.append(deprecatedCount); + sb.append(","); + } + if (!(deprecatedFirstTimestamp == null)) { + sb.append("deprecatedFirstTimestamp:"); + sb.append(deprecatedFirstTimestamp); + sb.append(","); } + if (!(deprecatedLastTimestamp == null)) { + sb.append("deprecatedLastTimestamp:"); + sb.append(deprecatedLastTimestamp); + sb.append(","); + } + if (!(deprecatedSource == null)) { + sb.append("deprecatedSource:"); + sb.append(deprecatedSource); + sb.append(","); + } + if (!(eventTime == null)) { + sb.append("eventTime:"); + sb.append(eventTime); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(note == null)) { + sb.append("note:"); + sb.append(note); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(regarding == null)) { + sb.append("regarding:"); + sb.append(regarding); + sb.append(","); + } + if (!(related == null)) { + sb.append("related:"); + sb.append(related); + sb.append(","); + } + if (!(reportingController == null)) { + sb.append("reportingController:"); + sb.append(reportingController); + sb.append(","); + } + if (!(reportingInstance == null)) { + sb.append("reportingInstance:"); + sb.append(reportingInstance); + sb.append(","); + } + if (!(series == null)) { + sb.append("series:"); + sb.append(series); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); + } + + public A withAction(String action) { + this.action = action; return (A) this; } - public boolean hasRelated() { - return this.related != null; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public RelatedNested withNewRelated() { - return new RelatedNested(null); + public A withDeprecatedCount(Integer deprecatedCount) { + this.deprecatedCount = deprecatedCount; + return (A) this; } - public RelatedNested withNewRelatedLike(V1ObjectReference item) { - return new RelatedNested(item); + public A withDeprecatedFirstTimestamp(OffsetDateTime deprecatedFirstTimestamp) { + this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; + return (A) this; } - public RelatedNested editRelated() { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(null)); + public A withDeprecatedLastTimestamp(OffsetDateTime deprecatedLastTimestamp) { + this.deprecatedLastTimestamp = deprecatedLastTimestamp; + return (A) this; } - public RelatedNested editOrNewRelated() { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(new V1ObjectReferenceBuilder().build())); + public A withDeprecatedSource(V1EventSource deprecatedSource) { + this._visitables.remove("deprecatedSource"); + if (deprecatedSource != null) { + this.deprecatedSource = new V1EventSourceBuilder(deprecatedSource); + this._visitables.get("deprecatedSource").add(this.deprecatedSource); + } else { + this.deprecatedSource = null; + this._visitables.get("deprecatedSource").remove(this.deprecatedSource); + } + return (A) this; } - public RelatedNested editOrNewRelatedLike(V1ObjectReference item) { - return withNewRelatedLike(java.util.Optional.ofNullable(buildRelated()).orElse(item)); + public A withEventTime(OffsetDateTime eventTime) { + this.eventTime = eventTime; + return (A) this; } - public String getReportingController() { - return this.reportingController; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public A withReportingController(String reportingController) { - this.reportingController = reportingController; + 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 hasReportingController() { - return this.reportingController != null; + public DeprecatedSourceNested withNewDeprecatedSource() { + return new DeprecatedSourceNested(null); } - public String getReportingInstance() { - return this.reportingInstance; + public DeprecatedSourceNested withNewDeprecatedSourceLike(V1EventSource item) { + return new DeprecatedSourceNested(item); } - public A withReportingInstance(String reportingInstance) { - this.reportingInstance = reportingInstance; - return (A) this; + public MetadataNested withNewMetadata() { + return new MetadataNested(null); } - public boolean hasReportingInstance() { - return this.reportingInstance != null; + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } - public EventsV1EventSeries buildSeries() { - return this.series != null ? this.series.build() : null; + public RegardingNested withNewRegarding() { + return new RegardingNested(null); } - public A withSeries(EventsV1EventSeries series) { - this._visitables.remove("series"); - if (series != null) { - this.series = new EventsV1EventSeriesBuilder(series); - this._visitables.get("series").add(this.series); - } else { - this.series = null; - this._visitables.get("series").remove(this.series); - } - return (A) this; + public RegardingNested withNewRegardingLike(V1ObjectReference item) { + return new RegardingNested(item); } - public boolean hasSeries() { - return this.series != null; + public RelatedNested withNewRelated() { + return new RelatedNested(null); + } + + public RelatedNested withNewRelatedLike(V1ObjectReference item) { + return new RelatedNested(item); } public SeriesNested withNewSeries() { @@ -391,89 +520,74 @@ public SeriesNested withNewSeriesLike(EventsV1EventSeries item) { return new SeriesNested(item); } - public SeriesNested editSeries() { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(null)); - } - - public SeriesNested editOrNewSeries() { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(new EventsV1EventSeriesBuilder().build())); + public A withNote(String note) { + this.note = note; + return (A) this; } - public SeriesNested editOrNewSeriesLike(EventsV1EventSeries item) { - return withNewSeriesLike(java.util.Optional.ofNullable(buildSeries()).orElse(item)); + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - public String getType() { - return this.type; + public A withRegarding(V1ObjectReference regarding) { + this._visitables.remove("regarding"); + if (regarding != null) { + this.regarding = new V1ObjectReferenceBuilder(regarding); + this._visitables.get("regarding").add(this.regarding); + } else { + this.regarding = null; + this._visitables.get("regarding").remove(this.regarding); + } + return (A) this; } - public A withType(String type) { - this.type = type; + public A withRelated(V1ObjectReference related) { + this._visitables.remove("related"); + if (related != null) { + this.related = new V1ObjectReferenceBuilder(related); + this._visitables.get("related").add(this.related); + } else { + this.related = null; + this._visitables.get("related").remove(this.related); + } return (A) this; } - public boolean hasType() { - return this.type != null; + public A withReportingController(String reportingController) { + this.reportingController = reportingController; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - EventsV1EventFluent that = (EventsV1EventFluent) o; - if (!java.util.Objects.equals(action, that.action)) return false; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(deprecatedCount, that.deprecatedCount)) return false; - if (!java.util.Objects.equals(deprecatedFirstTimestamp, that.deprecatedFirstTimestamp)) return false; - if (!java.util.Objects.equals(deprecatedLastTimestamp, that.deprecatedLastTimestamp)) return false; - if (!java.util.Objects.equals(deprecatedSource, that.deprecatedSource)) return false; - if (!java.util.Objects.equals(eventTime, that.eventTime)) 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(note, that.note)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(regarding, that.regarding)) return false; - if (!java.util.Objects.equals(related, that.related)) return false; - if (!java.util.Objects.equals(reportingController, that.reportingController)) return false; - if (!java.util.Objects.equals(reportingInstance, that.reportingInstance)) return false; - if (!java.util.Objects.equals(series, that.series)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; + public A withReportingInstance(String reportingInstance) { + this.reportingInstance = reportingInstance; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(action, apiVersion, deprecatedCount, deprecatedFirstTimestamp, deprecatedLastTimestamp, deprecatedSource, eventTime, kind, metadata, note, reason, regarding, related, reportingController, reportingInstance, series, type, super.hashCode()); + public A withSeries(EventsV1EventSeries series) { + this._visitables.remove("series"); + if (series != null) { + this.series = new EventsV1EventSeriesBuilder(series); + this._visitables.get("series").add(this.series); + } else { + this.series = null; + this._visitables.get("series").remove(this.series); + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (action != null) { sb.append("action:"); sb.append(action + ","); } - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (deprecatedCount != null) { sb.append("deprecatedCount:"); sb.append(deprecatedCount + ","); } - if (deprecatedFirstTimestamp != null) { sb.append("deprecatedFirstTimestamp:"); sb.append(deprecatedFirstTimestamp + ","); } - if (deprecatedLastTimestamp != null) { sb.append("deprecatedLastTimestamp:"); sb.append(deprecatedLastTimestamp + ","); } - if (deprecatedSource != null) { sb.append("deprecatedSource:"); sb.append(deprecatedSource + ","); } - if (eventTime != null) { sb.append("eventTime:"); sb.append(eventTime + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (note != null) { sb.append("note:"); sb.append(note + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (regarding != null) { sb.append("regarding:"); sb.append(regarding + ","); } - if (related != null) { sb.append("related:"); sb.append(related + ","); } - if (reportingController != null) { sb.append("reportingController:"); sb.append(reportingController + ","); } - if (reportingInstance != null) { sb.append("reportingInstance:"); sb.append(reportingInstance + ","); } - if (series != null) { sb.append("series:"); sb.append(series + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); + public A withType(String type) { + this.type = type; + return (A) this; } public class DeprecatedSourceNested extends V1EventSourceFluent> implements Nested{ + + V1EventSourceBuilder builder; + DeprecatedSourceNested(V1EventSource item) { this.builder = new V1EventSourceBuilder(this, item); } - V1EventSourceBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withDeprecatedSource(builder.build()); } @@ -482,14 +596,15 @@ public N endDeprecatedSource() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withMetadata(builder.build()); } @@ -498,14 +613,15 @@ public N endMetadata() { return and(); } - } public class RegardingNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + RegardingNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withRegarding(builder.build()); } @@ -514,14 +630,15 @@ public N endRegarding() { return and(); } - } public class RelatedNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + RelatedNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withRelated(builder.build()); } @@ -530,14 +647,15 @@ public N endRelated() { return and(); } - } public class SeriesNested extends EventsV1EventSeriesFluent> implements Nested{ + + EventsV1EventSeriesBuilder builder; + SeriesNested(EventsV1EventSeries item) { this.builder = new EventsV1EventSeriesBuilder(this, item); } - EventsV1EventSeriesBuilder builder; - + public N and() { return (N) EventsV1EventFluent.this.withSeries(builder.build()); } @@ -546,7 +664,5 @@ public N endSeries() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java index af7d918ab6..7ea31e130a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class EventsV1EventListBuilder extends EventsV1EventListFluent implements VisitableBuilder{ + + EventsV1EventListFluent fluent; + public EventsV1EventListBuilder() { this(new EventsV1EventList()); } @@ -10,17 +14,16 @@ public EventsV1EventListBuilder(EventsV1EventListFluent fluent) { this(fluent, new EventsV1EventList()); } - public EventsV1EventListBuilder(EventsV1EventListFluent fluent,EventsV1EventList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public EventsV1EventListBuilder(EventsV1EventList instance) { this.fluent = this; this.copyInstance(instance); } - EventsV1EventListFluent fluent; + public EventsV1EventListBuilder(EventsV1EventListFluent fluent,EventsV1EventList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public EventsV1EventList build() { EventsV1EventList buildable = new EventsV1EventList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public EventsV1EventList build() { return buildable; } - } \ No newline at end of file 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..613fe765d8 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class EventsV1EventListFluent> extends BaseFluent{ +public class EventsV1EventListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public EventsV1EventListFluent() { } public EventsV1EventListFluent(EventsV1EventList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(EventsV1EventList instance) { - instance = (instance != null ? instance : new EventsV1EventList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(EventsV1Event item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(EventsV1Event... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,EventsV1Event item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public EventsV1Event buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { - if (this.items == null) {this.items = new ArrayList();} - for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public EventsV1Event buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { - if (this.items == null) return (A)this; - for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public EventsV1Event buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (EventsV1Event item : items) {EventsV1EventBuilder builder = new EventsV1EventBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public EventsV1Event buildMatchingItem(Predicate predicate) { + for (EventsV1EventBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - EventsV1EventBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(EventsV1EventList instance) { + instance = instance != null ? instance : new EventsV1EventList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public EventsV1Event buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public EventsV1Event buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public EventsV1Event buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + EventsV1EventListFluent that = (EventsV1EventListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public EventsV1Event buildMatchingItem(Predicate predicate) { - for (EventsV1EventBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(EventsV1Event... items) { + if (this.items == null) { + return (A) this; + } + for (EventsV1Event item : items) { + EventsV1EventBuilder builder = new EventsV1EventBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + EventsV1EventBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,EventsV1Event item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { + public A withItems(EventsV1Event... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.EventsV1Event... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(EventsV1Event item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,EventsV1Event 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends EventsV1EventFluent> implements Nested{ - 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; - EventsV1EventListFluent that = (EventsV1EventListFluent) 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()); - } + EventsV1EventBuilder builder; + int index; - 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 EventsV1EventFluent> implements Nested{ ItemsNested(int index,EventsV1Event item) { this.index = index; this.builder = new EventsV1EventBuilder(this, item); } - EventsV1EventBuilder builder; - int index; - + public N and() { - return (N) EventsV1EventListFluent.this.setToItems(index,builder.build()); + return (N) EventsV1EventListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) EventsV1EventListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java index b932f79264..e1b90cad72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class EventsV1EventSeriesBuilder extends EventsV1EventSeriesFluent implements VisitableBuilder{ + + EventsV1EventSeriesFluent fluent; + public EventsV1EventSeriesBuilder() { this(new EventsV1EventSeries()); } @@ -10,17 +14,16 @@ public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent) { this(fluent, new EventsV1EventSeries()); } - public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent,EventsV1EventSeries instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public EventsV1EventSeriesBuilder(EventsV1EventSeries instance) { this.fluent = this; this.copyInstance(instance); } - EventsV1EventSeriesFluent fluent; + public EventsV1EventSeriesBuilder(EventsV1EventSeriesFluent fluent,EventsV1EventSeries instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public EventsV1EventSeries build() { EventsV1EventSeries buildable = new EventsV1EventSeries(); buildable.setCount(fluent.getCount()); @@ -28,5 +31,4 @@ public EventsV1EventSeries build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java index d951164bf7..2d74bf655b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java @@ -1,82 +1,102 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class EventsV1EventSeriesFluent> extends BaseFluent{ +public class EventsV1EventSeriesFluent> extends BaseFluent{ + + private Integer count; + private OffsetDateTime lastObservedTime; + public EventsV1EventSeriesFluent() { } public EventsV1EventSeriesFluent(EventsV1EventSeries instance) { this.copyInstance(instance); } - private Integer count; - private OffsetDateTime lastObservedTime; - + protected void copyInstance(EventsV1EventSeries instance) { - instance = (instance != null ? instance : new EventsV1EventSeries()); + instance = instance != null ? instance : new EventsV1EventSeries(); if (instance != null) { - this.withCount(instance.getCount()); - this.withLastObservedTime(instance.getLastObservedTime()); - } - } - - public Integer getCount() { - return this.count; + this.withCount(instance.getCount()); + this.withLastObservedTime(instance.getLastObservedTime()); + } } - public A withCount(Integer count) { - this.count = count; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + EventsV1EventSeriesFluent that = (EventsV1EventSeriesFluent) o; + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(lastObservedTime, that.lastObservedTime))) { + return false; + } + return true; } - public boolean hasCount() { - return this.count != null; + public Integer getCount() { + return this.count; } public OffsetDateTime getLastObservedTime() { return this.lastObservedTime; } - public A withLastObservedTime(OffsetDateTime lastObservedTime) { - this.lastObservedTime = lastObservedTime; - return (A) this; + public boolean hasCount() { + return this.count != null; } public boolean hasLastObservedTime() { return this.lastObservedTime != 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; - EventsV1EventSeriesFluent that = (EventsV1EventSeriesFluent) o; - if (!java.util.Objects.equals(count, that.count)) return false; - if (!java.util.Objects.equals(lastObservedTime, that.lastObservedTime)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(count, lastObservedTime, super.hashCode()); + return Objects.hash(count, lastObservedTime); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (count != null) { sb.append("count:"); sb.append(count + ","); } - if (lastObservedTime != null) { sb.append("lastObservedTime:"); sb.append(lastObservedTime); } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(lastObservedTime == null)) { + sb.append("lastObservedTime:"); + sb.append(lastObservedTime); + } sb.append("}"); return sb.toString(); } - + public A withCount(Integer count) { + this.count = count; + return (A) this; + } + + public A withLastObservedTime(OffsetDateTime lastObservedTime) { + this.lastObservedTime = lastObservedTime; + return (A) this; + } + } \ No newline at end of file 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 index 599a1e635e..f22a148eea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class FlowcontrolV1SubjectBuilder extends FlowcontrolV1SubjectFluent implements VisitableBuilder{ + + FlowcontrolV1SubjectFluent fluent; + public FlowcontrolV1SubjectBuilder() { this(new FlowcontrolV1Subject()); } @@ -10,17 +14,16 @@ 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 FlowcontrolV1SubjectBuilder(FlowcontrolV1SubjectFluent fluent,FlowcontrolV1Subject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public FlowcontrolV1Subject build() { FlowcontrolV1Subject buildable = new FlowcontrolV1Subject(); buildable.setGroup(fluent.buildGroup()); @@ -30,5 +33,4 @@ public FlowcontrolV1Subject build() { 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 index 448e798945..c65fffe098 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java @@ -1,202 +1,238 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class FlowcontrolV1SubjectFluent> extends BaseFluent{ - public FlowcontrolV1SubjectFluent() { - } - - public FlowcontrolV1SubjectFluent(FlowcontrolV1Subject instance) { - this.copyInstance(instance); - } +public class FlowcontrolV1SubjectFluent> extends BaseFluent{ + 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 FlowcontrolV1SubjectFluent() { } + public FlowcontrolV1SubjectFluent(FlowcontrolV1Subject instance) { + this.copyInstance(instance); + } + 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 V1ServiceAccountSubject buildServiceAccount() { + return this.serviceAccount != null ? this.serviceAccount.build() : null; } - public GroupNested withNewGroup() { - return new GroupNested(null); + public V1UserSubject buildUser() { + return this.user != null ? this.user.build() : null; } - public GroupNested withNewGroupLike(V1GroupSubject item) { - return new GroupNested(item); + 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 GroupNested editGroup() { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(null)); + return this.withNewGroupLike(Optional.ofNullable(this.buildGroup()).orElse(null)); } public GroupNested editOrNewGroup() { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(new V1GroupSubjectBuilder().build())); + return this.withNewGroupLike(Optional.ofNullable(this.buildGroup()).orElse(new V1GroupSubjectBuilder().build())); } public GroupNested editOrNewGroupLike(V1GroupSubject item) { - return withNewGroupLike(java.util.Optional.ofNullable(buildGroup()).orElse(item)); + return this.withNewGroupLike(Optional.ofNullable(this.buildGroup()).orElse(item)); } - public String getKind() { - return this.kind; + public ServiceAccountNested editOrNewServiceAccount() { + return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(new V1ServiceAccountSubjectBuilder().build())); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public ServiceAccountNested editOrNewServiceAccountLike(V1ServiceAccountSubject item) { + return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(item)); } - public boolean hasKind() { - return this.kind != null; + public UserNested editOrNewUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1UserSubjectBuilder().build())); } - public V1ServiceAccountSubject buildServiceAccount() { - return this.serviceAccount != null ? this.serviceAccount.build() : null; + public UserNested editOrNewUserLike(V1UserSubject item) { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); } - 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); + public ServiceAccountNested editServiceAccount() { + return this.withNewServiceAccountLike(Optional.ofNullable(this.buildServiceAccount()).orElse(null)); + } + + public UserNested editUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + FlowcontrolV1SubjectFluent that = (FlowcontrolV1SubjectFluent) o; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(serviceAccount, that.serviceAccount))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } - public boolean hasServiceAccount() { - return this.serviceAccount != null; + public String getKind() { + return this.kind; } - public ServiceAccountNested withNewServiceAccount() { - return new ServiceAccountNested(null); + public boolean hasGroup() { + return this.group != null; } - public ServiceAccountNested withNewServiceAccountLike(V1ServiceAccountSubject item) { - return new ServiceAccountNested(item); + public boolean hasKind() { + return this.kind != null; } - public ServiceAccountNested editServiceAccount() { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(null)); + public boolean hasServiceAccount() { + return this.serviceAccount != null; } - public ServiceAccountNested editOrNewServiceAccount() { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(new V1ServiceAccountSubjectBuilder().build())); + public boolean hasUser() { + return this.user != null; } - public ServiceAccountNested editOrNewServiceAccountLike(V1ServiceAccountSubject item) { - return withNewServiceAccountLike(java.util.Optional.ofNullable(buildServiceAccount()).orElse(item)); + public int hashCode() { + return Objects.hash(group, kind, serviceAccount, user); } - public V1UserSubject buildUser() { - return this.user != null ? this.user.build() : null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(serviceAccount == null)) { + sb.append("serviceAccount:"); + sb.append(serviceAccount); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } + sb.append("}"); + return sb.toString(); } - public A withUser(V1UserSubject user) { - this._visitables.remove("user"); - if (user != null) { - this.user = new V1UserSubjectBuilder(user); - this._visitables.get("user").add(this.user); + 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.user = null; - this._visitables.get("user").remove(this.user); + this.group = null; + this._visitables.get("group").remove(this.group); } return (A) this; } - public boolean hasUser() { - return this.user != null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public UserNested withNewUser() { - return new UserNested(null); + public GroupNested withNewGroup() { + return new GroupNested(null); } - public UserNested withNewUserLike(V1UserSubject item) { - return new UserNested(item); + public GroupNested withNewGroupLike(V1GroupSubject item) { + return new GroupNested(item); } - public UserNested editUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(null)); + public ServiceAccountNested withNewServiceAccount() { + return new ServiceAccountNested(null); } - public UserNested editOrNewUser() { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(new V1UserSubjectBuilder().build())); + public ServiceAccountNested withNewServiceAccountLike(V1ServiceAccountSubject item) { + return new ServiceAccountNested(item); } - public UserNested editOrNewUserLike(V1UserSubject item) { - return withNewUserLike(java.util.Optional.ofNullable(buildUser()).orElse(item)); + public UserNested withNewUser() { + return new UserNested(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; - 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 UserNested withNewUserLike(V1UserSubject item) { + return new UserNested(item); } - public int hashCode() { - return java.util.Objects.hash(group, kind, serviceAccount, user, super.hashCode()); + 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 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 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 class GroupNested extends V1GroupSubjectFluent> implements Nested{ + + V1GroupSubjectBuilder builder; + GroupNested(V1GroupSubject item) { this.builder = new V1GroupSubjectBuilder(this, item); } - V1GroupSubjectBuilder builder; - + public N and() { return (N) FlowcontrolV1SubjectFluent.this.withGroup(builder.build()); } @@ -205,14 +241,15 @@ public N endGroup() { return and(); } - } public class ServiceAccountNested extends V1ServiceAccountSubjectFluent> implements Nested{ + + V1ServiceAccountSubjectBuilder builder; + ServiceAccountNested(V1ServiceAccountSubject item) { this.builder = new V1ServiceAccountSubjectBuilder(this, item); } - V1ServiceAccountSubjectBuilder builder; - + public N and() { return (N) FlowcontrolV1SubjectFluent.this.withServiceAccount(builder.build()); } @@ -221,14 +258,15 @@ public N endServiceAccount() { return and(); } - } public class UserNested extends V1UserSubjectFluent> implements Nested{ + + V1UserSubjectBuilder builder; + UserNested(V1UserSubject item) { this.builder = new V1UserSubjectBuilder(this, item); } - V1UserSubjectBuilder builder; - + public N and() { return (N) FlowcontrolV1SubjectFluent.this.withUser(builder.build()); } @@ -237,7 +275,5 @@ 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 index b9e7561b13..2c1179beac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class RbacV1SubjectBuilder extends RbacV1SubjectFluent implements VisitableBuilder{ + + RbacV1SubjectFluent fluent; + public RbacV1SubjectBuilder() { this(new RbacV1Subject()); } @@ -10,17 +14,16 @@ 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 RbacV1SubjectBuilder(RbacV1SubjectFluent fluent,RbacV1Subject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public RbacV1Subject build() { RbacV1Subject buildable = new RbacV1Subject(); buildable.setApiGroup(fluent.getApiGroup()); @@ -30,5 +33,4 @@ public RbacV1Subject build() { 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 index 5bd2b1ec2c..f182562ff6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java @@ -1,114 +1,146 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class RbacV1SubjectFluent> extends BaseFluent{ +public class RbacV1SubjectFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + private String namespace; + 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()); + 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; + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + } } - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + RbacV1SubjectFluent that = (RbacV1SubjectFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + return true; } - public boolean hasApiGroup() { - return this.apiGroup != null; + public String getApiGroup() { + return this.apiGroup; } 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 String getNamespace() { + return this.namespace; } - public boolean hasName() { - return this.name != null; + public boolean hasApiGroup() { + return this.apiGroup != null; } - public String getNamespace() { - return this.namespace; + public boolean hasKind() { + return this.kind != null; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public boolean hasName() { + return this.name != null; } 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()); + return Objects.hash(apiGroup, kind, name, namespace); } 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); } + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java new file mode 100644 index 0000000000..c20c868540 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class ResourceV1ResourceClaimBuilder extends ResourceV1ResourceClaimFluent implements VisitableBuilder{ + + ResourceV1ResourceClaimFluent fluent; + + public ResourceV1ResourceClaimBuilder() { + this(new ResourceV1ResourceClaim()); + } + + public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaimFluent fluent) { + this(fluent, new ResourceV1ResourceClaim()); + } + + public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public ResourceV1ResourceClaimBuilder(ResourceV1ResourceClaimFluent fluent,ResourceV1ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public ResourceV1ResourceClaim build() { + ResourceV1ResourceClaim buildable = new ResourceV1ResourceClaim(); + 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/ResourceV1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java new file mode 100644 index 0000000000..60e1291f27 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java @@ -0,0 +1,302 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class ResourceV1ResourceClaimFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ResourceClaimSpecBuilder spec; + private V1ResourceClaimStatusBuilder status; + + public ResourceV1ResourceClaimFluent() { + } + + public ResourceV1ResourceClaimFluent(ResourceV1ResourceClaim instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(ResourceV1ResourceClaim instance) { + instance = instance != null ? instance : new ResourceV1ResourceClaim(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ResourceClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ResourceClaimStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ResourceClaimStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + ResourceV1ResourceClaimFluent that = (ResourceV1ResourceClaimFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ResourceClaimStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1ResourceClaimStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1ResourceClaimStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) ResourceV1ResourceClaimFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1ResourceClaimSpecFluent> implements Nested{ + + V1ResourceClaimSpecBuilder builder; + + SpecNested(V1ResourceClaimSpec item) { + this.builder = new V1ResourceClaimSpecBuilder(this, item); + } + + public N and() { + return (N) ResourceV1ResourceClaimFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1ResourceClaimStatusFluent> implements Nested{ + + V1ResourceClaimStatusBuilder builder; + + StatusNested(V1ResourceClaimStatus item) { + this.builder = new V1ResourceClaimStatusBuilder(this, item); + } + + public N and() { + return (N) ResourceV1ResourceClaimFluent.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/StorageV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java index e968ead6d5..fd39fb759c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class StorageV1TokenRequestBuilder extends StorageV1TokenRequestFluent implements VisitableBuilder{ + + StorageV1TokenRequestFluent fluent; + public StorageV1TokenRequestBuilder() { this(new StorageV1TokenRequest()); } @@ -10,17 +14,16 @@ public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent) { this(fluent, new StorageV1TokenRequest()); } - public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,StorageV1TokenRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public StorageV1TokenRequestBuilder(StorageV1TokenRequest instance) { this.fluent = this; this.copyInstance(instance); } - StorageV1TokenRequestFluent fluent; + public StorageV1TokenRequestBuilder(StorageV1TokenRequestFluent fluent,StorageV1TokenRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public StorageV1TokenRequest build() { StorageV1TokenRequest buildable = new StorageV1TokenRequest(); buildable.setAudience(fluent.getAudience()); @@ -28,5 +31,4 @@ public StorageV1TokenRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java index 0adb288b93..524c7eb13a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java @@ -1,81 +1,101 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class StorageV1TokenRequestFluent> extends BaseFluent{ +public class StorageV1TokenRequestFluent> extends BaseFluent{ + + private String audience; + private Long expirationSeconds; + public StorageV1TokenRequestFluent() { } public StorageV1TokenRequestFluent(StorageV1TokenRequest instance) { this.copyInstance(instance); } - private String audience; - private Long expirationSeconds; - + protected void copyInstance(StorageV1TokenRequest instance) { - instance = (instance != null ? instance : new StorageV1TokenRequest()); + instance = instance != null ? instance : new StorageV1TokenRequest(); if (instance != null) { - this.withAudience(instance.getAudience()); - this.withExpirationSeconds(instance.getExpirationSeconds()); - } + this.withAudience(instance.getAudience()); + this.withExpirationSeconds(instance.getExpirationSeconds()); + } } - public String getAudience() { - return this.audience; - } - - public A withAudience(String audience) { - this.audience = audience; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + StorageV1TokenRequestFluent that = (StorageV1TokenRequestFluent) o; + if (!(Objects.equals(audience, that.audience))) { + return false; + } + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } + return true; } - public boolean hasAudience() { - return this.audience != null; + public String getAudience() { + return this.audience; } public Long getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(Long expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; + public boolean hasAudience() { + return this.audience != null; } public boolean hasExpirationSeconds() { return this.expirationSeconds != 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; - StorageV1TokenRequestFluent that = (StorageV1TokenRequestFluent) o; - if (!java.util.Objects.equals(audience, that.audience)) return false; - if (!java.util.Objects.equals(expirationSeconds, that.expirationSeconds)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(audience, expirationSeconds, super.hashCode()); + return Objects.hash(audience, expirationSeconds); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audience != null) { sb.append("audience:"); sb.append(audience + ","); } - if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds); } + if (!(audience == null)) { + sb.append("audience:"); + sb.append(audience); + sb.append(","); + } + if (!(expirationSeconds == null)) { + sb.append("expirationSeconds:"); + sb.append(expirationSeconds); + } sb.append("}"); return sb.toString(); } - + public A withAudience(String audience) { + this.audience = audience; + return (A) this; + } + + public A withExpirationSeconds(Long expirationSeconds) { + this.expirationSeconds = expirationSeconds; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java index 61bea7c6b1..ca340adf62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIGroupBuilder extends V1APIGroupFluent implements VisitableBuilder{ + + V1APIGroupFluent fluent; + public V1APIGroupBuilder() { this(new V1APIGroup()); } @@ -10,17 +14,16 @@ public V1APIGroupBuilder(V1APIGroupFluent fluent) { this(fluent, new V1APIGroup()); } - public V1APIGroupBuilder(V1APIGroupFluent fluent,V1APIGroup instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIGroupBuilder(V1APIGroup instance) { this.fluent = this; this.copyInstance(instance); } - V1APIGroupFluent fluent; + public V1APIGroupBuilder(V1APIGroupFluent fluent,V1APIGroup instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIGroup build() { V1APIGroup buildable = new V1APIGroup(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +35,4 @@ public V1APIGroup build() { return buildable; } - } \ 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..957eb12f0e 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 @@ -1,201 +1,347 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIGroupFluent> extends BaseFluent{ - public V1APIGroupFluent() { - } - - public V1APIGroupFluent(V1APIGroup instance) { - this.copyInstance(instance); - } +public class V1APIGroupFluent> extends BaseFluent{ + private String apiVersion; private String kind; private String name; private V1GroupVersionForDiscoveryBuilder preferredVersion; private ArrayList serverAddressByClientCIDRs; private ArrayList versions; - - protected void copyInstance(V1APIGroup instance) { - instance = (instance != null ? instance : new V1APIGroup()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withPreferredVersion(instance.getPreferredVersion()); - this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); - this.withVersions(instance.getVersions()); - } + + public V1APIGroupFluent() { } - public String getApiVersion() { - return this.apiVersion; + public V1APIGroupFluent(V1APIGroup instance) { + this.copyInstance(instance); } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + + public A addAllToServerAddressByClientCIDRs(Collection items) { + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; } - public String getKind() { - return this.kind; + public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { + return new ServerAddressByClientCIDRsNested(-1, null); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { + return new ServerAddressByClientCIDRsNested(-1, item); } - public boolean hasKind() { - return this.kind != null; + public VersionsNested addNewVersion() { + return new VersionsNested(-1, null); } - public String getName() { - return this.name; + public VersionsNested addNewVersionLike(V1GroupVersionForDiscovery item) { + return new VersionsNested(-1, item); } - public A withName(String name) { - this.name = name; + public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); + } return (A) this; } - public boolean hasName() { - return this.name != null; + 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(builder); + serverAddressByClientCIDRs.add(index, builder); + } + return (A) this; } - public V1GroupVersionForDiscovery buildPreferredVersion() { - return this.preferredVersion != null ? this.preferredVersion.build() : null; + public A addToVersions(V1GroupVersionForDiscovery... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; } - public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { - this._visitables.remove("preferredVersion"); - if (preferredVersion != null) { - this.preferredVersion = new V1GroupVersionForDiscoveryBuilder(preferredVersion); - this._visitables.get("preferredVersion").add(this.preferredVersion); + 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 { - this.preferredVersion = null; - this._visitables.get("preferredVersion").remove(this.preferredVersion); + _visitables.get("versions").add(builder); + versions.add(index, builder); } return (A) this; } - public boolean hasPreferredVersion() { - return this.preferredVersion != null; + public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { + return this.serverAddressByClientCIDRs.get(0).build(); } - public PreferredVersionNested withNewPreferredVersion() { - return new PreferredVersionNested(null); + public V1GroupVersionForDiscovery buildFirstVersion() { + return this.versions.get(0).build(); } - public PreferredVersionNested withNewPreferredVersionLike(V1GroupVersionForDiscovery item) { - return new PreferredVersionNested(item); + public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR() { + return this.serverAddressByClientCIDRs.get(serverAddressByClientCIDRs.size() - 1).build(); } - public PreferredVersionNested editPreferredVersion() { - return withNewPreferredVersionLike(java.util.Optional.ofNullable(buildPreferredVersion()).orElse(null)); + public V1GroupVersionForDiscovery buildLastVersion() { + return this.versions.get(versions.size() - 1).build(); } - public PreferredVersionNested editOrNewPreferredVersion() { - return withNewPreferredVersionLike(java.util.Optional.ofNullable(buildPreferredVersion()).orElse(new V1GroupVersionForDiscoveryBuilder().build())); + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public PreferredVersionNested editOrNewPreferredVersionLike(V1GroupVersionForDiscovery item) { - return withNewPreferredVersionLike(java.util.Optional.ofNullable(buildPreferredVersion()).orElse(item)); + public V1GroupVersionForDiscovery buildMatchingVersion(Predicate predicate) { + for (V1GroupVersionForDiscoveryBuilder item : versions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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);} - return (A)this; + public V1GroupVersionForDiscovery buildPreferredVersion() { + return this.preferredVersion != null ? this.preferredVersion.build() : null; } - 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);} - return (A)this; + public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(int index) { + return this.serverAddressByClientCIDRs.get(index).build(); } - public A addToServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; + public List buildServerAddressByClientCIDRs() { + return this.serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public A addAllToServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; + public V1GroupVersionForDiscovery buildVersion(int index) { + return this.versions.get(index).build(); } - public A removeFromServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) return (A)this; - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder); this.serverAddressByClientCIDRs.remove(builder);} return (A)this; + public List buildVersions() { + return this.versions != null ? build(versions) : null; } - public A removeAllFromServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) return (A)this; - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder); this.serverAddressByClientCIDRs.remove(builder);} return (A)this; + protected void copyInstance(V1APIGroup instance) { + instance = instance != null ? instance : new V1APIGroup(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withPreferredVersion(instance.getPreferredVersion()); + this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); + this.withVersions(instance.getVersions()); + } } - public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { - if (serverAddressByClientCIDRs == null) return (A) this; - final Iterator each = serverAddressByClientCIDRs.iterator(); - final List visitables = _visitables.get("serverAddressByClientCIDRs"); - while (each.hasNext()) { - V1ServerAddressByClientCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { + if (serverAddressByClientCIDRs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(0, this.buildServerAddressByClientCIDR(0)); + } + + public VersionsNested editFirstVersion() { + if (versions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(0, this.buildVersion(0)); + } + + public ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { + int index = serverAddressByClientCIDRs.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); + } + + public VersionsNested editLastVersion() { + int index = versions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + + public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate) { + int index = -1; + for (int i = 0;i < serverAddressByClientCIDRs.size();i++) { + if (predicate.test(serverAddressByClientCIDRs.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } - public List buildServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; + public VersionsNested editMatchingVersion(Predicate predicate) { + int index = -1; + for (int i = 0;i < versions.size();i++) { + if (predicate.test(versions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); } - public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(int index) { - return this.serverAddressByClientCIDRs.get(index).build(); + public PreferredVersionNested editOrNewPreferredVersion() { + return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(new V1GroupVersionForDiscoveryBuilder().build())); } - public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { - return this.serverAddressByClientCIDRs.get(0).build(); + public PreferredVersionNested editOrNewPreferredVersionLike(V1GroupVersionForDiscovery item) { + return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(item)); } - public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR() { - return this.serverAddressByClientCIDRs.get(serverAddressByClientCIDRs.size() - 1).build(); + public PreferredVersionNested editPreferredVersion() { + return this.withNewPreferredVersionLike(Optional.ofNullable(this.buildPreferredVersion()).orElse(null)); } - public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predicate predicate) { + public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { + if (serverAddressByClientCIDRs.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); + } + + public VersionsNested editVersion(int index) { + if (versions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIGroupFluent that = (V1APIGroupFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(preferredVersion, that.preferredVersion))) { + return false; + } + if (!(Objects.equals(serverAddressByClientCIDRs, that.serverAddressByClientCIDRs))) { + return false; + } + if (!(Objects.equals(versions, that.versions))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingServerAddressByClientCIDR(Predicate predicate) { for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } - public boolean hasMatchingServerAddressByClientCIDR(Predicate predicate) { - for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { + public boolean hasMatchingVersion(Predicate predicate) { + for (V1GroupVersionForDiscoveryBuilder item : versions) { if (predicate.test(item)) { return true; } @@ -203,155 +349,241 @@ public boolean hasMatchingServerAddressByClientCIDR(Predicate serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this._visitables.get("serverAddressByClientCIDRs").clear(); - } - if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new ArrayList(); - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } else { - this.serverAddressByClientCIDRs = null; - } - return (A) this; + public boolean hasName() { + return this.name != null; } - public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.clear(); - _visitables.remove("serverAddressByClientCIDRs"); - } - if (serverAddressByClientCIDRs != null) { - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); - } - } - return (A) this; + public boolean hasPreferredVersion() { + return this.preferredVersion != null; } public boolean hasServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null && !this.serverAddressByClientCIDRs.isEmpty(); + return this.serverAddressByClientCIDRs != null && !(this.serverAddressByClientCIDRs.isEmpty()); } - public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { - return new ServerAddressByClientCIDRsNested(-1, null); + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); } - public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(-1, item); + public int hashCode() { + return Objects.hash(apiVersion, kind, name, preferredVersion, serverAddressByClientCIDRs, versions); } - public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(index, item); + public A removeAllFromServerAddressByClientCIDRs(Collection items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; } - public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { - if (serverAddressByClientCIDRs.size() <= index) throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); - return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; } - public ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { - if (serverAddressByClientCIDRs.size() == 0) throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); - return setNewServerAddressByClientCIDRLike(0, buildServerAddressByClientCIDR(0)); + public A removeFromServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; } - public ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { - int index = serverAddressByClientCIDRs.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last serverAddressByClientCIDRs. The list is empty."); - return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); + public A removeFromVersions(V1GroupVersionForDiscovery... items) { + if (this.versions == null) { + return (A) this; + } + for (V1GroupVersionForDiscovery item : items) { + V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; } - public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + if (serverAddressByClientCIDRs == null) { + return (A) this; + } + Iterator each = serverAddressByClientCIDRs.iterator(); + List visitables = _visitables.get("serverAddressByClientCIDRs"); + while (each.hasNext()) { + V1ServerAddressByClientCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - 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);} - return (A)this; + public A removeMatchingFromVersions(Predicate predicate) { + if (versions == null) { + return (A) this; + } + Iterator each = versions.iterator(); + List visitables = _visitables.get("versions"); + while (each.hasNext()) { + V1GroupVersionForDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + 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);} - return (A)this; + public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { + return new ServerAddressByClientCIDRsNested(index, item); } - public A addToVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; + public VersionsNested setNewVersionLike(int index,V1GroupVersionForDiscovery item) { + return new VersionsNested(index, item); } - public A addAllToVersions(Collection items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").add(builder);this.versions.add(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").add(builder); + serverAddressByClientCIDRs.set(index, builder); + } + return (A) this; } - public A removeFromVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... items) { - if (this.versions == null) return (A)this; - for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").remove(builder); this.versions.remove(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").add(builder); + versions.set(index, builder); + } + return (A) this; } - public A removeAllFromVersions(Collection items) { - if (this.versions == null) return (A)this; - for (V1GroupVersionForDiscovery item : items) {V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item);_visitables.get("versions").remove(builder); this.versions.remove(builder);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(preferredVersion == null)) { + sb.append("preferredVersion:"); + sb.append(preferredVersion); + sb.append(","); + } + if (!(serverAddressByClientCIDRs == null) && !(serverAddressByClientCIDRs.isEmpty())) { + sb.append("serverAddressByClientCIDRs:"); + sb.append(serverAddressByClientCIDRs); + sb.append(","); + } + if (!(versions == null) && !(versions.isEmpty())) { + sb.append("versions:"); + sb.append(versions); + } + sb.append("}"); + return sb.toString(); } - public A removeMatchingFromVersions(Predicate predicate) { - if (versions == null) return (A) this; - final Iterator each = versions.iterator(); - final List visitables = _visitables.get("versions"); - while (each.hasNext()) { - V1GroupVersionForDiscoveryBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public List buildVersions() { - return this.versions != null ? build(versions) : null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public V1GroupVersionForDiscovery buildVersion(int index) { - return this.versions.get(index).build(); + public A withName(String name) { + this.name = name; + return (A) this; } - public V1GroupVersionForDiscovery buildFirstVersion() { - return this.versions.get(0).build(); + public PreferredVersionNested withNewPreferredVersion() { + return new PreferredVersionNested(null); } - public V1GroupVersionForDiscovery buildLastVersion() { - return this.versions.get(versions.size() - 1).build(); + public PreferredVersionNested withNewPreferredVersionLike(V1GroupVersionForDiscovery item) { + return new PreferredVersionNested(item); } - public V1GroupVersionForDiscovery buildMatchingVersion(Predicate predicate) { - for (V1GroupVersionForDiscoveryBuilder item : versions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { + this._visitables.remove("preferredVersion"); + if (preferredVersion != null) { + this.preferredVersion = new V1GroupVersionForDiscoveryBuilder(preferredVersion); + this._visitables.get("preferredVersion").add(this.preferredVersion); + } else { + this.preferredVersion = null; + this._visitables.get("preferredVersion").remove(this.preferredVersion); + } + return (A) this; } - public boolean hasMatchingVersion(Predicate predicate) { - for (V1GroupVersionForDiscoveryBuilder item : versions) { - if (predicate.test(item)) { - return true; + public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { + this._visitables.get("serverAddressByClientCIDRs").clear(); + } + if (serverAddressByClientCIDRs != null) { + this.serverAddressByClientCIDRs = new ArrayList(); + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { + this.addToServerAddressByClientCIDRs(item); } + } else { + this.serverAddressByClientCIDRs = null; + } + return (A) this; + } + + public A withServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { + this.serverAddressByClientCIDRs.clear(); + _visitables.remove("serverAddressByClientCIDRs"); + } + if (serverAddressByClientCIDRs != null) { + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { + this.addToServerAddressByClientCIDRs(item); } - return false; + } + return (A) this; } public A withVersions(List versions) { @@ -369,7 +601,7 @@ public A withVersions(List versions) { return (A) this; } - public A withVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery... versions) { + public A withVersions(V1GroupVersionForDiscovery... versions) { if (this.versions != null) { this.versions.clear(); _visitables.remove("versions"); @@ -381,84 +613,14 @@ public A withVersions(io.kubernetes.client.openapi.models.V1GroupVersionForDisco } return (A) this; } + public class PreferredVersionNested extends V1GroupVersionForDiscoveryFluent> implements Nested{ - public boolean hasVersions() { - return this.versions != null && !this.versions.isEmpty(); - } - - public VersionsNested addNewVersion() { - return new VersionsNested(-1, null); - } - - public VersionsNested addNewVersionLike(V1GroupVersionForDiscovery item) { - return new VersionsNested(-1, item); - } - - public VersionsNested setNewVersionLike(int index,V1GroupVersionForDiscovery item) { - return new VersionsNested(index, item); - } - - public VersionsNested editVersion(int index) { - if (versions.size() <= index) throw new RuntimeException("Can't edit versions. Index exceeds size."); - return setNewVersionLike(index, buildVersion(index)); - } - - public VersionsNested editFirstVersion() { - if (versions.size() == 0) throw new RuntimeException("Can't edit first versions. The list is empty."); - return setNewVersionLike(0, buildVersion(0)); - } - - public VersionsNested editLastVersion() { - int index = versions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last versions. The list is empty."); - return setNewVersionLike(index, buildVersion(index)); - } - - public VersionsNested editMatchingVersion(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1GroupVersionForDiscoveryFluent> implements Nested{ PreferredVersionNested(V1GroupVersionForDiscovery item) { this.builder = new V1GroupVersionForDiscoveryBuilder(this, item); } - V1GroupVersionForDiscoveryBuilder builder; - + public N and() { return (N) V1APIGroupFluent.this.withPreferredVersion(builder.build()); } @@ -467,43 +629,43 @@ public N endPreferredVersion() { return and(); } - } public class ServerAddressByClientCIDRsNested extends V1ServerAddressByClientCIDRFluent> implements Nested{ + + V1ServerAddressByClientCIDRBuilder builder; + int index; + ServerAddressByClientCIDRsNested(int index,V1ServerAddressByClientCIDR item) { this.index = index; this.builder = new V1ServerAddressByClientCIDRBuilder(this, item); } - V1ServerAddressByClientCIDRBuilder builder; - int index; - + public N and() { - return (N) V1APIGroupFluent.this.setToServerAddressByClientCIDRs(index,builder.build()); + return (N) V1APIGroupFluent.this.setToServerAddressByClientCIDRs(index, builder.build()); } public N endServerAddressByClientCIDR() { return and(); } - } public class VersionsNested extends V1GroupVersionForDiscoveryFluent> implements Nested{ + + V1GroupVersionForDiscoveryBuilder builder; + int index; + VersionsNested(int index,V1GroupVersionForDiscovery item) { this.index = index; this.builder = new V1GroupVersionForDiscoveryBuilder(this, item); } - V1GroupVersionForDiscoveryBuilder builder; - int index; - + public N and() { - return (N) V1APIGroupFluent.this.setToVersions(index,builder.build()); + return (N) V1APIGroupFluent.this.setToVersions(index, builder.build()); } public N endVersion() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java index 1f781f6353..3b7e9eff22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIGroupListBuilder extends V1APIGroupListFluent implements VisitableBuilder{ + + V1APIGroupListFluent fluent; + public V1APIGroupListBuilder() { this(new V1APIGroupList()); } @@ -10,17 +14,16 @@ public V1APIGroupListBuilder(V1APIGroupListFluent fluent) { this(fluent, new V1APIGroupList()); } - public V1APIGroupListBuilder(V1APIGroupListFluent fluent,V1APIGroupList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIGroupListBuilder(V1APIGroupList instance) { this.fluent = this; this.copyInstance(instance); } - V1APIGroupListFluent fluent; + public V1APIGroupListBuilder(V1APIGroupListFluent fluent,V1APIGroupList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIGroupList build() { V1APIGroupList buildable = new V1APIGroupList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -29,5 +32,4 @@ public V1APIGroupList build() { return buildable; } - } \ No newline at end of file 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..6979ed4362 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 @@ -1,112 +1,93 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIGroupListFluent> extends BaseFluent{ +public class V1APIGroupListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList groups; + private String kind; + public V1APIGroupListFluent() { } public V1APIGroupListFluent(V1APIGroupList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList groups; - private String kind; - - protected void copyInstance(V1APIGroupList instance) { - instance = (instance != null ? instance : new V1APIGroupList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withGroups(instance.getGroups()); - this.withKind(instance.getKind()); - } + + public A addAllToGroups(Collection items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").add(builder); + this.groups.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public GroupsNested addNewGroup() { + return new GroupsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public GroupsNested addNewGroupLike(V1APIGroup item) { + return new GroupsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToGroups(V1APIGroup... items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").add(builder); + this.groups.add(builder); + } + return (A) this; } 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);} - return (A)this; - } - - public A setToGroups(int index,V1APIGroup item) { - if (this.groups == null) {this.groups = new ArrayList();} + 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);} - return (A)this; - } - - public A addToGroups(io.kubernetes.client.openapi.models.V1APIGroup... items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").add(builder);this.groups.add(builder);} return (A)this; - } - - public A addAllToGroups(Collection items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").add(builder);this.groups.add(builder);} return (A)this; - } - - public A removeFromGroups(io.kubernetes.client.openapi.models.V1APIGroup... items) { - if (this.groups == null) return (A)this; - for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").remove(builder); this.groups.remove(builder);} return (A)this; - } - - public A removeAllFromGroups(Collection items) { - if (this.groups == null) return (A)this; - for (V1APIGroup item : items) {V1APIGroupBuilder builder = new V1APIGroupBuilder(item);_visitables.get("groups").remove(builder); this.groups.remove(builder);} return (A)this; - } - - public A removeMatchingFromGroups(Predicate predicate) { - if (groups == null) return (A) this; - final Iterator each = groups.iterator(); - final List visitables = _visitables.get("groups"); - while (each.hasNext()) { - V1APIGroupBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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; + return (A) this; } - public List buildGroups() { - return this.groups != null ? build(groups) : null; + public V1APIGroup buildFirstGroup() { + return this.groups.get(0).build(); } public V1APIGroup buildGroup(int index) { return this.groups.get(index).build(); } - public V1APIGroup buildFirstGroup() { - return this.groups.get(0).build(); + public List buildGroups() { + return this.groups != null ? build(groups) : null; } public V1APIGroup buildLastGroup() { @@ -122,138 +103,241 @@ public V1APIGroup buildMatchingGroup(Predicate predicate) { return null; } - public boolean hasMatchingGroup(Predicate predicate) { - for (V1APIGroupBuilder item : groups) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1APIGroupList instance) { + instance = instance != null ? instance : new V1APIGroupList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withGroups(instance.getGroups()); + this.withKind(instance.getKind()); + } } - public A withGroups(List groups) { - if (this.groups != null) { - this._visitables.get("groups").clear(); + public GroupsNested editFirstGroup() { + if (groups.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "groups")); } - if (groups != null) { - this.groups = new ArrayList(); - for (V1APIGroup item : groups) { - this.addToGroups(item); - } - } else { - this.groups = null; + return this.setNewGroupLike(0, this.buildGroup(0)); + } + + public GroupsNested editGroup(int index) { + if (groups.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "groups")); } - return (A) this; + return this.setNewGroupLike(index, this.buildGroup(index)); } - public A withGroups(io.kubernetes.client.openapi.models.V1APIGroup... groups) { - if (this.groups != null) { - this.groups.clear(); - _visitables.remove("groups"); + public GroupsNested editLastGroup() { + int index = groups.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "groups")); } - if (groups != null) { - for (V1APIGroup item : groups) { - this.addToGroups(item); + return this.setNewGroupLike(index, this.buildGroup(index)); + } + + public GroupsNested editMatchingGroup(Predicate predicate) { + int index = -1; + for (int i = 0;i < groups.size();i++) { + if (predicate.test(groups.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "groups")); + } + return this.setNewGroupLike(index, this.buildGroup(index)); } - public boolean hasGroups() { - return this.groups != null && !this.groups.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIGroupListFluent that = (V1APIGroupListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(groups, that.groups))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + return true; } - public GroupsNested addNewGroup() { - return new GroupsNested(-1, null); + public String getApiVersion() { + return this.apiVersion; } - public GroupsNested addNewGroupLike(V1APIGroup item) { - return new GroupsNested(-1, item); + public String getKind() { + return this.kind; } - public GroupsNested setNewGroupLike(int index,V1APIGroup item) { - return new GroupsNested(index, item); + public boolean hasApiVersion() { + return this.apiVersion != null; } - public GroupsNested editGroup(int index) { - if (groups.size() <= index) throw new RuntimeException("Can't edit groups. Index exceeds size."); - return setNewGroupLike(index, buildGroup(index)); + public boolean hasGroups() { + return this.groups != null && !(this.groups.isEmpty()); } - public GroupsNested editFirstGroup() { - if (groups.size() == 0) throw new RuntimeException("Can't edit first groups. The list is empty."); - return setNewGroupLike(0, buildGroup(0)); + public boolean hasKind() { + return this.kind != null; } - public GroupsNested editLastGroup() { - int index = groups.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last groups. The list is empty."); - return setNewGroupLike(index, buildGroup(index)); + public boolean hasMatchingGroup(Predicate predicate) { + for (V1APIGroupBuilder item : groups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public GroupsNested editMatchingGroup(Predicate predicate) { - int index = -1; - for (int i=0;i items) { + if (this.groups == null) { + return (A) this; + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").remove(builder); + this.groups.remove(builder); + } + return (A) this; } - public A withKind(String kind) { - this.kind = kind; + public A removeFromGroups(V1APIGroup... items) { + if (this.groups == null) { + return (A) this; + } + for (V1APIGroup item : items) { + V1APIGroupBuilder builder = new V1APIGroupBuilder(item); + _visitables.get("groups").remove(builder); + this.groups.remove(builder); + } return (A) this; } - public boolean hasKind() { - return this.kind != null; + public A removeMatchingFromGroups(Predicate predicate) { + if (groups == null) { + return (A) this; + } + Iterator each = groups.iterator(); + List visitables = _visitables.get("groups"); + while (each.hasNext()) { + V1APIGroupBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1APIGroupListFluent that = (V1APIGroupListFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(groups, that.groups)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - return true; + public GroupsNested setNewGroupLike(int index,V1APIGroup item) { + return new GroupsNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(apiVersion, groups, kind, super.hashCode()); + 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").add(builder); + groups.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(groups == null) && !(groups.isEmpty())) { + sb.append("groups:"); + sb.append(groups); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + } sb.append("}"); return sb.toString(); } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withGroups(List groups) { + if (this.groups != null) { + this._visitables.get("groups").clear(); + } + if (groups != null) { + this.groups = new ArrayList(); + for (V1APIGroup item : groups) { + this.addToGroups(item); + } + } else { + this.groups = null; + } + return (A) this; + } + + public A withGroups(V1APIGroup... groups) { + if (this.groups != null) { + this.groups.clear(); + _visitables.remove("groups"); + } + if (groups != null) { + for (V1APIGroup item : groups) { + this.addToGroups(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } public class GroupsNested extends V1APIGroupFluent> implements Nested{ + + V1APIGroupBuilder builder; + int index; + GroupsNested(int index,V1APIGroup item) { this.index = index; this.builder = new V1APIGroupBuilder(this, item); } - V1APIGroupBuilder builder; - int index; - + public N and() { - return (N) V1APIGroupListFluent.this.setToGroups(index,builder.build()); + return (N) V1APIGroupListFluent.this.setToGroups(index, builder.build()); } public N endGroup() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java index be36f56ed5..1b7e109c92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIResourceBuilder extends V1APIResourceFluent implements VisitableBuilder{ + + V1APIResourceFluent fluent; + public V1APIResourceBuilder() { this(new V1APIResource()); } @@ -10,17 +14,16 @@ public V1APIResourceBuilder(V1APIResourceFluent fluent) { this(fluent, new V1APIResource()); } - public V1APIResourceBuilder(V1APIResourceFluent fluent,V1APIResource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIResourceBuilder(V1APIResource instance) { this.fluent = this; this.copyInstance(instance); } - V1APIResourceFluent fluent; + public V1APIResourceBuilder(V1APIResourceFluent fluent,V1APIResource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIResource build() { V1APIResource buildable = new V1APIResource(); buildable.setCategories(fluent.getCategories()); @@ -36,5 +39,4 @@ public V1APIResource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java index 6df5372208..23db532936 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java @@ -1,26 +1,23 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; 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.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIResourceFluent> extends BaseFluent{ - public V1APIResourceFluent() { - } - - public V1APIResourceFluent(V1APIResource instance) { - this.copyInstance(instance); - } +public class V1APIResourceFluent> extends BaseFluent{ + private List categories; private String group; private String kind; @@ -31,52 +28,156 @@ public V1APIResourceFluent(V1APIResource instance) { private String storageVersionHash; private List verbs; private String version; + + public V1APIResourceFluent() { + } - protected void copyInstance(V1APIResource instance) { - instance = (instance != null ? instance : new V1APIResource()); - if (instance != null) { - this.withCategories(instance.getCategories()); - this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespaced(instance.getNamespaced()); - this.withShortNames(instance.getShortNames()); - this.withSingularName(instance.getSingularName()); - this.withStorageVersionHash(instance.getStorageVersionHash()); - this.withVerbs(instance.getVerbs()); - this.withVersion(instance.getVersion()); - } + public V1APIResourceFluent(V1APIResource instance) { + this.copyInstance(instance); + } + + public A addAllToCategories(Collection items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; + } + + public A addAllToShortNames(Collection items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.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 addToCategories(String... items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; } public A addToCategories(int index,String item) { - if (this.categories == null) {this.categories = new ArrayList();} + if (this.categories == null) { + this.categories = new ArrayList(); + } this.categories.add(index, item); - return (A)this; + return (A) this; } - public A setToCategories(int index,String item) { - if (this.categories == null) {this.categories = new ArrayList();} - this.categories.set(index, item); return (A)this; + public A addToShortNames(String... items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; } - public A addToCategories(java.lang.String... items) { - if (this.categories == null) {this.categories = new ArrayList();} - for (String item : items) {this.categories.add(item);} return (A)this; + public A addToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.add(index, item); + return (A) this; } - public A addAllToCategories(Collection items) { - if (this.categories == null) {this.categories = new ArrayList();} - for (String item : items) {this.categories.add(item);} return (A)this; + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } - public A removeFromCategories(java.lang.String... items) { - if (this.categories == null) return (A)this; - for (String item : items) { this.categories.remove(item);} return (A)this; + 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 removeAllFromCategories(Collection items) { - if (this.categories == null) return (A)this; - for (String item : items) { this.categories.remove(item);} return (A)this; + protected void copyInstance(V1APIResource instance) { + instance = instance != null ? instance : new V1APIResource(); + if (instance != null) { + this.withCategories(instance.getCategories()); + this.withGroup(instance.getGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespaced(instance.getNamespaced()); + this.withShortNames(instance.getShortNames()); + this.withSingularName(instance.getSingularName()); + this.withStorageVersionHash(instance.getStorageVersionHash()); + this.withVerbs(instance.getVerbs()); + this.withVersion(instance.getVersion()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIResourceFluent that = (V1APIResourceFluent) o; + if (!(Objects.equals(categories, that.categories))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespaced, that.namespaced))) { + return false; + } + if (!(Objects.equals(shortNames, that.shortNames))) { + return false; + } + if (!(Objects.equals(singularName, that.singularName))) { + return false; + } + if (!(Objects.equals(storageVersionHash, that.storageVersionHash))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; } public List getCategories() { @@ -91,10 +192,34 @@ public String getFirstCategory() { return this.categories.get(0); } + public String getFirstShortName() { + return this.shortNames.get(0); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getGroup() { + return this.group; + } + + public String getKind() { + return this.kind; + } + public String getLastCategory() { return this.categories.get(categories.size() - 1); } + public String getLastShortName() { + return this.shortNames.get(shortNames.size() - 1); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + public String getMatchingCategory(Predicate predicate) { for (String item : categories) { if (predicate.test(item)) { @@ -104,279 +229,353 @@ public String getMatchingCategory(Predicate predicate) { return null; } - public boolean hasMatchingCategory(Predicate predicate) { - for (String item : categories) { + public String getMatchingShortName(Predicate predicate) { + for (String item : shortNames) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withCategories(List categories) { - if (categories != null) { - this.categories = new ArrayList(); - for (String item : categories) { - this.addToCategories(item); + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; } - } else { - this.categories = null; - } - return (A) this; - } - - public A withCategories(java.lang.String... categories) { - if (this.categories != null) { - this.categories.clear(); - _visitables.remove("categories"); - } - if (categories != null) { - for (String item : categories) { - this.addToCategories(item); } - } - return (A) this; - } - - public boolean hasCategories() { - return this.categories != null && !this.categories.isEmpty(); - } - - public String getGroup() { - return this.group; + return null; } - public A withGroup(String group) { - this.group = group; - return (A) this; + public String getName() { + return this.name; } - public boolean hasGroup() { - return this.group != null; + public Boolean getNamespaced() { + return this.namespaced; } - public String getKind() { - return this.kind; + public String getShortName(int index) { + return this.shortNames.get(index); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public List getShortNames() { + return this.shortNames; } - public boolean hasKind() { - return this.kind != null; + public String getSingularName() { + return this.singularName; } - public String getName() { - return this.name; + public String getStorageVersionHash() { + return this.storageVersionHash; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getVerb(int index) { + return this.verbs.get(index); } - public boolean hasName() { - return this.name != null; + public List getVerbs() { + return this.verbs; } - public Boolean getNamespaced() { - return this.namespaced; + public String getVersion() { + return this.version; } - public A withNamespaced(Boolean namespaced) { - this.namespaced = namespaced; - return (A) this; + public boolean hasCategories() { + return this.categories != null && !(this.categories.isEmpty()); } - public boolean hasNamespaced() { - return this.namespaced != null; + public boolean hasGroup() { + return this.group != null; } - public A addToShortNames(int index,String item) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - this.shortNames.add(index, item); - return (A)this; + public boolean hasKind() { + return this.kind != null; } - public A setToShortNames(int index,String item) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - this.shortNames.set(index, item); return (A)this; + public boolean hasMatchingCategory(Predicate predicate) { + for (String item : categories) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToShortNames(java.lang.String... items) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - for (String item : items) {this.shortNames.add(item);} return (A)this; + public boolean hasMatchingShortName(Predicate predicate) { + for (String item : shortNames) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addAllToShortNames(Collection items) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - for (String item : items) {this.shortNames.add(item);} return (A)this; + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A removeFromShortNames(java.lang.String... items) { - if (this.shortNames == null) return (A)this; - for (String item : items) { this.shortNames.remove(item);} return (A)this; + public boolean hasName() { + return this.name != null; } - public A removeAllFromShortNames(Collection items) { - if (this.shortNames == null) return (A)this; - for (String item : items) { this.shortNames.remove(item);} return (A)this; + public boolean hasNamespaced() { + return this.namespaced != null; } - public List getShortNames() { - return this.shortNames; + public boolean hasShortNames() { + return this.shortNames != null && !(this.shortNames.isEmpty()); } - public String getShortName(int index) { - return this.shortNames.get(index); + public boolean hasSingularName() { + return this.singularName != null; } - public String getFirstShortName() { - return this.shortNames.get(0); + public boolean hasStorageVersionHash() { + return this.storageVersionHash != null; } - public String getLastShortName() { - return this.shortNames.get(shortNames.size() - 1); + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); } - public String getMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return item; - } - } - return null; + public boolean hasVersion() { + return this.version != null; } - public boolean hasMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return true; - } - } - return false; + public int hashCode() { + return Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, storageVersionHash, verbs, version); } - public A withShortNames(List shortNames) { - if (shortNames != null) { - this.shortNames = new ArrayList(); - for (String item : shortNames) { - this.addToShortNames(item); - } - } else { - this.shortNames = null; + public A removeAllFromCategories(Collection items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); } return (A) this; } - public A withShortNames(java.lang.String... shortNames) { - if (this.shortNames != null) { - this.shortNames.clear(); - _visitables.remove("shortNames"); + public A removeAllFromShortNames(Collection items) { + if (this.shortNames == null) { + return (A) this; } - if (shortNames != null) { - for (String item : shortNames) { - this.addToShortNames(item); - } + for (String item : items) { + this.shortNames.remove(item); } return (A) this; } - public boolean hasShortNames() { - return this.shortNames != null && !this.shortNames.isEmpty(); + public A removeAllFromVerbs(Collection items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } - public String getSingularName() { - return this.singularName; + public A removeFromCategories(String... items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; } - public A withSingularName(String singularName) { - this.singularName = singularName; + public A removeFromShortNames(String... items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } return (A) this; } - public boolean hasSingularName() { - return this.singularName != null; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } - public String getStorageVersionHash() { - return this.storageVersionHash; + public A setToCategories(int index,String item) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + this.categories.set(index, item); + return (A) this; } - public A withStorageVersionHash(String storageVersionHash) { - this.storageVersionHash = storageVersionHash; + public A setToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.set(index, item); return (A) this; } - public boolean hasStorageVersionHash() { - return this.storageVersionHash != null; + 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(int index,String item) { - if (this.verbs == null) {this.verbs = new ArrayList();} - this.verbs.add(index, item); - return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(categories == null) && !(categories.isEmpty())) { + sb.append("categories:"); + sb.append(categories); + sb.append(","); + } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespaced == null)) { + sb.append("namespaced:"); + sb.append(namespaced); + sb.append(","); + } + if (!(shortNames == null) && !(shortNames.isEmpty())) { + sb.append("shortNames:"); + sb.append(shortNames); + sb.append(","); + } + if (!(singularName == null)) { + sb.append("singularName:"); + sb.append(singularName); + sb.append(","); + } + if (!(storageVersionHash == null)) { + sb.append("storageVersionHash:"); + sb.append(storageVersionHash); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } + sb.append("}"); + return sb.toString(); } - 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 withCategories(List categories) { + if (categories != null) { + this.categories = new ArrayList(); + for (String item : categories) { + this.addToCategories(item); + } + } else { + this.categories = null; + } + 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 withCategories(String... categories) { + if (this.categories != null) { + this.categories.clear(); + _visitables.remove("categories"); + } + if (categories != null) { + for (String item : categories) { + this.addToCategories(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 withGroup(String group) { + this.group = group; + 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 withKind(String kind) { + this.kind = kind; + 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 A withName(String name) { + this.name = name; + return (A) this; } - public List getVerbs() { - return this.verbs; + public A withNamespaced() { + return withNamespaced(true); } - public String getVerb(int index) { - return this.verbs.get(index); + public A withNamespaced(Boolean namespaced) { + this.namespaced = namespaced; + return (A) this; } - public String getFirstVerb() { - return this.verbs.get(0); + public A withShortNames(List shortNames) { + if (shortNames != null) { + this.shortNames = new ArrayList(); + for (String item : shortNames) { + this.addToShortNames(item); + } + } else { + this.shortNames = null; + } + return (A) this; } - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); + public A withShortNames(String... shortNames) { + if (this.shortNames != null) { + this.shortNames.clear(); + _visitables.remove("shortNames"); + } + if (shortNames != null) { + for (String item : shortNames) { + this.addToShortNames(item); + } + } + return (A) this; } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withSingularName(String singularName) { + this.singularName = singularName; + return (A) this; } - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withStorageVersionHash(String storageVersionHash) { + this.storageVersionHash = storageVersionHash; + return (A) this; } public A withVerbs(List verbs) { @@ -391,7 +590,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -404,65 +603,9 @@ public A withVerbs(java.lang.String... verbs) { return (A) this; } - public boolean hasVerbs() { - return this.verbs != null && !this.verbs.isEmpty(); - } - - 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; - V1APIResourceFluent that = (V1APIResourceFluent) o; - if (!java.util.Objects.equals(categories, that.categories)) return false; - 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(name, that.name)) return false; - if (!java.util.Objects.equals(namespaced, that.namespaced)) return false; - if (!java.util.Objects.equals(shortNames, that.shortNames)) return false; - if (!java.util.Objects.equals(singularName, that.singularName)) return false; - if (!java.util.Objects.equals(storageVersionHash, that.storageVersionHash)) return false; - if (!java.util.Objects.equals(verbs, that.verbs)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, storageVersionHash, verbs, version, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (categories != null && !categories.isEmpty()) { sb.append("categories:"); sb.append(categories + ","); } - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespaced != null) { sb.append("namespaced:"); sb.append(namespaced + ","); } - if (shortNames != null && !shortNames.isEmpty()) { sb.append("shortNames:"); sb.append(shortNames + ","); } - if (singularName != null) { sb.append("singularName:"); sb.append(singularName + ","); } - if (storageVersionHash != null) { sb.append("storageVersionHash:"); sb.append(storageVersionHash + ","); } - if (verbs != null && !verbs.isEmpty()) { sb.append("verbs:"); sb.append(verbs + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } - sb.append("}"); - return sb.toString(); - } - - public A withNamespaced() { - return withNamespaced(true); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java index f32a940d62..72a7a15093 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIResourceListBuilder extends V1APIResourceListFluent implements VisitableBuilder{ + + V1APIResourceListFluent fluent; + public V1APIResourceListBuilder() { this(new V1APIResourceList()); } @@ -10,17 +14,16 @@ public V1APIResourceListBuilder(V1APIResourceListFluent fluent) { this(fluent, new V1APIResourceList()); } - public V1APIResourceListBuilder(V1APIResourceListFluent fluent,V1APIResourceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIResourceListBuilder(V1APIResourceList instance) { this.fluent = this; this.copyInstance(instance); } - V1APIResourceListFluent fluent; + public V1APIResourceListBuilder(V1APIResourceListFluent fluent,V1APIResourceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIResourceList build() { V1APIResourceList buildable = new V1APIResourceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1APIResourceList build() { return buildable; } - } \ No newline at end of file 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..8b977894dc 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 @@ -1,153 +1,203 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIResourceListFluent> extends BaseFluent{ - public V1APIResourceListFluent() { - } - - public V1APIResourceListFluent(V1APIResourceList instance) { - this.copyInstance(instance); - } +public class V1APIResourceListFluent> extends BaseFluent{ + private String apiVersion; private String groupVersion; private String kind; private ArrayList resources; - - protected void copyInstance(V1APIResourceList instance) { - instance = (instance != null ? instance : new V1APIResourceList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withGroupVersion(instance.getGroupVersion()); - this.withKind(instance.getKind()); - this.withResources(instance.getResources()); - } + + public V1APIResourceListFluent() { } - public String getApiVersion() { - return this.apiVersion; + public V1APIResourceListFluent(V1APIResourceList instance) { + this.copyInstance(instance); } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").add(builder); + this.resources.add(builder); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public ResourcesNested addNewResource() { + return new ResourcesNested(-1, null); } - public String getGroupVersion() { - return this.groupVersion; + public ResourcesNested addNewResourceLike(V1APIResource item) { + return new ResourcesNested(-1, item); } - public A withGroupVersion(String groupVersion) { - this.groupVersion = groupVersion; + public A addToResources(V1APIResource... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").add(builder); + this.resources.add(builder); + } return (A) this; } - public boolean hasGroupVersion() { - return this.groupVersion != null; + 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(builder); + resources.add(index, builder); + } + return (A) this; } - public String getKind() { - return this.kind; + public V1APIResource buildFirstResource() { + return this.resources.get(0).build(); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public V1APIResource buildLastResource() { + return this.resources.get(resources.size() - 1).build(); } - public boolean hasKind() { - return this.kind != null; + public V1APIResource buildMatchingResource(Predicate predicate) { + for (V1APIResourceBuilder item : resources) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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);} - return (A)this; + public V1APIResource buildResource(int index) { + return this.resources.get(index).build(); } - 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);} - return (A)this; + public List buildResources() { + return this.resources != null ? build(resources) : null; } - public A addToResources(io.kubernetes.client.openapi.models.V1APIResource... items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; + protected void copyInstance(V1APIResourceList instance) { + instance = instance != null ? instance : new V1APIResourceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withGroupVersion(instance.getGroupVersion()); + this.withKind(instance.getKind()); + this.withResources(instance.getResources()); + } } - public A addAllToResources(Collection items) { - if (this.resources == null) {this.resources = new ArrayList();} - for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").add(builder);this.resources.add(builder);} return (A)this; + public ResourcesNested editFirstResource() { + if (resources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(0, this.buildResource(0)); } - public A removeFromResources(io.kubernetes.client.openapi.models.V1APIResource... items) { - if (this.resources == null) return (A)this; - for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").remove(builder); this.resources.remove(builder);} return (A)this; + public ResourcesNested editLastResource() { + int index = resources.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); } - public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (V1APIResource item : items) {V1APIResourceBuilder builder = new V1APIResourceBuilder(item);_visitables.get("resources").remove(builder); this.resources.remove(builder);} return (A)this; + public ResourcesNested editMatchingResource(Predicate predicate) { + int index = -1; + for (int i = 0;i < resources.size();i++) { + if (predicate.test(resources.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); } - 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()) { - V1APIResourceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public ResourcesNested editResource(int index) { + if (resources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); } - return (A)this; + return this.setNewResourceLike(index, this.buildResource(index)); } - public List buildResources() { - return this.resources != null ? build(resources) : null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIResourceListFluent that = (V1APIResourceListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(groupVersion, that.groupVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + return true; } - public V1APIResource buildResource(int index) { - return this.resources.get(index).build(); + public String getApiVersion() { + return this.apiVersion; } - public V1APIResource buildFirstResource() { - return this.resources.get(0).build(); + public String getGroupVersion() { + return this.groupVersion; } - public V1APIResource buildLastResource() { - return this.resources.get(resources.size() - 1).build(); + public String getKind() { + return this.kind; } - public V1APIResource buildMatchingResource(Predicate predicate) { - for (V1APIResourceBuilder item : resources) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasGroupVersion() { + return this.groupVersion != null; + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingResource(Predicate predicate) { @@ -159,118 +209,158 @@ public boolean hasMatchingResource(Predicate predicate) { return false; } - public A withResources(List resources) { - if (this.resources != null) { - this._visitables.get("resources").clear(); + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiVersion, groupVersion, kind, resources); + } + + public A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; } - if (resources != null) { - this.resources = new ArrayList(); - for (V1APIResource item : resources) { - this.addToResources(item); - } - } else { - this.resources = null; + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); } return (A) this; } - public A withResources(io.kubernetes.client.openapi.models.V1APIResource... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); + public A removeFromResources(V1APIResource... items) { + if (this.resources == null) { + return (A) this; } - if (resources != null) { - for (V1APIResource item : resources) { - this.addToResources(item); - } + for (V1APIResource item : items) { + V1APIResourceBuilder builder = new V1APIResourceBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); } return (A) this; } - public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); - } - - public ResourcesNested addNewResource() { - return new ResourcesNested(-1, null); - } - - public ResourcesNested addNewResourceLike(V1APIResource item) { - return new ResourcesNested(-1, item); + public A removeMatchingFromResources(Predicate predicate) { + if (resources == null) { + return (A) this; + } + Iterator each = resources.iterator(); + List visitables = _visitables.get("resources"); + while (each.hasNext()) { + V1APIResourceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public ResourcesNested setNewResourceLike(int index,V1APIResource 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 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").add(builder); + resources.set(index, builder); + } + return (A) this; } - 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(groupVersion == null)) { + sb.append("groupVersion:"); + sb.append(groupVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + } + sb.append("}"); + return sb.toString(); } - 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 A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public ResourcesNested editMatchingResource(Predicate predicate) { - int index = -1; - for (int i=0;i resources) { + if (this.resources != null) { + this._visitables.get("resources").clear(); + } + if (resources != null) { + this.resources = new ArrayList(); + for (V1APIResource item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (groupVersion != null) { sb.append("groupVersion:"); sb.append(groupVersion + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (resources != null && !resources.isEmpty()) { sb.append("resources:"); sb.append(resources); } - sb.append("}"); - return sb.toString(); + public A withResources(V1APIResource... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (V1APIResource item : resources) { + this.addToResources(item); + } + } + return (A) this; } public class ResourcesNested extends V1APIResourceFluent> implements Nested{ + + V1APIResourceBuilder builder; + int index; + ResourcesNested(int index,V1APIResource item) { this.index = index; this.builder = new V1APIResourceBuilder(this, item); } - V1APIResourceBuilder builder; - int index; - + public N and() { - return (N) V1APIResourceListFluent.this.setToResources(index,builder.build()); + return (N) V1APIResourceListFluent.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/V1APIServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java index 8af4088674..4f26143676 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceBuilder extends V1APIServiceFluent implements VisitableBuilder{ + + V1APIServiceFluent fluent; + public V1APIServiceBuilder() { this(new V1APIService()); } @@ -10,17 +14,16 @@ public V1APIServiceBuilder(V1APIServiceFluent fluent) { this(fluent, new V1APIService()); } - public V1APIServiceBuilder(V1APIServiceFluent fluent,V1APIService instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceBuilder(V1APIService instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceFluent fluent; + public V1APIServiceBuilder(V1APIServiceFluent fluent,V1APIService instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIService build() { V1APIService buildable = new V1APIService(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1APIService build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java index ca0ebd5176..d2417d21f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceConditionBuilder extends V1APIServiceConditionFluent implements VisitableBuilder{ + + V1APIServiceConditionFluent fluent; + public V1APIServiceConditionBuilder() { this(new V1APIServiceCondition()); } @@ -10,17 +14,16 @@ public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent) { this(fluent, new V1APIServiceCondition()); } - public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent,V1APIServiceCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceConditionBuilder(V1APIServiceCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceConditionFluent fluent; + public V1APIServiceConditionBuilder(V1APIServiceConditionFluent fluent,V1APIServiceCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIServiceCondition build() { V1APIServiceCondition buildable = new V1APIServiceCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -31,5 +34,4 @@ public V1APIServiceCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java index 797bab8e55..a5712a656b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java @@ -1,132 +1,170 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceConditionFluent> extends BaseFluent{ - public V1APIServiceConditionFluent() { - } - - public V1APIServiceConditionFluent(V1APIServiceCondition instance) { - this.copyInstance(instance); - } +public class V1APIServiceConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1APIServiceConditionFluent() { + } + public V1APIServiceConditionFluent(V1APIServiceCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1APIServiceCondition instance) { - instance = (instance != null ? instance : new V1APIServiceCondition()); + instance = instance != null ? instance : new V1APIServiceCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIServiceConditionFluent that = (V1APIServiceConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getStatus() { + return this.status; } - public String getReason() { - return this.reason; + public String getType() { + return this.type; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1APIServiceConditionFluent that = (V1APIServiceConditionFluent) 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 A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withStatus(String status) { + this.status = status; + return (A) this; } - 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(); + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java index 37125a0970..251e640f4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceFluent> extends BaseFluent{ +public class V1APIServiceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1APIServiceSpecBuilder spec; + private V1APIServiceStatusBuilder status; + public V1APIServiceFluent() { } public V1APIServiceFluent(V1APIService instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1APIServiceSpecBuilder spec; - private V1APIServiceStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1APIServiceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1APIServiceStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1APIService instance) { - instance = (instance != null ? instance : new V1APIService()); + instance = instance != null ? instance : new V1APIService(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1APIServiceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1APIServiceSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1APIServiceStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1APIServiceStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIServiceFluent that = (V1APIServiceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1APIServiceSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1APIServiceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1APIServiceStatus item) { + return new StatusNested(item); } public A withSpec(V1APIServiceSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1APIServiceSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1APIServiceSpec 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 V1APIServiceSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1APIServiceSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1APIServiceStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1APIServiceStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1APIServiceStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1APIServiceStatus 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 V1APIServiceStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1APIServiceStatus 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; - V1APIServiceFluent that = (V1APIServiceFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1APIServiceFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1APIServiceSpecFluent> implements Nested{ + + V1APIServiceSpecBuilder builder; + SpecNested(V1APIServiceSpec item) { this.builder = new V1APIServiceSpecBuilder(this, item); } - V1APIServiceSpecBuilder builder; - + public N and() { return (N) V1APIServiceFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1APIServiceStatusFluent> implements Nested{ + + V1APIServiceStatusBuilder builder; + StatusNested(V1APIServiceStatus item) { this.builder = new V1APIServiceStatusBuilder(this, item); } - V1APIServiceStatusBuilder builder; - + public N and() { return (N) V1APIServiceFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java index 1c8bb41124..4e67ddc127 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceListBuilder extends V1APIServiceListFluent implements VisitableBuilder{ + + V1APIServiceListFluent fluent; + public V1APIServiceListBuilder() { this(new V1APIServiceList()); } @@ -10,17 +14,16 @@ public V1APIServiceListBuilder(V1APIServiceListFluent fluent) { this(fluent, new V1APIServiceList()); } - public V1APIServiceListBuilder(V1APIServiceListFluent fluent,V1APIServiceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceListBuilder(V1APIServiceList instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceListFluent fluent; + public V1APIServiceListBuilder(V1APIServiceListFluent fluent,V1APIServiceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIServiceList build() { V1APIServiceList buildable = new V1APIServiceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1APIServiceList build() { return buildable; } - } \ No newline at end of file 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..8b0e5bc312 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceListFluent> extends BaseFluent{ +public class V1APIServiceListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1APIServiceListFluent() { } public V1APIServiceListFluent(V1APIServiceList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1APIServiceList instance) { - instance = (instance != null ? instance : new V1APIServiceList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1APIService item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1APIService... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1APIService item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1APIService buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1APIService... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1APIService buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1APIService... items) { - if (this.items == null) return (A)this; - for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1APIService buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1APIService item : items) {V1APIServiceBuilder builder = new V1APIServiceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1APIService buildMatchingItem(Predicate predicate) { + for (V1APIServiceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1APIServiceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1APIServiceList instance) { + instance = instance != null ? instance : new V1APIServiceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1APIService buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1APIService buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1APIService buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIServiceListFluent that = (V1APIServiceListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1APIService buildMatchingItem(Predicate predicate) { - for (V1APIServiceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1APIService... items) { + if (this.items == null) { + return (A) this; + } + for (V1APIService item : items) { + V1APIServiceBuilder builder = new V1APIServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1APIServiceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1APIService item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1APIService... items) { + public A withItems(V1APIService... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1APIService... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1APIService item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1APIService 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1APIServiceFluent> implements Nested{ - 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; - V1APIServiceListFluent that = (V1APIServiceListFluent) 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()); - } + V1APIServiceBuilder builder; + int index; - 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 V1APIServiceFluent> implements Nested{ ItemsNested(int index,V1APIService item) { this.index = index; this.builder = new V1APIServiceBuilder(this, item); } - V1APIServiceBuilder builder; - int index; - + public N and() { - return (N) V1APIServiceListFluent.this.setToItems(index,builder.build()); + return (N) V1APIServiceListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1APIServiceListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java index 34eacfd44f..4e3a35b944 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceSpecBuilder extends V1APIServiceSpecFluent implements VisitableBuilder{ + + V1APIServiceSpecFluent fluent; + public V1APIServiceSpecBuilder() { this(new V1APIServiceSpec()); } @@ -10,17 +14,16 @@ public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent) { this(fluent, new V1APIServiceSpec()); } - public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent,V1APIServiceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceSpecBuilder(V1APIServiceSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceSpecFluent fluent; + public V1APIServiceSpecBuilder(V1APIServiceSpecFluent fluent,V1APIServiceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIServiceSpec build() { V1APIServiceSpec buildable = new V1APIServiceSpec(); buildable.setCaBundle(fluent.getCaBundle()); @@ -33,5 +36,4 @@ public V1APIServiceSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java index c8ff0038df..0879dd71ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java @@ -1,28 +1,26 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.lang.Integer; +import java.lang.Boolean; import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; +import java.lang.Integer; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceSpecFluent> extends BaseFluent{ - public V1APIServiceSpecFluent() { - } - - public V1APIServiceSpecFluent(V1APIServiceSpec instance) { - this.copyInstance(instance); - } +public class V1APIServiceSpecFluent> extends BaseFluent{ + private List caBundle; private String group; private Integer groupPriorityMinimum; @@ -30,228 +28,309 @@ public V1APIServiceSpecFluent(V1APIServiceSpec instance) { private ApiregistrationV1ServiceReferenceBuilder service; private String version; private Integer versionPriority; - - protected void copyInstance(V1APIServiceSpec instance) { - instance = (instance != null ? instance : new V1APIServiceSpec()); - if (instance != null) { - this.withCaBundle(instance.getCaBundle()); - this.withGroup(instance.getGroup()); - this.withGroupPriorityMinimum(instance.getGroupPriorityMinimum()); - this.withInsecureSkipTLSVerify(instance.getInsecureSkipTLSVerify()); - this.withService(instance.getService()); - this.withVersion(instance.getVersion()); - this.withVersionPriority(instance.getVersionPriority()); - } + + public V1APIServiceSpecFluent() { } - public A withCaBundle(byte... caBundle) { - if (this.caBundle != null) { - this.caBundle.clear(); - _visitables.remove("caBundle"); + public V1APIServiceSpecFluent(V1APIServiceSpec instance) { + this.copyInstance(instance); + } + + public A addAllToCaBundle(Collection items) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); } - if (caBundle != null) { - for (byte item : caBundle) { - this.addToCaBundle(item); - } + for (Byte item : items) { + this.caBundle.add(item); } return (A) this; } - public byte[] getCaBundle() { - int size = caBundle != null ? caBundle.size() : 0;; - byte[] result = new byte[size];; - if (size == 0) { - return result; + public A addToCaBundle(Byte... items) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); } - int index = 0;; - for (byte item : caBundle) { - result[index++] = item; + for (Byte item : items) { + this.caBundle.add(item); } - return result; + return (A) this; } public A addToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } this.caBundle.add(index, item); - return (A)this; + return (A) this; } - public A setToCaBundle(int index,Byte item) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - this.caBundle.set(index, item); return (A)this; + public ApiregistrationV1ServiceReference buildService() { + return this.service != null ? this.service.build() : null; } - public A addToCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + protected void copyInstance(V1APIServiceSpec instance) { + instance = instance != null ? instance : new V1APIServiceSpec(); + if (instance != null) { + this.withCaBundle(instance.getCaBundle()); + this.withGroup(instance.getGroup()); + this.withGroupPriorityMinimum(instance.getGroupPriorityMinimum()); + this.withInsecureSkipTLSVerify(instance.getInsecureSkipTLSVerify()); + this.withService(instance.getService()); + this.withVersion(instance.getVersion()); + this.withVersionPriority(instance.getVersionPriority()); + } } - public A addAllToCaBundle(Collection items) { - if (this.caBundle == null) {this.caBundle = new ArrayList();} - for (Byte item : items) {this.caBundle.add(item);} return (A)this; + public ServiceNested editOrNewService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new ApiregistrationV1ServiceReferenceBuilder().build())); } - public A removeFromCaBundle(java.lang.Byte... items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + public ServiceNested editOrNewServiceLike(ApiregistrationV1ServiceReference item) { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } - public A removeAllFromCaBundle(Collection items) { - if (this.caBundle == null) return (A)this; - for (Byte item : items) { this.caBundle.remove(item);} return (A)this; + public ServiceNested editService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } - public boolean hasCaBundle() { - return this.caBundle != null && !this.caBundle.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIServiceSpecFluent that = (V1APIServiceSpecFluent) o; + if (!(Objects.equals(caBundle, that.caBundle))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(groupPriorityMinimum, that.groupPriorityMinimum))) { + return false; + } + if (!(Objects.equals(insecureSkipTLSVerify, that.insecureSkipTLSVerify))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + if (!(Objects.equals(versionPriority, that.versionPriority))) { + return false; + } + return true; + } + + public byte[] getCaBundle() { + int size = caBundle != null ? caBundle.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : caBundle) { + result[index++] = item; + } + return result; } public String getGroup() { return this.group; } - public A withGroup(String group) { - this.group = group; - return (A) this; + public Integer getGroupPriorityMinimum() { + return this.groupPriorityMinimum; } - public boolean hasGroup() { - return this.group != null; + public Boolean getInsecureSkipTLSVerify() { + return this.insecureSkipTLSVerify; } - public Integer getGroupPriorityMinimum() { - return this.groupPriorityMinimum; + public String getVersion() { + return this.version; } - public A withGroupPriorityMinimum(Integer groupPriorityMinimum) { - this.groupPriorityMinimum = groupPriorityMinimum; - return (A) this; + public Integer getVersionPriority() { + return this.versionPriority; } - public boolean hasGroupPriorityMinimum() { - return this.groupPriorityMinimum != null; + public boolean hasCaBundle() { + return this.caBundle != null && !(this.caBundle.isEmpty()); } - public Boolean getInsecureSkipTLSVerify() { - return this.insecureSkipTLSVerify; + public boolean hasGroup() { + return this.group != null; } - public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { - this.insecureSkipTLSVerify = insecureSkipTLSVerify; - return (A) this; + public boolean hasGroupPriorityMinimum() { + return this.groupPriorityMinimum != null; } public boolean hasInsecureSkipTLSVerify() { return this.insecureSkipTLSVerify != null; } - public ApiregistrationV1ServiceReference buildService() { - return this.service != null ? this.service.build() : null; + public boolean hasService() { + return this.service != null; } - public A withService(ApiregistrationV1ServiceReference service) { - this._visitables.remove("service"); - if (service != null) { - this.service = new ApiregistrationV1ServiceReferenceBuilder(service); - this._visitables.get("service").add(this.service); - } else { - this.service = null; - this._visitables.get("service").remove(this.service); - } - return (A) this; + public boolean hasVersion() { + return this.version != null; } - public boolean hasService() { - return this.service != null; + public boolean hasVersionPriority() { + return this.versionPriority != null; } - public ServiceNested withNewService() { - return new ServiceNested(null); + public int hashCode() { + return Objects.hash(caBundle, group, groupPriorityMinimum, insecureSkipTLSVerify, service, version, versionPriority); } - public ServiceNested withNewServiceLike(ApiregistrationV1ServiceReference item) { - return new ServiceNested(item); + public A removeAllFromCaBundle(Collection items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } - public ServiceNested editService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(null)); + public A removeFromCaBundle(Byte... items) { + if (this.caBundle == null) { + return (A) this; + } + for (Byte item : items) { + this.caBundle.remove(item); + } + return (A) this; } - public ServiceNested editOrNewService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(new ApiregistrationV1ServiceReferenceBuilder().build())); + public A setToCaBundle(int index,Byte item) { + if (this.caBundle == null) { + this.caBundle = new ArrayList(); + } + this.caBundle.set(index, item); + return (A) this; } - public ServiceNested editOrNewServiceLike(ApiregistrationV1ServiceReference item) { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(item)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(caBundle == null) && !(caBundle.isEmpty())) { + sb.append("caBundle:"); + sb.append(caBundle); + sb.append(","); + } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(groupPriorityMinimum == null)) { + sb.append("groupPriorityMinimum:"); + sb.append(groupPriorityMinimum); + sb.append(","); + } + if (!(insecureSkipTLSVerify == null)) { + sb.append("insecureSkipTLSVerify:"); + sb.append(insecureSkipTLSVerify); + sb.append(","); + } + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + sb.append(","); + } + if (!(versionPriority == null)) { + sb.append("versionPriority:"); + sb.append(versionPriority); + } + sb.append("}"); + return sb.toString(); } - public String getVersion() { - return this.version; + public A withCaBundle(byte... caBundle) { + if (this.caBundle != null) { + this.caBundle.clear(); + _visitables.remove("caBundle"); + } + if (caBundle != null) { + for (byte item : caBundle) { + this.addToCaBundle(item); + } + } + return (A) this; } - public A withVersion(String version) { - this.version = version; + public A withGroup(String group) { + this.group = group; return (A) this; } - public boolean hasVersion() { - return this.version != null; + public A withGroupPriorityMinimum(Integer groupPriorityMinimum) { + this.groupPriorityMinimum = groupPriorityMinimum; + return (A) this; } - public Integer getVersionPriority() { - return this.versionPriority; + public A withInsecureSkipTLSVerify() { + return withInsecureSkipTLSVerify(true); } - public A withVersionPriority(Integer versionPriority) { - this.versionPriority = versionPriority; + public A withInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { + this.insecureSkipTLSVerify = insecureSkipTLSVerify; return (A) this; } - public boolean hasVersionPriority() { - return this.versionPriority != null; + public ServiceNested withNewService() { + return new ServiceNested(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; - V1APIServiceSpecFluent that = (V1APIServiceSpecFluent) o; - if (!java.util.Objects.equals(caBundle, that.caBundle)) return false; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(groupPriorityMinimum, that.groupPriorityMinimum)) return false; - if (!java.util.Objects.equals(insecureSkipTLSVerify, that.insecureSkipTLSVerify)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; - if (!java.util.Objects.equals(versionPriority, that.versionPriority)) return false; - return true; + public ServiceNested withNewServiceLike(ApiregistrationV1ServiceReference item) { + return new ServiceNested(item); } - public int hashCode() { - return java.util.Objects.hash(caBundle, group, groupPriorityMinimum, insecureSkipTLSVerify, service, version, versionPriority, super.hashCode()); + public A withService(ApiregistrationV1ServiceReference service) { + this._visitables.remove("service"); + if (service != null) { + this.service = new ApiregistrationV1ServiceReferenceBuilder(service); + this._visitables.get("service").add(this.service); + } else { + this.service = null; + this._visitables.get("service").remove(this.service); + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (caBundle != null && !caBundle.isEmpty()) { sb.append("caBundle:"); sb.append(caBundle + ","); } - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (groupPriorityMinimum != null) { sb.append("groupPriorityMinimum:"); sb.append(groupPriorityMinimum + ","); } - if (insecureSkipTLSVerify != null) { sb.append("insecureSkipTLSVerify:"); sb.append(insecureSkipTLSVerify + ","); } - if (service != null) { sb.append("service:"); sb.append(service + ","); } - if (version != null) { sb.append("version:"); sb.append(version + ","); } - if (versionPriority != null) { sb.append("versionPriority:"); sb.append(versionPriority); } - sb.append("}"); - return sb.toString(); + public A withVersion(String version) { + this.version = version; + return (A) this; } - public A withInsecureSkipTLSVerify() { - return withInsecureSkipTLSVerify(true); + public A withVersionPriority(Integer versionPriority) { + this.versionPriority = versionPriority; + return (A) this; } public class ServiceNested extends ApiregistrationV1ServiceReferenceFluent> implements Nested{ + + ApiregistrationV1ServiceReferenceBuilder builder; + ServiceNested(ApiregistrationV1ServiceReference item) { this.builder = new ApiregistrationV1ServiceReferenceBuilder(this, item); } - ApiregistrationV1ServiceReferenceBuilder builder; - + public N and() { return (N) V1APIServiceSpecFluent.this.withService(builder.build()); } @@ -260,7 +339,5 @@ public N endService() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java index a438d3c03c..e7478d0965 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIServiceStatusBuilder extends V1APIServiceStatusFluent implements VisitableBuilder{ + + V1APIServiceStatusFluent fluent; + public V1APIServiceStatusBuilder() { this(new V1APIServiceStatus()); } @@ -10,22 +14,20 @@ public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent) { this(fluent, new V1APIServiceStatus()); } - public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent,V1APIServiceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIServiceStatusBuilder(V1APIServiceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1APIServiceStatusFluent fluent; + public V1APIServiceStatusBuilder(V1APIServiceStatusFluent fluent,V1APIServiceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIServiceStatus build() { V1APIServiceStatus buildable = new V1APIServiceStatus(); buildable.setConditions(fluent.buildConditions()); return buildable; } - } \ No newline at end of file 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..5b0a3b6212 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 @@ -1,93 +1,89 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIServiceStatusFluent> extends BaseFluent{ +public class V1APIServiceStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + public V1APIServiceStatusFluent() { } public V1APIServiceStatusFluent(V1APIServiceStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - - protected void copyInstance(V1APIServiceStatus instance) { - instance = (instance != null ? instance : new V1APIServiceStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - } - } - - 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);} - 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);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(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 (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... items) { - if (this.conditions == null) return (A)this; - for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1APIServiceCondition item : items) {V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public ConditionsNested addNewConditionLike(V1APIServiceCondition item) { + return new ConditionsNested(-1, item); } - 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()) { - V1APIServiceConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToConditions(V1APIServiceCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); } - return (A)this; + return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + 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(builder); + conditions.add(index, builder); + } + return (A) this; } public V1APIServiceCondition buildCondition(int index) { return this.conditions.get(index).build(); } + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + public V1APIServiceCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -105,6 +101,70 @@ public V1APIServiceCondition buildMatchingCondition(Predicate editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIServiceStatusFluent that = (V1APIServiceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + public boolean hasMatchingCondition(Predicate predicate) { for (V1APIServiceConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -114,6 +174,80 @@ public boolean hasMatchingCondition(Predicate pred return false; } + public int hashCode() { + return Objects.hash(conditions); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1APIServiceCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1APIServiceCondition item : items) { + V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1APIServiceConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1APIServiceCondition item) { + return new ConditionsNested(index, item); + } + + 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").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + } + sb.append("}"); + return sb.toString(); + } + public A withConditions(List conditions) { if (this.conditions != null) { this._visitables.get("conditions").clear(); @@ -129,7 +263,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1APIServiceCondition... conditions) { + public A withConditions(V1APIServiceCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -141,85 +275,23 @@ public A withConditions(io.kubernetes.client.openapi.models.V1APIServiceConditio } return (A) this; } + public class ConditionsNested extends V1APIServiceConditionFluent> implements Nested{ - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1APIServiceCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1APIServiceCondition 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 V1APIServiceConditionFluent> implements Nested{ ConditionsNested(int index,V1APIServiceCondition item) { this.index = index; this.builder = new V1APIServiceConditionBuilder(this, item); } - V1APIServiceConditionBuilder builder; - int index; - + public N and() { - return (N) V1APIServiceStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1APIServiceStatusFluent.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/V1APIVersionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java index 5b7609f10c..7e08e7d053 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1APIVersionsBuilder extends V1APIVersionsFluent implements VisitableBuilder{ + + V1APIVersionsFluent fluent; + public V1APIVersionsBuilder() { this(new V1APIVersions()); } @@ -10,17 +14,16 @@ public V1APIVersionsBuilder(V1APIVersionsFluent fluent) { this(fluent, new V1APIVersions()); } - public V1APIVersionsBuilder(V1APIVersionsFluent fluent,V1APIVersions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1APIVersionsBuilder(V1APIVersions instance) { this.fluent = this; this.copyInstance(instance); } - V1APIVersionsFluent fluent; + public V1APIVersionsBuilder(V1APIVersionsFluent fluent,V1APIVersions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1APIVersions build() { V1APIVersions buildable = new V1APIVersions(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1APIVersions build() { return buildable; } - } \ No newline at end of file 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..08efe71bde 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 @@ -1,142 +1,250 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1APIVersionsFluent> extends BaseFluent{ +public class V1APIVersionsFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private ArrayList serverAddressByClientCIDRs; + private List versions; + public V1APIVersionsFluent() { } public V1APIVersionsFluent(V1APIVersions instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private ArrayList serverAddressByClientCIDRs; - private List versions; + + public A addAllToServerAddressByClientCIDRs(Collection items) { + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); + } + return (A) this; + } - protected void copyInstance(V1APIVersions instance) { - instance = (instance != null ? instance : new V1APIVersions()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); - this.withVersions(instance.getVersions()); - } + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { + return new ServerAddressByClientCIDRsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { + return new ServerAddressByClientCIDRsNested(-1, item); + } + + public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + this.serverAddressByClientCIDRs = new ArrayList(); + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; + 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(builder); + serverAddressByClientCIDRs.add(index, builder); + } + return (A) this; } - public String getKind() { - return this.kind; + public A addToVersions(String... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; } - public A withKind(String kind) { - this.kind = kind; + public A addToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.add(index, item); return (A) this; } - public boolean hasKind() { - return this.kind != null; + public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { + return this.serverAddressByClientCIDRs.get(0).build(); } - 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);} - return (A)this; + public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR() { + return this.serverAddressByClientCIDRs.get(serverAddressByClientCIDRs.size() - 1).build(); } - 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);} - return (A)this; + public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predicate predicate) { + for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(int index) { + return this.serverAddressByClientCIDRs.get(index).build(); } - public A addToServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; + public List buildServerAddressByClientCIDRs() { + return this.serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; } - public A addAllToServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) {this.serverAddressByClientCIDRs = new ArrayList();} - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").add(builder);this.serverAddressByClientCIDRs.add(builder);} return (A)this; + protected void copyInstance(V1APIVersions instance) { + instance = instance != null ? instance : new V1APIVersions(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withServerAddressByClientCIDRs(instance.getServerAddressByClientCIDRs()); + this.withVersions(instance.getVersions()); + } } - public A removeFromServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... items) { - if (this.serverAddressByClientCIDRs == null) return (A)this; - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder); this.serverAddressByClientCIDRs.remove(builder);} return (A)this; + public ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { + if (serverAddressByClientCIDRs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(0, this.buildServerAddressByClientCIDR(0)); } - public A removeAllFromServerAddressByClientCIDRs(Collection items) { - if (this.serverAddressByClientCIDRs == null) return (A)this; - for (V1ServerAddressByClientCIDR item : items) {V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item);_visitables.get("serverAddressByClientCIDRs").remove(builder); this.serverAddressByClientCIDRs.remove(builder);} return (A)this; + public ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { + int index = serverAddressByClientCIDRs.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } - public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { - if (serverAddressByClientCIDRs == null) return (A) this; - final Iterator each = serverAddressByClientCIDRs.iterator(); - final List visitables = _visitables.get("serverAddressByClientCIDRs"); - while (each.hasNext()) { - V1ServerAddressByClientCIDRBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate) { + int index = -1; + for (int i = 0;i < serverAddressByClientCIDRs.size();i++) { + if (predicate.test(serverAddressByClientCIDRs.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } - public List buildServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null ? build(serverAddressByClientCIDRs) : null; + public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { + if (serverAddressByClientCIDRs.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "serverAddressByClientCIDRs")); + } + return this.setNewServerAddressByClientCIDRLike(index, this.buildServerAddressByClientCIDR(index)); } - public V1ServerAddressByClientCIDR buildServerAddressByClientCIDR(int index) { - return this.serverAddressByClientCIDRs.get(index).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1APIVersionsFluent that = (V1APIVersionsFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(serverAddressByClientCIDRs, that.serverAddressByClientCIDRs))) { + return false; + } + if (!(Objects.equals(versions, that.versions))) { + return false; + } + return true; } - public V1ServerAddressByClientCIDR buildFirstServerAddressByClientCIDR() { - return this.serverAddressByClientCIDRs.get(0).build(); + public String getApiVersion() { + return this.apiVersion; } - public V1ServerAddressByClientCIDR buildLastServerAddressByClientCIDR() { - return this.serverAddressByClientCIDRs.get(serverAddressByClientCIDRs.size() - 1).build(); + public String getFirstVersion() { + return this.versions.get(0); } - public V1ServerAddressByClientCIDR buildMatchingServerAddressByClientCIDR(Predicate predicate) { - for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { + public String getKind() { + return this.kind; + } + + public String getLastVersion() { + return this.versions.get(versions.size() - 1); + } + + public String getMatchingVersion(Predicate predicate) { + for (String item : versions) { if (predicate.test(item)) { - return item.build(); + return item; } } return null; } + public String getVersion(int index) { + return this.versions.get(index); + } + + public List getVersions() { + return this.versions; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + public boolean hasMatchingServerAddressByClientCIDR(Predicate predicate) { for (V1ServerAddressByClientCIDRBuilder item : serverAddressByClientCIDRs) { if (predicate.test(item)) { @@ -146,138 +254,176 @@ public boolean hasMatchingServerAddressByClientCIDR(Predicate serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this._visitables.get("serverAddressByClientCIDRs").clear(); - } - if (serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs = new ArrayList(); - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); + public boolean hasMatchingVersion(Predicate predicate) { + for (String item : versions) { + if (predicate.test(item)) { + return true; } - } else { - this.serverAddressByClientCIDRs = null; - } - return (A) this; - } - - public A withServerAddressByClientCIDRs(io.kubernetes.client.openapi.models.V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { - if (this.serverAddressByClientCIDRs != null) { - this.serverAddressByClientCIDRs.clear(); - _visitables.remove("serverAddressByClientCIDRs"); - } - if (serverAddressByClientCIDRs != null) { - for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { - this.addToServerAddressByClientCIDRs(item); } - } - return (A) this; + return false; } public boolean hasServerAddressByClientCIDRs() { - return this.serverAddressByClientCIDRs != null && !this.serverAddressByClientCIDRs.isEmpty(); + return this.serverAddressByClientCIDRs != null && !(this.serverAddressByClientCIDRs.isEmpty()); } - public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDR() { - return new ServerAddressByClientCIDRsNested(-1, null); - } - - public ServerAddressByClientCIDRsNested addNewServerAddressByClientCIDRLike(V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(-1, item); - } - - public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { - return new ServerAddressByClientCIDRsNested(index, item); - } - - public ServerAddressByClientCIDRsNested editServerAddressByClientCIDR(int index) { - if (serverAddressByClientCIDRs.size() <= index) throw new RuntimeException("Can't edit serverAddressByClientCIDRs. Index exceeds size."); - return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); - } - - public ServerAddressByClientCIDRsNested editFirstServerAddressByClientCIDR() { - if (serverAddressByClientCIDRs.size() == 0) throw new RuntimeException("Can't edit first serverAddressByClientCIDRs. The list is empty."); - return setNewServerAddressByClientCIDRLike(0, buildServerAddressByClientCIDR(0)); + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); } - public ServerAddressByClientCIDRsNested editLastServerAddressByClientCIDR() { - int index = serverAddressByClientCIDRs.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last serverAddressByClientCIDRs. The list is empty."); - return setNewServerAddressByClientCIDRLike(index, buildServerAddressByClientCIDR(index)); + public int hashCode() { + return Objects.hash(apiVersion, kind, serverAddressByClientCIDRs, versions); } - public ServerAddressByClientCIDRsNested editMatchingServerAddressByClientCIDR(Predicate predicate) { - int index = -1; - for (int i=0;i items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; } - public A addToVersions(int index,String item) { - if (this.versions == null) {this.versions = new ArrayList();} - this.versions.add(index, item); - return (A)this; + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; } - public A setToVersions(int index,String item) { - if (this.versions == null) {this.versions = new ArrayList();} - this.versions.set(index, item); return (A)this; + public A removeFromServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { + if (this.serverAddressByClientCIDRs == null) { + return (A) this; + } + for (V1ServerAddressByClientCIDR item : items) { + V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); + _visitables.get("serverAddressByClientCIDRs").remove(builder); + this.serverAddressByClientCIDRs.remove(builder); + } + return (A) this; } - public A addToVersions(java.lang.String... items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (String item : items) {this.versions.add(item);} return (A)this; + public A removeFromVersions(String... items) { + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; } - public A addAllToVersions(Collection items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (String item : items) {this.versions.add(item);} return (A)this; + public A removeMatchingFromServerAddressByClientCIDRs(Predicate predicate) { + if (serverAddressByClientCIDRs == null) { + return (A) this; + } + Iterator each = serverAddressByClientCIDRs.iterator(); + List visitables = _visitables.get("serverAddressByClientCIDRs"); + while (each.hasNext()) { + V1ServerAddressByClientCIDRBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A removeFromVersions(java.lang.String... items) { - if (this.versions == null) return (A)this; - for (String item : items) { this.versions.remove(item);} return (A)this; + public ServerAddressByClientCIDRsNested setNewServerAddressByClientCIDRLike(int index,V1ServerAddressByClientCIDR item) { + return new ServerAddressByClientCIDRsNested(index, item); } - public A removeAllFromVersions(Collection items) { - if (this.versions == null) return (A)this; - for (String item : items) { this.versions.remove(item);} 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").add(builder); + serverAddressByClientCIDRs.set(index, builder); + } + return (A) this; } - public List getVersions() { - return this.versions; + public A setToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.set(index, item); + return (A) this; } - public String getVersion(int index) { - return this.versions.get(index); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(serverAddressByClientCIDRs == null) && !(serverAddressByClientCIDRs.isEmpty())) { + sb.append("serverAddressByClientCIDRs:"); + sb.append(serverAddressByClientCIDRs); + sb.append(","); + } + if (!(versions == null) && !(versions.isEmpty())) { + sb.append("versions:"); + sb.append(versions); + } + sb.append("}"); + return sb.toString(); } - public String getFirstVersion() { - return this.versions.get(0); + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public String getLastVersion() { - return this.versions.get(versions.size() - 1); + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public String getMatchingVersion(Predicate predicate) { - for (String item : versions) { - if (predicate.test(item)) { - return item; + public A withServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { + this._visitables.get("serverAddressByClientCIDRs").clear(); + } + if (serverAddressByClientCIDRs != null) { + this.serverAddressByClientCIDRs = new ArrayList(); + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { + this.addToServerAddressByClientCIDRs(item); } - } - return null; + } else { + this.serverAddressByClientCIDRs = null; + } + return (A) this; } - public boolean hasMatchingVersion(Predicate predicate) { - for (String item : versions) { - if (predicate.test(item)) { - return true; - } + public A withServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... serverAddressByClientCIDRs) { + if (this.serverAddressByClientCIDRs != null) { + this.serverAddressByClientCIDRs.clear(); + _visitables.remove("serverAddressByClientCIDRs"); + } + if (serverAddressByClientCIDRs != null) { + for (V1ServerAddressByClientCIDR item : serverAddressByClientCIDRs) { + this.addToServerAddressByClientCIDRs(item); } - return false; + } + return (A) this; } public A withVersions(List versions) { @@ -292,7 +438,7 @@ public A withVersions(List versions) { return (A) this; } - public A withVersions(java.lang.String... versions) { + public A withVersions(String... versions) { if (this.versions != null) { this.versions.clear(); _visitables.remove("versions"); @@ -304,54 +450,23 @@ public A withVersions(java.lang.String... versions) { } return (A) this; } + public class ServerAddressByClientCIDRsNested extends V1ServerAddressByClientCIDRFluent> implements Nested{ - public boolean hasVersions() { - return this.versions != null && !this.versions.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; - V1APIVersionsFluent that = (V1APIVersionsFluent) 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(serverAddressByClientCIDRs, that.serverAddressByClientCIDRs)) return false; - if (!java.util.Objects.equals(versions, that.versions)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, serverAddressByClientCIDRs, versions, super.hashCode()); - } + V1ServerAddressByClientCIDRBuilder builder; + int index; - 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 (serverAddressByClientCIDRs != null && !serverAddressByClientCIDRs.isEmpty()) { sb.append("serverAddressByClientCIDRs:"); sb.append(serverAddressByClientCIDRs + ","); } - if (versions != null && !versions.isEmpty()) { sb.append("versions:"); sb.append(versions); } - sb.append("}"); - return sb.toString(); - } - public class ServerAddressByClientCIDRsNested extends V1ServerAddressByClientCIDRFluent> implements Nested{ ServerAddressByClientCIDRsNested(int index,V1ServerAddressByClientCIDR item) { this.index = index; this.builder = new V1ServerAddressByClientCIDRBuilder(this, item); } - V1ServerAddressByClientCIDRBuilder builder; - int index; - + public N and() { - return (N) V1APIVersionsFluent.this.setToServerAddressByClientCIDRs(index,builder.build()); + return (N) V1APIVersionsFluent.this.setToServerAddressByClientCIDRs(index, builder.build()); } public N endServerAddressByClientCIDR() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java index e1aa8d47eb..b76e9888d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AWSElasticBlockStoreVolumeSourceBuilder extends V1AWSElasticBlockStoreVolumeSourceFluent implements VisitableBuilder{ + + V1AWSElasticBlockStoreVolumeSourceFluent fluent; + public V1AWSElasticBlockStoreVolumeSourceBuilder() { this(new V1AWSElasticBlockStoreVolumeSource()); } @@ -10,17 +14,16 @@ public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSou this(fluent, new V1AWSElasticBlockStoreVolumeSource()); } - public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSourceFluent fluent,V1AWSElasticBlockStoreVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1AWSElasticBlockStoreVolumeSourceFluent fluent; + public V1AWSElasticBlockStoreVolumeSourceBuilder(V1AWSElasticBlockStoreVolumeSourceFluent fluent,V1AWSElasticBlockStoreVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AWSElasticBlockStoreVolumeSource build() { V1AWSElasticBlockStoreVolumeSource buildable = new V1AWSElasticBlockStoreVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -30,5 +33,4 @@ public V1AWSElasticBlockStoreVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java index 47cc5dcc46..12a6fae13b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java @@ -1,120 +1,152 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Integer; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AWSElasticBlockStoreVolumeSourceFluent> extends BaseFluent{ +public class V1AWSElasticBlockStoreVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Integer partition; + private Boolean readOnly; + private String volumeID; + public V1AWSElasticBlockStoreVolumeSourceFluent() { } public V1AWSElasticBlockStoreVolumeSourceFluent(V1AWSElasticBlockStoreVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Integer partition; - private Boolean readOnly; - private String volumeID; - + protected void copyInstance(V1AWSElasticBlockStoreVolumeSource instance) { - instance = (instance != null ? instance : new V1AWSElasticBlockStoreVolumeSource()); + instance = instance != null ? instance : new V1AWSElasticBlockStoreVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withPartition(instance.getPartition()); - this.withReadOnly(instance.getReadOnly()); - this.withVolumeID(instance.getVolumeID()); - } - } - - public String getFsType() { - return this.fsType; + this.withFsType(instance.getFsType()); + this.withPartition(instance.getPartition()); + this.withReadOnly(instance.getReadOnly()); + this.withVolumeID(instance.getVolumeID()); + } } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AWSElasticBlockStoreVolumeSourceFluent that = (V1AWSElasticBlockStoreVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(partition, that.partition))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(volumeID, that.volumeID))) { + return false; + } + return true; } - public boolean hasFsType() { - return this.fsType != null; + public String getFsType() { + return this.fsType; } public Integer getPartition() { return this.partition; } - public A withPartition(Integer partition) { - this.partition = partition; - return (A) this; - } - - public boolean hasPartition() { - return this.partition != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public String getVolumeID() { + return this.volumeID; } - public boolean hasReadOnly() { - return this.readOnly != null; + public boolean hasFsType() { + return this.fsType != null; } - public String getVolumeID() { - return this.volumeID; + public boolean hasPartition() { + return this.partition != null; } - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } public boolean hasVolumeID() { return this.volumeID != 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; - V1AWSElasticBlockStoreVolumeSourceFluent that = (V1AWSElasticBlockStoreVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(partition, that.partition)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(volumeID, that.volumeID)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(fsType, partition, readOnly, volumeID, super.hashCode()); + return Objects.hash(fsType, partition, readOnly, volumeID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (partition != null) { sb.append("partition:"); sb.append(partition + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(partition == null)) { + sb.append("partition:"); + sb.append(partition); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(volumeID == null)) { + sb.append("volumeID:"); + sb.append(volumeID); + } sb.append("}"); return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withPartition(Integer partition) { + this.partition = partition; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withVolumeID(String volumeID) { + this.volumeID = volumeID; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java index 1693c475dd..c6b824f49f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AffinityBuilder extends V1AffinityFluent implements VisitableBuilder{ + + V1AffinityFluent fluent; + public V1AffinityBuilder() { this(new V1Affinity()); } @@ -10,17 +14,16 @@ public V1AffinityBuilder(V1AffinityFluent fluent) { this(fluent, new V1Affinity()); } - public V1AffinityBuilder(V1AffinityFluent fluent,V1Affinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AffinityBuilder(V1Affinity instance) { this.fluent = this; this.copyInstance(instance); } - V1AffinityFluent fluent; + public V1AffinityBuilder(V1AffinityFluent fluent,V1Affinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Affinity build() { V1Affinity buildable = new V1Affinity(); buildable.setNodeAffinity(fluent.buildNodeAffinity()); @@ -29,5 +32,4 @@ public V1Affinity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java index 797c091bfc..4062deaa91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java @@ -1,133 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AffinityFluent> extends BaseFluent{ +public class V1AffinityFluent> extends BaseFluent{ + + private V1NodeAffinityBuilder nodeAffinity; + private V1PodAffinityBuilder podAffinity; + private V1PodAntiAffinityBuilder podAntiAffinity; + public V1AffinityFluent() { } public V1AffinityFluent(V1Affinity instance) { this.copyInstance(instance); } - private V1NodeAffinityBuilder nodeAffinity; - private V1PodAffinityBuilder podAffinity; - private V1PodAntiAffinityBuilder podAntiAffinity; + + public V1NodeAffinity buildNodeAffinity() { + return this.nodeAffinity != null ? this.nodeAffinity.build() : null; + } + + public V1PodAffinity buildPodAffinity() { + return this.podAffinity != null ? this.podAffinity.build() : null; + } + + public V1PodAntiAffinity buildPodAntiAffinity() { + return this.podAntiAffinity != null ? this.podAntiAffinity.build() : null; + } protected void copyInstance(V1Affinity instance) { - instance = (instance != null ? instance : new V1Affinity()); + instance = instance != null ? instance : new V1Affinity(); if (instance != null) { - this.withNodeAffinity(instance.getNodeAffinity()); - this.withPodAffinity(instance.getPodAffinity()); - this.withPodAntiAffinity(instance.getPodAntiAffinity()); - } + this.withNodeAffinity(instance.getNodeAffinity()); + this.withPodAffinity(instance.getPodAffinity()); + this.withPodAntiAffinity(instance.getPodAntiAffinity()); + } } - public V1NodeAffinity buildNodeAffinity() { - return this.nodeAffinity != null ? this.nodeAffinity.build() : null; + public NodeAffinityNested editNodeAffinity() { + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(null)); } - public A withNodeAffinity(V1NodeAffinity nodeAffinity) { - this._visitables.remove("nodeAffinity"); - if (nodeAffinity != null) { - this.nodeAffinity = new V1NodeAffinityBuilder(nodeAffinity); - this._visitables.get("nodeAffinity").add(this.nodeAffinity); - } else { - this.nodeAffinity = null; - this._visitables.get("nodeAffinity").remove(this.nodeAffinity); - } - return (A) this; + public NodeAffinityNested editOrNewNodeAffinity() { + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(new V1NodeAffinityBuilder().build())); } - public boolean hasNodeAffinity() { - return this.nodeAffinity != null; + public NodeAffinityNested editOrNewNodeAffinityLike(V1NodeAffinity item) { + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(item)); } - public NodeAffinityNested withNewNodeAffinity() { - return new NodeAffinityNested(null); + public PodAffinityNested editOrNewPodAffinity() { + return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(new V1PodAffinityBuilder().build())); } - public NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item) { - return new NodeAffinityNested(item); + public PodAffinityNested editOrNewPodAffinityLike(V1PodAffinity item) { + return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(item)); } - public NodeAffinityNested editNodeAffinity() { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(null)); + public PodAntiAffinityNested editOrNewPodAntiAffinity() { + return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(new V1PodAntiAffinityBuilder().build())); } - public NodeAffinityNested editOrNewNodeAffinity() { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(new V1NodeAffinityBuilder().build())); + public PodAntiAffinityNested editOrNewPodAntiAffinityLike(V1PodAntiAffinity item) { + return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(item)); } - public NodeAffinityNested editOrNewNodeAffinityLike(V1NodeAffinity item) { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(item)); + public PodAffinityNested editPodAffinity() { + return this.withNewPodAffinityLike(Optional.ofNullable(this.buildPodAffinity()).orElse(null)); } - public V1PodAffinity buildPodAffinity() { - return this.podAffinity != null ? this.podAffinity.build() : null; + public PodAntiAffinityNested editPodAntiAffinity() { + return this.withNewPodAntiAffinityLike(Optional.ofNullable(this.buildPodAntiAffinity()).orElse(null)); } - public A withPodAffinity(V1PodAffinity podAffinity) { - this._visitables.remove("podAffinity"); - if (podAffinity != null) { - this.podAffinity = new V1PodAffinityBuilder(podAffinity); - this._visitables.get("podAffinity").add(this.podAffinity); - } else { - this.podAffinity = null; - this._visitables.get("podAffinity").remove(this.podAffinity); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AffinityFluent that = (V1AffinityFluent) o; + if (!(Objects.equals(nodeAffinity, that.nodeAffinity))) { + return false; + } + if (!(Objects.equals(podAffinity, that.podAffinity))) { + return false; + } + if (!(Objects.equals(podAntiAffinity, that.podAntiAffinity))) { + return false; + } + return true; } - public boolean hasPodAffinity() { - return this.podAffinity != null; + public boolean hasNodeAffinity() { + return this.nodeAffinity != null; } - public PodAffinityNested withNewPodAffinity() { - return new PodAffinityNested(null); + public boolean hasPodAffinity() { + return this.podAffinity != null; } - public PodAffinityNested withNewPodAffinityLike(V1PodAffinity item) { - return new PodAffinityNested(item); + public boolean hasPodAntiAffinity() { + return this.podAntiAffinity != null; } - public PodAffinityNested editPodAffinity() { - return withNewPodAffinityLike(java.util.Optional.ofNullable(buildPodAffinity()).orElse(null)); + public int hashCode() { + return Objects.hash(nodeAffinity, podAffinity, podAntiAffinity); } - public PodAffinityNested editOrNewPodAffinity() { - return withNewPodAffinityLike(java.util.Optional.ofNullable(buildPodAffinity()).orElse(new V1PodAffinityBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nodeAffinity == null)) { + sb.append("nodeAffinity:"); + sb.append(nodeAffinity); + sb.append(","); + } + if (!(podAffinity == null)) { + sb.append("podAffinity:"); + sb.append(podAffinity); + sb.append(","); + } + if (!(podAntiAffinity == null)) { + sb.append("podAntiAffinity:"); + sb.append(podAntiAffinity); + } + sb.append("}"); + return sb.toString(); } - public PodAffinityNested editOrNewPodAffinityLike(V1PodAffinity item) { - return withNewPodAffinityLike(java.util.Optional.ofNullable(buildPodAffinity()).orElse(item)); + public NodeAffinityNested withNewNodeAffinity() { + return new NodeAffinityNested(null); } - public V1PodAntiAffinity buildPodAntiAffinity() { - return this.podAntiAffinity != null ? this.podAntiAffinity.build() : null; + public NodeAffinityNested withNewNodeAffinityLike(V1NodeAffinity item) { + return new NodeAffinityNested(item); } - public A withPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { - this._visitables.remove("podAntiAffinity"); - if (podAntiAffinity != null) { - this.podAntiAffinity = new V1PodAntiAffinityBuilder(podAntiAffinity); - this._visitables.get("podAntiAffinity").add(this.podAntiAffinity); - } else { - this.podAntiAffinity = null; - this._visitables.get("podAntiAffinity").remove(this.podAntiAffinity); - } - return (A) this; + public PodAffinityNested withNewPodAffinity() { + return new PodAffinityNested(null); } - public boolean hasPodAntiAffinity() { - return this.podAntiAffinity != null; + public PodAffinityNested withNewPodAffinityLike(V1PodAffinity item) { + return new PodAffinityNested(item); } public PodAntiAffinityNested withNewPodAntiAffinity() { @@ -138,48 +167,49 @@ public PodAntiAffinityNested withNewPodAntiAffinityLike(V1PodAntiAffinity ite return new PodAntiAffinityNested(item); } - public PodAntiAffinityNested editPodAntiAffinity() { - return withNewPodAntiAffinityLike(java.util.Optional.ofNullable(buildPodAntiAffinity()).orElse(null)); - } - - public PodAntiAffinityNested editOrNewPodAntiAffinity() { - return withNewPodAntiAffinityLike(java.util.Optional.ofNullable(buildPodAntiAffinity()).orElse(new V1PodAntiAffinityBuilder().build())); + public A withNodeAffinity(V1NodeAffinity nodeAffinity) { + this._visitables.remove("nodeAffinity"); + if (nodeAffinity != null) { + this.nodeAffinity = new V1NodeAffinityBuilder(nodeAffinity); + this._visitables.get("nodeAffinity").add(this.nodeAffinity); + } else { + this.nodeAffinity = null; + this._visitables.get("nodeAffinity").remove(this.nodeAffinity); + } + return (A) this; } - public PodAntiAffinityNested editOrNewPodAntiAffinityLike(V1PodAntiAffinity item) { - return withNewPodAntiAffinityLike(java.util.Optional.ofNullable(buildPodAntiAffinity()).orElse(item)); + public A withPodAffinity(V1PodAffinity podAffinity) { + this._visitables.remove("podAffinity"); + if (podAffinity != null) { + this.podAffinity = new V1PodAffinityBuilder(podAffinity); + this._visitables.get("podAffinity").add(this.podAffinity); + } else { + this.podAffinity = null; + this._visitables.get("podAffinity").remove(this.podAffinity); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1AffinityFluent that = (V1AffinityFluent) o; - if (!java.util.Objects.equals(nodeAffinity, that.nodeAffinity)) return false; - if (!java.util.Objects.equals(podAffinity, that.podAffinity)) return false; - if (!java.util.Objects.equals(podAntiAffinity, that.podAntiAffinity)) return false; - return true; + public A withPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { + this._visitables.remove("podAntiAffinity"); + if (podAntiAffinity != null) { + this.podAntiAffinity = new V1PodAntiAffinityBuilder(podAntiAffinity); + this._visitables.get("podAntiAffinity").add(this.podAntiAffinity); + } else { + this.podAntiAffinity = null; + this._visitables.get("podAntiAffinity").remove(this.podAntiAffinity); + } + return (A) this; } + public class NodeAffinityNested extends V1NodeAffinityFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(nodeAffinity, podAffinity, podAntiAffinity, super.hashCode()); - } + V1NodeAffinityBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (nodeAffinity != null) { sb.append("nodeAffinity:"); sb.append(nodeAffinity + ","); } - if (podAffinity != null) { sb.append("podAffinity:"); sb.append(podAffinity + ","); } - if (podAntiAffinity != null) { sb.append("podAntiAffinity:"); sb.append(podAntiAffinity); } - sb.append("}"); - return sb.toString(); - } - public class NodeAffinityNested extends V1NodeAffinityFluent> implements Nested{ NodeAffinityNested(V1NodeAffinity item) { this.builder = new V1NodeAffinityBuilder(this, item); } - V1NodeAffinityBuilder builder; - + public N and() { return (N) V1AffinityFluent.this.withNodeAffinity(builder.build()); } @@ -188,14 +218,15 @@ public N endNodeAffinity() { return and(); } - } public class PodAffinityNested extends V1PodAffinityFluent> implements Nested{ + + V1PodAffinityBuilder builder; + PodAffinityNested(V1PodAffinity item) { this.builder = new V1PodAffinityBuilder(this, item); } - V1PodAffinityBuilder builder; - + public N and() { return (N) V1AffinityFluent.this.withPodAffinity(builder.build()); } @@ -204,14 +235,15 @@ public N endPodAffinity() { return and(); } - } public class PodAntiAffinityNested extends V1PodAntiAffinityFluent> implements Nested{ + + V1PodAntiAffinityBuilder builder; + PodAntiAffinityNested(V1PodAntiAffinity item) { this.builder = new V1PodAntiAffinityBuilder(this, item); } - V1PodAntiAffinityBuilder builder; - + public N and() { return (N) V1AffinityFluent.this.withPodAntiAffinity(builder.build()); } @@ -220,7 +252,5 @@ public N endPodAntiAffinity() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java index 8da8617b10..d2fb25e06e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AggregationRuleBuilder extends V1AggregationRuleFluent implements VisitableBuilder{ + + V1AggregationRuleFluent fluent; + public V1AggregationRuleBuilder() { this(new V1AggregationRule()); } @@ -10,22 +14,20 @@ public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent) { this(fluent, new V1AggregationRule()); } - public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent,V1AggregationRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AggregationRuleBuilder(V1AggregationRule instance) { this.fluent = this; this.copyInstance(instance); } - V1AggregationRuleFluent fluent; + public V1AggregationRuleBuilder(V1AggregationRuleFluent fluent,V1AggregationRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AggregationRule build() { V1AggregationRule buildable = new V1AggregationRule(); buildable.setClusterRoleSelectors(fluent.buildClusterRoleSelectors()); return buildable; } - } \ No newline at end of file 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..745eb91914 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 @@ -1,93 +1,89 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AggregationRuleFluent> extends BaseFluent{ +public class V1AggregationRuleFluent> extends BaseFluent{ + + private ArrayList clusterRoleSelectors; + public V1AggregationRuleFluent() { } public V1AggregationRuleFluent(V1AggregationRule instance) { this.copyInstance(instance); } - private ArrayList clusterRoleSelectors; - - protected void copyInstance(V1AggregationRule instance) { - instance = (instance != null ? instance : new V1AggregationRule()); - if (instance != null) { - this.withClusterRoleSelectors(instance.getClusterRoleSelectors()); - } - } - - 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);} - 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);} - return (A)this; - } - - public A addToClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items) { - if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} - for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").add(builder);this.clusterRoleSelectors.add(builder);} return (A)this; - } - + public A addAllToClusterRoleSelectors(Collection items) { - if (this.clusterRoleSelectors == null) {this.clusterRoleSelectors = new ArrayList();} - for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").add(builder);this.clusterRoleSelectors.add(builder);} return (A)this; + if (this.clusterRoleSelectors == null) { + this.clusterRoleSelectors = new ArrayList(); + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").add(builder); + this.clusterRoleSelectors.add(builder); + } + return (A) this; } - public A removeFromClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... items) { - if (this.clusterRoleSelectors == null) return (A)this; - for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").remove(builder); this.clusterRoleSelectors.remove(builder);} return (A)this; + public ClusterRoleSelectorsNested addNewClusterRoleSelector() { + return new ClusterRoleSelectorsNested(-1, null); } - public A removeAllFromClusterRoleSelectors(Collection items) { - if (this.clusterRoleSelectors == null) return (A)this; - for (V1LabelSelector item : items) {V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item);_visitables.get("clusterRoleSelectors").remove(builder); this.clusterRoleSelectors.remove(builder);} return (A)this; + public ClusterRoleSelectorsNested addNewClusterRoleSelectorLike(V1LabelSelector item) { + return new ClusterRoleSelectorsNested(-1, item); } - public A removeMatchingFromClusterRoleSelectors(Predicate predicate) { - if (clusterRoleSelectors == null) return (A) this; - final Iterator each = clusterRoleSelectors.iterator(); - final List visitables = _visitables.get("clusterRoleSelectors"); - while (each.hasNext()) { - V1LabelSelectorBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToClusterRoleSelectors(V1LabelSelector... items) { + if (this.clusterRoleSelectors == null) { + this.clusterRoleSelectors = new ArrayList(); + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").add(builder); + this.clusterRoleSelectors.add(builder); } - return (A)this; + return (A) this; } - public List buildClusterRoleSelectors() { - return this.clusterRoleSelectors != null ? build(clusterRoleSelectors) : null; + 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(builder); + clusterRoleSelectors.add(index, builder); + } + return (A) this; } public V1LabelSelector buildClusterRoleSelector(int index) { return this.clusterRoleSelectors.get(index).build(); } + public List buildClusterRoleSelectors() { + return this.clusterRoleSelectors != null ? build(clusterRoleSelectors) : null; + } + public V1LabelSelector buildFirstClusterRoleSelector() { return this.clusterRoleSelectors.get(0).build(); } @@ -105,6 +101,70 @@ public V1LabelSelector buildMatchingClusterRoleSelector(Predicate editClusterRoleSelector(int index) { + if (clusterRoleSelectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "clusterRoleSelectors")); + } + return this.setNewClusterRoleSelectorLike(index, this.buildClusterRoleSelector(index)); + } + + public ClusterRoleSelectorsNested editFirstClusterRoleSelector() { + if (clusterRoleSelectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "clusterRoleSelectors")); + } + return this.setNewClusterRoleSelectorLike(0, this.buildClusterRoleSelector(0)); + } + + public ClusterRoleSelectorsNested editLastClusterRoleSelector() { + int index = clusterRoleSelectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "clusterRoleSelectors")); + } + return this.setNewClusterRoleSelectorLike(index, this.buildClusterRoleSelector(index)); + } + + public ClusterRoleSelectorsNested editMatchingClusterRoleSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < clusterRoleSelectors.size();i++) { + if (predicate.test(clusterRoleSelectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "clusterRoleSelectors")); + } + return this.setNewClusterRoleSelectorLike(index, this.buildClusterRoleSelector(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AggregationRuleFluent that = (V1AggregationRuleFluent) o; + if (!(Objects.equals(clusterRoleSelectors, that.clusterRoleSelectors))) { + return false; + } + return true; + } + + public boolean hasClusterRoleSelectors() { + return this.clusterRoleSelectors != null && !(this.clusterRoleSelectors.isEmpty()); + } + public boolean hasMatchingClusterRoleSelector(Predicate predicate) { for (V1LabelSelectorBuilder item : clusterRoleSelectors) { if (predicate.test(item)) { @@ -114,6 +174,80 @@ public boolean hasMatchingClusterRoleSelector(Predicate return false; } + public int hashCode() { + return Objects.hash(clusterRoleSelectors); + } + + public A removeAllFromClusterRoleSelectors(Collection items) { + if (this.clusterRoleSelectors == null) { + return (A) this; + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").remove(builder); + this.clusterRoleSelectors.remove(builder); + } + return (A) this; + } + + public A removeFromClusterRoleSelectors(V1LabelSelector... items) { + if (this.clusterRoleSelectors == null) { + return (A) this; + } + for (V1LabelSelector item : items) { + V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); + _visitables.get("clusterRoleSelectors").remove(builder); + this.clusterRoleSelectors.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromClusterRoleSelectors(Predicate predicate) { + if (clusterRoleSelectors == null) { + return (A) this; + } + Iterator each = clusterRoleSelectors.iterator(); + List visitables = _visitables.get("clusterRoleSelectors"); + while (each.hasNext()) { + V1LabelSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ClusterRoleSelectorsNested setNewClusterRoleSelectorLike(int index,V1LabelSelector item) { + return new ClusterRoleSelectorsNested(index, item); + } + + 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").add(builder); + clusterRoleSelectors.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(clusterRoleSelectors == null) && !(clusterRoleSelectors.isEmpty())) { + sb.append("clusterRoleSelectors:"); + sb.append(clusterRoleSelectors); + } + sb.append("}"); + return sb.toString(); + } + public A withClusterRoleSelectors(List clusterRoleSelectors) { if (this.clusterRoleSelectors != null) { this._visitables.get("clusterRoleSelectors").clear(); @@ -129,7 +263,7 @@ public A withClusterRoleSelectors(List clusterRoleSelectors) { return (A) this; } - public A withClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSelector... clusterRoleSelectors) { + public A withClusterRoleSelectors(V1LabelSelector... clusterRoleSelectors) { if (this.clusterRoleSelectors != null) { this.clusterRoleSelectors.clear(); _visitables.remove("clusterRoleSelectors"); @@ -141,85 +275,23 @@ public A withClusterRoleSelectors(io.kubernetes.client.openapi.models.V1LabelSel } return (A) this; } + public class ClusterRoleSelectorsNested extends V1LabelSelectorFluent> implements Nested{ - public boolean hasClusterRoleSelectors() { - return this.clusterRoleSelectors != null && !this.clusterRoleSelectors.isEmpty(); - } - - public ClusterRoleSelectorsNested addNewClusterRoleSelector() { - return new ClusterRoleSelectorsNested(-1, null); - } - - public ClusterRoleSelectorsNested addNewClusterRoleSelectorLike(V1LabelSelector item) { - return new ClusterRoleSelectorsNested(-1, item); - } - - public ClusterRoleSelectorsNested setNewClusterRoleSelectorLike(int index,V1LabelSelector item) { - return new ClusterRoleSelectorsNested(index, item); - } - - public ClusterRoleSelectorsNested editClusterRoleSelector(int index) { - if (clusterRoleSelectors.size() <= index) throw new RuntimeException("Can't edit clusterRoleSelectors. Index exceeds size."); - return setNewClusterRoleSelectorLike(index, buildClusterRoleSelector(index)); - } - - public ClusterRoleSelectorsNested editFirstClusterRoleSelector() { - if (clusterRoleSelectors.size() == 0) throw new RuntimeException("Can't edit first clusterRoleSelectors. The list is empty."); - return setNewClusterRoleSelectorLike(0, buildClusterRoleSelector(0)); - } - - public ClusterRoleSelectorsNested editLastClusterRoleSelector() { - int index = clusterRoleSelectors.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last clusterRoleSelectors. The list is empty."); - return setNewClusterRoleSelectorLike(index, buildClusterRoleSelector(index)); - } - - public ClusterRoleSelectorsNested editMatchingClusterRoleSelector(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1LabelSelectorFluent> implements Nested{ ClusterRoleSelectorsNested(int index,V1LabelSelector item) { this.index = index; this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - int index; - + public N and() { - return (N) V1AggregationRuleFluent.this.setToClusterRoleSelectors(index,builder.build()); + return (N) V1AggregationRuleFluent.this.setToClusterRoleSelectors(index, builder.build()); } public N endClusterRoleSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java new file mode 100644 index 0000000000..a0d0947a3d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1AllocatedDeviceStatusBuilder extends V1AllocatedDeviceStatusFluent implements VisitableBuilder{ + + V1AllocatedDeviceStatusFluent fluent; + + public V1AllocatedDeviceStatusBuilder() { + this(new V1AllocatedDeviceStatus()); + } + + public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatusFluent fluent) { + this(fluent, new V1AllocatedDeviceStatus()); + } + + public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1AllocatedDeviceStatusBuilder(V1AllocatedDeviceStatusFluent fluent,V1AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1AllocatedDeviceStatus build() { + V1AllocatedDeviceStatus buildable = new V1AllocatedDeviceStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setData(fluent.getData()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setNetworkData(fluent.buildNetworkData()); + buildable.setPool(fluent.getPool()); + buildable.setShareID(fluent.getShareID()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java new file mode 100644 index 0000000000..ef36b2b4cd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java @@ -0,0 +1,480 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1AllocatedDeviceStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private Object data; + private String device; + private String driver; + private V1NetworkDeviceDataBuilder networkData; + private String pool; + private String shareID; + + public V1AllocatedDeviceStatusFluent() { + } + + public V1AllocatedDeviceStatusFluent(V1AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(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 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 V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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 V1NetworkDeviceData buildNetworkData() { + return this.networkData != null ? this.networkData.build() : null; + } + + protected void copyInstance(V1AllocatedDeviceStatus instance) { + instance = instance != null ? instance : new V1AllocatedDeviceStatus(); + 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()); + this.withShareID(instance.getShareID()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public NetworkDataNested editNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); + } + + public NetworkDataNested editOrNewNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1NetworkDeviceDataBuilder().build())); + } + + public NetworkDataNested editOrNewNetworkDataLike(V1NetworkDeviceData item) { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AllocatedDeviceStatusFluent that = (V1AllocatedDeviceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(networkData, that.networkData))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + return true; + } + + public Object getData() { + return this.data; + } + + public String getDevice() { + return this.device; + } + + public String getDriver() { + return this.driver; + } + + public String getPool() { + return this.pool; + } + + public String getShareID() { + return this.shareID; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasData() { + return this.data != null; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNetworkData() { + return this.networkData != null; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasShareID() { + return this.shareID != null; + } + + public int hashCode() { + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(data == null)) { + sb.append("data:"); + sb.append(data); + sb.append(","); + } + if (!(device == null)) { + sb.append("device:"); + sb.append(device); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(networkData == null)) { + sb.append("networkData:"); + sb.append(networkData); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withData(Object data) { + this.data = data; + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withNetworkData(V1NetworkDeviceData networkData) { + this._visitables.remove("networkData"); + if (networkData != null) { + this.networkData = new V1NetworkDeviceDataBuilder(networkData); + this._visitables.get("networkData").add(this.networkData); + } else { + this.networkData = null; + this._visitables.get("networkData").remove(this.networkData); + } + return (A) this; + } + + public NetworkDataNested withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1AllocatedDeviceStatusFluent.this.setToConditions(index, builder.build()); + } + + public N endCondition() { + return and(); + } + + } + public class NetworkDataNested extends V1NetworkDeviceDataFluent> implements Nested{ + + V1NetworkDeviceDataBuilder builder; + + NetworkDataNested(V1NetworkDeviceData item) { + this.builder = new V1NetworkDeviceDataBuilder(this, item); + } + + public N and() { + return (N) V1AllocatedDeviceStatusFluent.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/V1AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java new file mode 100644 index 0000000000..b5447404d4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1AllocationResultBuilder extends V1AllocationResultFluent implements VisitableBuilder{ + + V1AllocationResultFluent fluent; + + public V1AllocationResultBuilder() { + this(new V1AllocationResult()); + } + + public V1AllocationResultBuilder(V1AllocationResultFluent fluent) { + this(fluent, new V1AllocationResult()); + } + + public V1AllocationResultBuilder(V1AllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1AllocationResultBuilder(V1AllocationResultFluent fluent,V1AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1AllocationResult build() { + V1AllocationResult buildable = new V1AllocationResult(); + buildable.setAllocationTimestamp(fluent.getAllocationTimestamp()); + 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/V1AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java new file mode 100644 index 0000000000..e25c7bdf86 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java @@ -0,0 +1,213 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1AllocationResultFluent> extends BaseFluent{ + + private OffsetDateTime allocationTimestamp; + private V1DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + + public V1AllocationResultFluent() { + } + + public V1AllocationResultFluent(V1AllocationResult instance) { + this.copyInstance(instance); + } + + public V1DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + protected void copyInstance(V1AllocationResult instance) { + instance = instance != null ? instance : new V1AllocationResult(); + if (instance != null) { + this.withAllocationTimestamp(instance.getAllocationTimestamp()); + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public DevicesNested editDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1DeviceAllocationResultBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1DeviceAllocationResult item) { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AllocationResultFluent that = (V1AllocationResultFluent) o; + if (!(Objects.equals(allocationTimestamp, that.allocationTimestamp))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + return true; + } + + public OffsetDateTime getAllocationTimestamp() { + return this.allocationTimestamp; + } + + public boolean hasAllocationTimestamp() { + return this.allocationTimestamp != null; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public int hashCode() { + return Objects.hash(allocationTimestamp, devices, nodeSelector); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationTimestamp == null)) { + sb.append("allocationTimestamp:"); + sb.append(allocationTimestamp); + sb.append(","); + } + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return (A) this; + } + + public A withDevices(V1DeviceAllocationResult devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1DeviceAllocationResultBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + 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 class DevicesNested extends V1DeviceAllocationResultFluent> implements Nested{ + + V1DeviceAllocationResultBuilder builder; + + DevicesNested(V1DeviceAllocationResult item) { + this.builder = new V1DeviceAllocationResultBuilder(this, item); + } + + public N and() { + return (N) V1AllocationResultFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + public N and() { + return (N) V1AllocationResultFluent.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/V1AppArmorProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java index 859c9c3603..3ff7978cc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AppArmorProfileBuilder extends V1AppArmorProfileFluent implements VisitableBuilder{ + + V1AppArmorProfileFluent fluent; + public V1AppArmorProfileBuilder() { this(new V1AppArmorProfile()); } @@ -10,17 +14,16 @@ 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 V1AppArmorProfileBuilder(V1AppArmorProfileFluent fluent,V1AppArmorProfile instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AppArmorProfile build() { V1AppArmorProfile buildable = new V1AppArmorProfile(); buildable.setLocalhostProfile(fluent.getLocalhostProfile()); @@ -28,5 +31,4 @@ public V1AppArmorProfile build() { 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 index 492f716cdc..30320d40c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AppArmorProfileFluent> extends BaseFluent{ +public class V1AppArmorProfileFluent> extends BaseFluent{ + + private String localhostProfile; + private String type; + 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()); + instance = instance != null ? instance : new V1AppArmorProfile(); if (instance != null) { - this.withLocalhostProfile(instance.getLocalhostProfile()); - this.withType(instance.getType()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AppArmorProfileFluent that = (V1AppArmorProfileFluent) o; + if (!(Objects.equals(localhostProfile, that.localhostProfile))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLocalhostProfile() { - return this.localhostProfile != null; + public String getLocalhostProfile() { + return this.localhostProfile; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasLocalhostProfile() { + return this.localhostProfile != null; } 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()); + return Objects.hash(localhostProfile, type); } 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); } + if (!(localhostProfile == null)) { + sb.append("localhostProfile:"); + sb.append(localhostProfile); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } - + public A withLocalhostProfile(String localhostProfile) { + this.localhostProfile = localhostProfile; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java index 618a93d9ec..416903fa54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AttachedVolumeBuilder extends V1AttachedVolumeFluent implements VisitableBuilder{ + + V1AttachedVolumeFluent fluent; + public V1AttachedVolumeBuilder() { this(new V1AttachedVolume()); } @@ -10,17 +14,16 @@ public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent) { this(fluent, new V1AttachedVolume()); } - public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent,V1AttachedVolume instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AttachedVolumeBuilder(V1AttachedVolume instance) { this.fluent = this; this.copyInstance(instance); } - V1AttachedVolumeFluent fluent; + public V1AttachedVolumeBuilder(V1AttachedVolumeFluent fluent,V1AttachedVolume instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AttachedVolume build() { V1AttachedVolume buildable = new V1AttachedVolume(); buildable.setDevicePath(fluent.getDevicePath()); @@ -28,5 +31,4 @@ public V1AttachedVolume build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java index 2dfe72387c..a34c519c03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AttachedVolumeFluent> extends BaseFluent{ +public class V1AttachedVolumeFluent> extends BaseFluent{ + + private String devicePath; + private String name; + public V1AttachedVolumeFluent() { } public V1AttachedVolumeFluent(V1AttachedVolume instance) { this.copyInstance(instance); } - private String devicePath; - private String name; - + protected void copyInstance(V1AttachedVolume instance) { - instance = (instance != null ? instance : new V1AttachedVolume()); + instance = instance != null ? instance : new V1AttachedVolume(); if (instance != null) { - this.withDevicePath(instance.getDevicePath()); - this.withName(instance.getName()); - } + this.withDevicePath(instance.getDevicePath()); + this.withName(instance.getName()); + } } - public String getDevicePath() { - return this.devicePath; - } - - public A withDevicePath(String devicePath) { - this.devicePath = devicePath; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AttachedVolumeFluent that = (V1AttachedVolumeFluent) o; + if (!(Objects.equals(devicePath, that.devicePath))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasDevicePath() { - return this.devicePath != null; + public String getDevicePath() { + return this.devicePath; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasDevicePath() { + return this.devicePath != null; } 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; - V1AttachedVolumeFluent that = (V1AttachedVolumeFluent) o; - if (!java.util.Objects.equals(devicePath, that.devicePath)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(devicePath, name, super.hashCode()); + return Objects.hash(devicePath, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devicePath != null) { sb.append("devicePath:"); sb.append(devicePath + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(devicePath == null)) { + sb.append("devicePath:"); + sb.append(devicePath); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withDevicePath(String devicePath) { + this.devicePath = devicePath; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ 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 index 64105e3042..d604c8ec0a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AuditAnnotationBuilder extends V1AuditAnnotationFluent implements VisitableBuilder{ + + V1AuditAnnotationFluent fluent; + public V1AuditAnnotationBuilder() { this(new V1AuditAnnotation()); } @@ -10,17 +14,16 @@ 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 V1AuditAnnotationBuilder(V1AuditAnnotationFluent fluent,V1AuditAnnotation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AuditAnnotation build() { V1AuditAnnotation buildable = new V1AuditAnnotation(); buildable.setKey(fluent.getKey()); @@ -28,5 +31,4 @@ public V1AuditAnnotation build() { 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 index f02d591733..eb0858110c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AuditAnnotationFluent> extends BaseFluent{ +public class V1AuditAnnotationFluent> extends BaseFluent{ + + private String key; + private String valueExpression; + 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()); + instance = instance != null ? instance : new V1AuditAnnotation(); if (instance != null) { - this.withKey(instance.getKey()); - this.withValueExpression(instance.getValueExpression()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AuditAnnotationFluent that = (V1AuditAnnotationFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(valueExpression, that.valueExpression))) { + return false; + } + return true; } - public boolean hasKey() { - return this.key != null; + public String getKey() { + return this.key; } public String getValueExpression() { return this.valueExpression; } - public A withValueExpression(String valueExpression) { - this.valueExpression = valueExpression; - return (A) this; + public boolean hasKey() { + return this.key != null; } 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()); + return Objects.hash(key, valueExpression); } 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); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(valueExpression == null)) { + sb.append("valueExpression:"); + sb.append(valueExpression); + } sb.append("}"); return sb.toString(); } - + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withValueExpression(String valueExpression) { + this.valueExpression = valueExpression; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java index b552e3a00f..9475995cd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AzureDiskVolumeSourceBuilder extends V1AzureDiskVolumeSourceFluent implements VisitableBuilder{ + + V1AzureDiskVolumeSourceFluent fluent; + public V1AzureDiskVolumeSourceBuilder() { this(new V1AzureDiskVolumeSource()); } @@ -10,17 +14,16 @@ public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent) { this(fluent, new V1AzureDiskVolumeSource()); } - public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent,V1AzureDiskVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1AzureDiskVolumeSourceFluent fluent; + public V1AzureDiskVolumeSourceBuilder(V1AzureDiskVolumeSourceFluent fluent,V1AzureDiskVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AzureDiskVolumeSource build() { V1AzureDiskVolumeSource buildable = new V1AzureDiskVolumeSource(); buildable.setCachingMode(fluent.getCachingMode()); @@ -32,5 +35,4 @@ public V1AzureDiskVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java index e9dbf9d540..4caca0be8a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java @@ -1,153 +1,197 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AzureDiskVolumeSourceFluent> extends BaseFluent{ - public V1AzureDiskVolumeSourceFluent() { - } - - public V1AzureDiskVolumeSourceFluent(V1AzureDiskVolumeSource instance) { - this.copyInstance(instance); - } +public class V1AzureDiskVolumeSourceFluent> extends BaseFluent{ + private String cachingMode; private String diskName; private String diskURI; private String fsType; private String kind; private Boolean readOnly; + + public V1AzureDiskVolumeSourceFluent() { + } + public V1AzureDiskVolumeSourceFluent(V1AzureDiskVolumeSource instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1AzureDiskVolumeSource instance) { - instance = (instance != null ? instance : new V1AzureDiskVolumeSource()); + instance = instance != null ? instance : new V1AzureDiskVolumeSource(); if (instance != null) { - this.withCachingMode(instance.getCachingMode()); - this.withDiskName(instance.getDiskName()); - this.withDiskURI(instance.getDiskURI()); - this.withFsType(instance.getFsType()); - this.withKind(instance.getKind()); - this.withReadOnly(instance.getReadOnly()); - } - } - - public String getCachingMode() { - return this.cachingMode; + this.withCachingMode(instance.getCachingMode()); + this.withDiskName(instance.getDiskName()); + this.withDiskURI(instance.getDiskURI()); + this.withFsType(instance.getFsType()); + this.withKind(instance.getKind()); + this.withReadOnly(instance.getReadOnly()); + } } - public A withCachingMode(String cachingMode) { - this.cachingMode = cachingMode; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AzureDiskVolumeSourceFluent that = (V1AzureDiskVolumeSourceFluent) o; + if (!(Objects.equals(cachingMode, that.cachingMode))) { + return false; + } + if (!(Objects.equals(diskName, that.diskName))) { + return false; + } + if (!(Objects.equals(diskURI, that.diskURI))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + return true; } - public boolean hasCachingMode() { - return this.cachingMode != null; + public String getCachingMode() { + return this.cachingMode; } public String getDiskName() { return this.diskName; } - public A withDiskName(String diskName) { - this.diskName = diskName; - return (A) this; + public String getDiskURI() { + return this.diskURI; } - public boolean hasDiskName() { - return this.diskName != null; + public String getFsType() { + return this.fsType; } - public String getDiskURI() { - return this.diskURI; + public String getKind() { + return this.kind; } - public A withDiskURI(String diskURI) { - this.diskURI = diskURI; - return (A) this; + public Boolean getReadOnly() { + return this.readOnly; } - public boolean hasDiskURI() { - return this.diskURI != null; + public boolean hasCachingMode() { + return this.cachingMode != null; } - public String getFsType() { - return this.fsType; + public boolean hasDiskName() { + return this.diskName != null; } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public boolean hasDiskURI() { + return this.diskURI != null; } public boolean hasFsType() { return this.fsType != null; } - public String getKind() { - return this.kind; + public boolean hasKind() { + return this.kind != null; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } - public boolean hasKind() { - return this.kind != null; + public int hashCode() { + return Objects.hash(cachingMode, diskName, diskURI, fsType, kind, readOnly); } - public Boolean getReadOnly() { - return this.readOnly; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cachingMode == null)) { + sb.append("cachingMode:"); + sb.append(cachingMode); + sb.append(","); + } + if (!(diskName == null)) { + sb.append("diskName:"); + sb.append(diskName); + sb.append(","); + } + if (!(diskURI == null)) { + sb.append("diskURI:"); + sb.append(diskURI); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } + sb.append("}"); + return sb.toString(); } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; + public A withCachingMode(String cachingMode) { + this.cachingMode = cachingMode; return (A) this; } - public boolean hasReadOnly() { - return this.readOnly != null; + public A withDiskName(String diskName) { + this.diskName = diskName; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1AzureDiskVolumeSourceFluent that = (V1AzureDiskVolumeSourceFluent) o; - if (!java.util.Objects.equals(cachingMode, that.cachingMode)) return false; - if (!java.util.Objects.equals(diskName, that.diskName)) return false; - if (!java.util.Objects.equals(diskURI, that.diskURI)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - return true; + public A withDiskURI(String diskURI) { + this.diskURI = diskURI; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(cachingMode, diskName, diskURI, fsType, kind, readOnly, super.hashCode()); + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (cachingMode != null) { sb.append("cachingMode:"); sb.append(cachingMode + ","); } - if (diskName != null) { sb.append("diskName:"); sb.append(diskName + ","); } - if (diskURI != null) { sb.append("diskURI:"); sb.append(diskURI + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } - sb.append("}"); - return sb.toString(); + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java index 3a962245b6..e8d761cf77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AzureFilePersistentVolumeSourceBuilder extends V1AzureFilePersistentVolumeSourceFluent implements VisitableBuilder{ + + V1AzureFilePersistentVolumeSourceFluent fluent; + public V1AzureFilePersistentVolumeSourceBuilder() { this(new V1AzureFilePersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourc this(fluent, new V1AzureFilePersistentVolumeSource()); } - public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourceFluent fluent,V1AzureFilePersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1AzureFilePersistentVolumeSourceFluent fluent; + public V1AzureFilePersistentVolumeSourceBuilder(V1AzureFilePersistentVolumeSourceFluent fluent,V1AzureFilePersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AzureFilePersistentVolumeSource build() { V1AzureFilePersistentVolumeSource buildable = new V1AzureFilePersistentVolumeSource(); buildable.setReadOnly(fluent.getReadOnly()); @@ -30,5 +33,4 @@ public V1AzureFilePersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java index ddf2a57685..3ce370e241 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java @@ -1,112 +1,125 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AzureFilePersistentVolumeSourceFluent> extends BaseFluent{ +public class V1AzureFilePersistentVolumeSourceFluent> extends BaseFluent{ + + private Boolean readOnly; + private String secretName; + private String secretNamespace; + private String shareName; + public V1AzureFilePersistentVolumeSourceFluent() { } public V1AzureFilePersistentVolumeSourceFluent(V1AzureFilePersistentVolumeSource instance) { this.copyInstance(instance); } - private Boolean readOnly; - private String secretName; - private String secretNamespace; - private String shareName; - + protected void copyInstance(V1AzureFilePersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1AzureFilePersistentVolumeSource()); + instance = instance != null ? instance : new V1AzureFilePersistentVolumeSource(); if (instance != null) { - this.withReadOnly(instance.getReadOnly()); - this.withSecretName(instance.getSecretName()); - this.withSecretNamespace(instance.getSecretNamespace()); - this.withShareName(instance.getShareName()); - } + this.withReadOnly(instance.getReadOnly()); + this.withSecretName(instance.getSecretName()); + this.withSecretNamespace(instance.getSecretNamespace()); + this.withShareName(instance.getShareName()); + } } - public Boolean getReadOnly() { - return this.readOnly; - } - - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AzureFilePersistentVolumeSourceFluent that = (V1AzureFilePersistentVolumeSourceFluent) o; + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretName, that.secretName))) { + return false; + } + if (!(Objects.equals(secretNamespace, that.secretNamespace))) { + return false; + } + if (!(Objects.equals(shareName, that.shareName))) { + return false; + } + return true; } - public boolean hasReadOnly() { - return this.readOnly != null; + public Boolean getReadOnly() { + return this.readOnly; } public String getSecretName() { return this.secretName; } - public A withSecretName(String secretName) { - this.secretName = secretName; - return (A) this; - } - - public boolean hasSecretName() { - return this.secretName != null; - } - public String getSecretNamespace() { return this.secretNamespace; } - public A withSecretNamespace(String secretNamespace) { - this.secretNamespace = secretNamespace; - return (A) this; + public String getShareName() { + return this.shareName; } - public boolean hasSecretNamespace() { - return this.secretNamespace != null; + public boolean hasReadOnly() { + return this.readOnly != null; } - public String getShareName() { - return this.shareName; + public boolean hasSecretName() { + return this.secretName != null; } - public A withShareName(String shareName) { - this.shareName = shareName; - return (A) this; + public boolean hasSecretNamespace() { + return this.secretNamespace != null; } public boolean hasShareName() { return this.shareName != 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; - V1AzureFilePersistentVolumeSourceFluent that = (V1AzureFilePersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretName, that.secretName)) return false; - if (!java.util.Objects.equals(secretNamespace, that.secretNamespace)) return false; - if (!java.util.Objects.equals(shareName, that.shareName)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(readOnly, secretName, secretNamespace, shareName, super.hashCode()); + return Objects.hash(readOnly, secretName, secretNamespace, shareName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretName != null) { sb.append("secretName:"); sb.append(secretName + ","); } - if (secretNamespace != null) { sb.append("secretNamespace:"); sb.append(secretNamespace + ","); } - if (shareName != null) { sb.append("shareName:"); sb.append(shareName); } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretName == null)) { + sb.append("secretName:"); + sb.append(secretName); + sb.append(","); + } + if (!(secretNamespace == null)) { + sb.append("secretNamespace:"); + sb.append(secretNamespace); + sb.append(","); + } + if (!(shareName == null)) { + sb.append("shareName:"); + sb.append(shareName); + } sb.append("}"); return sb.toString(); } @@ -115,5 +128,24 @@ public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretName(String secretName) { + this.secretName = secretName; + return (A) this; + } + + public A withSecretNamespace(String secretNamespace) { + this.secretNamespace = secretNamespace; + return (A) this; + } + + public A withShareName(String shareName) { + this.shareName = shareName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java index c658905f18..59c8712fc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1AzureFileVolumeSourceBuilder extends V1AzureFileVolumeSourceFluent implements VisitableBuilder{ + + V1AzureFileVolumeSourceFluent fluent; + public V1AzureFileVolumeSourceBuilder() { this(new V1AzureFileVolumeSource()); } @@ -10,17 +14,16 @@ public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent) { this(fluent, new V1AzureFileVolumeSource()); } - public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent,V1AzureFileVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1AzureFileVolumeSourceFluent fluent; + public V1AzureFileVolumeSourceBuilder(V1AzureFileVolumeSourceFluent fluent,V1AzureFileVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1AzureFileVolumeSource build() { V1AzureFileVolumeSource buildable = new V1AzureFileVolumeSource(); buildable.setReadOnly(fluent.getReadOnly()); @@ -29,5 +32,4 @@ public V1AzureFileVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java index 17a3222b7d..f0daaa72bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java @@ -1,95 +1,107 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1AzureFileVolumeSourceFluent> extends BaseFluent{ +public class V1AzureFileVolumeSourceFluent> extends BaseFluent{ + + private Boolean readOnly; + private String secretName; + private String shareName; + public V1AzureFileVolumeSourceFluent() { } public V1AzureFileVolumeSourceFluent(V1AzureFileVolumeSource instance) { this.copyInstance(instance); } - private Boolean readOnly; - private String secretName; - private String shareName; - + protected void copyInstance(V1AzureFileVolumeSource instance) { - instance = (instance != null ? instance : new V1AzureFileVolumeSource()); + instance = instance != null ? instance : new V1AzureFileVolumeSource(); if (instance != null) { - this.withReadOnly(instance.getReadOnly()); - this.withSecretName(instance.getSecretName()); - this.withShareName(instance.getShareName()); - } - } - - public Boolean getReadOnly() { - return this.readOnly; + this.withReadOnly(instance.getReadOnly()); + this.withSecretName(instance.getSecretName()); + this.withShareName(instance.getShareName()); + } } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1AzureFileVolumeSourceFluent that = (V1AzureFileVolumeSourceFluent) o; + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretName, that.secretName))) { + return false; + } + if (!(Objects.equals(shareName, that.shareName))) { + return false; + } + return true; } - public boolean hasReadOnly() { - return this.readOnly != null; + public Boolean getReadOnly() { + return this.readOnly; } public String getSecretName() { return this.secretName; } - public A withSecretName(String secretName) { - this.secretName = secretName; - return (A) this; - } - - public boolean hasSecretName() { - return this.secretName != null; - } - public String getShareName() { return this.shareName; } - public A withShareName(String shareName) { - this.shareName = shareName; - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } - public boolean hasShareName() { - return this.shareName != null; + public boolean hasSecretName() { + return this.secretName != 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; - V1AzureFileVolumeSourceFluent that = (V1AzureFileVolumeSourceFluent) o; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretName, that.secretName)) return false; - if (!java.util.Objects.equals(shareName, that.shareName)) return false; - return true; + public boolean hasShareName() { + return this.shareName != null; } public int hashCode() { - return java.util.Objects.hash(readOnly, secretName, shareName, super.hashCode()); + return Objects.hash(readOnly, secretName, shareName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretName != null) { sb.append("secretName:"); sb.append(secretName + ","); } - if (shareName != null) { sb.append("shareName:"); sb.append(shareName); } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretName == null)) { + sb.append("secretName:"); + sb.append(secretName); + sb.append(","); + } + if (!(shareName == null)) { + sb.append("shareName:"); + sb.append(shareName); + } sb.append("}"); return sb.toString(); } @@ -98,5 +110,19 @@ public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretName(String secretName) { + this.secretName = secretName; + return (A) this; + } + + public A withShareName(String shareName) { + this.shareName = shareName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java index be90038b36..26d7d3539c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1BindingBuilder extends V1BindingFluent implements VisitableBuilder{ + + V1BindingFluent fluent; + public V1BindingBuilder() { this(new V1Binding()); } @@ -10,17 +14,16 @@ public V1BindingBuilder(V1BindingFluent fluent) { this(fluent, new V1Binding()); } - public V1BindingBuilder(V1BindingFluent fluent,V1Binding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1BindingBuilder(V1Binding instance) { this.fluent = this; this.copyInstance(instance); } - V1BindingFluent fluent; + public V1BindingBuilder(V1BindingFluent fluent,V1Binding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Binding build() { V1Binding buildable = new V1Binding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1Binding build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java index e598cdd9b0..69dbeeaef6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1BindingFluent> extends BaseFluent{ +public class V1BindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ObjectReferenceBuilder target; + public V1BindingFluent() { } public V1BindingFluent(V1Binding instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ObjectReferenceBuilder target; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ObjectReference buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V1Binding instance) { - instance = (instance != null ? instance : new V1Binding()); + instance = instance != null ? instance : new V1Binding(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withTarget(instance.getTarget()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withTarget(instance.getTarget()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public TargetNested editOrNewTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V1ObjectReferenceBuilder().build())); + } + + public TargetNested editOrNewTargetLike(V1ObjectReference item) { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); + } + + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1BindingFluent that = (V1BindingFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasTarget() { + return this.target != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, target); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 TargetNested withNewTarget() { + return new TargetNested(null); } - public V1ObjectReference buildTarget() { - return this.target != null ? this.target.build() : null; + public TargetNested withNewTargetLike(V1ObjectReference item) { + return new TargetNested(item); } public A withTarget(V1ObjectReference target) { @@ -113,63 +198,14 @@ public A withTarget(V1ObjectReference target) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V1ObjectReference item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); - } - - public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V1ObjectReferenceBuilder().build())); - } - - public TargetNested editOrNewTargetLike(V1ObjectReference item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).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; - V1BindingFluent that = (V1BindingFluent) 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(target, that.target)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, target, super.hashCode()); - } + V1ObjectMetaBuilder builder; - 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 (target != null) { sb.append("target:"); sb.append(target); } - 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) V1BindingFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class TargetNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + TargetNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1BindingFluent.this.withTarget(builder.build()); } @@ -194,7 +231,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java index 305584d6f7..f368e26feb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1BoundObjectReferenceBuilder extends V1BoundObjectReferenceFluent implements VisitableBuilder{ + + V1BoundObjectReferenceFluent fluent; + public V1BoundObjectReferenceBuilder() { this(new V1BoundObjectReference()); } @@ -10,17 +14,16 @@ public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent) { this(fluent, new V1BoundObjectReference()); } - public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent,V1BoundObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1BoundObjectReferenceBuilder(V1BoundObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1BoundObjectReferenceFluent fluent; + public V1BoundObjectReferenceBuilder(V1BoundObjectReferenceFluent fluent,V1BoundObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1BoundObjectReference build() { V1BoundObjectReference buildable = new V1BoundObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1BoundObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java index 42b3b0506a..f31cb2bcce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java @@ -1,114 +1,146 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1BoundObjectReferenceFluent> extends BaseFluent{ +public class V1BoundObjectReferenceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private String name; + private String uid; + public V1BoundObjectReferenceFluent() { } public V1BoundObjectReferenceFluent(V1BoundObjectReference instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private String name; - private String uid; - + protected void copyInstance(V1BoundObjectReference instance) { - instance = (instance != null ? instance : new V1BoundObjectReference()); + instance = instance != null ? instance : new V1BoundObjectReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withUid(instance.getUid()); - } - } - - public String getApiVersion() { - return this.apiVersion; + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withUid(instance.getUid()); + } } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1BoundObjectReferenceFluent that = (V1BoundObjectReferenceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } 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 String getUid() { + return this.uid; } - public boolean hasName() { - return this.name != null; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public String getUid() { - return this.uid; + public boolean hasKind() { + return this.kind != null; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + public boolean hasName() { + return this.name != null; } 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; - V1BoundObjectReferenceFluent that = (V1BoundObjectReferenceFluent) 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(name, that.name)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, uid, super.hashCode()); + return Objects.hash(apiVersion, kind, name, uid); } 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 (name != null) { sb.append("name:"); sb.append(name + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } sb.append("}"); return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java new file mode 100644 index 0000000000..66c5bcc85f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CELDeviceSelectorBuilder extends V1CELDeviceSelectorFluent implements VisitableBuilder{ + + V1CELDeviceSelectorFluent fluent; + + public V1CELDeviceSelectorBuilder() { + this(new V1CELDeviceSelector()); + } + + public V1CELDeviceSelectorBuilder(V1CELDeviceSelectorFluent fluent) { + this(fluent, new V1CELDeviceSelector()); + } + + public V1CELDeviceSelectorBuilder(V1CELDeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1CELDeviceSelectorBuilder(V1CELDeviceSelectorFluent fluent,V1CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CELDeviceSelector build() { + V1CELDeviceSelector buildable = new V1CELDeviceSelector(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java new file mode 100644 index 0000000000..fa3b17b4d6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java @@ -0,0 +1,77 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CELDeviceSelectorFluent> extends BaseFluent{ + + private String expression; + + public V1CELDeviceSelectorFluent() { + } + + public V1CELDeviceSelectorFluent(V1CELDeviceSelector instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1CELDeviceSelector instance) { + instance = instance != null ? instance : new V1CELDeviceSelector(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CELDeviceSelectorFluent that = (V1CELDeviceSelectorFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java index 2d883d7e6e..b34a94f3ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIDriverBuilder extends V1CSIDriverFluent implements VisitableBuilder{ + + V1CSIDriverFluent fluent; + public V1CSIDriverBuilder() { this(new V1CSIDriver()); } @@ -10,17 +14,16 @@ public V1CSIDriverBuilder(V1CSIDriverFluent fluent) { this(fluent, new V1CSIDriver()); } - public V1CSIDriverBuilder(V1CSIDriverFluent fluent,V1CSIDriver instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIDriverBuilder(V1CSIDriver instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIDriverFluent fluent; + public V1CSIDriverBuilder(V1CSIDriverFluent fluent,V1CSIDriver instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIDriver build() { V1CSIDriver buildable = new V1CSIDriver(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1CSIDriver build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java index ea10910a02..58defca4c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIDriverFluent> extends BaseFluent{ +public class V1CSIDriverFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1CSIDriverSpecBuilder spec; + public V1CSIDriverFluent() { } public V1CSIDriverFluent(V1CSIDriver instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1CSIDriverSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1CSIDriverSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1CSIDriver instance) { - instance = (instance != null ? instance : new V1CSIDriver()); + instance = instance != null ? instance : new V1CSIDriver(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CSIDriverSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1CSIDriverSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSIDriverFluent that = (V1CSIDriverFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1CSIDriverSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1CSIDriverSpec item) { + return new SpecNested(item); } public A withSpec(V1CSIDriverSpec spec) { @@ -113,63 +198,14 @@ public A withSpec(V1CSIDriverSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CSIDriverSpec 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 V1CSIDriverSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1CSIDriverSpec 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; - V1CSIDriverFluent that = (V1CSIDriverFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1CSIDriverFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CSIDriverSpecFluent> implements Nested{ + + V1CSIDriverSpecBuilder builder; + SpecNested(V1CSIDriverSpec item) { this.builder = new V1CSIDriverSpecBuilder(this, item); } - V1CSIDriverSpecBuilder builder; - + public N and() { return (N) V1CSIDriverFluent.this.withSpec(builder.build()); } @@ -194,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java index 104e102bbe..98822c4557 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIDriverListBuilder extends V1CSIDriverListFluent implements VisitableBuilder{ + + V1CSIDriverListFluent fluent; + public V1CSIDriverListBuilder() { this(new V1CSIDriverList()); } @@ -10,17 +14,16 @@ public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent) { this(fluent, new V1CSIDriverList()); } - public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent,V1CSIDriverList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIDriverListBuilder(V1CSIDriverList instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIDriverListFluent fluent; + public V1CSIDriverListBuilder(V1CSIDriverListFluent fluent,V1CSIDriverList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIDriverList build() { V1CSIDriverList buildable = new V1CSIDriverList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1CSIDriverList build() { return buildable; } - } \ 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..08e43b84a7 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIDriverListFluent> extends BaseFluent{ +public class V1CSIDriverListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1CSIDriverListFluent() { } public V1CSIDriverListFluent(V1CSIDriverList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CSIDriverList instance) { - instance = (instance != null ? instance : new V1CSIDriverList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1CSIDriver item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1CSIDriver... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1CSIDriver item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1CSIDriver buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1CSIDriver buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { - if (this.items == null) return (A)this; - for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CSIDriver buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CSIDriver item : items) {V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CSIDriver buildMatchingItem(Predicate predicate) { + for (V1CSIDriverBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1CSIDriverBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1CSIDriverList instance) { + instance = instance != null ? instance : new V1CSIDriverList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1CSIDriver buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1CSIDriver buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CSIDriver buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSIDriverListFluent that = (V1CSIDriverListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1CSIDriver buildMatchingItem(Predicate predicate) { - for (V1CSIDriverBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CSIDriver... items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIDriver item : items) { + V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CSIDriverBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CSIDriver item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { + public A withItems(V1CSIDriver... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1CSIDriver... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CSIDriver item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CSIDriver 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1CSIDriverFluent> implements Nested{ - 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; - V1CSIDriverListFluent that = (V1CSIDriverListFluent) 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()); - } + V1CSIDriverBuilder builder; + int index; - 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 V1CSIDriverFluent> implements Nested{ ItemsNested(int index,V1CSIDriver item) { this.index = index; this.builder = new V1CSIDriverBuilder(this, item); } - V1CSIDriverBuilder builder; - int index; - + public N and() { - return (N) V1CSIDriverListFluent.this.setToItems(index,builder.build()); + return (N) V1CSIDriverListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CSIDriverListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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..e0fd207d62 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIDriverSpecBuilder extends V1CSIDriverSpecFluent implements VisitableBuilder{ + + V1CSIDriverSpecFluent fluent; + public V1CSIDriverSpecBuilder() { this(new V1CSIDriverSpec()); } @@ -10,29 +14,29 @@ public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent) { this(fluent, new V1CSIDriverSpec()); } - public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent,V1CSIDriverSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIDriverSpecBuilder(V1CSIDriverSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIDriverSpecFluent fluent; + public V1CSIDriverSpecBuilder(V1CSIDriverSpecFluent fluent,V1CSIDriverSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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()); + buildable.setServiceAccountTokenInSecrets(fluent.getServiceAccountTokenInSecrets()); buildable.setStorageCapacity(fluent.getStorageCapacity()); buildable.setTokenRequests(fluent.buildTokenRequests()); buildable.setVolumeLifecycleModes(fluent.getVolumeLifecycleModes()); return buildable; } - } \ No newline at end of file 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..e8503b8fd5 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 @@ -1,205 +1,317 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIDriverSpecFluent> extends BaseFluent{ - public V1CSIDriverSpecFluent() { - } - - public V1CSIDriverSpecFluent(V1CSIDriverSpec instance) { - this.copyInstance(instance); - } +public class V1CSIDriverSpecFluent> extends BaseFluent{ + private Boolean attachRequired; private String fsGroupPolicy; + private Long nodeAllocatableUpdatePeriodSeconds; private Boolean podInfoOnMount; private Boolean requiresRepublish; private Boolean seLinuxMount; + private Boolean serviceAccountTokenInSecrets; private Boolean storageCapacity; private ArrayList tokenRequests; private List volumeLifecycleModes; - - protected void copyInstance(V1CSIDriverSpec instance) { - instance = (instance != null ? instance : new V1CSIDriverSpec()); - if (instance != null) { - this.withAttachRequired(instance.getAttachRequired()); - this.withFsGroupPolicy(instance.getFsGroupPolicy()); - this.withPodInfoOnMount(instance.getPodInfoOnMount()); - this.withRequiresRepublish(instance.getRequiresRepublish()); - this.withSeLinuxMount(instance.getSeLinuxMount()); - this.withStorageCapacity(instance.getStorageCapacity()); - this.withTokenRequests(instance.getTokenRequests()); - this.withVolumeLifecycleModes(instance.getVolumeLifecycleModes()); - } + + public V1CSIDriverSpecFluent() { } - public Boolean getAttachRequired() { - return this.attachRequired; + public V1CSIDriverSpecFluent(V1CSIDriverSpec instance) { + this.copyInstance(instance); + } + + public A addAllToTokenRequests(Collection items) { + if (this.tokenRequests == null) { + this.tokenRequests = new ArrayList(); + } + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").add(builder); + this.tokenRequests.add(builder); + } + return (A) this; } - public A withAttachRequired(Boolean attachRequired) { - this.attachRequired = attachRequired; + public A addAllToVolumeLifecycleModes(Collection items) { + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); + } + for (String item : items) { + this.volumeLifecycleModes.add(item); + } return (A) this; } - public boolean hasAttachRequired() { - return this.attachRequired != null; + public TokenRequestsNested addNewTokenRequest() { + return new TokenRequestsNested(-1, null); } - public String getFsGroupPolicy() { - return this.fsGroupPolicy; + public TokenRequestsNested addNewTokenRequestLike(StorageV1TokenRequest item) { + return new TokenRequestsNested(-1, item); } - public A withFsGroupPolicy(String fsGroupPolicy) { - this.fsGroupPolicy = fsGroupPolicy; + public A addToTokenRequests(StorageV1TokenRequest... items) { + if (this.tokenRequests == null) { + this.tokenRequests = new ArrayList(); + } + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").add(builder); + this.tokenRequests.add(builder); + } return (A) this; } - public boolean hasFsGroupPolicy() { - return this.fsGroupPolicy != null; + 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(builder); + tokenRequests.add(index, builder); + } + return (A) this; } - public Boolean getPodInfoOnMount() { - return this.podInfoOnMount; + public A addToVolumeLifecycleModes(String... items) { + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); + } + for (String item : items) { + this.volumeLifecycleModes.add(item); + } + return (A) this; } - public A withPodInfoOnMount(Boolean podInfoOnMount) { - this.podInfoOnMount = podInfoOnMount; + public A addToVolumeLifecycleModes(int index,String item) { + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); + } + this.volumeLifecycleModes.add(index, item); return (A) this; } - public boolean hasPodInfoOnMount() { - return this.podInfoOnMount != null; + public StorageV1TokenRequest buildFirstTokenRequest() { + return this.tokenRequests.get(0).build(); } - public Boolean getRequiresRepublish() { - return this.requiresRepublish; + public StorageV1TokenRequest buildLastTokenRequest() { + return this.tokenRequests.get(tokenRequests.size() - 1).build(); } - public A withRequiresRepublish(Boolean requiresRepublish) { - this.requiresRepublish = requiresRepublish; - return (A) this; + public StorageV1TokenRequest buildMatchingTokenRequest(Predicate predicate) { + for (StorageV1TokenRequestBuilder item : tokenRequests) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasRequiresRepublish() { - return this.requiresRepublish != null; + public StorageV1TokenRequest buildTokenRequest(int index) { + return this.tokenRequests.get(index).build(); } - public Boolean getSeLinuxMount() { - return this.seLinuxMount; + public List buildTokenRequests() { + return this.tokenRequests != null ? build(tokenRequests) : null; } - public A withSeLinuxMount(Boolean seLinuxMount) { - this.seLinuxMount = seLinuxMount; - return (A) this; + protected void copyInstance(V1CSIDriverSpec instance) { + instance = instance != null ? instance : new V1CSIDriverSpec(); + 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()); + this.withServiceAccountTokenInSecrets(instance.getServiceAccountTokenInSecrets()); + this.withStorageCapacity(instance.getStorageCapacity()); + this.withTokenRequests(instance.getTokenRequests()); + this.withVolumeLifecycleModes(instance.getVolumeLifecycleModes()); + } } - public boolean hasSeLinuxMount() { - return this.seLinuxMount != null; + public TokenRequestsNested editFirstTokenRequest() { + if (tokenRequests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tokenRequests")); + } + return this.setNewTokenRequestLike(0, this.buildTokenRequest(0)); } - public Boolean getStorageCapacity() { - return this.storageCapacity; + public TokenRequestsNested editLastTokenRequest() { + int index = tokenRequests.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tokenRequests")); + } + return this.setNewTokenRequestLike(index, this.buildTokenRequest(index)); } - public A withStorageCapacity(Boolean storageCapacity) { - this.storageCapacity = storageCapacity; - return (A) this; + public TokenRequestsNested editMatchingTokenRequest(Predicate predicate) { + int index = -1; + for (int i = 0;i < tokenRequests.size();i++) { + if (predicate.test(tokenRequests.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tokenRequests")); + } + return this.setNewTokenRequestLike(index, this.buildTokenRequest(index)); } - public boolean hasStorageCapacity() { - return this.storageCapacity != null; + public TokenRequestsNested editTokenRequest(int index) { + if (tokenRequests.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tokenRequests")); + } + return this.setNewTokenRequestLike(index, this.buildTokenRequest(index)); } - 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);} - return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSIDriverSpecFluent that = (V1CSIDriverSpecFluent) o; + if (!(Objects.equals(attachRequired, that.attachRequired))) { + return false; + } + if (!(Objects.equals(fsGroupPolicy, that.fsGroupPolicy))) { + return false; + } + if (!(Objects.equals(nodeAllocatableUpdatePeriodSeconds, that.nodeAllocatableUpdatePeriodSeconds))) { + return false; + } + if (!(Objects.equals(podInfoOnMount, that.podInfoOnMount))) { + return false; + } + if (!(Objects.equals(requiresRepublish, that.requiresRepublish))) { + return false; + } + if (!(Objects.equals(seLinuxMount, that.seLinuxMount))) { + return false; + } + if (!(Objects.equals(serviceAccountTokenInSecrets, that.serviceAccountTokenInSecrets))) { + return false; + } + if (!(Objects.equals(storageCapacity, that.storageCapacity))) { + return false; + } + if (!(Objects.equals(tokenRequests, that.tokenRequests))) { + return false; + } + if (!(Objects.equals(volumeLifecycleModes, that.volumeLifecycleModes))) { + return false; + } + return true; } - 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);} - return (A)this; + public Boolean getAttachRequired() { + return this.attachRequired; } - public A addToTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items) { - if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} - for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").add(builder);this.tokenRequests.add(builder);} return (A)this; + public String getFirstVolumeLifecycleMode() { + return this.volumeLifecycleModes.get(0); } - public A addAllToTokenRequests(Collection items) { - if (this.tokenRequests == null) {this.tokenRequests = new ArrayList();} - for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").add(builder);this.tokenRequests.add(builder);} return (A)this; + public String getFsGroupPolicy() { + return this.fsGroupPolicy; } - public A removeFromTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... items) { - if (this.tokenRequests == null) return (A)this; - for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").remove(builder); this.tokenRequests.remove(builder);} return (A)this; + public String getLastVolumeLifecycleMode() { + return this.volumeLifecycleModes.get(volumeLifecycleModes.size() - 1); } - public A removeAllFromTokenRequests(Collection items) { - if (this.tokenRequests == null) return (A)this; - for (StorageV1TokenRequest item : items) {StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item);_visitables.get("tokenRequests").remove(builder); this.tokenRequests.remove(builder);} return (A)this; + public String getMatchingVolumeLifecycleMode(Predicate predicate) { + for (String item : volumeLifecycleModes) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A removeMatchingFromTokenRequests(Predicate predicate) { - if (tokenRequests == null) return (A) this; - final Iterator each = tokenRequests.iterator(); - final List visitables = _visitables.get("tokenRequests"); - while (each.hasNext()) { - StorageV1TokenRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public Long getNodeAllocatableUpdatePeriodSeconds() { + return this.nodeAllocatableUpdatePeriodSeconds; } - public List buildTokenRequests() { - return this.tokenRequests != null ? build(tokenRequests) : null; + public Boolean getPodInfoOnMount() { + return this.podInfoOnMount; } - public StorageV1TokenRequest buildTokenRequest(int index) { - return this.tokenRequests.get(index).build(); + public Boolean getRequiresRepublish() { + return this.requiresRepublish; } - public StorageV1TokenRequest buildFirstTokenRequest() { - return this.tokenRequests.get(0).build(); + public Boolean getSeLinuxMount() { + return this.seLinuxMount; } - public StorageV1TokenRequest buildLastTokenRequest() { - return this.tokenRequests.get(tokenRequests.size() - 1).build(); + public Boolean getServiceAccountTokenInSecrets() { + return this.serviceAccountTokenInSecrets; } - public StorageV1TokenRequest buildMatchingTokenRequest(Predicate predicate) { + public Boolean getStorageCapacity() { + return this.storageCapacity; + } + + public String getVolumeLifecycleMode(int index) { + return this.volumeLifecycleModes.get(index); + } + + public List getVolumeLifecycleModes() { + return this.volumeLifecycleModes; + } + + public boolean hasAttachRequired() { + return this.attachRequired != null; + } + + public boolean hasFsGroupPolicy() { + return this.fsGroupPolicy != null; + } + + public boolean hasMatchingTokenRequest(Predicate predicate) { for (StorageV1TokenRequestBuilder item : tokenRequests) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } - public boolean hasMatchingTokenRequest(Predicate predicate) { - for (StorageV1TokenRequestBuilder item : tokenRequests) { + public boolean hasMatchingVolumeLifecycleMode(Predicate predicate) { + for (String item : volumeLifecycleModes) { if (predicate.test(item)) { return true; } @@ -207,138 +319,275 @@ public boolean hasMatchingTokenRequest(Predicate p return false; } - public A withTokenRequests(List tokenRequests) { - if (this.tokenRequests != null) { - this._visitables.get("tokenRequests").clear(); + public boolean hasNodeAllocatableUpdatePeriodSeconds() { + return this.nodeAllocatableUpdatePeriodSeconds != null; + } + + public boolean hasPodInfoOnMount() { + return this.podInfoOnMount != null; + } + + public boolean hasRequiresRepublish() { + return this.requiresRepublish != null; + } + + public boolean hasSeLinuxMount() { + return this.seLinuxMount != null; + } + + public boolean hasServiceAccountTokenInSecrets() { + return this.serviceAccountTokenInSecrets != null; + } + + public boolean hasStorageCapacity() { + return this.storageCapacity != null; + } + + public boolean hasTokenRequests() { + return this.tokenRequests != null && !(this.tokenRequests.isEmpty()); + } + + public boolean hasVolumeLifecycleModes() { + return this.volumeLifecycleModes != null && !(this.volumeLifecycleModes.isEmpty()); + } + + public int hashCode() { + return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, serviceAccountTokenInSecrets, storageCapacity, tokenRequests, volumeLifecycleModes); + } + + public A removeAllFromTokenRequests(Collection items) { + if (this.tokenRequests == null) { + return (A) this; } - if (tokenRequests != null) { - this.tokenRequests = new ArrayList(); - for (StorageV1TokenRequest item : tokenRequests) { - this.addToTokenRequests(item); - } - } else { - this.tokenRequests = null; + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").remove(builder); + this.tokenRequests.remove(builder); } return (A) this; } - public A withTokenRequests(io.kubernetes.client.openapi.models.StorageV1TokenRequest... tokenRequests) { - if (this.tokenRequests != null) { - this.tokenRequests.clear(); - _visitables.remove("tokenRequests"); + public A removeAllFromVolumeLifecycleModes(Collection items) { + if (this.volumeLifecycleModes == null) { + return (A) this; } - if (tokenRequests != null) { - for (StorageV1TokenRequest item : tokenRequests) { - this.addToTokenRequests(item); - } + for (String item : items) { + this.volumeLifecycleModes.remove(item); } return (A) this; } - public boolean hasTokenRequests() { - return this.tokenRequests != null && !this.tokenRequests.isEmpty(); + public A removeFromTokenRequests(StorageV1TokenRequest... items) { + if (this.tokenRequests == null) { + return (A) this; + } + for (StorageV1TokenRequest item : items) { + StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); + _visitables.get("tokenRequests").remove(builder); + this.tokenRequests.remove(builder); + } + return (A) this; } - public TokenRequestsNested addNewTokenRequest() { - return new TokenRequestsNested(-1, null); + public A removeFromVolumeLifecycleModes(String... items) { + if (this.volumeLifecycleModes == null) { + return (A) this; + } + for (String item : items) { + this.volumeLifecycleModes.remove(item); + } + return (A) this; } - public TokenRequestsNested addNewTokenRequestLike(StorageV1TokenRequest item) { - return new TokenRequestsNested(-1, item); + public A removeMatchingFromTokenRequests(Predicate predicate) { + if (tokenRequests == null) { + return (A) this; + } + Iterator each = tokenRequests.iterator(); + List visitables = _visitables.get("tokenRequests"); + while (each.hasNext()) { + StorageV1TokenRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public TokenRequestsNested setNewTokenRequestLike(int index,StorageV1TokenRequest item) { return new TokenRequestsNested(index, item); } - public TokenRequestsNested editTokenRequest(int index) { - if (tokenRequests.size() <= index) throw new RuntimeException("Can't edit tokenRequests. Index exceeds size."); - return setNewTokenRequestLike(index, buildTokenRequest(index)); + 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").add(builder); + tokenRequests.set(index, builder); + } + return (A) this; } - public TokenRequestsNested editFirstTokenRequest() { - if (tokenRequests.size() == 0) throw new RuntimeException("Can't edit first tokenRequests. The list is empty."); - return setNewTokenRequestLike(0, buildTokenRequest(0)); + public A setToVolumeLifecycleModes(int index,String item) { + if (this.volumeLifecycleModes == null) { + this.volumeLifecycleModes = new ArrayList(); + } + this.volumeLifecycleModes.set(index, item); + return (A) this; } - public TokenRequestsNested editLastTokenRequest() { - int index = tokenRequests.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tokenRequests. The list is empty."); - return setNewTokenRequestLike(index, buildTokenRequest(index)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(attachRequired == null)) { + sb.append("attachRequired:"); + sb.append(attachRequired); + sb.append(","); + } + if (!(fsGroupPolicy == null)) { + sb.append("fsGroupPolicy:"); + sb.append(fsGroupPolicy); + sb.append(","); + } + if (!(nodeAllocatableUpdatePeriodSeconds == null)) { + sb.append("nodeAllocatableUpdatePeriodSeconds:"); + sb.append(nodeAllocatableUpdatePeriodSeconds); + sb.append(","); + } + if (!(podInfoOnMount == null)) { + sb.append("podInfoOnMount:"); + sb.append(podInfoOnMount); + sb.append(","); + } + if (!(requiresRepublish == null)) { + sb.append("requiresRepublish:"); + sb.append(requiresRepublish); + sb.append(","); + } + if (!(seLinuxMount == null)) { + sb.append("seLinuxMount:"); + sb.append(seLinuxMount); + sb.append(","); + } + if (!(serviceAccountTokenInSecrets == null)) { + sb.append("serviceAccountTokenInSecrets:"); + sb.append(serviceAccountTokenInSecrets); + sb.append(","); + } + if (!(storageCapacity == null)) { + sb.append("storageCapacity:"); + sb.append(storageCapacity); + sb.append(","); + } + if (!(tokenRequests == null) && !(tokenRequests.isEmpty())) { + sb.append("tokenRequests:"); + sb.append(tokenRequests); + sb.append(","); + } + if (!(volumeLifecycleModes == null) && !(volumeLifecycleModes.isEmpty())) { + sb.append("volumeLifecycleModes:"); + sb.append(volumeLifecycleModes); + } + sb.append("}"); + return sb.toString(); } - public TokenRequestsNested editMatchingTokenRequest(Predicate predicate) { - int index = -1; - for (int i=0;i();} - this.volumeLifecycleModes.add(index, item); - return (A)this; + public A withAttachRequired(Boolean attachRequired) { + this.attachRequired = attachRequired; + return (A) this; } - public A setToVolumeLifecycleModes(int index,String item) { - if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} - this.volumeLifecycleModes.set(index, item); return (A)this; + public A withFsGroupPolicy(String fsGroupPolicy) { + this.fsGroupPolicy = fsGroupPolicy; + return (A) this; } - public A addToVolumeLifecycleModes(java.lang.String... items) { - if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} - for (String item : items) {this.volumeLifecycleModes.add(item);} return (A)this; + public A withNodeAllocatableUpdatePeriodSeconds(Long nodeAllocatableUpdatePeriodSeconds) { + this.nodeAllocatableUpdatePeriodSeconds = nodeAllocatableUpdatePeriodSeconds; + return (A) this; } - public A addAllToVolumeLifecycleModes(Collection items) { - if (this.volumeLifecycleModes == null) {this.volumeLifecycleModes = new ArrayList();} - for (String item : items) {this.volumeLifecycleModes.add(item);} return (A)this; + public A withPodInfoOnMount() { + return withPodInfoOnMount(true); + } + + public A withPodInfoOnMount(Boolean podInfoOnMount) { + this.podInfoOnMount = podInfoOnMount; + return (A) this; } - public A removeFromVolumeLifecycleModes(java.lang.String... items) { - if (this.volumeLifecycleModes == null) return (A)this; - for (String item : items) { this.volumeLifecycleModes.remove(item);} return (A)this; + public A withRequiresRepublish() { + return withRequiresRepublish(true); } - public A removeAllFromVolumeLifecycleModes(Collection items) { - if (this.volumeLifecycleModes == null) return (A)this; - for (String item : items) { this.volumeLifecycleModes.remove(item);} return (A)this; + public A withRequiresRepublish(Boolean requiresRepublish) { + this.requiresRepublish = requiresRepublish; + return (A) this; } - public List getVolumeLifecycleModes() { - return this.volumeLifecycleModes; + public A withSeLinuxMount() { + return withSeLinuxMount(true); } - public String getVolumeLifecycleMode(int index) { - return this.volumeLifecycleModes.get(index); + public A withSeLinuxMount(Boolean seLinuxMount) { + this.seLinuxMount = seLinuxMount; + return (A) this; } - public String getFirstVolumeLifecycleMode() { - return this.volumeLifecycleModes.get(0); + public A withServiceAccountTokenInSecrets() { + return withServiceAccountTokenInSecrets(true); } - public String getLastVolumeLifecycleMode() { - return this.volumeLifecycleModes.get(volumeLifecycleModes.size() - 1); + public A withServiceAccountTokenInSecrets(Boolean serviceAccountTokenInSecrets) { + this.serviceAccountTokenInSecrets = serviceAccountTokenInSecrets; + return (A) this; } - public String getMatchingVolumeLifecycleMode(Predicate predicate) { - for (String item : volumeLifecycleModes) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withStorageCapacity() { + return withStorageCapacity(true); } - public boolean hasMatchingVolumeLifecycleMode(Predicate predicate) { - for (String item : volumeLifecycleModes) { - if (predicate.test(item)) { - return true; + public A withStorageCapacity(Boolean storageCapacity) { + this.storageCapacity = storageCapacity; + return (A) this; + } + + public A withTokenRequests(List tokenRequests) { + if (this.tokenRequests != null) { + this._visitables.get("tokenRequests").clear(); + } + if (tokenRequests != null) { + this.tokenRequests = new ArrayList(); + for (StorageV1TokenRequest item : tokenRequests) { + this.addToTokenRequests(item); } + } else { + this.tokenRequests = null; + } + return (A) this; + } + + public A withTokenRequests(StorageV1TokenRequest... tokenRequests) { + if (this.tokenRequests != null) { + this.tokenRequests.clear(); + _visitables.remove("tokenRequests"); + } + if (tokenRequests != null) { + for (StorageV1TokenRequest item : tokenRequests) { + this.addToTokenRequests(item); } - return false; + } + return (A) this; } public A withVolumeLifecycleModes(List volumeLifecycleModes) { @@ -353,7 +602,7 @@ public A withVolumeLifecycleModes(List volumeLifecycleModes) { return (A) this; } - public A withVolumeLifecycleModes(java.lang.String... volumeLifecycleModes) { + public A withVolumeLifecycleModes(String... volumeLifecycleModes) { if (this.volumeLifecycleModes != null) { this.volumeLifecycleModes.clear(); _visitables.remove("volumeLifecycleModes"); @@ -365,82 +614,23 @@ public A withVolumeLifecycleModes(java.lang.String... volumeLifecycleModes) { } return (A) this; } + public class TokenRequestsNested extends StorageV1TokenRequestFluent> implements Nested{ - public boolean hasVolumeLifecycleModes() { - return this.volumeLifecycleModes != null && !this.volumeLifecycleModes.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; - 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(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; - if (!java.util.Objects.equals(storageCapacity, that.storageCapacity)) return false; - if (!java.util.Objects.equals(tokenRequests, that.tokenRequests)) return false; - if (!java.util.Objects.equals(volumeLifecycleModes, that.volumeLifecycleModes)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(attachRequired, fsGroupPolicy, podInfoOnMount, requiresRepublish, seLinuxMount, storageCapacity, tokenRequests, volumeLifecycleModes, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (attachRequired != null) { sb.append("attachRequired:"); sb.append(attachRequired + ","); } - if (fsGroupPolicy != null) { sb.append("fsGroupPolicy:"); sb.append(fsGroupPolicy + ","); } - 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 + ","); } - if (storageCapacity != null) { sb.append("storageCapacity:"); sb.append(storageCapacity + ","); } - if (tokenRequests != null && !tokenRequests.isEmpty()) { sb.append("tokenRequests:"); sb.append(tokenRequests + ","); } - if (volumeLifecycleModes != null && !volumeLifecycleModes.isEmpty()) { sb.append("volumeLifecycleModes:"); sb.append(volumeLifecycleModes); } - sb.append("}"); - return sb.toString(); - } - - public A withAttachRequired() { - return withAttachRequired(true); - } - - public A withPodInfoOnMount() { - return withPodInfoOnMount(true); - } - - public A withRequiresRepublish() { - return withRequiresRepublish(true); - } - - public A withSeLinuxMount() { - return withSeLinuxMount(true); - } + StorageV1TokenRequestBuilder builder; + int index; - public A withStorageCapacity() { - return withStorageCapacity(true); - } - public class TokenRequestsNested extends StorageV1TokenRequestFluent> implements Nested{ TokenRequestsNested(int index,StorageV1TokenRequest item) { this.index = index; this.builder = new StorageV1TokenRequestBuilder(this, item); } - StorageV1TokenRequestBuilder builder; - int index; - + public N and() { - return (N) V1CSIDriverSpecFluent.this.setToTokenRequests(index,builder.build()); + return (N) V1CSIDriverSpecFluent.this.setToTokenRequests(index, builder.build()); } public N endTokenRequest() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java index aeb0a5a08e..f359663279 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSINodeBuilder extends V1CSINodeFluent implements VisitableBuilder{ + + V1CSINodeFluent fluent; + public V1CSINodeBuilder() { this(new V1CSINode()); } @@ -10,17 +14,16 @@ public V1CSINodeBuilder(V1CSINodeFluent fluent) { this(fluent, new V1CSINode()); } - public V1CSINodeBuilder(V1CSINodeFluent fluent,V1CSINode instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSINodeBuilder(V1CSINode instance) { this.fluent = this; this.copyInstance(instance); } - V1CSINodeFluent fluent; + public V1CSINodeBuilder(V1CSINodeFluent fluent,V1CSINode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSINode build() { V1CSINode buildable = new V1CSINode(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1CSINode build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java index 37193ff54b..1e9155b027 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSINodeDriverBuilder extends V1CSINodeDriverFluent implements VisitableBuilder{ + + V1CSINodeDriverFluent fluent; + public V1CSINodeDriverBuilder() { this(new V1CSINodeDriver()); } @@ -10,17 +14,16 @@ public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent) { this(fluent, new V1CSINodeDriver()); } - public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent,V1CSINodeDriver instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSINodeDriverBuilder(V1CSINodeDriver instance) { this.fluent = this; this.copyInstance(instance); } - V1CSINodeDriverFluent fluent; + public V1CSINodeDriverBuilder(V1CSINodeDriverFluent fluent,V1CSINodeDriver instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSINodeDriver build() { V1CSINodeDriver buildable = new V1CSINodeDriver(); buildable.setAllocatable(fluent.buildAllocatable()); @@ -30,5 +33,4 @@ public V1CSINodeDriver build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java index c1a54158aa..54a8ee7884 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java @@ -1,170 +1,260 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSINodeDriverFluent> extends BaseFluent{ - public V1CSINodeDriverFluent() { - } - - public V1CSINodeDriverFluent(V1CSINodeDriver instance) { - this.copyInstance(instance); - } +public class V1CSINodeDriverFluent> extends BaseFluent{ + private V1VolumeNodeResourcesBuilder allocatable; private String name; private String nodeID; private List topologyKeys; - - protected void copyInstance(V1CSINodeDriver instance) { - instance = (instance != null ? instance : new V1CSINodeDriver()); - if (instance != null) { - this.withAllocatable(instance.getAllocatable()); - this.withName(instance.getName()); - this.withNodeID(instance.getNodeID()); - this.withTopologyKeys(instance.getTopologyKeys()); - } + + public V1CSINodeDriverFluent() { } - public V1VolumeNodeResources buildAllocatable() { - return this.allocatable != null ? this.allocatable.build() : null; + public V1CSINodeDriverFluent(V1CSINodeDriver instance) { + this.copyInstance(instance); + } + + public A addAllToTopologyKeys(Collection items) { + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } + for (String item : items) { + this.topologyKeys.add(item); + } + return (A) this; } - public A withAllocatable(V1VolumeNodeResources allocatable) { - this._visitables.remove("allocatable"); - if (allocatable != null) { - this.allocatable = new V1VolumeNodeResourcesBuilder(allocatable); - this._visitables.get("allocatable").add(this.allocatable); - } else { - this.allocatable = null; - this._visitables.get("allocatable").remove(this.allocatable); + public A addToTopologyKeys(String... items) { + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } + for (String item : items) { + this.topologyKeys.add(item); } return (A) this; } - public boolean hasAllocatable() { - return this.allocatable != null; + public A addToTopologyKeys(int index,String item) { + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } + this.topologyKeys.add(index, item); + return (A) this; } - public AllocatableNested withNewAllocatable() { - return new AllocatableNested(null); + public V1VolumeNodeResources buildAllocatable() { + return this.allocatable != null ? this.allocatable.build() : null; } - public AllocatableNested withNewAllocatableLike(V1VolumeNodeResources item) { - return new AllocatableNested(item); + protected void copyInstance(V1CSINodeDriver instance) { + instance = instance != null ? instance : new V1CSINodeDriver(); + if (instance != null) { + this.withAllocatable(instance.getAllocatable()); + this.withName(instance.getName()); + this.withNodeID(instance.getNodeID()); + this.withTopologyKeys(instance.getTopologyKeys()); + } } public AllocatableNested editAllocatable() { - return withNewAllocatableLike(java.util.Optional.ofNullable(buildAllocatable()).orElse(null)); + return this.withNewAllocatableLike(Optional.ofNullable(this.buildAllocatable()).orElse(null)); } public AllocatableNested editOrNewAllocatable() { - return withNewAllocatableLike(java.util.Optional.ofNullable(buildAllocatable()).orElse(new V1VolumeNodeResourcesBuilder().build())); + return this.withNewAllocatableLike(Optional.ofNullable(this.buildAllocatable()).orElse(new V1VolumeNodeResourcesBuilder().build())); } public AllocatableNested editOrNewAllocatableLike(V1VolumeNodeResources item) { - return withNewAllocatableLike(java.util.Optional.ofNullable(buildAllocatable()).orElse(item)); + return this.withNewAllocatableLike(Optional.ofNullable(this.buildAllocatable()).orElse(item)); } - public String getName() { - return this.name; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSINodeDriverFluent that = (V1CSINodeDriverFluent) o; + if (!(Objects.equals(allocatable, that.allocatable))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodeID, that.nodeID))) { + return false; + } + if (!(Objects.equals(topologyKeys, that.topologyKeys))) { + return false; + } + return true; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getFirstTopologyKey() { + return this.topologyKeys.get(0); } - public boolean hasName() { - return this.name != null; + public String getLastTopologyKey() { + return this.topologyKeys.get(topologyKeys.size() - 1); + } + + public String getMatchingTopologyKey(Predicate predicate) { + for (String item : topologyKeys) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getName() { + return this.name; } public String getNodeID() { return this.nodeID; } - public A withNodeID(String nodeID) { - this.nodeID = nodeID; - return (A) this; + public String getTopologyKey(int index) { + return this.topologyKeys.get(index); } - public boolean hasNodeID() { - return this.nodeID != null; + public List getTopologyKeys() { + return this.topologyKeys; } - public A addToTopologyKeys(int index,String item) { - if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} - this.topologyKeys.add(index, item); - return (A)this; + public boolean hasAllocatable() { + return this.allocatable != null; } - public A setToTopologyKeys(int index,String item) { - if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} - this.topologyKeys.set(index, item); return (A)this; + public boolean hasMatchingTopologyKey(Predicate predicate) { + for (String item : topologyKeys) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToTopologyKeys(java.lang.String... items) { - if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} - for (String item : items) {this.topologyKeys.add(item);} return (A)this; + public boolean hasName() { + return this.name != null; } - public A addAllToTopologyKeys(Collection items) { - if (this.topologyKeys == null) {this.topologyKeys = new ArrayList();} - for (String item : items) {this.topologyKeys.add(item);} return (A)this; + public boolean hasNodeID() { + return this.nodeID != null; } - public A removeFromTopologyKeys(java.lang.String... items) { - if (this.topologyKeys == null) return (A)this; - for (String item : items) { this.topologyKeys.remove(item);} return (A)this; + public boolean hasTopologyKeys() { + return this.topologyKeys != null && !(this.topologyKeys.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocatable, name, nodeID, topologyKeys); } public A removeAllFromTopologyKeys(Collection items) { - if (this.topologyKeys == null) return (A)this; - for (String item : items) { this.topologyKeys.remove(item);} return (A)this; + if (this.topologyKeys == null) { + return (A) this; + } + for (String item : items) { + this.topologyKeys.remove(item); + } + return (A) this; } - public List getTopologyKeys() { - return this.topologyKeys; + public A removeFromTopologyKeys(String... items) { + if (this.topologyKeys == null) { + return (A) this; + } + for (String item : items) { + this.topologyKeys.remove(item); + } + return (A) this; } - public String getTopologyKey(int index) { - return this.topologyKeys.get(index); + public A setToTopologyKeys(int index,String item) { + if (this.topologyKeys == null) { + this.topologyKeys = new ArrayList(); + } + this.topologyKeys.set(index, item); + return (A) this; } - public String getFirstTopologyKey() { - return this.topologyKeys.get(0); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocatable == null)) { + sb.append("allocatable:"); + sb.append(allocatable); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nodeID == null)) { + sb.append("nodeID:"); + sb.append(nodeID); + sb.append(","); + } + if (!(topologyKeys == null) && !(topologyKeys.isEmpty())) { + sb.append("topologyKeys:"); + sb.append(topologyKeys); + } + sb.append("}"); + return sb.toString(); } - public String getLastTopologyKey() { - return this.topologyKeys.get(topologyKeys.size() - 1); + public A withAllocatable(V1VolumeNodeResources allocatable) { + this._visitables.remove("allocatable"); + if (allocatable != null) { + this.allocatable = new V1VolumeNodeResourcesBuilder(allocatable); + this._visitables.get("allocatable").add(this.allocatable); + } else { + this.allocatable = null; + this._visitables.get("allocatable").remove(this.allocatable); + } + return (A) this; } - public String getMatchingTopologyKey(Predicate predicate) { - for (String item : topologyKeys) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withName(String name) { + this.name = name; + return (A) this; } - public boolean hasMatchingTopologyKey(Predicate predicate) { - for (String item : topologyKeys) { - if (predicate.test(item)) { - return true; - } - } - return false; + public AllocatableNested withNewAllocatable() { + return new AllocatableNested(null); + } + + public AllocatableNested withNewAllocatableLike(V1VolumeNodeResources item) { + return new AllocatableNested(item); + } + + public A withNodeID(String nodeID) { + this.nodeID = nodeID; + return (A) this; } public A withTopologyKeys(List topologyKeys) { @@ -179,7 +269,7 @@ public A withTopologyKeys(List topologyKeys) { return (A) this; } - public A withTopologyKeys(java.lang.String... topologyKeys) { + public A withTopologyKeys(String... topologyKeys) { if (this.topologyKeys != null) { this.topologyKeys.clear(); _visitables.remove("topologyKeys"); @@ -191,43 +281,14 @@ public A withTopologyKeys(java.lang.String... topologyKeys) { } return (A) this; } + public class AllocatableNested extends V1VolumeNodeResourcesFluent> implements Nested{ - public boolean hasTopologyKeys() { - return this.topologyKeys != null && !this.topologyKeys.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; - V1CSINodeDriverFluent that = (V1CSINodeDriverFluent) o; - if (!java.util.Objects.equals(allocatable, that.allocatable)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(nodeID, that.nodeID)) return false; - if (!java.util.Objects.equals(topologyKeys, that.topologyKeys)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(allocatable, name, nodeID, topologyKeys, super.hashCode()); - } + V1VolumeNodeResourcesBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (allocatable != null) { sb.append("allocatable:"); sb.append(allocatable + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (nodeID != null) { sb.append("nodeID:"); sb.append(nodeID + ","); } - if (topologyKeys != null && !topologyKeys.isEmpty()) { sb.append("topologyKeys:"); sb.append(topologyKeys); } - sb.append("}"); - return sb.toString(); - } - public class AllocatableNested extends V1VolumeNodeResourcesFluent> implements Nested{ AllocatableNested(V1VolumeNodeResources item) { this.builder = new V1VolumeNodeResourcesBuilder(this, item); } - V1VolumeNodeResourcesBuilder builder; - + public N and() { return (N) V1CSINodeDriverFluent.this.withAllocatable(builder.build()); } @@ -236,7 +297,5 @@ public N endAllocatable() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java index e2374be65e..7f4ebeccb9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSINodeFluent> extends BaseFluent{ +public class V1CSINodeFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1CSINodeSpecBuilder spec; + public V1CSINodeFluent() { } public V1CSINodeFluent(V1CSINode instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1CSINodeSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1CSINodeSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1CSINode instance) { - instance = (instance != null ? instance : new V1CSINode()); + instance = instance != null ? instance : new V1CSINode(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CSINodeSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1CSINodeSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSINodeFluent that = (V1CSINodeFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1CSINodeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1CSINodeSpec item) { + return new SpecNested(item); } public A withSpec(V1CSINodeSpec spec) { @@ -113,63 +198,14 @@ public A withSpec(V1CSINodeSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CSINodeSpec 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 V1CSINodeSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1CSINodeSpec 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; - V1CSINodeFluent that = (V1CSINodeFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1CSINodeFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CSINodeSpecFluent> implements Nested{ + + V1CSINodeSpecBuilder builder; + SpecNested(V1CSINodeSpec item) { this.builder = new V1CSINodeSpecBuilder(this, item); } - V1CSINodeSpecBuilder builder; - + public N and() { return (N) V1CSINodeFluent.this.withSpec(builder.build()); } @@ -194,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java index 3aa4c9a1fc..c6d876b0b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSINodeListBuilder extends V1CSINodeListFluent implements VisitableBuilder{ + + V1CSINodeListFluent fluent; + public V1CSINodeListBuilder() { this(new V1CSINodeList()); } @@ -10,17 +14,16 @@ public V1CSINodeListBuilder(V1CSINodeListFluent fluent) { this(fluent, new V1CSINodeList()); } - public V1CSINodeListBuilder(V1CSINodeListFluent fluent,V1CSINodeList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSINodeListBuilder(V1CSINodeList instance) { this.fluent = this; this.copyInstance(instance); } - V1CSINodeListFluent fluent; + public V1CSINodeListBuilder(V1CSINodeListFluent fluent,V1CSINodeList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSINodeList build() { V1CSINodeList buildable = new V1CSINodeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1CSINodeList build() { return buildable; } - } \ No newline at end of file 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..fde2c9078a 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSINodeListFluent> extends BaseFluent{ +public class V1CSINodeListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1CSINodeListFluent() { } public V1CSINodeListFluent(V1CSINodeList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CSINodeList instance) { - instance = (instance != null ? instance : new V1CSINodeList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1CSINode item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1CSINode... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1CSINode item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1CSINode buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1CSINode... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1CSINode buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSINode... items) { - if (this.items == null) return (A)this; - for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CSINode buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CSINode item : items) {V1CSINodeBuilder builder = new V1CSINodeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CSINode buildMatchingItem(Predicate predicate) { + for (V1CSINodeBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1CSINodeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1CSINodeList instance) { + instance = instance != null ? instance : new V1CSINodeList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1CSINode buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1CSINode buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CSINode buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSINodeListFluent that = (V1CSINodeListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1CSINode buildMatchingItem(Predicate predicate) { - for (V1CSINodeBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CSINode... items) { + if (this.items == null) { + return (A) this; + } + for (V1CSINode item : items) { + V1CSINodeBuilder builder = new V1CSINodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CSINodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CSINode item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CSINode... items) { + public A withItems(V1CSINode... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1CSINode... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CSINode item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CSINode 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1CSINodeFluent> implements Nested{ - 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; - V1CSINodeListFluent that = (V1CSINodeListFluent) 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()); - } + V1CSINodeBuilder builder; + int index; - 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 V1CSINodeFluent> implements Nested{ ItemsNested(int index,V1CSINode item) { this.index = index; this.builder = new V1CSINodeBuilder(this, item); } - V1CSINodeBuilder builder; - int index; - + public N and() { - return (N) V1CSINodeListFluent.this.setToItems(index,builder.build()); + return (N) V1CSINodeListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CSINodeListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java index 0a52e95229..6b22cf988e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSINodeSpecBuilder extends V1CSINodeSpecFluent implements VisitableBuilder{ + + V1CSINodeSpecFluent fluent; + public V1CSINodeSpecBuilder() { this(new V1CSINodeSpec()); } @@ -10,22 +14,20 @@ public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent) { this(fluent, new V1CSINodeSpec()); } - public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent,V1CSINodeSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSINodeSpecBuilder(V1CSINodeSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CSINodeSpecFluent fluent; + public V1CSINodeSpecBuilder(V1CSINodeSpecFluent fluent,V1CSINodeSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSINodeSpec build() { V1CSINodeSpec buildable = new V1CSINodeSpec(); buildable.setDrivers(fluent.buildDrivers()); return buildable; } - } \ No newline at end of file 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..7069268638 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 @@ -1,93 +1,89 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSINodeSpecFluent> extends BaseFluent{ +public class V1CSINodeSpecFluent> extends BaseFluent{ + + private ArrayList drivers; + public V1CSINodeSpecFluent() { } public V1CSINodeSpecFluent(V1CSINodeSpec instance) { this.copyInstance(instance); } - private ArrayList drivers; - - protected void copyInstance(V1CSINodeSpec instance) { - instance = (instance != null ? instance : new V1CSINodeSpec()); - if (instance != null) { - this.withDrivers(instance.getDrivers()); - } - } - - 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);} - 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);} - return (A)this; - } - - public A addToDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items) { - if (this.drivers == null) {this.drivers = new ArrayList();} - for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").add(builder);this.drivers.add(builder);} return (A)this; - } - + public A addAllToDrivers(Collection items) { - if (this.drivers == null) {this.drivers = new ArrayList();} - for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").add(builder);this.drivers.add(builder);} return (A)this; + if (this.drivers == null) { + this.drivers = new ArrayList(); + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").add(builder); + this.drivers.add(builder); + } + return (A) this; } - public A removeFromDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... items) { - if (this.drivers == null) return (A)this; - for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").remove(builder); this.drivers.remove(builder);} return (A)this; + public DriversNested addNewDriver() { + return new DriversNested(-1, null); } - public A removeAllFromDrivers(Collection items) { - if (this.drivers == null) return (A)this; - for (V1CSINodeDriver item : items) {V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item);_visitables.get("drivers").remove(builder); this.drivers.remove(builder);} return (A)this; + public DriversNested addNewDriverLike(V1CSINodeDriver item) { + return new DriversNested(-1, item); } - public A removeMatchingFromDrivers(Predicate predicate) { - if (drivers == null) return (A) this; - final Iterator each = drivers.iterator(); - final List visitables = _visitables.get("drivers"); - while (each.hasNext()) { - V1CSINodeDriverBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToDrivers(V1CSINodeDriver... items) { + if (this.drivers == null) { + this.drivers = new ArrayList(); + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").add(builder); + this.drivers.add(builder); } - return (A)this; + return (A) this; } - public List buildDrivers() { - return this.drivers != null ? build(drivers) : null; + 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(builder); + drivers.add(index, builder); + } + return (A) this; } public V1CSINodeDriver buildDriver(int index) { return this.drivers.get(index).build(); } + public List buildDrivers() { + return this.drivers != null ? build(drivers) : null; + } + public V1CSINodeDriver buildFirstDriver() { return this.drivers.get(0).build(); } @@ -105,6 +101,70 @@ public V1CSINodeDriver buildMatchingDriver(Predicate pre return null; } + protected void copyInstance(V1CSINodeSpec instance) { + instance = instance != null ? instance : new V1CSINodeSpec(); + if (instance != null) { + this.withDrivers(instance.getDrivers()); + } + } + + public DriversNested editDriver(int index) { + if (drivers.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "drivers")); + } + return this.setNewDriverLike(index, this.buildDriver(index)); + } + + public DriversNested editFirstDriver() { + if (drivers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "drivers")); + } + return this.setNewDriverLike(0, this.buildDriver(0)); + } + + public DriversNested editLastDriver() { + int index = drivers.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "drivers")); + } + return this.setNewDriverLike(index, this.buildDriver(index)); + } + + public DriversNested editMatchingDriver(Predicate predicate) { + int index = -1; + for (int i = 0;i < drivers.size();i++) { + if (predicate.test(drivers.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "drivers")); + } + return this.setNewDriverLike(index, this.buildDriver(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSINodeSpecFluent that = (V1CSINodeSpecFluent) o; + if (!(Objects.equals(drivers, that.drivers))) { + return false; + } + return true; + } + + public boolean hasDrivers() { + return this.drivers != null && !(this.drivers.isEmpty()); + } + public boolean hasMatchingDriver(Predicate predicate) { for (V1CSINodeDriverBuilder item : drivers) { if (predicate.test(item)) { @@ -114,6 +174,80 @@ public boolean hasMatchingDriver(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(drivers); + } + + public A removeAllFromDrivers(Collection items) { + if (this.drivers == null) { + return (A) this; + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").remove(builder); + this.drivers.remove(builder); + } + return (A) this; + } + + public A removeFromDrivers(V1CSINodeDriver... items) { + if (this.drivers == null) { + return (A) this; + } + for (V1CSINodeDriver item : items) { + V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); + _visitables.get("drivers").remove(builder); + this.drivers.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromDrivers(Predicate predicate) { + if (drivers == null) { + return (A) this; + } + Iterator each = drivers.iterator(); + List visitables = _visitables.get("drivers"); + while (each.hasNext()) { + V1CSINodeDriverBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public DriversNested setNewDriverLike(int index,V1CSINodeDriver item) { + return new DriversNested(index, item); + } + + 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").add(builder); + drivers.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(drivers == null) && !(drivers.isEmpty())) { + sb.append("drivers:"); + sb.append(drivers); + } + sb.append("}"); + return sb.toString(); + } + public A withDrivers(List drivers) { if (this.drivers != null) { this._visitables.get("drivers").clear(); @@ -129,7 +263,7 @@ public A withDrivers(List drivers) { return (A) this; } - public A withDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... drivers) { + public A withDrivers(V1CSINodeDriver... drivers) { if (this.drivers != null) { this.drivers.clear(); _visitables.remove("drivers"); @@ -141,85 +275,23 @@ public A withDrivers(io.kubernetes.client.openapi.models.V1CSINodeDriver... driv } return (A) this; } + public class DriversNested extends V1CSINodeDriverFluent> implements Nested{ - public boolean hasDrivers() { - return this.drivers != null && !this.drivers.isEmpty(); - } - - public DriversNested addNewDriver() { - return new DriversNested(-1, null); - } - - public DriversNested addNewDriverLike(V1CSINodeDriver item) { - return new DriversNested(-1, item); - } - - public DriversNested setNewDriverLike(int index,V1CSINodeDriver item) { - return new DriversNested(index, item); - } - - public DriversNested editDriver(int index) { - if (drivers.size() <= index) throw new RuntimeException("Can't edit drivers. Index exceeds size."); - return setNewDriverLike(index, buildDriver(index)); - } - - public DriversNested editFirstDriver() { - if (drivers.size() == 0) throw new RuntimeException("Can't edit first drivers. The list is empty."); - return setNewDriverLike(0, buildDriver(0)); - } - - public DriversNested editLastDriver() { - int index = drivers.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last drivers. The list is empty."); - return setNewDriverLike(index, buildDriver(index)); - } - - public DriversNested editMatchingDriver(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1CSINodeDriverFluent> implements Nested{ DriversNested(int index,V1CSINodeDriver item) { this.index = index; this.builder = new V1CSINodeDriverBuilder(this, item); } - V1CSINodeDriverBuilder builder; - int index; - + public N and() { - return (N) V1CSINodeSpecFluent.this.setToDrivers(index,builder.build()); + return (N) V1CSINodeSpecFluent.this.setToDrivers(index, builder.build()); } public N endDriver() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java index 601391a624..ddac693203 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIPersistentVolumeSourceBuilder extends V1CSIPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1CSIPersistentVolumeSourceFluent fluent; + public V1CSIPersistentVolumeSourceBuilder() { this(new V1CSIPersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent f this(fluent, new V1CSIPersistentVolumeSource()); } - public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent fluent,V1CSIPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIPersistentVolumeSourceFluent fluent; + public V1CSIPersistentVolumeSourceBuilder(V1CSIPersistentVolumeSourceFluent fluent,V1CSIPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIPersistentVolumeSource build() { V1CSIPersistentVolumeSource buildable = new V1CSIPersistentVolumeSource(); buildable.setControllerExpandSecretRef(fluent.buildControllerExpandSecretRef()); @@ -36,5 +39,4 @@ public V1CSIPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java index d6d0f81f42..22868a7c75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java @@ -1,25 +1,23 @@ 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.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIPersistentVolumeSourceFluent> extends BaseFluent{ - public V1CSIPersistentVolumeSourceFluent() { - } - - public V1CSIPersistentVolumeSourceFluent(V1CSIPersistentVolumeSource instance) { - this.copyInstance(instance); - } +public class V1CSIPersistentVolumeSourceFluent> extends BaseFluent{ + private V1SecretReferenceBuilder controllerExpandSecretRef; private V1SecretReferenceBuilder controllerPublishSecretRef; private String driver; @@ -30,360 +28,458 @@ public V1CSIPersistentVolumeSourceFluent(V1CSIPersistentVolumeSource instance) { private Boolean readOnly; private Map volumeAttributes; private String volumeHandle; - - protected void copyInstance(V1CSIPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1CSIPersistentVolumeSource()); - if (instance != null) { - this.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); - this.withControllerPublishSecretRef(instance.getControllerPublishSecretRef()); - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withNodeExpandSecretRef(instance.getNodeExpandSecretRef()); - this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); - this.withNodeStageSecretRef(instance.getNodeStageSecretRef()); - this.withReadOnly(instance.getReadOnly()); - this.withVolumeAttributes(instance.getVolumeAttributes()); - this.withVolumeHandle(instance.getVolumeHandle()); - } + + public V1CSIPersistentVolumeSourceFluent() { } - public V1SecretReference buildControllerExpandSecretRef() { - return this.controllerExpandSecretRef != null ? this.controllerExpandSecretRef.build() : null; + public V1CSIPersistentVolumeSourceFluent(V1CSIPersistentVolumeSource instance) { + this.copyInstance(instance); + } + + public A addToVolumeAttributes(Map map) { + if (this.volumeAttributes == null && map != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (map != null) { + this.volumeAttributes.putAll(map); + } + return (A) this; } - public A withControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { - this._visitables.remove("controllerExpandSecretRef"); - if (controllerExpandSecretRef != null) { - this.controllerExpandSecretRef = new V1SecretReferenceBuilder(controllerExpandSecretRef); - this._visitables.get("controllerExpandSecretRef").add(this.controllerExpandSecretRef); - } else { - this.controllerExpandSecretRef = null; - this._visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); + public A addToVolumeAttributes(String key,String value) { + if (this.volumeAttributes == null && key != null && value != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (key != null && value != null) { + this.volumeAttributes.put(key, value); } return (A) this; } - public boolean hasControllerExpandSecretRef() { - return this.controllerExpandSecretRef != null; + public V1SecretReference buildControllerExpandSecretRef() { + return this.controllerExpandSecretRef != null ? this.controllerExpandSecretRef.build() : null; } - public ControllerExpandSecretRefNested withNewControllerExpandSecretRef() { - return new ControllerExpandSecretRefNested(null); + public V1SecretReference buildControllerPublishSecretRef() { + return this.controllerPublishSecretRef != null ? this.controllerPublishSecretRef.build() : null; } - public ControllerExpandSecretRefNested withNewControllerExpandSecretRefLike(V1SecretReference item) { - return new ControllerExpandSecretRefNested(item); + public V1SecretReference buildNodeExpandSecretRef() { + return this.nodeExpandSecretRef != null ? this.nodeExpandSecretRef.build() : null; } - public ControllerExpandSecretRefNested editControllerExpandSecretRef() { - return withNewControllerExpandSecretRefLike(java.util.Optional.ofNullable(buildControllerExpandSecretRef()).orElse(null)); + public V1SecretReference buildNodePublishSecretRef() { + return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; } - public ControllerExpandSecretRefNested editOrNewControllerExpandSecretRef() { - return withNewControllerExpandSecretRefLike(java.util.Optional.ofNullable(buildControllerExpandSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public V1SecretReference buildNodeStageSecretRef() { + return this.nodeStageSecretRef != null ? this.nodeStageSecretRef.build() : null; } - public ControllerExpandSecretRefNested editOrNewControllerExpandSecretRefLike(V1SecretReference item) { - return withNewControllerExpandSecretRefLike(java.util.Optional.ofNullable(buildControllerExpandSecretRef()).orElse(item)); + protected void copyInstance(V1CSIPersistentVolumeSource instance) { + instance = instance != null ? instance : new V1CSIPersistentVolumeSource(); + if (instance != null) { + this.withControllerExpandSecretRef(instance.getControllerExpandSecretRef()); + this.withControllerPublishSecretRef(instance.getControllerPublishSecretRef()); + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withNodeExpandSecretRef(instance.getNodeExpandSecretRef()); + this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); + this.withNodeStageSecretRef(instance.getNodeStageSecretRef()); + this.withReadOnly(instance.getReadOnly()); + this.withVolumeAttributes(instance.getVolumeAttributes()); + this.withVolumeHandle(instance.getVolumeHandle()); + } } - public V1SecretReference buildControllerPublishSecretRef() { - return this.controllerPublishSecretRef != null ? this.controllerPublishSecretRef.build() : null; + public ControllerExpandSecretRefNested editControllerExpandSecretRef() { + return this.withNewControllerExpandSecretRefLike(Optional.ofNullable(this.buildControllerExpandSecretRef()).orElse(null)); } - public A withControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { - this._visitables.remove("controllerPublishSecretRef"); - if (controllerPublishSecretRef != null) { - this.controllerPublishSecretRef = new V1SecretReferenceBuilder(controllerPublishSecretRef); - this._visitables.get("controllerPublishSecretRef").add(this.controllerPublishSecretRef); - } else { - this.controllerPublishSecretRef = null; - this._visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); - } - return (A) this; + public ControllerPublishSecretRefNested editControllerPublishSecretRef() { + return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(null)); } - public boolean hasControllerPublishSecretRef() { - return this.controllerPublishSecretRef != null; + public NodeExpandSecretRefNested editNodeExpandSecretRef() { + return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(null)); } - public ControllerPublishSecretRefNested withNewControllerPublishSecretRef() { - return new ControllerPublishSecretRefNested(null); + public NodePublishSecretRefNested editNodePublishSecretRef() { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(null)); } - public ControllerPublishSecretRefNested withNewControllerPublishSecretRefLike(V1SecretReference item) { - return new ControllerPublishSecretRefNested(item); + public NodeStageSecretRefNested editNodeStageSecretRef() { + return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(null)); } - public ControllerPublishSecretRefNested editControllerPublishSecretRef() { - return withNewControllerPublishSecretRefLike(java.util.Optional.ofNullable(buildControllerPublishSecretRef()).orElse(null)); + public ControllerExpandSecretRefNested editOrNewControllerExpandSecretRef() { + return this.withNewControllerExpandSecretRefLike(Optional.ofNullable(this.buildControllerExpandSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + } + + public ControllerExpandSecretRefNested editOrNewControllerExpandSecretRefLike(V1SecretReference item) { + return this.withNewControllerExpandSecretRefLike(Optional.ofNullable(this.buildControllerExpandSecretRef()).orElse(item)); } public ControllerPublishSecretRefNested editOrNewControllerPublishSecretRef() { - return withNewControllerPublishSecretRefLike(java.util.Optional.ofNullable(buildControllerPublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } public ControllerPublishSecretRefNested editOrNewControllerPublishSecretRefLike(V1SecretReference item) { - return withNewControllerPublishSecretRefLike(java.util.Optional.ofNullable(buildControllerPublishSecretRef()).orElse(item)); + return this.withNewControllerPublishSecretRefLike(Optional.ofNullable(this.buildControllerPublishSecretRef()).orElse(item)); } - public String getDriver() { - return this.driver; + public NodeExpandSecretRefNested editOrNewNodeExpandSecretRef() { + return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public A withDriver(String driver) { - this.driver = driver; - return (A) this; + public NodeExpandSecretRefNested editOrNewNodeExpandSecretRefLike(V1SecretReference item) { + return this.withNewNodeExpandSecretRefLike(Optional.ofNullable(this.buildNodeExpandSecretRef()).orElse(item)); } - public boolean hasDriver() { - return this.driver != null; + public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public String getFsType() { - return this.fsType; + public NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1SecretReference item) { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(item)); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public NodeStageSecretRefNested editOrNewNodeStageSecretRef() { + return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public boolean hasFsType() { - return this.fsType != null; + public NodeStageSecretRefNested editOrNewNodeStageSecretRefLike(V1SecretReference item) { + return this.withNewNodeStageSecretRefLike(Optional.ofNullable(this.buildNodeStageSecretRef()).orElse(item)); } - public V1SecretReference buildNodeExpandSecretRef() { - return this.nodeExpandSecretRef != null ? this.nodeExpandSecretRef.build() : null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSIPersistentVolumeSourceFluent that = (V1CSIPersistentVolumeSourceFluent) o; + if (!(Objects.equals(controllerExpandSecretRef, that.controllerExpandSecretRef))) { + return false; + } + if (!(Objects.equals(controllerPublishSecretRef, that.controllerPublishSecretRef))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(nodeExpandSecretRef, that.nodeExpandSecretRef))) { + return false; + } + if (!(Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef))) { + return false; + } + if (!(Objects.equals(nodeStageSecretRef, that.nodeStageSecretRef))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(volumeAttributes, that.volumeAttributes))) { + return false; + } + if (!(Objects.equals(volumeHandle, that.volumeHandle))) { + return false; + } + return true; } - public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { - this._visitables.remove("nodeExpandSecretRef"); - if (nodeExpandSecretRef != null) { - this.nodeExpandSecretRef = new V1SecretReferenceBuilder(nodeExpandSecretRef); - this._visitables.get("nodeExpandSecretRef").add(this.nodeExpandSecretRef); - } else { - this.nodeExpandSecretRef = null; - this._visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); - } - return (A) this; + public String getDriver() { + return this.driver; } - public boolean hasNodeExpandSecretRef() { - return this.nodeExpandSecretRef != null; + public String getFsType() { + return this.fsType; } - public NodeExpandSecretRefNested withNewNodeExpandSecretRef() { - return new NodeExpandSecretRefNested(null); + public Boolean getReadOnly() { + return this.readOnly; } - public NodeExpandSecretRefNested withNewNodeExpandSecretRefLike(V1SecretReference item) { - return new NodeExpandSecretRefNested(item); + public Map getVolumeAttributes() { + return this.volumeAttributes; } - public NodeExpandSecretRefNested editNodeExpandSecretRef() { - return withNewNodeExpandSecretRefLike(java.util.Optional.ofNullable(buildNodeExpandSecretRef()).orElse(null)); + public String getVolumeHandle() { + return this.volumeHandle; } - public NodeExpandSecretRefNested editOrNewNodeExpandSecretRef() { - return withNewNodeExpandSecretRefLike(java.util.Optional.ofNullable(buildNodeExpandSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public boolean hasControllerExpandSecretRef() { + return this.controllerExpandSecretRef != null; } - public NodeExpandSecretRefNested editOrNewNodeExpandSecretRefLike(V1SecretReference item) { - return withNewNodeExpandSecretRefLike(java.util.Optional.ofNullable(buildNodeExpandSecretRef()).orElse(item)); + public boolean hasControllerPublishSecretRef() { + return this.controllerPublishSecretRef != null; } - public V1SecretReference buildNodePublishSecretRef() { - return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; + public boolean hasDriver() { + return this.driver != null; } - public A withNodePublishSecretRef(V1SecretReference nodePublishSecretRef) { - this._visitables.remove("nodePublishSecretRef"); - if (nodePublishSecretRef != null) { - this.nodePublishSecretRef = new V1SecretReferenceBuilder(nodePublishSecretRef); - this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); - } else { - this.nodePublishSecretRef = null; - this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); - } - return (A) this; + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasNodeExpandSecretRef() { + return this.nodeExpandSecretRef != null; } public boolean hasNodePublishSecretRef() { return this.nodePublishSecretRef != null; } - public NodePublishSecretRefNested withNewNodePublishSecretRef() { - return new NodePublishSecretRefNested(null); + public boolean hasNodeStageSecretRef() { + return this.nodeStageSecretRef != null; } - public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1SecretReference item) { - return new NodePublishSecretRefNested(item); + public boolean hasReadOnly() { + return this.readOnly != null; } - public NodePublishSecretRefNested editNodePublishSecretRef() { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(null)); + public boolean hasVolumeAttributes() { + return this.volumeAttributes != null; } - public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public boolean hasVolumeHandle() { + return this.volumeHandle != null; } - public NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1SecretReference item) { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(item)); + public int hashCode() { + return Objects.hash(controllerExpandSecretRef, controllerPublishSecretRef, driver, fsType, nodeExpandSecretRef, nodePublishSecretRef, nodeStageSecretRef, readOnly, volumeAttributes, volumeHandle); } - public V1SecretReference buildNodeStageSecretRef() { - return this.nodeStageSecretRef != null ? this.nodeStageSecretRef.build() : null; + public A removeFromVolumeAttributes(String key) { + if (this.volumeAttributes == null) { + return (A) this; + } + if (key != null && this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + return (A) this; } - public A withNodeStageSecretRef(V1SecretReference nodeStageSecretRef) { - this._visitables.remove("nodeStageSecretRef"); - if (nodeStageSecretRef != null) { - this.nodeStageSecretRef = new V1SecretReferenceBuilder(nodeStageSecretRef); - this._visitables.get("nodeStageSecretRef").add(this.nodeStageSecretRef); - } else { - this.nodeStageSecretRef = null; - this._visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); + public A removeFromVolumeAttributes(Map map) { + if (this.volumeAttributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + } } return (A) this; } - public boolean hasNodeStageSecretRef() { - return this.nodeStageSecretRef != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(controllerExpandSecretRef == null)) { + sb.append("controllerExpandSecretRef:"); + sb.append(controllerExpandSecretRef); + sb.append(","); + } + if (!(controllerPublishSecretRef == null)) { + sb.append("controllerPublishSecretRef:"); + sb.append(controllerPublishSecretRef); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(nodeExpandSecretRef == null)) { + sb.append("nodeExpandSecretRef:"); + sb.append(nodeExpandSecretRef); + sb.append(","); + } + if (!(nodePublishSecretRef == null)) { + sb.append("nodePublishSecretRef:"); + sb.append(nodePublishSecretRef); + sb.append(","); + } + if (!(nodeStageSecretRef == null)) { + sb.append("nodeStageSecretRef:"); + sb.append(nodeStageSecretRef); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(volumeAttributes == null) && !(volumeAttributes.isEmpty())) { + sb.append("volumeAttributes:"); + sb.append(volumeAttributes); + sb.append(","); + } + if (!(volumeHandle == null)) { + sb.append("volumeHandle:"); + sb.append(volumeHandle); + } + sb.append("}"); + return sb.toString(); } - public NodeStageSecretRefNested withNewNodeStageSecretRef() { - return new NodeStageSecretRefNested(null); + public A withControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { + this._visitables.remove("controllerExpandSecretRef"); + if (controllerExpandSecretRef != null) { + this.controllerExpandSecretRef = new V1SecretReferenceBuilder(controllerExpandSecretRef); + this._visitables.get("controllerExpandSecretRef").add(this.controllerExpandSecretRef); + } else { + this.controllerExpandSecretRef = null; + this._visitables.get("controllerExpandSecretRef").remove(this.controllerExpandSecretRef); + } + return (A) this; } - public NodeStageSecretRefNested withNewNodeStageSecretRefLike(V1SecretReference item) { - return new NodeStageSecretRefNested(item); + public A withControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { + this._visitables.remove("controllerPublishSecretRef"); + if (controllerPublishSecretRef != null) { + this.controllerPublishSecretRef = new V1SecretReferenceBuilder(controllerPublishSecretRef); + this._visitables.get("controllerPublishSecretRef").add(this.controllerPublishSecretRef); + } else { + this.controllerPublishSecretRef = null; + this._visitables.get("controllerPublishSecretRef").remove(this.controllerPublishSecretRef); + } + return (A) this; } - public NodeStageSecretRefNested editNodeStageSecretRef() { - return withNewNodeStageSecretRefLike(java.util.Optional.ofNullable(buildNodeStageSecretRef()).orElse(null)); + public A withDriver(String driver) { + this.driver = driver; + return (A) this; } - public NodeStageSecretRefNested editOrNewNodeStageSecretRef() { - return withNewNodeStageSecretRefLike(java.util.Optional.ofNullable(buildNodeStageSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public NodeStageSecretRefNested editOrNewNodeStageSecretRefLike(V1SecretReference item) { - return withNewNodeStageSecretRefLike(java.util.Optional.ofNullable(buildNodeStageSecretRef()).orElse(item)); + public ControllerExpandSecretRefNested withNewControllerExpandSecretRef() { + return new ControllerExpandSecretRefNested(null); } - public Boolean getReadOnly() { - return this.readOnly; + public ControllerExpandSecretRefNested withNewControllerExpandSecretRefLike(V1SecretReference item) { + return new ControllerExpandSecretRefNested(item); } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public ControllerPublishSecretRefNested withNewControllerPublishSecretRef() { + return new ControllerPublishSecretRefNested(null); } - public boolean hasReadOnly() { - return this.readOnly != null; + public ControllerPublishSecretRefNested withNewControllerPublishSecretRefLike(V1SecretReference item) { + return new ControllerPublishSecretRefNested(item); } - public A addToVolumeAttributes(String key,String value) { - if(this.volumeAttributes == null && key != null && value != null) { this.volumeAttributes = new LinkedHashMap(); } - if(key != null && value != null) {this.volumeAttributes.put(key, value);} return (A)this; + public NodeExpandSecretRefNested withNewNodeExpandSecretRef() { + return new NodeExpandSecretRefNested(null); } - public A addToVolumeAttributes(Map map) { - if(this.volumeAttributes == null && map != null) { this.volumeAttributes = new LinkedHashMap(); } - if(map != null) { this.volumeAttributes.putAll(map);} return (A)this; + public NodeExpandSecretRefNested withNewNodeExpandSecretRefLike(V1SecretReference item) { + return new NodeExpandSecretRefNested(item); } - public A removeFromVolumeAttributes(String key) { - if(this.volumeAttributes == null) { return (A) this; } - if(key != null && this.volumeAttributes != null) {this.volumeAttributes.remove(key);} return (A)this; + public NodePublishSecretRefNested withNewNodePublishSecretRef() { + return new NodePublishSecretRefNested(null); } - public A removeFromVolumeAttributes(Map map) { - if(this.volumeAttributes == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.volumeAttributes != null){this.volumeAttributes.remove(key);}}} return (A)this; + public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1SecretReference item) { + return new NodePublishSecretRefNested(item); } - public Map getVolumeAttributes() { - return this.volumeAttributes; + public NodeStageSecretRefNested withNewNodeStageSecretRef() { + return new NodeStageSecretRefNested(null); } - public A withVolumeAttributes(Map volumeAttributes) { - if (volumeAttributes == null) { - this.volumeAttributes = null; + public NodeStageSecretRefNested withNewNodeStageSecretRefLike(V1SecretReference item) { + return new NodeStageSecretRefNested(item); + } + + public A withNodeExpandSecretRef(V1SecretReference nodeExpandSecretRef) { + this._visitables.remove("nodeExpandSecretRef"); + if (nodeExpandSecretRef != null) { + this.nodeExpandSecretRef = new V1SecretReferenceBuilder(nodeExpandSecretRef); + this._visitables.get("nodeExpandSecretRef").add(this.nodeExpandSecretRef); } else { - this.volumeAttributes = new LinkedHashMap(volumeAttributes); + this.nodeExpandSecretRef = null; + this._visitables.get("nodeExpandSecretRef").remove(this.nodeExpandSecretRef); } return (A) this; } - public boolean hasVolumeAttributes() { - return this.volumeAttributes != null; - } - - public String getVolumeHandle() { - return this.volumeHandle; - } - - public A withVolumeHandle(String volumeHandle) { - this.volumeHandle = volumeHandle; + public A withNodePublishSecretRef(V1SecretReference nodePublishSecretRef) { + this._visitables.remove("nodePublishSecretRef"); + if (nodePublishSecretRef != null) { + this.nodePublishSecretRef = new V1SecretReferenceBuilder(nodePublishSecretRef); + this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); + } else { + this.nodePublishSecretRef = null; + this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); + } return (A) this; } - public boolean hasVolumeHandle() { - return this.volumeHandle != null; + public A withNodeStageSecretRef(V1SecretReference nodeStageSecretRef) { + this._visitables.remove("nodeStageSecretRef"); + if (nodeStageSecretRef != null) { + this.nodeStageSecretRef = new V1SecretReferenceBuilder(nodeStageSecretRef); + this._visitables.get("nodeStageSecretRef").add(this.nodeStageSecretRef); + } else { + this.nodeStageSecretRef = null; + this._visitables.get("nodeStageSecretRef").remove(this.nodeStageSecretRef); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1CSIPersistentVolumeSourceFluent that = (V1CSIPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(controllerExpandSecretRef, that.controllerExpandSecretRef)) return false; - if (!java.util.Objects.equals(controllerPublishSecretRef, that.controllerPublishSecretRef)) return false; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(nodeExpandSecretRef, that.nodeExpandSecretRef)) return false; - if (!java.util.Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef)) return false; - if (!java.util.Objects.equals(nodeStageSecretRef, that.nodeStageSecretRef)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(volumeAttributes, that.volumeAttributes)) return false; - if (!java.util.Objects.equals(volumeHandle, that.volumeHandle)) return false; - return true; + public A withReadOnly() { + return withReadOnly(true); } - public int hashCode() { - return java.util.Objects.hash(controllerExpandSecretRef, controllerPublishSecretRef, driver, fsType, nodeExpandSecretRef, nodePublishSecretRef, nodeStageSecretRef, readOnly, volumeAttributes, volumeHandle, super.hashCode()); + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (controllerExpandSecretRef != null) { sb.append("controllerExpandSecretRef:"); sb.append(controllerExpandSecretRef + ","); } - if (controllerPublishSecretRef != null) { sb.append("controllerPublishSecretRef:"); sb.append(controllerPublishSecretRef + ","); } - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (nodeExpandSecretRef != null) { sb.append("nodeExpandSecretRef:"); sb.append(nodeExpandSecretRef + ","); } - if (nodePublishSecretRef != null) { sb.append("nodePublishSecretRef:"); sb.append(nodePublishSecretRef + ","); } - if (nodeStageSecretRef != null) { sb.append("nodeStageSecretRef:"); sb.append(nodeStageSecretRef + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (volumeAttributes != null && !volumeAttributes.isEmpty()) { sb.append("volumeAttributes:"); sb.append(volumeAttributes + ","); } - if (volumeHandle != null) { sb.append("volumeHandle:"); sb.append(volumeHandle); } - sb.append("}"); - return sb.toString(); + public A withVolumeAttributes(Map volumeAttributes) { + if (volumeAttributes == null) { + this.volumeAttributes = null; + } else { + this.volumeAttributes = new LinkedHashMap(volumeAttributes); + } + return (A) this; } - public A withReadOnly() { - return withReadOnly(true); + public A withVolumeHandle(String volumeHandle) { + this.volumeHandle = volumeHandle; + return (A) this; } public class ControllerExpandSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + ControllerExpandSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withControllerExpandSecretRef(builder.build()); } @@ -392,14 +488,15 @@ public N endControllerExpandSecretRef() { return and(); } - } public class ControllerPublishSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + ControllerPublishSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withControllerPublishSecretRef(builder.build()); } @@ -408,14 +505,15 @@ public N endControllerPublishSecretRef() { return and(); } - } public class NodeExpandSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + NodeExpandSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withNodeExpandSecretRef(builder.build()); } @@ -424,14 +522,15 @@ public N endNodeExpandSecretRef() { return and(); } - } public class NodePublishSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + NodePublishSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withNodePublishSecretRef(builder.build()); } @@ -440,14 +539,15 @@ public N endNodePublishSecretRef() { return and(); } - } public class NodeStageSecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + NodeStageSecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CSIPersistentVolumeSourceFluent.this.withNodeStageSecretRef(builder.build()); } @@ -456,7 +556,5 @@ public N endNodeStageSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java index 868663f6aa..cd8f166db9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIStorageCapacityBuilder extends V1CSIStorageCapacityFluent implements VisitableBuilder{ + + V1CSIStorageCapacityFluent fluent; + public V1CSIStorageCapacityBuilder() { this(new V1CSIStorageCapacity()); } @@ -10,17 +14,16 @@ public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent) { this(fluent, new V1CSIStorageCapacity()); } - public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent,V1CSIStorageCapacity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIStorageCapacityBuilder(V1CSIStorageCapacity instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIStorageCapacityFluent fluent; + public V1CSIStorageCapacityBuilder(V1CSIStorageCapacityFluent fluent,V1CSIStorageCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIStorageCapacity build() { V1CSIStorageCapacity buildable = new V1CSIStorageCapacity(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +36,4 @@ public V1CSIStorageCapacity build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java index 5ea78d6e7a..190ec9f0b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java @@ -1,23 +1,21 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; import io.kubernetes.client.custom.Quantity; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIStorageCapacityFluent> extends BaseFluent{ - public V1CSIStorageCapacityFluent() { - } - - public V1CSIStorageCapacityFluent(V1CSIStorageCapacity instance) { - this.copyInstance(instance); - } +public class V1CSIStorageCapacityFluent> extends BaseFluent{ + private String apiVersion; private Quantity capacity; private String kind; @@ -25,82 +23,205 @@ public V1CSIStorageCapacityFluent(V1CSIStorageCapacity instance) { private V1ObjectMetaBuilder metadata; private V1LabelSelectorBuilder nodeTopology; private String storageClassName; + + public V1CSIStorageCapacityFluent() { + } + + public V1CSIStorageCapacityFluent(V1CSIStorageCapacity instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1LabelSelector buildNodeTopology() { + return this.nodeTopology != null ? this.nodeTopology.build() : null; + } protected void copyInstance(V1CSIStorageCapacity instance) { - instance = (instance != null ? instance : new V1CSIStorageCapacity()); + instance = instance != null ? instance : new V1CSIStorageCapacity(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withCapacity(instance.getCapacity()); - this.withKind(instance.getKind()); - this.withMaximumVolumeSize(instance.getMaximumVolumeSize()); - this.withMetadata(instance.getMetadata()); - this.withNodeTopology(instance.getNodeTopology()); - this.withStorageClassName(instance.getStorageClassName()); - } + this.withApiVersion(instance.getApiVersion()); + this.withCapacity(instance.getCapacity()); + this.withKind(instance.getKind()); + this.withMaximumVolumeSize(instance.getMaximumVolumeSize()); + this.withMetadata(instance.getMetadata()); + this.withNodeTopology(instance.getNodeTopology()); + this.withStorageClassName(instance.getStorageClassName()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public NodeTopologyNested editNodeTopology() { + return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(null)); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public Quantity getCapacity() { - return this.capacity; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public A withCapacity(Quantity capacity) { - this.capacity = capacity; - return (A) this; + public NodeTopologyNested editOrNewNodeTopology() { + return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(new V1LabelSelectorBuilder().build())); } - public boolean hasCapacity() { - return this.capacity != null; + public NodeTopologyNested editOrNewNodeTopologyLike(V1LabelSelector item) { + return this.withNewNodeTopologyLike(Optional.ofNullable(this.buildNodeTopology()).orElse(item)); } - public A withNewCapacity(String value) { - return (A)withCapacity(new Quantity(value)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSIStorageCapacityFluent that = (V1CSIStorageCapacityFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(maximumVolumeSize, that.maximumVolumeSize))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(nodeTopology, that.nodeTopology))) { + return false; + } + if (!(Objects.equals(storageClassName, that.storageClassName))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public Quantity getCapacity() { + return this.capacity; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public Quantity getMaximumVolumeSize() { + return this.maximumVolumeSize; + } + + public String getStorageClassName() { + return this.storageClassName; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasCapacity() { + return this.capacity != null; } public boolean hasKind() { return this.kind != null; } - public Quantity getMaximumVolumeSize() { - return this.maximumVolumeSize; + public boolean hasMaximumVolumeSize() { + return this.maximumVolumeSize != null; } - public A withMaximumVolumeSize(Quantity maximumVolumeSize) { - this.maximumVolumeSize = maximumVolumeSize; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasNodeTopology() { + return this.nodeTopology != null; + } + + public boolean hasStorageClassName() { + return this.storageClassName != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, capacity, kind, maximumVolumeSize, metadata, nodeTopology, storageClassName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(maximumVolumeSize == null)) { + sb.append("maximumVolumeSize:"); + sb.append(maximumVolumeSize); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(nodeTopology == null)) { + sb.append("nodeTopology:"); + sb.append(nodeTopology); + sb.append(","); + } + if (!(storageClassName == null)) { + sb.append("storageClassName:"); + sb.append(storageClassName); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; return (A) this; } - public boolean hasMaximumVolumeSize() { - return this.maximumVolumeSize != null; + public A withCapacity(Quantity capacity) { + this.capacity = capacity; + return (A) this; } - public A withNewMaximumVolumeSize(String value) { - return (A)withMaximumVolumeSize(new Quantity(value)); + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public A withMaximumVolumeSize(Quantity maximumVolumeSize) { + this.maximumVolumeSize = maximumVolumeSize; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -115,8 +236,12 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; + public A withNewCapacity(String value) { + return (A) this.withCapacity(new Quantity(value)); + } + + public A withNewMaximumVolumeSize(String value) { + return (A) this.withMaximumVolumeSize(new Quantity(value)); } public MetadataNested withNewMetadata() { @@ -127,20 +252,12 @@ 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 NodeTopologyNested withNewNodeTopology() { + return new NodeTopologyNested(null); } - public V1LabelSelector buildNodeTopology() { - return this.nodeTopology != null ? this.nodeTopology.build() : null; + public NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item) { + return new NodeTopologyNested(item); } public A withNodeTopology(V1LabelSelector nodeTopology) { @@ -155,81 +272,18 @@ public A withNodeTopology(V1LabelSelector nodeTopology) { return (A) this; } - public boolean hasNodeTopology() { - return this.nodeTopology != null; - } - - public NodeTopologyNested withNewNodeTopology() { - return new NodeTopologyNested(null); - } - - public NodeTopologyNested withNewNodeTopologyLike(V1LabelSelector item) { - return new NodeTopologyNested(item); - } - - public NodeTopologyNested editNodeTopology() { - return withNewNodeTopologyLike(java.util.Optional.ofNullable(buildNodeTopology()).orElse(null)); - } - - public NodeTopologyNested editOrNewNodeTopology() { - return withNewNodeTopologyLike(java.util.Optional.ofNullable(buildNodeTopology()).orElse(new V1LabelSelectorBuilder().build())); - } - - public NodeTopologyNested editOrNewNodeTopologyLike(V1LabelSelector item) { - return withNewNodeTopologyLike(java.util.Optional.ofNullable(buildNodeTopology()).orElse(item)); - } - - public String getStorageClassName() { - return this.storageClassName; - } - public A withStorageClassName(String storageClassName) { this.storageClassName = storageClassName; return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStorageClassName() { - return this.storageClassName != 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; - V1CSIStorageCapacityFluent that = (V1CSIStorageCapacityFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(capacity, that.capacity)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(maximumVolumeSize, that.maximumVolumeSize)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(nodeTopology, that.nodeTopology)) return false; - if (!java.util.Objects.equals(storageClassName, that.storageClassName)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, capacity, kind, maximumVolumeSize, metadata, nodeTopology, storageClassName, super.hashCode()); - } + V1ObjectMetaBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (capacity != null) { sb.append("capacity:"); sb.append(capacity + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (maximumVolumeSize != null) { sb.append("maximumVolumeSize:"); sb.append(maximumVolumeSize + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (nodeTopology != null) { sb.append("nodeTopology:"); sb.append(nodeTopology + ","); } - if (storageClassName != null) { sb.append("storageClassName:"); sb.append(storageClassName); } - 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) V1CSIStorageCapacityFluent.this.withMetadata(builder.build()); } @@ -238,14 +292,15 @@ public N endMetadata() { return and(); } - } public class NodeTopologyNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NodeTopologyNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1CSIStorageCapacityFluent.this.withNodeTopology(builder.build()); } @@ -254,7 +309,5 @@ public N endNodeTopology() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java index d160837dcc..8b09cc112a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIStorageCapacityListBuilder extends V1CSIStorageCapacityListFluent implements VisitableBuilder{ + + V1CSIStorageCapacityListFluent fluent; + public V1CSIStorageCapacityListBuilder() { this(new V1CSIStorageCapacityList()); } @@ -10,17 +14,16 @@ public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent) this(fluent, new V1CSIStorageCapacityList()); } - public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent,V1CSIStorageCapacityList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityList instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIStorageCapacityListFluent fluent; + public V1CSIStorageCapacityListBuilder(V1CSIStorageCapacityListFluent fluent,V1CSIStorageCapacityList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIStorageCapacityList build() { V1CSIStorageCapacityList buildable = new V1CSIStorageCapacityList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1CSIStorageCapacityList build() { return buildable; } - } \ No newline at end of file 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..4a937c95e7 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIStorageCapacityListFluent> extends BaseFluent{ +public class V1CSIStorageCapacityListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1CSIStorageCapacityListFluent() { } public V1CSIStorageCapacityListFluent(V1CSIStorageCapacityList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CSIStorageCapacityList instance) { - instance = (instance != null ? instance : new V1CSIStorageCapacityList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1CSIStorageCapacity item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1CSIStorageCapacity... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1CSIStorageCapacity item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1CSIStorageCapacity buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1CSIStorageCapacity buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { - if (this.items == null) return (A)this; - for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CSIStorageCapacity buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CSIStorageCapacity item : items) {V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CSIStorageCapacity buildMatchingItem(Predicate predicate) { + for (V1CSIStorageCapacityBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1CSIStorageCapacityBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1CSIStorageCapacityList instance) { + instance = instance != null ? instance : new V1CSIStorageCapacityList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1CSIStorageCapacity buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1CSIStorageCapacity buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CSIStorageCapacity buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSIStorageCapacityListFluent that = (V1CSIStorageCapacityListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1CSIStorageCapacity buildMatchingItem(Predicate predicate) { - for (V1CSIStorageCapacityBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CSIStorageCapacity... items) { + if (this.items == null) { + return (A) this; + } + for (V1CSIStorageCapacity item : items) { + V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CSIStorageCapacityBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CSIStorageCapacity item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... items) { + public A withItems(V1CSIStorageCapacity... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1CSIStorageCapacity... i return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CSIStorageCapacity item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CSIStorageCapacity 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1CSIStorageCapacityFluent> implements Nested{ - 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; - V1CSIStorageCapacityListFluent that = (V1CSIStorageCapacityListFluent) 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()); - } + V1CSIStorageCapacityBuilder builder; + int index; - 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 V1CSIStorageCapacityFluent> implements Nested{ ItemsNested(int index,V1CSIStorageCapacity item) { this.index = index; this.builder = new V1CSIStorageCapacityBuilder(this, item); } - V1CSIStorageCapacityBuilder builder; - int index; - + public N and() { - return (N) V1CSIStorageCapacityListFluent.this.setToItems(index,builder.build()); + return (N) V1CSIStorageCapacityListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CSIStorageCapacityListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java index e4c123b5d5..b26e555fad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CSIVolumeSourceBuilder extends V1CSIVolumeSourceFluent implements VisitableBuilder{ + + V1CSIVolumeSourceFluent fluent; + public V1CSIVolumeSourceBuilder() { this(new V1CSIVolumeSource()); } @@ -10,17 +14,16 @@ public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent) { this(fluent, new V1CSIVolumeSource()); } - public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent,V1CSIVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CSIVolumeSourceBuilder(V1CSIVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CSIVolumeSourceFluent fluent; + public V1CSIVolumeSourceBuilder(V1CSIVolumeSourceFluent fluent,V1CSIVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CSIVolumeSource build() { V1CSIVolumeSource buildable = new V1CSIVolumeSource(); buildable.setDriver(fluent.getDriver()); @@ -31,5 +34,4 @@ public V1CSIVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java index e2b497d715..119cf3b6e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java @@ -1,196 +1,262 @@ 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.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CSIVolumeSourceFluent> extends BaseFluent{ - public V1CSIVolumeSourceFluent() { - } - - public V1CSIVolumeSourceFluent(V1CSIVolumeSource instance) { - this.copyInstance(instance); - } +public class V1CSIVolumeSourceFluent> extends BaseFluent{ + private String driver; private String fsType; private V1LocalObjectReferenceBuilder nodePublishSecretRef; private Boolean readOnly; private Map volumeAttributes; - - protected void copyInstance(V1CSIVolumeSource instance) { - instance = (instance != null ? instance : new V1CSIVolumeSource()); - if (instance != null) { - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); - this.withReadOnly(instance.getReadOnly()); - this.withVolumeAttributes(instance.getVolumeAttributes()); - } + + public V1CSIVolumeSourceFluent() { } - public String getDriver() { - return this.driver; + public V1CSIVolumeSourceFluent(V1CSIVolumeSource instance) { + this.copyInstance(instance); } - - public A withDriver(String driver) { - this.driver = driver; + + public A addToVolumeAttributes(Map map) { + if (this.volumeAttributes == null && map != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (map != null) { + this.volumeAttributes.putAll(map); + } return (A) this; } - public boolean hasDriver() { - return this.driver != null; - } - - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; + public A addToVolumeAttributes(String key,String value) { + if (this.volumeAttributes == null && key != null && value != null) { + this.volumeAttributes = new LinkedHashMap(); + } + if (key != null && value != null) { + this.volumeAttributes.put(key, value); + } return (A) this; } - public boolean hasFsType() { - return this.fsType != null; - } - public V1LocalObjectReference buildNodePublishSecretRef() { return this.nodePublishSecretRef != null ? this.nodePublishSecretRef.build() : null; } - public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { - this._visitables.remove("nodePublishSecretRef"); - if (nodePublishSecretRef != null) { - this.nodePublishSecretRef = new V1LocalObjectReferenceBuilder(nodePublishSecretRef); - this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); - } else { - this.nodePublishSecretRef = null; - this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); + protected void copyInstance(V1CSIVolumeSource instance) { + instance = instance != null ? instance : new V1CSIVolumeSource(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withNodePublishSecretRef(instance.getNodePublishSecretRef()); + this.withReadOnly(instance.getReadOnly()); + this.withVolumeAttributes(instance.getVolumeAttributes()); } - return (A) this; } - public boolean hasNodePublishSecretRef() { - return this.nodePublishSecretRef != null; + public NodePublishSecretRefNested editNodePublishSecretRef() { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(null)); } - public NodePublishSecretRefNested withNewNodePublishSecretRef() { - return new NodePublishSecretRefNested(null); + public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1LocalObjectReference item) { - return new NodePublishSecretRefNested(item); + public NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1LocalObjectReference item) { + return this.withNewNodePublishSecretRefLike(Optional.ofNullable(this.buildNodePublishSecretRef()).orElse(item)); } - public NodePublishSecretRefNested editNodePublishSecretRef() { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(null)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CSIVolumeSourceFluent that = (V1CSIVolumeSourceFluent) o; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(volumeAttributes, that.volumeAttributes))) { + return false; + } + return true; } - public NodePublishSecretRefNested editOrNewNodePublishSecretRef() { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public String getDriver() { + return this.driver; } - public NodePublishSecretRefNested editOrNewNodePublishSecretRefLike(V1LocalObjectReference item) { - return withNewNodePublishSecretRefLike(java.util.Optional.ofNullable(buildNodePublishSecretRef()).orElse(item)); + public String getFsType() { + return this.fsType; } public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public Map getVolumeAttributes() { + return this.volumeAttributes; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasNodePublishSecretRef() { + return this.nodePublishSecretRef != null; } public boolean hasReadOnly() { return this.readOnly != null; } - public A addToVolumeAttributes(String key,String value) { - if(this.volumeAttributes == null && key != null && value != null) { this.volumeAttributes = new LinkedHashMap(); } - if(key != null && value != null) {this.volumeAttributes.put(key, value);} return (A)this; + public boolean hasVolumeAttributes() { + return this.volumeAttributes != null; } - public A addToVolumeAttributes(Map map) { - if(this.volumeAttributes == null && map != null) { this.volumeAttributes = new LinkedHashMap(); } - if(map != null) { this.volumeAttributes.putAll(map);} return (A)this; + public int hashCode() { + return Objects.hash(driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes); } public A removeFromVolumeAttributes(String key) { - if(this.volumeAttributes == null) { return (A) this; } - if(key != null && this.volumeAttributes != null) {this.volumeAttributes.remove(key);} return (A)this; + if (this.volumeAttributes == null) { + return (A) this; + } + if (key != null && this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + return (A) this; } public A removeFromVolumeAttributes(Map map) { - if(this.volumeAttributes == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.volumeAttributes != null){this.volumeAttributes.remove(key);}}} return (A)this; + if (this.volumeAttributes == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.volumeAttributes != null) { + this.volumeAttributes.remove(key); + } + } + } + return (A) this; } - public Map getVolumeAttributes() { - return this.volumeAttributes; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(nodePublishSecretRef == null)) { + sb.append("nodePublishSecretRef:"); + sb.append(nodePublishSecretRef); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(volumeAttributes == null) && !(volumeAttributes.isEmpty())) { + sb.append("volumeAttributes:"); + sb.append(volumeAttributes); + } + sb.append("}"); + return sb.toString(); } - public A withVolumeAttributes(Map volumeAttributes) { - if (volumeAttributes == null) { - this.volumeAttributes = null; - } else { - this.volumeAttributes = new LinkedHashMap(volumeAttributes); - } + public A withDriver(String driver) { + this.driver = driver; return (A) this; } - public boolean hasVolumeAttributes() { - return this.volumeAttributes != null; + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1CSIVolumeSourceFluent that = (V1CSIVolumeSourceFluent) o; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(nodePublishSecretRef, that.nodePublishSecretRef)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(volumeAttributes, that.volumeAttributes)) return false; - return true; + public NodePublishSecretRefNested withNewNodePublishSecretRef() { + return new NodePublishSecretRefNested(null); } - public int hashCode() { - return java.util.Objects.hash(driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes, super.hashCode()); + public NodePublishSecretRefNested withNewNodePublishSecretRefLike(V1LocalObjectReference item) { + return new NodePublishSecretRefNested(item); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (nodePublishSecretRef != null) { sb.append("nodePublishSecretRef:"); sb.append(nodePublishSecretRef + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (volumeAttributes != null && !volumeAttributes.isEmpty()) { sb.append("volumeAttributes:"); sb.append(volumeAttributes); } - sb.append("}"); - return sb.toString(); + public A withNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { + this._visitables.remove("nodePublishSecretRef"); + if (nodePublishSecretRef != null) { + this.nodePublishSecretRef = new V1LocalObjectReferenceBuilder(nodePublishSecretRef); + this._visitables.get("nodePublishSecretRef").add(this.nodePublishSecretRef); + } else { + this.nodePublishSecretRef = null; + this._visitables.get("nodePublishSecretRef").remove(this.nodePublishSecretRef); + } + return (A) this; } public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withVolumeAttributes(Map volumeAttributes) { + if (volumeAttributes == null) { + this.volumeAttributes = null; + } else { + this.volumeAttributes = new LinkedHashMap(volumeAttributes); + } + return (A) this; + } public class NodePublishSecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + NodePublishSecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1CSIVolumeSourceFluent.this.withNodePublishSecretRef(builder.build()); } @@ -199,7 +265,5 @@ public N endNodePublishSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java index f445840273..a640146dcc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CapabilitiesBuilder extends V1CapabilitiesFluent implements VisitableBuilder{ + + V1CapabilitiesFluent fluent; + public V1CapabilitiesBuilder() { this(new V1Capabilities()); } @@ -10,17 +14,16 @@ public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent) { this(fluent, new V1Capabilities()); } - public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent,V1Capabilities instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CapabilitiesBuilder(V1Capabilities instance) { this.fluent = this; this.copyInstance(instance); } - V1CapabilitiesFluent fluent; + public V1CapabilitiesBuilder(V1CapabilitiesFluent fluent,V1Capabilities instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Capabilities build() { V1Capabilities buildable = new V1Capabilities(); buildable.setAdd(fluent.getAdd()); @@ -28,5 +31,4 @@ public V1Capabilities build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java index 8e1ad92a02..3fcbcdb6c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java @@ -1,65 +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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CapabilitiesFluent> extends BaseFluent{ +public class V1CapabilitiesFluent> extends BaseFluent{ + + private List add; + private List drop; + public V1CapabilitiesFluent() { } public V1CapabilitiesFluent(V1Capabilities instance) { this.copyInstance(instance); } - private List add; - private List drop; + + public A addAllToAdd(Collection items) { + if (this.add == null) { + this.add = new ArrayList(); + } + for (String item : items) { + this.add.add(item); + } + return (A) this; + } - protected void copyInstance(V1Capabilities instance) { - instance = (instance != null ? instance : new V1Capabilities()); - if (instance != null) { - this.withAdd(instance.getAdd()); - this.withDrop(instance.getDrop()); - } + public A addAllToDrop(Collection items) { + if (this.drop == null) { + this.drop = new ArrayList(); + } + for (String item : items) { + this.drop.add(item); + } + return (A) this; } - public A addToAdd(int index,String item) { - if (this.add == null) {this.add = new ArrayList();} - this.add.add(index, item); - return (A)this; + public A addToAdd(String... items) { + if (this.add == null) { + this.add = new ArrayList(); + } + for (String item : items) { + this.add.add(item); + } + return (A) this; } - public A setToAdd(int index,String item) { - if (this.add == null) {this.add = new ArrayList();} - this.add.set(index, item); return (A)this; + public A addToAdd(int index,String item) { + if (this.add == null) { + this.add = new ArrayList(); + } + this.add.add(index, item); + return (A) this; } - public A addToAdd(java.lang.String... items) { - if (this.add == null) {this.add = new ArrayList();} - for (String item : items) {this.add.add(item);} return (A)this; + public A addToDrop(String... items) { + if (this.drop == null) { + this.drop = new ArrayList(); + } + for (String item : items) { + this.drop.add(item); + } + return (A) this; } - public A addAllToAdd(Collection items) { - if (this.add == null) {this.add = new ArrayList();} - for (String item : items) {this.add.add(item);} return (A)this; + public A addToDrop(int index,String item) { + if (this.drop == null) { + this.drop = new ArrayList(); + } + this.drop.add(index, item); + return (A) this; } - public A removeFromAdd(java.lang.String... items) { - if (this.add == null) return (A)this; - for (String item : items) { this.add.remove(item);} return (A)this; + protected void copyInstance(V1Capabilities instance) { + instance = instance != null ? instance : new V1Capabilities(); + if (instance != null) { + this.withAdd(instance.getAdd()); + this.withDrop(instance.getDrop()); + } } - public A removeAllFromAdd(Collection items) { - if (this.add == null) return (A)this; - for (String item : items) { this.add.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CapabilitiesFluent that = (V1CapabilitiesFluent) o; + if (!(Objects.equals(add, that.add))) { + return false; + } + if (!(Objects.equals(drop, that.drop))) { + return false; + } + return true; } public List getAdd() { @@ -70,14 +119,30 @@ public String getAdd(int index) { return this.add.get(index); } + public List getDrop() { + return this.drop; + } + + public String getDrop(int index) { + return this.drop.get(index); + } + public String getFirstAdd() { return this.add.get(0); } + public String getFirstDrop() { + return this.drop.get(0); + } + public String getLastAdd() { return this.add.get(add.size() - 1); } + public String getLastDrop() { + return this.drop.get(drop.size() - 1); + } + public String getMatchingAdd(Predicate predicate) { for (String item : add) { if (predicate.test(item)) { @@ -87,107 +152,140 @@ public String getMatchingAdd(Predicate predicate) { return null; } - public boolean hasMatchingAdd(Predicate predicate) { - for (String item : add) { + public String getMatchingDrop(Predicate predicate) { + for (String item : drop) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAdd(List add) { - if (add != null) { - this.add = new ArrayList(); - for (String item : add) { - this.addToAdd(item); + return item; } - } else { - this.add = null; - } - return (A) this; - } - - public A withAdd(java.lang.String... add) { - if (this.add != null) { - this.add.clear(); - _visitables.remove("add"); - } - if (add != null) { - for (String item : add) { - this.addToAdd(item); } - } - return (A) this; + return null; } public boolean hasAdd() { - return this.add != null && !this.add.isEmpty(); + return this.add != null && !(this.add.isEmpty()); } - public A addToDrop(int index,String item) { - if (this.drop == null) {this.drop = new ArrayList();} - this.drop.add(index, item); - return (A)this; + public boolean hasDrop() { + return this.drop != null && !(this.drop.isEmpty()); } - public A setToDrop(int index,String item) { - if (this.drop == null) {this.drop = new ArrayList();} - this.drop.set(index, item); return (A)this; + public boolean hasMatchingAdd(Predicate predicate) { + for (String item : add) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToDrop(java.lang.String... items) { - if (this.drop == null) {this.drop = new ArrayList();} - for (String item : items) {this.drop.add(item);} return (A)this; + public boolean hasMatchingDrop(Predicate predicate) { + for (String item : drop) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addAllToDrop(Collection items) { - if (this.drop == null) {this.drop = new ArrayList();} - for (String item : items) {this.drop.add(item);} return (A)this; + public int hashCode() { + return Objects.hash(add, drop); } - public A removeFromDrop(java.lang.String... items) { - if (this.drop == null) return (A)this; - for (String item : items) { this.drop.remove(item);} return (A)this; + public A removeAllFromAdd(Collection items) { + if (this.add == null) { + return (A) this; + } + for (String item : items) { + this.add.remove(item); + } + return (A) this; } public A removeAllFromDrop(Collection items) { - if (this.drop == null) return (A)this; - for (String item : items) { this.drop.remove(item);} return (A)this; + if (this.drop == null) { + return (A) this; + } + for (String item : items) { + this.drop.remove(item); + } + return (A) this; } - public List getDrop() { - return this.drop; + public A removeFromAdd(String... items) { + if (this.add == null) { + return (A) this; + } + for (String item : items) { + this.add.remove(item); + } + return (A) this; } - public String getDrop(int index) { - return this.drop.get(index); + public A removeFromDrop(String... items) { + if (this.drop == null) { + return (A) this; + } + for (String item : items) { + this.drop.remove(item); + } + return (A) this; } - public String getFirstDrop() { - return this.drop.get(0); + public A setToAdd(int index,String item) { + if (this.add == null) { + this.add = new ArrayList(); + } + this.add.set(index, item); + return (A) this; } - public String getLastDrop() { - return this.drop.get(drop.size() - 1); + public A setToDrop(int index,String item) { + if (this.drop == null) { + this.drop = new ArrayList(); + } + this.drop.set(index, item); + return (A) this; } - public String getMatchingDrop(Predicate predicate) { - for (String item : drop) { - if (predicate.test(item)) { - return item; - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(add == null) && !(add.isEmpty())) { + sb.append("add:"); + sb.append(add); + sb.append(","); + } + if (!(drop == null) && !(drop.isEmpty())) { + sb.append("drop:"); + sb.append(drop); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingDrop(Predicate predicate) { - for (String item : drop) { - if (predicate.test(item)) { - return true; + public A withAdd(List add) { + if (add != null) { + this.add = new ArrayList(); + for (String item : add) { + this.addToAdd(item); } + } else { + this.add = null; + } + return (A) this; + } + + public A withAdd(String... add) { + if (this.add != null) { + this.add.clear(); + _visitables.remove("add"); + } + if (add != null) { + for (String item : add) { + this.addToAdd(item); } - return false; + } + return (A) this; } public A withDrop(List drop) { @@ -202,7 +300,7 @@ public A withDrop(List drop) { return (A) this; } - public A withDrop(java.lang.String... drop) { + public A withDrop(String... drop) { if (this.drop != null) { this.drop.clear(); _visitables.remove("drop"); @@ -215,32 +313,4 @@ public A withDrop(java.lang.String... drop) { return (A) this; } - public boolean hasDrop() { - return this.drop != null && !this.drop.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; - V1CapabilitiesFluent that = (V1CapabilitiesFluent) o; - if (!java.util.Objects.equals(add, that.add)) return false; - if (!java.util.Objects.equals(drop, that.drop)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(add, drop, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (add != null && !add.isEmpty()) { sb.append("add:"); sb.append(add + ","); } - if (drop != null && !drop.isEmpty()) { sb.append("drop:"); sb.append(drop); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java new file mode 100644 index 0000000000..8ef748f5ca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CapacityRequestPolicyBuilder extends V1CapacityRequestPolicyFluent implements VisitableBuilder{ + + V1CapacityRequestPolicyFluent fluent; + + public V1CapacityRequestPolicyBuilder() { + this(new V1CapacityRequestPolicy()); + } + + public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicyFluent fluent) { + this(fluent, new V1CapacityRequestPolicy()); + } + + public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1CapacityRequestPolicyBuilder(V1CapacityRequestPolicyFluent fluent,V1CapacityRequestPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CapacityRequestPolicy build() { + V1CapacityRequestPolicy buildable = new V1CapacityRequestPolicy(); + buildable.setDefault(fluent.getDefault()); + buildable.setValidRange(fluent.buildValidRange()); + buildable.setValidValues(fluent.getValidValues()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java new file mode 100644 index 0000000000..8981172f1e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java @@ -0,0 +1,287 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CapacityRequestPolicyFluent> extends BaseFluent{ + + private Quantity _default; + private V1CapacityRequestPolicyRangeBuilder validRange; + private List validValues; + + public V1CapacityRequestPolicyFluent() { + } + + public V1CapacityRequestPolicyFluent(V1CapacityRequestPolicy instance) { + this.copyInstance(instance); + } + + public A addAllToValidValues(Collection items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A addNewValidValue(String value) { + return (A) this.addToValidValues(new Quantity(value)); + } + + public A addToValidValues(Quantity... items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A addToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.add(index, item); + return (A) this; + } + + public V1CapacityRequestPolicyRange buildValidRange() { + return this.validRange != null ? this.validRange.build() : null; + } + + protected void copyInstance(V1CapacityRequestPolicy instance) { + instance = instance != null ? instance : new V1CapacityRequestPolicy(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withValidRange(instance.getValidRange()); + this.withValidValues(instance.getValidValues()); + } + } + + public ValidRangeNested editOrNewValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(new V1CapacityRequestPolicyRangeBuilder().build())); + } + + public ValidRangeNested editOrNewValidRangeLike(V1CapacityRequestPolicyRange item) { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(item)); + } + + public ValidRangeNested editValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CapacityRequestPolicyFluent that = (V1CapacityRequestPolicyFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(validRange, that.validRange))) { + return false; + } + if (!(Objects.equals(validValues, that.validValues))) { + return false; + } + return true; + } + + public Quantity getDefault() { + return this._default; + } + + public Quantity getFirstValidValue() { + return this.validValues.get(0); + } + + public Quantity getLastValidValue() { + return this.validValues.get(validValues.size() - 1); + } + + public Quantity getMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Quantity getValidValue(int index) { + return this.validValues.get(index); + } + + public List getValidValues() { + return this.validValues; + } + + public boolean hasDefault() { + return this._default != null; + } + + public boolean hasMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasValidRange() { + return this.validRange != null; + } + + public boolean hasValidValues() { + return this.validValues != null && !(this.validValues.isEmpty()); + } + + public int hashCode() { + return Objects.hash(_default, validRange, validValues); + } + + public A removeAllFromValidValues(Collection items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public A removeFromValidValues(Quantity... items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public A setToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(_default == null)) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(validRange == null)) { + sb.append("validRange:"); + sb.append(validRange); + sb.append(","); + } + if (!(validValues == null) && !(validValues.isEmpty())) { + sb.append("validValues:"); + sb.append(validValues); + } + sb.append("}"); + return sb.toString(); + } + + public A withDefault(Quantity _default) { + this._default = _default; + return (A) this; + } + + public A withNewDefault(String value) { + return (A) this.withDefault(new Quantity(value)); + } + + public ValidRangeNested withNewValidRange() { + return new ValidRangeNested(null); + } + + public ValidRangeNested withNewValidRangeLike(V1CapacityRequestPolicyRange item) { + return new ValidRangeNested(item); + } + + public A withValidRange(V1CapacityRequestPolicyRange validRange) { + this._visitables.remove("validRange"); + if (validRange != null) { + this.validRange = new V1CapacityRequestPolicyRangeBuilder(validRange); + this._visitables.get("validRange").add(this.validRange); + } else { + this.validRange = null; + this._visitables.get("validRange").remove(this.validRange); + } + return (A) this; + } + + public A withValidValues(List validValues) { + if (validValues != null) { + this.validValues = new ArrayList(); + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } else { + this.validValues = null; + } + return (A) this; + } + + public A withValidValues(Quantity... validValues) { + if (this.validValues != null) { + this.validValues.clear(); + _visitables.remove("validValues"); + } + if (validValues != null) { + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } + return (A) this; + } + public class ValidRangeNested extends V1CapacityRequestPolicyRangeFluent> implements Nested{ + + V1CapacityRequestPolicyRangeBuilder builder; + + ValidRangeNested(V1CapacityRequestPolicyRange item) { + this.builder = new V1CapacityRequestPolicyRangeBuilder(this, item); + } + + public N and() { + return (N) V1CapacityRequestPolicyFluent.this.withValidRange(builder.build()); + } + + public N endValidRange() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java new file mode 100644 index 0000000000..8771041aff --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CapacityRequestPolicyRangeBuilder extends V1CapacityRequestPolicyRangeFluent implements VisitableBuilder{ + + V1CapacityRequestPolicyRangeFluent fluent; + + public V1CapacityRequestPolicyRangeBuilder() { + this(new V1CapacityRequestPolicyRange()); + } + + public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRangeFluent fluent) { + this(fluent, new V1CapacityRequestPolicyRange()); + } + + public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRange instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1CapacityRequestPolicyRangeBuilder(V1CapacityRequestPolicyRangeFluent fluent,V1CapacityRequestPolicyRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CapacityRequestPolicyRange build() { + V1CapacityRequestPolicyRange buildable = new V1CapacityRequestPolicyRange(); + buildable.setMax(fluent.getMax()); + buildable.setMin(fluent.getMin()); + buildable.setStep(fluent.getStep()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java new file mode 100644 index 0000000000..ff228192e5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java @@ -0,0 +1,136 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CapacityRequestPolicyRangeFluent> extends BaseFluent{ + + private Quantity max; + private Quantity min; + private Quantity step; + + public V1CapacityRequestPolicyRangeFluent() { + } + + public V1CapacityRequestPolicyRangeFluent(V1CapacityRequestPolicyRange instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1CapacityRequestPolicyRange instance) { + instance = instance != null ? instance : new V1CapacityRequestPolicyRange(); + if (instance != null) { + this.withMax(instance.getMax()); + this.withMin(instance.getMin()); + this.withStep(instance.getStep()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CapacityRequestPolicyRangeFluent that = (V1CapacityRequestPolicyRangeFluent) o; + if (!(Objects.equals(max, that.max))) { + return false; + } + if (!(Objects.equals(min, that.min))) { + return false; + } + if (!(Objects.equals(step, that.step))) { + return false; + } + return true; + } + + public Quantity getMax() { + return this.max; + } + + public Quantity getMin() { + return this.min; + } + + public Quantity getStep() { + return this.step; + } + + public boolean hasMax() { + return this.max != null; + } + + public boolean hasMin() { + return this.min != null; + } + + public boolean hasStep() { + return this.step != null; + } + + public int hashCode() { + return Objects.hash(max, min, step); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(max == null)) { + sb.append("max:"); + sb.append(max); + sb.append(","); + } + if (!(min == null)) { + sb.append("min:"); + sb.append(min); + sb.append(","); + } + if (!(step == null)) { + sb.append("step:"); + sb.append(step); + } + sb.append("}"); + return sb.toString(); + } + + public A withMax(Quantity max) { + this.max = max; + return (A) this; + } + + public A withMin(Quantity min) { + this.min = min; + return (A) this; + } + + public A withNewMax(String value) { + return (A) this.withMax(new Quantity(value)); + } + + public A withNewMin(String value) { + return (A) this.withMin(new Quantity(value)); + } + + public A withNewStep(String value) { + return (A) this.withStep(new Quantity(value)); + } + + public A withStep(Quantity step) { + this.step = step; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java new file mode 100644 index 0000000000..799c18a51b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CapacityRequirementsBuilder extends V1CapacityRequirementsFluent implements VisitableBuilder{ + + V1CapacityRequirementsFluent fluent; + + public V1CapacityRequirementsBuilder() { + this(new V1CapacityRequirements()); + } + + public V1CapacityRequirementsBuilder(V1CapacityRequirementsFluent fluent) { + this(fluent, new V1CapacityRequirements()); + } + + public V1CapacityRequirementsBuilder(V1CapacityRequirements instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1CapacityRequirementsBuilder(V1CapacityRequirementsFluent fluent,V1CapacityRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CapacityRequirements build() { + V1CapacityRequirements buildable = new V1CapacityRequirements(); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java new file mode 100644 index 0000000000..e325b0f2af --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java @@ -0,0 +1,128 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CapacityRequirementsFluent> extends BaseFluent{ + + private Map requests; + + public V1CapacityRequirementsFluent() { + } + + public V1CapacityRequirementsFluent(V1CapacityRequirements instance) { + this.copyInstance(instance); + } + + 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 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; + } + + protected void copyInstance(V1CapacityRequirements instance) { + instance = instance != null ? instance : new V1CapacityRequirements(); + if (instance != null) { + this.withRequests(instance.getRequests()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CapacityRequirementsFluent that = (V1CapacityRequirementsFluent) o; + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public Map getRequests() { + return this.requests; + } + + public boolean hasRequests() { + return this.requests != null; + } + + public int hashCode() { + return Objects.hash(requests); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java index 8debc4eddd..784929f1c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CephFSPersistentVolumeSourceBuilder extends V1CephFSPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1CephFSPersistentVolumeSourceFluent fluent; + public V1CephFSPersistentVolumeSourceBuilder() { this(new V1CephFSPersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluen this(fluent, new V1CephFSPersistentVolumeSource()); } - public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,V1CephFSPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CephFSPersistentVolumeSourceFluent fluent; + public V1CephFSPersistentVolumeSourceBuilder(V1CephFSPersistentVolumeSourceFluent fluent,V1CephFSPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CephFSPersistentVolumeSource build() { V1CephFSPersistentVolumeSource buildable = new V1CephFSPersistentVolumeSource(); buildable.setMonitors(fluent.getMonitors()); @@ -32,5 +35,4 @@ public V1CephFSPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java index 1f6f5ec51b..e3d2ee25a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java @@ -1,83 +1,125 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CephFSPersistentVolumeSourceFluent> extends BaseFluent{ - public V1CephFSPersistentVolumeSourceFluent() { - } - - public V1CephFSPersistentVolumeSourceFluent(V1CephFSPersistentVolumeSource instance) { - this.copyInstance(instance); - } +public class V1CephFSPersistentVolumeSourceFluent> extends BaseFluent{ + private List monitors; private String path; private Boolean readOnly; private String secretFile; private V1SecretReferenceBuilder secretRef; private String user; + + public V1CephFSPersistentVolumeSourceFluent() { + } - protected void copyInstance(V1CephFSPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1CephFSPersistentVolumeSource()); - if (instance != null) { - this.withMonitors(instance.getMonitors()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretFile(instance.getSecretFile()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + public V1CephFSPersistentVolumeSourceFluent(V1CephFSPersistentVolumeSource instance) { + this.copyInstance(instance); + } + + public A addAllToMonitors(Collection items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A addToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.add(index, item); - return (A)this; + public A addToMonitors(String... items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A setToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.set(index, item); return (A)this; + public A addToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.add(index, item); + return (A) this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public A addAllToMonitors(Collection items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + protected void copyInstance(V1CephFSPersistentVolumeSource instance) { + instance = instance != null ? instance : new V1CephFSPersistentVolumeSource(); + if (instance != null) { + this.withMonitors(instance.getMonitors()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretFile(instance.getSecretFile()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); + } } - public A removeFromMonitors(java.lang.String... items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public List getMonitors() { - return this.monitors; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public String getMonitor(int index) { - return this.monitors.get(index); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CephFSPersistentVolumeSourceFluent that = (V1CephFSPersistentVolumeSourceFluent) o; + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretFile, that.secretFile))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } public String getFirstMonitor() { @@ -97,6 +139,30 @@ public String getMatchingMonitor(Predicate predicate) { return null; } + public String getMonitor(int index) { + return this.monitors.get(index); + } + + public List getMonitors() { + return this.monitors; + } + + public String getPath() { + return this.path; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getSecretFile() { + return this.secretFile; + } + + public String getUser() { + return this.user; + } + public boolean hasMatchingMonitor(Predicate predicate) { for (String item : monitors) { if (predicate.test(item)) { @@ -106,6 +172,98 @@ public boolean hasMatchingMonitor(Predicate predicate) { return false; } + public boolean hasMonitors() { + return this.monitors != null && !(this.monitors.isEmpty()); + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretFile() { + return this.secretFile != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + + public boolean hasUser() { + return this.user != null; + } + + public int hashCode() { + return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); + } + + public A removeAllFromMonitors(Collection items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; + } + + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; + } + + public A setToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(monitors == null) && !(monitors.isEmpty())) { + sb.append("monitors:"); + sb.append(monitors); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretFile == null)) { + sb.append("secretFile:"); + sb.append(secretFile); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } + sb.append("}"); + return sb.toString(); + } + public A withMonitors(List monitors) { if (monitors != null) { this.monitors = new ArrayList(); @@ -118,7 +276,7 @@ public A withMonitors(List monitors) { return (A) this; } - public A withMonitors(java.lang.String... monitors) { + public A withMonitors(String... monitors) { if (this.monitors != null) { this.monitors.clear(); _visitables.remove("monitors"); @@ -131,12 +289,12 @@ public A withMonitors(java.lang.String... monitors) { return (A) this; } - public boolean hasMonitors() { - return this.monitors != null && !this.monitors.isEmpty(); + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public String getPath() { - return this.path; + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); } public A withPath(String path) { @@ -144,12 +302,8 @@ public A withPath(String path) { return (A) this; } - public boolean hasPath() { - return this.path != null; - } - - public Boolean getReadOnly() { - return this.readOnly; + public A withReadOnly() { + return withReadOnly(true); } public A withReadOnly(Boolean readOnly) { @@ -157,27 +311,11 @@ public A withReadOnly(Boolean readOnly) { return (A) this; } - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public String getSecretFile() { - return this.secretFile; - } - public A withSecretFile(String secretFile) { this.secretFile = secretFile; return (A) this; } - public boolean hasSecretFile() { - return this.secretFile != null; - } - - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - public A withSecretRef(V1SecretReference secretRef) { this._visitables.remove("secretRef"); if (secretRef != null) { @@ -190,83 +328,18 @@ public A withSecretRef(V1SecretReference secretRef) { return (A) this; } - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); - } - - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); - } - - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); - } - - public String getUser() { - return this.user; - } - public A withUser(String user) { this.user = user; return (A) this; } + public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ - public boolean hasUser() { - return this.user != 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; - V1CephFSPersistentVolumeSourceFluent that = (V1CephFSPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(monitors, that.monitors)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretFile, that.secretFile)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretFile != null) { sb.append("secretFile:"); sb.append(secretFile + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } - sb.append("}"); - return sb.toString(); - } + V1SecretReferenceBuilder builder; - public A withReadOnly() { - return withReadOnly(true); - } - public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CephFSPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -275,7 +348,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java index 3d59580ee0..074efbc3d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CephFSVolumeSourceBuilder extends V1CephFSVolumeSourceFluent implements VisitableBuilder{ + + V1CephFSVolumeSourceFluent fluent; + public V1CephFSVolumeSourceBuilder() { this(new V1CephFSVolumeSource()); } @@ -10,17 +14,16 @@ public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent) { this(fluent, new V1CephFSVolumeSource()); } - public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,V1CephFSVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CephFSVolumeSourceFluent fluent; + public V1CephFSVolumeSourceBuilder(V1CephFSVolumeSourceFluent fluent,V1CephFSVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CephFSVolumeSource build() { V1CephFSVolumeSource buildable = new V1CephFSVolumeSource(); buildable.setMonitors(fluent.getMonitors()); @@ -32,5 +35,4 @@ public V1CephFSVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java index 05e3a71537..ad94014462 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java @@ -1,83 +1,125 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CephFSVolumeSourceFluent> extends BaseFluent{ - public V1CephFSVolumeSourceFluent() { - } - - public V1CephFSVolumeSourceFluent(V1CephFSVolumeSource instance) { - this.copyInstance(instance); - } +public class V1CephFSVolumeSourceFluent> extends BaseFluent{ + private List monitors; private String path; private Boolean readOnly; private String secretFile; private V1LocalObjectReferenceBuilder secretRef; private String user; + + public V1CephFSVolumeSourceFluent() { + } - protected void copyInstance(V1CephFSVolumeSource instance) { - instance = (instance != null ? instance : new V1CephFSVolumeSource()); - if (instance != null) { - this.withMonitors(instance.getMonitors()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretFile(instance.getSecretFile()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + public V1CephFSVolumeSourceFluent(V1CephFSVolumeSource instance) { + this.copyInstance(instance); + } + + public A addAllToMonitors(Collection items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A addToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.add(index, item); - return (A)this; + public A addToMonitors(String... items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A setToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.set(index, item); return (A)this; + public A addToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.add(index, item); + return (A) this; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public A addAllToMonitors(Collection items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + protected void copyInstance(V1CephFSVolumeSource instance) { + instance = instance != null ? instance : new V1CephFSVolumeSource(); + if (instance != null) { + this.withMonitors(instance.getMonitors()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretFile(instance.getSecretFile()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); + } } - public A removeFromMonitors(java.lang.String... items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public List getMonitors() { - return this.monitors; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public String getMonitor(int index) { - return this.monitors.get(index); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CephFSVolumeSourceFluent that = (V1CephFSVolumeSourceFluent) o; + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretFile, that.secretFile))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } public String getFirstMonitor() { @@ -97,6 +139,30 @@ public String getMatchingMonitor(Predicate predicate) { return null; } + public String getMonitor(int index) { + return this.monitors.get(index); + } + + public List getMonitors() { + return this.monitors; + } + + public String getPath() { + return this.path; + } + + public Boolean getReadOnly() { + return this.readOnly; + } + + public String getSecretFile() { + return this.secretFile; + } + + public String getUser() { + return this.user; + } + public boolean hasMatchingMonitor(Predicate predicate) { for (String item : monitors) { if (predicate.test(item)) { @@ -106,6 +172,98 @@ public boolean hasMatchingMonitor(Predicate predicate) { return false; } + public boolean hasMonitors() { + return this.monitors != null && !(this.monitors.isEmpty()); + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretFile() { + return this.secretFile != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + + public boolean hasUser() { + return this.user != null; + } + + public int hashCode() { + return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); + } + + public A removeAllFromMonitors(Collection items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; + } + + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; + } + + public A setToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(monitors == null) && !(monitors.isEmpty())) { + sb.append("monitors:"); + sb.append(monitors); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretFile == null)) { + sb.append("secretFile:"); + sb.append(secretFile); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } + sb.append("}"); + return sb.toString(); + } + public A withMonitors(List monitors) { if (monitors != null) { this.monitors = new ArrayList(); @@ -118,7 +276,7 @@ public A withMonitors(List monitors) { return (A) this; } - public A withMonitors(java.lang.String... monitors) { + public A withMonitors(String... monitors) { if (this.monitors != null) { this.monitors.clear(); _visitables.remove("monitors"); @@ -131,12 +289,12 @@ public A withMonitors(java.lang.String... monitors) { return (A) this; } - public boolean hasMonitors() { - return this.monitors != null && !this.monitors.isEmpty(); + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public String getPath() { - return this.path; + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); } public A withPath(String path) { @@ -144,12 +302,8 @@ public A withPath(String path) { return (A) this; } - public boolean hasPath() { - return this.path != null; - } - - public Boolean getReadOnly() { - return this.readOnly; + public A withReadOnly() { + return withReadOnly(true); } public A withReadOnly(Boolean readOnly) { @@ -157,27 +311,11 @@ public A withReadOnly(Boolean readOnly) { return (A) this; } - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public String getSecretFile() { - return this.secretFile; - } - public A withSecretFile(String secretFile) { this.secretFile = secretFile; return (A) this; } - public boolean hasSecretFile() { - return this.secretFile != null; - } - - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - public A withSecretRef(V1LocalObjectReference secretRef) { this._visitables.remove("secretRef"); if (secretRef != null) { @@ -190,83 +328,18 @@ public A withSecretRef(V1LocalObjectReference secretRef) { return (A) this; } - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); - } - - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); - } - - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); - } - - public String getUser() { - return this.user; - } - public A withUser(String user) { this.user = user; return (A) this; } + public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ - public boolean hasUser() { - return this.user != 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; - V1CephFSVolumeSourceFluent that = (V1CephFSVolumeSourceFluent) o; - if (!java.util.Objects.equals(monitors, that.monitors)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretFile, that.secretFile)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(monitors, path, readOnly, secretFile, secretRef, user, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretFile != null) { sb.append("secretFile:"); sb.append(secretFile + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } - sb.append("}"); - return sb.toString(); - } + V1LocalObjectReferenceBuilder builder; - public A withReadOnly() { - return withReadOnly(true); - } - public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1CephFSVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -275,7 +348,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java index 985cc53ef4..c83b787f99 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CertificateSigningRequestBuilder extends V1CertificateSigningRequestFluent implements VisitableBuilder{ + + V1CertificateSigningRequestFluent fluent; + public V1CertificateSigningRequestBuilder() { this(new V1CertificateSigningRequest()); } @@ -10,17 +14,16 @@ public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent f this(fluent, new V1CertificateSigningRequest()); } - public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent fluent,V1CertificateSigningRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestBuilder(V1CertificateSigningRequest instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestFluent fluent; + public V1CertificateSigningRequestBuilder(V1CertificateSigningRequestFluent fluent,V1CertificateSigningRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequest build() { V1CertificateSigningRequest buildable = new V1CertificateSigningRequest(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1CertificateSigningRequest build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java index 92f6f4175b..7a336eb793 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CertificateSigningRequestConditionBuilder extends V1CertificateSigningRequestConditionFluent implements VisitableBuilder{ + + V1CertificateSigningRequestConditionFluent fluent; + public V1CertificateSigningRequestConditionBuilder() { this(new V1CertificateSigningRequestCondition()); } @@ -10,17 +14,16 @@ public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestCo this(fluent, new V1CertificateSigningRequestCondition()); } - public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestConditionFluent fluent,V1CertificateSigningRequestCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestConditionFluent fluent; + public V1CertificateSigningRequestConditionBuilder(V1CertificateSigningRequestConditionFluent fluent,V1CertificateSigningRequestCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequestCondition build() { V1CertificateSigningRequestCondition buildable = new V1CertificateSigningRequestCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +35,4 @@ public V1CertificateSigningRequestCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java index 1f732988e3..a650e6c2a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java @@ -1,149 +1,193 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestConditionFluent> extends BaseFluent{ - public V1CertificateSigningRequestConditionFluent() { - } - - public V1CertificateSigningRequestConditionFluent(V1CertificateSigningRequestCondition instance) { - this.copyInstance(instance); - } +public class V1CertificateSigningRequestConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private OffsetDateTime lastUpdateTime; private String message; private String reason; private String status; private String type; + + public V1CertificateSigningRequestConditionFluent() { + } + public V1CertificateSigningRequestConditionFluent(V1CertificateSigningRequestCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1CertificateSigningRequestCondition instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequestCondition()); + instance = instance != null ? instance : new V1CertificateSigningRequestCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withLastUpdateTime(instance.getLastUpdateTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withLastUpdateTime(instance.getLastUpdateTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CertificateSigningRequestConditionFluent that = (V1CertificateSigningRequestConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(lastUpdateTime, that.lastUpdateTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public OffsetDateTime getLastUpdateTime() { return this.lastUpdateTime; } - public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { - this.lastUpdateTime = lastUpdateTime; - return (A) this; + public String getMessage() { + return this.message; } - public boolean hasLastUpdateTime() { - return this.lastUpdateTime != null; + public String getReason() { + return this.reason; } - public String getMessage() { - return this.message; + public String getStatus() { + return this.status; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getType() { + return this.type; } - public boolean hasMessage() { - return this.message != null; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public String getReason() { - return this.reason; + public boolean hasLastUpdateTime() { + return this.lastUpdateTime != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(lastUpdateTime == null)) { + sb.append("lastUpdateTime:"); + sb.append(lastUpdateTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1CertificateSigningRequestConditionFluent that = (V1CertificateSigningRequestConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - 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 A withMessage(String message) { + this.message = message; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - 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(); + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java index aad4a2ae62..5806cace0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestFluent> extends BaseFluent{ +public class V1CertificateSigningRequestFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1CertificateSigningRequestSpecBuilder spec; + private V1CertificateSigningRequestStatusBuilder status; + public V1CertificateSigningRequestFluent() { } public V1CertificateSigningRequestFluent(V1CertificateSigningRequest instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1CertificateSigningRequestSpecBuilder spec; - private V1CertificateSigningRequestStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1CertificateSigningRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1CertificateSigningRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1CertificateSigningRequest instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequest()); + instance = instance != null ? instance : new V1CertificateSigningRequest(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CertificateSigningRequestSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1CertificateSigningRequestSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CertificateSigningRequestStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1CertificateSigningRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CertificateSigningRequestFluent that = (V1CertificateSigningRequestFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1CertificateSigningRequestSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1CertificateSigningRequestSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1CertificateSigningRequestStatus item) { + return new StatusNested(item); } public A withSpec(V1CertificateSigningRequestSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1CertificateSigningRequestSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CertificateSigningRequestSpec 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 V1CertificateSigningRequestSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1CertificateSigningRequestSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1CertificateSigningRequestStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1CertificateSigningRequestStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1CertificateSigningRequestStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1CertificateSigningRequestStatus 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 V1CertificateSigningRequestStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1CertificateSigningRequestStatus 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; - V1CertificateSigningRequestFluent that = (V1CertificateSigningRequestFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1CertificateSigningRequestFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CertificateSigningRequestSpecFluent> implements Nested{ + + V1CertificateSigningRequestSpecBuilder builder; + SpecNested(V1CertificateSigningRequestSpec item) { this.builder = new V1CertificateSigningRequestSpecBuilder(this, item); } - V1CertificateSigningRequestSpecBuilder builder; - + public N and() { return (N) V1CertificateSigningRequestFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1CertificateSigningRequestStatusFluent> implements Nested{ + + V1CertificateSigningRequestStatusBuilder builder; + StatusNested(V1CertificateSigningRequestStatus item) { this.builder = new V1CertificateSigningRequestStatusBuilder(this, item); } - V1CertificateSigningRequestStatusBuilder builder; - + public N and() { return (N) V1CertificateSigningRequestFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java index 3d7f9e30d7..e2e47614f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CertificateSigningRequestListBuilder extends V1CertificateSigningRequestListFluent implements VisitableBuilder{ + + V1CertificateSigningRequestListFluent fluent; + public V1CertificateSigningRequestListBuilder() { this(new V1CertificateSigningRequestList()); } @@ -10,17 +14,16 @@ public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFlu this(fluent, new V1CertificateSigningRequestList()); } - public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFluent fluent,V1CertificateSigningRequestList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestList instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestListFluent fluent; + public V1CertificateSigningRequestListBuilder(V1CertificateSigningRequestListFluent fluent,V1CertificateSigningRequestList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequestList build() { V1CertificateSigningRequestList buildable = new V1CertificateSigningRequestList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1CertificateSigningRequestList build() { return buildable; } - } \ No newline at end of file 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..227a6382e1 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestListFluent> extends BaseFluent{ +public class V1CertificateSigningRequestListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1CertificateSigningRequestListFluent() { } public V1CertificateSigningRequestListFluent(V1CertificateSigningRequestList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CertificateSigningRequestList instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequestList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1CertificateSigningRequest item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1CertificateSigningRequest... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1CertificateSigningRequest item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1CertificateSigningRequest buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1CertificateSigningRequest buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { - if (this.items == null) return (A)this; - for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CertificateSigningRequest buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CertificateSigningRequest item : items) {V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CertificateSigningRequest buildMatchingItem(Predicate predicate) { + for (V1CertificateSigningRequestBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1CertificateSigningRequestBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1CertificateSigningRequestList instance) { + instance = instance != null ? instance : new V1CertificateSigningRequestList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1CertificateSigningRequest buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1CertificateSigningRequest buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CertificateSigningRequest buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CertificateSigningRequestListFluent that = (V1CertificateSigningRequestListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1CertificateSigningRequest buildMatchingItem(Predicate predicate) { - for (V1CertificateSigningRequestBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate pre return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CertificateSigningRequest... items) { + if (this.items == null) { + return (A) this; + } + for (V1CertificateSigningRequest item : items) { + V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CertificateSigningRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CertificateSigningRequest item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CertificateSigningRequest... items) { + public A withItems(V1CertificateSigningRequest... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1CertificateSigningReque return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CertificateSigningRequest item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CertificateSigningRequest 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1CertificateSigningRequestFluent> implements Nested{ - 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; - V1CertificateSigningRequestListFluent that = (V1CertificateSigningRequestListFluent) 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()); - } + V1CertificateSigningRequestBuilder builder; + int index; - 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 V1CertificateSigningRequestFluent> implements Nested{ ItemsNested(int index,V1CertificateSigningRequest item) { this.index = index; this.builder = new V1CertificateSigningRequestBuilder(this, item); } - V1CertificateSigningRequestBuilder builder; - int index; - + public N and() { - return (N) V1CertificateSigningRequestListFluent.this.setToItems(index,builder.build()); + return (N) V1CertificateSigningRequestListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CertificateSigningRequestListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java index 9135e3539e..47fea27289 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CertificateSigningRequestSpecBuilder extends V1CertificateSigningRequestSpecFluent implements VisitableBuilder{ + + V1CertificateSigningRequestSpecFluent fluent; + public V1CertificateSigningRequestSpecBuilder() { this(new V1CertificateSigningRequestSpec()); } @@ -10,17 +14,16 @@ public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFlu this(fluent, new V1CertificateSigningRequestSpec()); } - public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFluent fluent,V1CertificateSigningRequestSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestSpecFluent fluent; + public V1CertificateSigningRequestSpecBuilder(V1CertificateSigningRequestSpecFluent fluent,V1CertificateSigningRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequestSpec build() { V1CertificateSigningRequestSpec buildable = new V1CertificateSigningRequestSpec(); buildable.setExpirationSeconds(fluent.getExpirationSeconds()); @@ -34,5 +37,4 @@ public V1CertificateSigningRequestSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java index 3dbee21550..c880628b2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java @@ -1,29 +1,26 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Byte; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import java.lang.Integer; -import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; import java.util.Collection; -import java.lang.Object; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestSpecFluent> extends BaseFluent{ - public V1CertificateSigningRequestSpecFluent() { - } - - public V1CertificateSigningRequestSpecFluent(V1CertificateSigningRequestSpec instance) { - this.copyInstance(instance); - } +public class V1CertificateSigningRequestSpecFluent> extends BaseFluent{ + private Integer expirationSeconds; private Map> extra; private List groups; @@ -32,118 +29,202 @@ public V1CertificateSigningRequestSpecFluent(V1CertificateSigningRequestSpec ins private String uid; private List usages; private String username; - - protected void copyInstance(V1CertificateSigningRequestSpec instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequestSpec()); - if (instance != null) { - this.withExpirationSeconds(instance.getExpirationSeconds()); - this.withExtra(instance.getExtra()); - this.withGroups(instance.getGroups()); - this.withRequest(instance.getRequest()); - this.withSignerName(instance.getSignerName()); - this.withUid(instance.getUid()); - this.withUsages(instance.getUsages()); - this.withUsername(instance.getUsername()); - } + + public V1CertificateSigningRequestSpecFluent() { } - public Integer getExpirationSeconds() { - return this.expirationSeconds; + public V1CertificateSigningRequestSpecFluent(V1CertificateSigningRequestSpec instance) { + this.copyInstance(instance); } - - public A withExpirationSeconds(Integer expirationSeconds) { - this.expirationSeconds = expirationSeconds; + + public A addAllToGroups(Collection items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } return (A) this; } - public boolean hasExpirationSeconds() { - return this.expirationSeconds != null; + public A addAllToRequest(Collection items) { + if (this.request == null) { + this.request = new ArrayList(); + } + for (Byte item : items) { + this.request.add(item); + } + return (A) this; } - public A addToExtra(String key,List value) { - if(this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } - if(key != null && value != null) {this.extra.put(key, value);} return (A)this; + public A addAllToUsages(Collection items) { + if (this.usages == null) { + this.usages = new ArrayList(); + } + for (String item : items) { + this.usages.add(item); + } + return (A) this; } public A addToExtra(Map> map) { - if(this.extra == null && map != null) { this.extra = new LinkedHashMap(); } - if(map != null) { this.extra.putAll(map);} return (A)this; + if (this.extra == null && map != null) { + this.extra = new LinkedHashMap(); + } + if (map != null) { + this.extra.putAll(map); + } + return (A) this; } - public A removeFromExtra(String key) { - if(this.extra == null) { return (A) this; } - if(key != null && this.extra != null) {this.extra.remove(key);} return (A)this; + public A addToExtra(String key,List value) { + if (this.extra == null && key != null && value != null) { + this.extra = new LinkedHashMap(); + } + if (key != null && value != null) { + this.extra.put(key, value); + } + return (A) this; } - public A removeFromExtra(Map> map) { - if(this.extra == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.extra != null){this.extra.remove(key);}}} return (A)this; + public A addToGroups(String... items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } - public Map> getExtra() { - return this.extra; + public A addToGroups(int index,String item) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.add(index, item); + return (A) this; } - public A withExtra(Map> extra) { - if (extra == null) { - this.extra = null; - } else { - this.extra = new LinkedHashMap(extra); + public A addToRequest(Byte... items) { + if (this.request == null) { + this.request = new ArrayList(); + } + for (Byte item : items) { + this.request.add(item); } return (A) this; } - public boolean hasExtra() { - return this.extra != null; + public A addToRequest(int index,Byte item) { + if (this.request == null) { + this.request = new ArrayList(); + } + this.request.add(index, item); + return (A) this; } - public A addToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} - this.groups.add(index, item); - return (A)this; + public A addToUsages(String... items) { + if (this.usages == null) { + this.usages = new ArrayList(); + } + for (String item : items) { + this.usages.add(item); + } + return (A) this; } - public A setToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} - this.groups.set(index, item); return (A)this; + public A addToUsages(int index,String item) { + if (this.usages == null) { + this.usages = new ArrayList(); + } + this.usages.add(index, item); + return (A) this; } - public A addToGroups(java.lang.String... items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + protected void copyInstance(V1CertificateSigningRequestSpec instance) { + instance = instance != null ? instance : new V1CertificateSigningRequestSpec(); + if (instance != null) { + this.withExpirationSeconds(instance.getExpirationSeconds()); + this.withExtra(instance.getExtra()); + this.withGroups(instance.getGroups()); + this.withRequest(instance.getRequest()); + this.withSignerName(instance.getSignerName()); + this.withUid(instance.getUid()); + this.withUsages(instance.getUsages()); + this.withUsername(instance.getUsername()); + } } - public A addAllToGroups(Collection items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CertificateSigningRequestSpecFluent that = (V1CertificateSigningRequestSpecFluent) o; + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } + if (!(Objects.equals(extra, that.extra))) { + return false; + } + if (!(Objects.equals(groups, that.groups))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + if (!(Objects.equals(usages, that.usages))) { + return false; + } + if (!(Objects.equals(username, that.username))) { + return false; + } + return true; } - public A removeFromGroups(java.lang.String... items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + public Integer getExpirationSeconds() { + return this.expirationSeconds; } - public A removeAllFromGroups(Collection items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + public Map> getExtra() { + return this.extra; } - public List getGroups() { - return this.groups; + public String getFirstGroup() { + return this.groups.get(0); + } + + public String getFirstUsage() { + return this.usages.get(0); } public String getGroup(int index) { return this.groups.get(index); } - public String getFirstGroup() { - return this.groups.get(0); + public List getGroups() { + return this.groups; } public String getLastGroup() { return this.groups.get(groups.size() - 1); } + public String getLastUsage() { + return this.usages.get(usages.size() - 1); + } + public String getMatchingGroup(Predicate predicate) { for (String item : groups) { if (predicate.test(item)) { @@ -153,194 +234,316 @@ public String getMatchingGroup(Predicate predicate) { return null; } - public boolean hasMatchingGroup(Predicate predicate) { - for (String item : groups) { + public String getMatchingUsage(Predicate predicate) { + for (String item : usages) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withGroups(List groups) { - if (groups != null) { - this.groups = new ArrayList(); - for (String item : groups) { - this.addToGroups(item); + return item; } - } else { - this.groups = null; - } - return (A) this; - } - - public A withGroups(java.lang.String... groups) { - if (this.groups != null) { - this.groups.clear(); - _visitables.remove("groups"); - } - if (groups != null) { - for (String item : groups) { - this.addToGroups(item); - } - } - return (A) this; - } - - public boolean hasGroups() { - return this.groups != null && !this.groups.isEmpty(); - } - - public A withRequest(byte... request) { - if (this.request != null) { - this.request.clear(); - _visitables.remove("request"); - } - if (request != null) { - for (byte item : request) { - this.addToRequest(item); } - } - return (A) this; + return null; } public byte[] getRequest() { - int size = request != null ? request.size() : 0;; - byte[] result = new byte[size];; + int size = request != null ? request.size() : 0; + byte[] result = new byte[size]; if (size == 0) { return result; } - int index = 0;; + int index = 0; for (byte item : request) { result[index++] = item; } return result; } - public A addToRequest(int index,Byte item) { - if (this.request == null) {this.request = new ArrayList();} - this.request.add(index, item); - return (A)this; + public String getSignerName() { + return this.signerName; } - public A setToRequest(int index,Byte item) { - if (this.request == null) {this.request = new ArrayList();} - this.request.set(index, item); return (A)this; + public String getUid() { + return this.uid; } - public A addToRequest(java.lang.Byte... items) { - if (this.request == null) {this.request = new ArrayList();} - for (Byte item : items) {this.request.add(item);} return (A)this; + public String getUsage(int index) { + return this.usages.get(index); } - public A addAllToRequest(Collection items) { - if (this.request == null) {this.request = new ArrayList();} - for (Byte item : items) {this.request.add(item);} return (A)this; + public List getUsages() { + return this.usages; } - public A removeFromRequest(java.lang.Byte... items) { - if (this.request == null) return (A)this; - for (Byte item : items) { this.request.remove(item);} return (A)this; + public String getUsername() { + return this.username; } - public A removeAllFromRequest(Collection items) { - if (this.request == null) return (A)this; - for (Byte item : items) { this.request.remove(item);} return (A)this; + public boolean hasExpirationSeconds() { + return this.expirationSeconds != null; } - public boolean hasRequest() { - return this.request != null && !this.request.isEmpty(); + public boolean hasExtra() { + return this.extra != null; } - public String getSignerName() { - return this.signerName; + public boolean hasGroups() { + return this.groups != null && !(this.groups.isEmpty()); } - public A withSignerName(String signerName) { - this.signerName = signerName; - return (A) this; + public boolean hasMatchingGroup(Predicate predicate) { + for (String item : groups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasSignerName() { - return this.signerName != null; + public boolean hasMatchingUsage(Predicate predicate) { + for (String item : usages) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getUid() { - return this.uid; + public boolean hasRequest() { + return this.request != null && !(this.request.isEmpty()); } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + public boolean hasSignerName() { + return this.signerName != null; } public boolean hasUid() { return this.uid != null; } - public A addToUsages(int index,String item) { - if (this.usages == null) {this.usages = new ArrayList();} - this.usages.add(index, item); - return (A)this; + public boolean hasUsages() { + return this.usages != null && !(this.usages.isEmpty()); } - public A setToUsages(int index,String item) { - if (this.usages == null) {this.usages = new ArrayList();} - this.usages.set(index, item); return (A)this; + public boolean hasUsername() { + return this.username != null; } - public A addToUsages(java.lang.String... items) { - if (this.usages == null) {this.usages = new ArrayList();} - for (String item : items) {this.usages.add(item);} return (A)this; + public int hashCode() { + return Objects.hash(expirationSeconds, extra, groups, request, signerName, uid, usages, username); } - public A addAllToUsages(Collection items) { - if (this.usages == null) {this.usages = new ArrayList();} - for (String item : items) {this.usages.add(item);} return (A)this; + public A removeAllFromGroups(Collection items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; } - public A removeFromUsages(java.lang.String... items) { - if (this.usages == null) return (A)this; - for (String item : items) { this.usages.remove(item);} return (A)this; + public A removeAllFromRequest(Collection items) { + if (this.request == null) { + return (A) this; + } + for (Byte item : items) { + this.request.remove(item); + } + return (A) this; } public A removeAllFromUsages(Collection items) { - if (this.usages == null) return (A)this; - for (String item : items) { this.usages.remove(item);} return (A)this; + if (this.usages == null) { + return (A) this; + } + for (String item : items) { + this.usages.remove(item); + } + return (A) this; } - public List getUsages() { - return this.usages; + public A removeFromExtra(String key) { + if (this.extra == null) { + return (A) this; + } + if (key != null && this.extra != null) { + this.extra.remove(key); + } + return (A) this; } - public String getUsage(int index) { - return this.usages.get(index); + public A removeFromExtra(Map> map) { + if (this.extra == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.extra != null) { + this.extra.remove(key); + } + } + } + return (A) this; } - public String getFirstUsage() { - return this.usages.get(0); + public A removeFromGroups(String... items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; } - public String getLastUsage() { - return this.usages.get(usages.size() - 1); + public A removeFromRequest(Byte... items) { + if (this.request == null) { + return (A) this; + } + for (Byte item : items) { + this.request.remove(item); + } + return (A) this; } - public String getMatchingUsage(Predicate predicate) { - for (String item : usages) { - if (predicate.test(item)) { - return item; + public A removeFromUsages(String... items) { + if (this.usages == null) { + return (A) this; + } + for (String item : items) { + this.usages.remove(item); + } + return (A) this; + } + + public A setToGroups(int index,String item) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.set(index, item); + return (A) this; + } + + public A setToRequest(int index,Byte item) { + if (this.request == null) { + this.request = new ArrayList(); + } + this.request.set(index, item); + return (A) this; + } + + public A setToUsages(int index,String item) { + if (this.usages == null) { + this.usages = new ArrayList(); + } + this.usages.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expirationSeconds == null)) { + sb.append("expirationSeconds:"); + sb.append(expirationSeconds); + sb.append(","); + } + if (!(extra == null) && !(extra.isEmpty())) { + sb.append("extra:"); + sb.append(extra); + sb.append(","); + } + if (!(groups == null) && !(groups.isEmpty())) { + sb.append("groups:"); + sb.append(groups); + sb.append(","); + } + if (!(request == null) && !(request.isEmpty())) { + sb.append("request:"); + sb.append(request); + sb.append(","); + } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + sb.append(","); + } + if (!(usages == null) && !(usages.isEmpty())) { + sb.append("usages:"); + sb.append(usages); + sb.append(","); + } + if (!(username == null)) { + sb.append("username:"); + sb.append(username); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpirationSeconds(Integer expirationSeconds) { + this.expirationSeconds = expirationSeconds; + return (A) this; + } + + public A withExtra(Map> extra) { + if (extra == null) { + this.extra = null; + } else { + this.extra = new LinkedHashMap(extra); + } + return (A) this; + } + + public A withGroups(List groups) { + if (groups != null) { + this.groups = new ArrayList(); + for (String item : groups) { + this.addToGroups(item); } + } else { + this.groups = null; + } + return (A) this; + } + + public A withGroups(String... groups) { + if (this.groups != null) { + this.groups.clear(); + _visitables.remove("groups"); + } + if (groups != null) { + for (String item : groups) { + this.addToGroups(item); } - return null; + } + return (A) this; } - public boolean hasMatchingUsage(Predicate predicate) { - for (String item : usages) { - if (predicate.test(item)) { - return true; - } + public A withRequest(byte... request) { + if (this.request != null) { + this.request.clear(); + _visitables.remove("request"); + } + if (request != null) { + for (byte item : request) { + this.addToRequest(item); } - return false; + } + return (A) this; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; } public A withUsages(List usages) { @@ -355,7 +558,7 @@ public A withUsages(List usages) { return (A) this; } - public A withUsages(java.lang.String... usages) { + public A withUsages(String... usages) { if (this.usages != null) { this.usages.clear(); _visitables.remove("usages"); @@ -368,57 +571,9 @@ public A withUsages(java.lang.String... usages) { return (A) this; } - public boolean hasUsages() { - return this.usages != null && !this.usages.isEmpty(); - } - - public String getUsername() { - return this.username; - } - public A withUsername(String username) { this.username = username; return (A) this; } - public boolean hasUsername() { - return this.username != 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; - V1CertificateSigningRequestSpecFluent that = (V1CertificateSigningRequestSpecFluent) o; - if (!java.util.Objects.equals(expirationSeconds, that.expirationSeconds)) return false; - if (!java.util.Objects.equals(extra, that.extra)) return false; - if (!java.util.Objects.equals(groups, that.groups)) return false; - if (!java.util.Objects.equals(request, that.request)) return false; - if (!java.util.Objects.equals(signerName, that.signerName)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - if (!java.util.Objects.equals(usages, that.usages)) return false; - if (!java.util.Objects.equals(username, that.username)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(expirationSeconds, extra, groups, request, signerName, uid, usages, username, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds + ","); } - if (extra != null && !extra.isEmpty()) { sb.append("extra:"); sb.append(extra + ","); } - if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } - if (request != null && !request.isEmpty()) { sb.append("request:"); sb.append(request + ","); } - if (signerName != null) { sb.append("signerName:"); sb.append(signerName + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid + ","); } - if (usages != null && !usages.isEmpty()) { sb.append("usages:"); sb.append(usages + ","); } - if (username != null) { sb.append("username:"); sb.append(username); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java index 61d2f62116..093932a6ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CertificateSigningRequestStatusBuilder extends V1CertificateSigningRequestStatusFluent implements VisitableBuilder{ + + V1CertificateSigningRequestStatusFluent fluent; + public V1CertificateSigningRequestStatusBuilder() { this(new V1CertificateSigningRequestStatus()); } @@ -10,17 +14,16 @@ public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatu this(fluent, new V1CertificateSigningRequestStatus()); } - public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatusFluent fluent,V1CertificateSigningRequestStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1CertificateSigningRequestStatusFluent fluent; + public V1CertificateSigningRequestStatusBuilder(V1CertificateSigningRequestStatusFluent fluent,V1CertificateSigningRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CertificateSigningRequestStatus build() { V1CertificateSigningRequestStatus buildable = new V1CertificateSigningRequestStatus(); buildable.setCertificate(fluent.getCertificate()); @@ -28,5 +31,4 @@ public V1CertificateSigningRequestStatus build() { return buildable; } - } \ No newline at end of file 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..1d7e1ed3bb 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 @@ -1,172 +1,219 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Byte; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CertificateSigningRequestStatusFluent> extends BaseFluent{ +public class V1CertificateSigningRequestStatusFluent> extends BaseFluent{ + + private List certificate; + private ArrayList conditions; + public V1CertificateSigningRequestStatusFluent() { } public V1CertificateSigningRequestStatusFluent(V1CertificateSigningRequestStatus instance) { this.copyInstance(instance); } - private List certificate; - private ArrayList conditions; - - protected void copyInstance(V1CertificateSigningRequestStatus instance) { - instance = (instance != null ? instance : new V1CertificateSigningRequestStatus()); - if (instance != null) { - this.withCertificate(instance.getCertificate()); - this.withConditions(instance.getConditions()); - } + + public A addAllToCertificate(Collection items) { + if (this.certificate == null) { + this.certificate = new ArrayList(); + } + for (Byte item : items) { + this.certificate.add(item); + } + return (A) this; } - public A withCertificate(byte... certificate) { - if (this.certificate != null) { - this.certificate.clear(); - _visitables.remove("certificate"); + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); } - if (certificate != null) { - for (byte item : certificate) { - this.addToCertificate(item); - } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); } return (A) this; } - public byte[] getCertificate() { - int size = certificate != null ? certificate.size() : 0;; - byte[] result = new byte[size];; - if (size == 0) { - return result; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1CertificateSigningRequestCondition item) { + return new ConditionsNested(-1, item); + } + + public A addToCertificate(Byte... items) { + if (this.certificate == null) { + this.certificate = new ArrayList(); } - int index = 0;; - for (byte item : certificate) { - result[index++] = item; + for (Byte item : items) { + this.certificate.add(item); } - return result; + return (A) this; } public A addToCertificate(int index,Byte item) { - if (this.certificate == null) {this.certificate = new ArrayList();} + if (this.certificate == null) { + this.certificate = new ArrayList(); + } this.certificate.add(index, item); - return (A)this; - } - - public A setToCertificate(int index,Byte item) { - if (this.certificate == null) {this.certificate = new ArrayList();} - this.certificate.set(index, item); return (A)this; + return (A) this; } - public A addToCertificate(java.lang.Byte... items) { - if (this.certificate == null) {this.certificate = new ArrayList();} - for (Byte item : items) {this.certificate.add(item);} return (A)this; + public A addToConditions(V1CertificateSigningRequestCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A addAllToCertificate(Collection items) { - if (this.certificate == null) {this.certificate = new ArrayList();} - for (Byte item : items) {this.certificate.add(item);} return (A)this; + 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(builder); + conditions.add(index, builder); + } + return (A) this; } - public A removeFromCertificate(java.lang.Byte... items) { - if (this.certificate == null) return (A)this; - for (Byte item : items) { this.certificate.remove(item);} return (A)this; + public V1CertificateSigningRequestCondition buildCondition(int index) { + return this.conditions.get(index).build(); } - public A removeAllFromCertificate(Collection items) { - if (this.certificate == null) return (A)this; - for (Byte item : items) { this.certificate.remove(item);} return (A)this; + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; } - public boolean hasCertificate() { - return this.certificate != null && !this.certificate.isEmpty(); + public V1CertificateSigningRequestCondition buildFirstCondition() { + return this.conditions.get(0).build(); } - 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);} - return (A)this; + public V1CertificateSigningRequestCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); } - 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);} - return (A)this; + public V1CertificateSigningRequestCondition buildMatchingCondition(Predicate predicate) { + for (V1CertificateSigningRequestConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A addToConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + protected void copyInstance(V1CertificateSigningRequestStatus instance) { + instance = instance != null ? instance : new V1CertificateSigningRequestStatus(); + if (instance != null) { + this.withCertificate(instance.getCertificate()); + this.withConditions(instance.getConditions()); + } } - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... items) { - if (this.conditions == null) return (A)this; - for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1CertificateSigningRequestCondition item : items) {V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - 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()) { - V1CertificateSigningRequestConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; } } - return (A)this; - } - - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public V1CertificateSigningRequestCondition buildCondition(int index) { - return this.conditions.get(index).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CertificateSigningRequestStatusFluent that = (V1CertificateSigningRequestStatusFluent) o; + if (!(Objects.equals(certificate, that.certificate))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + return true; } - public V1CertificateSigningRequestCondition buildFirstCondition() { - return this.conditions.get(0).build(); + public byte[] getCertificate() { + int size = certificate != null ? certificate.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : certificate) { + result[index++] = item; + } + return result; } - public V1CertificateSigningRequestCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); + public boolean hasCertificate() { + return this.certificate != null && !(this.certificate.isEmpty()); } - public V1CertificateSigningRequestCondition buildMatchingCondition(Predicate predicate) { - for (V1CertificateSigningRequestConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } public boolean hasMatchingCondition(Predicate predicate) { @@ -178,114 +225,170 @@ public boolean hasMatchingCondition(Predicate conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); + public int hashCode() { + return Objects.hash(certificate, conditions); + } + + public A removeAllFromCertificate(Collection items) { + if (this.certificate == null) { + return (A) this; } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1CertificateSigningRequestCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + for (Byte item : items) { + this.certificate.remove(item); } return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1CertificateSigningRequestCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; } - if (conditions != null) { - for (V1CertificateSigningRequestCondition item : conditions) { - this.addToConditions(item); - } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public A removeFromCertificate(Byte... items) { + if (this.certificate == null) { + return (A) this; + } + for (Byte item : items) { + this.certificate.remove(item); + } + return (A) this; } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public A removeFromConditions(V1CertificateSigningRequestCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1CertificateSigningRequestCondition item : items) { + V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public ConditionsNested addNewConditionLike(V1CertificateSigningRequestCondition item) { - return new ConditionsNested(-1, item); + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1CertificateSigningRequestConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public ConditionsNested setNewConditionLike(int index,V1CertificateSigningRequestCondition 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 A setToCertificate(int index,Byte item) { + if (this.certificate == null) { + this.certificate = new ArrayList(); + } + this.certificate.set(index, item); + return (A) this; } - 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 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").add(builder); + conditions.set(index, builder); + } + return (A) this; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1CertificateSigningRequestCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (certificate != null && !certificate.isEmpty()) { sb.append("certificate:"); sb.append(certificate + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions); } - sb.append("}"); - return sb.toString(); + public A withConditions(V1CertificateSigningRequestCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1CertificateSigningRequestCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; } public class ConditionsNested extends V1CertificateSigningRequestConditionFluent> implements Nested{ + + V1CertificateSigningRequestConditionBuilder builder; + int index; + ConditionsNested(int index,V1CertificateSigningRequestCondition item) { this.index = index; this.builder = new V1CertificateSigningRequestConditionBuilder(this, item); } - V1CertificateSigningRequestConditionBuilder builder; - int index; - + public N and() { - return (N) V1CertificateSigningRequestStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1CertificateSigningRequestStatusFluent.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/V1CinderPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java index cc8cca8a00..ed5a6d26ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CinderPersistentVolumeSourceBuilder extends V1CinderPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1CinderPersistentVolumeSourceFluent fluent; + public V1CinderPersistentVolumeSourceBuilder() { this(new V1CinderPersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluen this(fluent, new V1CinderPersistentVolumeSource()); } - public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluent fluent,V1CinderPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CinderPersistentVolumeSourceFluent fluent; + public V1CinderPersistentVolumeSourceBuilder(V1CinderPersistentVolumeSourceFluent fluent,V1CinderPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CinderPersistentVolumeSource build() { V1CinderPersistentVolumeSource buildable = new V1CinderPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -30,5 +33,4 @@ public V1CinderPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java index 77b7d41e5f..aa89db5c43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java @@ -1,82 +1,146 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CinderPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1CinderPersistentVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private V1SecretReferenceBuilder secretRef; + private String volumeID; + public V1CinderPersistentVolumeSourceFluent() { } public V1CinderPersistentVolumeSourceFluent(V1CinderPersistentVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private V1SecretReferenceBuilder secretRef; - private String volumeID; + + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1CinderPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1CinderPersistentVolumeSource()); + instance = instance != null ? instance : new V1CinderPersistentVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withVolumeID(instance.getVolumeID()); - } + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withVolumeID(instance.getVolumeID()); + } } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CinderPersistentVolumeSourceFluent that = (V1CinderPersistentVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(volumeID, that.volumeID))) { + return false; + } + return true; + } + + public String getFsType() { + return this.fsType; } public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public String getVolumeID() { + return this.volumeID; + } + + public boolean hasFsType() { + return this.fsType != null; } public boolean hasReadOnly() { return this.readOnly != null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public boolean hasSecretRef() { + return this.secretRef != null; } - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); + public boolean hasVolumeID() { + return this.volumeID != null; + } + + public int hashCode() { + return Objects.hash(fsType, readOnly, secretRef, volumeID); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); } - return (A) this; + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(volumeID == null)) { + sb.append("volumeID:"); + sb.append(volumeID); + } + sb.append("}"); + return sb.toString(); } - public boolean hasSecretRef() { - return this.secretRef != null; + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } public SecretRefNested withNewSecretRef() { @@ -87,67 +151,39 @@ public SecretRefNested withNewSecretRefLike(V1SecretReference item) { return new SecretRefNested(item); } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); - } - - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public A withReadOnly() { + return withReadOnly(true); } - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; } - public String getVolumeID() { - return this.volumeID; + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; } public A withVolumeID(String volumeID) { this.volumeID = volumeID; return (A) this; } + public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ - public boolean hasVolumeID() { - return this.volumeID != 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; - V1CinderPersistentVolumeSourceFluent that = (V1CinderPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(volumeID, that.volumeID)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } - sb.append("}"); - return sb.toString(); - } + V1SecretReferenceBuilder builder; - public A withReadOnly() { - return withReadOnly(true); - } - public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1CinderPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -156,7 +192,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java index 7e8bef0d80..19deb1f22e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CinderVolumeSourceBuilder extends V1CinderVolumeSourceFluent implements VisitableBuilder{ + + V1CinderVolumeSourceFluent fluent; + public V1CinderVolumeSourceBuilder() { this(new V1CinderVolumeSource()); } @@ -10,17 +14,16 @@ public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent) { this(fluent, new V1CinderVolumeSource()); } - public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent,V1CinderVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CinderVolumeSourceBuilder(V1CinderVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1CinderVolumeSourceFluent fluent; + public V1CinderVolumeSourceBuilder(V1CinderVolumeSourceFluent fluent,V1CinderVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CinderVolumeSource build() { V1CinderVolumeSource buildable = new V1CinderVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -30,5 +33,4 @@ public V1CinderVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java index f55af79f5b..3dd213efce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java @@ -1,82 +1,146 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CinderVolumeSourceFluent> extends BaseFluent{ +public class V1CinderVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private V1LocalObjectReferenceBuilder secretRef; + private String volumeID; + public V1CinderVolumeSourceFluent() { } public V1CinderVolumeSourceFluent(V1CinderVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private V1LocalObjectReferenceBuilder secretRef; - private String volumeID; + + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1CinderVolumeSource instance) { - instance = (instance != null ? instance : new V1CinderVolumeSource()); + instance = instance != null ? instance : new V1CinderVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withVolumeID(instance.getVolumeID()); - } + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withVolumeID(instance.getVolumeID()); + } } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CinderVolumeSourceFluent that = (V1CinderVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(volumeID, that.volumeID))) { + return false; + } + return true; + } + + public String getFsType() { + return this.fsType; } public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public String getVolumeID() { + return this.volumeID; + } + + public boolean hasFsType() { + return this.fsType != null; } public boolean hasReadOnly() { return this.readOnly != null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public boolean hasSecretRef() { + return this.secretRef != null; } - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); + public boolean hasVolumeID() { + return this.volumeID != null; + } + + public int hashCode() { + return Objects.hash(fsType, readOnly, secretRef, volumeID); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); } - return (A) this; + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(volumeID == null)) { + sb.append("volumeID:"); + sb.append(volumeID); + } + sb.append("}"); + return sb.toString(); } - public boolean hasSecretRef() { - return this.secretRef != null; + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } public SecretRefNested withNewSecretRef() { @@ -87,67 +151,39 @@ public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { return new SecretRefNested(item); } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); - } - - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public A withReadOnly() { + return withReadOnly(true); } - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; } - public String getVolumeID() { - return this.volumeID; + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; } public A withVolumeID(String volumeID) { this.volumeID = volumeID; return (A) this; } + public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ - public boolean hasVolumeID() { - return this.volumeID != 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; - V1CinderVolumeSourceFluent that = (V1CinderVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(volumeID, that.volumeID)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeID, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } - sb.append("}"); - return sb.toString(); - } + V1LocalObjectReferenceBuilder builder; - public A withReadOnly() { - return withReadOnly(true); - } - public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1CinderVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -156,7 +192,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file 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/V1ClientIPConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java index 739a65c16c..a80298a348 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClientIPConfigBuilder extends V1ClientIPConfigFluent implements VisitableBuilder{ + + V1ClientIPConfigFluent fluent; + public V1ClientIPConfigBuilder() { this(new V1ClientIPConfig()); } @@ -10,22 +14,20 @@ public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent) { this(fluent, new V1ClientIPConfig()); } - public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent,V1ClientIPConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClientIPConfigBuilder(V1ClientIPConfig instance) { this.fluent = this; this.copyInstance(instance); } - V1ClientIPConfigFluent fluent; + public V1ClientIPConfigBuilder(V1ClientIPConfigFluent fluent,V1ClientIPConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClientIPConfig build() { V1ClientIPConfig buildable = new V1ClientIPConfig(); buildable.setTimeoutSeconds(fluent.getTimeoutSeconds()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java index 79f9bde607..8a5f4beb96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java @@ -1,64 +1,78 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ClientIPConfigFluent> extends BaseFluent{ +public class V1ClientIPConfigFluent> extends BaseFluent{ + + private Integer timeoutSeconds; + public V1ClientIPConfigFluent() { } public V1ClientIPConfigFluent(V1ClientIPConfig instance) { this.copyInstance(instance); } - private Integer timeoutSeconds; - + protected void copyInstance(V1ClientIPConfig instance) { - instance = (instance != null ? instance : new V1ClientIPConfig()); + instance = instance != null ? instance : new V1ClientIPConfig(); if (instance != null) { - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + this.withTimeoutSeconds(instance.getTimeoutSeconds()); + } } - public Integer getTimeoutSeconds() { - return this.timeoutSeconds; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ClientIPConfigFluent that = (V1ClientIPConfigFluent) o; + if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { + return false; + } + return true; } - public A withTimeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return (A) this; + public Integer getTimeoutSeconds() { + return this.timeoutSeconds; } public boolean hasTimeoutSeconds() { return this.timeoutSeconds != 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; - V1ClientIPConfigFluent that = (V1ClientIPConfigFluent) o; - if (!java.util.Objects.equals(timeoutSeconds, that.timeoutSeconds)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(timeoutSeconds, super.hashCode()); + return Objects.hash(timeoutSeconds); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (timeoutSeconds != null) { sb.append("timeoutSeconds:"); sb.append(timeoutSeconds); } + if (!(timeoutSeconds == null)) { + sb.append("timeoutSeconds:"); + sb.append(timeoutSeconds); + } sb.append("}"); return sb.toString(); } - + public A withTimeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java index 96f566833f..a64c98e5cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterRoleBindingBuilder extends V1ClusterRoleBindingFluent implements VisitableBuilder{ + + V1ClusterRoleBindingFluent fluent; + public V1ClusterRoleBindingBuilder() { this(new V1ClusterRoleBinding()); } @@ -10,17 +14,16 @@ public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent) { this(fluent, new V1ClusterRoleBinding()); } - public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent,V1ClusterRoleBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClusterRoleBindingBuilder(V1ClusterRoleBinding instance) { this.fluent = this; this.copyInstance(instance); } - V1ClusterRoleBindingFluent fluent; + public V1ClusterRoleBindingBuilder(V1ClusterRoleBindingFluent fluent,V1ClusterRoleBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterRoleBinding build() { V1ClusterRoleBinding buildable = new V1ClusterRoleBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1ClusterRoleBinding build() { return buildable; } - } \ 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 3f36b1aea0..342477ac2c 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 @@ -1,231 +1,398 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterRoleBindingFluent> extends BaseFluent{ +public class V1ClusterRoleBindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1RoleRefBuilder roleRef; + private ArrayList subjects; + public V1ClusterRoleBindingFluent() { } public V1ClusterRoleBindingFluent(V1ClusterRoleBinding instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1RoleRefBuilder roleRef; - private ArrayList subjects; + + 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; + } - protected void copyInstance(V1ClusterRoleBinding instance) { - instance = (instance != null ? instance : new V1ClusterRoleBinding()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRoleRef(instance.getRoleRef()); - this.withSubjects(instance.getSubjects()); - } + public SubjectsNested addNewSubject() { + return new SubjectsNested(-1, null); } - public String getApiVersion() { - return this.apiVersion; + public SubjectsNested addNewSubjectLike(RbacV1Subject item) { + return new SubjectsNested(-1, item); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + public A addToSubjects(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 boolean hasApiVersion() { - return this.apiVersion != null; + 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 String getKind() { - return this.kind; + public RbacV1Subject buildFirstSubject() { + return this.subjects.get(0).build(); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public RbacV1Subject buildLastSubject() { + return this.subjects.get(subjects.size() - 1).build(); } - public boolean hasKind() { - return this.kind != null; + public RbacV1Subject buildMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return item.build(); + } + } + return 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); + public V1RoleRef buildRoleRef() { + return this.roleRef != null ? this.roleRef.build() : null; + } + + public RbacV1Subject buildSubject(int index) { + return this.subjects.get(index).build(); + } + + public List buildSubjects() { + return this.subjects != null ? build(subjects) : null; + } + + protected void copyInstance(V1ClusterRoleBinding instance) { + instance = instance != null ? instance : new V1ClusterRoleBinding(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRoleRef(instance.getRoleRef()); + this.withSubjects(instance.getSubjects()); } - return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; + public SubjectsNested editFirstSubject() { + if (subjects.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(0, this.buildSubject(0)); } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public SubjectsNested editLastSubject() { + int index = subjects.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public SubjectsNested editMatchingSubject(Predicate predicate) { + int index = -1; + for (int i = 0;i < subjects.size();i++) { + if (predicate.test(subjects.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1RoleRef buildRoleRef() { - return this.roleRef != null ? this.roleRef.build() : null; + public RoleRefNested editOrNewRoleRef() { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(new V1RoleRefBuilder().build())); } - public A withRoleRef(V1RoleRef roleRef) { - this._visitables.remove("roleRef"); - if (roleRef != null) { - this.roleRef = new V1RoleRefBuilder(roleRef); - this._visitables.get("roleRef").add(this.roleRef); - } else { - this.roleRef = null; - this._visitables.get("roleRef").remove(this.roleRef); - } - return (A) this; + public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(item)); } - public boolean hasRoleRef() { - return this.roleRef != null; + public RoleRefNested editRoleRef() { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(null)); } - public RoleRefNested withNewRoleRef() { - return new RoleRefNested(null); + public SubjectsNested editSubject(int index) { + if (subjects.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } - public RoleRefNested withNewRoleRefLike(V1RoleRef item) { - return new RoleRefNested(item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ClusterRoleBindingFluent that = (V1ClusterRoleBindingFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(roleRef, that.roleRef))) { + return false; + } + if (!(Objects.equals(subjects, that.subjects))) { + return false; + } + return true; } - public RoleRefNested editRoleRef() { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(null)); + public String getApiVersion() { + return this.apiVersion; } - public RoleRefNested editOrNewRoleRef() { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(new V1RoleRefBuilder().build())); + public String getKind() { + return this.kind; } - public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(item)); + public boolean hasApiVersion() { + return this.apiVersion != null; } - 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(index, builder); subjects.add(index, builder);} - return (A)this; + public boolean hasKind() { + return this.kind != null; } - 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").set(index, builder); subjects.set(index, builder);} - return (A)this; + public boolean hasMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 boolean hasMetadata() { + return this.metadata != null; } - 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 boolean hasRoleRef() { + return this.roleRef != null; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { - if (this.subjects == null) 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 boolean hasSubjects() { + return this.subjects != null && !(this.subjects.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); } public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) return (A)this; - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + if (this.subjects == null) { + 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 removeFromSubjects(RbacV1Subject... items) { + if (this.subjects == null) { + 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) { - if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); - final List visitables = _visitables.get("subjects"); + if (subjects == null) { + return (A) this; + } + Iterator each = subjects.iterator(); + List visitables = _visitables.get("subjects"); while (each.hasNext()) { - RbacV1SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + RbacV1SubjectBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildSubjects() { - return this.subjects != null ? build(subjects) : null; + public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { + return new SubjectsNested(index, item); } - public RbacV1Subject buildSubject(int index) { - return this.subjects.get(index).build(); + 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 RbacV1Subject buildFirstSubject() { - return this.subjects.get(0).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(roleRef == null)) { + sb.append("roleRef:"); + sb.append(roleRef); + sb.append(","); + } + if (!(subjects == null) && !(subjects.isEmpty())) { + sb.append("subjects:"); + sb.append(subjects); + } + sb.append("}"); + return sb.toString(); } - public RbacV1Subject buildLastSubject() { - return this.subjects.get(subjects.size() - 1).build(); + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public RbacV1Subject buildMatchingSubject(Predicate predicate) { - for (RbacV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public boolean hasMatchingSubject(Predicate predicate) { - for (RbacV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public RoleRefNested withNewRoleRef() { + return new RoleRefNested(null); + } + + public RoleRefNested withNewRoleRefLike(V1RoleRef item) { + return new RoleRefNested(item); + } + + public A withRoleRef(V1RoleRef roleRef) { + this._visitables.remove("roleRef"); + if (roleRef != null) { + this.roleRef = new V1RoleRefBuilder(roleRef); + this._visitables.get("roleRef").add(this.roleRef); + } else { + this.roleRef = null; + this._visitables.get("roleRef").remove(this.roleRef); + } + return (A) this; } public A withSubjects(List subjects) { @@ -243,7 +410,7 @@ public A withSubjects(List subjects) { return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subjects) { + public A withSubjects(RbacV1Subject... subjects) { if (this.subjects != null) { this.subjects.clear(); _visitables.remove("subjects"); @@ -255,82 +422,14 @@ public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subje } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSubjects() { - return this.subjects != null && !this.subjects.isEmpty(); - } - - public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); - } - - public SubjectsNested addNewSubjectLike(RbacV1Subject item) { - return new SubjectsNested(-1, item); - } - - public SubjectsNested setNewSubjectLike(int index,RbacV1Subject 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 V1ObjectMetaFluent> implements Nested{ MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ClusterRoleBindingFluent.this.withMetadata(builder.build()); } @@ -339,14 +438,15 @@ public N endMetadata() { return and(); } - } public class RoleRefNested extends V1RoleRefFluent> implements Nested{ + + V1RoleRefBuilder builder; + RoleRefNested(V1RoleRef item) { this.builder = new V1RoleRefBuilder(this, item); } - V1RoleRefBuilder builder; - + public N and() { return (N) V1ClusterRoleBindingFluent.this.withRoleRef(builder.build()); } @@ -355,25 +455,24 @@ public N endRoleRef() { return and(); } - } public class SubjectsNested extends RbacV1SubjectFluent> implements Nested{ + + RbacV1SubjectBuilder builder; + int index; + SubjectsNested(int index,RbacV1Subject item) { this.index = index; this.builder = new RbacV1SubjectBuilder(this, item); } - RbacV1SubjectBuilder builder; - int index; - + public N and() { - return (N) V1ClusterRoleBindingFluent.this.setToSubjects(index,builder.build()); + return (N) V1ClusterRoleBindingFluent.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/V1ClusterRoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java index 0eea4fdf1e..c85b099956 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterRoleBindingListBuilder extends V1ClusterRoleBindingListFluent implements VisitableBuilder{ + + V1ClusterRoleBindingListFluent fluent; + public V1ClusterRoleBindingListBuilder() { this(new V1ClusterRoleBindingList()); } @@ -10,17 +14,16 @@ public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent) this(fluent, new V1ClusterRoleBindingList()); } - public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent,V1ClusterRoleBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingList instance) { this.fluent = this; this.copyInstance(instance); } - V1ClusterRoleBindingListFluent fluent; + public V1ClusterRoleBindingListBuilder(V1ClusterRoleBindingListFluent fluent,V1ClusterRoleBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterRoleBindingList build() { V1ClusterRoleBindingList buildable = new V1ClusterRoleBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ClusterRoleBindingList build() { return buildable; } - } \ No newline at end of file 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..1265baed39 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterRoleBindingListFluent> extends BaseFluent{ +public class V1ClusterRoleBindingListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ClusterRoleBindingListFluent() { } public V1ClusterRoleBindingListFluent(V1ClusterRoleBindingList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ClusterRoleBindingList instance) { - instance = (instance != null ? instance : new V1ClusterRoleBindingList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ClusterRoleBinding item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ClusterRoleBinding... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ClusterRoleBinding item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ClusterRoleBinding buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ClusterRoleBinding buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { - if (this.items == null) return (A)this; - for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ClusterRoleBinding buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ClusterRoleBinding item : items) {V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ClusterRoleBinding buildMatchingItem(Predicate predicate) { + for (V1ClusterRoleBindingBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ClusterRoleBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ClusterRoleBindingList instance) { + instance = instance != null ? instance : new V1ClusterRoleBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ClusterRoleBinding buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ClusterRoleBinding buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ClusterRoleBinding buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ClusterRoleBindingListFluent that = (V1ClusterRoleBindingListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ClusterRoleBinding buildMatchingItem(Predicate predicate) { - for (V1ClusterRoleBindingBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ClusterRoleBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRoleBinding item : items) { + V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ClusterRoleBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ClusterRoleBinding item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... items) { + public A withItems(V1ClusterRoleBinding... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ClusterRoleBinding... i return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ClusterRoleBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ClusterRoleBinding 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ClusterRoleBindingFluent> implements Nested{ - 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; - V1ClusterRoleBindingListFluent that = (V1ClusterRoleBindingListFluent) 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()); - } + V1ClusterRoleBindingBuilder builder; + int index; - 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 V1ClusterRoleBindingFluent> implements Nested{ ItemsNested(int index,V1ClusterRoleBinding item) { this.index = index; this.builder = new V1ClusterRoleBindingBuilder(this, item); } - V1ClusterRoleBindingBuilder builder; - int index; - + public N and() { - return (N) V1ClusterRoleBindingListFluent.this.setToItems(index,builder.build()); + return (N) V1ClusterRoleBindingListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ClusterRoleBindingListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java index 6f10dc2fde..bb2dc084d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterRoleBuilder extends V1ClusterRoleFluent implements VisitableBuilder{ + + V1ClusterRoleFluent fluent; + public V1ClusterRoleBuilder() { this(new V1ClusterRole()); } @@ -10,17 +14,16 @@ public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent) { this(fluent, new V1ClusterRole()); } - public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent,V1ClusterRole instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClusterRoleBuilder(V1ClusterRole instance) { this.fluent = this; this.copyInstance(instance); } - V1ClusterRoleFluent fluent; + public V1ClusterRoleBuilder(V1ClusterRoleFluent fluent,V1ClusterRole instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterRole build() { V1ClusterRole buildable = new V1ClusterRole(); buildable.setAggregationRule(fluent.buildAggregationRule()); @@ -31,5 +34,4 @@ public V1ClusterRole build() { return buildable; } - } \ No newline at end of file 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..8f8f55384f 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 @@ -1,231 +1,398 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterRoleFluent> extends BaseFluent{ +public class V1ClusterRoleFluent> extends BaseFluent{ + + private V1AggregationRuleBuilder aggregationRule; + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private ArrayList rules; + public V1ClusterRoleFluent() { } public V1ClusterRoleFluent(V1ClusterRole instance) { this.copyInstance(instance); } - private V1AggregationRuleBuilder aggregationRule; - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private ArrayList rules; + + public A addAllToRules(Collection items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; + } - protected void copyInstance(V1ClusterRole instance) { - instance = (instance != null ? instance : new V1ClusterRole()); - if (instance != null) { - this.withAggregationRule(instance.getAggregationRule()); - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRules(instance.getRules()); - } + public RulesNested addNewRule() { + return new RulesNested(-1, null); } - public V1AggregationRule buildAggregationRule() { - return this.aggregationRule != null ? this.aggregationRule.build() : null; + public RulesNested addNewRuleLike(V1PolicyRule item) { + return new RulesNested(-1, item); } - public A withAggregationRule(V1AggregationRule aggregationRule) { - this._visitables.remove("aggregationRule"); - if (aggregationRule != null) { - this.aggregationRule = new V1AggregationRuleBuilder(aggregationRule); - this._visitables.get("aggregationRule").add(this.aggregationRule); + public A addToRules(V1PolicyRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; + } + + 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 { - this.aggregationRule = null; - this._visitables.get("aggregationRule").remove(this.aggregationRule); + _visitables.get("rules").add(builder); + rules.add(index, builder); } return (A) this; } - public boolean hasAggregationRule() { - return this.aggregationRule != null; + public V1AggregationRule buildAggregationRule() { + return this.aggregationRule != null ? this.aggregationRule.build() : null; } - public AggregationRuleNested withNewAggregationRule() { - return new AggregationRuleNested(null); + public V1PolicyRule buildFirstRule() { + return this.rules.get(0).build(); } - public AggregationRuleNested withNewAggregationRuleLike(V1AggregationRule item) { - return new AggregationRuleNested(item); + public V1PolicyRule buildLastRule() { + return this.rules.get(rules.size() - 1).build(); + } + + public V1PolicyRule buildMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PolicyRule buildRule(int index) { + return this.rules.get(index).build(); + } + + public List buildRules() { + return this.rules != null ? build(rules) : null; + } + + protected void copyInstance(V1ClusterRole instance) { + instance = instance != null ? instance : new V1ClusterRole(); + if (instance != null) { + this.withAggregationRule(instance.getAggregationRule()); + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRules(instance.getRules()); + } } public AggregationRuleNested editAggregationRule() { - return withNewAggregationRuleLike(java.util.Optional.ofNullable(buildAggregationRule()).orElse(null)); + return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(null)); + } + + public RulesNested editFirstRule() { + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); + } + + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public AggregationRuleNested editOrNewAggregationRule() { - return withNewAggregationRuleLike(java.util.Optional.ofNullable(buildAggregationRule()).orElse(new V1AggregationRuleBuilder().build())); + return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(new V1AggregationRuleBuilder().build())); } public AggregationRuleNested editOrNewAggregationRuleLike(V1AggregationRule item) { - return withNewAggregationRuleLike(java.util.Optional.ofNullable(buildAggregationRule()).orElse(item)); + return this.withNewAggregationRuleLike(Optional.ofNullable(this.buildAggregationRule()).orElse(item)); } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ClusterRoleFluent that = (V1ClusterRoleFluent) o; + if (!(Objects.equals(aggregationRule, that.aggregationRule))) { + return false; + } + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(rules, that.rules))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasAggregationRule() { + return this.aggregationRule != null; } - public boolean hasKind() { - return this.kind != null; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasKind() { + return this.kind != 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 hasMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasMetadata() { return this.metadata != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public int hashCode() { + return Objects.hash(aggregationRule, apiVersion, kind, metadata, rules); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public A removeFromRules(V1PolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1PolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - 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);} - return (A)this; + public RulesNested setNewRuleLike(int index,V1PolicyRule item) { + return new RulesNested(index, item); } public A setToRules(int index,V1PolicyRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + 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);} - return (A)this; + 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.V1PolicyRule... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(aggregationRule == null)) { + sb.append("aggregationRule:"); + sb.append(aggregationRule); + sb.append(","); + } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(rules == null) && !(rules.isEmpty())) { + sb.append("rules:"); + sb.append(rules); + } + sb.append("}"); + return sb.toString(); } - public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public A withAggregationRule(V1AggregationRule aggregationRule) { + this._visitables.remove("aggregationRule"); + if (aggregationRule != null) { + this.aggregationRule = new V1AggregationRuleBuilder(aggregationRule); + this._visitables.get("aggregationRule").add(this.aggregationRule); + } else { + this.aggregationRule = null; + this._visitables.get("aggregationRule").remove(this.aggregationRule); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - if (this.rules == null) return (A)this; - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public A withKind(String kind) { + this.kind = kind; + 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()) { - V1PolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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 List buildRules() { - return this.rules != null ? build(rules) : null; - } - - public V1PolicyRule buildRule(int index) { - return this.rules.get(index).build(); + return (A) this; } - public V1PolicyRule buildFirstRule() { - return this.rules.get(0).build(); + public AggregationRuleNested withNewAggregationRule() { + return new AggregationRuleNested(null); } - public V1PolicyRule buildLastRule() { - return this.rules.get(rules.size() - 1).build(); + public AggregationRuleNested withNewAggregationRuleLike(V1AggregationRule item) { + return new AggregationRuleNested(item); } - public V1PolicyRule buildMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public MetadataNested withNewMetadata() { + return new MetadataNested(null); } - public boolean hasMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } public A withRules(List rules) { @@ -243,7 +410,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { + public A withRules(V1PolicyRule... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -255,82 +422,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { } return (A) this; } + public class AggregationRuleNested extends V1AggregationRuleFluent> implements Nested{ - public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); - } - - public RulesNested addNewRule() { - return new RulesNested(-1, null); - } - - public RulesNested addNewRuleLike(V1PolicyRule item) { - return new RulesNested(-1, item); - } - - public RulesNested setNewRuleLike(int index,V1PolicyRule 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 V1AggregationRuleFluent> implements Nested{ AggregationRuleNested(V1AggregationRule item) { this.builder = new V1AggregationRuleBuilder(this, item); } - V1AggregationRuleBuilder builder; - + public N and() { return (N) V1ClusterRoleFluent.this.withAggregationRule(builder.build()); } @@ -339,14 +438,15 @@ public N endAggregationRule() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ClusterRoleFluent.this.withMetadata(builder.build()); } @@ -355,25 +455,24 @@ public N endMetadata() { return and(); } - } public class RulesNested extends V1PolicyRuleFluent> implements Nested{ + + V1PolicyRuleBuilder builder; + int index; + RulesNested(int index,V1PolicyRule item) { this.index = index; this.builder = new V1PolicyRuleBuilder(this, item); } - V1PolicyRuleBuilder builder; - int index; - + public N and() { - return (N) V1ClusterRoleFluent.this.setToRules(index,builder.build()); + return (N) V1ClusterRoleFluent.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/V1ClusterRoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java index 4216823371..c7d9d8853f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterRoleListBuilder extends V1ClusterRoleListFluent implements VisitableBuilder{ + + V1ClusterRoleListFluent fluent; + public V1ClusterRoleListBuilder() { this(new V1ClusterRoleList()); } @@ -10,17 +14,16 @@ public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent) { this(fluent, new V1ClusterRoleList()); } - public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent,V1ClusterRoleList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ClusterRoleListBuilder(V1ClusterRoleList instance) { this.fluent = this; this.copyInstance(instance); } - V1ClusterRoleListFluent fluent; + public V1ClusterRoleListBuilder(V1ClusterRoleListFluent fluent,V1ClusterRoleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterRoleList build() { V1ClusterRoleList buildable = new V1ClusterRoleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ClusterRoleList build() { return buildable; } - } \ No newline at end of file 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..93ce666db9 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterRoleListFluent> extends BaseFluent{ +public class V1ClusterRoleListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ClusterRoleListFluent() { } public V1ClusterRoleListFluent(V1ClusterRoleList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ClusterRoleList instance) { - instance = (instance != null ? instance : new V1ClusterRoleList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ClusterRole item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ClusterRole... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ClusterRole item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ClusterRole buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ClusterRole buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { - if (this.items == null) return (A)this; - for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ClusterRole buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ClusterRole item : items) {V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ClusterRole buildMatchingItem(Predicate predicate) { + for (V1ClusterRoleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ClusterRoleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ClusterRoleList instance) { + instance = instance != null ? instance : new V1ClusterRoleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ClusterRole buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ClusterRole buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ClusterRole buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ClusterRoleListFluent that = (V1ClusterRoleListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ClusterRole buildMatchingItem(Predicate predicate) { - for (V1ClusterRoleBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ClusterRole... items) { + if (this.items == null) { + return (A) this; + } + for (V1ClusterRole item : items) { + V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ClusterRoleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ClusterRole item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { + public A withItems(V1ClusterRole... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ClusterRole... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ClusterRole item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ClusterRole 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ClusterRoleFluent> implements Nested{ - 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; - V1ClusterRoleListFluent that = (V1ClusterRoleListFluent) 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()); - } + V1ClusterRoleBuilder builder; + int index; - 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 V1ClusterRoleFluent> implements Nested{ ItemsNested(int index,V1ClusterRole item) { this.index = index; this.builder = new V1ClusterRoleBuilder(this, item); } - V1ClusterRoleBuilder builder; - int index; - + public N and() { - return (N) V1ClusterRoleListFluent.this.setToItems(index,builder.build()); + return (N) V1ClusterRoleListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ClusterRoleListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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 index 0d359a231f..0ba27a6a1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ClusterTrustBundleProjectionBuilder extends V1ClusterTrustBundleProjectionFluent implements VisitableBuilder{ + + V1ClusterTrustBundleProjectionFluent fluent; + public V1ClusterTrustBundleProjectionBuilder() { this(new V1ClusterTrustBundleProjection()); } @@ -10,17 +14,16 @@ public V1ClusterTrustBundleProjectionBuilder(V1ClusterTrustBundleProjectionFluen 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 V1ClusterTrustBundleProjectionBuilder(V1ClusterTrustBundleProjectionFluent fluent,V1ClusterTrustBundleProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ClusterTrustBundleProjection build() { V1ClusterTrustBundleProjection buildable = new V1ClusterTrustBundleProjection(); buildable.setLabelSelector(fluent.buildLabelSelector()); @@ -31,5 +34,4 @@ public V1ClusterTrustBundleProjection build() { 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 index 5fdc3effec..c0885d7c51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java @@ -1,170 +1,212 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ClusterTrustBundleProjectionFluent> extends BaseFluent{ - public V1ClusterTrustBundleProjectionFluent() { - } - - public V1ClusterTrustBundleProjectionFluent(V1ClusterTrustBundleProjection instance) { - this.copyInstance(instance); - } +public class V1ClusterTrustBundleProjectionFluent> extends BaseFluent{ + 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 V1ClusterTrustBundleProjectionFluent() { } + public V1ClusterTrustBundleProjectionFluent(V1ClusterTrustBundleProjection instance) { + this.copyInstance(instance); + } + 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); + 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()); } - 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)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } public LabelSelectorNested editOrNewLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.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; + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ClusterTrustBundleProjectionFluent that = (V1ClusterTrustBundleProjectionFluent) o; + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } 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 String getSignerName() { + return this.signerName; } - public boolean hasPath() { - return this.path != null; + public boolean hasLabelSelector() { + return this.labelSelector != null; } - public String getSignerName() { - return this.signerName; + public boolean hasName() { + return this.name != null; } - public A withSignerName(String signerName) { - this.signerName = signerName; - return (A) this; + public boolean hasOptional() { + return this.optional != null; } - public boolean hasSignerName() { - return this.signerName != null; + public boolean hasPath() { + return this.path != 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 boolean hasSignerName() { + return this.signerName != null; } public int hashCode() { - return java.util.Objects.hash(labelSelector, name, optional, path, signerName, super.hashCode()); + return Objects.hash(labelSelector, name, optional, path, signerName); } 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); } + if (!(labelSelector == null)) { + sb.append("labelSelector:"); + sb.append(labelSelector); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + } sb.append("}"); return sb.toString(); } + 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 A withName(String name) { + this.name = name; + return (A) this; + } + + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); + } + + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { + return new LabelSelectorNested(item); + } + public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + LabelSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1ClusterTrustBundleProjectionFluent.this.withLabelSelector(builder.build()); } @@ -173,7 +215,5 @@ public N endLabelSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java index 4bc06643f8..3dc5cd8f8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ComponentConditionBuilder extends V1ComponentConditionFluent implements VisitableBuilder{ + + V1ComponentConditionFluent fluent; + public V1ComponentConditionBuilder() { this(new V1ComponentCondition()); } @@ -10,17 +14,16 @@ public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent) { this(fluent, new V1ComponentCondition()); } - public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent,V1ComponentCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ComponentConditionBuilder(V1ComponentCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1ComponentConditionFluent fluent; + public V1ComponentConditionBuilder(V1ComponentConditionFluent fluent,V1ComponentCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ComponentCondition build() { V1ComponentCondition buildable = new V1ComponentCondition(); buildable.setError(fluent.getError()); @@ -30,5 +33,4 @@ public V1ComponentCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java index 5ee80030d3..c7dee02114 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java @@ -1,114 +1,146 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ComponentConditionFluent> extends BaseFluent{ +public class V1ComponentConditionFluent> extends BaseFluent{ + + private String error; + private String message; + private String status; + private String type; + public V1ComponentConditionFluent() { } public V1ComponentConditionFluent(V1ComponentCondition instance) { this.copyInstance(instance); } - private String error; - private String message; - private String status; - private String type; - + protected void copyInstance(V1ComponentCondition instance) { - instance = (instance != null ? instance : new V1ComponentCondition()); + instance = instance != null ? instance : new V1ComponentCondition(); if (instance != null) { - this.withError(instance.getError()); - this.withMessage(instance.getMessage()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public String getError() { - return this.error; + this.withError(instance.getError()); + this.withMessage(instance.getMessage()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } - public A withError(String error) { - this.error = error; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ComponentConditionFluent that = (V1ComponentConditionFluent) o; + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasError() { - return this.error != null; + public String getError() { + return this.error; } 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 getStatus() { return this.status; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public String getType() { + return this.type; } - public boolean hasStatus() { - return this.status != null; + public boolean hasError() { + return this.error != null; } - public String getType() { - return this.type; + public boolean hasMessage() { + return this.message != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } 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; - V1ComponentConditionFluent that = (V1ComponentConditionFluent) o; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(message, that.message)) 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(error, message, status, type, super.hashCode()); + return Objects.hash(error, message, status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } - + public A withError(String error) { + this.error = error; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java index cf1ef2e483..e605420e23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ComponentStatusBuilder extends V1ComponentStatusFluent implements VisitableBuilder{ + + V1ComponentStatusFluent fluent; + public V1ComponentStatusBuilder() { this(new V1ComponentStatus()); } @@ -10,17 +14,16 @@ public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent) { this(fluent, new V1ComponentStatus()); } - public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent,V1ComponentStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ComponentStatusBuilder(V1ComponentStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ComponentStatusFluent fluent; + public V1ComponentStatusBuilder(V1ComponentStatusFluent fluent,V1ComponentStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ComponentStatus build() { V1ComponentStatus buildable = new V1ComponentStatus(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ComponentStatus build() { return buildable; } - } \ 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..05816e308a 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ComponentStatusFluent> extends BaseFluent{ +public class V1ComponentStatusFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList conditions; + private String kind; + private V1ObjectMetaBuilder metadata; + public V1ComponentStatusFluent() { } public V1ComponentStatusFluent(V1ComponentStatus instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList conditions; - private String kind; - private V1ObjectMetaBuilder metadata; - - protected void copyInstance(V1ComponentStatus instance) { - instance = (instance != null ? instance : new V1ComponentStatus()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withConditions(instance.getConditions()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ConditionsNested addNewConditionLike(V1ComponentCondition item) { + return new ConditionsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToConditions(V1ComponentCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } public A addToConditions(int index,V1ComponentCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ComponentCondition buildCondition(int index) { + return this.conditions.get(index).build(); } - public A addToConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; } - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public V1ComponentCondition buildFirstCondition() { + return this.conditions.get(0).build(); } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... items) { - if (this.conditions == null) return (A)this; - for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public V1ComponentCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1ComponentCondition item : items) {V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public V1ComponentCondition buildMatchingCondition(Predicate predicate) { + for (V1ComponentConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ComponentConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ComponentStatus instance) { + instance = instance != null ? instance : new V1ComponentStatus(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withConditions(instance.getConditions()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ComponentCondition buildCondition(int index) { - return this.conditions.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public V1ComponentCondition buildFirstCondition() { - return this.conditions.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ComponentCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ComponentStatusFluent that = (V1ComponentStatusFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ComponentCondition buildMatchingCondition(Predicate predicate) { - for (V1ComponentConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingCondition(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingCondition(Predicate predi return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, conditions, kind, metadata); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1ComponentCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ComponentCondition item : items) { + V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ComponentConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1ComponentCondition item) { + return new ConditionsNested(index, item); + } + + 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").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withConditions(List conditions) { if (this.conditions != null) { this._visitables.get("conditions").clear(); @@ -148,7 +335,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1ComponentCondition... conditions) { + public A withConditions(V1ComponentCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -161,64 +348,11 @@ public A withConditions(io.kubernetes.client.openapi.models.V1ComponentCondition return (A) this; } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1ComponentCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1ComponentCondition 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 withNewMetadata() { return new MetadataNested(null); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } + public class ConditionsNested extends V1ComponentConditionFluent> implements Nested{ - 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 boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ComponentStatusFluent that = (V1ComponentStatusFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) 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, conditions, kind, metadata, super.hashCode()); - } + V1ComponentConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - 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 ConditionsNested extends V1ComponentConditionFluent> implements Nested{ ConditionsNested(int index,V1ComponentCondition item) { this.index = index; this.builder = new V1ComponentConditionBuilder(this, item); } - V1ComponentConditionBuilder builder; - int index; - + public N and() { - return (N) V1ComponentStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1ComponentStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ComponentStatusFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java index 8b4c18c0aa..b47bbd3ca0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ComponentStatusListBuilder extends V1ComponentStatusListFluent implements VisitableBuilder{ + + V1ComponentStatusListFluent fluent; + public V1ComponentStatusListBuilder() { this(new V1ComponentStatusList()); } @@ -10,17 +14,16 @@ public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent) { this(fluent, new V1ComponentStatusList()); } - public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent,V1ComponentStatusList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ComponentStatusListBuilder(V1ComponentStatusList instance) { this.fluent = this; this.copyInstance(instance); } - V1ComponentStatusListFluent fluent; + public V1ComponentStatusListBuilder(V1ComponentStatusListFluent fluent,V1ComponentStatusList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ComponentStatusList build() { V1ComponentStatusList buildable = new V1ComponentStatusList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ComponentStatusList build() { return buildable; } - } \ No newline at end of file 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..cc5d056556 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ComponentStatusListFluent> extends BaseFluent{ +public class V1ComponentStatusListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ComponentStatusListFluent() { } public V1ComponentStatusListFluent(V1ComponentStatusList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ComponentStatusList instance) { - instance = (instance != null ? instance : new V1ComponentStatusList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ComponentStatus item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ComponentStatus... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ComponentStatus item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ComponentStatus buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ComponentStatus buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { - if (this.items == null) return (A)this; - for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ComponentStatus buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ComponentStatus item : items) {V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ComponentStatus buildMatchingItem(Predicate predicate) { + for (V1ComponentStatusBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ComponentStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ComponentStatusList instance) { + instance = instance != null ? instance : new V1ComponentStatusList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ComponentStatus buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ComponentStatus buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ComponentStatus buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ComponentStatusListFluent that = (V1ComponentStatusListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ComponentStatus buildMatchingItem(Predicate predicate) { - for (V1ComponentStatusBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ComponentStatus... items) { + if (this.items == null) { + return (A) this; + } + for (V1ComponentStatus item : items) { + V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ComponentStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ComponentStatus item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ComponentStatus... items) { + public A withItems(V1ComponentStatus... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ComponentStatus... 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(V1ComponentStatus item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ComponentStatus 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ComponentStatusFluent> implements Nested{ - 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; - V1ComponentStatusListFluent that = (V1ComponentStatusListFluent) 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()); - } + V1ComponentStatusBuilder builder; + int index; - 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 V1ComponentStatusFluent> implements Nested{ ItemsNested(int index,V1ComponentStatus item) { this.index = index; this.builder = new V1ComponentStatusBuilder(this, item); } - V1ComponentStatusBuilder builder; - int index; - + public N and() { - return (N) V1ComponentStatusListFluent.this.setToItems(index,builder.build()); + return (N) V1ComponentStatusListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ComponentStatusListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java index 0df0e4e609..00054f30f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConditionBuilder extends V1ConditionFluent implements VisitableBuilder{ + + V1ConditionFluent fluent; + public V1ConditionBuilder() { this(new V1Condition()); } @@ -10,17 +14,16 @@ public V1ConditionBuilder(V1ConditionFluent fluent) { this(fluent, new V1Condition()); } - public V1ConditionBuilder(V1ConditionFluent fluent,V1Condition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConditionBuilder(V1Condition instance) { this.fluent = this; this.copyInstance(instance); } - V1ConditionFluent fluent; + public V1ConditionBuilder(V1ConditionFluent fluent,V1Condition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Condition build() { V1Condition buildable = new V1Condition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +35,4 @@ public V1Condition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java index 6d2e490b4f..97cffc6b7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java @@ -1,150 +1,194 @@ package io.kubernetes.client.openapi.models; -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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ConditionFluent> extends BaseFluent{ - public V1ConditionFluent() { - } - - public V1ConditionFluent(V1Condition instance) { - this.copyInstance(instance); - } +public class V1ConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private Long observedGeneration; private String reason; private String status; private String type; + + public V1ConditionFluent() { + } + public V1ConditionFluent(V1Condition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1Condition instance) { - instance = (instance != null ? instance : new V1Condition()); + instance = instance != null ? instance : new V1Condition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ConditionFluent that = (V1ConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public Long getObservedGeneration() { + return this.observedGeneration; } - public boolean hasMessage() { - return this.message != null; + public String getReason() { + return this.reason; } - public Long getObservedGeneration() { - return this.observedGeneration; + public String getStatus() { + return this.status; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; + public String getType() { + return this.type; } - public boolean hasObservedGeneration() { - return this.observedGeneration != null; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public String getReason() { - return this.reason; + public boolean hasMessage() { + return this.message != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ConditionFluent that = (V1ConditionFluent) 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(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; - return true; + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - 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 (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); } - sb.append("}"); - return sb.toString(); + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java index 48b9dcc705..e01d63a163 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapBuilder extends V1ConfigMapFluent implements VisitableBuilder{ + + V1ConfigMapFluent fluent; + public V1ConfigMapBuilder() { this(new V1ConfigMap()); } @@ -10,17 +14,16 @@ public V1ConfigMapBuilder(V1ConfigMapFluent fluent) { this(fluent, new V1ConfigMap()); } - public V1ConfigMapBuilder(V1ConfigMapFluent fluent,V1ConfigMap instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapBuilder(V1ConfigMap instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapFluent fluent; + public V1ConfigMapBuilder(V1ConfigMapFluent fluent,V1ConfigMap instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMap build() { V1ConfigMap buildable = new V1ConfigMap(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +35,4 @@ public V1ConfigMap build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java index fa4a049340..7eedb14c21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapEnvSourceBuilder extends V1ConfigMapEnvSourceFluent implements VisitableBuilder{ + + V1ConfigMapEnvSourceFluent fluent; + public V1ConfigMapEnvSourceBuilder() { this(new V1ConfigMapEnvSource()); } @@ -10,17 +14,16 @@ public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent) { this(fluent, new V1ConfigMapEnvSource()); } - public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent,V1ConfigMapEnvSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapEnvSourceFluent fluent; + public V1ConfigMapEnvSourceBuilder(V1ConfigMapEnvSourceFluent fluent,V1ConfigMapEnvSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapEnvSource build() { V1ConfigMapEnvSource buildable = new V1ConfigMapEnvSource(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1ConfigMapEnvSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java index e00cb38f58..9bb682d1f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java @@ -1,85 +1,105 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapEnvSourceFluent> extends BaseFluent{ +public class V1ConfigMapEnvSourceFluent> extends BaseFluent{ + + private String name; + private Boolean optional; + public V1ConfigMapEnvSourceFluent() { } public V1ConfigMapEnvSourceFluent(V1ConfigMapEnvSource instance) { this.copyInstance(instance); } - private String name; - private Boolean optional; - + protected void copyInstance(V1ConfigMapEnvSource instance) { - instance = (instance != null ? instance : new V1ConfigMapEnvSource()); + instance = instance != null ? instance : new V1ConfigMapEnvSource(); if (instance != null) { - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ConfigMapEnvSourceFluent that = (V1ConfigMapEnvSourceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public Boolean getOptional() { return this.optional; } - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; + public boolean hasName() { + return this.name != null; } public boolean hasOptional() { return this.optional != 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; - V1ConfigMapEnvSourceFluent that = (V1ConfigMapEnvSourceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, optional, super.hashCode()); + return Objects.hash(name, optional); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } sb.append("}"); return sb.toString(); } + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } - + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java index 473267acc3..3a8cf5c4ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java @@ -1,116 +1,281 @@ 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.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapFluent> extends BaseFluent{ - public V1ConfigMapFluent() { - } - - public V1ConfigMapFluent(V1ConfigMap instance) { - this.copyInstance(instance); - } +public class V1ConfigMapFluent> extends BaseFluent{ + private String apiVersion; private Map binaryData; private Map data; private Boolean immutable; private String kind; private V1ObjectMetaBuilder metadata; + + public V1ConfigMapFluent() { + } + + public V1ConfigMapFluent(V1ConfigMap instance) { + this.copyInstance(instance); + } + + public A addToBinaryData(Map map) { + if (this.binaryData == null && map != null) { + this.binaryData = new LinkedHashMap(); + } + if (map != null) { + this.binaryData.putAll(map); + } + return (A) this; + } + + public A addToBinaryData(String key,byte[] value) { + if (this.binaryData == null && key != null && value != null) { + this.binaryData = new LinkedHashMap(); + } + if (key != null && value != null) { + this.binaryData.put(key, value); + } + return (A) this; + } + + public A addToData(Map map) { + if (this.data == null && map != null) { + this.data = new LinkedHashMap(); + } + if (map != null) { + this.data.putAll(map); + } + return (A) this; + } + + public A addToData(String key,String value) { + if (this.data == null && key != null && value != null) { + this.data = new LinkedHashMap(); + } + if (key != null && value != null) { + this.data.put(key, value); + } + return (A) this; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1ConfigMap instance) { - instance = (instance != null ? instance : new V1ConfigMap()); + instance = instance != null ? instance : new V1ConfigMap(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withBinaryData(instance.getBinaryData()); - this.withData(instance.getData()); - this.withImmutable(instance.getImmutable()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withBinaryData(instance.getBinaryData()); + this.withData(instance.getData()); + this.withImmutable(instance.getImmutable()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ConfigMapFluent that = (V1ConfigMapFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(binaryData, that.binaryData))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(immutable, that.immutable))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } public String getApiVersion() { return this.apiVersion; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public Map getBinaryData() { + return this.binaryData; + } + + public Map getData() { + return this.data; + } + + public Boolean getImmutable() { + return this.immutable; + } + + public String getKind() { + return this.kind; } public boolean hasApiVersion() { return this.apiVersion != null; } - public A addToBinaryData(String key,byte[] value) { - if(this.binaryData == null && key != null && value != null) { this.binaryData = new LinkedHashMap(); } - if(key != null && value != null) {this.binaryData.put(key, value);} return (A)this; + public boolean hasBinaryData() { + return this.binaryData != null; } - public A addToBinaryData(Map map) { - if(this.binaryData == null && map != null) { this.binaryData = new LinkedHashMap(); } - if(map != null) { this.binaryData.putAll(map);} return (A)this; + public boolean hasData() { + return this.data != null; } - public A removeFromBinaryData(String key) { - if(this.binaryData == null) { return (A) this; } - if(key != null && this.binaryData != null) {this.binaryData.remove(key);} return (A)this; + public boolean hasImmutable() { + return this.immutable != null; } - public A removeFromBinaryData(Map map) { - if(this.binaryData == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.binaryData != null){this.binaryData.remove(key);}}} return (A)this; + public boolean hasKind() { + return this.kind != null; } - public Map getBinaryData() { - return this.binaryData; + public boolean hasMetadata() { + return this.metadata != null; } - public A withBinaryData(Map binaryData) { - if (binaryData == null) { - this.binaryData = null; - } else { - this.binaryData = new LinkedHashMap(binaryData); + public int hashCode() { + return Objects.hash(apiVersion, binaryData, data, immutable, kind, metadata); + } + + public A removeFromBinaryData(String key) { + if (this.binaryData == null) { + return (A) this; + } + if (key != null && this.binaryData != null) { + this.binaryData.remove(key); } return (A) this; } - public boolean hasBinaryData() { - return this.binaryData != null; + public A removeFromBinaryData(Map map) { + if (this.binaryData == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.binaryData != null) { + this.binaryData.remove(key); + } + } + } + return (A) this; } - public A addToData(String key,String value) { - if(this.data == null && key != null && value != null) { this.data = new LinkedHashMap(); } - if(key != null && value != null) {this.data.put(key, value);} return (A)this; + public A removeFromData(String key) { + if (this.data == null) { + return (A) this; + } + if (key != null && this.data != null) { + this.data.remove(key); + } + return (A) this; } - public A addToData(Map map) { - if(this.data == null && map != null) { this.data = new LinkedHashMap(); } - if(map != null) { this.data.putAll(map);} return (A)this; + public A removeFromData(Map map) { + if (this.data == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.data != null) { + this.data.remove(key); + } + } + } + return (A) this; } - public A removeFromData(String key) { - if(this.data == null) { return (A) this; } - if(key != null && this.data != null) {this.data.remove(key);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(binaryData == null) && !(binaryData.isEmpty())) { + sb.append("binaryData:"); + sb.append(binaryData); + sb.append(","); + } + if (!(data == null) && !(data.isEmpty())) { + sb.append("data:"); + sb.append(data); + sb.append(","); + } + if (!(immutable == null)) { + sb.append("immutable:"); + sb.append(immutable); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); } - public A removeFromData(Map map) { - if(this.data == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.data != null){this.data.remove(key);}}} return (A)this; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public Map getData() { - return this.data; + public A withBinaryData(Map binaryData) { + if (binaryData == null) { + this.binaryData = null; + } else { + this.binaryData = new LinkedHashMap(binaryData); + } + return (A) this; } public A withData(Map data) { @@ -122,12 +287,8 @@ public A withData(Map data) { return (A) this; } - public boolean hasData() { - return this.data != null; - } - - public Boolean getImmutable() { - return this.immutable; + public A withImmutable() { + return withImmutable(true); } public A withImmutable(Boolean immutable) { @@ -135,27 +296,11 @@ public A withImmutable(Boolean immutable) { return (A) this; } - public boolean hasImmutable() { - return this.immutable != 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) { @@ -168,10 +313,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -179,59 +320,14 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - 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 boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ConfigMapFluent that = (V1ConfigMapFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(binaryData, that.binaryData)) return false; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(immutable, that.immutable)) 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, binaryData, data, immutable, kind, metadata, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (binaryData != null && !binaryData.isEmpty()) { sb.append("binaryData:"); sb.append(binaryData + ","); } - if (data != null && !data.isEmpty()) { sb.append("data:"); sb.append(data + ","); } - if (immutable != null) { sb.append("immutable:"); sb.append(immutable + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata); } - sb.append("}"); - return sb.toString(); - } + V1ObjectMetaBuilder builder; - public A withImmutable() { - return withImmutable(true); - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ConfigMapFluent.this.withMetadata(builder.build()); } @@ -240,7 +336,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java index 9e612d3ed7..386abf2662 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapKeySelectorBuilder extends V1ConfigMapKeySelectorFluent implements VisitableBuilder{ + + V1ConfigMapKeySelectorFluent fluent; + public V1ConfigMapKeySelectorBuilder() { this(new V1ConfigMapKeySelector()); } @@ -10,17 +14,16 @@ public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent) { this(fluent, new V1ConfigMapKeySelector()); } - public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent,V1ConfigMapKeySelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelector instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapKeySelectorFluent fluent; + public V1ConfigMapKeySelectorBuilder(V1ConfigMapKeySelectorFluent fluent,V1ConfigMapKeySelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapKeySelector build() { V1ConfigMapKeySelector buildable = new V1ConfigMapKeySelector(); buildable.setKey(fluent.getKey()); @@ -29,5 +32,4 @@ public V1ConfigMapKeySelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java index 11cdd6d52e..19ecd5c42e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java @@ -1,102 +1,128 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapKeySelectorFluent> extends BaseFluent{ +public class V1ConfigMapKeySelectorFluent> extends BaseFluent{ + + private String key; + private String name; + private Boolean optional; + public V1ConfigMapKeySelectorFluent() { } public V1ConfigMapKeySelectorFluent(V1ConfigMapKeySelector instance) { this.copyInstance(instance); } - private String key; - private String name; - private Boolean optional; - + protected void copyInstance(V1ConfigMapKeySelector instance) { - instance = (instance != null ? instance : new V1ConfigMapKeySelector()); + instance = instance != null ? instance : new V1ConfigMapKeySelector(); if (instance != null) { - this.withKey(instance.getKey()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } - } - - public String getKey() { - return this.key; + this.withKey(instance.getKey()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } - public A withKey(String key) { - this.key = key; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ConfigMapKeySelectorFluent that = (V1ConfigMapKeySelectorFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + return true; } - public boolean hasKey() { - return this.key != null; + public String getKey() { + return this.key; } 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 hasKey() { + return this.key != null; } - public boolean hasOptional() { - return this.optional != null; + 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; - V1ConfigMapKeySelectorFluent that = (V1ConfigMapKeySelectorFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; - return true; + public boolean hasOptional() { + return this.optional != null; } public int hashCode() { - return java.util.Objects.hash(key, name, optional, super.hashCode()); + return Objects.hash(key, name, optional); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } sb.append("}"); return sb.toString(); } + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } - + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java index 0c3a54bc96..1f684213a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapListBuilder extends V1ConfigMapListFluent implements VisitableBuilder{ + + V1ConfigMapListFluent fluent; + public V1ConfigMapListBuilder() { this(new V1ConfigMapList()); } @@ -10,17 +14,16 @@ public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent) { this(fluent, new V1ConfigMapList()); } - public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent,V1ConfigMapList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapListBuilder(V1ConfigMapList instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapListFluent fluent; + public V1ConfigMapListBuilder(V1ConfigMapListFluent fluent,V1ConfigMapList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapList build() { V1ConfigMapList buildable = new V1ConfigMapList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ConfigMapList build() { return buildable; } - } \ No newline at end of file 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..5c15a7b0c9 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapListFluent> extends BaseFluent{ +public class V1ConfigMapListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ConfigMapListFluent() { } public V1ConfigMapListFluent(V1ConfigMapList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ConfigMapList instance) { - instance = (instance != null ? instance : new V1ConfigMapList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ConfigMap item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ConfigMap... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ConfigMap item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ConfigMap buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ConfigMap buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { - if (this.items == null) return (A)this; - for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ConfigMap buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ConfigMap item : items) {V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ConfigMap buildMatchingItem(Predicate predicate) { + for (V1ConfigMapBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ConfigMapBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ConfigMapList instance) { + instance = instance != null ? instance : new V1ConfigMapList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ConfigMap buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ConfigMap buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ConfigMap buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ConfigMapListFluent that = (V1ConfigMapListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ConfigMap buildMatchingItem(Predicate predicate) { - for (V1ConfigMapBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ConfigMap... items) { + if (this.items == null) { + return (A) this; + } + for (V1ConfigMap item : items) { + V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ConfigMapBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ConfigMap item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { + public A withItems(V1ConfigMap... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ConfigMap... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ConfigMap item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ConfigMap 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ConfigMapFluent> implements Nested{ - 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; - V1ConfigMapListFluent that = (V1ConfigMapListFluent) 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()); - } + V1ConfigMapBuilder builder; + int index; - 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 V1ConfigMapFluent> implements Nested{ ItemsNested(int index,V1ConfigMap item) { this.index = index; this.builder = new V1ConfigMapBuilder(this, item); } - V1ConfigMapBuilder builder; - int index; - + public N and() { - return (N) V1ConfigMapListFluent.this.setToItems(index,builder.build()); + return (N) V1ConfigMapListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ConfigMapListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java index f97c83f156..3531cb4a2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapNodeConfigSourceBuilder extends V1ConfigMapNodeConfigSourceFluent implements VisitableBuilder{ + + V1ConfigMapNodeConfigSourceFluent fluent; + public V1ConfigMapNodeConfigSourceBuilder() { this(new V1ConfigMapNodeConfigSource()); } @@ -10,17 +14,16 @@ public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent f this(fluent, new V1ConfigMapNodeConfigSource()); } - public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,V1ConfigMapNodeConfigSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapNodeConfigSourceFluent fluent; + public V1ConfigMapNodeConfigSourceBuilder(V1ConfigMapNodeConfigSourceFluent fluent,V1ConfigMapNodeConfigSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapNodeConfigSource build() { V1ConfigMapNodeConfigSource buildable = new V1ConfigMapNodeConfigSource(); buildable.setKubeletConfigKey(fluent.getKubeletConfigKey()); @@ -31,5 +34,4 @@ public V1ConfigMapNodeConfigSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java index 6f26c2348d..ee4a49f9f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java @@ -1,131 +1,169 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapNodeConfigSourceFluent> extends BaseFluent{ - public V1ConfigMapNodeConfigSourceFluent() { - } - - public V1ConfigMapNodeConfigSourceFluent(V1ConfigMapNodeConfigSource instance) { - this.copyInstance(instance); - } +public class V1ConfigMapNodeConfigSourceFluent> extends BaseFluent{ + private String kubeletConfigKey; private String name; private String namespace; private String resourceVersion; private String uid; + + public V1ConfigMapNodeConfigSourceFluent() { + } + public V1ConfigMapNodeConfigSourceFluent(V1ConfigMapNodeConfigSource instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ConfigMapNodeConfigSource instance) { - instance = (instance != null ? instance : new V1ConfigMapNodeConfigSource()); + instance = instance != null ? instance : new V1ConfigMapNodeConfigSource(); if (instance != null) { - this.withKubeletConfigKey(instance.getKubeletConfigKey()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResourceVersion(instance.getResourceVersion()); - this.withUid(instance.getUid()); - } - } - - public String getKubeletConfigKey() { - return this.kubeletConfigKey; + this.withKubeletConfigKey(instance.getKubeletConfigKey()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResourceVersion(instance.getResourceVersion()); + this.withUid(instance.getUid()); + } } - public A withKubeletConfigKey(String kubeletConfigKey) { - this.kubeletConfigKey = kubeletConfigKey; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ConfigMapNodeConfigSourceFluent that = (V1ConfigMapNodeConfigSourceFluent) o; + if (!(Objects.equals(kubeletConfigKey, that.kubeletConfigKey))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public boolean hasKubeletConfigKey() { - return this.kubeletConfigKey != null; + public String getKubeletConfigKey() { + return this.kubeletConfigKey; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getNamespace() { + return this.namespace; } - public boolean hasName() { - return this.name != null; + public String getResourceVersion() { + return this.resourceVersion; } - public String getNamespace() { - return this.namespace; + public String getUid() { + return this.uid; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public boolean hasKubeletConfigKey() { + return this.kubeletConfigKey != null; + } + + public boolean hasName() { + return this.name != null; } public boolean hasNamespace() { return this.namespace != null; } - public String getResourceVersion() { - return this.resourceVersion; + public boolean hasResourceVersion() { + return this.resourceVersion != null; } - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; + public boolean hasUid() { + return this.uid != null; } - public boolean hasResourceVersion() { - return this.resourceVersion != null; + public int hashCode() { + return Objects.hash(kubeletConfigKey, name, namespace, resourceVersion, uid); } - public String getUid() { - return this.uid; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(kubeletConfigKey == null)) { + sb.append("kubeletConfigKey:"); + sb.append(kubeletConfigKey); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); } - public A withUid(String uid) { - this.uid = uid; + public A withKubeletConfigKey(String kubeletConfigKey) { + this.kubeletConfigKey = kubeletConfigKey; return (A) this; } - public boolean hasUid() { - return this.uid != null; + public A withName(String name) { + this.name = name; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ConfigMapNodeConfigSourceFluent that = (V1ConfigMapNodeConfigSourceFluent) o; - if (!java.util.Objects.equals(kubeletConfigKey, that.kubeletConfigKey)) 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(resourceVersion, that.resourceVersion)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - return true; + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(kubeletConfigKey, name, namespace, resourceVersion, uid, super.hashCode()); + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (kubeletConfigKey != null) { sb.append("kubeletConfigKey:"); sb.append(kubeletConfigKey + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } - sb.append("}"); - return sb.toString(); + public A withUid(String uid) { + this.uid = uid; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java index 9c6b26c9b8..dd090688b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapProjectionBuilder extends V1ConfigMapProjectionFluent implements VisitableBuilder{ + + V1ConfigMapProjectionFluent fluent; + public V1ConfigMapProjectionBuilder() { this(new V1ConfigMapProjection()); } @@ -10,17 +14,16 @@ public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent) { this(fluent, new V1ConfigMapProjection()); } - public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent,V1ConfigMapProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapProjectionBuilder(V1ConfigMapProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapProjectionFluent fluent; + public V1ConfigMapProjectionBuilder(V1ConfigMapProjectionFluent fluent,V1ConfigMapProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapProjection build() { V1ConfigMapProjection buildable = new V1ConfigMapProjection(); buildable.setItems(fluent.buildItems()); @@ -29,5 +32,4 @@ public V1ConfigMapProjection build() { return buildable; } - } \ No newline at end of file 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..c35a64ebc8 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 @@ -1,100 +1,94 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapProjectionFluent> extends BaseFluent{ - public V1ConfigMapProjectionFluent() { - } - - public V1ConfigMapProjectionFluent(V1ConfigMapProjection instance) { - this.copyInstance(instance); - } +public class V1ConfigMapProjectionFluent> extends BaseFluent{ + private ArrayList items; private String name; private Boolean optional; - - protected void copyInstance(V1ConfigMapProjection instance) { - instance = (instance != null ? instance : new V1ConfigMapProjection()); - if (instance != null) { - this.withItems(instance.getItems()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } - } - - 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);} - return (A)this; + + public V1ConfigMapProjectionFluent() { } - 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);} - return (A)this; + public V1ConfigMapProjectionFluent(V1ConfigMapProjection instance) { + this.copyInstance(instance); } - - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(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 (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(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 (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public ItemsNested addNewItemLike(V1KeyToPath item) { + return new ItemsNested(-1, item); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A addToItems(V1KeyToPath... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(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()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + items.add(index, builder); } - return (A)this; + return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1KeyToPath buildFirstItem() { + return this.items.get(0).build(); } public V1KeyToPath buildItem(int index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1KeyToPath buildLastItem() { @@ -110,155 +104,245 @@ public V1KeyToPath buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1ConfigMapProjection instance) { + instance = instance != null ? instance : new V1ConfigMapProjection(); + if (instance != null) { + this.withItems(instance.getItems()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } - return (A) this; + return this.setNewItemLike(index, this.buildItem(index)); } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ConfigMapProjectionFluent that = (V1ConfigMapProjectionFluent) o; + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + return true; } - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + public String getName() { + return this.name; } - public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); + public Boolean getOptional() { + return this.optional; } - public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); } - 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 boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 boolean hasName() { + return this.name != null; } - 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 boolean hasOptional() { + return this.optional != null; } - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } - public A withName(String name) { - this.name = name; + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } return (A) this; } - public boolean hasName() { - return this.name != null; + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public Boolean getOptional() { - return this.optional; + public ItemsNested setNewItemLike(int index,V1KeyToPath item) { + return new ItemsNested(index, item); } - public A withOptional(Boolean optional) { - this.optional = optional; + 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").add(builder); + items.set(index, builder); + } return (A) this; } - public boolean hasOptional() { - return this.optional != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } + sb.append("}"); + return sb.toString(); } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ConfigMapProjectionFluent that = (V1ConfigMapProjectionFluent) o; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; - return true; + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(items, name, optional, super.hashCode()); + public A withItems(V1KeyToPath... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } - sb.append("}"); - return sb.toString(); + public A withName(String name) { + this.name = name; + return (A) this; } public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } public class ItemsNested extends V1KeyToPathFluent> implements Nested{ + + V1KeyToPathBuilder builder; + int index; + ItemsNested(int index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - V1KeyToPathBuilder builder; - int index; - + public N and() { - return (N) V1ConfigMapProjectionFluent.this.setToItems(index,builder.build()); + return (N) V1ConfigMapProjectionFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java index 3c9fbefe1f..749e9b07b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ConfigMapVolumeSourceBuilder extends V1ConfigMapVolumeSourceFluent implements VisitableBuilder{ + + V1ConfigMapVolumeSourceFluent fluent; + public V1ConfigMapVolumeSourceBuilder() { this(new V1ConfigMapVolumeSource()); } @@ -10,17 +14,16 @@ public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent) { this(fluent, new V1ConfigMapVolumeSource()); } - public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent,V1ConfigMapVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ConfigMapVolumeSourceFluent fluent; + public V1ConfigMapVolumeSourceBuilder(V1ConfigMapVolumeSourceFluent fluent,V1ConfigMapVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ConfigMapVolumeSource build() { V1ConfigMapVolumeSource buildable = new V1ConfigMapVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -30,5 +33,4 @@ public V1ConfigMapVolumeSource build() { return buildable; } - } \ No newline at end of file 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..9c123d7f76 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 @@ -1,116 +1,96 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; +import java.lang.Boolean; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ConfigMapVolumeSourceFluent> extends BaseFluent{ - public V1ConfigMapVolumeSourceFluent() { - } - - public V1ConfigMapVolumeSourceFluent(V1ConfigMapVolumeSource instance) { - this.copyInstance(instance); - } +public class V1ConfigMapVolumeSourceFluent> extends BaseFluent{ + private Integer defaultMode; private ArrayList items; private String name; private Boolean optional; - - protected void copyInstance(V1ConfigMapVolumeSource instance) { - instance = (instance != null ? instance : new V1ConfigMapVolumeSource()); - if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withItems(instance.getItems()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + + public V1ConfigMapVolumeSourceFluent() { } - public Integer getDefaultMode() { - return this.defaultMode; + public V1ConfigMapVolumeSourceFluent(V1ConfigMapVolumeSource instance) { + this.copyInstance(instance); } - - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } return (A) this; } - public boolean hasDefaultMode() { - return this.defaultMode != null; - } - - 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);} - 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);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(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 (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public ItemsNested addNewItemLike(V1KeyToPath item) { + return new ItemsNested(-1, item); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A addToItems(V1KeyToPath... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(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()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToItems(int index,V1KeyToPath item) { + if (this.items == null) { + this.items = new ArrayList(); } - return (A)this; + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(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 List buildItems() { - return this.items != null ? build(items) : null; + public V1KeyToPath buildFirstItem() { + return this.items.get(0).build(); } public V1KeyToPath buildItem(int index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1KeyToPath buildLastItem() { @@ -126,157 +106,267 @@ public V1KeyToPath buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1ConfigMapVolumeSource instance) { + instance = instance != null ? instance : new V1ConfigMapVolumeSource(); + if (instance != null) { + this.withDefaultMode(instance.getDefaultMode()); + this.withItems(instance.getItems()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; + return this.setNewItemLike(0, this.buildItem(0)); } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); } - return (A) this; + return this.setNewItemLike(index, this.buildItem(index)); } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ConfigMapVolumeSourceFluent that = (V1ConfigMapVolumeSourceFluent) o; + if (!(Objects.equals(defaultMode, that.defaultMode))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + return true; } - public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); + public Integer getDefaultMode() { + return this.defaultMode; } - public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + public String getName() { + return this.name; } - 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 Boolean getOptional() { + return this.optional; } - 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 boolean hasDefaultMode() { + return this.defaultMode != null; } - 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 boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); } - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1KeyToPathBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getName() { - return this.name; + public boolean hasName() { + return this.name != null; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasOptional() { + return this.optional != null; } - public boolean hasName() { - return this.name != null; + public int hashCode() { + return Objects.hash(defaultMode, items, name, optional); } - public Boolean getOptional() { - return this.optional; + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } - public A withOptional(Boolean optional) { - this.optional = optional; + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } return (A) this; } - public boolean hasOptional() { - return this.optional != null; + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ConfigMapVolumeSourceFluent that = (V1ConfigMapVolumeSourceFluent) o; - if (!java.util.Objects.equals(defaultMode, that.defaultMode)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; - return true; + public ItemsNested setNewItemLike(int index,V1KeyToPath item) { + return new ItemsNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(defaultMode, items, name, optional, super.hashCode()); + 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").add(builder); + items.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (defaultMode != null) { sb.append("defaultMode:"); sb.append(defaultMode + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } + if (!(defaultMode == null)) { + sb.append("defaultMode:"); + sb.append(defaultMode); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } sb.append("}"); return sb.toString(); } + public A withDefaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1KeyToPath... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } public class ItemsNested extends V1KeyToPathFluent> implements Nested{ + + V1KeyToPathBuilder builder; + int index; + ItemsNested(int index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - V1KeyToPathBuilder builder; - int index; - + public N and() { - return (N) V1ConfigMapVolumeSourceFluent.this.setToItems(index,builder.build()); + return (N) V1ConfigMapVolumeSourceFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java index d8dc7e5333..33c392ad7c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerBuilder extends V1ContainerFluent implements VisitableBuilder{ + + V1ContainerFluent fluent; + public V1ContainerBuilder() { this(new V1Container()); } @@ -10,17 +14,16 @@ public V1ContainerBuilder(V1ContainerFluent fluent) { this(fluent, new V1Container()); } - public V1ContainerBuilder(V1ContainerFluent fluent,V1Container instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerBuilder(V1Container instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerFluent fluent; + public V1ContainerBuilder(V1ContainerFluent fluent,V1Container instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Container build() { V1Container buildable = new V1Container(); buildable.setArgs(fluent.getArgs()); @@ -37,6 +40,7 @@ public V1Container build() { buildable.setResizePolicy(fluent.buildResizePolicy()); buildable.setResources(fluent.buildResources()); buildable.setRestartPolicy(fluent.getRestartPolicy()); + buildable.setRestartPolicyRules(fluent.buildRestartPolicyRules()); buildable.setSecurityContext(fluent.buildSecurityContext()); buildable.setStartupProbe(fluent.buildStartupProbe()); buildable.setStdin(fluent.getStdin()); @@ -50,5 +54,4 @@ public V1Container build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java new file mode 100644 index 0000000000..c8b84dc627 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ContainerExtendedResourceRequestBuilder extends V1ContainerExtendedResourceRequestFluent implements VisitableBuilder{ + + V1ContainerExtendedResourceRequestFluent fluent; + + public V1ContainerExtendedResourceRequestBuilder() { + this(new V1ContainerExtendedResourceRequest()); + } + + public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequestFluent fluent) { + this(fluent, new V1ContainerExtendedResourceRequest()); + } + + public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ContainerExtendedResourceRequestBuilder(V1ContainerExtendedResourceRequestFluent fluent,V1ContainerExtendedResourceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ContainerExtendedResourceRequest build() { + V1ContainerExtendedResourceRequest buildable = new V1ContainerExtendedResourceRequest(); + buildable.setContainerName(fluent.getContainerName()); + buildable.setRequestName(fluent.getRequestName()); + buildable.setResourceName(fluent.getResourceName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java new file mode 100644 index 0000000000..a622020da3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ContainerExtendedResourceRequestFluent> extends BaseFluent{ + + private String containerName; + private String requestName; + private String resourceName; + + public V1ContainerExtendedResourceRequestFluent() { + } + + public V1ContainerExtendedResourceRequestFluent(V1ContainerExtendedResourceRequest instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1ContainerExtendedResourceRequest instance) { + instance = instance != null ? instance : new V1ContainerExtendedResourceRequest(); + if (instance != null) { + this.withContainerName(instance.getContainerName()); + this.withRequestName(instance.getRequestName()); + this.withResourceName(instance.getResourceName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerExtendedResourceRequestFluent that = (V1ContainerExtendedResourceRequestFluent) o; + if (!(Objects.equals(containerName, that.containerName))) { + return false; + } + if (!(Objects.equals(requestName, that.requestName))) { + return false; + } + if (!(Objects.equals(resourceName, that.resourceName))) { + return false; + } + return true; + } + + public String getContainerName() { + return this.containerName; + } + + public String getRequestName() { + return this.requestName; + } + + public String getResourceName() { + return this.resourceName; + } + + public boolean hasContainerName() { + return this.containerName != null; + } + + public boolean hasRequestName() { + return this.requestName != null; + } + + public boolean hasResourceName() { + return this.resourceName != null; + } + + public int hashCode() { + return Objects.hash(containerName, requestName, resourceName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(containerName == null)) { + sb.append("containerName:"); + sb.append(containerName); + sb.append(","); + } + if (!(requestName == null)) { + sb.append("requestName:"); + sb.append(requestName); + sb.append(","); + } + if (!(resourceName == null)) { + sb.append("resourceName:"); + sb.append(resourceName); + } + sb.append("}"); + return sb.toString(); + } + + public A withContainerName(String containerName) { + this.containerName = containerName; + return (A) this; + } + + public A withRequestName(String requestName) { + this.requestName = requestName; + return (A) this; + } + + public A withResourceName(String resourceName) { + this.resourceName = resourceName; + return (A) this; + } + +} \ No newline at end of file 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..3599049c24 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 @@ -1,29 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerFluent> extends BaseFluent{ - public V1ContainerFluent() { - } - - public V1ContainerFluent(V1Container instance) { - this.copyInstance(instance); - } +public class V1ContainerFluent> extends BaseFluent{ + private List args; private List command; private ArrayList env; @@ -38,6 +36,7 @@ public V1ContainerFluent(V1Container instance) { private ArrayList resizePolicy; private V1ResourceRequirementsBuilder resources; private String restartPolicy; + private ArrayList restartPolicyRules; private V1SecurityContextBuilder securityContext; private V1ProbeBuilder startupProbe; private Boolean stdin; @@ -48,438 +47,486 @@ public V1ContainerFluent(V1Container instance) { private ArrayList volumeDevices; private ArrayList volumeMounts; private String workingDir; - - protected void copyInstance(V1Container instance) { - instance = (instance != null ? instance : new V1Container()); - if (instance != null) { - this.withArgs(instance.getArgs()); - this.withCommand(instance.getCommand()); - this.withEnv(instance.getEnv()); - this.withEnvFrom(instance.getEnvFrom()); - this.withImage(instance.getImage()); - this.withImagePullPolicy(instance.getImagePullPolicy()); - this.withLifecycle(instance.getLifecycle()); - this.withLivenessProbe(instance.getLivenessProbe()); - this.withName(instance.getName()); - this.withPorts(instance.getPorts()); - this.withReadinessProbe(instance.getReadinessProbe()); - this.withResizePolicy(instance.getResizePolicy()); - this.withResources(instance.getResources()); - this.withRestartPolicy(instance.getRestartPolicy()); - this.withSecurityContext(instance.getSecurityContext()); - this.withStartupProbe(instance.getStartupProbe()); - this.withStdin(instance.getStdin()); - this.withStdinOnce(instance.getStdinOnce()); - this.withTerminationMessagePath(instance.getTerminationMessagePath()); - this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); - this.withTty(instance.getTty()); - this.withVolumeDevices(instance.getVolumeDevices()); - this.withVolumeMounts(instance.getVolumeMounts()); - this.withWorkingDir(instance.getWorkingDir()); - } - } - - public A addToArgs(int index,String item) { - if (this.args == null) {this.args = new ArrayList();} - this.args.add(index, item); - return (A)this; - } - - public A setToArgs(int index,String item) { - if (this.args == null) {this.args = new ArrayList();} - this.args.set(index, item); return (A)this; + + public V1ContainerFluent() { } - public A addToArgs(java.lang.String... items) { - if (this.args == null) {this.args = new ArrayList();} - for (String item : items) {this.args.add(item);} return (A)this; + public V1ContainerFluent(V1Container instance) { + this.copyInstance(instance); } - + public A addAllToArgs(Collection items) { - if (this.args == null) {this.args = new ArrayList();} - for (String item : items) {this.args.add(item);} return (A)this; - } - - public A removeFromArgs(java.lang.String... items) { - if (this.args == null) return (A)this; - for (String item : items) { this.args.remove(item);} return (A)this; - } - - public A removeAllFromArgs(Collection items) { - if (this.args == null) return (A)this; - for (String item : items) { this.args.remove(item);} return (A)this; + if (this.args == null) { + this.args = new ArrayList(); + } + for (String item : items) { + this.args.add(item); + } + return (A) this; } - public List getArgs() { - return this.args; + public A addAllToCommand(Collection items) { + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; } - public String getArg(int index) { - return this.args.get(index); + public A addAllToEnv(Collection items) { + if (this.env == null) { + this.env = new ArrayList(); + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); + } + return (A) this; } - public String getFirstArg() { - return this.args.get(0); + public A addAllToEnvFrom(Collection items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); + } + return (A) this; } - public String getLastArg() { - return this.args.get(args.size() - 1); + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public String getMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A addAllToResizePolicy(Collection items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); + } + return (A) this; } - public boolean hasMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addAllToRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); + } + return (A) this; } - public A withArgs(List args) { - if (args != null) { - this.args = new ArrayList(); - for (String item : args) { - this.addToArgs(item); - } - } else { - this.args = null; + public A addAllToVolumeDevices(Collection items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } return (A) this; } - public A withArgs(java.lang.String... args) { - if (this.args != null) { - this.args.clear(); - _visitables.remove("args"); + public A addAllToVolumeMounts(Collection items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - if (args != null) { - for (String item : args) { - this.addToArgs(item); - } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public boolean hasArgs() { - return this.args != null && !this.args.isEmpty(); + public EnvNested addNewEnv() { + return new EnvNested(-1, null); } - public A addToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} - this.command.add(index, item); - return (A)this; + public EnvFromNested addNewEnvFrom() { + return new EnvFromNested(-1, null); } - public A setToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} - this.command.set(index, item); return (A)this; + public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { + return new EnvFromNested(-1, item); } - public A addToCommand(java.lang.String... items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + public EnvNested addNewEnvLike(V1EnvVar item) { + return new EnvNested(-1, item); } - public A addAllToCommand(Collection items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public A removeFromCommand(java.lang.String... items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + public PortsNested addNewPortLike(V1ContainerPort item) { + return new PortsNested(-1, item); } - public A removeAllFromCommand(Collection items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + public ResizePolicyNested addNewResizePolicy() { + return new ResizePolicyNested(-1, null); } - public List getCommand() { - return this.command; + public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { + return new ResizePolicyNested(-1, item); } - public String getCommand(int index) { - return this.command.get(index); + public RestartPolicyRulesNested addNewRestartPolicyRule() { + return new RestartPolicyRulesNested(-1, null); } - public String getFirstCommand() { - return this.command.get(0); + public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(-1, item); } - public String getLastCommand() { - return this.command.get(command.size() - 1); + public VolumeDevicesNested addNewVolumeDevice() { + return new VolumeDevicesNested(-1, null); } - public String getMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return item; - } - } - return null; + public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { + return new VolumeDevicesNested(-1, item); } - public boolean hasMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return true; - } - } - return false; + public VolumeMountsNested addNewVolumeMount() { + return new VolumeMountsNested(-1, null); } - public A withCommand(List command) { - if (command != null) { - this.command = new ArrayList(); - for (String item : command) { - this.addToCommand(item); - } - } else { - this.command = null; + public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { + return new VolumeMountsNested(-1, item); + } + + public A addToArgs(String... items) { + if (this.args == null) { + this.args = new ArrayList(); + } + for (String item : items) { + this.args.add(item); } return (A) this; } - public A withCommand(java.lang.String... command) { - if (this.command != null) { - this.command.clear(); - _visitables.remove("command"); + public A addToArgs(int index,String item) { + if (this.args == null) { + this.args = new ArrayList(); } - if (command != null) { - for (String item : command) { - this.addToCommand(item); - } + this.args.add(index, item); + return (A) this; + } + + public A addToCommand(String... items) { + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); } return (A) this; } - public boolean hasCommand() { - return this.command != null && !this.command.isEmpty(); + public A addToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); + } + this.command.add(index, item); + return (A) this; + } + + public A addToEnv(V1EnvVar... items) { + if (this.env == null) { + this.env = new ArrayList(); + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); + } + return (A) this; } public A addToEnv(int index,V1EnvVar item) { - if (this.env == null) {this.env = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public A addToEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); + } + return (A) this; } - public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) {this.env = new ArrayList();} - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; + 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(builder); + envFrom.add(index, builder); + } + return (A) this; } - public A addAllToEnv(Collection items) { - if (this.env == null) {this.env = new ArrayList();} - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; + public A addToPorts(V1ContainerPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) return (A)this; - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this; + 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(builder); + ports.add(index, builder); + } + return (A) this; } - public A removeAllFromEnv(Collection items) { - if (this.env == null) return (A)this; - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this; + public A addToResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); + } + return (A) this; } - public A removeMatchingFromEnv(Predicate predicate) { - if (env == null) return (A) this; - final Iterator each = env.iterator(); - final List visitables = _visitables.get("env"); - while (each.hasNext()) { - V1EnvVarBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + resizePolicy.add(index, builder); } - return (A)this; + return (A) this; } - public List buildEnv() { - return this.env != null ? build(env) : null; + public A addToRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); + } + return (A) this; } - public V1EnvVar buildEnv(int index) { - return this.env.get(index).build(); + public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(index, builder); + } + return (A) this; } - public V1EnvVar buildFirstEnv() { - return this.env.get(0).build(); + public A addToVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); + } + return (A) this; } - public V1EnvVar buildLastEnv() { - return this.env.get(env.size() - 1).build(); + 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(builder); + volumeDevices.add(index, builder); + } + return (A) this; } - public V1EnvVar buildMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withEnv(List env) { - if (this.env != null) { - this._visitables.get("env").clear(); + public A addToVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - if (env != null) { - this.env = new ArrayList(); - for (V1EnvVar item : env) { - this.addToEnv(item); - } - } else { - this.env = null; + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { - if (this.env != null) { - this.env.clear(); - _visitables.remove("env"); + public A addToVolumeMounts(int index,V1VolumeMount item) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - if (env != null) { - for (V1EnvVar item : env) { - this.addToEnv(item); - } + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(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 boolean hasEnv() { - return this.env != null && !this.env.isEmpty(); + public List buildEnv() { + return this.env != null ? build(env) : null; } - public EnvNested addNewEnv() { - return new EnvNested(-1, null); + public V1EnvVar buildEnv(int index) { + return this.env.get(index).build(); } - public EnvNested addNewEnvLike(V1EnvVar item) { - return new EnvNested(-1, item); + public List buildEnvFrom() { + return this.envFrom != null ? build(envFrom) : null; } - public EnvNested setNewEnvLike(int index,V1EnvVar item) { - return new EnvNested(index, item); + public V1EnvFromSource buildEnvFrom(int index) { + return this.envFrom.get(index).build(); } - public EnvNested editEnv(int index) { - if (env.size() <= index) throw new RuntimeException("Can't edit env. Index exceeds size."); - return setNewEnvLike(index, buildEnv(index)); + public V1EnvVar buildFirstEnv() { + return this.env.get(0).build(); } - public EnvNested editFirstEnv() { - if (env.size() == 0) throw new RuntimeException("Can't edit first env. The list is empty."); - return setNewEnvLike(0, buildEnv(0)); + public V1EnvFromSource buildFirstEnvFrom() { + return this.envFrom.get(0).build(); } - public EnvNested editLastEnv() { - int index = env.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last env. The list is empty."); - return setNewEnvLike(index, buildEnv(index)); + public V1ContainerPort buildFirstPort() { + return this.ports.get(0).build(); } - public EnvNested editMatchingEnv(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public V1ContainerRestartRule buildFirstRestartPolicyRule() { + return this.restartPolicyRules.get(0).build(); } - 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);} - return (A)this; + public V1VolumeDevice buildFirstVolumeDevice() { + return this.volumeDevices.get(0).build(); } - public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; + public V1VolumeMount buildFirstVolumeMount() { + return this.volumeMounts.get(0).build(); } - public A addAllToEnvFrom(Collection items) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; + public V1EnvVar buildLastEnv() { + return this.env.get(env.size() - 1).build(); } - public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) return (A)this; - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this; + public V1EnvFromSource buildLastEnvFrom() { + return this.envFrom.get(envFrom.size() - 1).build(); } - public A removeAllFromEnvFrom(Collection items) { - if (this.envFrom == null) return (A)this; - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this; + public V1ContainerPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); } - public A removeMatchingFromEnvFrom(Predicate predicate) { - if (envFrom == null) return (A) this; - final Iterator each = envFrom.iterator(); - final List visitables = _visitables.get("envFrom"); - while (each.hasNext()) { - V1EnvFromSourceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1ContainerResizePolicy buildLastResizePolicy() { + return this.resizePolicy.get(resizePolicy.size() - 1).build(); } - public List buildEnvFrom() { - return this.envFrom != null ? build(envFrom) : null; + public V1ContainerRestartRule buildLastRestartPolicyRule() { + return this.restartPolicyRules.get(restartPolicyRules.size() - 1).build(); } - public V1EnvFromSource buildEnvFrom(int index) { - return this.envFrom.get(index).build(); + public V1VolumeDevice buildLastVolumeDevice() { + return this.volumeDevices.get(volumeDevices.size() - 1).build(); } - public V1EnvFromSource buildFirstEnvFrom() { - return this.envFrom.get(0).build(); + public V1VolumeMount buildLastVolumeMount() { + return this.volumeMounts.get(volumeMounts.size() - 1).build(); } - public V1EnvFromSource buildLastEnvFrom() { - return this.envFrom.get(envFrom.size() - 1).build(); + public V1Lifecycle buildLifecycle() { + return this.lifecycle != null ? this.lifecycle.build() : null; + } + + public V1Probe buildLivenessProbe() { + return this.livenessProbe != null ? this.livenessProbe.build() : null; + } + + public V1EnvVar buildMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { @@ -491,974 +538,1819 @@ public V1EnvFromSource buildMatchingEnvFrom(Predicate pr return null; } - public boolean hasMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { + public V1ContainerPort buildMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withEnvFrom(List envFrom) { - if (this.envFrom != null) { - this._visitables.get("envFrom").clear(); - } - if (envFrom != null) { - this.envFrom = new ArrayList(); - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); + public V1ContainerResizePolicy buildMatchingResizePolicy(Predicate predicate) { + for (V1ContainerResizePolicyBuilder item : resizePolicy) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.envFrom = null; - } - return (A) this; + } + return null; } - public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom) { - if (this.envFrom != null) { - this.envFrom.clear(); - _visitables.remove("envFrom"); - } - if (envFrom != null) { - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); + public V1ContainerRestartRule buildMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A) this; + return null; } - public boolean hasEnvFrom() { - return this.envFrom != null && !this.envFrom.isEmpty(); + public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public EnvFromNested addNewEnvFrom() { - return new EnvFromNested(-1, null); + public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { - return new EnvFromNested(-1, item); + public V1ContainerPort buildPort(int index) { + return this.ports.get(index).build(); } - public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { - return new EnvFromNested(index, item); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public EnvFromNested editEnvFrom(int index) { - if (envFrom.size() <= index) throw new RuntimeException("Can't edit envFrom. Index exceeds size."); - return setNewEnvFromLike(index, buildEnvFrom(index)); + public V1Probe buildReadinessProbe() { + return this.readinessProbe != null ? this.readinessProbe.build() : null; } - public EnvFromNested editFirstEnvFrom() { - if (envFrom.size() == 0) throw new RuntimeException("Can't edit first envFrom. The list is empty."); - return setNewEnvFromLike(0, buildEnvFrom(0)); + public List buildResizePolicy() { + return this.resizePolicy != null ? build(resizePolicy) : null; } - public EnvFromNested editLastEnvFrom() { - int index = envFrom.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last envFrom. The list is empty."); - return setNewEnvFromLike(index, buildEnvFrom(index)); + public V1ContainerResizePolicy buildResizePolicy(int index) { + return this.resizePolicy.get(index).build(); } - public EnvFromNested editMatchingEnvFrom(Predicate predicate) { - int index = -1; - for (int i=0;i buildRestartPolicyRules() { + return this.restartPolicyRules != null ? build(restartPolicyRules) : null; } - public boolean hasImage() { - return this.image != null; + public V1SecurityContext buildSecurityContext() { + return this.securityContext != null ? this.securityContext.build() : null; } - public String getImagePullPolicy() { - return this.imagePullPolicy; + public V1Probe buildStartupProbe() { + return this.startupProbe != null ? this.startupProbe.build() : null; } - public A withImagePullPolicy(String imagePullPolicy) { - this.imagePullPolicy = imagePullPolicy; - return (A) this; + public V1VolumeDevice buildVolumeDevice(int index) { + return this.volumeDevices.get(index).build(); } - public boolean hasImagePullPolicy() { - return this.imagePullPolicy != null; + public List buildVolumeDevices() { + return this.volumeDevices != null ? build(volumeDevices) : null; } - public V1Lifecycle buildLifecycle() { - return this.lifecycle != null ? this.lifecycle.build() : null; + public V1VolumeMount buildVolumeMount(int index) { + return this.volumeMounts.get(index).build(); } - public A withLifecycle(V1Lifecycle lifecycle) { - this._visitables.remove("lifecycle"); - if (lifecycle != null) { - this.lifecycle = new V1LifecycleBuilder(lifecycle); - this._visitables.get("lifecycle").add(this.lifecycle); - } else { - this.lifecycle = null; - this._visitables.get("lifecycle").remove(this.lifecycle); - } - return (A) this; + public List buildVolumeMounts() { + return this.volumeMounts != null ? build(volumeMounts) : null; } - public boolean hasLifecycle() { - return this.lifecycle != null; + protected void copyInstance(V1Container instance) { + instance = instance != null ? instance : new V1Container(); + if (instance != null) { + this.withArgs(instance.getArgs()); + this.withCommand(instance.getCommand()); + this.withEnv(instance.getEnv()); + this.withEnvFrom(instance.getEnvFrom()); + this.withImage(instance.getImage()); + this.withImagePullPolicy(instance.getImagePullPolicy()); + this.withLifecycle(instance.getLifecycle()); + this.withLivenessProbe(instance.getLivenessProbe()); + this.withName(instance.getName()); + this.withPorts(instance.getPorts()); + this.withReadinessProbe(instance.getReadinessProbe()); + this.withResizePolicy(instance.getResizePolicy()); + this.withResources(instance.getResources()); + this.withRestartPolicy(instance.getRestartPolicy()); + this.withRestartPolicyRules(instance.getRestartPolicyRules()); + this.withSecurityContext(instance.getSecurityContext()); + this.withStartupProbe(instance.getStartupProbe()); + this.withStdin(instance.getStdin()); + this.withStdinOnce(instance.getStdinOnce()); + this.withTerminationMessagePath(instance.getTerminationMessagePath()); + this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); + this.withTty(instance.getTty()); + this.withVolumeDevices(instance.getVolumeDevices()); + this.withVolumeMounts(instance.getVolumeMounts()); + this.withWorkingDir(instance.getWorkingDir()); + } } - public LifecycleNested withNewLifecycle() { - return new LifecycleNested(null); + public EnvNested editEnv(int index) { + if (env.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } - public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { - return new LifecycleNested(item); + public EnvFromNested editEnvFrom(int index) { + if (envFrom.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public LifecycleNested editLifecycle() { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(null)); + public EnvNested editFirstEnv() { + if (env.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "env")); + } + return this.setNewEnvLike(0, this.buildEnv(0)); } - public LifecycleNested editOrNewLifecycle() { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(new V1LifecycleBuilder().build())); + public EnvFromNested editFirstEnvFrom() { + if (envFrom.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(0, this.buildEnvFrom(0)); } - public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(item)); + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } - public V1Probe buildLivenessProbe() { - return this.livenessProbe != null ? this.livenessProbe.build() : null; + public ResizePolicyNested editFirstResizePolicy() { + if (resizePolicy.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resizePolicy")); + } + return this.setNewResizePolicyLike(0, this.buildResizePolicy(0)); } - public A withLivenessProbe(V1Probe livenessProbe) { - this._visitables.remove("livenessProbe"); - if (livenessProbe != null) { - this.livenessProbe = new V1ProbeBuilder(livenessProbe); - this._visitables.get("livenessProbe").add(this.livenessProbe); - } else { - this.livenessProbe = null; - this._visitables.get("livenessProbe").remove(this.livenessProbe); + public RestartPolicyRulesNested editFirstRestartPolicyRule() { + if (restartPolicyRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "restartPolicyRules")); } - return (A) this; - } - - public boolean hasLivenessProbe() { - return this.livenessProbe != null; - } - - public LivenessProbeNested withNewLivenessProbe() { - return new LivenessProbeNested(null); - } - - public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { - return new LivenessProbeNested(item); - } - - public LivenessProbeNested editLivenessProbe() { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(null)); + return this.setNewRestartPolicyRuleLike(0, this.buildRestartPolicyRule(0)); } - public LivenessProbeNested editOrNewLivenessProbe() { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); + public VolumeDevicesNested editFirstVolumeDevice() { + if (volumeDevices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(0, this.buildVolumeDevice(0)); } - public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(item)); + public VolumeMountsNested editFirstVolumeMount() { + if (volumeMounts.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); } - public String getName() { - return this.name; + public EnvNested editLastEnv() { + int index = env.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } - public A withName(String name) { - this.name = name; - return (A) this; + public EnvFromNested editLastEnvFrom() { + int index = envFrom.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public boolean hasName() { - return this.name != null; + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - 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);} - return (A)this; + public ResizePolicyNested editLastResizePolicy() { + int index = resizePolicy.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - 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);} - return (A)this; + public RestartPolicyRulesNested editLastRestartPolicyRule() { + int index = restartPolicyRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public VolumeDevicesNested editLastVolumeDevice() { + int index = volumeDevices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public VolumeMountsNested editLastVolumeMount() { + int index = volumeMounts.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) return (A)this; - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public LifecycleNested editLifecycle() { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(null)); } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public LivenessProbeNested editLivenessProbe() { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(null)); } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1ContainerPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public EnvNested editMatchingEnv(Predicate predicate) { + int index = -1; + for (int i = 0;i < env.size();i++) { + if (predicate.test(env.get(i))) { + index = i; + break; } } - return (A)this; - } - - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public V1ContainerPort buildPort(int index) { - return this.ports.get(index).build(); - } - - public V1ContainerPort buildFirstPort() { - return this.ports.get(0).build(); - } - - public V1ContainerPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } - public V1ContainerPort buildMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } + public EnvFromNested editMatchingEnvFrom(Predicate predicate) { + int index = -1; + for (int i = 0;i < envFrom.size();i++) { + if (predicate.test(envFrom.get(i))) { + index = i; + break; } - return null; + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public boolean hasMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; } - return false; - } - - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); } - if (ports != null) { - this.ports = new ArrayList(); - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); } - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); - } - if (ports != null) { - for (V1ContainerPort item : ports) { - this.addToPorts(item); + public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { + int index = -1; + for (int i = 0;i < resizePolicy.size();i++) { + if (predicate.test(resizePolicy.get(i))) { + index = i; + break; } } - return (A) this; - } - - public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(V1ContainerPort item) { - return new PortsNested(-1, item); - } - - public PortsNested setNewPortLike(int index,V1ContainerPort item) { - return new PortsNested(index, item); - } - - public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); - } - - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public PortsNested editMatchingPort(Predicate predicate) { + public RestartPolicyRulesNested editMatchingRestartPolicyRule(Predicate predicate) { int index = -1; - for (int i=0;i editMatchingVolumeDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeDevices.size();i++) { + if (predicate.test(volumeDevices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public A withReadinessProbe(V1Probe readinessProbe) { - this._visitables.remove("readinessProbe"); - if (readinessProbe != null) { - this.readinessProbe = new V1ProbeBuilder(readinessProbe); - this._visitables.get("readinessProbe").add(this.readinessProbe); - } else { - this.readinessProbe = null; - this._visitables.get("readinessProbe").remove(this.readinessProbe); + public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeMounts.size();i++) { + if (predicate.test(volumeMounts.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public boolean hasReadinessProbe() { - return this.readinessProbe != null; + public LifecycleNested editOrNewLifecycle() { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(new V1LifecycleBuilder().build())); } - public ReadinessProbeNested withNewReadinessProbe() { - return new ReadinessProbeNested(null); + public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(item)); } - public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { - return new ReadinessProbeNested(item); + public LivenessProbeNested editOrNewLivenessProbe() { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); } - public ReadinessProbeNested editReadinessProbe() { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(null)); + public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(item)); } public ReadinessProbeNested editOrNewReadinessProbe() { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(new V1ProbeBuilder().build())); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(new V1ProbeBuilder().build())); } public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(item)); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(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);} - return (A)this; + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } - 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);} - return (A)this; + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public A addToResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this; + public SecurityContextNested editOrNewSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); } - public A addAllToResizePolicy(Collection items) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this; + public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } - public A removeFromResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) return (A)this; - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this; + public StartupProbeNested editOrNewStartupProbe() { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(new V1ProbeBuilder().build())); } - public A removeAllFromResizePolicy(Collection items) { - if (this.resizePolicy == null) return (A)this; - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this; + public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(item)); } - public A removeMatchingFromResizePolicy(Predicate predicate) { - if (resizePolicy == null) return (A) this; - final Iterator each = resizePolicy.iterator(); - final List visitables = _visitables.get("resizePolicy"); - while (each.hasNext()) { - V1ContainerResizePolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - return (A)this; + return this.setNewPortLike(index, this.buildPort(index)); } - public List buildResizePolicy() { - return this.resizePolicy != null ? build(resizePolicy) : null; + public ReadinessProbeNested editReadinessProbe() { + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(null)); } - public V1ContainerResizePolicy buildResizePolicy(int index) { - return this.resizePolicy.get(index).build(); + public ResizePolicyNested editResizePolicy(int index) { + if (resizePolicy.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public V1ContainerResizePolicy buildFirstResizePolicy() { - return this.resizePolicy.get(0).build(); + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } - public V1ContainerResizePolicy buildLastResizePolicy() { - return this.resizePolicy.get(resizePolicy.size() - 1).build(); + public RestartPolicyRulesNested editRestartPolicyRule(int index) { + if (restartPolicyRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public V1ContainerResizePolicy buildMatchingResizePolicy(Predicate predicate) { - for (V1ContainerResizePolicyBuilder item : resizePolicy) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public SecurityContextNested editSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } - public boolean hasMatchingResizePolicy(Predicate predicate) { - for (V1ContainerResizePolicyBuilder item : resizePolicy) { - if (predicate.test(item)) { - return true; - } - } - return false; + public StartupProbeNested editStartupProbe() { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(null)); } - public A withResizePolicy(List resizePolicy) { - if (this.resizePolicy != null) { - this._visitables.get("resizePolicy").clear(); - } - if (resizePolicy != null) { - this.resizePolicy = new ArrayList(); - for (V1ContainerResizePolicy item : resizePolicy) { - this.addToResizePolicy(item); - } - } else { - this.resizePolicy = null; + public VolumeDevicesNested editVolumeDevice(int index) { + if (volumeDevices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeDevices")); } - return (A) this; + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public A withResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... resizePolicy) { - if (this.resizePolicy != null) { - this.resizePolicy.clear(); - _visitables.remove("resizePolicy"); - } - if (resizePolicy != null) { - for (V1ContainerResizePolicy item : resizePolicy) { - this.addToResizePolicy(item); - } + public VolumeMountsNested editVolumeMount(int index) { + if (volumeMounts.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); } - return (A) this; + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public boolean hasResizePolicy() { - return this.resizePolicy != null && !this.resizePolicy.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerFluent that = (V1ContainerFluent) o; + if (!(Objects.equals(args, that.args))) { + return false; + } + if (!(Objects.equals(command, that.command))) { + return false; + } + if (!(Objects.equals(env, that.env))) { + return false; + } + if (!(Objects.equals(envFrom, that.envFrom))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(imagePullPolicy, that.imagePullPolicy))) { + return false; + } + if (!(Objects.equals(lifecycle, that.lifecycle))) { + return false; + } + if (!(Objects.equals(livenessProbe, that.livenessProbe))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + if (!(Objects.equals(readinessProbe, that.readinessProbe))) { + return false; + } + if (!(Objects.equals(resizePolicy, that.resizePolicy))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(restartPolicy, that.restartPolicy))) { + return false; + } + if (!(Objects.equals(restartPolicyRules, that.restartPolicyRules))) { + return false; + } + if (!(Objects.equals(securityContext, that.securityContext))) { + return false; + } + if (!(Objects.equals(startupProbe, that.startupProbe))) { + return false; + } + if (!(Objects.equals(stdin, that.stdin))) { + return false; + } + if (!(Objects.equals(stdinOnce, that.stdinOnce))) { + return false; + } + if (!(Objects.equals(terminationMessagePath, that.terminationMessagePath))) { + return false; + } + if (!(Objects.equals(terminationMessagePolicy, that.terminationMessagePolicy))) { + return false; + } + if (!(Objects.equals(tty, that.tty))) { + return false; + } + if (!(Objects.equals(volumeDevices, that.volumeDevices))) { + return false; + } + if (!(Objects.equals(volumeMounts, that.volumeMounts))) { + return false; + } + if (!(Objects.equals(workingDir, that.workingDir))) { + return false; + } + return true; } - public ResizePolicyNested addNewResizePolicy() { - return new ResizePolicyNested(-1, null); + public String getArg(int index) { + return this.args.get(index); } - public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { - return new ResizePolicyNested(-1, item); + public List getArgs() { + return this.args; } - public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { - return new ResizePolicyNested(index, item); + public List getCommand() { + return this.command; } - public ResizePolicyNested editResizePolicy(int index) { - if (resizePolicy.size() <= index) throw new RuntimeException("Can't edit resizePolicy. Index exceeds size."); - return setNewResizePolicyLike(index, buildResizePolicy(index)); + public String getCommand(int index) { + return this.command.get(index); + } + + public String getFirstArg() { + return this.args.get(0); + } + + public String getFirstCommand() { + return this.command.get(0); + } + + public String getImage() { + return this.image; + } + + public String getImagePullPolicy() { + return this.imagePullPolicy; + } + + public String getLastArg() { + return this.args.get(args.size() - 1); + } + + public String getLastCommand() { + return this.command.get(command.size() - 1); + } + + public String getMatchingArg(Predicate predicate) { + for (String item : args) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingCommand(Predicate predicate) { + for (String item : command) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getName() { + return this.name; + } + + public String getRestartPolicy() { + return this.restartPolicy; + } + + public Boolean getStdin() { + return this.stdin; + } + + public Boolean getStdinOnce() { + return this.stdinOnce; + } + + public String getTerminationMessagePath() { + return this.terminationMessagePath; + } + + public String getTerminationMessagePolicy() { + return this.terminationMessagePolicy; + } + + public Boolean getTty() { + return this.tty; + } + + public String getWorkingDir() { + return this.workingDir; + } + + public boolean hasArgs() { + return this.args != null && !(this.args.isEmpty()); + } + + public boolean hasCommand() { + return this.command != null && !(this.command.isEmpty()); + } + + public boolean hasEnv() { + return this.env != null && !(this.env.isEmpty()); + } + + public boolean hasEnvFrom() { + return this.envFrom != null && !(this.envFrom.isEmpty()); + } + + public boolean hasImage() { + return this.image != null; + } + + public boolean hasImagePullPolicy() { + return this.imagePullPolicy != null; + } + + public boolean hasLifecycle() { + return this.lifecycle != null; + } + + public boolean hasLivenessProbe() { + return this.livenessProbe != null; + } + + public boolean hasMatchingArg(Predicate predicate) { + for (String item : args) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingCommand(Predicate predicate) { + for (String item : command) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResizePolicy(Predicate predicate) { + for (V1ContainerResizePolicyBuilder item : resizePolicy) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + + public boolean hasReadinessProbe() { + return this.readinessProbe != null; + } + + public boolean hasResizePolicy() { + return this.resizePolicy != null && !(this.resizePolicy.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null; + } + + public boolean hasRestartPolicy() { + return this.restartPolicy != null; + } + + public boolean hasRestartPolicyRules() { + return this.restartPolicyRules != null && !(this.restartPolicyRules.isEmpty()); + } + + public boolean hasSecurityContext() { + return this.securityContext != null; + } + + public boolean hasStartupProbe() { + return this.startupProbe != null; + } + + public boolean hasStdin() { + return this.stdin != null; + } + + public boolean hasStdinOnce() { + return this.stdinOnce != null; + } + + public boolean hasTerminationMessagePath() { + return this.terminationMessagePath != null; + } + + public boolean hasTerminationMessagePolicy() { + return this.terminationMessagePolicy != null; + } + + public boolean hasTty() { + return this.tty != null; + } + + public boolean hasVolumeDevices() { + return this.volumeDevices != null && !(this.volumeDevices.isEmpty()); + } + + public boolean hasVolumeMounts() { + return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); + } + + public boolean hasWorkingDir() { + return this.workingDir != null; + } + + public int hashCode() { + return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, restartPolicyRules, securityContext, startupProbe, stdin, stdinOnce, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); + } + + public A removeAllFromArgs(Collection items) { + if (this.args == null) { + return (A) this; + } + for (String item : items) { + this.args.remove(item); + } + return (A) this; + } + + public A removeAllFromCommand(Collection items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; + } + + public A removeAllFromEnv(Collection items) { + if (this.env == null) { + return (A) this; + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); + } + return (A) this; + } + + public A removeAllFromEnvFrom(Collection items) { + if (this.envFrom == null) { + return (A) this; + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); + } + return (A) this; + } + + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeAllFromResizePolicy(Collection items) { + if (this.resizePolicy == null) { + return (A) this; + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); + } + return (A) this; + } + + public A removeAllFromRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + return (A) this; + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); + } + return (A) this; + } + + public A removeAllFromVolumeDevices(Collection items) { + if (this.volumeDevices == null) { + return (A) this; + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); + } + return (A) this; + } + + public A removeAllFromVolumeMounts(Collection items) { + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; } - public ResizePolicyNested editFirstResizePolicy() { - if (resizePolicy.size() == 0) throw new RuntimeException("Can't edit first resizePolicy. The list is empty."); - return setNewResizePolicyLike(0, buildResizePolicy(0)); + public A removeFromArgs(String... items) { + if (this.args == null) { + return (A) this; + } + for (String item : items) { + this.args.remove(item); + } + return (A) this; } - public ResizePolicyNested editLastResizePolicy() { - int index = resizePolicy.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resizePolicy. The list is empty."); - return setNewResizePolicyLike(index, buildResizePolicy(index)); + public A removeFromCommand(String... items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; } - public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { - int index = -1; - for (int i=0;i withNewResources() { - return new ResourcesNested(null); + public A removeFromRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + return (A) this; + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); + } + return (A) this; } - public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + public A removeFromVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + return (A) this; + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); + } + return (A) this; } - public ResourcesNested editResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null)); + public A removeFromVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; } - public ResourcesNested editOrNewResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + public A removeMatchingFromEnv(Predicate predicate) { + if (env == null) { + return (A) this; + } + Iterator each = env.iterator(); + List visitables = _visitables.get("env"); + while (each.hasNext()) { + V1EnvVarBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); + public A removeMatchingFromEnvFrom(Predicate predicate) { + if (envFrom == null) { + return (A) this; + } + Iterator each = envFrom.iterator(); + List visitables = _visitables.get("envFrom"); + while (each.hasNext()) { + V1EnvFromSourceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public String getRestartPolicy() { - return this.restartPolicy; + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1ContainerPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A withRestartPolicy(String restartPolicy) { - this.restartPolicy = restartPolicy; + public A removeMatchingFromResizePolicy(Predicate predicate) { + if (resizePolicy == null) { + return (A) this; + } + Iterator each = resizePolicy.iterator(); + List visitables = _visitables.get("resizePolicy"); + while (each.hasNext()) { + V1ContainerResizePolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } return (A) this; } - public boolean hasRestartPolicy() { - return this.restartPolicy != null; + public A removeMatchingFromRestartPolicyRules(Predicate predicate) { + if (restartPolicyRules == null) { + return (A) this; + } + Iterator each = restartPolicyRules.iterator(); + List visitables = _visitables.get("restartPolicyRules"); + while (each.hasNext()) { + V1ContainerRestartRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1SecurityContext buildSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + public A removeMatchingFromVolumeDevices(Predicate predicate) { + if (volumeDevices == null) { + return (A) this; + } + Iterator each = volumeDevices.iterator(); + List visitables = _visitables.get("volumeDevices"); + while (each.hasNext()) { + V1VolumeDeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A withSecurityContext(V1SecurityContext securityContext) { - this._visitables.remove("securityContext"); - if (securityContext != null) { - this.securityContext = new V1SecurityContextBuilder(securityContext); - this._visitables.get("securityContext").add(this.securityContext); - } else { - this.securityContext = null; - this._visitables.get("securityContext").remove(this.securityContext); + public A removeMatchingFromVolumeMounts(Predicate predicate) { + if (volumeMounts == null) { + return (A) this; + } + Iterator each = volumeMounts.iterator(); + List visitables = _visitables.get("volumeMounts"); + while (each.hasNext()) { + V1VolumeMountBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasSecurityContext() { - return this.securityContext != null; + public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { + return new EnvFromNested(index, item); } - public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + public EnvNested setNewEnvLike(int index,V1EnvVar item) { + return new EnvNested(index, item); } - public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { - return new SecurityContextNested(item); + public PortsNested setNewPortLike(int index,V1ContainerPort item) { + return new PortsNested(index, item); } - public SecurityContextNested editSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(null)); + public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { + return new ResizePolicyNested(index, item); } - public SecurityContextNested editOrNewSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); + public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(index, item); } - public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(item)); + public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { + return new VolumeDevicesNested(index, item); } - public V1Probe buildStartupProbe() { - return this.startupProbe != null ? this.startupProbe.build() : null; + public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount item) { + return new VolumeMountsNested(index, item); } - public A withStartupProbe(V1Probe startupProbe) { - this._visitables.remove("startupProbe"); - if (startupProbe != null) { - this.startupProbe = new V1ProbeBuilder(startupProbe); - this._visitables.get("startupProbe").add(this.startupProbe); - } else { - this.startupProbe = null; - this._visitables.get("startupProbe").remove(this.startupProbe); + public A setToArgs(int index,String item) { + if (this.args == null) { + this.args = new ArrayList(); } + this.args.set(index, item); return (A) this; } - public boolean hasStartupProbe() { - return this.startupProbe != null; + public A setToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); + } + this.command.set(index, item); + return (A) this; } - public StartupProbeNested withNewStartupProbe() { - return new StartupProbeNested(null); + 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").add(builder); + env.set(index, builder); + } + return (A) this; } - public StartupProbeNested withNewStartupProbeLike(V1Probe item) { - return new StartupProbeNested(item); + 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").add(builder); + envFrom.set(index, builder); + } + return (A) this; } - public StartupProbeNested editStartupProbe() { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(null)); + 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").add(builder); + ports.set(index, builder); + } + return (A) this; } - public StartupProbeNested editOrNewStartupProbe() { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(new V1ProbeBuilder().build())); + 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").add(builder); + resizePolicy.set(index, builder); + } + return (A) this; } - public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(item)); + public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.set(index, builder); + } + return (A) this; } - public Boolean getStdin() { - return this.stdin; + 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").add(builder); + volumeDevices.set(index, builder); + } + return (A) this; } - public A withStdin(Boolean stdin) { - this.stdin = stdin; + 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").add(builder); + volumeMounts.set(index, builder); + } return (A) this; } - public boolean hasStdin() { - return this.stdin != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(args == null) && !(args.isEmpty())) { + sb.append("args:"); + sb.append(args); + sb.append(","); + } + if (!(command == null) && !(command.isEmpty())) { + sb.append("command:"); + sb.append(command); + sb.append(","); + } + if (!(env == null) && !(env.isEmpty())) { + sb.append("env:"); + sb.append(env); + sb.append(","); + } + if (!(envFrom == null) && !(envFrom.isEmpty())) { + sb.append("envFrom:"); + sb.append(envFrom); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(imagePullPolicy == null)) { + sb.append("imagePullPolicy:"); + sb.append(imagePullPolicy); + sb.append(","); + } + if (!(lifecycle == null)) { + sb.append("lifecycle:"); + sb.append(lifecycle); + sb.append(","); + } + if (!(livenessProbe == null)) { + sb.append("livenessProbe:"); + sb.append(livenessProbe); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + sb.append(","); + } + if (!(readinessProbe == null)) { + sb.append("readinessProbe:"); + sb.append(readinessProbe); + sb.append(","); + } + if (!(resizePolicy == null) && !(resizePolicy.isEmpty())) { + sb.append("resizePolicy:"); + sb.append(resizePolicy); + sb.append(","); + } + if (!(resources == null)) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(restartPolicy == null)) { + sb.append("restartPolicy:"); + sb.append(restartPolicy); + sb.append(","); + } + if (!(restartPolicyRules == null) && !(restartPolicyRules.isEmpty())) { + sb.append("restartPolicyRules:"); + sb.append(restartPolicyRules); + sb.append(","); + } + if (!(securityContext == null)) { + sb.append("securityContext:"); + sb.append(securityContext); + sb.append(","); + } + if (!(startupProbe == null)) { + sb.append("startupProbe:"); + sb.append(startupProbe); + sb.append(","); + } + if (!(stdin == null)) { + sb.append("stdin:"); + sb.append(stdin); + sb.append(","); + } + if (!(stdinOnce == null)) { + sb.append("stdinOnce:"); + sb.append(stdinOnce); + sb.append(","); + } + if (!(terminationMessagePath == null)) { + sb.append("terminationMessagePath:"); + sb.append(terminationMessagePath); + sb.append(","); + } + if (!(terminationMessagePolicy == null)) { + sb.append("terminationMessagePolicy:"); + sb.append(terminationMessagePolicy); + sb.append(","); + } + if (!(tty == null)) { + sb.append("tty:"); + sb.append(tty); + sb.append(","); + } + if (!(volumeDevices == null) && !(volumeDevices.isEmpty())) { + sb.append("volumeDevices:"); + sb.append(volumeDevices); + sb.append(","); + } + if (!(volumeMounts == null) && !(volumeMounts.isEmpty())) { + sb.append("volumeMounts:"); + sb.append(volumeMounts); + sb.append(","); + } + if (!(workingDir == null)) { + sb.append("workingDir:"); + sb.append(workingDir); + } + sb.append("}"); + return sb.toString(); } - public Boolean getStdinOnce() { - return this.stdinOnce; + public A withArgs(List args) { + if (args != null) { + this.args = new ArrayList(); + for (String item : args) { + this.addToArgs(item); + } + } else { + this.args = null; + } + return (A) this; } - public A withStdinOnce(Boolean stdinOnce) { - this.stdinOnce = stdinOnce; + public A withArgs(String... args) { + if (this.args != null) { + this.args.clear(); + _visitables.remove("args"); + } + if (args != null) { + for (String item : args) { + this.addToArgs(item); + } + } return (A) this; } - public boolean hasStdinOnce() { - return this.stdinOnce != null; + public A withCommand(List command) { + if (command != null) { + this.command = new ArrayList(); + for (String item : command) { + this.addToCommand(item); + } + } else { + this.command = null; + } + return (A) this; } - public String getTerminationMessagePath() { - return this.terminationMessagePath; + public A withCommand(String... command) { + if (this.command != null) { + this.command.clear(); + _visitables.remove("command"); + } + if (command != null) { + for (String item : command) { + this.addToCommand(item); + } + } + return (A) this; } - public A withTerminationMessagePath(String terminationMessagePath) { - this.terminationMessagePath = terminationMessagePath; + public A withEnv(List env) { + if (this.env != null) { + this._visitables.get("env").clear(); + } + if (env != null) { + this.env = new ArrayList(); + for (V1EnvVar item : env) { + this.addToEnv(item); + } + } else { + this.env = null; + } return (A) this; } - public boolean hasTerminationMessagePath() { - return this.terminationMessagePath != null; + public A withEnv(V1EnvVar... env) { + if (this.env != null) { + this.env.clear(); + _visitables.remove("env"); + } + if (env != null) { + for (V1EnvVar item : env) { + this.addToEnv(item); + } + } + return (A) this; } - public String getTerminationMessagePolicy() { - return this.terminationMessagePolicy; + public A withEnvFrom(List envFrom) { + if (this.envFrom != null) { + this._visitables.get("envFrom").clear(); + } + if (envFrom != null) { + this.envFrom = new ArrayList(); + for (V1EnvFromSource item : envFrom) { + this.addToEnvFrom(item); + } + } else { + this.envFrom = null; + } + return (A) this; } - public A withTerminationMessagePolicy(String terminationMessagePolicy) { - this.terminationMessagePolicy = terminationMessagePolicy; + public A withEnvFrom(V1EnvFromSource... envFrom) { + if (this.envFrom != null) { + this.envFrom.clear(); + _visitables.remove("envFrom"); + } + if (envFrom != null) { + for (V1EnvFromSource item : envFrom) { + this.addToEnvFrom(item); + } + } return (A) this; } - public boolean hasTerminationMessagePolicy() { - return this.terminationMessagePolicy != null; + public A withImage(String image) { + this.image = image; + return (A) this; } - public Boolean getTty() { - return this.tty; + public A withImagePullPolicy(String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; + return (A) this; } - public A withTty(Boolean tty) { - this.tty = tty; + public A withLifecycle(V1Lifecycle lifecycle) { + this._visitables.remove("lifecycle"); + if (lifecycle != null) { + this.lifecycle = new V1LifecycleBuilder(lifecycle); + this._visitables.get("lifecycle").add(this.lifecycle); + } else { + this.lifecycle = null; + this._visitables.get("lifecycle").remove(this.lifecycle); + } return (A) this; } - public boolean hasTty() { - return this.tty != null; + public A withLivenessProbe(V1Probe livenessProbe) { + this._visitables.remove("livenessProbe"); + if (livenessProbe != null) { + this.livenessProbe = new V1ProbeBuilder(livenessProbe); + this._visitables.get("livenessProbe").add(this.livenessProbe); + } else { + this.livenessProbe = null; + this._visitables.get("livenessProbe").remove(this.livenessProbe); + } + return (A) this; } - 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);} - return (A)this; + public A withName(String name) { + this.name = name; + 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);} - return (A)this; + public LifecycleNested withNewLifecycle() { + return new LifecycleNested(null); } - public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; + public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { + return new LifecycleNested(item); } - public A addAllToVolumeDevices(Collection items) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; + public LivenessProbeNested withNewLivenessProbe() { + return new LivenessProbeNested(null); } - public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) return (A)this; - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this; + public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { + return new LivenessProbeNested(item); } - public A removeAllFromVolumeDevices(Collection items) { - if (this.volumeDevices == null) return (A)this; - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this; + public ReadinessProbeNested withNewReadinessProbe() { + return new ReadinessProbeNested(null); } - public A removeMatchingFromVolumeDevices(Predicate predicate) { - if (volumeDevices == null) return (A) this; - final Iterator each = volumeDevices.iterator(); - final List visitables = _visitables.get("volumeDevices"); - while (each.hasNext()) { - V1VolumeDeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { + return new ReadinessProbeNested(item); } - public List buildVolumeDevices() { - return this.volumeDevices != null ? build(volumeDevices) : null; + public ResourcesNested withNewResources() { + return new ResourcesNested(null); } - public V1VolumeDevice buildVolumeDevice(int index) { - return this.volumeDevices.get(index).build(); + public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); } - public V1VolumeDevice buildFirstVolumeDevice() { - return this.volumeDevices.get(0).build(); + public SecurityContextNested withNewSecurityContext() { + return new SecurityContextNested(null); } - public V1VolumeDevice buildLastVolumeDevice() { - return this.volumeDevices.get(volumeDevices.size() - 1).build(); + public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { + return new SecurityContextNested(item); } - public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public StartupProbeNested withNewStartupProbe() { + return new StartupProbeNested(null); } - public boolean hasMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return true; - } - } - return false; + public StartupProbeNested withNewStartupProbeLike(V1Probe item) { + return new StartupProbeNested(item); } - public A withVolumeDevices(List volumeDevices) { - if (this.volumeDevices != null) { - this._visitables.get("volumeDevices").clear(); + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); } - if (volumeDevices != null) { - this.volumeDevices = new ArrayList(); - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); + if (ports != null) { + this.ports = new ArrayList(); + for (V1ContainerPort item : ports) { + this.addToPorts(item); } } else { - this.volumeDevices = null; + this.ports = null; } return (A) this; } - public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices) { - if (this.volumeDevices != null) { - this.volumeDevices.clear(); - _visitables.remove("volumeDevices"); + public A withPorts(V1ContainerPort... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); } - if (volumeDevices != null) { - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); + if (ports != null) { + for (V1ContainerPort item : ports) { + this.addToPorts(item); } } return (A) this; } - public boolean hasVolumeDevices() { - return this.volumeDevices != null && !this.volumeDevices.isEmpty(); - } - - public VolumeDevicesNested addNewVolumeDevice() { - return new VolumeDevicesNested(-1, null); - } - - public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { - return new VolumeDevicesNested(-1, item); + public A withReadinessProbe(V1Probe readinessProbe) { + this._visitables.remove("readinessProbe"); + if (readinessProbe != null) { + this.readinessProbe = new V1ProbeBuilder(readinessProbe); + this._visitables.get("readinessProbe").add(this.readinessProbe); + } else { + this.readinessProbe = null; + this._visitables.get("readinessProbe").remove(this.readinessProbe); + } + return (A) this; } - public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { - return new VolumeDevicesNested(index, item); + public A withResizePolicy(List resizePolicy) { + if (this.resizePolicy != null) { + this._visitables.get("resizePolicy").clear(); + } + if (resizePolicy != null) { + this.resizePolicy = new ArrayList(); + for (V1ContainerResizePolicy item : resizePolicy) { + this.addToResizePolicy(item); + } + } else { + this.resizePolicy = null; + } + return (A) this; } - public VolumeDevicesNested editVolumeDevice(int index) { - if (volumeDevices.size() <= index) throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); - return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); + public A withResizePolicy(V1ContainerResizePolicy... resizePolicy) { + if (this.resizePolicy != null) { + this.resizePolicy.clear(); + _visitables.remove("resizePolicy"); + } + if (resizePolicy != null) { + for (V1ContainerResizePolicy item : resizePolicy) { + this.addToResizePolicy(item); + } + } + return (A) this; } - public VolumeDevicesNested editFirstVolumeDevice() { - if (volumeDevices.size() == 0) throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); - return setNewVolumeDeviceLike(0, buildVolumeDevice(0)); + public A withResources(V1ResourceRequirements resources) { + this._visitables.remove("resources"); + if (resources != null) { + this.resources = new V1ResourceRequirementsBuilder(resources); + this._visitables.get("resources").add(this.resources); + } else { + this.resources = null; + this._visitables.get("resources").remove(this.resources); + } + return (A) this; } - public VolumeDevicesNested editLastVolumeDevice() { - int index = volumeDevices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumeDevices. The list is empty."); - return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); + public A withRestartPolicy(String restartPolicy) { + this.restartPolicy = restartPolicy; + return (A) this; } - public VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { - int index = -1; - for (int i=0;i restartPolicyRules) { + if (this.restartPolicyRules != null) { + this._visitables.get("restartPolicyRules").clear(); + } + if (restartPolicyRules != null) { + this.restartPolicyRules = new ArrayList(); + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } + } else { + this.restartPolicyRules = null; + } + return (A) this; } - public A addToVolumeMounts(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").add(index, builder); volumeMounts.add(index, builder);} - return (A)this; + public A withRestartPolicyRules(V1ContainerRestartRule... restartPolicyRules) { + if (this.restartPolicyRules != null) { + this.restartPolicyRules.clear(); + _visitables.remove("restartPolicyRules"); + } + if (restartPolicyRules != null) { + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } + } + 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);} - return (A)this; + public A withSecurityContext(V1SecurityContext securityContext) { + this._visitables.remove("securityContext"); + if (securityContext != null) { + this.securityContext = new V1SecurityContextBuilder(securityContext); + this._visitables.get("securityContext").add(this.securityContext); + } else { + this.securityContext = null; + this._visitables.get("securityContext").remove(this.securityContext); + } + return (A) this; } - public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + public A withStartupProbe(V1Probe startupProbe) { + this._visitables.remove("startupProbe"); + if (startupProbe != null) { + this.startupProbe = new V1ProbeBuilder(startupProbe); + this._visitables.get("startupProbe").add(this.startupProbe); + } else { + this.startupProbe = null; + this._visitables.get("startupProbe").remove(this.startupProbe); + } + return (A) this; } - public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + public A withStdin() { + return withStdin(true); } - public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + public A withStdin(Boolean stdin) { + this.stdin = stdin; + return (A) this; } - public A removeAllFromVolumeMounts(Collection items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + public A withStdinOnce() { + return withStdinOnce(true); } - 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()) { - V1VolumeMountBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public A withStdinOnce(Boolean stdinOnce) { + this.stdinOnce = stdinOnce; + return (A) this; } - public List buildVolumeMounts() { - return this.volumeMounts != null ? build(volumeMounts) : null; + public A withTerminationMessagePath(String terminationMessagePath) { + this.terminationMessagePath = terminationMessagePath; + return (A) this; } - public V1VolumeMount buildVolumeMount(int index) { - return this.volumeMounts.get(index).build(); + public A withTerminationMessagePolicy(String terminationMessagePolicy) { + this.terminationMessagePolicy = terminationMessagePolicy; + return (A) this; } - public V1VolumeMount buildFirstVolumeMount() { - return this.volumeMounts.get(0).build(); + public A withTty() { + return withTty(true); } - public V1VolumeMount buildLastVolumeMount() { - return this.volumeMounts.get(volumeMounts.size() - 1).build(); + public A withTty(Boolean tty) { + this.tty = tty; + return (A) this; } - public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return item.build(); + public A withVolumeDevices(List volumeDevices) { + if (this.volumeDevices != null) { + this._visitables.get("volumeDevices").clear(); + } + if (volumeDevices != null) { + this.volumeDevices = new ArrayList(); + for (V1VolumeDevice item : volumeDevices) { + this.addToVolumeDevices(item); } - } - return null; + } else { + this.volumeDevices = null; + } + return (A) this; } - public boolean hasMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return true; - } + public A withVolumeDevices(V1VolumeDevice... volumeDevices) { + if (this.volumeDevices != null) { + this.volumeDevices.clear(); + _visitables.remove("volumeDevices"); + } + if (volumeDevices != null) { + for (V1VolumeDevice item : volumeDevices) { + this.addToVolumeDevices(item); } - return false; + } + return (A) this; } public A withVolumeMounts(List volumeMounts) { @@ -1476,7 +2368,7 @@ public A withVolumeMounts(List volumeMounts) { return (A) this; } - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts) { + public A withVolumeMounts(V1VolumeMount... volumeMounts) { if (this.volumeMounts != null) { this.volumeMounts.clear(); _visitables.remove("volumeMounts"); @@ -1489,180 +2381,56 @@ public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... v return (A) this; } - public boolean hasVolumeMounts() { - return this.volumeMounts != null && !this.volumeMounts.isEmpty(); - } - - public VolumeMountsNested addNewVolumeMount() { - return new VolumeMountsNested(-1, null); - } - - public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { - return new VolumeMountsNested(-1, item); - } - - public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount 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 V1EnvFromSourceFluent> implements Nested{ - public boolean hasWorkingDir() { - return this.workingDir != 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; - V1ContainerFluent that = (V1ContainerFluent) o; - if (!java.util.Objects.equals(args, that.args)) return false; - if (!java.util.Objects.equals(command, that.command)) return false; - if (!java.util.Objects.equals(env, that.env)) return false; - if (!java.util.Objects.equals(envFrom, that.envFrom)) return false; - if (!java.util.Objects.equals(image, that.image)) return false; - if (!java.util.Objects.equals(imagePullPolicy, that.imagePullPolicy)) return false; - if (!java.util.Objects.equals(lifecycle, that.lifecycle)) return false; - if (!java.util.Objects.equals(livenessProbe, that.livenessProbe)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(ports, that.ports)) return false; - if (!java.util.Objects.equals(readinessProbe, that.readinessProbe)) return false; - if (!java.util.Objects.equals(resizePolicy, that.resizePolicy)) 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(securityContext, that.securityContext)) return false; - if (!java.util.Objects.equals(startupProbe, that.startupProbe)) return false; - if (!java.util.Objects.equals(stdin, that.stdin)) return false; - if (!java.util.Objects.equals(stdinOnce, that.stdinOnce)) return false; - if (!java.util.Objects.equals(terminationMessagePath, that.terminationMessagePath)) return false; - if (!java.util.Objects.equals(terminationMessagePolicy, that.terminationMessagePolicy)) return false; - if (!java.util.Objects.equals(tty, that.tty)) return false; - if (!java.util.Objects.equals(volumeDevices, that.volumeDevices)) return false; - if (!java.util.Objects.equals(volumeMounts, that.volumeMounts)) return false; - if (!java.util.Objects.equals(workingDir, that.workingDir)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, securityContext, startupProbe, stdin, stdinOnce, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (args != null && !args.isEmpty()) { sb.append("args:"); sb.append(args + ","); } - if (command != null && !command.isEmpty()) { sb.append("command:"); sb.append(command + ","); } - if (env != null && !env.isEmpty()) { sb.append("env:"); sb.append(env + ","); } - if (envFrom != null && !envFrom.isEmpty()) { sb.append("envFrom:"); sb.append(envFrom + ","); } - if (image != null) { sb.append("image:"); sb.append(image + ","); } - if (imagePullPolicy != null) { sb.append("imagePullPolicy:"); sb.append(imagePullPolicy + ","); } - if (lifecycle != null) { sb.append("lifecycle:"); sb.append(lifecycle + ","); } - if (livenessProbe != null) { sb.append("livenessProbe:"); sb.append(livenessProbe + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (ports != null && !ports.isEmpty()) { sb.append("ports:"); sb.append(ports + ","); } - if (readinessProbe != null) { sb.append("readinessProbe:"); sb.append(readinessProbe + ","); } - if (resizePolicy != null && !resizePolicy.isEmpty()) { sb.append("resizePolicy:"); sb.append(resizePolicy + ","); } - if (resources != null) { sb.append("resources:"); sb.append(resources + ","); } - if (restartPolicy != null) { sb.append("restartPolicy:"); sb.append(restartPolicy + ","); } - if (securityContext != null) { sb.append("securityContext:"); sb.append(securityContext + ","); } - if (startupProbe != null) { sb.append("startupProbe:"); sb.append(startupProbe + ","); } - if (stdin != null) { sb.append("stdin:"); sb.append(stdin + ","); } - if (stdinOnce != null) { sb.append("stdinOnce:"); sb.append(stdinOnce + ","); } - if (terminationMessagePath != null) { sb.append("terminationMessagePath:"); sb.append(terminationMessagePath + ","); } - if (terminationMessagePolicy != null) { sb.append("terminationMessagePolicy:"); sb.append(terminationMessagePolicy + ","); } - if (tty != null) { sb.append("tty:"); sb.append(tty + ","); } - if (volumeDevices != null && !volumeDevices.isEmpty()) { sb.append("volumeDevices:"); sb.append(volumeDevices + ","); } - if (volumeMounts != null && !volumeMounts.isEmpty()) { sb.append("volumeMounts:"); sb.append(volumeMounts + ","); } - if (workingDir != null) { sb.append("workingDir:"); sb.append(workingDir); } - sb.append("}"); - return sb.toString(); - } - - public A withStdin() { - return withStdin(true); - } - - public A withStdinOnce() { - return withStdinOnce(true); - } + V1EnvFromSourceBuilder builder; + int index; - public A withTty() { - return withTty(true); - } - public class EnvNested extends V1EnvVarFluent> implements Nested{ - EnvNested(int index,V1EnvVar item) { + EnvFromNested(int index,V1EnvFromSource item) { this.index = index; - this.builder = new V1EnvVarBuilder(this, item); + this.builder = new V1EnvFromSourceBuilder(this, item); } - V1EnvVarBuilder builder; - int index; - + public N and() { - return (N) V1ContainerFluent.this.setToEnv(index,builder.build()); + return (N) V1ContainerFluent.this.setToEnvFrom(index, builder.build()); } - public N endEnv() { + public N endEnvFrom() { return and(); } - } - public class EnvFromNested extends V1EnvFromSourceFluent> implements Nested{ - EnvFromNested(int index,V1EnvFromSource item) { + public class EnvNested extends V1EnvVarFluent> implements Nested{ + + V1EnvVarBuilder builder; + int index; + + EnvNested(int index,V1EnvVar item) { this.index = index; - this.builder = new V1EnvFromSourceBuilder(this, item); + this.builder = new V1EnvVarBuilder(this, item); } - V1EnvFromSourceBuilder builder; - int index; - + public N and() { - return (N) V1ContainerFluent.this.setToEnvFrom(index,builder.build()); + return (N) V1ContainerFluent.this.setToEnv(index, builder.build()); } - public N endEnvFrom() { + public N endEnv() { return and(); } - } public class LifecycleNested extends V1LifecycleFluent> implements Nested{ + + V1LifecycleBuilder builder; + LifecycleNested(V1Lifecycle item) { this.builder = new V1LifecycleBuilder(this, item); } - V1LifecycleBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withLifecycle(builder.build()); } @@ -1671,14 +2439,15 @@ public N endLifecycle() { return and(); } - } public class LivenessProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + LivenessProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withLivenessProbe(builder.build()); } @@ -1687,32 +2456,34 @@ public N endLivenessProbe() { return and(); } - } public class PortsNested extends V1ContainerPortFluent> implements Nested{ + + V1ContainerPortBuilder builder; + int index; + PortsNested(int index,V1ContainerPort item) { this.index = index; this.builder = new V1ContainerPortBuilder(this, item); } - V1ContainerPortBuilder builder; - int index; - + public N and() { - return (N) V1ContainerFluent.this.setToPorts(index,builder.build()); + return (N) V1ContainerFluent.this.setToPorts(index, builder.build()); } public N endPort() { return and(); } - } public class ReadinessProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + ReadinessProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withReadinessProbe(builder.build()); } @@ -1721,32 +2492,34 @@ public N endReadinessProbe() { return and(); } - } public class ResizePolicyNested extends V1ContainerResizePolicyFluent> implements Nested{ + + V1ContainerResizePolicyBuilder builder; + int index; + ResizePolicyNested(int index,V1ContainerResizePolicy item) { this.index = index; this.builder = new V1ContainerResizePolicyBuilder(this, item); } - V1ContainerResizePolicyBuilder builder; - int index; - + public N and() { - return (N) V1ContainerFluent.this.setToResizePolicy(index,builder.build()); + return (N) V1ContainerFluent.this.setToResizePolicy(index, builder.build()); } public N endResizePolicy() { return and(); } - } public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + + V1ResourceRequirementsBuilder builder; + ResourcesNested(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - V1ResourceRequirementsBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withResources(builder.build()); } @@ -1755,14 +2528,34 @@ public N endResources() { return and(); } + } + public class RestartPolicyRulesNested extends V1ContainerRestartRuleFluent> implements Nested{ + + V1ContainerRestartRuleBuilder builder; + int index; + + RestartPolicyRulesNested(int index,V1ContainerRestartRule item) { + this.index = index; + this.builder = new V1ContainerRestartRuleBuilder(this, item); + } + public N and() { + return (N) V1ContainerFluent.this.setToRestartPolicyRules(index, builder.build()); + } + + public N endRestartPolicyRule() { + return and(); + } + } public class SecurityContextNested extends V1SecurityContextFluent> implements Nested{ + + V1SecurityContextBuilder builder; + SecurityContextNested(V1SecurityContext item) { this.builder = new V1SecurityContextBuilder(this, item); } - V1SecurityContextBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withSecurityContext(builder.build()); } @@ -1771,14 +2564,15 @@ public N endSecurityContext() { return and(); } - } public class StartupProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + StartupProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1ContainerFluent.this.withStartupProbe(builder.build()); } @@ -1787,43 +2581,43 @@ public N endStartupProbe() { return and(); } - } public class VolumeDevicesNested extends V1VolumeDeviceFluent> implements Nested{ + + V1VolumeDeviceBuilder builder; + int index; + VolumeDevicesNested(int index,V1VolumeDevice item) { this.index = index; this.builder = new V1VolumeDeviceBuilder(this, item); } - V1VolumeDeviceBuilder builder; - int index; - + public N and() { - return (N) V1ContainerFluent.this.setToVolumeDevices(index,builder.build()); + return (N) V1ContainerFluent.this.setToVolumeDevices(index, builder.build()); } public N endVolumeDevice() { return and(); } - } public class VolumeMountsNested extends V1VolumeMountFluent> implements Nested{ + + V1VolumeMountBuilder builder; + int index; + VolumeMountsNested(int index,V1VolumeMount item) { this.index = index; this.builder = new V1VolumeMountBuilder(this, item); } - V1VolumeMountBuilder builder; - int index; - + public N and() { - return (N) V1ContainerFluent.this.setToVolumeMounts(index,builder.build()); + return (N) V1ContainerFluent.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/V1ContainerImageBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java index e558dface8..68c8280070 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerImageBuilder extends V1ContainerImageFluent implements VisitableBuilder{ + + V1ContainerImageFluent fluent; + public V1ContainerImageBuilder() { this(new V1ContainerImage()); } @@ -10,17 +14,16 @@ public V1ContainerImageBuilder(V1ContainerImageFluent fluent) { this(fluent, new V1ContainerImage()); } - public V1ContainerImageBuilder(V1ContainerImageFluent fluent,V1ContainerImage instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerImageBuilder(V1ContainerImage instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerImageFluent fluent; + public V1ContainerImageBuilder(V1ContainerImageFluent fluent,V1ContainerImage instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerImage build() { V1ContainerImage buildable = new V1ContainerImage(); buildable.setNames(fluent.getNames()); @@ -28,5 +31,4 @@ public V1ContainerImage build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java index d6dc942188..99502c43d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java @@ -1,74 +1,87 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerImageFluent> extends BaseFluent{ +public class V1ContainerImageFluent> extends BaseFluent{ + + private List names; + private Long sizeBytes; + public V1ContainerImageFluent() { } public V1ContainerImageFluent(V1ContainerImage instance) { this.copyInstance(instance); } - private List names; - private Long sizeBytes; - - protected void copyInstance(V1ContainerImage instance) { - instance = (instance != null ? instance : new V1ContainerImage()); - if (instance != null) { - this.withNames(instance.getNames()); - this.withSizeBytes(instance.getSizeBytes()); - } - } - - public A addToNames(int index,String item) { - if (this.names == null) {this.names = new ArrayList();} - this.names.add(index, item); - return (A)this; - } - - public A setToNames(int index,String item) { - if (this.names == null) {this.names = new ArrayList();} - this.names.set(index, item); return (A)this; - } - - public A addToNames(java.lang.String... items) { - if (this.names == null) {this.names = new ArrayList();} - for (String item : items) {this.names.add(item);} return (A)this; - } - + public A addAllToNames(Collection items) { - if (this.names == null) {this.names = new ArrayList();} - for (String item : items) {this.names.add(item);} return (A)this; + if (this.names == null) { + this.names = new ArrayList(); + } + for (String item : items) { + this.names.add(item); + } + return (A) this; } - public A removeFromNames(java.lang.String... items) { - if (this.names == null) return (A)this; - for (String item : items) { this.names.remove(item);} return (A)this; + public A addToNames(String... items) { + if (this.names == null) { + this.names = new ArrayList(); + } + for (String item : items) { + this.names.add(item); + } + return (A) this; } - public A removeAllFromNames(Collection items) { - if (this.names == null) return (A)this; - for (String item : items) { this.names.remove(item);} return (A)this; + public A addToNames(int index,String item) { + if (this.names == null) { + this.names = new ArrayList(); + } + this.names.add(index, item); + return (A) this; } - public List getNames() { - return this.names; + protected void copyInstance(V1ContainerImage instance) { + instance = instance != null ? instance : new V1ContainerImage(); + if (instance != null) { + this.withNames(instance.getNames()); + this.withSizeBytes(instance.getSizeBytes()); + } } - public String getName(int index) { - return this.names.get(index); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerImageFluent that = (V1ContainerImageFluent) o; + if (!(Objects.equals(names, that.names))) { + return false; + } + if (!(Objects.equals(sizeBytes, that.sizeBytes))) { + return false; + } + return true; } public String getFirstName() { @@ -88,6 +101,18 @@ public String getMatchingName(Predicate predicate) { return null; } + public String getName(int index) { + return this.names.get(index); + } + + public List getNames() { + return this.names; + } + + public Long getSizeBytes() { + return this.sizeBytes; + } + public boolean hasMatchingName(Predicate predicate) { for (String item : names) { if (predicate.test(item)) { @@ -97,6 +122,62 @@ public boolean hasMatchingName(Predicate predicate) { return false; } + public boolean hasNames() { + return this.names != null && !(this.names.isEmpty()); + } + + public boolean hasSizeBytes() { + return this.sizeBytes != null; + } + + public int hashCode() { + return Objects.hash(names, sizeBytes); + } + + public A removeAllFromNames(Collection items) { + if (this.names == null) { + return (A) this; + } + for (String item : items) { + this.names.remove(item); + } + return (A) this; + } + + public A removeFromNames(String... items) { + if (this.names == null) { + return (A) this; + } + for (String item : items) { + this.names.remove(item); + } + return (A) this; + } + + public A setToNames(int index,String item) { + if (this.names == null) { + this.names = new ArrayList(); + } + this.names.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(names == null) && !(names.isEmpty())) { + sb.append("names:"); + sb.append(names); + sb.append(","); + } + if (!(sizeBytes == null)) { + sb.append("sizeBytes:"); + sb.append(sizeBytes); + } + sb.append("}"); + return sb.toString(); + } + public A withNames(List names) { if (names != null) { this.names = new ArrayList(); @@ -109,7 +190,7 @@ public A withNames(List names) { return (A) this; } - public A withNames(java.lang.String... names) { + public A withNames(String... names) { if (this.names != null) { this.names.clear(); _visitables.remove("names"); @@ -122,45 +203,9 @@ public A withNames(java.lang.String... names) { return (A) this; } - public boolean hasNames() { - return this.names != null && !this.names.isEmpty(); - } - - public Long getSizeBytes() { - return this.sizeBytes; - } - public A withSizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; return (A) this; } - public boolean hasSizeBytes() { - return this.sizeBytes != 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; - V1ContainerImageFluent that = (V1ContainerImageFluent) o; - if (!java.util.Objects.equals(names, that.names)) return false; - if (!java.util.Objects.equals(sizeBytes, that.sizeBytes)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(names, sizeBytes, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (names != null && !names.isEmpty()) { sb.append("names:"); sb.append(names + ","); } - if (sizeBytes != null) { sb.append("sizeBytes:"); sb.append(sizeBytes); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java index 274716d8d9..b30a6f2d50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerPortBuilder extends V1ContainerPortFluent implements VisitableBuilder{ + + V1ContainerPortFluent fluent; + public V1ContainerPortBuilder() { this(new V1ContainerPort()); } @@ -10,17 +14,16 @@ public V1ContainerPortBuilder(V1ContainerPortFluent fluent) { this(fluent, new V1ContainerPort()); } - public V1ContainerPortBuilder(V1ContainerPortFluent fluent,V1ContainerPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerPortBuilder(V1ContainerPort instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerPortFluent fluent; + public V1ContainerPortBuilder(V1ContainerPortFluent fluent,V1ContainerPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerPort build() { V1ContainerPort buildable = new V1ContainerPort(); buildable.setContainerPort(fluent.getContainerPort()); @@ -31,5 +34,4 @@ public V1ContainerPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java index 3091526b16..2436b55391 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java @@ -1,132 +1,170 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerPortFluent> extends BaseFluent{ - public V1ContainerPortFluent() { - } - - public V1ContainerPortFluent(V1ContainerPort instance) { - this.copyInstance(instance); - } +public class V1ContainerPortFluent> extends BaseFluent{ + private Integer containerPort; private String hostIP; private Integer hostPort; private String name; private String protocol; + + public V1ContainerPortFluent() { + } + public V1ContainerPortFluent(V1ContainerPort instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ContainerPort instance) { - instance = (instance != null ? instance : new V1ContainerPort()); + instance = instance != null ? instance : new V1ContainerPort(); if (instance != null) { - this.withContainerPort(instance.getContainerPort()); - this.withHostIP(instance.getHostIP()); - this.withHostPort(instance.getHostPort()); - this.withName(instance.getName()); - this.withProtocol(instance.getProtocol()); - } + this.withContainerPort(instance.getContainerPort()); + this.withHostIP(instance.getHostIP()); + this.withHostPort(instance.getHostPort()); + this.withName(instance.getName()); + this.withProtocol(instance.getProtocol()); + } } - public Integer getContainerPort() { - return this.containerPort; - } - - public A withContainerPort(Integer containerPort) { - this.containerPort = containerPort; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerPortFluent that = (V1ContainerPortFluent) o; + if (!(Objects.equals(containerPort, that.containerPort))) { + return false; + } + if (!(Objects.equals(hostIP, that.hostIP))) { + return false; + } + if (!(Objects.equals(hostPort, that.hostPort))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } + return true; } - public boolean hasContainerPort() { - return this.containerPort != null; + public Integer getContainerPort() { + return this.containerPort; } public String getHostIP() { return this.hostIP; } - public A withHostIP(String hostIP) { - this.hostIP = hostIP; - return (A) this; + public Integer getHostPort() { + return this.hostPort; } - public boolean hasHostIP() { - return this.hostIP != null; + public String getName() { + return this.name; } - public Integer getHostPort() { - return this.hostPort; + public String getProtocol() { + return this.protocol; } - public A withHostPort(Integer hostPort) { - this.hostPort = hostPort; - return (A) this; + public boolean hasContainerPort() { + return this.containerPort != null; + } + + public boolean hasHostIP() { + return this.hostIP != null; } public boolean hasHostPort() { return this.hostPort != null; } - public String getName() { - return this.name; + public boolean hasName() { + return this.name != null; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasProtocol() { + return this.protocol != null; } - public boolean hasName() { - return this.name != null; + public int hashCode() { + return Objects.hash(containerPort, hostIP, hostPort, name, protocol); } - public String getProtocol() { - return this.protocol; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(containerPort == null)) { + sb.append("containerPort:"); + sb.append(containerPort); + sb.append(","); + } + if (!(hostIP == null)) { + sb.append("hostIP:"); + sb.append(hostIP); + sb.append(","); + } + if (!(hostPort == null)) { + sb.append("hostPort:"); + sb.append(hostPort); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } + sb.append("}"); + return sb.toString(); } - public A withProtocol(String protocol) { - this.protocol = protocol; + public A withContainerPort(Integer containerPort) { + this.containerPort = containerPort; return (A) this; } - public boolean hasProtocol() { - return this.protocol != null; + public A withHostIP(String hostIP) { + this.hostIP = hostIP; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ContainerPortFluent that = (V1ContainerPortFluent) o; - if (!java.util.Objects.equals(containerPort, that.containerPort)) return false; - if (!java.util.Objects.equals(hostIP, that.hostIP)) return false; - if (!java.util.Objects.equals(hostPort, that.hostPort)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; - return true; + public A withHostPort(Integer hostPort) { + this.hostPort = hostPort; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(containerPort, hostIP, hostPort, name, protocol, super.hashCode()); + public A withName(String name) { + this.name = name; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (containerPort != null) { sb.append("containerPort:"); sb.append(containerPort + ","); } - if (hostIP != null) { sb.append("hostIP:"); sb.append(hostIP + ","); } - if (hostPort != null) { sb.append("hostPort:"); sb.append(hostPort + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } - sb.append("}"); - return sb.toString(); + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java index 40723cd8e1..237f648b62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerResizePolicyBuilder extends V1ContainerResizePolicyFluent implements VisitableBuilder{ + + V1ContainerResizePolicyFluent fluent; + public V1ContainerResizePolicyBuilder() { this(new V1ContainerResizePolicy()); } @@ -10,17 +14,16 @@ public V1ContainerResizePolicyBuilder(V1ContainerResizePolicyFluent fluent) { this(fluent, new V1ContainerResizePolicy()); } - public V1ContainerResizePolicyBuilder(V1ContainerResizePolicyFluent fluent,V1ContainerResizePolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerResizePolicyBuilder(V1ContainerResizePolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerResizePolicyFluent fluent; + public V1ContainerResizePolicyBuilder(V1ContainerResizePolicyFluent fluent,V1ContainerResizePolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerResizePolicy build() { V1ContainerResizePolicy buildable = new V1ContainerResizePolicy(); buildable.setResourceName(fluent.getResourceName()); @@ -28,5 +31,4 @@ public V1ContainerResizePolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java index 06a5367829..49951099f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerResizePolicyFluent> extends BaseFluent{ +public class V1ContainerResizePolicyFluent> extends BaseFluent{ + + private String resourceName; + private String restartPolicy; + public V1ContainerResizePolicyFluent() { } public V1ContainerResizePolicyFluent(V1ContainerResizePolicy instance) { this.copyInstance(instance); } - private String resourceName; - private String restartPolicy; - + protected void copyInstance(V1ContainerResizePolicy instance) { - instance = (instance != null ? instance : new V1ContainerResizePolicy()); + instance = instance != null ? instance : new V1ContainerResizePolicy(); if (instance != null) { - this.withResourceName(instance.getResourceName()); - this.withRestartPolicy(instance.getRestartPolicy()); - } + this.withResourceName(instance.getResourceName()); + this.withRestartPolicy(instance.getRestartPolicy()); + } } - public String getResourceName() { - return this.resourceName; - } - - public A withResourceName(String resourceName) { - this.resourceName = resourceName; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerResizePolicyFluent that = (V1ContainerResizePolicyFluent) o; + if (!(Objects.equals(resourceName, that.resourceName))) { + return false; + } + if (!(Objects.equals(restartPolicy, that.restartPolicy))) { + return false; + } + return true; } - public boolean hasResourceName() { - return this.resourceName != null; + public String getResourceName() { + return this.resourceName; } public String getRestartPolicy() { return this.restartPolicy; } - public A withRestartPolicy(String restartPolicy) { - this.restartPolicy = restartPolicy; - return (A) this; + public boolean hasResourceName() { + return this.resourceName != null; } public boolean hasRestartPolicy() { return this.restartPolicy != 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; - V1ContainerResizePolicyFluent that = (V1ContainerResizePolicyFluent) o; - if (!java.util.Objects.equals(resourceName, that.resourceName)) return false; - if (!java.util.Objects.equals(restartPolicy, that.restartPolicy)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(resourceName, restartPolicy, super.hashCode()); + return Objects.hash(resourceName, restartPolicy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (resourceName != null) { sb.append("resourceName:"); sb.append(resourceName + ","); } - if (restartPolicy != null) { sb.append("restartPolicy:"); sb.append(restartPolicy); } + if (!(resourceName == null)) { + sb.append("resourceName:"); + sb.append(resourceName); + sb.append(","); + } + if (!(restartPolicy == null)) { + sb.append("restartPolicy:"); + sb.append(restartPolicy); + } sb.append("}"); return sb.toString(); } - + public A withResourceName(String resourceName) { + this.resourceName = resourceName; + return (A) this; + } + + public A withRestartPolicy(String restartPolicy) { + this.restartPolicy = restartPolicy; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java new file mode 100644 index 0000000000..6a9b2332d7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ContainerRestartRuleBuilder extends V1ContainerRestartRuleFluent implements VisitableBuilder{ + + V1ContainerRestartRuleFluent fluent; + + public V1ContainerRestartRuleBuilder() { + this(new V1ContainerRestartRule()); + } + + public V1ContainerRestartRuleBuilder(V1ContainerRestartRuleFluent fluent) { + this(fluent, new V1ContainerRestartRule()); + } + + public V1ContainerRestartRuleBuilder(V1ContainerRestartRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ContainerRestartRuleBuilder(V1ContainerRestartRuleFluent fluent,V1ContainerRestartRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ContainerRestartRule build() { + V1ContainerRestartRule buildable = new V1ContainerRestartRule(); + buildable.setAction(fluent.getAction()); + buildable.setExitCodes(fluent.buildExitCodes()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java new file mode 100644 index 0000000000..eb111858ed --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java @@ -0,0 +1,145 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ContainerRestartRuleFluent> extends BaseFluent{ + + private String action; + private V1ContainerRestartRuleOnExitCodesBuilder exitCodes; + + public V1ContainerRestartRuleFluent() { + } + + public V1ContainerRestartRuleFluent(V1ContainerRestartRule instance) { + this.copyInstance(instance); + } + + public V1ContainerRestartRuleOnExitCodes buildExitCodes() { + return this.exitCodes != null ? this.exitCodes.build() : null; + } + + protected void copyInstance(V1ContainerRestartRule instance) { + instance = instance != null ? instance : new V1ContainerRestartRule(); + if (instance != null) { + this.withAction(instance.getAction()); + this.withExitCodes(instance.getExitCodes()); + } + } + + public ExitCodesNested editExitCodes() { + return this.withNewExitCodesLike(Optional.ofNullable(this.buildExitCodes()).orElse(null)); + } + + public ExitCodesNested editOrNewExitCodes() { + return this.withNewExitCodesLike(Optional.ofNullable(this.buildExitCodes()).orElse(new V1ContainerRestartRuleOnExitCodesBuilder().build())); + } + + public ExitCodesNested editOrNewExitCodesLike(V1ContainerRestartRuleOnExitCodes item) { + return this.withNewExitCodesLike(Optional.ofNullable(this.buildExitCodes()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerRestartRuleFluent that = (V1ContainerRestartRuleFluent) o; + if (!(Objects.equals(action, that.action))) { + return false; + } + if (!(Objects.equals(exitCodes, that.exitCodes))) { + return false; + } + return true; + } + + public String getAction() { + return this.action; + } + + public boolean hasAction() { + return this.action != null; + } + + public boolean hasExitCodes() { + return this.exitCodes != null; + } + + public int hashCode() { + return Objects.hash(action, exitCodes); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(action == null)) { + sb.append("action:"); + sb.append(action); + sb.append(","); + } + if (!(exitCodes == null)) { + sb.append("exitCodes:"); + sb.append(exitCodes); + } + sb.append("}"); + return sb.toString(); + } + + public A withAction(String action) { + this.action = action; + return (A) this; + } + + public A withExitCodes(V1ContainerRestartRuleOnExitCodes exitCodes) { + this._visitables.remove("exitCodes"); + if (exitCodes != null) { + this.exitCodes = new V1ContainerRestartRuleOnExitCodesBuilder(exitCodes); + this._visitables.get("exitCodes").add(this.exitCodes); + } else { + this.exitCodes = null; + this._visitables.get("exitCodes").remove(this.exitCodes); + } + return (A) this; + } + + public ExitCodesNested withNewExitCodes() { + return new ExitCodesNested(null); + } + + public ExitCodesNested withNewExitCodesLike(V1ContainerRestartRuleOnExitCodes item) { + return new ExitCodesNested(item); + } + public class ExitCodesNested extends V1ContainerRestartRuleOnExitCodesFluent> implements Nested{ + + V1ContainerRestartRuleOnExitCodesBuilder builder; + + ExitCodesNested(V1ContainerRestartRuleOnExitCodes item) { + this.builder = new V1ContainerRestartRuleOnExitCodesBuilder(this, item); + } + + public N and() { + return (N) V1ContainerRestartRuleFluent.this.withExitCodes(builder.build()); + } + + public N endExitCodes() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java new file mode 100644 index 0000000000..3b44e8fa81 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ContainerRestartRuleOnExitCodesBuilder extends V1ContainerRestartRuleOnExitCodesFluent implements VisitableBuilder{ + + V1ContainerRestartRuleOnExitCodesFluent fluent; + + public V1ContainerRestartRuleOnExitCodesBuilder() { + this(new V1ContainerRestartRuleOnExitCodes()); + } + + public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCodesFluent fluent) { + this(fluent, new V1ContainerRestartRuleOnExitCodes()); + } + + public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCodes instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ContainerRestartRuleOnExitCodesBuilder(V1ContainerRestartRuleOnExitCodesFluent fluent,V1ContainerRestartRuleOnExitCodes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ContainerRestartRuleOnExitCodes build() { + V1ContainerRestartRuleOnExitCodes buildable = new V1ContainerRestartRuleOnExitCodes(); + 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/V1ContainerRestartRuleOnExitCodesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java new file mode 100644 index 0000000000..6763648c6c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java @@ -0,0 +1,211 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ContainerRestartRuleOnExitCodesFluent> extends BaseFluent{ + + private String operator; + private List values; + + public V1ContainerRestartRuleOnExitCodesFluent() { + } + + public V1ContainerRestartRuleOnExitCodesFluent(V1ContainerRestartRuleOnExitCodes instance) { + this.copyInstance(instance); + } + + public A addAllToValues(Collection items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (Integer item : items) { + this.values.add(item); + } + return (A) this; + } + + public A addToValues(Integer... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (Integer item : items) { + this.values.add(item); + } + return (A) this; + } + + public A addToValues(int index,Integer item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(index, item); + return (A) this; + } + + protected void copyInstance(V1ContainerRestartRuleOnExitCodes instance) { + instance = instance != null ? instance : new V1ContainerRestartRuleOnExitCodes(); + if (instance != null) { + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerRestartRuleOnExitCodesFluent that = (V1ContainerRestartRuleOnExitCodesFluent) o; + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; + } + + public Integer getFirstValue() { + return this.values.get(0); + } + + public Integer getLastValue() { + return this.values.get(values.size() - 1); + } + + public Integer getMatchingValue(Predicate predicate) { + for (Integer item : values) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getOperator() { + return this.operator; + } + + public Integer getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + + public boolean hasMatchingValue(Predicate predicate) { + for (Integer item : values) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public boolean hasValues() { + return this.values != null && !(this.values.isEmpty()); + } + + public int hashCode() { + return Objects.hash(operator, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; + } + for (Integer item : items) { + this.values.remove(item); + } + return (A) this; + } + + public A removeFromValues(Integer... items) { + if (this.values == null) { + return (A) this; + } + for (Integer item : items) { + this.values.remove(item); + } + return (A) this; + } + + public A setToValues(int index,Integer item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } + sb.append("}"); + return sb.toString(); + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withValues(List values) { + if (values != null) { + this.values = new ArrayList(); + for (Integer item : values) { + this.addToValues(item); + } + } else { + this.values = null; + } + return (A) this; + } + + public A withValues(Integer... values) { + if (this.values != null) { + this.values.clear(); + _visitables.remove("values"); + } + if (values != null) { + for (Integer item : values) { + this.addToValues(item); + } + } + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java index d30560c4f6..79825a4d8f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStateBuilder extends V1ContainerStateFluent implements VisitableBuilder{ + + V1ContainerStateFluent fluent; + public V1ContainerStateBuilder() { this(new V1ContainerState()); } @@ -10,17 +14,16 @@ public V1ContainerStateBuilder(V1ContainerStateFluent fluent) { this(fluent, new V1ContainerState()); } - public V1ContainerStateBuilder(V1ContainerStateFluent fluent,V1ContainerState instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStateBuilder(V1ContainerState instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStateFluent fluent; + public V1ContainerStateBuilder(V1ContainerStateFluent fluent,V1ContainerState instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerState build() { V1ContainerState buildable = new V1ContainerState(); buildable.setRunning(fluent.buildRunning()); @@ -29,5 +32,4 @@ public V1ContainerState build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java index 72b5df0b25..fe4194d7ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java @@ -1,133 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStateFluent> extends BaseFluent{ +public class V1ContainerStateFluent> extends BaseFluent{ + + private V1ContainerStateRunningBuilder running; + private V1ContainerStateTerminatedBuilder terminated; + private V1ContainerStateWaitingBuilder waiting; + public V1ContainerStateFluent() { } public V1ContainerStateFluent(V1ContainerState instance) { this.copyInstance(instance); } - private V1ContainerStateRunningBuilder running; - private V1ContainerStateTerminatedBuilder terminated; - private V1ContainerStateWaitingBuilder waiting; + + public V1ContainerStateRunning buildRunning() { + return this.running != null ? this.running.build() : null; + } + + public V1ContainerStateTerminated buildTerminated() { + return this.terminated != null ? this.terminated.build() : null; + } + + public V1ContainerStateWaiting buildWaiting() { + return this.waiting != null ? this.waiting.build() : null; + } protected void copyInstance(V1ContainerState instance) { - instance = (instance != null ? instance : new V1ContainerState()); + instance = instance != null ? instance : new V1ContainerState(); if (instance != null) { - this.withRunning(instance.getRunning()); - this.withTerminated(instance.getTerminated()); - this.withWaiting(instance.getWaiting()); - } + this.withRunning(instance.getRunning()); + this.withTerminated(instance.getTerminated()); + this.withWaiting(instance.getWaiting()); + } } - public V1ContainerStateRunning buildRunning() { - return this.running != null ? this.running.build() : null; + public RunningNested editOrNewRunning() { + return this.withNewRunningLike(Optional.ofNullable(this.buildRunning()).orElse(new V1ContainerStateRunningBuilder().build())); } - public A withRunning(V1ContainerStateRunning running) { - this._visitables.remove("running"); - if (running != null) { - this.running = new V1ContainerStateRunningBuilder(running); - this._visitables.get("running").add(this.running); - } else { - this.running = null; - this._visitables.get("running").remove(this.running); - } - return (A) this; + public RunningNested editOrNewRunningLike(V1ContainerStateRunning item) { + return this.withNewRunningLike(Optional.ofNullable(this.buildRunning()).orElse(item)); } - public boolean hasRunning() { - return this.running != null; + public TerminatedNested editOrNewTerminated() { + return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(new V1ContainerStateTerminatedBuilder().build())); } - public RunningNested withNewRunning() { - return new RunningNested(null); + public TerminatedNested editOrNewTerminatedLike(V1ContainerStateTerminated item) { + return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(item)); } - public RunningNested withNewRunningLike(V1ContainerStateRunning item) { - return new RunningNested(item); + public WaitingNested editOrNewWaiting() { + return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(new V1ContainerStateWaitingBuilder().build())); } - public RunningNested editRunning() { - return withNewRunningLike(java.util.Optional.ofNullable(buildRunning()).orElse(null)); + public WaitingNested editOrNewWaitingLike(V1ContainerStateWaiting item) { + return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(item)); } - public RunningNested editOrNewRunning() { - return withNewRunningLike(java.util.Optional.ofNullable(buildRunning()).orElse(new V1ContainerStateRunningBuilder().build())); + public RunningNested editRunning() { + return this.withNewRunningLike(Optional.ofNullable(this.buildRunning()).orElse(null)); } - public RunningNested editOrNewRunningLike(V1ContainerStateRunning item) { - return withNewRunningLike(java.util.Optional.ofNullable(buildRunning()).orElse(item)); + public TerminatedNested editTerminated() { + return this.withNewTerminatedLike(Optional.ofNullable(this.buildTerminated()).orElse(null)); } - public V1ContainerStateTerminated buildTerminated() { - return this.terminated != null ? this.terminated.build() : null; + public WaitingNested editWaiting() { + return this.withNewWaitingLike(Optional.ofNullable(this.buildWaiting()).orElse(null)); } - public A withTerminated(V1ContainerStateTerminated terminated) { - this._visitables.remove("terminated"); - if (terminated != null) { - this.terminated = new V1ContainerStateTerminatedBuilder(terminated); - this._visitables.get("terminated").add(this.terminated); - } else { - this.terminated = null; - this._visitables.get("terminated").remove(this.terminated); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerStateFluent that = (V1ContainerStateFluent) o; + if (!(Objects.equals(running, that.running))) { + return false; + } + if (!(Objects.equals(terminated, that.terminated))) { + return false; + } + if (!(Objects.equals(waiting, that.waiting))) { + return false; + } + return true; } - public boolean hasTerminated() { - return this.terminated != null; + public boolean hasRunning() { + return this.running != null; } - public TerminatedNested withNewTerminated() { - return new TerminatedNested(null); + public boolean hasTerminated() { + return this.terminated != null; } - public TerminatedNested withNewTerminatedLike(V1ContainerStateTerminated item) { - return new TerminatedNested(item); + public boolean hasWaiting() { + return this.waiting != null; } - public TerminatedNested editTerminated() { - return withNewTerminatedLike(java.util.Optional.ofNullable(buildTerminated()).orElse(null)); + public int hashCode() { + return Objects.hash(running, terminated, waiting); } - public TerminatedNested editOrNewTerminated() { - return withNewTerminatedLike(java.util.Optional.ofNullable(buildTerminated()).orElse(new V1ContainerStateTerminatedBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(running == null)) { + sb.append("running:"); + sb.append(running); + sb.append(","); + } + if (!(terminated == null)) { + sb.append("terminated:"); + sb.append(terminated); + sb.append(","); + } + if (!(waiting == null)) { + sb.append("waiting:"); + sb.append(waiting); + } + sb.append("}"); + return sb.toString(); } - public TerminatedNested editOrNewTerminatedLike(V1ContainerStateTerminated item) { - return withNewTerminatedLike(java.util.Optional.ofNullable(buildTerminated()).orElse(item)); + public RunningNested withNewRunning() { + return new RunningNested(null); } - public V1ContainerStateWaiting buildWaiting() { - return this.waiting != null ? this.waiting.build() : null; + public RunningNested withNewRunningLike(V1ContainerStateRunning item) { + return new RunningNested(item); } - public A withWaiting(V1ContainerStateWaiting waiting) { - this._visitables.remove("waiting"); - if (waiting != null) { - this.waiting = new V1ContainerStateWaitingBuilder(waiting); - this._visitables.get("waiting").add(this.waiting); - } else { - this.waiting = null; - this._visitables.get("waiting").remove(this.waiting); - } - return (A) this; + public TerminatedNested withNewTerminated() { + return new TerminatedNested(null); } - public boolean hasWaiting() { - return this.waiting != null; + public TerminatedNested withNewTerminatedLike(V1ContainerStateTerminated item) { + return new TerminatedNested(item); } public WaitingNested withNewWaiting() { @@ -138,48 +167,49 @@ public WaitingNested withNewWaitingLike(V1ContainerStateWaiting item) { return new WaitingNested(item); } - public WaitingNested editWaiting() { - return withNewWaitingLike(java.util.Optional.ofNullable(buildWaiting()).orElse(null)); - } - - public WaitingNested editOrNewWaiting() { - return withNewWaitingLike(java.util.Optional.ofNullable(buildWaiting()).orElse(new V1ContainerStateWaitingBuilder().build())); + public A withRunning(V1ContainerStateRunning running) { + this._visitables.remove("running"); + if (running != null) { + this.running = new V1ContainerStateRunningBuilder(running); + this._visitables.get("running").add(this.running); + } else { + this.running = null; + this._visitables.get("running").remove(this.running); + } + return (A) this; } - public WaitingNested editOrNewWaitingLike(V1ContainerStateWaiting item) { - return withNewWaitingLike(java.util.Optional.ofNullable(buildWaiting()).orElse(item)); + public A withTerminated(V1ContainerStateTerminated terminated) { + this._visitables.remove("terminated"); + if (terminated != null) { + this.terminated = new V1ContainerStateTerminatedBuilder(terminated); + this._visitables.get("terminated").add(this.terminated); + } else { + this.terminated = null; + this._visitables.get("terminated").remove(this.terminated); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ContainerStateFluent that = (V1ContainerStateFluent) o; - if (!java.util.Objects.equals(running, that.running)) return false; - if (!java.util.Objects.equals(terminated, that.terminated)) return false; - if (!java.util.Objects.equals(waiting, that.waiting)) return false; - return true; + public A withWaiting(V1ContainerStateWaiting waiting) { + this._visitables.remove("waiting"); + if (waiting != null) { + this.waiting = new V1ContainerStateWaitingBuilder(waiting); + this._visitables.get("waiting").add(this.waiting); + } else { + this.waiting = null; + this._visitables.get("waiting").remove(this.waiting); + } + return (A) this; } + public class RunningNested extends V1ContainerStateRunningFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(running, terminated, waiting, super.hashCode()); - } + V1ContainerStateRunningBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (running != null) { sb.append("running:"); sb.append(running + ","); } - if (terminated != null) { sb.append("terminated:"); sb.append(terminated + ","); } - if (waiting != null) { sb.append("waiting:"); sb.append(waiting); } - sb.append("}"); - return sb.toString(); - } - public class RunningNested extends V1ContainerStateRunningFluent> implements Nested{ RunningNested(V1ContainerStateRunning item) { this.builder = new V1ContainerStateRunningBuilder(this, item); } - V1ContainerStateRunningBuilder builder; - + public N and() { return (N) V1ContainerStateFluent.this.withRunning(builder.build()); } @@ -188,14 +218,15 @@ public N endRunning() { return and(); } - } public class TerminatedNested extends V1ContainerStateTerminatedFluent> implements Nested{ + + V1ContainerStateTerminatedBuilder builder; + TerminatedNested(V1ContainerStateTerminated item) { this.builder = new V1ContainerStateTerminatedBuilder(this, item); } - V1ContainerStateTerminatedBuilder builder; - + public N and() { return (N) V1ContainerStateFluent.this.withTerminated(builder.build()); } @@ -204,14 +235,15 @@ public N endTerminated() { return and(); } - } public class WaitingNested extends V1ContainerStateWaitingFluent> implements Nested{ + + V1ContainerStateWaitingBuilder builder; + WaitingNested(V1ContainerStateWaiting item) { this.builder = new V1ContainerStateWaitingBuilder(this, item); } - V1ContainerStateWaitingBuilder builder; - + public N and() { return (N) V1ContainerStateFluent.this.withWaiting(builder.build()); } @@ -220,7 +252,5 @@ public N endWaiting() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java index b6d6ec884c..2feeee8cbe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStateRunningBuilder extends V1ContainerStateRunningFluent implements VisitableBuilder{ + + V1ContainerStateRunningFluent fluent; + public V1ContainerStateRunningBuilder() { this(new V1ContainerStateRunning()); } @@ -10,22 +14,20 @@ public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent) { this(fluent, new V1ContainerStateRunning()); } - public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent,V1ContainerStateRunning instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStateRunningBuilder(V1ContainerStateRunning instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStateRunningFluent fluent; + public V1ContainerStateRunningBuilder(V1ContainerStateRunningFluent fluent,V1ContainerStateRunning instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerStateRunning build() { V1ContainerStateRunning buildable = new V1ContainerStateRunning(); buildable.setStartedAt(fluent.getStartedAt()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java index 2c3d4bdc9f..5ce85a5c75 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java @@ -1,64 +1,78 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStateRunningFluent> extends BaseFluent{ +public class V1ContainerStateRunningFluent> extends BaseFluent{ + + private OffsetDateTime startedAt; + public V1ContainerStateRunningFluent() { } public V1ContainerStateRunningFluent(V1ContainerStateRunning instance) { this.copyInstance(instance); } - private OffsetDateTime startedAt; - + protected void copyInstance(V1ContainerStateRunning instance) { - instance = (instance != null ? instance : new V1ContainerStateRunning()); + instance = instance != null ? instance : new V1ContainerStateRunning(); if (instance != null) { - this.withStartedAt(instance.getStartedAt()); - } + this.withStartedAt(instance.getStartedAt()); + } } - public OffsetDateTime getStartedAt() { - return this.startedAt; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerStateRunningFluent that = (V1ContainerStateRunningFluent) o; + if (!(Objects.equals(startedAt, that.startedAt))) { + return false; + } + return true; } - public A withStartedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; - return (A) this; + public OffsetDateTime getStartedAt() { + return this.startedAt; } public boolean hasStartedAt() { return this.startedAt != 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; - V1ContainerStateRunningFluent that = (V1ContainerStateRunningFluent) o; - if (!java.util.Objects.equals(startedAt, that.startedAt)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(startedAt, super.hashCode()); + return Objects.hash(startedAt); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (startedAt != null) { sb.append("startedAt:"); sb.append(startedAt); } + if (!(startedAt == null)) { + sb.append("startedAt:"); + sb.append(startedAt); + } sb.append("}"); return sb.toString(); } - + public A withStartedAt(OffsetDateTime startedAt) { + this.startedAt = startedAt; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java index 6fbe9a76d2..27d8957960 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStateTerminatedBuilder extends V1ContainerStateTerminatedFluent implements VisitableBuilder{ + + V1ContainerStateTerminatedFluent fluent; + public V1ContainerStateTerminatedBuilder() { this(new V1ContainerStateTerminated()); } @@ -10,17 +14,16 @@ public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent flu this(fluent, new V1ContainerStateTerminated()); } - public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent fluent,V1ContainerStateTerminated instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminated instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStateTerminatedFluent fluent; + public V1ContainerStateTerminatedBuilder(V1ContainerStateTerminatedFluent fluent,V1ContainerStateTerminated instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerStateTerminated build() { V1ContainerStateTerminated buildable = new V1ContainerStateTerminated(); buildable.setContainerID(fluent.getContainerID()); @@ -33,5 +36,4 @@ public V1ContainerStateTerminated build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java index 13748d0bf5..a4b6ed7c4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java @@ -1,23 +1,20 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStateTerminatedFluent> extends BaseFluent{ - public V1ContainerStateTerminatedFluent() { - } - - public V1ContainerStateTerminatedFluent(V1ContainerStateTerminated instance) { - this.copyInstance(instance); - } +public class V1ContainerStateTerminatedFluent> extends BaseFluent{ + private String containerID; private Integer exitCode; private OffsetDateTime finishedAt; @@ -25,143 +22,196 @@ public V1ContainerStateTerminatedFluent(V1ContainerStateTerminated instance) { private String reason; private Integer signal; private OffsetDateTime startedAt; + + public V1ContainerStateTerminatedFluent() { + } + public V1ContainerStateTerminatedFluent(V1ContainerStateTerminated instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ContainerStateTerminated instance) { - instance = (instance != null ? instance : new V1ContainerStateTerminated()); + instance = instance != null ? instance : new V1ContainerStateTerminated(); if (instance != null) { - this.withContainerID(instance.getContainerID()); - this.withExitCode(instance.getExitCode()); - this.withFinishedAt(instance.getFinishedAt()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withSignal(instance.getSignal()); - this.withStartedAt(instance.getStartedAt()); - } - } - - public String getContainerID() { - return this.containerID; + this.withContainerID(instance.getContainerID()); + this.withExitCode(instance.getExitCode()); + this.withFinishedAt(instance.getFinishedAt()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withSignal(instance.getSignal()); + this.withStartedAt(instance.getStartedAt()); + } } - public A withContainerID(String containerID) { - this.containerID = containerID; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerStateTerminatedFluent that = (V1ContainerStateTerminatedFluent) o; + if (!(Objects.equals(containerID, that.containerID))) { + return false; + } + if (!(Objects.equals(exitCode, that.exitCode))) { + return false; + } + if (!(Objects.equals(finishedAt, that.finishedAt))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(signal, that.signal))) { + return false; + } + if (!(Objects.equals(startedAt, that.startedAt))) { + return false; + } + return true; } - public boolean hasContainerID() { - return this.containerID != null; + public String getContainerID() { + return this.containerID; } public Integer getExitCode() { return this.exitCode; } - public A withExitCode(Integer exitCode) { - this.exitCode = exitCode; - return (A) this; + public OffsetDateTime getFinishedAt() { + return this.finishedAt; } - public boolean hasExitCode() { - return this.exitCode != null; + public String getMessage() { + return this.message; } - public OffsetDateTime getFinishedAt() { - return this.finishedAt; + public String getReason() { + return this.reason; } - public A withFinishedAt(OffsetDateTime finishedAt) { - this.finishedAt = finishedAt; - return (A) this; + public Integer getSignal() { + return this.signal; } - public boolean hasFinishedAt() { - return this.finishedAt != null; + public OffsetDateTime getStartedAt() { + return this.startedAt; } - public String getMessage() { - return this.message; + public boolean hasContainerID() { + return this.containerID != null; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public boolean hasExitCode() { + return this.exitCode != null; + } + + public boolean hasFinishedAt() { + return this.finishedAt != null; } public boolean hasMessage() { return this.message != null; } - public String getReason() { - return this.reason; + public boolean hasReason() { + return this.reason != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasSignal() { + return this.signal != null; } - public boolean hasReason() { - return this.reason != null; + public boolean hasStartedAt() { + return this.startedAt != null; } - public Integer getSignal() { - return this.signal; + public int hashCode() { + return Objects.hash(containerID, exitCode, finishedAt, message, reason, signal, startedAt); } - public A withSignal(Integer signal) { - this.signal = signal; - return (A) this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(containerID == null)) { + sb.append("containerID:"); + sb.append(containerID); + sb.append(","); + } + if (!(exitCode == null)) { + sb.append("exitCode:"); + sb.append(exitCode); + sb.append(","); + } + if (!(finishedAt == null)) { + sb.append("finishedAt:"); + sb.append(finishedAt); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(signal == null)) { + sb.append("signal:"); + sb.append(signal); + sb.append(","); + } + if (!(startedAt == null)) { + sb.append("startedAt:"); + sb.append(startedAt); + } + sb.append("}"); + return sb.toString(); } - public boolean hasSignal() { - return this.signal != null; + public A withContainerID(String containerID) { + this.containerID = containerID; + return (A) this; } - public OffsetDateTime getStartedAt() { - return this.startedAt; + public A withExitCode(Integer exitCode) { + this.exitCode = exitCode; + return (A) this; } - public A withStartedAt(OffsetDateTime startedAt) { - this.startedAt = startedAt; + public A withFinishedAt(OffsetDateTime finishedAt) { + this.finishedAt = finishedAt; return (A) this; } - public boolean hasStartedAt() { - return this.startedAt != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ContainerStateTerminatedFluent that = (V1ContainerStateTerminatedFluent) o; - if (!java.util.Objects.equals(containerID, that.containerID)) return false; - if (!java.util.Objects.equals(exitCode, that.exitCode)) return false; - if (!java.util.Objects.equals(finishedAt, that.finishedAt)) 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(signal, that.signal)) return false; - if (!java.util.Objects.equals(startedAt, that.startedAt)) return false; - return true; + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(containerID, exitCode, finishedAt, message, reason, signal, startedAt, super.hashCode()); + public A withSignal(Integer signal) { + this.signal = signal; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (containerID != null) { sb.append("containerID:"); sb.append(containerID + ","); } - if (exitCode != null) { sb.append("exitCode:"); sb.append(exitCode + ","); } - if (finishedAt != null) { sb.append("finishedAt:"); sb.append(finishedAt + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (signal != null) { sb.append("signal:"); sb.append(signal + ","); } - if (startedAt != null) { sb.append("startedAt:"); sb.append(startedAt); } - sb.append("}"); - return sb.toString(); + public A withStartedAt(OffsetDateTime startedAt) { + this.startedAt = startedAt; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java index 35092f661b..eb955e8730 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStateWaitingBuilder extends V1ContainerStateWaitingFluent implements VisitableBuilder{ + + V1ContainerStateWaitingFluent fluent; + public V1ContainerStateWaitingBuilder() { this(new V1ContainerStateWaiting()); } @@ -10,17 +14,16 @@ public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent) { this(fluent, new V1ContainerStateWaiting()); } - public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent,V1ContainerStateWaiting instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStateWaitingBuilder(V1ContainerStateWaiting instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStateWaitingFluent fluent; + public V1ContainerStateWaitingBuilder(V1ContainerStateWaitingFluent fluent,V1ContainerStateWaiting instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ContainerStateWaiting build() { V1ContainerStateWaiting buildable = new V1ContainerStateWaiting(); buildable.setMessage(fluent.getMessage()); @@ -28,5 +31,4 @@ public V1ContainerStateWaiting build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java index 83ae3604ab..94109ca87c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStateWaitingFluent> extends BaseFluent{ +public class V1ContainerStateWaitingFluent> extends BaseFluent{ + + private String message; + private String reason; + public V1ContainerStateWaitingFluent() { } public V1ContainerStateWaitingFluent(V1ContainerStateWaiting instance) { this.copyInstance(instance); } - private String message; - private String reason; - + protected void copyInstance(V1ContainerStateWaiting instance) { - instance = (instance != null ? instance : new V1ContainerStateWaiting()); + instance = instance != null ? instance : new V1ContainerStateWaiting(); if (instance != null) { - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - } + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + } } - public String getMessage() { - return this.message; - } - - public A withMessage(String message) { - this.message = message; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerStateWaitingFluent that = (V1ContainerStateWaitingFluent) o; + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + return true; } - public boolean hasMessage() { - return this.message != null; + public String getMessage() { + return this.message; } public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasMessage() { + return this.message != null; } 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; - V1ContainerStateWaitingFluent that = (V1ContainerStateWaitingFluent) o; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(message, reason, super.hashCode()); + return Objects.hash(message, reason); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } - + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ No newline at end of file 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 6345685d05..2deb2d05f7 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ContainerStatusBuilder extends V1ContainerStatusFluent implements VisitableBuilder{ + + V1ContainerStatusFluent fluent; + public V1ContainerStatusBuilder() { this(new V1ContainerStatus()); } @@ -10,20 +14,20 @@ public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent) { this(fluent, new V1ContainerStatus()); } - public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent,V1ContainerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ContainerStatusBuilder(V1ContainerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ContainerStatusFluent fluent; + public V1ContainerStatusBuilder(V1ContainerStatusFluent fluent,V1ContainerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(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,9 +38,10 @@ 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; } - } \ No newline at end of file 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 5b02852dc5..82c356ff66 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,34 +1,33 @@ 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.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.List; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import io.kubernetes.client.custom.Quantity; import java.lang.Integer; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ContainerStatusFluent> extends BaseFluent{ - public V1ContainerStatusFluent() { - } - - public V1ContainerStatusFluent(V1ContainerStatus instance) { - this.copyInstance(instance); - } +public class V1ContainerStatusFluent> extends BaseFluent{ + private Map allocatedResources; + private ArrayList allocatedResourcesStatus; private String containerID; private String image; private String imageID; @@ -39,48 +38,736 @@ public V1ContainerStatusFluent(V1ContainerStatus instance) { private Integer restartCount; private Boolean started; private V1ContainerStateBuilder state; + private String stopSignal; + private V1ContainerUserBuilder user; private ArrayList volumeMounts; + + public V1ContainerStatusFluent() { + } + + public V1ContainerStatusFluent(V1ContainerStatus instance) { + this.copyInstance(instance); + } + + 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 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 AllocatedResourcesStatusNested addNewAllocatedResourcesStatus() { + return new AllocatedResourcesStatusNested(-1, null); + } + + public AllocatedResourcesStatusNested addNewAllocatedResourcesStatusLike(V1ResourceStatus item) { + return new AllocatedResourcesStatusNested(-1, item); + } + + public VolumeMountsNested addNewVolumeMount() { + return new VolumeMountsNested(-1, null); + } + + public VolumeMountsNested addNewVolumeMountLike(V1VolumeMountStatus item) { + return new VolumeMountsNested(-1, item); + } + + public A addToAllocatedResources(Map map) { + if (this.allocatedResources == null && map != null) { + this.allocatedResources = new LinkedHashMap(); + } + if (map != null) { + this.allocatedResources.putAll(map); + } + return (A) this; + } + + public A addToAllocatedResources(String key,Quantity value) { + if (this.allocatedResources == null && key != null && value != null) { + this.allocatedResources = new LinkedHashMap(); + } + if (key != null && value != null) { + this.allocatedResources.put(key, value); + } + return (A) this; + } + + public A addToAllocatedResourcesStatus(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 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 addToVolumeMounts(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 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 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 V1VolumeMountStatus buildFirstVolumeMount() { + return this.volumeMounts.get(0).build(); + } + + public V1ResourceStatus buildLastAllocatedResourcesStatus() { + return this.allocatedResourcesStatus.get(allocatedResourcesStatus.size() - 1).build(); + } + + public V1ContainerState buildLastState() { + return this.lastState != null ? this.lastState.build() : null; + } + + public V1VolumeMountStatus buildLastVolumeMount() { + return this.volumeMounts.get(volumeMounts.size() - 1).build(); + } + + public V1ResourceStatus buildMatchingAllocatedResourcesStatus(Predicate predicate) { + for (V1ResourceStatusBuilder item : allocatedResourcesStatus) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1VolumeMountStatus buildMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountStatusBuilder item : volumeMounts) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ResourceRequirements buildResources() { + return this.resources != null ? this.resources.build() : null; + } + + public V1ContainerState buildState() { + return this.state != null ? this.state.build() : null; + } + + public V1ContainerUser buildUser() { + return this.user != null ? this.user.build() : null; + } + + public V1VolumeMountStatus buildVolumeMount(int index) { + return this.volumeMounts.get(index).build(); + } + + public List buildVolumeMounts() { + return this.volumeMounts != null ? build(volumeMounts) : null; + } protected void copyInstance(V1ContainerStatus instance) { - instance = (instance != null ? instance : new V1ContainerStatus()); + instance = instance != null ? instance : new V1ContainerStatus(); if (instance != null) { - this.withAllocatedResources(instance.getAllocatedResources()); - this.withContainerID(instance.getContainerID()); - this.withImage(instance.getImage()); - this.withImageID(instance.getImageID()); - this.withLastState(instance.getLastState()); - this.withName(instance.getName()); - this.withReady(instance.getReady()); - this.withResources(instance.getResources()); - this.withRestartCount(instance.getRestartCount()); - this.withStarted(instance.getStarted()); - this.withState(instance.getState()); - this.withVolumeMounts(instance.getVolumeMounts()); + this.withAllocatedResources(instance.getAllocatedResources()); + this.withAllocatedResourcesStatus(instance.getAllocatedResourcesStatus()); + this.withContainerID(instance.getContainerID()); + this.withImage(instance.getImage()); + this.withImageID(instance.getImageID()); + this.withLastState(instance.getLastState()); + this.withName(instance.getName()); + this.withReady(instance.getReady()); + this.withResources(instance.getResources()); + this.withRestartCount(instance.getRestartCount()); + this.withStarted(instance.getStarted()); + this.withState(instance.getState()); + this.withStopSignal(instance.getStopSignal()); + this.withUser(instance.getUser()); + this.withVolumeMounts(instance.getVolumeMounts()); + } + } + + public AllocatedResourcesStatusNested editAllocatedResourcesStatus(int index) { + if (allocatedResourcesStatus.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allocatedResourcesStatus")); + } + return this.setNewAllocatedResourcesStatusLike(index, this.buildAllocatedResourcesStatus(index)); + } + + public AllocatedResourcesStatusNested editFirstAllocatedResourcesStatus() { + if (allocatedResourcesStatus.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "allocatedResourcesStatus")); + } + return this.setNewAllocatedResourcesStatusLike(0, this.buildAllocatedResourcesStatus(0)); + } + + public VolumeMountsNested editFirstVolumeMount() { + if (volumeMounts.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); + } + + public AllocatedResourcesStatusNested editLastAllocatedResourcesStatus() { + int index = allocatedResourcesStatus.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "allocatedResourcesStatus")); + } + return this.setNewAllocatedResourcesStatusLike(index, this.buildAllocatedResourcesStatus(index)); + } + + public LastStateNested editLastState() { + return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(null)); + } + + public VolumeMountsNested editLastVolumeMount() { + int index = volumeMounts.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + } + + public AllocatedResourcesStatusNested editMatchingAllocatedResourcesStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < allocatedResourcesStatus.size();i++) { + if (predicate.test(allocatedResourcesStatus.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "allocatedResourcesStatus")); + } + return this.setNewAllocatedResourcesStatusLike(index, this.buildAllocatedResourcesStatus(index)); + } + + public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeMounts.size();i++) { + if (predicate.test(volumeMounts.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + } + + public LastStateNested editOrNewLastState() { + return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(new V1ContainerStateBuilder().build())); + } + + public LastStateNested editOrNewLastStateLike(V1ContainerState item) { + return this.withNewLastStateLike(Optional.ofNullable(this.buildLastState()).orElse(item)); + } + + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + } + + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); + } + + public StateNested editOrNewState() { + return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(new V1ContainerStateBuilder().build())); + } + + public StateNested editOrNewStateLike(V1ContainerState item) { + return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(item)); + } + + public UserNested editOrNewUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1ContainerUserBuilder().build())); + } + + public UserNested editOrNewUserLike(V1ContainerUser item) { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); + } + + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); + } + + public StateNested editState() { + return this.withNewStateLike(Optional.ofNullable(this.buildState()).orElse(null)); + } + + public UserNested editUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); + } + + public VolumeMountsNested editVolumeMount(int index) { + if (volumeMounts.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerStatusFluent that = (V1ContainerStatusFluent) o; + if (!(Objects.equals(allocatedResources, that.allocatedResources))) { + return false; + } + if (!(Objects.equals(allocatedResourcesStatus, that.allocatedResourcesStatus))) { + return false; + } + if (!(Objects.equals(containerID, that.containerID))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(imageID, that.imageID))) { + return false; + } + if (!(Objects.equals(lastState, that.lastState))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(ready, that.ready))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(restartCount, that.restartCount))) { + return false; + } + if (!(Objects.equals(started, that.started))) { + return false; + } + if (!(Objects.equals(state, that.state))) { + return false; + } + if (!(Objects.equals(stopSignal, that.stopSignal))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + if (!(Objects.equals(volumeMounts, that.volumeMounts))) { + return false; + } + return true; + } + + public Map getAllocatedResources() { + return this.allocatedResources; + } + + public String getContainerID() { + return this.containerID; + } + + public String getImage() { + return this.image; + } + + public String getImageID() { + return this.imageID; + } + + public String getName() { + return this.name; + } + + public Boolean getReady() { + return this.ready; + } + + public Integer getRestartCount() { + return this.restartCount; + } + + public Boolean getStarted() { + return this.started; + } + + public String getStopSignal() { + return this.stopSignal; + } + + public boolean hasAllocatedResources() { + return this.allocatedResources != null; + } + + public boolean hasAllocatedResourcesStatus() { + return this.allocatedResourcesStatus != null && !(this.allocatedResourcesStatus.isEmpty()); + } + + public boolean hasContainerID() { + return this.containerID != null; + } + + public boolean hasImage() { + return this.image != null; + } + + public boolean hasImageID() { + return this.imageID != null; + } + + public boolean hasLastState() { + return this.lastState != null; + } + + public boolean hasMatchingAllocatedResourcesStatus(Predicate predicate) { + for (V1ResourceStatusBuilder item : allocatedResourcesStatus) { + if (predicate.test(item)) { + return true; } + } + return false; } - public A addToAllocatedResources(String key,Quantity value) { - if(this.allocatedResources == null && key != null && value != null) { this.allocatedResources = new LinkedHashMap(); } - if(key != null && value != null) {this.allocatedResources.put(key, value);} return (A)this; + public boolean hasMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountStatusBuilder item : volumeMounts) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToAllocatedResources(Map map) { - if(this.allocatedResources == null && map != null) { this.allocatedResources = new LinkedHashMap(); } - if(map != null) { this.allocatedResources.putAll(map);} return (A)this; + public boolean hasName() { + return this.name != null; + } + + public boolean hasReady() { + return this.ready != null; + } + + public boolean hasResources() { + return this.resources != null; + } + + public boolean hasRestartCount() { + return this.restartCount != null; + } + + public boolean hasStarted() { + return this.started != null; + } + + public boolean hasState() { + return this.state != null; + } + + public boolean hasStopSignal() { + return this.stopSignal != null; + } + + public boolean hasUser() { + return this.user != null; + } + + public boolean hasVolumeMounts() { + return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocatedResources, allocatedResourcesStatus, containerID, image, imageID, lastState, name, ready, resources, restartCount, started, state, stopSignal, user, volumeMounts); + } + + 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 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 removeFromAllocatedResources(String key) { - if(this.allocatedResources == null) { return (A) this; } - if(key != null && this.allocatedResources != null) {this.allocatedResources.remove(key);} return (A)this; + if (this.allocatedResources == null) { + return (A) this; + } + if (key != null && this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + return (A) this; } public A removeFromAllocatedResources(Map map) { - if(this.allocatedResources == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.allocatedResources != null){this.allocatedResources.remove(key);}}} return (A)this; + if (this.allocatedResources == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + } + } + return (A) this; } - public Map getAllocatedResources() { - return this.allocatedResources; + public A removeFromAllocatedResourcesStatus(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 removeFromVolumeMounts(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 removeMatchingFromAllocatedResourcesStatus(Predicate predicate) { + if (allocatedResourcesStatus == null) { + return (A) this; + } + Iterator each = allocatedResourcesStatus.iterator(); + 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 A removeMatchingFromVolumeMounts(Predicate predicate) { + if (volumeMounts == null) { + return (A) this; + } + Iterator each = volumeMounts.iterator(); + 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 AllocatedResourcesStatusNested setNewAllocatedResourcesStatusLike(int index,V1ResourceStatus item) { + return new AllocatedResourcesStatusNested(index, item); + } + + public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMountStatus item) { + return new VolumeMountsNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocatedResources == null) && !(allocatedResources.isEmpty())) { + sb.append("allocatedResources:"); + sb.append(allocatedResources); + sb.append(","); + } + if (!(allocatedResourcesStatus == null) && !(allocatedResourcesStatus.isEmpty())) { + sb.append("allocatedResourcesStatus:"); + sb.append(allocatedResourcesStatus); + sb.append(","); + } + if (!(containerID == null)) { + sb.append("containerID:"); + sb.append(containerID); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(imageID == null)) { + sb.append("imageID:"); + sb.append(imageID); + sb.append(","); + } + if (!(lastState == null)) { + sb.append("lastState:"); + sb.append(lastState); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(ready == null)) { + sb.append("ready:"); + sb.append(ready); + sb.append(","); + } + if (!(resources == null)) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(restartCount == null)) { + sb.append("restartCount:"); + sb.append(restartCount); + sb.append(","); + } + if (!(started == null)) { + sb.append("started:"); + sb.append(started); + sb.append(","); + } + if (!(state == null)) { + sb.append("state:"); + sb.append(state); + sb.append(","); + } + if (!(stopSignal == null)) { + sb.append("stopSignal:"); + sb.append(stopSignal); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + sb.append(","); + } + if (!(volumeMounts == null) && !(volumeMounts.isEmpty())) { + sb.append("volumeMounts:"); + sb.append(volumeMounts); + } + sb.append("}"); + return sb.toString(); } public A withAllocatedResources(Map allocatedResources) { @@ -92,12 +779,32 @@ public A withAllocatedResources(Map allocatedResources) { return (A) this; } - public boolean hasAllocatedResources() { - return this.allocatedResources != null; + 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 String getContainerID() { - return this.containerID; + public A withAllocatedResourcesStatus(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 A withContainerID(String containerID) { @@ -105,40 +812,16 @@ public A withContainerID(String containerID) { return (A) this; } - public boolean hasContainerID() { - return this.containerID != null; - } - - public String getImage() { - return this.image; - } - public A withImage(String image) { this.image = image; return (A) this; } - public boolean hasImage() { - return this.image != null; - } - - public String getImageID() { - return this.imageID; - } - public A withImageID(String imageID) { this.imageID = imageID; return (A) this; } - public boolean hasImageID() { - return this.imageID != null; - } - - public V1ContainerState buildLastState() { - return this.lastState != null ? this.lastState.build() : null; - } - public A withLastState(V1ContainerState lastState) { this._visitables.remove("lastState"); if (lastState != null) { @@ -151,8 +834,9 @@ public A withLastState(V1ContainerState lastState) { return (A) this; } - public boolean hasLastState() { - return this.lastState != null; + public A withName(String name) { + this.name = name; + return (A) this; } public LastStateNested withNewLastState() { @@ -163,33 +847,32 @@ public LastStateNested withNewLastStateLike(V1ContainerState item) { return new LastStateNested(item); } - public LastStateNested editLastState() { - return withNewLastStateLike(java.util.Optional.ofNullable(buildLastState()).orElse(null)); + public ResourcesNested withNewResources() { + return new ResourcesNested(null); } - public LastStateNested editOrNewLastState() { - return withNewLastStateLike(java.util.Optional.ofNullable(buildLastState()).orElse(new V1ContainerStateBuilder().build())); + public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); } - public LastStateNested editOrNewLastStateLike(V1ContainerState item) { - return withNewLastStateLike(java.util.Optional.ofNullable(buildLastState()).orElse(item)); + public StateNested withNewState() { + return new StateNested(null); } - public String getName() { - return this.name; + public StateNested withNewStateLike(V1ContainerState item) { + return new StateNested(item); } - public A withName(String name) { - this.name = name; - return (A) this; + public UserNested withNewUser() { + return new UserNested(null); } - public boolean hasName() { - return this.name != null; + public UserNested withNewUserLike(V1ContainerUser item) { + return new UserNested(item); } - public Boolean getReady() { - return this.ready; + public A withReady() { + return withReady(true); } public A withReady(Boolean ready) { @@ -197,14 +880,6 @@ public A withReady(Boolean ready) { return (A) this; } - public boolean hasReady() { - return this.ready != null; - } - - public V1ResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; - } - public A withResources(V1ResourceRequirements resources) { this._visitables.remove("resources"); if (resources != null) { @@ -217,45 +892,13 @@ public A withResources(V1ResourceRequirements resources) { return (A) this; } - public boolean hasResources() { - return this.resources != null; - } - - public ResourcesNested 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 Integer getRestartCount() { - return this.restartCount; - } - public A withRestartCount(Integer restartCount) { this.restartCount = restartCount; return (A) this; } - public boolean hasRestartCount() { - return this.restartCount != null; - } - - public Boolean getStarted() { - return this.started; + public A withStarted() { + return withStarted(true); } public A withStarted(Boolean started) { @@ -263,14 +906,6 @@ public A withStarted(Boolean started) { return (A) this; } - public boolean hasStarted() { - return this.started != null; - } - - public V1ContainerState buildState() { - return this.state != null ? this.state.build() : null; - } - public A withState(V1ContainerState state) { this._visitables.remove("state"); if (state != null) { @@ -283,110 +918,21 @@ public A withState(V1ContainerState state) { return (A) this; } - public boolean hasState() { - return this.state != null; - } - - public StateNested withNewState() { - return new StateNested(null); - } - - public StateNested withNewStateLike(V1ContainerState item) { - return new StateNested(item); - } - - public StateNested editState() { - return withNewStateLike(java.util.Optional.ofNullable(buildState()).orElse(null)); - } - - public StateNested editOrNewState() { - return withNewStateLike(java.util.Optional.ofNullable(buildState()).orElse(new V1ContainerStateBuilder().build())); - } - - public StateNested editOrNewStateLike(V1ContainerState item) { - return withNewStateLike(java.util.Optional.ofNullable(buildState()).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(index, 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").set(index, 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 withStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + 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(); - } + 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 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; + return (A) this; } public A withVolumeMounts(List volumeMounts) { @@ -404,7 +950,7 @@ public A withVolumeMounts(List volumeMounts) { return (A) this; } - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMountStatus... volumeMounts) { + public A withVolumeMounts(V1VolumeMountStatus... volumeMounts) { if (this.volumeMounts != null) { this.volumeMounts.clear(); _visitables.remove("volumeMounts"); @@ -416,104 +962,33 @@ public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMountStatu } return (A) this; } + public class AllocatedResourcesStatusNested extends V1ResourceStatusFluent> implements Nested{ - 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 V1ContainerStateFluent> implements Nested{ - public A withReady() { - return withReady(true); - } + V1ContainerStateBuilder builder; - public A withStarted() { - return withStarted(true); - } - public class LastStateNested extends V1ContainerStateFluent> implements Nested{ LastStateNested(V1ContainerState item) { this.builder = new V1ContainerStateBuilder(this, item); } - V1ContainerStateBuilder builder; - + public N and() { return (N) V1ContainerStatusFluent.this.withLastState(builder.build()); } @@ -522,14 +997,15 @@ public N endLastState() { return and(); } - } public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + + V1ResourceRequirementsBuilder builder; + ResourcesNested(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - V1ResourceRequirementsBuilder builder; - + public N and() { return (N) V1ContainerStatusFluent.this.withResources(builder.build()); } @@ -538,14 +1014,15 @@ public N endResources() { return and(); } - } public class StateNested extends V1ContainerStateFluent> implements Nested{ + + V1ContainerStateBuilder builder; + StateNested(V1ContainerState item) { this.builder = new V1ContainerStateBuilder(this, item); } - V1ContainerStateBuilder builder; - + public N and() { return (N) V1ContainerStatusFluent.this.withState(builder.build()); } @@ -554,25 +1031,41 @@ public N endState() { return and(); } + } + public class UserNested extends V1ContainerUserFluent> implements Nested{ + + V1ContainerUserBuilder builder; + + UserNested(V1ContainerUser item) { + this.builder = new V1ContainerUserBuilder(this, item); + } + public N and() { + return (N) V1ContainerStatusFluent.this.withUser(builder.build()); + } + + public N endUser() { + return and(); + } + } public class VolumeMountsNested extends V1VolumeMountStatusFluent> implements Nested{ + + V1VolumeMountStatusBuilder builder; + int index; + 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()); + 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..9789100d93 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ContainerUserBuilder extends V1ContainerUserFluent implements VisitableBuilder{ + + V1ContainerUserFluent fluent; + + public V1ContainerUserBuilder() { + this(new V1ContainerUser()); + } + + public V1ContainerUserBuilder(V1ContainerUserFluent fluent) { + this(fluent, new V1ContainerUser()); + } + + public V1ContainerUserBuilder(V1ContainerUser instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ContainerUserBuilder(V1ContainerUserFluent fluent,V1ContainerUser instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..a337caedd7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ContainerUserFluent> extends BaseFluent{ + + private V1LinuxContainerUserBuilder linux; + + public V1ContainerUserFluent() { + } + + public V1ContainerUserFluent(V1ContainerUser instance) { + this.copyInstance(instance); + } + + public V1LinuxContainerUser buildLinux() { + return this.linux != null ? this.linux.build() : null; + } + + protected void copyInstance(V1ContainerUser instance) { + instance = instance != null ? instance : new V1ContainerUser(); + if (instance != null) { + this.withLinux(instance.getLinux()); + } + } + + public LinuxNested editLinux() { + return this.withNewLinuxLike(Optional.ofNullable(this.buildLinux()).orElse(null)); + } + + public LinuxNested editOrNewLinux() { + return this.withNewLinuxLike(Optional.ofNullable(this.buildLinux()).orElse(new V1LinuxContainerUserBuilder().build())); + } + + public LinuxNested editOrNewLinuxLike(V1LinuxContainerUser item) { + return this.withNewLinuxLike(Optional.ofNullable(this.buildLinux()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ContainerUserFluent that = (V1ContainerUserFluent) o; + if (!(Objects.equals(linux, that.linux))) { + return false; + } + return true; + } + + public boolean hasLinux() { + return this.linux != null; + } + + public int hashCode() { + return Objects.hash(linux); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(linux == null)) { + sb.append("linux:"); + sb.append(linux); + } + sb.append("}"); + return sb.toString(); + } + + 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 LinuxNested withNewLinux() { + return new LinuxNested(null); + } + + public LinuxNested withNewLinuxLike(V1LinuxContainerUser item) { + return new LinuxNested(item); + } + public class LinuxNested extends V1LinuxContainerUserFluent> implements Nested{ + + V1LinuxContainerUserBuilder builder; + + LinuxNested(V1LinuxContainerUser item) { + this.builder = new V1LinuxContainerUserBuilder(this, item); + } + + 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/V1ControllerRevisionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java index 4cecd514e4..e44da50c4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ControllerRevisionBuilder extends V1ControllerRevisionFluent implements VisitableBuilder{ + + V1ControllerRevisionFluent fluent; + public V1ControllerRevisionBuilder() { this(new V1ControllerRevision()); } @@ -10,17 +14,16 @@ public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent) { this(fluent, new V1ControllerRevision()); } - public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent,V1ControllerRevision instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ControllerRevisionBuilder(V1ControllerRevision instance) { this.fluent = this; this.copyInstance(instance); } - V1ControllerRevisionFluent fluent; + public V1ControllerRevisionBuilder(V1ControllerRevisionFluent fluent,V1ControllerRevision instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ControllerRevision build() { V1ControllerRevision buildable = new V1ControllerRevision(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1ControllerRevision build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java index 217789a3ee..0da5e71da9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java @@ -1,81 +1,174 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Long; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ControllerRevisionFluent> extends BaseFluent{ +public class V1ControllerRevisionFluent> extends BaseFluent{ + + private String apiVersion; + private Object data; + private String kind; + private V1ObjectMetaBuilder metadata; + private Long revision; + public V1ControllerRevisionFluent() { } public V1ControllerRevisionFluent(V1ControllerRevision instance) { this.copyInstance(instance); } - private String apiVersion; - private Object data; - private String kind; - private V1ObjectMetaBuilder metadata; - private Long revision; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1ControllerRevision instance) { - instance = (instance != null ? instance : new V1ControllerRevision()); + instance = instance != null ? instance : new V1ControllerRevision(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withData(instance.getData()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRevision(instance.getRevision()); - } + this.withApiVersion(instance.getApiVersion()); + this.withData(instance.getData()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRevision(instance.getRevision()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ControllerRevisionFluent that = (V1ControllerRevisionFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(revision, that.revision))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public Object getData() { return this.data; } - public A withData(Object data) { - this.data = data; - return (A) this; + public String getKind() { + return this.kind; + } + + public Long getRevision() { + return this.revision; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasData() { return this.data != null; } - public String getKind() { - return this.kind; + public boolean hasKind() { + return this.kind != null; } - public A withKind(String kind) { - this.kind = kind; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasRevision() { + return this.revision != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, data, kind, metadata, revision); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(data == null)) { + sb.append("data:"); + sb.append(data); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(revision == null)) { + sb.append("revision:"); + sb.append(revision); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; return (A) this; } - public boolean hasKind() { - return this.kind != null; + public A withData(Object data) { + this.data = data; + return (A) this; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -90,10 +183,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -102,65 +191,18 @@ 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 Long getRevision() { - return this.revision; - } - public A withRevision(Long revision) { this.revision = revision; return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasRevision() { - return this.revision != 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; - V1ControllerRevisionFluent that = (V1ControllerRevisionFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(data, that.data)) 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(revision, that.revision)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, data, kind, metadata, revision, super.hashCode()); - } + V1ObjectMetaBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (data != null) { sb.append("data:"); sb.append(data + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (revision != null) { sb.append("revision:"); sb.append(revision); } - 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) V1ControllerRevisionFluent.this.withMetadata(builder.build()); } @@ -169,7 +211,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java index 6d8fbc6ad8..28d27a525d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ControllerRevisionListBuilder extends V1ControllerRevisionListFluent implements VisitableBuilder{ + + V1ControllerRevisionListFluent fluent; + public V1ControllerRevisionListBuilder() { this(new V1ControllerRevisionList()); } @@ -10,17 +14,16 @@ public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent) this(fluent, new V1ControllerRevisionList()); } - public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent,V1ControllerRevisionList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ControllerRevisionListBuilder(V1ControllerRevisionList instance) { this.fluent = this; this.copyInstance(instance); } - V1ControllerRevisionListFluent fluent; + public V1ControllerRevisionListBuilder(V1ControllerRevisionListFluent fluent,V1ControllerRevisionList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ControllerRevisionList build() { V1ControllerRevisionList buildable = new V1ControllerRevisionList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ControllerRevisionList build() { return buildable; } - } \ 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..f66d4b0a05 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ControllerRevisionListFluent> extends BaseFluent{ +public class V1ControllerRevisionListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ControllerRevisionListFluent() { } public V1ControllerRevisionListFluent(V1ControllerRevisionList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ControllerRevisionList instance) { - instance = (instance != null ? instance : new V1ControllerRevisionList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ControllerRevision item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ControllerRevision... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ControllerRevision item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ControllerRevision buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ControllerRevision buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { - if (this.items == null) return (A)this; - for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ControllerRevision buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ControllerRevision item : items) {V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ControllerRevision buildMatchingItem(Predicate predicate) { + for (V1ControllerRevisionBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ControllerRevisionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ControllerRevisionList instance) { + instance = instance != null ? instance : new V1ControllerRevisionList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ControllerRevision buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ControllerRevision buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ControllerRevision buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ControllerRevisionListFluent that = (V1ControllerRevisionListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ControllerRevision buildMatchingItem(Predicate predicate) { - for (V1ControllerRevisionBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ControllerRevision... items) { + if (this.items == null) { + return (A) this; + } + for (V1ControllerRevision item : items) { + V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ControllerRevisionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ControllerRevision item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ControllerRevision... items) { + public A withItems(V1ControllerRevision... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ControllerRevision... i return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ControllerRevision item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ControllerRevision 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ControllerRevisionFluent> implements Nested{ - 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; - V1ControllerRevisionListFluent that = (V1ControllerRevisionListFluent) 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()); - } + V1ControllerRevisionBuilder builder; + int index; - 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 V1ControllerRevisionFluent> implements Nested{ ItemsNested(int index,V1ControllerRevision item) { this.index = index; this.builder = new V1ControllerRevisionBuilder(this, item); } - V1ControllerRevisionBuilder builder; - int index; - + public N and() { - return (N) V1ControllerRevisionListFluent.this.setToItems(index,builder.build()); + return (N) V1ControllerRevisionListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ControllerRevisionListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java new file mode 100644 index 0000000000..0cc6cf8c03 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CounterBuilder extends V1CounterFluent implements VisitableBuilder{ + + V1CounterFluent fluent; + + public V1CounterBuilder() { + this(new V1Counter()); + } + + public V1CounterBuilder(V1CounterFluent fluent) { + this(fluent, new V1Counter()); + } + + public V1CounterBuilder(V1Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1CounterBuilder(V1CounterFluent fluent,V1Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1Counter build() { + V1Counter buildable = new V1Counter(); + buildable.setValue(fluent.getValue()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java new file mode 100644 index 0000000000..ee3cc6ef5d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java @@ -0,0 +1,82 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CounterFluent> extends BaseFluent{ + + private Quantity value; + + public V1CounterFluent() { + } + + public V1CounterFluent(V1Counter instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1Counter instance) { + instance = instance != null ? instance : new V1Counter(); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CounterFluent that = (V1CounterFluent) o; + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public Quantity getValue() { + return this.value; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java new file mode 100644 index 0000000000..12b42b7e07 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1CounterSetBuilder extends V1CounterSetFluent implements VisitableBuilder{ + + V1CounterSetFluent fluent; + + public V1CounterSetBuilder() { + this(new V1CounterSet()); + } + + public V1CounterSetBuilder(V1CounterSetFluent fluent) { + this(fluent, new V1CounterSet()); + } + + public V1CounterSetBuilder(V1CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1CounterSetBuilder(V1CounterSetFluent fluent,V1CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1CounterSet build() { + V1CounterSet buildable = new V1CounterSet(); + 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/V1CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java new file mode 100644 index 0000000000..ea05e0d294 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1CounterSetFluent> extends BaseFluent{ + + private Map counters; + private String name; + + public V1CounterSetFluent() { + } + + public V1CounterSetFluent(V1CounterSet instance) { + this.copyInstance(instance); + } + + 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 addToCounters(String key,V1Counter 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; + } + + protected void copyInstance(V1CounterSet instance) { + instance = instance != null ? instance : new V1CounterSet(); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CounterSetFluent that = (V1CounterSetFluent) o; + if (!(Objects.equals(counters, that.counters))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public Map getCounters() { + return this.counters; + } + + public String getName() { + return this.name; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(counters, name); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java index 2c54a4f38a..be6b1f6760 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CronJobBuilder extends V1CronJobFluent implements VisitableBuilder{ + + V1CronJobFluent fluent; + public V1CronJobBuilder() { this(new V1CronJob()); } @@ -10,17 +14,16 @@ public V1CronJobBuilder(V1CronJobFluent fluent) { this(fluent, new V1CronJob()); } - public V1CronJobBuilder(V1CronJobFluent fluent,V1CronJob instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CronJobBuilder(V1CronJob instance) { this.fluent = this; this.copyInstance(instance); } - V1CronJobFluent fluent; + public V1CronJobBuilder(V1CronJobFluent fluent,V1CronJob instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CronJob build() { V1CronJob buildable = new V1CronJob(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1CronJob build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java index e844c9cf43..a056f442ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CronJobFluent> extends BaseFluent{ +public class V1CronJobFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1CronJobSpecBuilder spec; + private V1CronJobStatusBuilder status; + public V1CronJobFluent() { } public V1CronJobFluent(V1CronJob instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1CronJobSpecBuilder spec; - private V1CronJobStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1CronJobSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1CronJobStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1CronJob instance) { - instance = (instance != null ? instance : new V1CronJob()); + instance = instance != null ? instance : new V1CronJob(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CronJobSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1CronJobSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CronJobStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1CronJobStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CronJobFluent that = (V1CronJobFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1CronJobSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1CronJobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1CronJobStatus item) { + return new StatusNested(item); } public A withSpec(V1CronJobSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1CronJobSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CronJobSpec 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 V1CronJobSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1CronJobSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1CronJobStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1CronJobStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1CronJobStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1CronJobStatus 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 V1CronJobStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1CronJobStatus 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; - V1CronJobFluent that = (V1CronJobFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1CronJobFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CronJobSpecFluent> implements Nested{ + + V1CronJobSpecBuilder builder; + SpecNested(V1CronJobSpec item) { this.builder = new V1CronJobSpecBuilder(this, item); } - V1CronJobSpecBuilder builder; - + public N and() { return (N) V1CronJobFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1CronJobStatusFluent> implements Nested{ + + V1CronJobStatusBuilder builder; + StatusNested(V1CronJobStatus item) { this.builder = new V1CronJobStatusBuilder(this, item); } - V1CronJobStatusBuilder builder; - + public N and() { return (N) V1CronJobFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java index fcf8733c1d..cf6329c00e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CronJobListBuilder extends V1CronJobListFluent implements VisitableBuilder{ + + V1CronJobListFluent fluent; + public V1CronJobListBuilder() { this(new V1CronJobList()); } @@ -10,17 +14,16 @@ public V1CronJobListBuilder(V1CronJobListFluent fluent) { this(fluent, new V1CronJobList()); } - public V1CronJobListBuilder(V1CronJobListFluent fluent,V1CronJobList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CronJobListBuilder(V1CronJobList instance) { this.fluent = this; this.copyInstance(instance); } - V1CronJobListFluent fluent; + public V1CronJobListBuilder(V1CronJobListFluent fluent,V1CronJobList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CronJobList build() { V1CronJobList buildable = new V1CronJobList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1CronJobList build() { return buildable; } - } \ No newline at end of file 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..50e585a776 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CronJobListFluent> extends BaseFluent{ +public class V1CronJobListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1CronJobListFluent() { } public V1CronJobListFluent(V1CronJobList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CronJobList instance) { - instance = (instance != null ? instance : new V1CronJobList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1CronJob item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1CronJob... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1CronJob item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1CronJob buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1CronJob... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1CronJob buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CronJob... items) { - if (this.items == null) return (A)this; - for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CronJob buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CronJob item : items) {V1CronJobBuilder builder = new V1CronJobBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CronJob buildMatchingItem(Predicate predicate) { + for (V1CronJobBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1CronJobBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1CronJobList instance) { + instance = instance != null ? instance : new V1CronJobList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1CronJob buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1CronJob buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CronJob buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CronJobListFluent that = (V1CronJobListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1CronJob buildMatchingItem(Predicate predicate) { - for (V1CronJobBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CronJob... items) { + if (this.items == null) { + return (A) this; + } + for (V1CronJob item : items) { + V1CronJobBuilder builder = new V1CronJobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CronJobBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CronJob item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CronJob... items) { + public A withItems(V1CronJob... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1CronJob... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CronJob item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CronJob 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1CronJobFluent> implements Nested{ - 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; - V1CronJobListFluent that = (V1CronJobListFluent) 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()); - } + V1CronJobBuilder builder; + int index; - 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 V1CronJobFluent> implements Nested{ ItemsNested(int index,V1CronJob item) { this.index = index; this.builder = new V1CronJobBuilder(this, item); } - V1CronJobBuilder builder; - int index; - + public N and() { - return (N) V1CronJobListFluent.this.setToItems(index,builder.build()); + return (N) V1CronJobListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CronJobListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java index 74cfe0198d..ff9b72ac89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CronJobSpecBuilder extends V1CronJobSpecFluent implements VisitableBuilder{ + + V1CronJobSpecFluent fluent; + public V1CronJobSpecBuilder() { this(new V1CronJobSpec()); } @@ -10,17 +14,16 @@ public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent) { this(fluent, new V1CronJobSpec()); } - public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent,V1CronJobSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CronJobSpecBuilder(V1CronJobSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CronJobSpecFluent fluent; + public V1CronJobSpecBuilder(V1CronJobSpecFluent fluent,V1CronJobSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CronJobSpec build() { V1CronJobSpec buildable = new V1CronJobSpec(); buildable.setConcurrencyPolicy(fluent.getConcurrencyPolicy()); @@ -34,5 +37,4 @@ public V1CronJobSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java index 8957e6c0ec..3c1b22fc3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java @@ -1,25 +1,23 @@ 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.String; +import java.lang.Boolean; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; import java.lang.Object; -import java.lang.Boolean; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CronJobSpecFluent> extends BaseFluent{ - public V1CronJobSpecFluent() { - } - - public V1CronJobSpecFluent(V1CronJobSpec instance) { - this.copyInstance(instance); - } +public class V1CronJobSpecFluent> extends BaseFluent{ + private String concurrencyPolicy; private Integer failedJobsHistoryLimit; private V1JobTemplateSpecBuilder jobTemplate; @@ -28,196 +26,258 @@ public V1CronJobSpecFluent(V1CronJobSpec instance) { private Integer successfulJobsHistoryLimit; private Boolean suspend; private String timeZone; - - protected void copyInstance(V1CronJobSpec instance) { - instance = (instance != null ? instance : new V1CronJobSpec()); - if (instance != null) { - this.withConcurrencyPolicy(instance.getConcurrencyPolicy()); - this.withFailedJobsHistoryLimit(instance.getFailedJobsHistoryLimit()); - this.withJobTemplate(instance.getJobTemplate()); - this.withSchedule(instance.getSchedule()); - this.withStartingDeadlineSeconds(instance.getStartingDeadlineSeconds()); - this.withSuccessfulJobsHistoryLimit(instance.getSuccessfulJobsHistoryLimit()); - this.withSuspend(instance.getSuspend()); - this.withTimeZone(instance.getTimeZone()); - } + + public V1CronJobSpecFluent() { } - public String getConcurrencyPolicy() { - return this.concurrencyPolicy; + public V1CronJobSpecFluent(V1CronJobSpec instance) { + this.copyInstance(instance); + } + + public V1JobTemplateSpec buildJobTemplate() { + return this.jobTemplate != null ? this.jobTemplate.build() : null; } - public A withConcurrencyPolicy(String concurrencyPolicy) { - this.concurrencyPolicy = concurrencyPolicy; - return (A) this; + protected void copyInstance(V1CronJobSpec instance) { + instance = instance != null ? instance : new V1CronJobSpec(); + if (instance != null) { + this.withConcurrencyPolicy(instance.getConcurrencyPolicy()); + this.withFailedJobsHistoryLimit(instance.getFailedJobsHistoryLimit()); + this.withJobTemplate(instance.getJobTemplate()); + this.withSchedule(instance.getSchedule()); + this.withStartingDeadlineSeconds(instance.getStartingDeadlineSeconds()); + this.withSuccessfulJobsHistoryLimit(instance.getSuccessfulJobsHistoryLimit()); + this.withSuspend(instance.getSuspend()); + this.withTimeZone(instance.getTimeZone()); + } } - public boolean hasConcurrencyPolicy() { - return this.concurrencyPolicy != null; + public JobTemplateNested editJobTemplate() { + return this.withNewJobTemplateLike(Optional.ofNullable(this.buildJobTemplate()).orElse(null)); } - public Integer getFailedJobsHistoryLimit() { - return this.failedJobsHistoryLimit; + public JobTemplateNested editOrNewJobTemplate() { + return this.withNewJobTemplateLike(Optional.ofNullable(this.buildJobTemplate()).orElse(new V1JobTemplateSpecBuilder().build())); } - public A withFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { - this.failedJobsHistoryLimit = failedJobsHistoryLimit; - return (A) this; + public JobTemplateNested editOrNewJobTemplateLike(V1JobTemplateSpec item) { + return this.withNewJobTemplateLike(Optional.ofNullable(this.buildJobTemplate()).orElse(item)); } - public boolean hasFailedJobsHistoryLimit() { - return this.failedJobsHistoryLimit != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CronJobSpecFluent that = (V1CronJobSpecFluent) o; + if (!(Objects.equals(concurrencyPolicy, that.concurrencyPolicy))) { + return false; + } + if (!(Objects.equals(failedJobsHistoryLimit, that.failedJobsHistoryLimit))) { + return false; + } + if (!(Objects.equals(jobTemplate, that.jobTemplate))) { + return false; + } + if (!(Objects.equals(schedule, that.schedule))) { + return false; + } + if (!(Objects.equals(startingDeadlineSeconds, that.startingDeadlineSeconds))) { + return false; + } + if (!(Objects.equals(successfulJobsHistoryLimit, that.successfulJobsHistoryLimit))) { + return false; + } + if (!(Objects.equals(suspend, that.suspend))) { + return false; + } + if (!(Objects.equals(timeZone, that.timeZone))) { + return false; + } + return true; } - public V1JobTemplateSpec buildJobTemplate() { - return this.jobTemplate != null ? this.jobTemplate.build() : null; + public String getConcurrencyPolicy() { + return this.concurrencyPolicy; } - public A withJobTemplate(V1JobTemplateSpec jobTemplate) { - this._visitables.remove("jobTemplate"); - if (jobTemplate != null) { - this.jobTemplate = new V1JobTemplateSpecBuilder(jobTemplate); - this._visitables.get("jobTemplate").add(this.jobTemplate); - } else { - this.jobTemplate = null; - this._visitables.get("jobTemplate").remove(this.jobTemplate); - } - return (A) this; + public Integer getFailedJobsHistoryLimit() { + return this.failedJobsHistoryLimit; } - public boolean hasJobTemplate() { - return this.jobTemplate != null; + public String getSchedule() { + return this.schedule; } - public JobTemplateNested withNewJobTemplate() { - return new JobTemplateNested(null); + public Long getStartingDeadlineSeconds() { + return this.startingDeadlineSeconds; } - public JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item) { - return new JobTemplateNested(item); + public Integer getSuccessfulJobsHistoryLimit() { + return this.successfulJobsHistoryLimit; } - public JobTemplateNested editJobTemplate() { - return withNewJobTemplateLike(java.util.Optional.ofNullable(buildJobTemplate()).orElse(null)); + public Boolean getSuspend() { + return this.suspend; } - public JobTemplateNested editOrNewJobTemplate() { - return withNewJobTemplateLike(java.util.Optional.ofNullable(buildJobTemplate()).orElse(new V1JobTemplateSpecBuilder().build())); + public String getTimeZone() { + return this.timeZone; } - public JobTemplateNested editOrNewJobTemplateLike(V1JobTemplateSpec item) { - return withNewJobTemplateLike(java.util.Optional.ofNullable(buildJobTemplate()).orElse(item)); + public boolean hasConcurrencyPolicy() { + return this.concurrencyPolicy != null; } - public String getSchedule() { - return this.schedule; + public boolean hasFailedJobsHistoryLimit() { + return this.failedJobsHistoryLimit != null; } - public A withSchedule(String schedule) { - this.schedule = schedule; - return (A) this; + public boolean hasJobTemplate() { + return this.jobTemplate != null; } public boolean hasSchedule() { return this.schedule != null; } - public Long getStartingDeadlineSeconds() { - return this.startingDeadlineSeconds; + public boolean hasStartingDeadlineSeconds() { + return this.startingDeadlineSeconds != null; } - public A withStartingDeadlineSeconds(Long startingDeadlineSeconds) { - this.startingDeadlineSeconds = startingDeadlineSeconds; - return (A) this; + public boolean hasSuccessfulJobsHistoryLimit() { + return this.successfulJobsHistoryLimit != null; } - public boolean hasStartingDeadlineSeconds() { - return this.startingDeadlineSeconds != null; + public boolean hasSuspend() { + return this.suspend != null; } - public Integer getSuccessfulJobsHistoryLimit() { - return this.successfulJobsHistoryLimit; + public boolean hasTimeZone() { + return this.timeZone != null; } - public A withSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { - this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; - return (A) this; + public int hashCode() { + return Objects.hash(concurrencyPolicy, failedJobsHistoryLimit, jobTemplate, schedule, startingDeadlineSeconds, successfulJobsHistoryLimit, suspend, timeZone); } - public boolean hasSuccessfulJobsHistoryLimit() { - return this.successfulJobsHistoryLimit != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(concurrencyPolicy == null)) { + sb.append("concurrencyPolicy:"); + sb.append(concurrencyPolicy); + sb.append(","); + } + if (!(failedJobsHistoryLimit == null)) { + sb.append("failedJobsHistoryLimit:"); + sb.append(failedJobsHistoryLimit); + sb.append(","); + } + if (!(jobTemplate == null)) { + sb.append("jobTemplate:"); + sb.append(jobTemplate); + sb.append(","); + } + if (!(schedule == null)) { + sb.append("schedule:"); + sb.append(schedule); + sb.append(","); + } + if (!(startingDeadlineSeconds == null)) { + sb.append("startingDeadlineSeconds:"); + sb.append(startingDeadlineSeconds); + sb.append(","); + } + if (!(successfulJobsHistoryLimit == null)) { + sb.append("successfulJobsHistoryLimit:"); + sb.append(successfulJobsHistoryLimit); + sb.append(","); + } + if (!(suspend == null)) { + sb.append("suspend:"); + sb.append(suspend); + sb.append(","); + } + if (!(timeZone == null)) { + sb.append("timeZone:"); + sb.append(timeZone); + } + sb.append("}"); + return sb.toString(); } - public Boolean getSuspend() { - return this.suspend; + public A withConcurrencyPolicy(String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; + return (A) this; } - public A withSuspend(Boolean suspend) { - this.suspend = suspend; + public A withFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; return (A) this; } - public boolean hasSuspend() { - return this.suspend != null; + public A withJobTemplate(V1JobTemplateSpec jobTemplate) { + this._visitables.remove("jobTemplate"); + if (jobTemplate != null) { + this.jobTemplate = new V1JobTemplateSpecBuilder(jobTemplate); + this._visitables.get("jobTemplate").add(this.jobTemplate); + } else { + this.jobTemplate = null; + this._visitables.get("jobTemplate").remove(this.jobTemplate); + } + return (A) this; } - public String getTimeZone() { - return this.timeZone; + public JobTemplateNested withNewJobTemplate() { + return new JobTemplateNested(null); } - public A withTimeZone(String timeZone) { - this.timeZone = timeZone; + public JobTemplateNested withNewJobTemplateLike(V1JobTemplateSpec item) { + return new JobTemplateNested(item); + } + + public A withSchedule(String schedule) { + this.schedule = schedule; return (A) this; } - public boolean hasTimeZone() { - return this.timeZone != null; + public A withStartingDeadlineSeconds(Long startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1CronJobSpecFluent that = (V1CronJobSpecFluent) o; - if (!java.util.Objects.equals(concurrencyPolicy, that.concurrencyPolicy)) return false; - if (!java.util.Objects.equals(failedJobsHistoryLimit, that.failedJobsHistoryLimit)) return false; - if (!java.util.Objects.equals(jobTemplate, that.jobTemplate)) return false; - if (!java.util.Objects.equals(schedule, that.schedule)) return false; - if (!java.util.Objects.equals(startingDeadlineSeconds, that.startingDeadlineSeconds)) return false; - if (!java.util.Objects.equals(successfulJobsHistoryLimit, that.successfulJobsHistoryLimit)) return false; - if (!java.util.Objects.equals(suspend, that.suspend)) return false; - if (!java.util.Objects.equals(timeZone, that.timeZone)) return false; - return true; + public A withSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(concurrencyPolicy, failedJobsHistoryLimit, jobTemplate, schedule, startingDeadlineSeconds, successfulJobsHistoryLimit, suspend, timeZone, super.hashCode()); + public A withSuspend() { + return withSuspend(true); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (concurrencyPolicy != null) { sb.append("concurrencyPolicy:"); sb.append(concurrencyPolicy + ","); } - if (failedJobsHistoryLimit != null) { sb.append("failedJobsHistoryLimit:"); sb.append(failedJobsHistoryLimit + ","); } - if (jobTemplate != null) { sb.append("jobTemplate:"); sb.append(jobTemplate + ","); } - if (schedule != null) { sb.append("schedule:"); sb.append(schedule + ","); } - if (startingDeadlineSeconds != null) { sb.append("startingDeadlineSeconds:"); sb.append(startingDeadlineSeconds + ","); } - if (successfulJobsHistoryLimit != null) { sb.append("successfulJobsHistoryLimit:"); sb.append(successfulJobsHistoryLimit + ","); } - if (suspend != null) { sb.append("suspend:"); sb.append(suspend + ","); } - if (timeZone != null) { sb.append("timeZone:"); sb.append(timeZone); } - sb.append("}"); - return sb.toString(); + public A withSuspend(Boolean suspend) { + this.suspend = suspend; + return (A) this; } - public A withSuspend() { - return withSuspend(true); + public A withTimeZone(String timeZone) { + this.timeZone = timeZone; + return (A) this; } public class JobTemplateNested extends V1JobTemplateSpecFluent> implements Nested{ + + V1JobTemplateSpecBuilder builder; + JobTemplateNested(V1JobTemplateSpec item) { this.builder = new V1JobTemplateSpecBuilder(this, item); } - V1JobTemplateSpecBuilder builder; - + public N and() { return (N) V1CronJobSpecFluent.this.withJobTemplate(builder.build()); } @@ -226,7 +286,5 @@ public N endJobTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java index 5197779137..abd0610aa0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CronJobStatusBuilder extends V1CronJobStatusFluent implements VisitableBuilder{ + + V1CronJobStatusFluent fluent; + public V1CronJobStatusBuilder() { this(new V1CronJobStatus()); } @@ -10,17 +14,16 @@ public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent) { this(fluent, new V1CronJobStatus()); } - public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent,V1CronJobStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CronJobStatusBuilder(V1CronJobStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1CronJobStatusFluent fluent; + public V1CronJobStatusBuilder(V1CronJobStatusFluent fluent,V1CronJobStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CronJobStatus build() { V1CronJobStatus buildable = new V1CronJobStatus(); buildable.setActive(fluent.buildActive()); @@ -29,5 +32,4 @@ public V1CronJobStatus build() { return buildable; } - } \ No newline at end of file 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..becebeefa6 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 @@ -1,88 +1,82 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CronJobStatusFluent> extends BaseFluent{ - public V1CronJobStatusFluent() { - } - - public V1CronJobStatusFluent(V1CronJobStatus instance) { - this.copyInstance(instance); - } +public class V1CronJobStatusFluent> extends BaseFluent{ + private ArrayList active; private OffsetDateTime lastScheduleTime; private OffsetDateTime lastSuccessfulTime; - - protected void copyInstance(V1CronJobStatus instance) { - instance = (instance != null ? instance : new V1CronJobStatus()); - if (instance != null) { - this.withActive(instance.getActive()); - this.withLastScheduleTime(instance.getLastScheduleTime()); - this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); - } - } - - 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);} - return (A)this; + + public V1CronJobStatusFluent() { } - 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);} - return (A)this; + public V1CronJobStatusFluent(V1CronJobStatus instance) { + this.copyInstance(instance); } - - public A addToActive(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.active == null) {this.active = new ArrayList();} - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").add(builder);this.active.add(builder);} return (A)this; + + public A addAllToActive(Collection items) { + if (this.active == null) { + this.active = new ArrayList(); + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").add(builder); + this.active.add(builder); + } + return (A) this; } - public A addAllToActive(Collection items) { - if (this.active == null) {this.active = new ArrayList();} - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").add(builder);this.active.add(builder);} return (A)this; + public ActiveNested addNewActive() { + return new ActiveNested(-1, null); } - public A removeFromActive(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.active == null) return (A)this; - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").remove(builder); this.active.remove(builder);} return (A)this; + public ActiveNested addNewActiveLike(V1ObjectReference item) { + return new ActiveNested(-1, item); } - public A removeAllFromActive(Collection items) { - if (this.active == null) return (A)this; - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("active").remove(builder); this.active.remove(builder);} return (A)this; + public A addToActive(V1ObjectReference... items) { + if (this.active == null) { + this.active = new ArrayList(); + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").add(builder); + this.active.add(builder); + } + return (A) this; } - public A removeMatchingFromActive(Predicate predicate) { - if (active == null) return (A) this; - final Iterator each = active.iterator(); - final List visitables = _visitables.get("active"); - while (each.hasNext()) { - V1ObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToActive(int index,V1ObjectReference item) { + if (this.active == null) { + this.active = new ArrayList(); } - return (A)this; + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + 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 List buildActive() { @@ -110,151 +104,241 @@ public V1ObjectReference buildMatchingActive(Predicate return null; } - public boolean hasMatchingActive(Predicate predicate) { - for (V1ObjectReferenceBuilder item : active) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1CronJobStatus instance) { + instance = instance != null ? instance : new V1CronJobStatus(); + if (instance != null) { + this.withActive(instance.getActive()); + this.withLastScheduleTime(instance.getLastScheduleTime()); + this.withLastSuccessfulTime(instance.getLastSuccessfulTime()); + } } - public A withActive(List active) { - if (this.active != null) { - this._visitables.get("active").clear(); + public ActiveNested editActive(int index) { + if (active.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "active")); } - if (active != null) { - this.active = new ArrayList(); - for (V1ObjectReference item : active) { - this.addToActive(item); - } - } else { - this.active = null; + return this.setNewActiveLike(index, this.buildActive(index)); + } + + public ActiveNested editFirstActive() { + if (active.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "active")); } - return (A) this; + return this.setNewActiveLike(0, this.buildActive(0)); } - public A withActive(io.kubernetes.client.openapi.models.V1ObjectReference... active) { - if (this.active != null) { - this.active.clear(); - _visitables.remove("active"); + public ActiveNested editLastActive() { + int index = active.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "active")); } - if (active != null) { - for (V1ObjectReference item : active) { - this.addToActive(item); + return this.setNewActiveLike(index, this.buildActive(index)); + } + + public ActiveNested editMatchingActive(Predicate predicate) { + int index = -1; + for (int i = 0;i < active.size();i++) { + if (predicate.test(active.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "active")); + } + return this.setNewActiveLike(index, this.buildActive(index)); } - public boolean hasActive() { - return this.active != null && !this.active.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CronJobStatusFluent that = (V1CronJobStatusFluent) o; + if (!(Objects.equals(active, that.active))) { + return false; + } + if (!(Objects.equals(lastScheduleTime, that.lastScheduleTime))) { + return false; + } + if (!(Objects.equals(lastSuccessfulTime, that.lastSuccessfulTime))) { + return false; + } + return true; } - public ActiveNested addNewActive() { - return new ActiveNested(-1, null); + public OffsetDateTime getLastScheduleTime() { + return this.lastScheduleTime; } - public ActiveNested addNewActiveLike(V1ObjectReference item) { - return new ActiveNested(-1, item); + public OffsetDateTime getLastSuccessfulTime() { + return this.lastSuccessfulTime; } - public ActiveNested setNewActiveLike(int index,V1ObjectReference item) { - return new ActiveNested(index, item); + public boolean hasActive() { + return this.active != null && !(this.active.isEmpty()); } - public ActiveNested editActive(int index) { - if (active.size() <= index) throw new RuntimeException("Can't edit active. Index exceeds size."); - return setNewActiveLike(index, buildActive(index)); + public boolean hasLastScheduleTime() { + return this.lastScheduleTime != null; } - public ActiveNested editFirstActive() { - if (active.size() == 0) throw new RuntimeException("Can't edit first active. The list is empty."); - return setNewActiveLike(0, buildActive(0)); + public boolean hasLastSuccessfulTime() { + return this.lastSuccessfulTime != null; } - public ActiveNested editLastActive() { - int index = active.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last active. The list is empty."); - return setNewActiveLike(index, buildActive(index)); + public boolean hasMatchingActive(Predicate predicate) { + for (V1ObjectReferenceBuilder item : active) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ActiveNested editMatchingActive(Predicate predicate) { - int index = -1; - for (int i=0;i items) { + if (this.active == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").remove(builder); + this.active.remove(builder); + } + return (A) this; } - public A withLastScheduleTime(OffsetDateTime lastScheduleTime) { - this.lastScheduleTime = lastScheduleTime; + public A removeFromActive(V1ObjectReference... items) { + if (this.active == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("active").remove(builder); + this.active.remove(builder); + } return (A) this; } - public boolean hasLastScheduleTime() { - return this.lastScheduleTime != null; + public A removeMatchingFromActive(Predicate predicate) { + if (active == null) { + return (A) this; + } + Iterator each = active.iterator(); + List visitables = _visitables.get("active"); + while (each.hasNext()) { + V1ObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public OffsetDateTime getLastSuccessfulTime() { - return this.lastSuccessfulTime; + public ActiveNested setNewActiveLike(int index,V1ObjectReference item) { + return new ActiveNested(index, item); } - public A withLastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { - this.lastSuccessfulTime = lastSuccessfulTime; + 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").add(builder); + active.set(index, builder); + } return (A) this; } - public boolean hasLastSuccessfulTime() { - return this.lastSuccessfulTime != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(active == null) && !(active.isEmpty())) { + sb.append("active:"); + sb.append(active); + sb.append(","); + } + if (!(lastScheduleTime == null)) { + sb.append("lastScheduleTime:"); + sb.append(lastScheduleTime); + sb.append(","); + } + if (!(lastSuccessfulTime == null)) { + sb.append("lastSuccessfulTime:"); + sb.append(lastSuccessfulTime); + } + sb.append("}"); + return sb.toString(); } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1CronJobStatusFluent that = (V1CronJobStatusFluent) o; - if (!java.util.Objects.equals(active, that.active)) return false; - if (!java.util.Objects.equals(lastScheduleTime, that.lastScheduleTime)) return false; - if (!java.util.Objects.equals(lastSuccessfulTime, that.lastSuccessfulTime)) return false; - return true; + public A withActive(List active) { + if (this.active != null) { + this._visitables.get("active").clear(); + } + if (active != null) { + this.active = new ArrayList(); + for (V1ObjectReference item : active) { + this.addToActive(item); + } + } else { + this.active = null; + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(active, lastScheduleTime, lastSuccessfulTime, super.hashCode()); + public A withActive(V1ObjectReference... active) { + if (this.active != null) { + this.active.clear(); + _visitables.remove("active"); + } + if (active != null) { + for (V1ObjectReference item : active) { + this.addToActive(item); + } + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (active != null && !active.isEmpty()) { sb.append("active:"); sb.append(active + ","); } - if (lastScheduleTime != null) { sb.append("lastScheduleTime:"); sb.append(lastScheduleTime + ","); } - if (lastSuccessfulTime != null) { sb.append("lastSuccessfulTime:"); sb.append(lastSuccessfulTime); } - sb.append("}"); - return sb.toString(); + public A withLastScheduleTime(OffsetDateTime lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; + return (A) this; + } + + public A withLastSuccessfulTime(OffsetDateTime lastSuccessfulTime) { + this.lastSuccessfulTime = lastSuccessfulTime; + return (A) this; } public class ActiveNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + int index; + ActiveNested(int index,V1ObjectReference item) { this.index = index; this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - int index; - + public N and() { - return (N) V1CronJobStatusFluent.this.setToActive(index,builder.build()); + return (N) V1CronJobStatusFluent.this.setToActive(index, builder.build()); } public N endActive() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java index 5a4d76f592..4f65ebe0d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CrossVersionObjectReferenceBuilder extends V1CrossVersionObjectReferenceFluent implements VisitableBuilder{ + + V1CrossVersionObjectReferenceFluent fluent; + public V1CrossVersionObjectReferenceBuilder() { this(new V1CrossVersionObjectReference()); } @@ -10,17 +14,16 @@ public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent< this(fluent, new V1CrossVersionObjectReference()); } - public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent fluent,V1CrossVersionObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1CrossVersionObjectReferenceFluent fluent; + public V1CrossVersionObjectReferenceBuilder(V1CrossVersionObjectReferenceFluent fluent,V1CrossVersionObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CrossVersionObjectReference build() { V1CrossVersionObjectReference buildable = new V1CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -29,5 +32,4 @@ public V1CrossVersionObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java index eb1d854af1..2bfb0a703e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java @@ -1,97 +1,123 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CrossVersionObjectReferenceFluent> extends BaseFluent{ +public class V1CrossVersionObjectReferenceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private String name; + public V1CrossVersionObjectReferenceFluent() { } public V1CrossVersionObjectReferenceFluent(V1CrossVersionObjectReference instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private String name; - + protected void copyInstance(V1CrossVersionObjectReference instance) { - instance = (instance != null ? instance : new V1CrossVersionObjectReference()); + instance = instance != null ? instance : new V1CrossVersionObjectReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - } - } - - public String getApiVersion() { - return this.apiVersion; + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CrossVersionObjectReferenceFluent that = (V1CrossVersionObjectReferenceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } 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 hasApiVersion() { + return this.apiVersion != null; } - public boolean hasName() { - return this.name != null; + 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; - V1CrossVersionObjectReferenceFluent that = (V1CrossVersionObjectReferenceFluent) 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(name, that.name)) return false; - return true; + public boolean hasName() { + return this.name != null; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); + return Objects.hash(apiVersion, kind, name); } 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 (name != null) { sb.append("name:"); sb.append(name); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java index d4dfcded8c..6a4933ae5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceColumnDefinitionBuilder extends V1CustomResourceColumnDefinitionFluent implements VisitableBuilder{ + + V1CustomResourceColumnDefinitionFluent fluent; + public V1CustomResourceColumnDefinitionBuilder() { this(new V1CustomResourceColumnDefinition()); } @@ -10,17 +14,16 @@ public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionF this(fluent, new V1CustomResourceColumnDefinition()); } - public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,V1CustomResourceColumnDefinition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinition instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceColumnDefinitionFluent fluent; + public V1CustomResourceColumnDefinitionBuilder(V1CustomResourceColumnDefinitionFluent fluent,V1CustomResourceColumnDefinition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceColumnDefinition build() { V1CustomResourceColumnDefinition buildable = new V1CustomResourceColumnDefinition(); buildable.setDescription(fluent.getDescription()); @@ -32,5 +35,4 @@ public V1CustomResourceColumnDefinition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java index 36ba127c7a..96e514d8cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java @@ -1,149 +1,193 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceColumnDefinitionFluent> extends BaseFluent{ - public V1CustomResourceColumnDefinitionFluent() { - } - - public V1CustomResourceColumnDefinitionFluent(V1CustomResourceColumnDefinition instance) { - this.copyInstance(instance); - } +public class V1CustomResourceColumnDefinitionFluent> extends BaseFluent{ + private String description; private String format; private String jsonPath; private String name; private Integer priority; private String type; + + public V1CustomResourceColumnDefinitionFluent() { + } + public V1CustomResourceColumnDefinitionFluent(V1CustomResourceColumnDefinition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1CustomResourceColumnDefinition instance) { - instance = (instance != null ? instance : new V1CustomResourceColumnDefinition()); + instance = instance != null ? instance : new V1CustomResourceColumnDefinition(); if (instance != null) { - this.withDescription(instance.getDescription()); - this.withFormat(instance.getFormat()); - this.withJsonPath(instance.getJsonPath()); - this.withName(instance.getName()); - this.withPriority(instance.getPriority()); - this.withType(instance.getType()); - } - } - - public String getDescription() { - return this.description; + this.withDescription(instance.getDescription()); + this.withFormat(instance.getFormat()); + this.withJsonPath(instance.getJsonPath()); + this.withName(instance.getName()); + this.withPriority(instance.getPriority()); + this.withType(instance.getType()); + } } - public A withDescription(String description) { - this.description = description; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceColumnDefinitionFluent that = (V1CustomResourceColumnDefinitionFluent) o; + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(format, that.format))) { + return false; + } + if (!(Objects.equals(jsonPath, that.jsonPath))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasDescription() { - return this.description != null; + public String getDescription() { + return this.description; } public String getFormat() { return this.format; } - public A withFormat(String format) { - this.format = format; - return (A) this; + public String getJsonPath() { + return this.jsonPath; } - public boolean hasFormat() { - return this.format != null; + public String getName() { + return this.name; } - public String getJsonPath() { - return this.jsonPath; + public Integer getPriority() { + return this.priority; } - public A withJsonPath(String jsonPath) { - this.jsonPath = jsonPath; - return (A) this; + public String getType() { + return this.type; } - public boolean hasJsonPath() { - return this.jsonPath != null; + public boolean hasDescription() { + return this.description != null; } - public String getName() { - return this.name; + public boolean hasFormat() { + return this.format != null; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasJsonPath() { + return this.jsonPath != null; } public boolean hasName() { return this.name != null; } - public Integer getPriority() { - return this.priority; + public boolean hasPriority() { + return this.priority != null; } - public A withPriority(Integer priority) { - this.priority = priority; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasPriority() { - return this.priority != null; + public int hashCode() { + return Objects.hash(description, format, jsonPath, name, priority, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(description == null)) { + sb.append("description:"); + sb.append(description); + sb.append(","); + } + if (!(format == null)) { + sb.append("format:"); + sb.append(format); + sb.append(","); + } + if (!(jsonPath == null)) { + sb.append("jsonPath:"); + sb.append(jsonPath); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withDescription(String description) { + this.description = description; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withFormat(String format) { + this.format = format; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1CustomResourceColumnDefinitionFluent that = (V1CustomResourceColumnDefinitionFluent) o; - if (!java.util.Objects.equals(description, that.description)) return false; - if (!java.util.Objects.equals(format, that.format)) return false; - if (!java.util.Objects.equals(jsonPath, that.jsonPath)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(priority, that.priority)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; + public A withJsonPath(String jsonPath) { + this.jsonPath = jsonPath; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(description, format, jsonPath, name, priority, type, super.hashCode()); + public A withName(String name) { + this.name = name; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (description != null) { sb.append("description:"); sb.append(description + ","); } - if (format != null) { sb.append("format:"); sb.append(format + ","); } - if (jsonPath != null) { sb.append("jsonPath:"); sb.append(jsonPath + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (priority != null) { sb.append("priority:"); sb.append(priority + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java index c4c4d5387b..1b3aecfc86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceConversionBuilder extends V1CustomResourceConversionFluent implements VisitableBuilder{ + + V1CustomResourceConversionFluent fluent; + public V1CustomResourceConversionBuilder() { this(new V1CustomResourceConversion()); } @@ -10,17 +14,16 @@ public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent flu this(fluent, new V1CustomResourceConversion()); } - public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent fluent,V1CustomResourceConversion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceConversionBuilder(V1CustomResourceConversion instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceConversionFluent fluent; + public V1CustomResourceConversionBuilder(V1CustomResourceConversionFluent fluent,V1CustomResourceConversion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceConversion build() { V1CustomResourceConversion buildable = new V1CustomResourceConversion(); buildable.setStrategy(fluent.getStrategy()); @@ -28,5 +31,4 @@ public V1CustomResourceConversion build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java index 3098b6c21c..d5c06e1541 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceConversionFluent> extends BaseFluent{ +public class V1CustomResourceConversionFluent> extends BaseFluent{ + + private String strategy; + private V1WebhookConversionBuilder webhook; + public V1CustomResourceConversionFluent() { } public V1CustomResourceConversionFluent(V1CustomResourceConversion instance) { this.copyInstance(instance); } - private String strategy; - private V1WebhookConversionBuilder webhook; + + public V1WebhookConversion buildWebhook() { + return this.webhook != null ? this.webhook.build() : null; + } protected void copyInstance(V1CustomResourceConversion instance) { - instance = (instance != null ? instance : new V1CustomResourceConversion()); + instance = instance != null ? instance : new V1CustomResourceConversion(); if (instance != null) { - this.withStrategy(instance.getStrategy()); - this.withWebhook(instance.getWebhook()); - } - } - - public String getStrategy() { - return this.strategy; + this.withStrategy(instance.getStrategy()); + this.withWebhook(instance.getWebhook()); + } } - public A withStrategy(String strategy) { - this.strategy = strategy; - return (A) this; + public WebhookNested editOrNewWebhook() { + return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(new V1WebhookConversionBuilder().build())); } - public boolean hasStrategy() { - return this.strategy != null; + public WebhookNested editOrNewWebhookLike(V1WebhookConversion item) { + return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(item)); } - public V1WebhookConversion buildWebhook() { - return this.webhook != null ? this.webhook.build() : null; + public WebhookNested editWebhook() { + return this.withNewWebhookLike(Optional.ofNullable(this.buildWebhook()).orElse(null)); } - public A withWebhook(V1WebhookConversion webhook) { - this._visitables.remove("webhook"); - if (webhook != null) { - this.webhook = new V1WebhookConversionBuilder(webhook); - this._visitables.get("webhook").add(this.webhook); - } else { - this.webhook = null; - this._visitables.get("webhook").remove(this.webhook); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceConversionFluent that = (V1CustomResourceConversionFluent) o; + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + if (!(Objects.equals(webhook, that.webhook))) { + return false; + } + return true; } - public boolean hasWebhook() { - return this.webhook != null; + public String getStrategy() { + return this.strategy; } - public WebhookNested withNewWebhook() { - return new WebhookNested(null); + public boolean hasStrategy() { + return this.strategy != null; } - public WebhookNested withNewWebhookLike(V1WebhookConversion item) { - return new WebhookNested(item); + public boolean hasWebhook() { + return this.webhook != null; } - public WebhookNested editWebhook() { - return withNewWebhookLike(java.util.Optional.ofNullable(buildWebhook()).orElse(null)); + public int hashCode() { + return Objects.hash(strategy, webhook); } - public WebhookNested editOrNewWebhook() { - return withNewWebhookLike(java.util.Optional.ofNullable(buildWebhook()).orElse(new V1WebhookConversionBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + sb.append(","); + } + if (!(webhook == null)) { + sb.append("webhook:"); + sb.append(webhook); + } + sb.append("}"); + return sb.toString(); } - public WebhookNested editOrNewWebhookLike(V1WebhookConversion item) { - return withNewWebhookLike(java.util.Optional.ofNullable(buildWebhook()).orElse(item)); + public WebhookNested withNewWebhook() { + return new WebhookNested(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; - V1CustomResourceConversionFluent that = (V1CustomResourceConversionFluent) o; - if (!java.util.Objects.equals(strategy, that.strategy)) return false; - if (!java.util.Objects.equals(webhook, that.webhook)) return false; - return true; + public WebhookNested withNewWebhookLike(V1WebhookConversion item) { + return new WebhookNested(item); } - public int hashCode() { - return java.util.Objects.hash(strategy, webhook, super.hashCode()); + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (strategy != null) { sb.append("strategy:"); sb.append(strategy + ","); } - if (webhook != null) { sb.append("webhook:"); sb.append(webhook); } - sb.append("}"); - return sb.toString(); + public A withWebhook(V1WebhookConversion webhook) { + this._visitables.remove("webhook"); + if (webhook != null) { + this.webhook = new V1WebhookConversionBuilder(webhook); + this._visitables.get("webhook").add(this.webhook); + } else { + this.webhook = null; + this._visitables.get("webhook").remove(this.webhook); + } + return (A) this; } public class WebhookNested extends V1WebhookConversionFluent> implements Nested{ + + V1WebhookConversionBuilder builder; + WebhookNested(V1WebhookConversion item) { this.builder = new V1WebhookConversionBuilder(this, item); } - V1WebhookConversionBuilder builder; - + public N and() { return (N) V1CustomResourceConversionFluent.this.withWebhook(builder.build()); } @@ -117,7 +141,5 @@ public N endWebhook() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java index 5a139b73a5..cf2df5a5e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionBuilder extends V1CustomResourceDefinitionFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionFluent fluent; + public V1CustomResourceDefinitionBuilder() { this(new V1CustomResourceDefinition()); } @@ -10,17 +14,16 @@ public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent flu this(fluent, new V1CustomResourceDefinition()); } - public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent fluent,V1CustomResourceDefinition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinition instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionFluent fluent; + public V1CustomResourceDefinitionBuilder(V1CustomResourceDefinitionFluent fluent,V1CustomResourceDefinition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinition build() { V1CustomResourceDefinition buildable = new V1CustomResourceDefinition(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1CustomResourceDefinition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java index e5636b6f3d..7eb50bf077 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionConditionBuilder extends V1CustomResourceDefinitionConditionFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionConditionFluent fluent; + public V1CustomResourceDefinitionConditionBuilder() { this(new V1CustomResourceDefinitionCondition()); } @@ -10,26 +14,25 @@ public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionCond this(fluent, new V1CustomResourceDefinitionCondition()); } - public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionConditionFluent fluent,V1CustomResourceDefinitionCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionConditionFluent fluent; + public V1CustomResourceDefinitionConditionBuilder(V1CustomResourceDefinitionConditionFluent fluent,V1CustomResourceDefinitionCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionCondition build() { V1CustomResourceDefinitionCondition buildable = new V1CustomResourceDefinitionCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); buildable.setMessage(fluent.getMessage()); + buildable.setObservedGeneration(fluent.getObservedGeneration()); 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/V1CustomResourceDefinitionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java index 05bd26f945..f681f43755 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java @@ -1,132 +1,194 @@ package io.kubernetes.client.openapi.models; -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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionConditionFluent> extends BaseFluent{ - public V1CustomResourceDefinitionConditionFluent() { - } - - public V1CustomResourceDefinitionConditionFluent(V1CustomResourceDefinitionCondition instance) { - this.copyInstance(instance); - } +public class V1CustomResourceDefinitionConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; + private Long observedGeneration; private String reason; private String status; private String type; + + public V1CustomResourceDefinitionConditionFluent() { + } + public V1CustomResourceDefinitionConditionFluent(V1CustomResourceDefinitionCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1CustomResourceDefinitionCondition instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionCondition()); + instance = instance != null ? instance : new V1CustomResourceDefinitionCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withObservedGeneration(instance.getObservedGeneration()); + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceDefinitionConditionFluent that = (V1CustomResourceDefinitionConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } 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 Long getObservedGeneration() { + return this.observedGeneration; } public String getReason() { return this.reason; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public String getStatus() { + return this.status; } - public boolean hasReason() { - return this.reason != null; + public String getType() { + return this.type; } - public String getStatus() { - return this.status; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasMessage() { + return this.message != null; } - public boolean hasStatus() { - return this.status != null; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public String getType() { - return this.type; + public boolean hasReason() { + return this.reason != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } 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; - V1CustomResourceDefinitionConditionFluent that = (V1CustomResourceDefinitionConditionFluent) 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()); + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } 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); } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } - + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java index 5bccb78637..440edef71c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1CustomResourceDefinitionSpecBuilder spec; + private V1CustomResourceDefinitionStatusBuilder status; + public V1CustomResourceDefinitionFluent() { } public V1CustomResourceDefinitionFluent(V1CustomResourceDefinition instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1CustomResourceDefinitionSpecBuilder spec; - private V1CustomResourceDefinitionStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1CustomResourceDefinitionSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1CustomResourceDefinitionStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1CustomResourceDefinition instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinition()); + instance = instance != null ? instance : new V1CustomResourceDefinition(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1CustomResourceDefinitionSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1CustomResourceDefinitionSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1CustomResourceDefinitionStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1CustomResourceDefinitionStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceDefinitionFluent that = (V1CustomResourceDefinitionFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1CustomResourceDefinitionSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1CustomResourceDefinitionSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1CustomResourceDefinitionStatus item) { + return new StatusNested(item); } public A withSpec(V1CustomResourceDefinitionSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1CustomResourceDefinitionSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1CustomResourceDefinitionSpec 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 V1CustomResourceDefinitionSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1CustomResourceDefinitionSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1CustomResourceDefinitionStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1CustomResourceDefinitionStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1CustomResourceDefinitionStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1CustomResourceDefinitionStatus 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 V1CustomResourceDefinitionStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1CustomResourceDefinitionStatus 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; - V1CustomResourceDefinitionFluent that = (V1CustomResourceDefinitionFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1CustomResourceDefinitionFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1CustomResourceDefinitionSpecFluent> implements Nested{ + + V1CustomResourceDefinitionSpecBuilder builder; + SpecNested(V1CustomResourceDefinitionSpec item) { this.builder = new V1CustomResourceDefinitionSpecBuilder(this, item); } - V1CustomResourceDefinitionSpecBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1CustomResourceDefinitionStatusFluent> implements Nested{ + + V1CustomResourceDefinitionStatusBuilder builder; + StatusNested(V1CustomResourceDefinitionStatus item) { this.builder = new V1CustomResourceDefinitionStatusBuilder(this, item); } - V1CustomResourceDefinitionStatusBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java index ea759bba05..70012a3dfa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionListBuilder extends V1CustomResourceDefinitionListFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionListFluent fluent; + public V1CustomResourceDefinitionListBuilder() { this(new V1CustomResourceDefinitionList()); } @@ -10,17 +14,16 @@ public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluen this(fluent, new V1CustomResourceDefinitionList()); } - public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluent fluent,V1CustomResourceDefinitionList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionList instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionListFluent fluent; + public V1CustomResourceDefinitionListBuilder(V1CustomResourceDefinitionListFluent fluent,V1CustomResourceDefinitionList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionList build() { V1CustomResourceDefinitionList buildable = new V1CustomResourceDefinitionList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1CustomResourceDefinitionList build() { return buildable; } - } \ No newline at end of file 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..dec57b4d8d 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionListFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1CustomResourceDefinitionListFluent() { } public V1CustomResourceDefinitionListFluent(V1CustomResourceDefinitionList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1CustomResourceDefinitionList instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1CustomResourceDefinition item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1CustomResourceDefinition... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1CustomResourceDefinition item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1CustomResourceDefinition buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1CustomResourceDefinition buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { - if (this.items == null) return (A)this; - for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CustomResourceDefinition buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1CustomResourceDefinition item : items) {V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1CustomResourceDefinition buildMatchingItem(Predicate predicate) { + for (V1CustomResourceDefinitionBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1CustomResourceDefinitionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1CustomResourceDefinitionList instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1CustomResourceDefinition buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1CustomResourceDefinition buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1CustomResourceDefinition buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceDefinitionListFluent that = (V1CustomResourceDefinitionListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1CustomResourceDefinition buildMatchingItem(Predicate predicate) { - for (V1CustomResourceDefinitionBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate pred return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1CustomResourceDefinition... items) { + if (this.items == null) { + return (A) this; + } + for (V1CustomResourceDefinition item : items) { + V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1CustomResourceDefinitionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1CustomResourceDefinition item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinition... items) { + public A withItems(V1CustomResourceDefinition... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1CustomResourceDefinitio return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1CustomResourceDefinition item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1CustomResourceDefinition 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1CustomResourceDefinitionFluent> implements Nested{ - 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; - V1CustomResourceDefinitionListFluent that = (V1CustomResourceDefinitionListFluent) 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()); - } + V1CustomResourceDefinitionBuilder builder; + int index; - 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 V1CustomResourceDefinitionFluent> implements Nested{ ItemsNested(int index,V1CustomResourceDefinition item) { this.index = index; this.builder = new V1CustomResourceDefinitionBuilder(this, item); } - V1CustomResourceDefinitionBuilder builder; - int index; - + public N and() { - return (N) V1CustomResourceDefinitionListFluent.this.setToItems(index,builder.build()); + return (N) V1CustomResourceDefinitionListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java index ea5614c7c7..184d7754a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionNamesBuilder extends V1CustomResourceDefinitionNamesFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionNamesFluent fluent; + public V1CustomResourceDefinitionNamesBuilder() { this(new V1CustomResourceDefinitionNames()); } @@ -10,17 +14,16 @@ public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFlu this(fluent, new V1CustomResourceDefinitionNames()); } - public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFluent fluent,V1CustomResourceDefinitionNames instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNames instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionNamesFluent fluent; + public V1CustomResourceDefinitionNamesBuilder(V1CustomResourceDefinitionNamesFluent fluent,V1CustomResourceDefinitionNames instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionNames build() { V1CustomResourceDefinitionNames buildable = new V1CustomResourceDefinitionNames(); buildable.setCategories(fluent.getCategories()); @@ -32,5 +35,4 @@ public V1CustomResourceDefinitionNames build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java index 03606e4b39..590eec4652 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java @@ -1,73 +1,134 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionNamesFluent> extends BaseFluent{ - public V1CustomResourceDefinitionNamesFluent() { - } - - public V1CustomResourceDefinitionNamesFluent(V1CustomResourceDefinitionNames instance) { - this.copyInstance(instance); - } +public class V1CustomResourceDefinitionNamesFluent> extends BaseFluent{ + private List categories; private String kind; private String listKind; private String plural; private List shortNames; private String singular; + + public V1CustomResourceDefinitionNamesFluent() { + } - protected void copyInstance(V1CustomResourceDefinitionNames instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionNames()); - if (instance != null) { - this.withCategories(instance.getCategories()); - this.withKind(instance.getKind()); - this.withListKind(instance.getListKind()); - this.withPlural(instance.getPlural()); - this.withShortNames(instance.getShortNames()); - this.withSingular(instance.getSingular()); - } + public V1CustomResourceDefinitionNamesFluent(V1CustomResourceDefinitionNames instance) { + this.copyInstance(instance); + } + + public A addAllToCategories(Collection items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; } - public A addToCategories(int index,String item) { - if (this.categories == null) {this.categories = new ArrayList();} - this.categories.add(index, item); - return (A)this; + public A addAllToShortNames(Collection items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; } - public A setToCategories(int index,String item) { - if (this.categories == null) {this.categories = new ArrayList();} - this.categories.set(index, item); return (A)this; + public A addToCategories(String... items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; } - public A addToCategories(java.lang.String... items) { - if (this.categories == null) {this.categories = new ArrayList();} - for (String item : items) {this.categories.add(item);} return (A)this; + public A addToCategories(int index,String item) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + this.categories.add(index, item); + return (A) this; } - public A addAllToCategories(Collection items) { - if (this.categories == null) {this.categories = new ArrayList();} - for (String item : items) {this.categories.add(item);} return (A)this; + public A addToShortNames(String... items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; } - public A removeFromCategories(java.lang.String... items) { - if (this.categories == null) return (A)this; - for (String item : items) { this.categories.remove(item);} return (A)this; + public A addToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.add(index, item); + return (A) this; } - public A removeAllFromCategories(Collection items) { - if (this.categories == null) return (A)this; - for (String item : items) { this.categories.remove(item);} return (A)this; + protected void copyInstance(V1CustomResourceDefinitionNames instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionNames(); + if (instance != null) { + this.withCategories(instance.getCategories()); + this.withKind(instance.getKind()); + this.withListKind(instance.getListKind()); + this.withPlural(instance.getPlural()); + this.withShortNames(instance.getShortNames()); + this.withSingular(instance.getSingular()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceDefinitionNamesFluent that = (V1CustomResourceDefinitionNamesFluent) o; + if (!(Objects.equals(categories, that.categories))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(listKind, that.listKind))) { + return false; + } + if (!(Objects.equals(plural, that.plural))) { + return false; + } + if (!(Objects.equals(shortNames, that.shortNames))) { + return false; + } + if (!(Objects.equals(singular, that.singular))) { + return false; + } + return true; } public List getCategories() { @@ -82,10 +143,26 @@ public String getFirstCategory() { return this.categories.get(0); } + public String getFirstShortName() { + return this.shortNames.get(0); + } + + public String getKind() { + return this.kind; + } + public String getLastCategory() { return this.categories.get(categories.size() - 1); } + public String getLastShortName() { + return this.shortNames.get(shortNames.size() - 1); + } + + public String getListKind() { + return this.listKind; + } + public String getMatchingCategory(Predicate predicate) { for (String item : categories) { if (predicate.test(item)) { @@ -95,146 +172,207 @@ public String getMatchingCategory(Predicate predicate) { return null; } - public boolean hasMatchingCategory(Predicate predicate) { - for (String item : categories) { + public String getMatchingShortName(Predicate predicate) { + for (String item : shortNames) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withCategories(List categories) { - if (categories != null) { - this.categories = new ArrayList(); - for (String item : categories) { - this.addToCategories(item); - } - } else { - this.categories = null; - } - return (A) this; + public String getPlural() { + return this.plural; } - public A withCategories(java.lang.String... categories) { - if (this.categories != null) { - this.categories.clear(); - _visitables.remove("categories"); - } - if (categories != null) { - for (String item : categories) { - this.addToCategories(item); - } - } - return (A) this; + public String getShortName(int index) { + return this.shortNames.get(index); } - public boolean hasCategories() { - return this.categories != null && !this.categories.isEmpty(); + public List getShortNames() { + return this.shortNames; } - public String getKind() { - return this.kind; + public String getSingular() { + return this.singular; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasCategories() { + return this.categories != null && !(this.categories.isEmpty()); } public boolean hasKind() { return this.kind != null; } - public String getListKind() { - return this.listKind; - } - - public A withListKind(String listKind) { - this.listKind = listKind; - return (A) this; - } - public boolean hasListKind() { return this.listKind != null; } - public String getPlural() { - return this.plural; + public boolean hasMatchingCategory(Predicate predicate) { + for (String item : categories) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withPlural(String plural) { - this.plural = plural; - return (A) this; + public boolean hasMatchingShortName(Predicate predicate) { + for (String item : shortNames) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasPlural() { return this.plural != null; } - public A addToShortNames(int index,String item) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - this.shortNames.add(index, item); - return (A)this; + public boolean hasShortNames() { + return this.shortNames != null && !(this.shortNames.isEmpty()); } - public A setToShortNames(int index,String item) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - this.shortNames.set(index, item); return (A)this; + public boolean hasSingular() { + return this.singular != null; } - public A addToShortNames(java.lang.String... items) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - for (String item : items) {this.shortNames.add(item);} return (A)this; + public int hashCode() { + return Objects.hash(categories, kind, listKind, plural, shortNames, singular); } - public A addAllToShortNames(Collection items) { - if (this.shortNames == null) {this.shortNames = new ArrayList();} - for (String item : items) {this.shortNames.add(item);} return (A)this; + public A removeAllFromCategories(Collection items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; } - public A removeFromShortNames(java.lang.String... items) { - if (this.shortNames == null) return (A)this; - for (String item : items) { this.shortNames.remove(item);} return (A)this; + public A removeAllFromShortNames(Collection items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; } - public A removeAllFromShortNames(Collection items) { - if (this.shortNames == null) return (A)this; - for (String item : items) { this.shortNames.remove(item);} return (A)this; + public A removeFromCategories(String... items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; } - public List getShortNames() { - return this.shortNames; + public A removeFromShortNames(String... items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; } - public String getShortName(int index) { - return this.shortNames.get(index); + public A setToCategories(int index,String item) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + this.categories.set(index, item); + return (A) this; } - public String getFirstShortName() { - return this.shortNames.get(0); + public A setToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.set(index, item); + return (A) this; } - public String getLastShortName() { - return this.shortNames.get(shortNames.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(categories == null) && !(categories.isEmpty())) { + sb.append("categories:"); + sb.append(categories); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(listKind == null)) { + sb.append("listKind:"); + sb.append(listKind); + sb.append(","); + } + if (!(plural == null)) { + sb.append("plural:"); + sb.append(plural); + sb.append(","); + } + if (!(shortNames == null) && !(shortNames.isEmpty())) { + sb.append("shortNames:"); + sb.append(shortNames); + sb.append(","); + } + if (!(singular == null)) { + sb.append("singular:"); + sb.append(singular); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return item; + public A withCategories(List categories) { + if (categories != null) { + this.categories = new ArrayList(); + for (String item : categories) { + this.addToCategories(item); } - } - return null; + } else { + this.categories = null; + } + return (A) this; } - public boolean hasMatchingShortName(Predicate predicate) { - for (String item : shortNames) { - if (predicate.test(item)) { - return true; - } + public A withCategories(String... categories) { + if (this.categories != null) { + this.categories.clear(); + _visitables.remove("categories"); + } + if (categories != null) { + for (String item : categories) { + this.addToCategories(item); } - return false; + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withListKind(String listKind) { + this.listKind = listKind; + return (A) this; + } + + public A withPlural(String plural) { + this.plural = plural; + return (A) this; } public A withShortNames(List shortNames) { @@ -249,7 +387,7 @@ public A withShortNames(List shortNames) { return (A) this; } - public A withShortNames(java.lang.String... shortNames) { + public A withShortNames(String... shortNames) { if (this.shortNames != null) { this.shortNames.clear(); _visitables.remove("shortNames"); @@ -262,53 +400,9 @@ public A withShortNames(java.lang.String... shortNames) { return (A) this; } - public boolean hasShortNames() { - return this.shortNames != null && !this.shortNames.isEmpty(); - } - - public String getSingular() { - return this.singular; - } - public A withSingular(String singular) { this.singular = singular; return (A) this; } - public boolean hasSingular() { - return this.singular != 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; - V1CustomResourceDefinitionNamesFluent that = (V1CustomResourceDefinitionNamesFluent) o; - if (!java.util.Objects.equals(categories, that.categories)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(listKind, that.listKind)) return false; - if (!java.util.Objects.equals(plural, that.plural)) return false; - if (!java.util.Objects.equals(shortNames, that.shortNames)) return false; - if (!java.util.Objects.equals(singular, that.singular)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(categories, kind, listKind, plural, shortNames, singular, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (categories != null && !categories.isEmpty()) { sb.append("categories:"); sb.append(categories + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (listKind != null) { sb.append("listKind:"); sb.append(listKind + ","); } - if (plural != null) { sb.append("plural:"); sb.append(plural + ","); } - if (shortNames != null && !shortNames.isEmpty()) { sb.append("shortNames:"); sb.append(shortNames + ","); } - if (singular != null) { sb.append("singular:"); sb.append(singular); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java index 0f008a3c5e..ab80861a88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionSpecBuilder extends V1CustomResourceDefinitionSpecFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionSpecFluent fluent; + public V1CustomResourceDefinitionSpecBuilder() { this(new V1CustomResourceDefinitionSpec()); } @@ -10,17 +14,16 @@ public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluen this(fluent, new V1CustomResourceDefinitionSpec()); } - public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluent fluent,V1CustomResourceDefinitionSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionSpecFluent fluent; + public V1CustomResourceDefinitionSpecBuilder(V1CustomResourceDefinitionSpecFluent fluent,V1CustomResourceDefinitionSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionSpec build() { V1CustomResourceDefinitionSpec buildable = new V1CustomResourceDefinitionSpec(); buildable.setConversion(fluent.buildConversion()); @@ -32,5 +35,4 @@ public V1CustomResourceDefinitionSpec build() { return buildable; } - } \ No newline at end of file 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..a60451a0bb 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 @@ -1,247 +1,426 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionSpecFluent> extends BaseFluent{ - public V1CustomResourceDefinitionSpecFluent() { - } - - public V1CustomResourceDefinitionSpecFluent(V1CustomResourceDefinitionSpec instance) { - this.copyInstance(instance); - } +public class V1CustomResourceDefinitionSpecFluent> extends BaseFluent{ + private V1CustomResourceConversionBuilder conversion; private String group; private V1CustomResourceDefinitionNamesBuilder names; private Boolean preserveUnknownFields; private String scope; private ArrayList versions; + + public V1CustomResourceDefinitionSpecFluent() { + } - protected void copyInstance(V1CustomResourceDefinitionSpec instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionSpec()); - if (instance != null) { - this.withConversion(instance.getConversion()); - this.withGroup(instance.getGroup()); - this.withNames(instance.getNames()); - this.withPreserveUnknownFields(instance.getPreserveUnknownFields()); - this.withScope(instance.getScope()); - this.withVersions(instance.getVersions()); - } + public V1CustomResourceDefinitionSpecFluent(V1CustomResourceDefinitionSpec instance) { + this.copyInstance(instance); + } + + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; } - public V1CustomResourceConversion buildConversion() { - return this.conversion != null ? this.conversion.build() : null; + public VersionsNested addNewVersion() { + return new VersionsNested(-1, null); } - public A withConversion(V1CustomResourceConversion conversion) { - this._visitables.remove("conversion"); - if (conversion != null) { - this.conversion = new V1CustomResourceConversionBuilder(conversion); - this._visitables.get("conversion").add(this.conversion); + public VersionsNested addNewVersionLike(V1CustomResourceDefinitionVersion item) { + return new VersionsNested(-1, item); + } + + public A addToVersions(V1CustomResourceDefinitionVersion... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; + } + + 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 { - this.conversion = null; - this._visitables.get("conversion").remove(this.conversion); + _visitables.get("versions").add(builder); + versions.add(index, builder); } return (A) this; } - public boolean hasConversion() { - return this.conversion != null; + public V1CustomResourceConversion buildConversion() { + return this.conversion != null ? this.conversion.build() : null; } - public ConversionNested withNewConversion() { - return new ConversionNested(null); + public V1CustomResourceDefinitionVersion buildFirstVersion() { + return this.versions.get(0).build(); } - public ConversionNested withNewConversionLike(V1CustomResourceConversion item) { - return new ConversionNested(item); + public V1CustomResourceDefinitionVersion buildLastVersion() { + return this.versions.get(versions.size() - 1).build(); } - public ConversionNested editConversion() { - return withNewConversionLike(java.util.Optional.ofNullable(buildConversion()).orElse(null)); + public V1CustomResourceDefinitionVersion buildMatchingVersion(Predicate predicate) { + for (V1CustomResourceDefinitionVersionBuilder item : versions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public ConversionNested editOrNewConversion() { - return withNewConversionLike(java.util.Optional.ofNullable(buildConversion()).orElse(new V1CustomResourceConversionBuilder().build())); + public V1CustomResourceDefinitionNames buildNames() { + return this.names != null ? this.names.build() : null; } - public ConversionNested editOrNewConversionLike(V1CustomResourceConversion item) { - return withNewConversionLike(java.util.Optional.ofNullable(buildConversion()).orElse(item)); + public V1CustomResourceDefinitionVersion buildVersion(int index) { + return this.versions.get(index).build(); } - public String getGroup() { - return this.group; + public List buildVersions() { + return this.versions != null ? build(versions) : null; } - public A withGroup(String group) { - this.group = group; - return (A) this; + protected void copyInstance(V1CustomResourceDefinitionSpec instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionSpec(); + if (instance != null) { + this.withConversion(instance.getConversion()); + this.withGroup(instance.getGroup()); + this.withNames(instance.getNames()); + this.withPreserveUnknownFields(instance.getPreserveUnknownFields()); + this.withScope(instance.getScope()); + this.withVersions(instance.getVersions()); + } } - public boolean hasGroup() { - return this.group != null; + public ConversionNested editConversion() { + return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(null)); } - public V1CustomResourceDefinitionNames buildNames() { - return this.names != null ? this.names.build() : null; + public VersionsNested editFirstVersion() { + if (versions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(0, this.buildVersion(0)); } - public A withNames(V1CustomResourceDefinitionNames names) { - this._visitables.remove("names"); - if (names != null) { - this.names = new V1CustomResourceDefinitionNamesBuilder(names); - this._visitables.get("names").add(this.names); - } else { - this.names = null; - this._visitables.get("names").remove(this.names); + public VersionsNested editLastVersion() { + int index = versions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "versions")); } - return (A) this; + return this.setNewVersionLike(index, this.buildVersion(index)); } - public boolean hasNames() { - return this.names != null; + public VersionsNested editMatchingVersion(Predicate predicate) { + int index = -1; + for (int i = 0;i < versions.size();i++) { + if (predicate.test(versions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); } - public NamesNested withNewNames() { - return new NamesNested(null); + public NamesNested editNames() { + return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(null)); } - public NamesNested withNewNamesLike(V1CustomResourceDefinitionNames item) { - return new NamesNested(item); + public ConversionNested editOrNewConversion() { + return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(new V1CustomResourceConversionBuilder().build())); } - public NamesNested editNames() { - return withNewNamesLike(java.util.Optional.ofNullable(buildNames()).orElse(null)); + public ConversionNested editOrNewConversionLike(V1CustomResourceConversion item) { + return this.withNewConversionLike(Optional.ofNullable(this.buildConversion()).orElse(item)); } public NamesNested editOrNewNames() { - return withNewNamesLike(java.util.Optional.ofNullable(buildNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); + return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); } public NamesNested editOrNewNamesLike(V1CustomResourceDefinitionNames item) { - return withNewNamesLike(java.util.Optional.ofNullable(buildNames()).orElse(item)); + return this.withNewNamesLike(Optional.ofNullable(this.buildNames()).orElse(item)); + } + + public VersionsNested editVersion(int index) { + if (versions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceDefinitionSpecFluent that = (V1CustomResourceDefinitionSpecFluent) o; + if (!(Objects.equals(conversion, that.conversion))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(names, that.names))) { + return false; + } + if (!(Objects.equals(preserveUnknownFields, that.preserveUnknownFields))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + if (!(Objects.equals(versions, that.versions))) { + return false; + } + return true; + } + + public String getGroup() { + return this.group; } public Boolean getPreserveUnknownFields() { return this.preserveUnknownFields; } - public A withPreserveUnknownFields(Boolean preserveUnknownFields) { - this.preserveUnknownFields = preserveUnknownFields; - return (A) this; + public String getScope() { + return this.scope; + } + + public boolean hasConversion() { + return this.conversion != null; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasMatchingVersion(Predicate predicate) { + for (V1CustomResourceDefinitionVersionBuilder item : versions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNames() { + return this.names != null; } public boolean hasPreserveUnknownFields() { return this.preserveUnknownFields != null; } - public String getScope() { - return this.scope; + public boolean hasScope() { + return this.scope != null; } - public A withScope(String scope) { - this.scope = scope; + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); + } + + public int hashCode() { + return Objects.hash(conversion, group, names, preserveUnknownFields, scope, versions); + } + + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } return (A) this; } - public boolean hasScope() { - return this.scope != null; + public A removeFromVersions(V1CustomResourceDefinitionVersion... items) { + if (this.versions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionVersion item : items) { + V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; } - 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);} - return (A)this; + public A removeMatchingFromVersions(Predicate predicate) { + if (versions == null) { + return (A) this; + } + Iterator each = versions.iterator(); + List visitables = _visitables.get("versions"); + while (each.hasNext()) { + V1CustomResourceDefinitionVersionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public VersionsNested setNewVersionLike(int index,V1CustomResourceDefinitionVersion item) { + return new VersionsNested(index, item); } public A setToVersions(int index,V1CustomResourceDefinitionVersion item) { - if (this.versions == null) {this.versions = new ArrayList();} + 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);} - return (A)this; + 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; } - public A addToVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conversion == null)) { + sb.append("conversion:"); + sb.append(conversion); + sb.append(","); + } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(names == null)) { + sb.append("names:"); + sb.append(names); + sb.append(","); + } + if (!(preserveUnknownFields == null)) { + sb.append("preserveUnknownFields:"); + sb.append(preserveUnknownFields); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + sb.append(","); + } + if (!(versions == null) && !(versions.isEmpty())) { + sb.append("versions:"); + sb.append(versions); + } + sb.append("}"); + return sb.toString(); } - public A addAllToVersions(Collection items) { - if (this.versions == null) {this.versions = new ArrayList();} - for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").add(builder);this.versions.add(builder);} return (A)this; + public A withConversion(V1CustomResourceConversion conversion) { + this._visitables.remove("conversion"); + if (conversion != null) { + this.conversion = new V1CustomResourceConversionBuilder(conversion); + this._visitables.get("conversion").add(this.conversion); + } else { + this.conversion = null; + this._visitables.get("conversion").remove(this.conversion); + } + return (A) this; } - public A removeFromVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... items) { - if (this.versions == null) return (A)this; - for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").remove(builder); this.versions.remove(builder);} return (A)this; + public A withGroup(String group) { + this.group = group; + return (A) this; } - public A removeAllFromVersions(Collection items) { - if (this.versions == null) return (A)this; - for (V1CustomResourceDefinitionVersion item : items) {V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item);_visitables.get("versions").remove(builder); this.versions.remove(builder);} return (A)this; + public A withNames(V1CustomResourceDefinitionNames names) { + this._visitables.remove("names"); + if (names != null) { + this.names = new V1CustomResourceDefinitionNamesBuilder(names); + this._visitables.get("names").add(this.names); + } else { + this.names = null; + this._visitables.get("names").remove(this.names); + } + return (A) this; } - public A removeMatchingFromVersions(Predicate predicate) { - if (versions == null) return (A) this; - final Iterator each = versions.iterator(); - final List visitables = _visitables.get("versions"); - while (each.hasNext()) { - V1CustomResourceDefinitionVersionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public ConversionNested withNewConversion() { + return new ConversionNested(null); } - public List buildVersions() { - return this.versions != null ? build(versions) : null; + public ConversionNested withNewConversionLike(V1CustomResourceConversion item) { + return new ConversionNested(item); } - public V1CustomResourceDefinitionVersion buildVersion(int index) { - return this.versions.get(index).build(); + public NamesNested withNewNames() { + return new NamesNested(null); } - public V1CustomResourceDefinitionVersion buildFirstVersion() { - return this.versions.get(0).build(); + public NamesNested withNewNamesLike(V1CustomResourceDefinitionNames item) { + return new NamesNested(item); } - public V1CustomResourceDefinitionVersion buildLastVersion() { - return this.versions.get(versions.size() - 1).build(); + public A withPreserveUnknownFields() { + return withPreserveUnknownFields(true); } - public V1CustomResourceDefinitionVersion buildMatchingVersion(Predicate predicate) { - for (V1CustomResourceDefinitionVersionBuilder item : versions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withPreserveUnknownFields(Boolean preserveUnknownFields) { + this.preserveUnknownFields = preserveUnknownFields; + return (A) this; } - public boolean hasMatchingVersion(Predicate predicate) { - for (V1CustomResourceDefinitionVersionBuilder item : versions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withScope(String scope) { + this.scope = scope; + return (A) this; } public A withVersions(List versions) { @@ -259,7 +438,7 @@ public A withVersions(List versions) { return (A) this; } - public A withVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionVersion... versions) { + public A withVersions(V1CustomResourceDefinitionVersion... versions) { if (this.versions != null) { this.versions.clear(); _visitables.remove("versions"); @@ -271,88 +450,14 @@ public A withVersions(io.kubernetes.client.openapi.models.V1CustomResourceDefini } return (A) this; } + public class ConversionNested extends V1CustomResourceConversionFluent> implements Nested{ - public boolean hasVersions() { - return this.versions != null && !this.versions.isEmpty(); - } - - public VersionsNested addNewVersion() { - return new VersionsNested(-1, null); - } - - public VersionsNested addNewVersionLike(V1CustomResourceDefinitionVersion item) { - return new VersionsNested(-1, item); - } - - public VersionsNested setNewVersionLike(int index,V1CustomResourceDefinitionVersion item) { - return new VersionsNested(index, item); - } - - public VersionsNested editVersion(int index) { - if (versions.size() <= index) throw new RuntimeException("Can't edit versions. Index exceeds size."); - return setNewVersionLike(index, buildVersion(index)); - } - - public VersionsNested editFirstVersion() { - if (versions.size() == 0) throw new RuntimeException("Can't edit first versions. The list is empty."); - return setNewVersionLike(0, buildVersion(0)); - } - - public VersionsNested editLastVersion() { - int index = versions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last versions. The list is empty."); - return setNewVersionLike(index, buildVersion(index)); - } - - public VersionsNested editMatchingVersion(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1CustomResourceConversionFluent> implements Nested{ ConversionNested(V1CustomResourceConversion item) { this.builder = new V1CustomResourceConversionBuilder(this, item); } - V1CustomResourceConversionBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionSpecFluent.this.withConversion(builder.build()); } @@ -361,14 +466,15 @@ public N endConversion() { return and(); } - } public class NamesNested extends V1CustomResourceDefinitionNamesFluent> implements Nested{ + + V1CustomResourceDefinitionNamesBuilder builder; + NamesNested(V1CustomResourceDefinitionNames item) { this.builder = new V1CustomResourceDefinitionNamesBuilder(this, item); } - V1CustomResourceDefinitionNamesBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionSpecFluent.this.withNames(builder.build()); } @@ -377,25 +483,24 @@ public N endNames() { return and(); } - } public class VersionsNested extends V1CustomResourceDefinitionVersionFluent> implements Nested{ + + V1CustomResourceDefinitionVersionBuilder builder; + int index; + VersionsNested(int index,V1CustomResourceDefinitionVersion item) { this.index = index; this.builder = new V1CustomResourceDefinitionVersionBuilder(this, item); } - V1CustomResourceDefinitionVersionBuilder builder; - int index; - + public N and() { - return (N) V1CustomResourceDefinitionSpecFluent.this.setToVersions(index,builder.build()); + return (N) V1CustomResourceDefinitionSpecFluent.this.setToVersions(index, builder.build()); } public N endVersion() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java index d0ec16c0e1..3d64d742ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionStatusBuilder extends V1CustomResourceDefinitionStatusFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionStatusFluent fluent; + public V1CustomResourceDefinitionStatusBuilder() { this(new V1CustomResourceDefinitionStatus()); } @@ -10,24 +14,23 @@ public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusF this(fluent, new V1CustomResourceDefinitionStatus()); } - public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusFluent fluent,V1CustomResourceDefinitionStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionStatusFluent fluent; + public V1CustomResourceDefinitionStatusBuilder(V1CustomResourceDefinitionStatusFluent fluent,V1CustomResourceDefinitionStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionStatus build() { V1CustomResourceDefinitionStatus buildable = new V1CustomResourceDefinitionStatus(); buildable.setAcceptedNames(fluent.buildAcceptedNames()); buildable.setConditions(fluent.buildConditions()); + buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setStoredVersions(fluent.getStoredVersions()); return buildable; } - } \ No newline at end of file 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..3145d2d6ea 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 @@ -1,154 +1,264 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionStatusFluent> extends BaseFluent{ +public class V1CustomResourceDefinitionStatusFluent> extends BaseFluent{ + + private V1CustomResourceDefinitionNamesBuilder acceptedNames; + private ArrayList conditions; + private Long observedGeneration; + private List storedVersions; + public V1CustomResourceDefinitionStatusFluent() { } public V1CustomResourceDefinitionStatusFluent(V1CustomResourceDefinitionStatus instance) { this.copyInstance(instance); } - private V1CustomResourceDefinitionNamesBuilder acceptedNames; - private ArrayList conditions; - private List storedVersions; + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } - protected void copyInstance(V1CustomResourceDefinitionStatus instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionStatus()); - if (instance != null) { - this.withAcceptedNames(instance.getAcceptedNames()); - this.withConditions(instance.getConditions()); - this.withStoredVersions(instance.getStoredVersions()); - } + public A addAllToStoredVersions(Collection items) { + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } + for (String item : items) { + this.storedVersions.add(item); + } + return (A) this; } - public V1CustomResourceDefinitionNames buildAcceptedNames() { - return this.acceptedNames != null ? this.acceptedNames.build() : null; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A withAcceptedNames(V1CustomResourceDefinitionNames acceptedNames) { - this._visitables.remove("acceptedNames"); - if (acceptedNames != null) { - this.acceptedNames = new V1CustomResourceDefinitionNamesBuilder(acceptedNames); - this._visitables.get("acceptedNames").add(this.acceptedNames); + public ConditionsNested addNewConditionLike(V1CustomResourceDefinitionCondition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(V1CustomResourceDefinitionCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + 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 { - this.acceptedNames = null; - this._visitables.get("acceptedNames").remove(this.acceptedNames); + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public boolean hasAcceptedNames() { - return this.acceptedNames != null; + public A addToStoredVersions(String... items) { + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } + for (String item : items) { + this.storedVersions.add(item); + } + return (A) this; } - public AcceptedNamesNested withNewAcceptedNames() { - return new AcceptedNamesNested(null); + public A addToStoredVersions(int index,String item) { + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } + this.storedVersions.add(index, item); + return (A) this; } - public AcceptedNamesNested withNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { - return new AcceptedNamesNested(item); + public V1CustomResourceDefinitionNames buildAcceptedNames() { + return this.acceptedNames != null ? this.acceptedNames.build() : null; } - public AcceptedNamesNested editAcceptedNames() { - return withNewAcceptedNamesLike(java.util.Optional.ofNullable(buildAcceptedNames()).orElse(null)); + public V1CustomResourceDefinitionCondition buildCondition(int index) { + return this.conditions.get(index).build(); } - public AcceptedNamesNested editOrNewAcceptedNames() { - return withNewAcceptedNamesLike(java.util.Optional.ofNullable(buildAcceptedNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; } - public AcceptedNamesNested editOrNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { - return withNewAcceptedNamesLike(java.util.Optional.ofNullable(buildAcceptedNames()).orElse(item)); + public V1CustomResourceDefinitionCondition buildFirstCondition() { + return this.conditions.get(0).build(); } - 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);} - return (A)this; + public V1CustomResourceDefinitionCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); } - 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);} - return (A)this; + public V1CustomResourceDefinitionCondition buildMatchingCondition(Predicate predicate) { + for (V1CustomResourceDefinitionConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A addToConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + protected void copyInstance(V1CustomResourceDefinitionStatus instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionStatus(); + if (instance != null) { + this.withAcceptedNames(instance.getAcceptedNames()); + this.withConditions(instance.getConditions()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withStoredVersions(instance.getStoredVersions()); + } } - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public AcceptedNamesNested editAcceptedNames() { + return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(null)); + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... items) { - if (this.conditions == null) return (A)this; - for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1CustomResourceDefinitionCondition item : items) {V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - 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()) { - V1CustomResourceDefinitionConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + public AcceptedNamesNested editOrNewAcceptedNames() { + return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(new V1CustomResourceDefinitionNamesBuilder().build())); } - public V1CustomResourceDefinitionCondition buildCondition(int index) { - return this.conditions.get(index).build(); + public AcceptedNamesNested editOrNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { + return this.withNewAcceptedNamesLike(Optional.ofNullable(this.buildAcceptedNames()).orElse(item)); } - public V1CustomResourceDefinitionCondition buildFirstCondition() { - return this.conditions.get(0).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceDefinitionStatusFluent that = (V1CustomResourceDefinitionStatusFluent) o; + if (!(Objects.equals(acceptedNames, that.acceptedNames))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(storedVersions, that.storedVersions))) { + return false; + } + return true; } - public V1CustomResourceDefinitionCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); + public String getFirstStoredVersion() { + return this.storedVersions.get(0); } - public V1CustomResourceDefinitionCondition buildMatchingCondition(Predicate predicate) { - for (V1CustomResourceDefinitionConditionBuilder item : conditions) { + public String getLastStoredVersion() { + return this.storedVersions.get(storedVersions.size() - 1); + } + + public String getMatchingStoredVersion(Predicate predicate) { + for (String item : storedVersions) { if (predicate.test(item)) { - return item.build(); + return item; } } return null; } + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public String getStoredVersion(int index) { + return this.storedVersions.get(index); + } + + public List getStoredVersions() { + return this.storedVersions; + } + + public boolean hasAcceptedNames() { + return this.acceptedNames != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + public boolean hasMatchingCondition(Predicate predicate) { for (V1CustomResourceDefinitionConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -158,138 +268,191 @@ public boolean hasMatchingCondition(Predicate conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1CustomResourceDefinitionCondition item : conditions) { - this.addToConditions(item); + public boolean hasMatchingStoredVersion(Predicate predicate) { + for (String item : storedVersions) { + if (predicate.test(item)) { + return true; } - } else { - this.conditions = null; - } - return (A) this; - } - - public A withConditions(io.kubernetes.client.openapi.models.V1CustomResourceDefinitionCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1CustomResourceDefinitionCondition 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); + return false; } - public ConditionsNested addNewConditionLike(V1CustomResourceDefinitionCondition item) { - return new ConditionsNested(-1, item); + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public ConditionsNested setNewConditionLike(int index,V1CustomResourceDefinitionCondition item) { - return new ConditionsNested(index, item); + public boolean hasStoredVersions() { + return this.storedVersions != null && !(this.storedVersions.isEmpty()); } - 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 int hashCode() { + return Objects.hash(acceptedNames, conditions, observedGeneration, storedVersions); } - 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 A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1CustomResourceDefinitionCondition item : items) { + V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - 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 A removeAllFromStoredVersions(Collection items) { + if (this.storedVersions == null) { + return (A) this; + } + for (String item : items) { + this.storedVersions.remove(item); + } + return (A) this; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i();} - this.storedVersions.add(index, item); - return (A)this; + public A removeFromStoredVersions(String... items) { + if (this.storedVersions == null) { + return (A) this; + } + for (String item : items) { + this.storedVersions.remove(item); + } + return (A) this; } - public A setToStoredVersions(int index,String item) { - if (this.storedVersions == null) {this.storedVersions = new ArrayList();} - this.storedVersions.set(index, item); return (A)this; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1CustomResourceDefinitionConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A addToStoredVersions(java.lang.String... items) { - if (this.storedVersions == null) {this.storedVersions = new ArrayList();} - for (String item : items) {this.storedVersions.add(item);} return (A)this; + public ConditionsNested setNewConditionLike(int index,V1CustomResourceDefinitionCondition item) { + return new ConditionsNested(index, item); } - public A addAllToStoredVersions(Collection items) { - if (this.storedVersions == null) {this.storedVersions = new ArrayList();} - for (String item : items) {this.storedVersions.add(item);} 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").add(builder); + conditions.set(index, builder); + } + return (A) this; } - public A removeFromStoredVersions(java.lang.String... items) { - if (this.storedVersions == null) return (A)this; - for (String item : items) { this.storedVersions.remove(item);} return (A)this; + public A setToStoredVersions(int index,String item) { + if (this.storedVersions == null) { + this.storedVersions = new ArrayList(); + } + this.storedVersions.set(index, item); + return (A) this; } - public A removeAllFromStoredVersions(Collection items) { - if (this.storedVersions == null) return (A)this; - for (String item : items) { this.storedVersions.remove(item);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(acceptedNames == null)) { + sb.append("acceptedNames:"); + sb.append(acceptedNames); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(storedVersions == null) && !(storedVersions.isEmpty())) { + sb.append("storedVersions:"); + sb.append(storedVersions); + } + sb.append("}"); + return sb.toString(); } - public List getStoredVersions() { - return this.storedVersions; + public A withAcceptedNames(V1CustomResourceDefinitionNames acceptedNames) { + this._visitables.remove("acceptedNames"); + if (acceptedNames != null) { + this.acceptedNames = new V1CustomResourceDefinitionNamesBuilder(acceptedNames); + this._visitables.get("acceptedNames").add(this.acceptedNames); + } else { + this.acceptedNames = null; + this._visitables.get("acceptedNames").remove(this.acceptedNames); + } + return (A) this; } - public String getStoredVersion(int index) { - return this.storedVersions.get(index); + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1CustomResourceDefinitionCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; } - public String getFirstStoredVersion() { - return this.storedVersions.get(0); + public A withConditions(V1CustomResourceDefinitionCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1CustomResourceDefinitionCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; } - public String getLastStoredVersion() { - return this.storedVersions.get(storedVersions.size() - 1); + public AcceptedNamesNested withNewAcceptedNames() { + return new AcceptedNamesNested(null); } - public String getMatchingStoredVersion(Predicate predicate) { - for (String item : storedVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public AcceptedNamesNested withNewAcceptedNamesLike(V1CustomResourceDefinitionNames item) { + return new AcceptedNamesNested(item); } - public boolean hasMatchingStoredVersion(Predicate predicate) { - for (String item : storedVersions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; } public A withStoredVersions(List storedVersions) { @@ -304,7 +467,7 @@ public A withStoredVersions(List storedVersions) { return (A) this; } - public A withStoredVersions(java.lang.String... storedVersions) { + public A withStoredVersions(String... storedVersions) { if (this.storedVersions != null) { this.storedVersions.clear(); _visitables.remove("storedVersions"); @@ -316,41 +479,14 @@ public A withStoredVersions(java.lang.String... storedVersions) { } return (A) this; } + public class AcceptedNamesNested extends V1CustomResourceDefinitionNamesFluent> implements Nested{ - public boolean hasStoredVersions() { - return this.storedVersions != null && !this.storedVersions.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; - V1CustomResourceDefinitionStatusFluent that = (V1CustomResourceDefinitionStatusFluent) o; - if (!java.util.Objects.equals(acceptedNames, that.acceptedNames)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(storedVersions, that.storedVersions)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(acceptedNames, conditions, storedVersions, super.hashCode()); - } + V1CustomResourceDefinitionNamesBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (acceptedNames != null) { sb.append("acceptedNames:"); sb.append(acceptedNames + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (storedVersions != null && !storedVersions.isEmpty()) { sb.append("storedVersions:"); sb.append(storedVersions); } - sb.append("}"); - return sb.toString(); - } - public class AcceptedNamesNested extends V1CustomResourceDefinitionNamesFluent> implements Nested{ AcceptedNamesNested(V1CustomResourceDefinitionNames item) { this.builder = new V1CustomResourceDefinitionNamesBuilder(this, item); } - V1CustomResourceDefinitionNamesBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionStatusFluent.this.withAcceptedNames(builder.build()); } @@ -359,25 +495,24 @@ public N endAcceptedNames() { return and(); } - } public class ConditionsNested extends V1CustomResourceDefinitionConditionFluent> implements Nested{ + + V1CustomResourceDefinitionConditionBuilder builder; + int index; + ConditionsNested(int index,V1CustomResourceDefinitionCondition item) { this.index = index; this.builder = new V1CustomResourceDefinitionConditionBuilder(this, item); } - V1CustomResourceDefinitionConditionBuilder builder; - int index; - + public N and() { - return (N) V1CustomResourceDefinitionStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1CustomResourceDefinitionStatusFluent.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/V1CustomResourceDefinitionVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java index 63d4d3dab4..396a0a42a3 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceDefinitionVersionBuilder extends V1CustomResourceDefinitionVersionFluent implements VisitableBuilder{ + + V1CustomResourceDefinitionVersionFluent fluent; + public V1CustomResourceDefinitionVersionBuilder() { this(new V1CustomResourceDefinitionVersion()); } @@ -10,17 +14,16 @@ public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersio this(fluent, new V1CustomResourceDefinitionVersion()); } - public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent fluent,V1CustomResourceDefinitionVersion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersion instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceDefinitionVersionFluent fluent; + public V1CustomResourceDefinitionVersionBuilder(V1CustomResourceDefinitionVersionFluent fluent,V1CustomResourceDefinitionVersion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceDefinitionVersion build() { V1CustomResourceDefinitionVersion buildable = new V1CustomResourceDefinitionVersion(); buildable.setAdditionalPrinterColumns(fluent.buildAdditionalPrinterColumns()); @@ -35,5 +38,4 @@ public V1CustomResourceDefinitionVersion build() { return buildable; } - } \ No newline at end of file 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 f2824db2b7..59cb89f700 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 @@ -1,29 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceDefinitionVersionFluent> extends BaseFluent{ - public V1CustomResourceDefinitionVersionFluent() { - } - - public V1CustomResourceDefinitionVersionFluent(V1CustomResourceDefinitionVersion instance) { - this.copyInstance(instance); - } +public class V1CustomResourceDefinitionVersionFluent> extends BaseFluent{ + private ArrayList additionalPrinterColumns; private Boolean deprecated; private String deprecationWarning; @@ -33,86 +31,132 @@ public V1CustomResourceDefinitionVersionFluent(V1CustomResourceDefinitionVersion private Boolean served; private Boolean storage; private V1CustomResourceSubresourcesBuilder subresources; + + public V1CustomResourceDefinitionVersionFluent() { + } - protected void copyInstance(V1CustomResourceDefinitionVersion instance) { - instance = (instance != null ? instance : new V1CustomResourceDefinitionVersion()); - if (instance != null) { - this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); - this.withDeprecated(instance.getDeprecated()); - 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()); - } + public V1CustomResourceDefinitionVersionFluent(V1CustomResourceDefinitionVersion instance) { + this.copyInstance(instance); + } + + public A addAllToAdditionalPrinterColumns(Collection items) { + if (this.additionalPrinterColumns == null) { + this.additionalPrinterColumns = new ArrayList(); + } + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").add(builder); + this.additionalPrinterColumns.add(builder); + } + return (A) this; } - 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);} - 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 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);} - return (A)this; + public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumn() { + return new AdditionalPrinterColumnsNested(-1, null); } - public A addToAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { - if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} - for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").add(builder);this.additionalPrinterColumns.add(builder);} return (A)this; + public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item) { + return new AdditionalPrinterColumnsNested(-1, item); } - public A addAllToAdditionalPrinterColumns(Collection items) { - if (this.additionalPrinterColumns == null) {this.additionalPrinterColumns = new ArrayList();} - for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").add(builder);this.additionalPrinterColumns.add(builder);} return (A)this; + public SelectableFieldsNested addNewSelectableField() { + return new SelectableFieldsNested(-1, null); } - public A removeFromAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... items) { - if (this.additionalPrinterColumns == null) return (A)this; - for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").remove(builder); this.additionalPrinterColumns.remove(builder);} return (A)this; + public SelectableFieldsNested addNewSelectableFieldLike(V1SelectableField item) { + return new SelectableFieldsNested(-1, item); } - public A removeAllFromAdditionalPrinterColumns(Collection items) { - if (this.additionalPrinterColumns == null) return (A)this; - for (V1CustomResourceColumnDefinition item : items) {V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item);_visitables.get("additionalPrinterColumns").remove(builder); this.additionalPrinterColumns.remove(builder);} return (A)this; + public A addToAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items) { + if (this.additionalPrinterColumns == null) { + this.additionalPrinterColumns = new ArrayList(); + } + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").add(builder); + this.additionalPrinterColumns.add(builder); + } + return (A) this; } - public A removeMatchingFromAdditionalPrinterColumns(Predicate predicate) { - if (additionalPrinterColumns == null) return (A) this; - final Iterator each = additionalPrinterColumns.iterator(); - final List visitables = _visitables.get("additionalPrinterColumns"); - while (each.hasNext()) { - V1CustomResourceColumnDefinitionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + additionalPrinterColumns.add(index, builder); } - return (A)this; + return (A) this; } - public List buildAdditionalPrinterColumns() { - return this.additionalPrinterColumns != null ? build(additionalPrinterColumns) : null; + public A addToSelectableFields(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 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 V1CustomResourceColumnDefinition buildAdditionalPrinterColumn(int index) { return this.additionalPrinterColumns.get(index).build(); } + public List buildAdditionalPrinterColumns() { + return this.additionalPrinterColumns != null ? build(additionalPrinterColumns) : null; + } + public V1CustomResourceColumnDefinition buildFirstAdditionalPrinterColumn() { return this.additionalPrinterColumns.get(0).build(); } + public V1SelectableField buildFirstSelectableField() { + return this.selectableFields.get(0).build(); + } + public V1CustomResourceColumnDefinition buildLastAdditionalPrinterColumn() { return this.additionalPrinterColumns.get(additionalPrinterColumns.size() - 1).build(); } + public V1SelectableField buildLastSelectableField() { + return this.selectableFields.get(selectableFields.size() - 1).build(); + } + public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn(Predicate predicate) { for (V1CustomResourceColumnDefinitionBuilder item : additionalPrinterColumns) { if (predicate.test(item)) { @@ -122,6 +166,215 @@ public V1CustomResourceColumnDefinition buildMatchingAdditionalPrinterColumn(Pre return null; } + public V1SelectableField buildMatchingSelectableField(Predicate predicate) { + for (V1SelectableFieldBuilder item : selectableFields) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1CustomResourceValidation buildSchema() { + return this.schema != null ? this.schema.build() : null; + } + + public V1SelectableField buildSelectableField(int index) { + return this.selectableFields.get(index).build(); + } + + public List buildSelectableFields() { + return this.selectableFields != null ? build(selectableFields) : null; + } + + public V1CustomResourceSubresources buildSubresources() { + return this.subresources != null ? this.subresources.build() : null; + } + + protected void copyInstance(V1CustomResourceDefinitionVersion instance) { + instance = instance != null ? instance : new V1CustomResourceDefinitionVersion(); + if (instance != null) { + this.withAdditionalPrinterColumns(instance.getAdditionalPrinterColumns()); + this.withDeprecated(instance.getDeprecated()); + 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()); + } + } + + public AdditionalPrinterColumnsNested editAdditionalPrinterColumn(int index) { + if (additionalPrinterColumns.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "additionalPrinterColumns")); + } + return this.setNewAdditionalPrinterColumnLike(index, this.buildAdditionalPrinterColumn(index)); + } + + public AdditionalPrinterColumnsNested editFirstAdditionalPrinterColumn() { + if (additionalPrinterColumns.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "additionalPrinterColumns")); + } + return this.setNewAdditionalPrinterColumnLike(0, this.buildAdditionalPrinterColumn(0)); + } + + public SelectableFieldsNested editFirstSelectableField() { + if (selectableFields.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectableFields")); + } + return this.setNewSelectableFieldLike(0, this.buildSelectableField(0)); + } + + public AdditionalPrinterColumnsNested editLastAdditionalPrinterColumn() { + int index = additionalPrinterColumns.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "additionalPrinterColumns")); + } + return this.setNewAdditionalPrinterColumnLike(index, this.buildAdditionalPrinterColumn(index)); + } + + public SelectableFieldsNested editLastSelectableField() { + int index = selectableFields.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectableFields")); + } + return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); + } + + public AdditionalPrinterColumnsNested editMatchingAdditionalPrinterColumn(Predicate predicate) { + int index = -1; + for (int i = 0;i < additionalPrinterColumns.size();i++) { + if (predicate.test(additionalPrinterColumns.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "additionalPrinterColumns")); + } + return this.setNewAdditionalPrinterColumnLike(index, this.buildAdditionalPrinterColumn(index)); + } + + public SelectableFieldsNested editMatchingSelectableField(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectableFields.size();i++) { + if (predicate.test(selectableFields.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectableFields")); + } + return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); + } + + public SchemaNested editOrNewSchema() { + return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(new V1CustomResourceValidationBuilder().build())); + } + + public SchemaNested editOrNewSchemaLike(V1CustomResourceValidation item) { + return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(item)); + } + + public SubresourcesNested editOrNewSubresources() { + return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(new V1CustomResourceSubresourcesBuilder().build())); + } + + public SubresourcesNested editOrNewSubresourcesLike(V1CustomResourceSubresources item) { + return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(item)); + } + + public SchemaNested editSchema() { + return this.withNewSchemaLike(Optional.ofNullable(this.buildSchema()).orElse(null)); + } + + public SelectableFieldsNested editSelectableField(int index) { + if (selectableFields.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectableFields")); + } + return this.setNewSelectableFieldLike(index, this.buildSelectableField(index)); + } + + public SubresourcesNested editSubresources() { + return this.withNewSubresourcesLike(Optional.ofNullable(this.buildSubresources()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceDefinitionVersionFluent that = (V1CustomResourceDefinitionVersionFluent) o; + if (!(Objects.equals(additionalPrinterColumns, that.additionalPrinterColumns))) { + return false; + } + if (!(Objects.equals(deprecated, that.deprecated))) { + return false; + } + if (!(Objects.equals(deprecationWarning, that.deprecationWarning))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(schema, that.schema))) { + return false; + } + if (!(Objects.equals(selectableFields, that.selectableFields))) { + return false; + } + if (!(Objects.equals(served, that.served))) { + return false; + } + if (!(Objects.equals(storage, that.storage))) { + return false; + } + if (!(Objects.equals(subresources, that.subresources))) { + return false; + } + return true; + } + + public Boolean getDeprecated() { + return this.deprecated; + } + + public String getDeprecationWarning() { + return this.deprecationWarning; + } + + public String getName() { + return this.name; + } + + public Boolean getServed() { + return this.served; + } + + public Boolean getStorage() { + return this.storage; + } + + public boolean hasAdditionalPrinterColumns() { + return this.additionalPrinterColumns != null && !(this.additionalPrinterColumns.isEmpty()); + } + + public boolean hasDeprecated() { + return this.deprecated != null; + } + + public boolean hasDeprecationWarning() { + return this.deprecationWarning != null; + } + public boolean hasMatchingAdditionalPrinterColumn(Predicate predicate) { for (V1CustomResourceColumnDefinitionBuilder item : additionalPrinterColumns) { if (predicate.test(item)) { @@ -131,77 +384,242 @@ public boolean hasMatchingAdditionalPrinterColumn(Predicate additionalPrinterColumns) { - if (this.additionalPrinterColumns != null) { - this._visitables.get("additionalPrinterColumns").clear(); - } - if (additionalPrinterColumns != null) { - this.additionalPrinterColumns = new ArrayList(); - for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { - this.addToAdditionalPrinterColumns(item); + public boolean hasMatchingSelectableField(Predicate predicate) { + for (V1SelectableFieldBuilder item : selectableFields) { + if (predicate.test(item)) { + return true; } - } else { - this.additionalPrinterColumns = null; + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasSchema() { + return this.schema != null; + } + + public boolean hasSelectableFields() { + return this.selectableFields != null && !(this.selectableFields.isEmpty()); + } + + public boolean hasServed() { + return this.served != null; + } + + public boolean hasStorage() { + return this.storage != null; + } + + public boolean hasSubresources() { + return this.subresources != null; + } + + public int hashCode() { + return Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, selectableFields, served, storage, subresources); + } + + public A removeAllFromAdditionalPrinterColumns(Collection items) { + if (this.additionalPrinterColumns == null) { + return (A) this; + } + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").remove(builder); + this.additionalPrinterColumns.remove(builder); } return (A) this; } - public A withAdditionalPrinterColumns(io.kubernetes.client.openapi.models.V1CustomResourceColumnDefinition... additionalPrinterColumns) { - if (this.additionalPrinterColumns != null) { - this.additionalPrinterColumns.clear(); - _visitables.remove("additionalPrinterColumns"); + public A removeAllFromSelectableFields(Collection items) { + if (this.selectableFields == null) { + return (A) this; } - if (additionalPrinterColumns != null) { - for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { - this.addToAdditionalPrinterColumns(item); - } + for (V1SelectableField item : items) { + V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); + _visitables.get("selectableFields").remove(builder); + this.selectableFields.remove(builder); } return (A) this; } - public boolean hasAdditionalPrinterColumns() { - return this.additionalPrinterColumns != null && !this.additionalPrinterColumns.isEmpty(); + public A removeFromAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items) { + if (this.additionalPrinterColumns == null) { + return (A) this; + } + for (V1CustomResourceColumnDefinition item : items) { + V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); + _visitables.get("additionalPrinterColumns").remove(builder); + this.additionalPrinterColumns.remove(builder); + } + return (A) this; } - public AdditionalPrinterColumnsNested addNewAdditionalPrinterColumn() { - return new AdditionalPrinterColumnsNested(-1, null); + public A removeFromSelectableFields(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 AdditionalPrinterColumnsNested addNewAdditionalPrinterColumnLike(V1CustomResourceColumnDefinition item) { - return new AdditionalPrinterColumnsNested(-1, item); + public A removeMatchingFromAdditionalPrinterColumns(Predicate predicate) { + if (additionalPrinterColumns == null) { + return (A) this; + } + Iterator each = additionalPrinterColumns.iterator(); + List visitables = _visitables.get("additionalPrinterColumns"); + while (each.hasNext()) { + V1CustomResourceColumnDefinitionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromSelectableFields(Predicate predicate) { + if (selectableFields == null) { + return (A) this; + } + Iterator each = selectableFields.iterator(); + 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 AdditionalPrinterColumnsNested setNewAdditionalPrinterColumnLike(int index,V1CustomResourceColumnDefinition item) { return new AdditionalPrinterColumnsNested(index, item); } - public AdditionalPrinterColumnsNested editAdditionalPrinterColumn(int index) { - if (additionalPrinterColumns.size() <= index) throw new RuntimeException("Can't edit additionalPrinterColumns. Index exceeds size."); - return setNewAdditionalPrinterColumnLike(index, buildAdditionalPrinterColumn(index)); + public SelectableFieldsNested setNewSelectableFieldLike(int index,V1SelectableField item) { + return new SelectableFieldsNested(index, item); } - public AdditionalPrinterColumnsNested editFirstAdditionalPrinterColumn() { - if (additionalPrinterColumns.size() == 0) throw new RuntimeException("Can't edit first additionalPrinterColumns. The list is empty."); - return setNewAdditionalPrinterColumnLike(0, buildAdditionalPrinterColumn(0)); + 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").add(builder); + additionalPrinterColumns.set(index, builder); + } + return (A) this; } - public AdditionalPrinterColumnsNested editLastAdditionalPrinterColumn() { - int index = additionalPrinterColumns.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last additionalPrinterColumns. The list is empty."); - return setNewAdditionalPrinterColumnLike(index, buildAdditionalPrinterColumn(index)); + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(additionalPrinterColumns == null) && !(additionalPrinterColumns.isEmpty())) { + sb.append("additionalPrinterColumns:"); + sb.append(additionalPrinterColumns); + sb.append(","); + } + if (!(deprecated == null)) { + sb.append("deprecated:"); + sb.append(deprecated); + sb.append(","); + } + if (!(deprecationWarning == null)) { + sb.append("deprecationWarning:"); + sb.append(deprecationWarning); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(schema == null)) { + sb.append("schema:"); + sb.append(schema); + sb.append(","); + } + if (!(selectableFields == null) && !(selectableFields.isEmpty())) { + sb.append("selectableFields:"); + sb.append(selectableFields); + sb.append(","); + } + if (!(served == null)) { + sb.append("served:"); + sb.append(served); + sb.append(","); + } + if (!(storage == null)) { + sb.append("storage:"); + sb.append(storage); + sb.append(","); + } + if (!(subresources == null)) { + sb.append("subresources:"); + sb.append(subresources); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdditionalPrinterColumns(List additionalPrinterColumns) { + if (this.additionalPrinterColumns != null) { + this._visitables.get("additionalPrinterColumns").clear(); + } + if (additionalPrinterColumns != null) { + this.additionalPrinterColumns = new ArrayList(); + for (V1CustomResourceColumnDefinition item : additionalPrinterColumns) { + this.addToAdditionalPrinterColumns(item); + } + } else { + this.additionalPrinterColumns = null; + } + return (A) this; } - public AdditionalPrinterColumnsNested editMatchingAdditionalPrinterColumn(Predicate predicate) { - int index = -1; - for (int i=0;i withNewSchema() { + return new SchemaNested(null); } - public A withName(String name) { - this.name = name; - return (A) this; + public SchemaNested withNewSchemaLike(V1CustomResourceValidation item) { + return new SchemaNested(item); } - public boolean hasName() { - return this.name != null; + public SubresourcesNested withNewSubresources() { + return new SubresourcesNested(null); } - public V1CustomResourceValidation buildSchema() { - return this.schema != null ? this.schema.build() : null; + public SubresourcesNested withNewSubresourcesLike(V1CustomResourceSubresources item) { + return new SubresourcesNested(item); } public A withSchema(V1CustomResourceValidation schema) { @@ -255,112 +665,6 @@ public A withSchema(V1CustomResourceValidation schema) { return (A) this; } - public boolean hasSchema() { - return this.schema != null; - } - - public SchemaNested withNewSchema() { - return new SchemaNested(null); - } - - public SchemaNested withNewSchemaLike(V1CustomResourceValidation item) { - return new SchemaNested(item); - } - - public SchemaNested editSchema() { - return withNewSchemaLike(java.util.Optional.ofNullable(buildSchema()).orElse(null)); - } - - public SchemaNested editOrNewSchema() { - return withNewSchemaLike(java.util.Optional.ofNullable(buildSchema()).orElse(new V1CustomResourceValidationBuilder().build())); - } - - 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(index, 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").set(index, 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(); @@ -376,7 +680,7 @@ public A withSelectableFields(List selectableFields) { return (A) this; } - public A withSelectableFields(io.kubernetes.client.openapi.models.V1SelectableField... selectableFields) { + public A withSelectableFields(V1SelectableField... selectableFields) { if (this.selectableFields != null) { this.selectableFields.clear(); _visitables.remove("selectableFields"); @@ -389,49 +693,8 @@ public A withSelectableFields(io.kubernetes.client.openapi.models.V1SelectableFi 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 V1CustomResourceColumnDefinitionFluent> implements Nested{ - public boolean hasSubresources() { - return this.subresources != null; - } - - public SubresourcesNested withNewSubresources() { - return new SubresourcesNested(null); - } - - public SubresourcesNested withNewSubresourcesLike(V1CustomResourceSubresources item) { - return new SubresourcesNested(item); - } - - public SubresourcesNested editSubresources() { - return withNewSubresourcesLike(java.util.Optional.ofNullable(buildSubresources()).orElse(null)); - } - - public SubresourcesNested editOrNewSubresources() { - return withNewSubresourcesLike(java.util.Optional.ofNullable(buildSubresources()).orElse(new V1CustomResourceSubresourcesBuilder().build())); - } - - public SubresourcesNested editOrNewSubresourcesLike(V1CustomResourceSubresources item) { - return withNewSubresourcesLike(java.util.Optional.ofNullable(buildSubresources()).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; - V1CustomResourceDefinitionVersionFluent that = (V1CustomResourceDefinitionVersionFluent) o; - if (!java.util.Objects.equals(additionalPrinterColumns, that.additionalPrinterColumns)) return false; - if (!java.util.Objects.equals(deprecated, that.deprecated)) return false; - if (!java.util.Objects.equals(deprecationWarning, that.deprecationWarning)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(schema, that.schema)) return false; - if (!java.util.Objects.equals(selectableFields, that.selectableFields)) return false; - if (!java.util.Objects.equals(served, that.served)) return false; - if (!java.util.Objects.equals(storage, that.storage)) return false; - if (!java.util.Objects.equals(subresources, that.subresources)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(additionalPrinterColumns, deprecated, deprecationWarning, name, schema, selectableFields, served, storage, subresources, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (additionalPrinterColumns != null && !additionalPrinterColumns.isEmpty()) { sb.append("additionalPrinterColumns:"); sb.append(additionalPrinterColumns + ","); } - if (deprecated != null) { sb.append("deprecated:"); sb.append(deprecated + ","); } - if (deprecationWarning != null) { sb.append("deprecationWarning:"); sb.append(deprecationWarning + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (schema != null) { sb.append("schema:"); sb.append(schema + ","); } - if (selectableFields != null && !selectableFields.isEmpty()) { sb.append("selectableFields:"); sb.append(selectableFields + ","); } - if (served != null) { sb.append("served:"); sb.append(served + ","); } - if (storage != null) { sb.append("storage:"); sb.append(storage + ","); } - if (subresources != null) { sb.append("subresources:"); sb.append(subresources); } - sb.append("}"); - return sb.toString(); - } - - public A withDeprecated() { - return withDeprecated(true); - } - - public A withServed() { - return withServed(true); - } + V1CustomResourceColumnDefinitionBuilder builder; + int index; - public A withStorage() { - return withStorage(true); - } - public class AdditionalPrinterColumnsNested extends V1CustomResourceColumnDefinitionFluent> implements Nested{ AdditionalPrinterColumnsNested(int index,V1CustomResourceColumnDefinition item) { this.index = index; this.builder = new V1CustomResourceColumnDefinitionBuilder(this, item); } - V1CustomResourceColumnDefinitionBuilder builder; - int index; - + public N and() { - return (N) V1CustomResourceDefinitionVersionFluent.this.setToAdditionalPrinterColumns(index,builder.build()); + return (N) V1CustomResourceDefinitionVersionFluent.this.setToAdditionalPrinterColumns(index, builder.build()); } public N endAdditionalPrinterColumn() { return and(); } - } public class SchemaNested extends V1CustomResourceValidationFluent> implements Nested{ + + V1CustomResourceValidationBuilder builder; + SchemaNested(V1CustomResourceValidation item) { this.builder = new V1CustomResourceValidationBuilder(this, item); } - V1CustomResourceValidationBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionVersionFluent.this.withSchema(builder.build()); } @@ -576,32 +757,34 @@ public N endSchema() { return and(); } - } public class SelectableFieldsNested extends V1SelectableFieldFluent> implements Nested{ + + V1SelectableFieldBuilder builder; + int index; + 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()); + return (N) V1CustomResourceDefinitionVersionFluent.this.setToSelectableFields(index, builder.build()); } public N endSelectableField() { return and(); } - } public class SubresourcesNested extends V1CustomResourceSubresourcesFluent> implements Nested{ + + V1CustomResourceSubresourcesBuilder builder; + SubresourcesNested(V1CustomResourceSubresources item) { this.builder = new V1CustomResourceSubresourcesBuilder(this, item); } - V1CustomResourceSubresourcesBuilder builder; - + public N and() { return (N) V1CustomResourceDefinitionVersionFluent.this.withSubresources(builder.build()); } @@ -610,7 +793,5 @@ public N endSubresources() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java index aa1b45e967..b521d2bd7f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceSubresourceScaleBuilder extends V1CustomResourceSubresourceScaleFluent implements VisitableBuilder{ + + V1CustomResourceSubresourceScaleFluent fluent; + public V1CustomResourceSubresourceScaleBuilder() { this(new V1CustomResourceSubresourceScale()); } @@ -10,17 +14,16 @@ public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleF this(fluent, new V1CustomResourceSubresourceScale()); } - public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleFluent fluent,V1CustomResourceSubresourceScale instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScale instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceSubresourceScaleFluent fluent; + public V1CustomResourceSubresourceScaleBuilder(V1CustomResourceSubresourceScaleFluent fluent,V1CustomResourceSubresourceScale instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceSubresourceScale build() { V1CustomResourceSubresourceScale buildable = new V1CustomResourceSubresourceScale(); buildable.setLabelSelectorPath(fluent.getLabelSelectorPath()); @@ -29,5 +32,4 @@ public V1CustomResourceSubresourceScale build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java index e1c1e459d4..c39848eabe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java @@ -1,97 +1,123 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceSubresourceScaleFluent> extends BaseFluent{ +public class V1CustomResourceSubresourceScaleFluent> extends BaseFluent{ + + private String labelSelectorPath; + private String specReplicasPath; + private String statusReplicasPath; + public V1CustomResourceSubresourceScaleFluent() { } public V1CustomResourceSubresourceScaleFluent(V1CustomResourceSubresourceScale instance) { this.copyInstance(instance); } - private String labelSelectorPath; - private String specReplicasPath; - private String statusReplicasPath; - + protected void copyInstance(V1CustomResourceSubresourceScale instance) { - instance = (instance != null ? instance : new V1CustomResourceSubresourceScale()); + instance = instance != null ? instance : new V1CustomResourceSubresourceScale(); if (instance != null) { - this.withLabelSelectorPath(instance.getLabelSelectorPath()); - this.withSpecReplicasPath(instance.getSpecReplicasPath()); - this.withStatusReplicasPath(instance.getStatusReplicasPath()); - } - } - - public String getLabelSelectorPath() { - return this.labelSelectorPath; + this.withLabelSelectorPath(instance.getLabelSelectorPath()); + this.withSpecReplicasPath(instance.getSpecReplicasPath()); + this.withStatusReplicasPath(instance.getStatusReplicasPath()); + } } - public A withLabelSelectorPath(String labelSelectorPath) { - this.labelSelectorPath = labelSelectorPath; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceSubresourceScaleFluent that = (V1CustomResourceSubresourceScaleFluent) o; + if (!(Objects.equals(labelSelectorPath, that.labelSelectorPath))) { + return false; + } + if (!(Objects.equals(specReplicasPath, that.specReplicasPath))) { + return false; + } + if (!(Objects.equals(statusReplicasPath, that.statusReplicasPath))) { + return false; + } + return true; } - public boolean hasLabelSelectorPath() { - return this.labelSelectorPath != null; + public String getLabelSelectorPath() { + return this.labelSelectorPath; } public String getSpecReplicasPath() { return this.specReplicasPath; } - public A withSpecReplicasPath(String specReplicasPath) { - this.specReplicasPath = specReplicasPath; - return (A) this; - } - - public boolean hasSpecReplicasPath() { - return this.specReplicasPath != null; - } - public String getStatusReplicasPath() { return this.statusReplicasPath; } - public A withStatusReplicasPath(String statusReplicasPath) { - this.statusReplicasPath = statusReplicasPath; - return (A) this; + public boolean hasLabelSelectorPath() { + return this.labelSelectorPath != null; } - public boolean hasStatusReplicasPath() { - return this.statusReplicasPath != null; + public boolean hasSpecReplicasPath() { + return this.specReplicasPath != 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; - V1CustomResourceSubresourceScaleFluent that = (V1CustomResourceSubresourceScaleFluent) o; - if (!java.util.Objects.equals(labelSelectorPath, that.labelSelectorPath)) return false; - if (!java.util.Objects.equals(specReplicasPath, that.specReplicasPath)) return false; - if (!java.util.Objects.equals(statusReplicasPath, that.statusReplicasPath)) return false; - return true; + public boolean hasStatusReplicasPath() { + return this.statusReplicasPath != null; } public int hashCode() { - return java.util.Objects.hash(labelSelectorPath, specReplicasPath, statusReplicasPath, super.hashCode()); + return Objects.hash(labelSelectorPath, specReplicasPath, statusReplicasPath); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (labelSelectorPath != null) { sb.append("labelSelectorPath:"); sb.append(labelSelectorPath + ","); } - if (specReplicasPath != null) { sb.append("specReplicasPath:"); sb.append(specReplicasPath + ","); } - if (statusReplicasPath != null) { sb.append("statusReplicasPath:"); sb.append(statusReplicasPath); } + if (!(labelSelectorPath == null)) { + sb.append("labelSelectorPath:"); + sb.append(labelSelectorPath); + sb.append(","); + } + if (!(specReplicasPath == null)) { + sb.append("specReplicasPath:"); + sb.append(specReplicasPath); + sb.append(","); + } + if (!(statusReplicasPath == null)) { + sb.append("statusReplicasPath:"); + sb.append(statusReplicasPath); + } sb.append("}"); return sb.toString(); } - + public A withLabelSelectorPath(String labelSelectorPath) { + this.labelSelectorPath = labelSelectorPath; + return (A) this; + } + + public A withSpecReplicasPath(String specReplicasPath) { + this.specReplicasPath = specReplicasPath; + return (A) this; + } + + public A withStatusReplicasPath(String statusReplicasPath) { + this.statusReplicasPath = statusReplicasPath; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java index 76fb28a11b..019e6cd75c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceSubresourcesBuilder extends V1CustomResourceSubresourcesFluent implements VisitableBuilder{ + + V1CustomResourceSubresourcesFluent fluent; + public V1CustomResourceSubresourcesBuilder() { this(new V1CustomResourceSubresources()); } @@ -10,17 +14,16 @@ public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent this(fluent, new V1CustomResourceSubresources()); } - public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent fluent,V1CustomResourceSubresources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresources instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceSubresourcesFluent fluent; + public V1CustomResourceSubresourcesBuilder(V1CustomResourceSubresourcesFluent fluent,V1CustomResourceSubresources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceSubresources build() { V1CustomResourceSubresources buildable = new V1CustomResourceSubresources(); buildable.setScale(fluent.buildScale()); @@ -28,5 +31,4 @@ public V1CustomResourceSubresources build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java index d290d2d084..8ac9ecbd5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceSubresourcesFluent> extends BaseFluent{ +public class V1CustomResourceSubresourcesFluent> extends BaseFluent{ + + private V1CustomResourceSubresourceScaleBuilder scale; + private Object status; + public V1CustomResourceSubresourcesFluent() { } public V1CustomResourceSubresourcesFluent(V1CustomResourceSubresources instance) { this.copyInstance(instance); } - private V1CustomResourceSubresourceScaleBuilder scale; - private Object status; - - protected void copyInstance(V1CustomResourceSubresources instance) { - instance = (instance != null ? instance : new V1CustomResourceSubresources()); - if (instance != null) { - this.withScale(instance.getScale()); - this.withStatus(instance.getStatus()); - } - } - + public V1CustomResourceSubresourceScale buildScale() { return this.scale != null ? this.scale.build() : null; } - public A withScale(V1CustomResourceSubresourceScale scale) { - this._visitables.remove("scale"); - if (scale != null) { - this.scale = new V1CustomResourceSubresourceScaleBuilder(scale); - this._visitables.get("scale").add(this.scale); - } else { - this.scale = null; - this._visitables.get("scale").remove(this.scale); + protected void copyInstance(V1CustomResourceSubresources instance) { + instance = instance != null ? instance : new V1CustomResourceSubresources(); + if (instance != null) { + this.withScale(instance.getScale()); + this.withStatus(instance.getStatus()); } - return (A) this; - } - - public boolean hasScale() { - return this.scale != null; } - public ScaleNested withNewScale() { - return new ScaleNested(null); + public ScaleNested editOrNewScale() { + return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(new V1CustomResourceSubresourceScaleBuilder().build())); } - public ScaleNested withNewScaleLike(V1CustomResourceSubresourceScale item) { - return new ScaleNested(item); + public ScaleNested editOrNewScaleLike(V1CustomResourceSubresourceScale item) { + return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(item)); } public ScaleNested editScale() { - return withNewScaleLike(java.util.Optional.ofNullable(buildScale()).orElse(null)); + return this.withNewScaleLike(Optional.ofNullable(this.buildScale()).orElse(null)); } - public ScaleNested editOrNewScale() { - return withNewScaleLike(java.util.Optional.ofNullable(buildScale()).orElse(new V1CustomResourceSubresourceScaleBuilder().build())); - } - - public ScaleNested editOrNewScaleLike(V1CustomResourceSubresourceScale item) { - return withNewScaleLike(java.util.Optional.ofNullable(buildScale()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1CustomResourceSubresourcesFluent that = (V1CustomResourceSubresourcesFluent) o; + if (!(Objects.equals(scale, that.scale))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; } public Object getStatus() { return this.status; } - public A withStatus(Object status) { - this.status = status; - return (A) this; + public boolean hasScale() { + return this.scale != null; } public boolean hasStatus() { return this.status != 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; - V1CustomResourceSubresourcesFluent that = (V1CustomResourceSubresourcesFluent) o; - if (!java.util.Objects.equals(scale, that.scale)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(scale, status, super.hashCode()); + return Objects.hash(scale, status); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (scale != null) { sb.append("scale:"); sb.append(scale + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } + if (!(scale == null)) { + sb.append("scale:"); + sb.append(scale); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } sb.append("}"); return sb.toString(); } + + public ScaleNested withNewScale() { + return new ScaleNested(null); + } + + public ScaleNested withNewScaleLike(V1CustomResourceSubresourceScale item) { + return new ScaleNested(item); + } + + public A withScale(V1CustomResourceSubresourceScale scale) { + this._visitables.remove("scale"); + if (scale != null) { + this.scale = new V1CustomResourceSubresourceScaleBuilder(scale); + this._visitables.get("scale").add(this.scale); + } else { + this.scale = null; + this._visitables.get("scale").remove(this.scale); + } + return (A) this; + } + + public A withStatus(Object status) { + this.status = status; + return (A) this; + } public class ScaleNested extends V1CustomResourceSubresourceScaleFluent> implements Nested{ + + V1CustomResourceSubresourceScaleBuilder builder; + ScaleNested(V1CustomResourceSubresourceScale item) { this.builder = new V1CustomResourceSubresourceScaleBuilder(this, item); } - V1CustomResourceSubresourceScaleBuilder builder; - + public N and() { return (N) V1CustomResourceSubresourcesFluent.this.withScale(builder.build()); } @@ -117,7 +141,5 @@ public N endScale() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java index bb3bfd17ba..7f2275395e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1CustomResourceValidationBuilder extends V1CustomResourceValidationFluent implements VisitableBuilder{ + + V1CustomResourceValidationFluent fluent; + public V1CustomResourceValidationBuilder() { this(new V1CustomResourceValidation()); } @@ -10,22 +14,20 @@ public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent flu this(fluent, new V1CustomResourceValidation()); } - public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent fluent,V1CustomResourceValidation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1CustomResourceValidationBuilder(V1CustomResourceValidation instance) { this.fluent = this; this.copyInstance(instance); } - V1CustomResourceValidationFluent fluent; + public V1CustomResourceValidationBuilder(V1CustomResourceValidationFluent fluent,V1CustomResourceValidation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1CustomResourceValidation build() { V1CustomResourceValidation buildable = new V1CustomResourceValidation(); buildable.setOpenAPIV3Schema(fluent.buildOpenAPIV3Schema()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java index e2309e886f..7e23a22265 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java @@ -1,97 +1,115 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1CustomResourceValidationFluent> extends BaseFluent{ +public class V1CustomResourceValidationFluent> extends BaseFluent{ + + private V1JSONSchemaPropsBuilder openAPIV3Schema; + public V1CustomResourceValidationFluent() { } public V1CustomResourceValidationFluent(V1CustomResourceValidation instance) { this.copyInstance(instance); } - private V1JSONSchemaPropsBuilder openAPIV3Schema; - - protected void copyInstance(V1CustomResourceValidation instance) { - instance = (instance != null ? instance : new V1CustomResourceValidation()); - if (instance != null) { - this.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); - } - } - + public V1JSONSchemaProps buildOpenAPIV3Schema() { return this.openAPIV3Schema != null ? this.openAPIV3Schema.build() : null; } - public A withOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { - this._visitables.remove("openAPIV3Schema"); - if (openAPIV3Schema != null) { - this.openAPIV3Schema = new V1JSONSchemaPropsBuilder(openAPIV3Schema); - this._visitables.get("openAPIV3Schema").add(this.openAPIV3Schema); - } else { - this.openAPIV3Schema = null; - this._visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); + protected void copyInstance(V1CustomResourceValidation instance) { + instance = instance != null ? instance : new V1CustomResourceValidation(); + if (instance != null) { + this.withOpenAPIV3Schema(instance.getOpenAPIV3Schema()); } - return (A) this; - } - - public boolean hasOpenAPIV3Schema() { - return this.openAPIV3Schema != null; - } - - public OpenAPIV3SchemaNested withNewOpenAPIV3Schema() { - return new OpenAPIV3SchemaNested(null); - } - - public OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike(V1JSONSchemaProps item) { - return new OpenAPIV3SchemaNested(item); } public OpenAPIV3SchemaNested editOpenAPIV3Schema() { - return withNewOpenAPIV3SchemaLike(java.util.Optional.ofNullable(buildOpenAPIV3Schema()).orElse(null)); + return this.withNewOpenAPIV3SchemaLike(Optional.ofNullable(this.buildOpenAPIV3Schema()).orElse(null)); } public OpenAPIV3SchemaNested editOrNewOpenAPIV3Schema() { - return withNewOpenAPIV3SchemaLike(java.util.Optional.ofNullable(buildOpenAPIV3Schema()).orElse(new V1JSONSchemaPropsBuilder().build())); + return this.withNewOpenAPIV3SchemaLike(Optional.ofNullable(this.buildOpenAPIV3Schema()).orElse(new V1JSONSchemaPropsBuilder().build())); } public OpenAPIV3SchemaNested editOrNewOpenAPIV3SchemaLike(V1JSONSchemaProps item) { - return withNewOpenAPIV3SchemaLike(java.util.Optional.ofNullable(buildOpenAPIV3Schema()).orElse(item)); + return this.withNewOpenAPIV3SchemaLike(Optional.ofNullable(this.buildOpenAPIV3Schema()).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; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1CustomResourceValidationFluent that = (V1CustomResourceValidationFluent) o; - if (!java.util.Objects.equals(openAPIV3Schema, that.openAPIV3Schema)) return false; + if (!(Objects.equals(openAPIV3Schema, that.openAPIV3Schema))) { + return false; + } return true; } + public boolean hasOpenAPIV3Schema() { + return this.openAPIV3Schema != null; + } + public int hashCode() { - return java.util.Objects.hash(openAPIV3Schema, super.hashCode()); + return Objects.hash(openAPIV3Schema); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (openAPIV3Schema != null) { sb.append("openAPIV3Schema:"); sb.append(openAPIV3Schema); } + if (!(openAPIV3Schema == null)) { + sb.append("openAPIV3Schema:"); + sb.append(openAPIV3Schema); + } sb.append("}"); return sb.toString(); } + + public OpenAPIV3SchemaNested withNewOpenAPIV3Schema() { + return new OpenAPIV3SchemaNested(null); + } + + public OpenAPIV3SchemaNested withNewOpenAPIV3SchemaLike(V1JSONSchemaProps item) { + return new OpenAPIV3SchemaNested(item); + } + + public A withOpenAPIV3Schema(V1JSONSchemaProps openAPIV3Schema) { + this._visitables.remove("openAPIV3Schema"); + if (openAPIV3Schema != null) { + this.openAPIV3Schema = new V1JSONSchemaPropsBuilder(openAPIV3Schema); + this._visitables.get("openAPIV3Schema").add(this.openAPIV3Schema); + } else { + this.openAPIV3Schema = null; + this._visitables.get("openAPIV3Schema").remove(this.openAPIV3Schema); + } + return (A) this; + } public class OpenAPIV3SchemaNested extends V1JSONSchemaPropsFluent> implements Nested{ + + V1JSONSchemaPropsBuilder builder; + OpenAPIV3SchemaNested(V1JSONSchemaProps item) { this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - + public N and() { return (N) V1CustomResourceValidationFluent.this.withOpenAPIV3Schema(builder.build()); } @@ -100,7 +118,5 @@ public N endOpenAPIV3Schema() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java index 89dd9e89cd..86816175d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonEndpointBuilder extends V1DaemonEndpointFluent implements VisitableBuilder{ + + V1DaemonEndpointFluent fluent; + public V1DaemonEndpointBuilder() { this(new V1DaemonEndpoint()); } @@ -10,22 +14,20 @@ public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent) { this(fluent, new V1DaemonEndpoint()); } - public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent,V1DaemonEndpoint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonEndpointBuilder(V1DaemonEndpoint instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonEndpointFluent fluent; + public V1DaemonEndpointBuilder(V1DaemonEndpointFluent fluent,V1DaemonEndpoint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonEndpoint build() { V1DaemonEndpoint buildable = new V1DaemonEndpoint(); buildable.setPort(fluent.getPort()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java index fb492cee62..d3ee2ba289 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java @@ -1,64 +1,78 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonEndpointFluent> extends BaseFluent{ +public class V1DaemonEndpointFluent> extends BaseFluent{ + + private Integer port; + public V1DaemonEndpointFluent() { } public V1DaemonEndpointFluent(V1DaemonEndpoint instance) { this.copyInstance(instance); } - private Integer port; - + protected void copyInstance(V1DaemonEndpoint instance) { - instance = (instance != null ? instance : new V1DaemonEndpoint()); + instance = instance != null ? instance : new V1DaemonEndpoint(); if (instance != null) { - this.withPort(instance.getPort()); - } + this.withPort(instance.getPort()); + } } - public Integer getPort() { - return this.port; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DaemonEndpointFluent that = (V1DaemonEndpointFluent) o; + if (!(Objects.equals(port, that.port))) { + return false; + } + return true; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + public Integer getPort() { + return this.port; } public boolean hasPort() { return this.port != 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; - V1DaemonEndpointFluent that = (V1DaemonEndpointFluent) o; - if (!java.util.Objects.equals(port, that.port)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(port, super.hashCode()); + return Objects.hash(port); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } - + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java index 7270afce11..e93e57150d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetBuilder extends V1DaemonSetFluent implements VisitableBuilder{ + + V1DaemonSetFluent fluent; + public V1DaemonSetBuilder() { this(new V1DaemonSet()); } @@ -10,17 +14,16 @@ public V1DaemonSetBuilder(V1DaemonSetFluent fluent) { this(fluent, new V1DaemonSet()); } - public V1DaemonSetBuilder(V1DaemonSetFluent fluent,V1DaemonSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetBuilder(V1DaemonSet instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetFluent fluent; + public V1DaemonSetBuilder(V1DaemonSetFluent fluent,V1DaemonSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSet build() { V1DaemonSet buildable = new V1DaemonSet(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1DaemonSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java index b50e3a9b3e..de4dc384e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetConditionBuilder extends V1DaemonSetConditionFluent implements VisitableBuilder{ + + V1DaemonSetConditionFluent fluent; + public V1DaemonSetConditionBuilder() { this(new V1DaemonSetCondition()); } @@ -10,17 +14,16 @@ public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent) { this(fluent, new V1DaemonSetCondition()); } - public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent,V1DaemonSetCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetConditionBuilder(V1DaemonSetCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetConditionFluent fluent; + public V1DaemonSetConditionBuilder(V1DaemonSetConditionFluent fluent,V1DaemonSetCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetCondition build() { V1DaemonSetCondition buildable = new V1DaemonSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -31,5 +34,4 @@ public V1DaemonSetCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java index a2907a72e6..791e7e5d02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java @@ -1,132 +1,170 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetConditionFluent> extends BaseFluent{ - public V1DaemonSetConditionFluent() { - } - - public V1DaemonSetConditionFluent(V1DaemonSetCondition instance) { - this.copyInstance(instance); - } +public class V1DaemonSetConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1DaemonSetConditionFluent() { + } + public V1DaemonSetConditionFluent(V1DaemonSetCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1DaemonSetCondition instance) { - instance = (instance != null ? instance : new V1DaemonSetCondition()); + instance = instance != null ? instance : new V1DaemonSetCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DaemonSetConditionFluent that = (V1DaemonSetConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getStatus() { + return this.status; } - public String getReason() { - return this.reason; + public String getType() { + return this.type; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1DaemonSetConditionFluent that = (V1DaemonSetConditionFluent) 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 A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withStatus(String status) { + this.status = status; + return (A) this; } - 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(); + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java index 3882253525..df6b53ac94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetFluent> extends BaseFluent{ +public class V1DaemonSetFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1DaemonSetSpecBuilder spec; + private V1DaemonSetStatusBuilder status; + public V1DaemonSetFluent() { } public V1DaemonSetFluent(V1DaemonSet instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1DaemonSetSpecBuilder spec; - private V1DaemonSetStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1DaemonSetSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1DaemonSetStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1DaemonSet instance) { - instance = (instance != null ? instance : new V1DaemonSet()); + instance = instance != null ? instance : new V1DaemonSet(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DaemonSetSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1DaemonSetSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1DaemonSetStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1DaemonSetStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DaemonSetFluent that = (V1DaemonSetFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1DaemonSetSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1DaemonSetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1DaemonSetStatus item) { + return new StatusNested(item); } public A withSpec(V1DaemonSetSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1DaemonSetSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1DaemonSetSpec 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 V1DaemonSetSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1DaemonSetSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1DaemonSetStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1DaemonSetStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1DaemonSetStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1DaemonSetStatus 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 V1DaemonSetStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1DaemonSetStatus 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; - V1DaemonSetFluent that = (V1DaemonSetFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1DaemonSetFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1DaemonSetSpecFluent> implements Nested{ + + V1DaemonSetSpecBuilder builder; + SpecNested(V1DaemonSetSpec item) { this.builder = new V1DaemonSetSpecBuilder(this, item); } - V1DaemonSetSpecBuilder builder; - + public N and() { return (N) V1DaemonSetFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1DaemonSetStatusFluent> implements Nested{ + + V1DaemonSetStatusBuilder builder; + StatusNested(V1DaemonSetStatus item) { this.builder = new V1DaemonSetStatusBuilder(this, item); } - V1DaemonSetStatusBuilder builder; - + public N and() { return (N) V1DaemonSetFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java index 4d5a3c190d..10a72258e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetListBuilder extends V1DaemonSetListFluent implements VisitableBuilder{ + + V1DaemonSetListFluent fluent; + public V1DaemonSetListBuilder() { this(new V1DaemonSetList()); } @@ -10,17 +14,16 @@ public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent) { this(fluent, new V1DaemonSetList()); } - public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent,V1DaemonSetList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetListBuilder(V1DaemonSetList instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetListFluent fluent; + public V1DaemonSetListBuilder(V1DaemonSetListFluent fluent,V1DaemonSetList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetList build() { V1DaemonSetList buildable = new V1DaemonSetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1DaemonSetList build() { return buildable; } - } \ No newline at end of file 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..3d71a306dc 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetListFluent> extends BaseFluent{ +public class V1DaemonSetListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1DaemonSetListFluent() { } public V1DaemonSetListFluent(V1DaemonSetList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1DaemonSetList instance) { - instance = (instance != null ? instance : new V1DaemonSetList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1DaemonSet item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1DaemonSet... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1DaemonSet item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1DaemonSet buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1DaemonSet buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { - if (this.items == null) return (A)this; - for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1DaemonSet buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1DaemonSet item : items) {V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1DaemonSet buildMatchingItem(Predicate predicate) { + for (V1DaemonSetBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1DaemonSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1DaemonSetList instance) { + instance = instance != null ? instance : new V1DaemonSetList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1DaemonSet buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1DaemonSet buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1DaemonSet buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DaemonSetListFluent that = (V1DaemonSetListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1DaemonSet buildMatchingItem(Predicate predicate) { - for (V1DaemonSetBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1DaemonSet... items) { + if (this.items == null) { + return (A) this; + } + for (V1DaemonSet item : items) { + V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DaemonSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1DaemonSet item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { + public A withItems(V1DaemonSet... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1DaemonSet... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1DaemonSet item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1DaemonSet 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1DaemonSetFluent> implements Nested{ - 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; - V1DaemonSetListFluent that = (V1DaemonSetListFluent) 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()); - } + V1DaemonSetBuilder builder; + int index; - 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 V1DaemonSetFluent> implements Nested{ ItemsNested(int index,V1DaemonSet item) { this.index = index; this.builder = new V1DaemonSetBuilder(this, item); } - V1DaemonSetBuilder builder; - int index; - + public N and() { - return (N) V1DaemonSetListFluent.this.setToItems(index,builder.build()); + return (N) V1DaemonSetListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1DaemonSetListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java index 8520507a12..a7de42c4c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetSpecBuilder extends V1DaemonSetSpecFluent implements VisitableBuilder{ + + V1DaemonSetSpecFluent fluent; + public V1DaemonSetSpecBuilder() { this(new V1DaemonSetSpec()); } @@ -10,17 +14,16 @@ public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent) { this(fluent, new V1DaemonSetSpec()); } - public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent,V1DaemonSetSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetSpecBuilder(V1DaemonSetSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetSpecFluent fluent; + public V1DaemonSetSpecBuilder(V1DaemonSetSpecFluent fluent,V1DaemonSetSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetSpec build() { V1DaemonSetSpec buildable = new V1DaemonSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -31,5 +34,4 @@ public V1DaemonSetSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java index decce19786..47097c1bd5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java @@ -1,164 +1,204 @@ 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.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetSpecFluent> extends BaseFluent{ +public class V1DaemonSetSpecFluent> extends BaseFluent{ + + private Integer minReadySeconds; + private Integer revisionHistoryLimit; + private V1LabelSelectorBuilder selector; + private V1PodTemplateSpecBuilder template; + private V1DaemonSetUpdateStrategyBuilder updateStrategy; + public V1DaemonSetSpecFluent() { } public V1DaemonSetSpecFluent(V1DaemonSetSpec instance) { this.copyInstance(instance); } - private Integer minReadySeconds; - private Integer revisionHistoryLimit; - private V1LabelSelectorBuilder selector; - private V1PodTemplateSpecBuilder template; - private V1DaemonSetUpdateStrategyBuilder updateStrategy; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } - protected void copyInstance(V1DaemonSetSpec instance) { - instance = (instance != null ? instance : new V1DaemonSetSpec()); - if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); - this.withSelector(instance.getSelector()); - this.withTemplate(instance.getTemplate()); - this.withUpdateStrategy(instance.getUpdateStrategy()); - } + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; } - public Integer getMinReadySeconds() { - return this.minReadySeconds; + public V1DaemonSetUpdateStrategy buildUpdateStrategy() { + return this.updateStrategy != null ? this.updateStrategy.build() : null; } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; + protected void copyInstance(V1DaemonSetSpec instance) { + instance = instance != null ? instance : new V1DaemonSetSpec(); + if (instance != null) { + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); + this.withSelector(instance.getSelector()); + this.withTemplate(instance.getTemplate()); + this.withUpdateStrategy(instance.getUpdateStrategy()); + } } - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public Integer getRevisionHistoryLimit() { - return this.revisionHistoryLimit; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { - this.revisionHistoryLimit = revisionHistoryLimit; - return (A) this; + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } - public boolean hasRevisionHistoryLimit() { - return this.revisionHistoryLimit != null; + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public UpdateStrategyNested editOrNewUpdateStrategy() { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(new V1DaemonSetUpdateStrategyBuilder().build())); } - 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 UpdateStrategyNested editOrNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(item)); } - public boolean hasSelector() { - return this.selector != null; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public SelectorNested withNewSelector() { - return new SelectorNested(null); + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + public UpdateStrategyNested editUpdateStrategy() { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(null)); } - public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DaemonSetSpecFluent that = (V1DaemonSetSpecFluent) o; + if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { + return false; + } + if (!(Objects.equals(revisionHistoryLimit, that.revisionHistoryLimit))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + if (!(Objects.equals(updateStrategy, that.updateStrategy))) { + return false; + } + return true; } - public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + public Integer getMinReadySeconds() { + return this.minReadySeconds; } - public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + public Integer getRevisionHistoryLimit() { + return this.revisionHistoryLimit; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; } - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); - } - return (A) this; + public boolean hasRevisionHistoryLimit() { + return this.revisionHistoryLimit != null; + } + + public boolean hasSelector() { + return this.selector != null; } public boolean hasTemplate() { return this.template != null; } - public TemplateNested withNewTemplate() { - return new TemplateNested(null); + public boolean hasUpdateStrategy() { + return this.updateStrategy != null; } - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); + public int hashCode() { + return Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, updateStrategy); } - public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minReadySeconds == null)) { + sb.append("minReadySeconds:"); + sb.append(minReadySeconds); + sb.append(","); + } + if (!(revisionHistoryLimit == null)) { + sb.append("revisionHistoryLimit:"); + sb.append(revisionHistoryLimit); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + sb.append(","); + } + if (!(updateStrategy == null)) { + sb.append("updateStrategy:"); + sb.append(updateStrategy); + } + sb.append("}"); + return sb.toString(); } - public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; } - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + public SelectorNested withNewSelector() { + return new SelectorNested(null); } - public V1DaemonSetUpdateStrategy buildUpdateStrategy() { - return this.updateStrategy != null ? this.updateStrategy.build() : null; + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); } - public A withUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { - this._visitables.remove("updateStrategy"); - if (updateStrategy != null) { - this.updateStrategy = new V1DaemonSetUpdateStrategyBuilder(updateStrategy); - this._visitables.get("updateStrategy").add(this.updateStrategy); - } else { - this.updateStrategy = null; - this._visitables.get("updateStrategy").remove(this.updateStrategy); - } - return (A) this; + public TemplateNested withNewTemplate() { + return new TemplateNested(null); } - public boolean hasUpdateStrategy() { - return this.updateStrategy != null; + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); } public UpdateStrategyNested withNewUpdateStrategy() { @@ -169,52 +209,54 @@ public UpdateStrategyNested withNewUpdateStrategyLike(V1DaemonSetUpdateStrate return new UpdateStrategyNested(item); } - public UpdateStrategyNested editUpdateStrategy() { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(null)); + public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; + return (A) this; } - public UpdateStrategyNested editOrNewUpdateStrategy() { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(new V1DaemonSetUpdateStrategyBuilder().build())); + 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 UpdateStrategyNested editOrNewUpdateStrategyLike(V1DaemonSetUpdateStrategy item) { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(item)); + public A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1DaemonSetSpecFluent that = (V1DaemonSetSpecFluent) o; - if (!java.util.Objects.equals(minReadySeconds, that.minReadySeconds)) return false; - if (!java.util.Objects.equals(revisionHistoryLimit, that.revisionHistoryLimit)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; - if (!java.util.Objects.equals(updateStrategy, that.updateStrategy)) return false; - return true; + public A withUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { + this._visitables.remove("updateStrategy"); + if (updateStrategy != null) { + this.updateStrategy = new V1DaemonSetUpdateStrategyBuilder(updateStrategy); + this._visitables.get("updateStrategy").add(this.updateStrategy); + } else { + this.updateStrategy = null; + this._visitables.get("updateStrategy").remove(this.updateStrategy); + } + return (A) this; } + public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, updateStrategy, super.hashCode()); - } + V1LabelSelectorBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } - if (revisionHistoryLimit != null) { sb.append("revisionHistoryLimit:"); sb.append(revisionHistoryLimit + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (template != null) { sb.append("template:"); sb.append(template + ","); } - if (updateStrategy != null) { sb.append("updateStrategy:"); sb.append(updateStrategy); } - 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) V1DaemonSetSpecFluent.this.withSelector(builder.build()); } @@ -223,14 +265,15 @@ public N endSelector() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1DaemonSetSpecFluent.this.withTemplate(builder.build()); } @@ -239,14 +282,15 @@ public N endTemplate() { return and(); } - } public class UpdateStrategyNested extends V1DaemonSetUpdateStrategyFluent> implements Nested{ + + V1DaemonSetUpdateStrategyBuilder builder; + UpdateStrategyNested(V1DaemonSetUpdateStrategy item) { this.builder = new V1DaemonSetUpdateStrategyBuilder(this, item); } - V1DaemonSetUpdateStrategyBuilder builder; - + public N and() { return (N) V1DaemonSetSpecFluent.this.withUpdateStrategy(builder.build()); } @@ -255,7 +299,5 @@ public N endUpdateStrategy() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java index 1474f48365..8245af3d7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetStatusBuilder extends V1DaemonSetStatusFluent implements VisitableBuilder{ + + V1DaemonSetStatusFluent fluent; + public V1DaemonSetStatusBuilder() { this(new V1DaemonSetStatus()); } @@ -10,17 +14,16 @@ public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent) { this(fluent, new V1DaemonSetStatus()); } - public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent,V1DaemonSetStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetStatusBuilder(V1DaemonSetStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetStatusFluent fluent; + public V1DaemonSetStatusBuilder(V1DaemonSetStatusFluent fluent,V1DaemonSetStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetStatus build() { V1DaemonSetStatus buildable = new V1DaemonSetStatus(); buildable.setCollisionCount(fluent.getCollisionCount()); @@ -36,5 +39,4 @@ public V1DaemonSetStatus build() { return buildable; } - } \ No newline at end of file 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..2bff459aea 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 @@ -1,30 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetStatusFluent> extends BaseFluent{ - public V1DaemonSetStatusFluent() { - } - - public V1DaemonSetStatusFluent(V1DaemonSetStatus instance) { - this.copyInstance(instance); - } +public class V1DaemonSetStatusFluent> extends BaseFluent{ + private Integer collisionCount; private ArrayList conditions; private Integer currentNumberScheduled; @@ -35,92 +32,69 @@ public V1DaemonSetStatusFluent(V1DaemonSetStatus instance) { private Integer numberUnavailable; private Long observedGeneration; private Integer updatedNumberScheduled; - - protected void copyInstance(V1DaemonSetStatus instance) { - instance = (instance != null ? instance : new V1DaemonSetStatus()); - if (instance != null) { - this.withCollisionCount(instance.getCollisionCount()); - this.withConditions(instance.getConditions()); - this.withCurrentNumberScheduled(instance.getCurrentNumberScheduled()); - this.withDesiredNumberScheduled(instance.getDesiredNumberScheduled()); - this.withNumberAvailable(instance.getNumberAvailable()); - this.withNumberMisscheduled(instance.getNumberMisscheduled()); - this.withNumberReady(instance.getNumberReady()); - this.withNumberUnavailable(instance.getNumberUnavailable()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withUpdatedNumberScheduled(instance.getUpdatedNumberScheduled()); - } + + public V1DaemonSetStatusFluent() { } - public Integer getCollisionCount() { - return this.collisionCount; + public V1DaemonSetStatusFluent(V1DaemonSetStatus instance) { + this.copyInstance(instance); } - - public A withCollisionCount(Integer collisionCount) { - this.collisionCount = collisionCount; + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasCollisionCount() { - return this.collisionCount != null; - } - - 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);} - 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);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public ConditionsNested addNewConditionLike(V1DaemonSetCondition item) { + return new ConditionsNested(-1, item); } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... items) { - if (this.conditions == null) return (A)this; - for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A addToConditions(V1DaemonSetCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1DaemonSetCondition item : items) {V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + 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(builder); + conditions.add(index, 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()) { - V1DaemonSetConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1DaemonSetCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1DaemonSetCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1DaemonSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -138,243 +112,395 @@ public V1DaemonSetCondition buildMatchingCondition(Predicate predicate) { - for (V1DaemonSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1DaemonSetStatus instance) { + instance = instance != null ? instance : new V1DaemonSetStatus(); + if (instance != null) { + this.withCollisionCount(instance.getCollisionCount()); + this.withConditions(instance.getConditions()); + this.withCurrentNumberScheduled(instance.getCurrentNumberScheduled()); + this.withDesiredNumberScheduled(instance.getDesiredNumberScheduled()); + this.withNumberAvailable(instance.getNumberAvailable()); + this.withNumberMisscheduled(instance.getNumberMisscheduled()); + this.withNumberReady(instance.getNumberReady()); + this.withNumberUnavailable(instance.getNumberUnavailable()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withUpdatedNumberScheduled(instance.getUpdatedNumberScheduled()); + } } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1DaemonSetCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(0, this.buildCondition(0)); } - public A withConditions(io.kubernetes.client.openapi.models.V1DaemonSetCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); } - if (conditions != null) { - for (V1DaemonSetCondition item : conditions) { - this.addToConditions(item); + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DaemonSetStatusFluent that = (V1DaemonSetStatusFluent) o; + if (!(Objects.equals(collisionCount, that.collisionCount))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentNumberScheduled, that.currentNumberScheduled))) { + return false; + } + if (!(Objects.equals(desiredNumberScheduled, that.desiredNumberScheduled))) { + return false; + } + if (!(Objects.equals(numberAvailable, that.numberAvailable))) { + return false; + } + if (!(Objects.equals(numberMisscheduled, that.numberMisscheduled))) { + return false; + } + if (!(Objects.equals(numberReady, that.numberReady))) { + return false; + } + if (!(Objects.equals(numberUnavailable, that.numberUnavailable))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(updatedNumberScheduled, that.updatedNumberScheduled))) { + return false; + } + return true; } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public Integer getCollisionCount() { + return this.collisionCount; } - public ConditionsNested addNewConditionLike(V1DaemonSetCondition item) { - return new ConditionsNested(-1, item); + public Integer getCurrentNumberScheduled() { + return this.currentNumberScheduled; } - public ConditionsNested setNewConditionLike(int index,V1DaemonSetCondition item) { - return new ConditionsNested(index, item); + public Integer getDesiredNumberScheduled() { + return this.desiredNumberScheduled; } - 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 Integer getNumberAvailable() { + return this.numberAvailable; } - 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 Integer getNumberMisscheduled() { + return this.numberMisscheduled; } - 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 Integer getNumberReady() { + return this.numberReady; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1DaemonSetConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasNumberAvailable() { return this.numberAvailable != null; } - public Integer getNumberMisscheduled() { - return this.numberMisscheduled; + public boolean hasNumberMisscheduled() { + return this.numberMisscheduled != null; } - public A withNumberMisscheduled(Integer numberMisscheduled) { - this.numberMisscheduled = numberMisscheduled; - return (A) this; + public boolean hasNumberReady() { + return this.numberReady != null; } - public boolean hasNumberMisscheduled() { - return this.numberMisscheduled != null; + public boolean hasNumberUnavailable() { + return this.numberUnavailable != null; } - public Integer getNumberReady() { - return this.numberReady; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public A withNumberReady(Integer numberReady) { - this.numberReady = numberReady; + public boolean hasUpdatedNumberScheduled() { + return this.updatedNumberScheduled != null; + } + + public int hashCode() { + return Objects.hash(collisionCount, conditions, currentNumberScheduled, desiredNumberScheduled, numberAvailable, numberMisscheduled, numberReady, numberUnavailable, observedGeneration, updatedNumberScheduled); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasNumberReady() { - return this.numberReady != null; + public A removeFromConditions(V1DaemonSetCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1DaemonSetCondition item : items) { + V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public Integer getNumberUnavailable() { - return this.numberUnavailable; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1DaemonSetConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A withNumberUnavailable(Integer numberUnavailable) { - this.numberUnavailable = numberUnavailable; + public ConditionsNested setNewConditionLike(int index,V1DaemonSetCondition item) { + return new ConditionsNested(index, item); + } + + 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").add(builder); + conditions.set(index, builder); + } return (A) this; } - public boolean hasNumberUnavailable() { - return this.numberUnavailable != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(collisionCount == null)) { + sb.append("collisionCount:"); + sb.append(collisionCount); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(currentNumberScheduled == null)) { + sb.append("currentNumberScheduled:"); + sb.append(currentNumberScheduled); + sb.append(","); + } + if (!(desiredNumberScheduled == null)) { + sb.append("desiredNumberScheduled:"); + sb.append(desiredNumberScheduled); + sb.append(","); + } + if (!(numberAvailable == null)) { + sb.append("numberAvailable:"); + sb.append(numberAvailable); + sb.append(","); + } + if (!(numberMisscheduled == null)) { + sb.append("numberMisscheduled:"); + sb.append(numberMisscheduled); + sb.append(","); + } + if (!(numberReady == null)) { + sb.append("numberReady:"); + sb.append(numberReady); + sb.append(","); + } + if (!(numberUnavailable == null)) { + sb.append("numberUnavailable:"); + sb.append(numberUnavailable); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(updatedNumberScheduled == null)) { + sb.append("updatedNumberScheduled:"); + sb.append(updatedNumberScheduled); + } + sb.append("}"); + return sb.toString(); } - public Long getObservedGeneration() { - return this.observedGeneration; + public A withCollisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; + return (A) this; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1DaemonSetCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } return (A) this; } - public boolean hasObservedGeneration() { - return this.observedGeneration != null; + public A withConditions(V1DaemonSetCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1DaemonSetCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; } - public Integer getUpdatedNumberScheduled() { - return this.updatedNumberScheduled; + public A withCurrentNumberScheduled(Integer currentNumberScheduled) { + this.currentNumberScheduled = currentNumberScheduled; + return (A) this; } - public A withUpdatedNumberScheduled(Integer updatedNumberScheduled) { - this.updatedNumberScheduled = updatedNumberScheduled; + public A withDesiredNumberScheduled(Integer desiredNumberScheduled) { + this.desiredNumberScheduled = desiredNumberScheduled; return (A) this; } - public boolean hasUpdatedNumberScheduled() { - return this.updatedNumberScheduled != null; + public A withNumberAvailable(Integer numberAvailable) { + this.numberAvailable = numberAvailable; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1DaemonSetStatusFluent that = (V1DaemonSetStatusFluent) o; - if (!java.util.Objects.equals(collisionCount, that.collisionCount)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(currentNumberScheduled, that.currentNumberScheduled)) return false; - if (!java.util.Objects.equals(desiredNumberScheduled, that.desiredNumberScheduled)) return false; - if (!java.util.Objects.equals(numberAvailable, that.numberAvailable)) return false; - if (!java.util.Objects.equals(numberMisscheduled, that.numberMisscheduled)) return false; - if (!java.util.Objects.equals(numberReady, that.numberReady)) return false; - if (!java.util.Objects.equals(numberUnavailable, that.numberUnavailable)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - if (!java.util.Objects.equals(updatedNumberScheduled, that.updatedNumberScheduled)) return false; - return true; + public A withNumberMisscheduled(Integer numberMisscheduled) { + this.numberMisscheduled = numberMisscheduled; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(collisionCount, conditions, currentNumberScheduled, desiredNumberScheduled, numberAvailable, numberMisscheduled, numberReady, numberUnavailable, observedGeneration, updatedNumberScheduled, super.hashCode()); + public A withNumberReady(Integer numberReady) { + this.numberReady = numberReady; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (collisionCount != null) { sb.append("collisionCount:"); sb.append(collisionCount + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (currentNumberScheduled != null) { sb.append("currentNumberScheduled:"); sb.append(currentNumberScheduled + ","); } - if (desiredNumberScheduled != null) { sb.append("desiredNumberScheduled:"); sb.append(desiredNumberScheduled + ","); } - if (numberAvailable != null) { sb.append("numberAvailable:"); sb.append(numberAvailable + ","); } - if (numberMisscheduled != null) { sb.append("numberMisscheduled:"); sb.append(numberMisscheduled + ","); } - if (numberReady != null) { sb.append("numberReady:"); sb.append(numberReady + ","); } - if (numberUnavailable != null) { sb.append("numberUnavailable:"); sb.append(numberUnavailable + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration + ","); } - if (updatedNumberScheduled != null) { sb.append("updatedNumberScheduled:"); sb.append(updatedNumberScheduled); } - sb.append("}"); - return sb.toString(); + public A withNumberUnavailable(Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withUpdatedNumberScheduled(Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; + return (A) this; } public class ConditionsNested extends V1DaemonSetConditionFluent> implements Nested{ + + V1DaemonSetConditionBuilder builder; + int index; + ConditionsNested(int index,V1DaemonSetCondition item) { this.index = index; this.builder = new V1DaemonSetConditionBuilder(this, item); } - V1DaemonSetConditionBuilder builder; - int index; - + public N and() { - return (N) V1DaemonSetStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1DaemonSetStatusFluent.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/V1DaemonSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java index bbb11f1dd9..37a5d737ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DaemonSetUpdateStrategyBuilder extends V1DaemonSetUpdateStrategyFluent implements VisitableBuilder{ + + V1DaemonSetUpdateStrategyFluent fluent; + public V1DaemonSetUpdateStrategyBuilder() { this(new V1DaemonSetUpdateStrategy()); } @@ -10,17 +14,16 @@ public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluen this(fluent, new V1DaemonSetUpdateStrategy()); } - public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluent,V1DaemonSetUpdateStrategy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategy instance) { this.fluent = this; this.copyInstance(instance); } - V1DaemonSetUpdateStrategyFluent fluent; + public V1DaemonSetUpdateStrategyBuilder(V1DaemonSetUpdateStrategyFluent fluent,V1DaemonSetUpdateStrategy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DaemonSetUpdateStrategy build() { V1DaemonSetUpdateStrategy buildable = new V1DaemonSetUpdateStrategy(); buildable.setRollingUpdate(fluent.buildRollingUpdate()); @@ -28,5 +31,4 @@ public V1DaemonSetUpdateStrategy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java index 34629d81e4..be23558ba0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DaemonSetUpdateStrategyFluent> extends BaseFluent{ +public class V1DaemonSetUpdateStrategyFluent> extends BaseFluent{ + + private V1RollingUpdateDaemonSetBuilder rollingUpdate; + private String type; + public V1DaemonSetUpdateStrategyFluent() { } public V1DaemonSetUpdateStrategyFluent(V1DaemonSetUpdateStrategy instance) { this.copyInstance(instance); } - private V1RollingUpdateDaemonSetBuilder rollingUpdate; - private String type; - - protected void copyInstance(V1DaemonSetUpdateStrategy instance) { - instance = (instance != null ? instance : new V1DaemonSetUpdateStrategy()); - if (instance != null) { - this.withRollingUpdate(instance.getRollingUpdate()); - this.withType(instance.getType()); - } - } - + public V1RollingUpdateDaemonSet buildRollingUpdate() { return this.rollingUpdate != null ? this.rollingUpdate.build() : null; } - public A withRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { - this._visitables.remove("rollingUpdate"); - if (rollingUpdate != null) { - this.rollingUpdate = new V1RollingUpdateDaemonSetBuilder(rollingUpdate); - this._visitables.get("rollingUpdate").add(this.rollingUpdate); - } else { - this.rollingUpdate = null; - this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + protected void copyInstance(V1DaemonSetUpdateStrategy instance) { + instance = instance != null ? instance : new V1DaemonSetUpdateStrategy(); + if (instance != null) { + this.withRollingUpdate(instance.getRollingUpdate()); + this.withType(instance.getType()); } - return (A) this; - } - - public boolean hasRollingUpdate() { - return this.rollingUpdate != null; } - public RollingUpdateNested withNewRollingUpdate() { - return new RollingUpdateNested(null); + public RollingUpdateNested editOrNewRollingUpdate() { + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(new V1RollingUpdateDaemonSetBuilder().build())); } - public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { - return new RollingUpdateNested(item); + public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(item)); } public RollingUpdateNested editRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(null)); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); } - public RollingUpdateNested editOrNewRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(new V1RollingUpdateDaemonSetBuilder().build())); - } - - public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DaemonSetUpdateStrategyFluent that = (V1DaemonSetUpdateStrategyFluent) o; + if (!(Objects.equals(rollingUpdate, that.rollingUpdate))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasRollingUpdate() { + return this.rollingUpdate != null; } 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; - V1DaemonSetUpdateStrategyFluent that = (V1DaemonSetUpdateStrategyFluent) o; - if (!java.util.Objects.equals(rollingUpdate, that.rollingUpdate)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); + return Objects.hash(rollingUpdate, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rollingUpdate != null) { sb.append("rollingUpdate:"); sb.append(rollingUpdate + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(rollingUpdate == null)) { + sb.append("rollingUpdate:"); + sb.append(rollingUpdate); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } + + public RollingUpdateNested withNewRollingUpdate() { + return new RollingUpdateNested(null); + } + + public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDaemonSet item) { + return new RollingUpdateNested(item); + } + + public A withRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { + this._visitables.remove("rollingUpdate"); + if (rollingUpdate != null) { + this.rollingUpdate = new V1RollingUpdateDaemonSetBuilder(rollingUpdate); + this._visitables.get("rollingUpdate").add(this.rollingUpdate); + } else { + this.rollingUpdate = null; + this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class RollingUpdateNested extends V1RollingUpdateDaemonSetFluent> implements Nested{ + + V1RollingUpdateDaemonSetBuilder builder; + RollingUpdateNested(V1RollingUpdateDaemonSet item) { this.builder = new V1RollingUpdateDaemonSetBuilder(this, item); } - V1RollingUpdateDaemonSetBuilder builder; - + public N and() { return (N) V1DaemonSetUpdateStrategyFluent.this.withRollingUpdate(builder.build()); } @@ -117,7 +141,5 @@ public N endRollingUpdate() { return and(); } - } - } \ No newline at end of file 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..46a5ab6cc8 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeleteOptionsBuilder extends V1DeleteOptionsFluent implements VisitableBuilder{ + + V1DeleteOptionsFluent fluent; + public V1DeleteOptionsBuilder() { this(new V1DeleteOptions()); } @@ -10,22 +14,22 @@ public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent) { this(fluent, new V1DeleteOptions()); } - public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent,V1DeleteOptions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeleteOptionsBuilder(V1DeleteOptions instance) { this.fluent = this; this.copyInstance(instance); } - V1DeleteOptionsFluent fluent; + public V1DeleteOptionsBuilder(V1DeleteOptionsFluent fluent,V1DeleteOptions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeleteOptions build() { V1DeleteOptions buildable = new V1DeleteOptions(); 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()); @@ -33,5 +37,4 @@ public V1DeleteOptions build() { return buildable; } - } \ No newline at end of file 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..404b8f8da9 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 @@ -1,91 +1,140 @@ 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 io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; import java.lang.Long; -import java.util.Collection; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeleteOptionsFluent> extends BaseFluent{ - public V1DeleteOptionsFluent() { - } - - public V1DeleteOptionsFluent(V1DeleteOptions instance) { - this.copyInstance(instance); - } +public class V1DeleteOptionsFluent> extends BaseFluent{ + private String apiVersion; private List dryRun; private Long gracePeriodSeconds; + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; private String kind; private Boolean orphanDependents; private V1PreconditionsBuilder preconditions; private String propagationPolicy; - - protected void copyInstance(V1DeleteOptions instance) { - instance = (instance != null ? instance : new V1DeleteOptions()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDryRun(instance.getDryRun()); - this.withGracePeriodSeconds(instance.getGracePeriodSeconds()); - this.withKind(instance.getKind()); - this.withOrphanDependents(instance.getOrphanDependents()); - this.withPreconditions(instance.getPreconditions()); - this.withPropagationPolicy(instance.getPropagationPolicy()); - } + + public V1DeleteOptionsFluent() { } - public String getApiVersion() { - return this.apiVersion; + public V1DeleteOptionsFluent(V1DeleteOptions instance) { + this.copyInstance(instance); } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + + public A addAllToDryRun(Collection items) { + if (this.dryRun == null) { + this.dryRun = new ArrayList(); + } + for (String item : items) { + this.dryRun.add(item); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToDryRun(String... items) { + if (this.dryRun == null) { + this.dryRun = new ArrayList(); + } + for (String item : items) { + this.dryRun.add(item); + } + return (A) this; } public A addToDryRun(int index,String item) { - if (this.dryRun == null) {this.dryRun = new ArrayList();} + if (this.dryRun == null) { + this.dryRun = new ArrayList(); + } this.dryRun.add(index, item); - return (A)this; + return (A) this; } - public A setToDryRun(int index,String item) { - if (this.dryRun == null) {this.dryRun = new ArrayList();} - this.dryRun.set(index, item); return (A)this; + public V1Preconditions buildPreconditions() { + return this.preconditions != null ? this.preconditions.build() : null; } - public A addToDryRun(java.lang.String... items) { - if (this.dryRun == null) {this.dryRun = new ArrayList();} - for (String item : items) {this.dryRun.add(item);} return (A)this; + protected void copyInstance(V1DeleteOptions instance) { + instance = instance != null ? instance : new V1DeleteOptions(); + if (instance != null) { + 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()); + this.withPropagationPolicy(instance.getPropagationPolicy()); + } } - public A addAllToDryRun(Collection items) { - if (this.dryRun == null) {this.dryRun = new ArrayList();} - for (String item : items) {this.dryRun.add(item);} return (A)this; + public PreconditionsNested editOrNewPreconditions() { + return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(new V1PreconditionsBuilder().build())); } - public A removeFromDryRun(java.lang.String... items) { - if (this.dryRun == null) return (A)this; - for (String item : items) { this.dryRun.remove(item);} return (A)this; + public PreconditionsNested editOrNewPreconditionsLike(V1Preconditions item) { + return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(item)); } - public A removeAllFromDryRun(Collection items) { - if (this.dryRun == null) return (A)this; - for (String item : items) { this.dryRun.remove(item);} return (A)this; + public PreconditionsNested editPreconditions() { + return this.withNewPreconditionsLike(Optional.ofNullable(this.buildPreconditions()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeleteOptionsFluent that = (V1DeleteOptionsFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(dryRun, that.dryRun))) { + return false; + } + if (!(Objects.equals(gracePeriodSeconds, that.gracePeriodSeconds))) { + return false; + } + if (!(Objects.equals(ignoreStoreReadErrorWithClusterBreakingPotential, that.ignoreStoreReadErrorWithClusterBreakingPotential))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(orphanDependents, that.orphanDependents))) { + return false; + } + if (!(Objects.equals(preconditions, that.preconditions))) { + return false; + } + if (!(Objects.equals(propagationPolicy, that.propagationPolicy))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public List getDryRun() { @@ -100,6 +149,18 @@ public String getFirstDryRun() { return this.dryRun.get(0); } + public Long getGracePeriodSeconds() { + return this.gracePeriodSeconds; + } + + public Boolean getIgnoreStoreReadErrorWithClusterBreakingPotential() { + return this.ignoreStoreReadErrorWithClusterBreakingPotential; + } + + public String getKind() { + return this.kind; + } + public String getLastDryRun() { return this.dryRun.get(dryRun.size() - 1); } @@ -113,6 +174,34 @@ public String getMatchingDryRun(Predicate predicate) { return null; } + public Boolean getOrphanDependents() { + return this.orphanDependents; + } + + public String getPropagationPolicy() { + return this.propagationPolicy; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasDryRun() { + return this.dryRun != null && !(this.dryRun.isEmpty()); + } + + public boolean hasGracePeriodSeconds() { + return this.gracePeriodSeconds != null; + } + + public boolean hasIgnoreStoreReadErrorWithClusterBreakingPotential() { + return this.ignoreStoreReadErrorWithClusterBreakingPotential != null; + } + + public boolean hasKind() { + return this.kind != null; + } + public boolean hasMatchingDryRun(Predicate predicate) { for (String item : dryRun) { if (predicate.test(item)) { @@ -122,6 +211,101 @@ public boolean hasMatchingDryRun(Predicate predicate) { return false; } + public boolean hasOrphanDependents() { + return this.orphanDependents != null; + } + + public boolean hasPreconditions() { + return this.preconditions != null; + } + + public boolean hasPropagationPolicy() { + return this.propagationPolicy != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, kind, orphanDependents, preconditions, propagationPolicy); + } + + public A removeAllFromDryRun(Collection items) { + if (this.dryRun == null) { + return (A) this; + } + for (String item : items) { + this.dryRun.remove(item); + } + return (A) this; + } + + public A removeFromDryRun(String... items) { + if (this.dryRun == null) { + return (A) this; + } + for (String item : items) { + this.dryRun.remove(item); + } + return (A) this; + } + + public A setToDryRun(int index,String item) { + if (this.dryRun == null) { + this.dryRun = new ArrayList(); + } + this.dryRun.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(dryRun == null) && !(dryRun.isEmpty())) { + sb.append("dryRun:"); + sb.append(dryRun); + sb.append(","); + } + if (!(gracePeriodSeconds == null)) { + sb.append("gracePeriodSeconds:"); + sb.append(gracePeriodSeconds); + sb.append(","); + } + if (!(ignoreStoreReadErrorWithClusterBreakingPotential == null)) { + sb.append("ignoreStoreReadErrorWithClusterBreakingPotential:"); + sb.append(ignoreStoreReadErrorWithClusterBreakingPotential); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(orphanDependents == null)) { + sb.append("orphanDependents:"); + sb.append(orphanDependents); + sb.append(","); + } + if (!(preconditions == null)) { + sb.append("preconditions:"); + sb.append(preconditions); + sb.append(","); + } + if (!(propagationPolicy == null)) { + sb.append("propagationPolicy:"); + sb.append(propagationPolicy); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withDryRun(List dryRun) { if (dryRun != null) { this.dryRun = new ArrayList(); @@ -134,7 +318,7 @@ public A withDryRun(List dryRun) { return (A) this; } - public A withDryRun(java.lang.String... dryRun) { + public A withDryRun(String... dryRun) { if (this.dryRun != null) { this.dryRun.clear(); _visitables.remove("dryRun"); @@ -147,25 +331,18 @@ public A withDryRun(java.lang.String... dryRun) { return (A) this; } - public boolean hasDryRun() { - return this.dryRun != null && !this.dryRun.isEmpty(); - } - - public Long getGracePeriodSeconds() { - return this.gracePeriodSeconds; - } - public A withGracePeriodSeconds(Long gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return (A) this; } - public boolean hasGracePeriodSeconds() { - return this.gracePeriodSeconds != null; + public A withIgnoreStoreReadErrorWithClusterBreakingPotential() { + return withIgnoreStoreReadErrorWithClusterBreakingPotential(true); } - public String getKind() { - return this.kind; + public A withIgnoreStoreReadErrorWithClusterBreakingPotential(Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return (A) this; } public A withKind(String kind) { @@ -173,12 +350,16 @@ public A withKind(String kind) { return (A) this; } - public boolean hasKind() { - return this.kind != null; + public PreconditionsNested withNewPreconditions() { + return new PreconditionsNested(null); } - public Boolean getOrphanDependents() { - return this.orphanDependents; + public PreconditionsNested withNewPreconditionsLike(V1Preconditions item) { + return new PreconditionsNested(item); + } + + public A withOrphanDependents() { + return withOrphanDependents(true); } public A withOrphanDependents(Boolean orphanDependents) { @@ -186,14 +367,6 @@ public A withOrphanDependents(Boolean orphanDependents) { return (A) this; } - public boolean hasOrphanDependents() { - return this.orphanDependents != null; - } - - public V1Preconditions buildPreconditions() { - return this.preconditions != null ? this.preconditions.build() : null; - } - public A withPreconditions(V1Preconditions preconditions) { this._visitables.remove("preconditions"); if (preconditions != null) { @@ -206,85 +379,18 @@ public A withPreconditions(V1Preconditions preconditions) { return (A) this; } - public boolean hasPreconditions() { - return this.preconditions != null; - } - - public PreconditionsNested withNewPreconditions() { - return new PreconditionsNested(null); - } - - public PreconditionsNested withNewPreconditionsLike(V1Preconditions item) { - return new PreconditionsNested(item); - } - - public PreconditionsNested editPreconditions() { - return withNewPreconditionsLike(java.util.Optional.ofNullable(buildPreconditions()).orElse(null)); - } - - public PreconditionsNested editOrNewPreconditions() { - return withNewPreconditionsLike(java.util.Optional.ofNullable(buildPreconditions()).orElse(new V1PreconditionsBuilder().build())); - } - - public PreconditionsNested editOrNewPreconditionsLike(V1Preconditions item) { - return withNewPreconditionsLike(java.util.Optional.ofNullable(buildPreconditions()).orElse(item)); - } - - public String getPropagationPolicy() { - return this.propagationPolicy; - } - public A withPropagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; return (A) this; } + public class PreconditionsNested extends V1PreconditionsFluent> implements Nested{ - public boolean hasPropagationPolicy() { - return this.propagationPolicy != 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; - V1DeleteOptionsFluent that = (V1DeleteOptionsFluent) 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(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; - if (!java.util.Objects.equals(propagationPolicy, that.propagationPolicy)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, dryRun, gracePeriodSeconds, kind, orphanDependents, preconditions, propagationPolicy, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - 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 (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 + ","); } - if (propagationPolicy != null) { sb.append("propagationPolicy:"); sb.append(propagationPolicy); } - sb.append("}"); - return sb.toString(); - } + V1PreconditionsBuilder builder; - public A withOrphanDependents() { - return withOrphanDependents(true); - } - public class PreconditionsNested extends V1PreconditionsFluent> implements Nested{ PreconditionsNested(V1Preconditions item) { this.builder = new V1PreconditionsBuilder(this, item); } - V1PreconditionsBuilder builder; - + public N and() { return (N) V1DeleteOptionsFluent.this.withPreconditions(builder.build()); } @@ -293,7 +399,5 @@ public N endPreconditions() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java index 535605aa31..79ac40abba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentBuilder extends V1DeploymentFluent implements VisitableBuilder{ + + V1DeploymentFluent fluent; + public V1DeploymentBuilder() { this(new V1Deployment()); } @@ -10,17 +14,16 @@ public V1DeploymentBuilder(V1DeploymentFluent fluent) { this(fluent, new V1Deployment()); } - public V1DeploymentBuilder(V1DeploymentFluent fluent,V1Deployment instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentBuilder(V1Deployment instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentFluent fluent; + public V1DeploymentBuilder(V1DeploymentFluent fluent,V1Deployment instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Deployment build() { V1Deployment buildable = new V1Deployment(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1Deployment build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java index b5572b3ed6..587c4aff8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentConditionBuilder extends V1DeploymentConditionFluent implements VisitableBuilder{ + + V1DeploymentConditionFluent fluent; + public V1DeploymentConditionBuilder() { this(new V1DeploymentCondition()); } @@ -10,17 +14,16 @@ public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent) { this(fluent, new V1DeploymentCondition()); } - public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent,V1DeploymentCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentConditionBuilder(V1DeploymentCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentConditionFluent fluent; + public V1DeploymentConditionBuilder(V1DeploymentConditionFluent fluent,V1DeploymentCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentCondition build() { V1DeploymentCondition buildable = new V1DeploymentCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +35,4 @@ public V1DeploymentCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java index 11731803bf..b076cfd1fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java @@ -1,149 +1,193 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentConditionFluent> extends BaseFluent{ - public V1DeploymentConditionFluent() { - } - - public V1DeploymentConditionFluent(V1DeploymentCondition instance) { - this.copyInstance(instance); - } +public class V1DeploymentConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private OffsetDateTime lastUpdateTime; private String message; private String reason; private String status; private String type; + + public V1DeploymentConditionFluent() { + } + public V1DeploymentConditionFluent(V1DeploymentCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1DeploymentCondition instance) { - instance = (instance != null ? instance : new V1DeploymentCondition()); + instance = instance != null ? instance : new V1DeploymentCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withLastUpdateTime(instance.getLastUpdateTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withLastUpdateTime(instance.getLastUpdateTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeploymentConditionFluent that = (V1DeploymentConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(lastUpdateTime, that.lastUpdateTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public OffsetDateTime getLastUpdateTime() { return this.lastUpdateTime; } - public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { - this.lastUpdateTime = lastUpdateTime; - return (A) this; + public String getMessage() { + return this.message; } - public boolean hasLastUpdateTime() { - return this.lastUpdateTime != null; + public String getReason() { + return this.reason; } - public String getMessage() { - return this.message; + public String getStatus() { + return this.status; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getType() { + return this.type; } - public boolean hasMessage() { - return this.message != null; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public String getReason() { - return this.reason; + public boolean hasLastUpdateTime() { + return this.lastUpdateTime != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(lastUpdateTime == null)) { + sb.append("lastUpdateTime:"); + sb.append(lastUpdateTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withLastUpdateTime(OffsetDateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1DeploymentConditionFluent that = (V1DeploymentConditionFluent) o; - if (!java.util.Objects.equals(lastTransitionTime, that.lastTransitionTime)) return false; - 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 A withMessage(String message) { + this.message = message; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type, super.hashCode()); + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (lastTransitionTime != null) { sb.append("lastTransitionTime:"); sb.append(lastTransitionTime + ","); } - 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(); + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java index cd0636c906..fc63fb1f42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentFluent> extends BaseFluent{ +public class V1DeploymentFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1DeploymentSpecBuilder spec; + private V1DeploymentStatusBuilder status; + public V1DeploymentFluent() { } public V1DeploymentFluent(V1Deployment instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1DeploymentSpecBuilder spec; - private V1DeploymentStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1DeploymentSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1DeploymentStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1Deployment instance) { - instance = (instance != null ? instance : new V1Deployment()); + instance = instance != null ? instance : new V1Deployment(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DeploymentSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1DeploymentSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1DeploymentStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1DeploymentStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeploymentFluent that = (V1DeploymentFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1DeploymentSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1DeploymentSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1DeploymentStatus item) { + return new StatusNested(item); } public A withSpec(V1DeploymentSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1DeploymentSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1DeploymentSpec 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 V1DeploymentSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1DeploymentSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1DeploymentStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1DeploymentStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1DeploymentStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1DeploymentStatus 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 V1DeploymentStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1DeploymentStatus 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; - V1DeploymentFluent that = (V1DeploymentFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1DeploymentFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1DeploymentSpecFluent> implements Nested{ + + V1DeploymentSpecBuilder builder; + SpecNested(V1DeploymentSpec item) { this.builder = new V1DeploymentSpecBuilder(this, item); } - V1DeploymentSpecBuilder builder; - + public N and() { return (N) V1DeploymentFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1DeploymentStatusFluent> implements Nested{ + + V1DeploymentStatusBuilder builder; + StatusNested(V1DeploymentStatus item) { this.builder = new V1DeploymentStatusBuilder(this, item); } - V1DeploymentStatusBuilder builder; - + public N and() { return (N) V1DeploymentFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java index 3b651459e1..09bb02cbcf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentListBuilder extends V1DeploymentListFluent implements VisitableBuilder{ + + V1DeploymentListFluent fluent; + public V1DeploymentListBuilder() { this(new V1DeploymentList()); } @@ -10,17 +14,16 @@ public V1DeploymentListBuilder(V1DeploymentListFluent fluent) { this(fluent, new V1DeploymentList()); } - public V1DeploymentListBuilder(V1DeploymentListFluent fluent,V1DeploymentList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentListBuilder(V1DeploymentList instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentListFluent fluent; + public V1DeploymentListBuilder(V1DeploymentListFluent fluent,V1DeploymentList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentList build() { V1DeploymentList buildable = new V1DeploymentList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1DeploymentList build() { return buildable; } - } \ No newline at end of file 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..4ef7afab8f 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentListFluent> extends BaseFluent{ +public class V1DeploymentListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1DeploymentListFluent() { } public V1DeploymentListFluent(V1DeploymentList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1DeploymentList instance) { - instance = (instance != null ? instance : new V1DeploymentList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Deployment item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Deployment... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Deployment item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Deployment buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Deployment... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Deployment buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Deployment... items) { - if (this.items == null) return (A)this; - for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Deployment buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Deployment item : items) {V1DeploymentBuilder builder = new V1DeploymentBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Deployment buildMatchingItem(Predicate predicate) { + for (V1DeploymentBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1DeploymentBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1DeploymentList instance) { + instance = instance != null ? instance : new V1DeploymentList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Deployment buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Deployment buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Deployment buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeploymentListFluent that = (V1DeploymentListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Deployment buildMatchingItem(Predicate predicate) { - for (V1DeploymentBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Deployment... items) { + if (this.items == null) { + return (A) this; + } + for (V1Deployment item : items) { + V1DeploymentBuilder builder = new V1DeploymentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DeploymentBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Deployment item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Deployment... items) { + public A withItems(V1Deployment... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Deployment... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Deployment item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Deployment 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1DeploymentFluent> implements Nested{ - 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; - V1DeploymentListFluent that = (V1DeploymentListFluent) 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()); - } + V1DeploymentBuilder builder; + int index; - 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 V1DeploymentFluent> implements Nested{ ItemsNested(int index,V1Deployment item) { this.index = index; this.builder = new V1DeploymentBuilder(this, item); } - V1DeploymentBuilder builder; - int index; - + public N and() { - return (N) V1DeploymentListFluent.this.setToItems(index,builder.build()); + return (N) V1DeploymentListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1DeploymentListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java index 50fed738bd..69f43e0af0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentSpecBuilder extends V1DeploymentSpecFluent implements VisitableBuilder{ + + V1DeploymentSpecFluent fluent; + public V1DeploymentSpecBuilder() { this(new V1DeploymentSpec()); } @@ -10,17 +14,16 @@ public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent) { this(fluent, new V1DeploymentSpec()); } - public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent,V1DeploymentSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentSpecBuilder(V1DeploymentSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentSpecFluent fluent; + public V1DeploymentSpecBuilder(V1DeploymentSpecFluent fluent,V1DeploymentSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentSpec build() { V1DeploymentSpec buildable = new V1DeploymentSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -34,5 +37,4 @@ public V1DeploymentSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java index 275838e508..4407dc4ecd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java @@ -1,24 +1,22 @@ 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.String; +import java.lang.Boolean; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; -import java.lang.Boolean; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentSpecFluent> extends BaseFluent{ - public V1DeploymentSpecFluent() { - } - - public V1DeploymentSpecFluent(V1DeploymentSpec instance) { - this.copyInstance(instance); - } +public class V1DeploymentSpecFluent> extends BaseFluent{ + private Integer minReadySeconds; private Boolean paused; private Integer progressDeadlineSeconds; @@ -27,184 +25,235 @@ public V1DeploymentSpecFluent(V1DeploymentSpec instance) { private V1LabelSelectorBuilder selector; private V1DeploymentStrategyBuilder strategy; private V1PodTemplateSpecBuilder template; - - protected void copyInstance(V1DeploymentSpec instance) { - instance = (instance != null ? instance : new V1DeploymentSpec()); - if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withPaused(instance.getPaused()); - this.withProgressDeadlineSeconds(instance.getProgressDeadlineSeconds()); - this.withReplicas(instance.getReplicas()); - this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); - this.withSelector(instance.getSelector()); - this.withStrategy(instance.getStrategy()); - this.withTemplate(instance.getTemplate()); - } + + public V1DeploymentSpecFluent() { } - public Integer getMinReadySeconds() { - return this.minReadySeconds; + public V1DeploymentSpecFluent(V1DeploymentSpec instance) { + this.copyInstance(instance); + } + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; + public V1DeploymentStrategy buildStrategy() { + return this.strategy != null ? this.strategy.build() : null; } - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; } - public Boolean getPaused() { - return this.paused; + protected void copyInstance(V1DeploymentSpec instance) { + instance = instance != null ? instance : new V1DeploymentSpec(); + if (instance != null) { + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withPaused(instance.getPaused()); + this.withProgressDeadlineSeconds(instance.getProgressDeadlineSeconds()); + this.withReplicas(instance.getReplicas()); + this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); + this.withSelector(instance.getSelector()); + this.withStrategy(instance.getStrategy()); + this.withTemplate(instance.getTemplate()); + } } - public A withPaused(Boolean paused) { - this.paused = paused; - return (A) this; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public boolean hasPaused() { - return this.paused != null; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public Integer getProgressDeadlineSeconds() { - return this.progressDeadlineSeconds; + public StrategyNested editOrNewStrategy() { + return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(new V1DeploymentStrategyBuilder().build())); } - public A withProgressDeadlineSeconds(Integer progressDeadlineSeconds) { - this.progressDeadlineSeconds = progressDeadlineSeconds; - return (A) this; + public StrategyNested editOrNewStrategyLike(V1DeploymentStrategy item) { + return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(item)); } - public boolean hasProgressDeadlineSeconds() { - return this.progressDeadlineSeconds != null; + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } - public Integer getReplicas() { - return this.replicas; + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public boolean hasReplicas() { - return this.replicas != null; + public StrategyNested editStrategy() { + return this.withNewStrategyLike(Optional.ofNullable(this.buildStrategy()).orElse(null)); } - public Integer getRevisionHistoryLimit() { - return this.revisionHistoryLimit; + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } - public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { - this.revisionHistoryLimit = revisionHistoryLimit; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeploymentSpecFluent that = (V1DeploymentSpecFluent) o; + if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { + return false; + } + if (!(Objects.equals(paused, that.paused))) { + return false; + } + if (!(Objects.equals(progressDeadlineSeconds, that.progressDeadlineSeconds))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(revisionHistoryLimit, that.revisionHistoryLimit))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + return true; } - public boolean hasRevisionHistoryLimit() { - return this.revisionHistoryLimit != null; + public Integer getMinReadySeconds() { + return this.minReadySeconds; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public Boolean getPaused() { + return this.paused; } - 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 Integer getProgressDeadlineSeconds() { + return this.progressDeadlineSeconds; } - public boolean hasSelector() { - return this.selector != null; + public Integer getReplicas() { + return this.replicas; } - public SelectorNested withNewSelector() { - return new SelectorNested(null); + public Integer getRevisionHistoryLimit() { + return this.revisionHistoryLimit; } - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; } - public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + public boolean hasPaused() { + return this.paused != null; } - public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + public boolean hasProgressDeadlineSeconds() { + return this.progressDeadlineSeconds != null; } - public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + public boolean hasReplicas() { + return this.replicas != null; } - public V1DeploymentStrategy buildStrategy() { - return this.strategy != null ? this.strategy.build() : null; + public boolean hasRevisionHistoryLimit() { + return this.revisionHistoryLimit != null; } - public A withStrategy(V1DeploymentStrategy strategy) { - this._visitables.remove("strategy"); - if (strategy != null) { - this.strategy = new V1DeploymentStrategyBuilder(strategy); - this._visitables.get("strategy").add(this.strategy); - } else { - this.strategy = null; - this._visitables.get("strategy").remove(this.strategy); - } - return (A) this; + public boolean hasSelector() { + return this.selector != null; } public boolean hasStrategy() { return this.strategy != null; } - public StrategyNested withNewStrategy() { - return new StrategyNested(null); + public boolean hasTemplate() { + return this.template != null; } - public StrategyNested withNewStrategyLike(V1DeploymentStrategy item) { - return new StrategyNested(item); + public int hashCode() { + return Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, selector, strategy, template); } - public StrategyNested editStrategy() { - return withNewStrategyLike(java.util.Optional.ofNullable(buildStrategy()).orElse(null)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minReadySeconds == null)) { + sb.append("minReadySeconds:"); + sb.append(minReadySeconds); + sb.append(","); + } + if (!(paused == null)) { + sb.append("paused:"); + sb.append(paused); + sb.append(","); + } + if (!(progressDeadlineSeconds == null)) { + sb.append("progressDeadlineSeconds:"); + sb.append(progressDeadlineSeconds); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(revisionHistoryLimit == null)) { + sb.append("revisionHistoryLimit:"); + sb.append(revisionHistoryLimit); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + } + sb.append("}"); + return sb.toString(); } - public StrategyNested editOrNewStrategy() { - return withNewStrategyLike(java.util.Optional.ofNullable(buildStrategy()).orElse(new V1DeploymentStrategyBuilder().build())); + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; } - public StrategyNested editOrNewStrategyLike(V1DeploymentStrategy item) { - return withNewStrategyLike(java.util.Optional.ofNullable(buildStrategy()).orElse(item)); + public SelectorNested withNewSelector() { + return new SelectorNested(null); } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); } - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); - } - return (A) this; + public StrategyNested withNewStrategy() { + return new StrategyNested(null); } - public boolean hasTemplate() { - return this.template != null; + public StrategyNested withNewStrategyLike(V1DeploymentStrategy item) { + return new StrategyNested(item); } public TemplateNested withNewTemplate() { @@ -215,62 +264,73 @@ public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { return new TemplateNested(item); } - public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + public A withPaused() { + return withPaused(true); } - public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + public A withPaused(Boolean paused) { + this.paused = paused; + return (A) this; } - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + public A withProgressDeadlineSeconds(Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1DeploymentSpecFluent that = (V1DeploymentSpecFluent) o; - if (!java.util.Objects.equals(minReadySeconds, that.minReadySeconds)) return false; - if (!java.util.Objects.equals(paused, that.paused)) return false; - if (!java.util.Objects.equals(progressDeadlineSeconds, that.progressDeadlineSeconds)) return false; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; - if (!java.util.Objects.equals(revisionHistoryLimit, that.revisionHistoryLimit)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(strategy, that.strategy)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; - return true; + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, selector, strategy, template, super.hashCode()); + public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } - if (paused != null) { sb.append("paused:"); sb.append(paused + ","); } - if (progressDeadlineSeconds != null) { sb.append("progressDeadlineSeconds:"); sb.append(progressDeadlineSeconds + ","); } - if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } - if (revisionHistoryLimit != null) { sb.append("revisionHistoryLimit:"); sb.append(revisionHistoryLimit + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (strategy != null) { sb.append("strategy:"); sb.append(strategy + ","); } - if (template != null) { sb.append("template:"); sb.append(template); } - sb.append("}"); - return sb.toString(); + 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 A withPaused() { - return withPaused(true); + public A withStrategy(V1DeploymentStrategy strategy) { + this._visitables.remove("strategy"); + if (strategy != null) { + this.strategy = new V1DeploymentStrategyBuilder(strategy); + this._visitables.get("strategy").add(this.strategy); + } else { + this.strategy = null; + this._visitables.get("strategy").remove(this.strategy); + } + return (A) this; + } + + public A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1DeploymentSpecFluent.this.withSelector(builder.build()); } @@ -279,14 +339,15 @@ public N endSelector() { return and(); } - } public class StrategyNested extends V1DeploymentStrategyFluent> implements Nested{ + + V1DeploymentStrategyBuilder builder; + StrategyNested(V1DeploymentStrategy item) { this.builder = new V1DeploymentStrategyBuilder(this, item); } - V1DeploymentStrategyBuilder builder; - + public N and() { return (N) V1DeploymentSpecFluent.this.withStrategy(builder.build()); } @@ -295,14 +356,15 @@ public N endStrategy() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1DeploymentSpecFluent.this.withTemplate(builder.build()); } @@ -311,7 +373,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file 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..aa6aa71023 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentStatusBuilder extends V1DeploymentStatusFluent implements VisitableBuilder{ + + V1DeploymentStatusFluent fluent; + public V1DeploymentStatusBuilder() { this(new V1DeploymentStatus()); } @@ -10,17 +14,16 @@ public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent) { this(fluent, new V1DeploymentStatus()); } - public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent,V1DeploymentStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentStatusBuilder(V1DeploymentStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentStatusFluent fluent; + public V1DeploymentStatusBuilder(V1DeploymentStatusFluent fluent,V1DeploymentStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentStatus build() { V1DeploymentStatus buildable = new V1DeploymentStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -29,10 +32,10 @@ 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; } - } \ No newline at end of file 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..b92f388894 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 @@ -1,135 +1,99 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentStatusFluent> extends BaseFluent{ - public V1DeploymentStatusFluent() { - } - - public V1DeploymentStatusFluent(V1DeploymentStatus instance) { - this.copyInstance(instance); - } +public class V1DeploymentStatusFluent> extends BaseFluent{ + private Integer availableReplicas; private Integer collisionCount; private ArrayList conditions; private Long observedGeneration; private Integer readyReplicas; private Integer replicas; + private Integer terminatingReplicas; private Integer unavailableReplicas; private Integer updatedReplicas; - - protected void copyInstance(V1DeploymentStatus instance) { - instance = (instance != null ? instance : new V1DeploymentStatus()); - if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withCollisionCount(instance.getCollisionCount()); - this.withConditions(instance.getConditions()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - this.withUnavailableReplicas(instance.getUnavailableReplicas()); - this.withUpdatedReplicas(instance.getUpdatedReplicas()); - } + + public V1DeploymentStatusFluent() { } - public Integer getAvailableReplicas() { - return this.availableReplicas; + public V1DeploymentStatusFluent(V1DeploymentStatus instance) { + this.copyInstance(instance); } - - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasAvailableReplicas() { - return this.availableReplicas != null; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public Integer getCollisionCount() { - return this.collisionCount; + public ConditionsNested addNewConditionLike(V1DeploymentCondition item) { + return new ConditionsNested(-1, item); } - public A withCollisionCount(Integer collisionCount) { - this.collisionCount = collisionCount; + public A addToConditions(V1DeploymentCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasCollisionCount() { - return this.collisionCount != null; - } - 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);} - return (A)this; - } - - public A setToConditions(int index,V1DeploymentCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + 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);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(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 (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... items) { - if (this.conditions == null) return (A)this; - for (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(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 (V1DeploymentCondition item : items) {V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + 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 removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1DeploymentConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1DeploymentCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1DeploymentCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1DeploymentCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -147,200 +111,373 @@ public V1DeploymentCondition buildMatchingCondition(Predicate predicate) { - for (V1DeploymentConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1DeploymentStatus instance) { + instance = instance != null ? instance : new V1DeploymentStatus(); + if (instance != null) { + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withCollisionCount(instance.getCollisionCount()); + this.withConditions(instance.getConditions()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); + this.withUnavailableReplicas(instance.getUnavailableReplicas()); + this.withUpdatedReplicas(instance.getUpdatedReplicas()); + } } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1DeploymentCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(0, this.buildCondition(0)); } - public A withConditions(io.kubernetes.client.openapi.models.V1DeploymentCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); } - if (conditions != null) { - for (V1DeploymentCondition item : conditions) { - this.addToConditions(item); + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeploymentStatusFluent that = (V1DeploymentStatusFluent) o; + if (!(Objects.equals(availableReplicas, that.availableReplicas))) { + return false; + } + if (!(Objects.equals(collisionCount, that.collisionCount))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(readyReplicas, that.readyReplicas))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(terminatingReplicas, that.terminatingReplicas))) { + return false; + } + if (!(Objects.equals(unavailableReplicas, that.unavailableReplicas))) { + return false; + } + if (!(Objects.equals(updatedReplicas, that.updatedReplicas))) { + return false; + } + return true; } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public Integer getAvailableReplicas() { + return this.availableReplicas; } - public ConditionsNested addNewConditionLike(V1DeploymentCondition item) { - return new ConditionsNested(-1, item); + public Integer getCollisionCount() { + return this.collisionCount; } - public ConditionsNested setNewConditionLike(int index,V1DeploymentCondition item) { - return new ConditionsNested(index, item); + public Long getObservedGeneration() { + return this.observedGeneration; } - 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 Integer getReadyReplicas() { + return this.readyReplicas; } - 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 Integer getReplicas() { + return this.replicas; } - 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 Integer getTerminatingReplicas() { + return this.terminatingReplicas; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1DeploymentConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public Integer getReplicas() { - return this.replicas; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + public boolean hasReadyReplicas() { + return this.readyReplicas != null; } public boolean hasReplicas() { return this.replicas != null; } - public Integer getUnavailableReplicas() { - return this.unavailableReplicas; - } - - public A withUnavailableReplicas(Integer unavailableReplicas) { - this.unavailableReplicas = unavailableReplicas; - return (A) this; + public boolean hasTerminatingReplicas() { + return this.terminatingReplicas != null; } public boolean hasUnavailableReplicas() { return this.unavailableReplicas != null; } - public Integer getUpdatedReplicas() { - return this.updatedReplicas; + public boolean hasUpdatedReplicas() { + return this.updatedReplicas != null; } - public A withUpdatedReplicas(Integer updatedReplicas) { - this.updatedReplicas = updatedReplicas; + public int hashCode() { + return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, terminatingReplicas, unavailableReplicas, updatedReplicas); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasUpdatedReplicas() { - return this.updatedReplicas != null; + public A removeFromConditions(V1DeploymentCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1DeploymentCondition item : items) { + V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1DeploymentStatusFluent that = (V1DeploymentStatusFluent) o; - if (!java.util.Objects.equals(availableReplicas, that.availableReplicas)) return false; - if (!java.util.Objects.equals(collisionCount, that.collisionCount)) return false; - 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(readyReplicas, that.readyReplicas)) return false; - if (!java.util.Objects.equals(replicas, that.replicas)) 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 A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1DeploymentConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas, super.hashCode()); + public ConditionsNested setNewConditionLike(int index,V1DeploymentCondition item) { + return new ConditionsNested(index, item); + } + + 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").add(builder); + conditions.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (availableReplicas != null) { sb.append("availableReplicas:"); sb.append(availableReplicas + ","); } - if (collisionCount != null) { sb.append("collisionCount:"); sb.append(collisionCount + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - 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 (unavailableReplicas != null) { sb.append("unavailableReplicas:"); sb.append(unavailableReplicas + ","); } - if (updatedReplicas != null) { sb.append("updatedReplicas:"); sb.append(updatedReplicas); } + if (!(availableReplicas == null)) { + sb.append("availableReplicas:"); + sb.append(availableReplicas); + sb.append(","); + } + if (!(collisionCount == null)) { + sb.append("collisionCount:"); + sb.append(collisionCount); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(readyReplicas == null)) { + sb.append("readyReplicas:"); + sb.append(readyReplicas); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(terminatingReplicas == null)) { + sb.append("terminatingReplicas:"); + sb.append(terminatingReplicas); + sb.append(","); + } + if (!(unavailableReplicas == null)) { + sb.append("unavailableReplicas:"); + sb.append(unavailableReplicas); + sb.append(","); + } + if (!(updatedReplicas == null)) { + sb.append("updatedReplicas:"); + sb.append(updatedReplicas); + } sb.append("}"); return sb.toString(); } + + public A withAvailableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; + return (A) this; + } + + public A withCollisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1DeploymentCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1DeploymentCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1DeploymentCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReadyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; + return (A) this; + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return (A) this; + } + + public A withUnavailableReplicas(Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; + return (A) this; + } + + public A withUpdatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; + return (A) this; + } public class ConditionsNested extends V1DeploymentConditionFluent> implements Nested{ + + V1DeploymentConditionBuilder builder; + int index; + ConditionsNested(int index,V1DeploymentCondition item) { this.index = index; this.builder = new V1DeploymentConditionBuilder(this, item); } - V1DeploymentConditionBuilder builder; - int index; - + public N and() { - return (N) V1DeploymentStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1DeploymentStatusFluent.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/V1DeploymentStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java index 1da15f1299..27dfc97a4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DeploymentStrategyBuilder extends V1DeploymentStrategyFluent implements VisitableBuilder{ + + V1DeploymentStrategyFluent fluent; + public V1DeploymentStrategyBuilder() { this(new V1DeploymentStrategy()); } @@ -10,17 +14,16 @@ public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent) { this(fluent, new V1DeploymentStrategy()); } - public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent,V1DeploymentStrategy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DeploymentStrategyBuilder(V1DeploymentStrategy instance) { this.fluent = this; this.copyInstance(instance); } - V1DeploymentStrategyFluent fluent; + public V1DeploymentStrategyBuilder(V1DeploymentStrategyFluent fluent,V1DeploymentStrategy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DeploymentStrategy build() { V1DeploymentStrategy buildable = new V1DeploymentStrategy(); buildable.setRollingUpdate(fluent.buildRollingUpdate()); @@ -28,5 +31,4 @@ public V1DeploymentStrategy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java index 3efd0adf52..f86690de9a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DeploymentStrategyFluent> extends BaseFluent{ +public class V1DeploymentStrategyFluent> extends BaseFluent{ + + private V1RollingUpdateDeploymentBuilder rollingUpdate; + private String type; + public V1DeploymentStrategyFluent() { } public V1DeploymentStrategyFluent(V1DeploymentStrategy instance) { this.copyInstance(instance); } - private V1RollingUpdateDeploymentBuilder rollingUpdate; - private String type; - - protected void copyInstance(V1DeploymentStrategy instance) { - instance = (instance != null ? instance : new V1DeploymentStrategy()); - if (instance != null) { - this.withRollingUpdate(instance.getRollingUpdate()); - this.withType(instance.getType()); - } - } - + public V1RollingUpdateDeployment buildRollingUpdate() { return this.rollingUpdate != null ? this.rollingUpdate.build() : null; } - public A withRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { - this._visitables.remove("rollingUpdate"); - if (rollingUpdate != null) { - this.rollingUpdate = new V1RollingUpdateDeploymentBuilder(rollingUpdate); - this._visitables.get("rollingUpdate").add(this.rollingUpdate); - } else { - this.rollingUpdate = null; - this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + protected void copyInstance(V1DeploymentStrategy instance) { + instance = instance != null ? instance : new V1DeploymentStrategy(); + if (instance != null) { + this.withRollingUpdate(instance.getRollingUpdate()); + this.withType(instance.getType()); } - return (A) this; - } - - public boolean hasRollingUpdate() { - return this.rollingUpdate != null; } - public RollingUpdateNested withNewRollingUpdate() { - return new RollingUpdateNested(null); + public RollingUpdateNested editOrNewRollingUpdate() { + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(new V1RollingUpdateDeploymentBuilder().build())); } - public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDeployment item) { - return new RollingUpdateNested(item); + public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDeployment item) { + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(item)); } public RollingUpdateNested editRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(null)); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); } - public RollingUpdateNested editOrNewRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(new V1RollingUpdateDeploymentBuilder().build())); - } - - public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateDeployment item) { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeploymentStrategyFluent that = (V1DeploymentStrategyFluent) o; + if (!(Objects.equals(rollingUpdate, that.rollingUpdate))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasRollingUpdate() { + return this.rollingUpdate != null; } 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; - V1DeploymentStrategyFluent that = (V1DeploymentStrategyFluent) o; - if (!java.util.Objects.equals(rollingUpdate, that.rollingUpdate)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); + return Objects.hash(rollingUpdate, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rollingUpdate != null) { sb.append("rollingUpdate:"); sb.append(rollingUpdate + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(rollingUpdate == null)) { + sb.append("rollingUpdate:"); + sb.append(rollingUpdate); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } + + public RollingUpdateNested withNewRollingUpdate() { + return new RollingUpdateNested(null); + } + + public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateDeployment item) { + return new RollingUpdateNested(item); + } + + public A withRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { + this._visitables.remove("rollingUpdate"); + if (rollingUpdate != null) { + this.rollingUpdate = new V1RollingUpdateDeploymentBuilder(rollingUpdate); + this._visitables.get("rollingUpdate").add(this.rollingUpdate); + } else { + this.rollingUpdate = null; + this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class RollingUpdateNested extends V1RollingUpdateDeploymentFluent> implements Nested{ + + V1RollingUpdateDeploymentBuilder builder; + RollingUpdateNested(V1RollingUpdateDeployment item) { this.builder = new V1RollingUpdateDeploymentBuilder(this, item); } - V1RollingUpdateDeploymentBuilder builder; - + public N and() { return (N) V1DeploymentStrategyFluent.this.withRollingUpdate(builder.build()); } @@ -117,7 +141,5 @@ public N endRollingUpdate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java new file mode 100644 index 0000000000..d59f69ac46 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceAllocationConfigurationBuilder extends V1DeviceAllocationConfigurationFluent implements VisitableBuilder{ + + V1DeviceAllocationConfigurationFluent fluent; + + public V1DeviceAllocationConfigurationBuilder() { + this(new V1DeviceAllocationConfiguration()); + } + + public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfigurationFluent fluent) { + this(fluent, new V1DeviceAllocationConfiguration()); + } + + public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceAllocationConfigurationBuilder(V1DeviceAllocationConfigurationFluent fluent,V1DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceAllocationConfiguration build() { + V1DeviceAllocationConfiguration buildable = new V1DeviceAllocationConfiguration(); + 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/V1DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java new file mode 100644 index 0000000000..38ff1b8f51 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java @@ -0,0 +1,278 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceAllocationConfigurationFluent> extends BaseFluent{ + + private V1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + + public V1DeviceAllocationConfigurationFluent() { + } + + public V1DeviceAllocationConfigurationFluent(V1DeviceAllocationConfiguration instance) { + this.copyInstance(instance); + } + + 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 addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + public V1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + protected void copyInstance(V1DeviceAllocationConfiguration instance) { + instance = instance != null ? instance : new V1DeviceAllocationConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + this.withSource(instance.getSource()); + } + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceAllocationConfigurationFluent that = (V1DeviceAllocationConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } + return true; + } + + 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 String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public String getSource() { + return this.source; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public boolean hasSource() { + return this.source != null; + } + + public int hashCode() { + return Objects.hash(opaque, requests, source); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + } + sb.append("}"); + return sb.toString(); + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + 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(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 A withSource(String source) { + this.source = source; + return (A) this; + } + public class OpaqueNested extends V1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1OpaqueDeviceConfigurationBuilder builder; + + OpaqueNested(V1OpaqueDeviceConfiguration item) { + this.builder = new V1OpaqueDeviceConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1DeviceAllocationConfigurationFluent.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/V1DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java new file mode 100644 index 0000000000..74001702bf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceAllocationResultBuilder extends V1DeviceAllocationResultFluent implements VisitableBuilder{ + + V1DeviceAllocationResultFluent fluent; + + public V1DeviceAllocationResultBuilder() { + this(new V1DeviceAllocationResult()); + } + + public V1DeviceAllocationResultBuilder(V1DeviceAllocationResultFluent fluent) { + this(fluent, new V1DeviceAllocationResult()); + } + + public V1DeviceAllocationResultBuilder(V1DeviceAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceAllocationResultBuilder(V1DeviceAllocationResultFluent fluent,V1DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceAllocationResult build() { + V1DeviceAllocationResult buildable = new V1DeviceAllocationResult(); + 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/V1DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java new file mode 100644 index 0000000000..8bda7081dc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java @@ -0,0 +1,534 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceAllocationResultFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList results; + + public V1DeviceAllocationResultFluent() { + } + + public V1DeviceAllocationResultFluent(V1DeviceAllocationResult instance) { + this.copyInstance(instance); + } + + public A addAllToConfig(Collection items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A addAllToResults(Collection items) { + if (this.results == null) { + this.results = new ArrayList(); + } + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); + } + return (A) this; + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + + public A addToConfig(V1DeviceAllocationConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A addToConfig(int index,V1DeviceAllocationConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(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 addToResults(V1DeviceRequestAllocationResult... items) { + if (this.results == null) { + this.results = new ArrayList(); + } + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").add(builder); + this.results.add(builder); + } + return (A) this; + } + + public A addToResults(int index,V1DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); + } + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(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 List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1DeviceAllocationConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1DeviceAllocationConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + + public V1DeviceAllocationConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + + public V1DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { + for (V1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); + } + + public List buildResults() { + return this.results != null ? build(results) : null; + } + + protected void copyInstance(V1DeviceAllocationResult instance) { + instance = instance != null ? instance : new V1DeviceAllocationResult(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public ResultsNested editFirstResult() { + if (results.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); + } + return this.setNewResultLike(0, this.buildResult(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ResultsNested editMatchingResult(Predicate predicate) { + int index = -1; + for (int i = 0;i < results.size();i++) { + if (predicate.test(results.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public ResultsNested editResult(int index) { + if (results.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceAllocationResultFluent that = (V1DeviceAllocationResultFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(results, that.results))) { + return false; + } + return true; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResults() { + return this.results != null && !(this.results.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, results); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeAllFromResults(Collection items) { + if (this.results == null) { + return (A) this; + } + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").remove(builder); + this.results.remove(builder); + } + return (A) this; + } + + public A removeFromConfig(V1DeviceAllocationConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceAllocationConfiguration item : items) { + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeFromResults(V1DeviceRequestAllocationResult... items) { + if (this.results == null) { + return (A) this; + } + for (V1DeviceRequestAllocationResult item : items) { + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); + _visitables.get("results").remove(builder); + this.results.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1DeviceAllocationConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromResults(Predicate predicate) { + if (results == null) { + return (A) this; + } + Iterator each = results.iterator(); + List visitables = _visitables.get("results"); + while (each.hasNext()) { + V1DeviceRequestAllocationResultBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConfigNested setNewConfigLike(int index,V1DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); + } + + public ResultsNested setNewResultLike(int index,V1DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); + } + + public A setToConfig(int index,V1DeviceAllocationConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(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 setToResults(int index,V1DeviceRequestAllocationResult item) { + if (this.results == null) { + this.results = new ArrayList(); + } + V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(results == null) && !(results.isEmpty())) { + sb.append("results:"); + sb.append(results); + } + sb.append("}"); + return sb.toString(); + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1DeviceAllocationConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1DeviceAllocationConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public A withResults(List results) { + if (this.results != null) { + this._visitables.get("results").clear(); + } + if (results != null) { + this.results = new ArrayList(); + for (V1DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } else { + this.results = null; + } + return (A) this; + } + + public A withResults(V1DeviceRequestAllocationResult... results) { + if (this.results != null) { + this.results.clear(); + _visitables.remove("results"); + } + if (results != null) { + for (V1DeviceRequestAllocationResult item : results) { + this.addToResults(item); + } + } + return (A) this; + } + public class ConfigNested extends V1DeviceAllocationConfigurationFluent> implements Nested{ + + V1DeviceAllocationConfigurationBuilder builder; + int index; + + ConfigNested(int index,V1DeviceAllocationConfiguration item) { + this.index = index; + this.builder = new V1DeviceAllocationConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1DeviceAllocationResultFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + } + public class ResultsNested extends V1DeviceRequestAllocationResultFluent> implements Nested{ + + V1DeviceRequestAllocationResultBuilder builder; + int index; + + ResultsNested(int index,V1DeviceRequestAllocationResult item) { + this.index = index; + this.builder = new V1DeviceRequestAllocationResultBuilder(this, item); + } + + public N and() { + return (N) V1DeviceAllocationResultFluent.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/V1DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java new file mode 100644 index 0000000000..251182d6a1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceAttributeBuilder extends V1DeviceAttributeFluent implements VisitableBuilder{ + + V1DeviceAttributeFluent fluent; + + public V1DeviceAttributeBuilder() { + this(new V1DeviceAttribute()); + } + + public V1DeviceAttributeBuilder(V1DeviceAttributeFluent fluent) { + this(fluent, new V1DeviceAttribute()); + } + + public V1DeviceAttributeBuilder(V1DeviceAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceAttributeBuilder(V1DeviceAttributeFluent fluent,V1DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceAttribute build() { + V1DeviceAttribute buildable = new V1DeviceAttribute(); + 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/V1DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java new file mode 100644 index 0000000000..bf8f932561 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java @@ -0,0 +1,152 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceAttributeFluent> extends BaseFluent{ + + private Long _int; + private Boolean bool; + private String string; + private String version; + + public V1DeviceAttributeFluent() { + } + + public V1DeviceAttributeFluent(V1DeviceAttribute instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1DeviceAttribute instance) { + instance = instance != null ? instance : new V1DeviceAttribute(); + if (instance != null) { + this.withBool(instance.getBool()); + this.withInt(instance.getInt()); + this.withString(instance.getString()); + this.withVersion(instance.getVersion()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceAttributeFluent that = (V1DeviceAttributeFluent) o; + if (!(Objects.equals(bool, that.bool))) { + return false; + } + if (!(Objects.equals(_int, that._int))) { + return false; + } + if (!(Objects.equals(string, that.string))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; + } + + public Boolean getBool() { + return this.bool; + } + + public Long getInt() { + return this._int; + } + + public String getString() { + return this.string; + } + + public String getVersion() { + return this.version; + } + + public boolean hasBool() { + return this.bool != null; + } + + public boolean hasInt() { + return this._int != null; + } + + public boolean hasString() { + return this.string != null; + } + + public boolean hasVersion() { + return this.version != null; + } + + public int hashCode() { + return Objects.hash(bool, _int, string, version); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(bool == null)) { + sb.append("bool:"); + sb.append(bool); + sb.append(","); + } + if (!(_int == null)) { + sb.append("_int:"); + sb.append(_int); + sb.append(","); + } + if (!(string == null)) { + sb.append("string:"); + sb.append(string); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } + sb.append("}"); + return sb.toString(); + } + + public A withBool() { + return withBool(true); + } + + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java new file mode 100644 index 0000000000..004fff2e93 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java @@ -0,0 +1,44 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceBuilder extends V1DeviceFluent implements VisitableBuilder{ + + V1DeviceFluent fluent; + + public V1DeviceBuilder() { + this(new V1Device()); + } + + public V1DeviceBuilder(V1DeviceFluent fluent) { + this(fluent, new V1Device()); + } + + public V1DeviceBuilder(V1Device instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceBuilder(V1DeviceFluent fluent,V1Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1Device build() { + V1Device buildable = new V1Device(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAllowMultipleAllocations(fluent.getAllowMultipleAllocations()); + buildable.setAttributes(fluent.getAttributes()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setBindsToNode(fluent.getBindsToNode()); + 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/V1DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java new file mode 100644 index 0000000000..3a6cebf65e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceCapacityBuilder extends V1DeviceCapacityFluent implements VisitableBuilder{ + + V1DeviceCapacityFluent fluent; + + public V1DeviceCapacityBuilder() { + this(new V1DeviceCapacity()); + } + + public V1DeviceCapacityBuilder(V1DeviceCapacityFluent fluent) { + this(fluent, new V1DeviceCapacity()); + } + + public V1DeviceCapacityBuilder(V1DeviceCapacity instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceCapacityBuilder(V1DeviceCapacityFluent fluent,V1DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceCapacity build() { + V1DeviceCapacity buildable = new V1DeviceCapacity(); + buildable.setRequestPolicy(fluent.buildRequestPolicy()); + buildable.setValue(fluent.getValue()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java new file mode 100644 index 0000000000..8d9c2d49fb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceCapacityFluent> extends BaseFluent{ + + private V1CapacityRequestPolicyBuilder requestPolicy; + private Quantity value; + + public V1DeviceCapacityFluent() { + } + + public V1DeviceCapacityFluent(V1DeviceCapacity instance) { + this.copyInstance(instance); + } + + public V1CapacityRequestPolicy buildRequestPolicy() { + return this.requestPolicy != null ? this.requestPolicy.build() : null; + } + + protected void copyInstance(V1DeviceCapacity instance) { + instance = instance != null ? instance : new V1DeviceCapacity(); + if (instance != null) { + this.withRequestPolicy(instance.getRequestPolicy()); + this.withValue(instance.getValue()); + } + } + + public RequestPolicyNested editOrNewRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(new V1CapacityRequestPolicyBuilder().build())); + } + + public RequestPolicyNested editOrNewRequestPolicyLike(V1CapacityRequestPolicy item) { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(item)); + } + + public RequestPolicyNested editRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceCapacityFluent that = (V1DeviceCapacityFluent) o; + if (!(Objects.equals(requestPolicy, that.requestPolicy))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public Quantity getValue() { + return this.value; + } + + public boolean hasRequestPolicy() { + return this.requestPolicy != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(requestPolicy, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requestPolicy == null)) { + sb.append("requestPolicy:"); + sb.append(requestPolicy); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public RequestPolicyNested withNewRequestPolicy() { + return new RequestPolicyNested(null); + } + + public RequestPolicyNested withNewRequestPolicyLike(V1CapacityRequestPolicy item) { + return new RequestPolicyNested(item); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withRequestPolicy(V1CapacityRequestPolicy requestPolicy) { + this._visitables.remove("requestPolicy"); + if (requestPolicy != null) { + this.requestPolicy = new V1CapacityRequestPolicyBuilder(requestPolicy); + this._visitables.get("requestPolicy").add(this.requestPolicy); + } else { + this.requestPolicy = null; + this._visitables.get("requestPolicy").remove(this.requestPolicy); + } + return (A) this; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + public class RequestPolicyNested extends V1CapacityRequestPolicyFluent> implements Nested{ + + V1CapacityRequestPolicyBuilder builder; + + RequestPolicyNested(V1CapacityRequestPolicy item) { + this.builder = new V1CapacityRequestPolicyBuilder(this, item); + } + + public N and() { + return (N) V1DeviceCapacityFluent.this.withRequestPolicy(builder.build()); + } + + public N endRequestPolicy() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java new file mode 100644 index 0000000000..aecbb42190 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClaimBuilder extends V1DeviceClaimFluent implements VisitableBuilder{ + + V1DeviceClaimFluent fluent; + + public V1DeviceClaimBuilder() { + this(new V1DeviceClaim()); + } + + public V1DeviceClaimBuilder(V1DeviceClaimFluent fluent) { + this(fluent, new V1DeviceClaim()); + } + + public V1DeviceClaimBuilder(V1DeviceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceClaimBuilder(V1DeviceClaimFluent fluent,V1DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClaim build() { + V1DeviceClaim buildable = new V1DeviceClaim(); + 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/V1DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java new file mode 100644 index 0000000000..9b9a976e76 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClaimConfigurationBuilder extends V1DeviceClaimConfigurationFluent implements VisitableBuilder{ + + V1DeviceClaimConfigurationFluent fluent; + + public V1DeviceClaimConfigurationBuilder() { + this(new V1DeviceClaimConfiguration()); + } + + public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfigurationFluent fluent) { + this(fluent, new V1DeviceClaimConfiguration()); + } + + public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceClaimConfigurationBuilder(V1DeviceClaimConfigurationFluent fluent,V1DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClaimConfiguration build() { + V1DeviceClaimConfiguration buildable = new V1DeviceClaimConfiguration(); + 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/V1DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java new file mode 100644 index 0000000000..d867b4fbce --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java @@ -0,0 +1,255 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClaimConfigurationFluent> extends BaseFluent{ + + private V1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + + public V1DeviceClaimConfigurationFluent() { + } + + public V1DeviceClaimConfigurationFluent(V1DeviceClaimConfiguration instance) { + this.copyInstance(instance); + } + + 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 addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + public V1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + protected void copyInstance(V1DeviceClaimConfiguration instance) { + instance = instance != null ? instance : new V1DeviceClaimConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClaimConfigurationFluent that = (V1DeviceClaimConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + 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 String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(opaque, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + + 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(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 class OpaqueNested extends V1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1OpaqueDeviceConfigurationBuilder builder; + + OpaqueNested(V1OpaqueDeviceConfiguration item) { + this.builder = new V1OpaqueDeviceConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClaimConfigurationFluent.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/V1DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java new file mode 100644 index 0000000000..c7b83cba05 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java @@ -0,0 +1,771 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClaimFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + + public V1DeviceClaimFluent() { + } + + public V1DeviceClaimFluent(V1DeviceClaim instance) { + this.copyInstance(instance); + } + + public A addAllToConfig(Collection items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A addAllToConstraints(Collection items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; + } + + public A addAllToRequests(Collection items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1DeviceRequest item) { + return new RequestsNested(-1, item); + } + + public A addToConfig(V1DeviceClaimConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A addToConfig(int index,V1DeviceClaimConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(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 addToConstraints(V1DeviceConstraint... items) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").add(builder); + this.constraints.add(builder); + } + return (A) this; + } + + public A addToConstraints(int index,V1DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(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 addToRequests(V1DeviceRequest... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").add(builder); + this.requests.add(builder); + } + return (A) this; + } + + public A addToRequests(int index,V1DeviceRequest item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(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 List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1DeviceClaimConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + + public V1DeviceClaimConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + + public V1DeviceClaimConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + + public V1DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { + for (V1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); + } + + public List buildRequests() { + return this.requests != null ? build(requests) : null; + } + + protected void copyInstance(V1DeviceClaim instance) { + instance = instance != null ? instance : new V1DeviceClaim(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withConstraints(instance.getConstraints()); + this.withRequests(instance.getRequests()); + } + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(0, this.buildConstraint(0)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(0, this.buildRequest(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConstraintsNested editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i = 0;i < constraints.size();i++) { + if (predicate.test(constraints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i = 0;i < requests.size();i++) { + if (predicate.test(requests.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClaimFluent that = (V1DeviceClaimFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(constraints, that.constraints))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasConstraints() { + return this.constraints != null && !(this.constraints.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, constraints, requests); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeAllFromConstraints(Collection items) { + if (this.constraints == null) { + return (A) this; + } + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); + } + return (A) this; + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; + } + + public A removeFromConfig(V1DeviceClaimConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClaimConfiguration item : items) { + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeFromConstraints(V1DeviceConstraint... items) { + if (this.constraints == null) { + return (A) this; + } + for (V1DeviceConstraint item : items) { + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); + _visitables.get("constraints").remove(builder); + this.constraints.remove(builder); + } + return (A) this; + } + + public A removeFromRequests(V1DeviceRequest... items) { + if (this.requests == null) { + return (A) this; + } + for (V1DeviceRequest item : items) { + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); + _visitables.get("requests").remove(builder); + this.requests.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1DeviceClaimConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) { + return (A) this; + } + Iterator each = constraints.iterator(); + List visitables = _visitables.get("constraints"); + while (each.hasNext()) { + V1DeviceConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) { + return (A) this; + } + Iterator each = requests.iterator(); + List visitables = _visitables.get("requests"); + while (each.hasNext()) { + V1DeviceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConfigNested setNewConfigLike(int index,V1DeviceClaimConfiguration item) { + return new ConfigNested(index, item); + } + + public ConstraintsNested setNewConstraintLike(int index,V1DeviceConstraint item) { + return new ConstraintsNested(index, item); + } + + public RequestsNested setNewRequestLike(int index,V1DeviceRequest item) { + return new RequestsNested(index, item); + } + + public A setToConfig(int index,V1DeviceClaimConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(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 setToConstraints(int index,V1DeviceConstraint item) { + if (this.constraints == null) { + this.constraints = new ArrayList(); + } + V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(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 setToRequests(int index,V1DeviceRequest item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(constraints == null) && !(constraints.isEmpty())) { + sb.append("constraints:"); + sb.append(constraints); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1DeviceClaimConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1DeviceClaimConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public A withConstraints(List constraints) { + if (this.constraints != null) { + this._visitables.get("constraints").clear(); + } + if (constraints != null) { + this.constraints = new ArrayList(); + for (V1DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } else { + this.constraints = null; + } + return (A) this; + } + + public A withConstraints(V1DeviceConstraint... constraints) { + if (this.constraints != null) { + this.constraints.clear(); + _visitables.remove("constraints"); + } + if (constraints != null) { + for (V1DeviceConstraint item : constraints) { + this.addToConstraints(item); + } + } + return (A) this; + } + + public A withRequests(List requests) { + if (this.requests != null) { + this._visitables.get("requests").clear(); + } + if (requests != null) { + this.requests = new ArrayList(); + for (V1DeviceRequest item : requests) { + this.addToRequests(item); + } + } else { + this.requests = null; + } + return (A) this; + } + + public A withRequests(V1DeviceRequest... requests) { + if (this.requests != null) { + this.requests.clear(); + _visitables.remove("requests"); + } + if (requests != null) { + for (V1DeviceRequest item : requests) { + this.addToRequests(item); + } + } + return (A) this; + } + public class ConfigNested extends V1DeviceClaimConfigurationFluent> implements Nested{ + + V1DeviceClaimConfigurationBuilder builder; + int index; + + ConfigNested(int index,V1DeviceClaimConfiguration item) { + this.index = index; + this.builder = new V1DeviceClaimConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClaimFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + } + public class ConstraintsNested extends V1DeviceConstraintFluent> implements Nested{ + + V1DeviceConstraintBuilder builder; + int index; + + ConstraintsNested(int index,V1DeviceConstraint item) { + this.index = index; + this.builder = new V1DeviceConstraintBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClaimFluent.this.setToConstraints(index, builder.build()); + } + + public N endConstraint() { + return and(); + } + + } + public class RequestsNested extends V1DeviceRequestFluent> implements Nested{ + + V1DeviceRequestBuilder builder; + int index; + + RequestsNested(int index,V1DeviceRequest item) { + this.index = index; + this.builder = new V1DeviceRequestBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClaimFluent.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/V1DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java new file mode 100644 index 0000000000..dae2e97247 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClassBuilder extends V1DeviceClassFluent implements VisitableBuilder{ + + V1DeviceClassFluent fluent; + + public V1DeviceClassBuilder() { + this(new V1DeviceClass()); + } + + public V1DeviceClassBuilder(V1DeviceClassFluent fluent) { + this(fluent, new V1DeviceClass()); + } + + public V1DeviceClassBuilder(V1DeviceClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceClassBuilder(V1DeviceClassFluent fluent,V1DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClass build() { + V1DeviceClass buildable = new V1DeviceClass(); + 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/V1DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java new file mode 100644 index 0000000000..e6781fc0eb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClassConfigurationBuilder extends V1DeviceClassConfigurationFluent implements VisitableBuilder{ + + V1DeviceClassConfigurationFluent fluent; + + public V1DeviceClassConfigurationBuilder() { + this(new V1DeviceClassConfiguration()); + } + + public V1DeviceClassConfigurationBuilder(V1DeviceClassConfigurationFluent fluent) { + this(fluent, new V1DeviceClassConfiguration()); + } + + public V1DeviceClassConfigurationBuilder(V1DeviceClassConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceClassConfigurationBuilder(V1DeviceClassConfigurationFluent fluent,V1DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClassConfiguration build() { + V1DeviceClassConfiguration buildable = new V1DeviceClassConfiguration(); + buildable.setOpaque(fluent.buildOpaque()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java new file mode 100644 index 0000000000..e65259c3ce --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClassConfigurationFluent> extends BaseFluent{ + + private V1OpaqueDeviceConfigurationBuilder opaque; + + public V1DeviceClassConfigurationFluent() { + } + + public V1DeviceClassConfigurationFluent(V1DeviceClassConfiguration instance) { + this.copyInstance(instance); + } + + public V1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + protected void copyInstance(V1DeviceClassConfiguration instance) { + instance = instance != null ? instance : new V1DeviceClassConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + } + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClassConfigurationFluent that = (V1DeviceClassConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + return true; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public int hashCode() { + return Objects.hash(opaque); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + } + sb.append("}"); + return sb.toString(); + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + public A withOpaque(V1OpaqueDeviceConfiguration opaque) { + this._visitables.remove("opaque"); + if (opaque != null) { + this.opaque = new V1OpaqueDeviceConfigurationBuilder(opaque); + this._visitables.get("opaque").add(this.opaque); + } else { + this.opaque = null; + this._visitables.get("opaque").remove(this.opaque); + } + return (A) this; + } + public class OpaqueNested extends V1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1OpaqueDeviceConfigurationBuilder builder; + + OpaqueNested(V1OpaqueDeviceConfiguration item) { + this.builder = new V1OpaqueDeviceConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClassConfigurationFluent.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/V1DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java new file mode 100644 index 0000000000..bb21b85d89 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClassFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1DeviceClassSpecBuilder spec; + + public V1DeviceClassFluent() { + } + + public V1DeviceClassFluent(V1DeviceClass instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1DeviceClass instance) { + instance = instance != null ? instance : new V1DeviceClass(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1DeviceClassSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1DeviceClassSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClassFluent that = (V1DeviceClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1DeviceClassSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1DeviceClassSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1DeviceClassSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClassFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1DeviceClassSpecFluent> implements Nested{ + + V1DeviceClassSpecBuilder builder; + + SpecNested(V1DeviceClassSpec item) { + this.builder = new V1DeviceClassSpecBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClassFluent.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/V1DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java new file mode 100644 index 0000000000..7a2991d066 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClassListBuilder extends V1DeviceClassListFluent implements VisitableBuilder{ + + V1DeviceClassListFluent fluent; + + public V1DeviceClassListBuilder() { + this(new V1DeviceClassList()); + } + + public V1DeviceClassListBuilder(V1DeviceClassListFluent fluent) { + this(fluent, new V1DeviceClassList()); + } + + public V1DeviceClassListBuilder(V1DeviceClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceClassListBuilder(V1DeviceClassListFluent fluent,V1DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClassList build() { + V1DeviceClassList buildable = new V1DeviceClassList(); + 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/V1DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java new file mode 100644 index 0000000000..219cfdad02 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClassListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1DeviceClassListFluent() { + } + + public V1DeviceClassListFluent(V1DeviceClassList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1DeviceClass item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1DeviceClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1DeviceClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(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 V1DeviceClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1DeviceClass buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1DeviceClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1DeviceClass buildMatchingItem(Predicate predicate) { + for (V1DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1DeviceClassList instance) { + instance = instance != null ? instance : new V1DeviceClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClassListFluent that = (V1DeviceClassListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1DeviceClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1DeviceClass item : items) { + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DeviceClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1DeviceClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1DeviceClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1DeviceClassBuilder builder = new V1DeviceClassBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1DeviceClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1DeviceClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1DeviceClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1DeviceClassFluent> implements Nested{ + + V1DeviceClassBuilder builder; + int index; + + ItemsNested(int index,V1DeviceClass item) { + this.index = index; + this.builder = new V1DeviceClassBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClassListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClassListFluent.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/V1DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java new file mode 100644 index 0000000000..23e5f732d8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceClassSpecBuilder extends V1DeviceClassSpecFluent implements VisitableBuilder{ + + V1DeviceClassSpecFluent fluent; + + public V1DeviceClassSpecBuilder() { + this(new V1DeviceClassSpec()); + } + + public V1DeviceClassSpecBuilder(V1DeviceClassSpecFluent fluent) { + this(fluent, new V1DeviceClassSpec()); + } + + public V1DeviceClassSpecBuilder(V1DeviceClassSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceClassSpecBuilder(V1DeviceClassSpecFluent fluent,V1DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceClassSpec build() { + V1DeviceClassSpec buildable = new V1DeviceClassSpec(); + buildable.setConfig(fluent.buildConfig()); + buildable.setExtendedResourceName(fluent.getExtendedResourceName()); + buildable.setSelectors(fluent.buildSelectors()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java new file mode 100644 index 0000000000..611db21c53 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java @@ -0,0 +1,557 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceClassSpecFluent> extends BaseFluent{ + + private ArrayList config; + private String extendedResourceName; + private ArrayList selectors; + + public V1DeviceClassSpecFluent() { + } + + public V1DeviceClassSpecFluent(V1DeviceClassSpec instance) { + this.copyInstance(instance); + } + + public A addAllToConfig(Collection items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public A addToConfig(V1DeviceClassConfiguration... items) { + if (this.config == null) { + this.config = new ArrayList(); + } + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").add(builder); + this.config.add(builder); + } + return (A) this; + } + + public A addToConfig(int index,V1DeviceClassConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(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 addToSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A addToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(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 List buildConfig() { + return this.config != null ? build(config) : null; + } + + public V1DeviceClassConfiguration buildConfig(int index) { + return this.config.get(index).build(); + } + + public V1DeviceClassConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1DeviceClassConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { + for (V1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + protected void copyInstance(V1DeviceClassSpec instance) { + instance = instance != null ? instance : new V1DeviceClassSpec(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withExtendedResourceName(instance.getExtendedResourceName()); + this.withSelectors(instance.getSelectors()); + } + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceClassSpecFluent that = (V1DeviceClassSpecFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + return true; + } + + public String getExtendedResourceName() { + return this.extendedResourceName; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasExtendedResourceName() { + return this.extendedResourceName != null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, extendedResourceName, selectors); + } + + public A removeAllFromConfig(Collection items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeFromConfig(V1DeviceClassConfiguration... items) { + if (this.config == null) { + return (A) this; + } + for (V1DeviceClassConfiguration item : items) { + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); + _visitables.get("config").remove(builder); + this.config.remove(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + List visitables = _visitables.get("config"); + while (each.hasNext()) { + V1DeviceClassConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConfigNested setNewConfigLike(int index,V1DeviceClassConfiguration item) { + return new ConfigNested(index, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public A setToConfig(int index,V1DeviceClassConfiguration item) { + if (this.config == null) { + this.config = new ArrayList(); + } + V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(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 setToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(extendedResourceName == null)) { + sb.append("extendedResourceName:"); + sb.append(extendedResourceName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + } + sb.append("}"); + return sb.toString(); + } + + public A withConfig(List config) { + if (this.config != null) { + this._visitables.get("config").clear(); + } + if (config != null) { + this.config = new ArrayList(); + for (V1DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } else { + this.config = null; + } + return (A) this; + } + + public A withConfig(V1DeviceClassConfiguration... config) { + if (this.config != null) { + this.config.clear(); + _visitables.remove("config"); + } + if (config != null) { + for (V1DeviceClassConfiguration item : config) { + this.addToConfig(item); + } + } + return (A) this; + } + + public A withExtendedResourceName(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + return (A) this; + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + public class ConfigNested extends V1DeviceClassConfigurationFluent> implements Nested{ + + V1DeviceClassConfigurationBuilder builder; + int index; + + ConfigNested(int index,V1DeviceClassConfiguration item) { + this.index = index; + this.builder = new V1DeviceClassConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClassSpecFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + } + public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ + + V1DeviceSelectorBuilder builder; + int index; + + SelectorsNested(int index,V1DeviceSelector item) { + this.index = index; + this.builder = new V1DeviceSelectorBuilder(this, item); + } + + public N and() { + return (N) V1DeviceClassSpecFluent.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/V1DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java new file mode 100644 index 0000000000..4f847cd9cd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceConstraintBuilder extends V1DeviceConstraintFluent implements VisitableBuilder{ + + V1DeviceConstraintFluent fluent; + + public V1DeviceConstraintBuilder() { + this(new V1DeviceConstraint()); + } + + public V1DeviceConstraintBuilder(V1DeviceConstraintFluent fluent) { + this(fluent, new V1DeviceConstraint()); + } + + public V1DeviceConstraintBuilder(V1DeviceConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceConstraintBuilder(V1DeviceConstraintFluent fluent,V1DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceConstraint build() { + V1DeviceConstraint buildable = new V1DeviceConstraint(); + buildable.setDistinctAttribute(fluent.getDistinctAttribute()); + 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/V1DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java new file mode 100644 index 0000000000..164ccdb1cd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java @@ -0,0 +1,233 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceConstraintFluent> extends BaseFluent{ + + private String distinctAttribute; + private String matchAttribute; + private List requests; + + public V1DeviceConstraintFluent() { + } + + public V1DeviceConstraintFluent(V1DeviceConstraint instance) { + this.copyInstance(instance); + } + + 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 addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + protected void copyInstance(V1DeviceConstraint instance) { + instance = instance != null ? instance : new V1DeviceConstraint(); + if (instance != null) { + this.withDistinctAttribute(instance.getDistinctAttribute()); + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceConstraintFluent that = (V1DeviceConstraintFluent) o; + if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { + return false; + } + if (!(Objects.equals(matchAttribute, that.matchAttribute))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public String getDistinctAttribute() { + return this.distinctAttribute; + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchAttribute() { + return this.matchAttribute; + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public boolean hasDistinctAttribute() { + return this.distinctAttribute != null; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(distinctAttribute, matchAttribute, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(distinctAttribute == null)) { + sb.append("distinctAttribute:"); + sb.append(distinctAttribute); + sb.append(","); + } + if (!(matchAttribute == null)) { + sb.append("matchAttribute:"); + sb.append(matchAttribute); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public A withDistinctAttribute(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return (A) this; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + 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(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; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java new file mode 100644 index 0000000000..4ee96aeb17 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceCounterConsumptionBuilder extends V1DeviceCounterConsumptionFluent implements VisitableBuilder{ + + V1DeviceCounterConsumptionFluent fluent; + + public V1DeviceCounterConsumptionBuilder() { + this(new V1DeviceCounterConsumption()); + } + + public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1DeviceCounterConsumption()); + } + + public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceCounterConsumptionBuilder(V1DeviceCounterConsumptionFluent fluent,V1DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceCounterConsumption build() { + V1DeviceCounterConsumption buildable = new V1DeviceCounterConsumption(); + 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/V1DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java new file mode 100644 index 0000000000..5069e72320 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceCounterConsumptionFluent> extends BaseFluent{ + + private String counterSet; + private Map counters; + + public V1DeviceCounterConsumptionFluent() { + } + + public V1DeviceCounterConsumptionFluent(V1DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + + 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 addToCounters(String key,V1Counter 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; + } + + protected void copyInstance(V1DeviceCounterConsumption instance) { + instance = instance != null ? instance : new V1DeviceCounterConsumption(); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceCounterConsumptionFluent that = (V1DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(counterSet, that.counterSet))) { + return false; + } + if (!(Objects.equals(counters, that.counters))) { + return false; + } + return true; + } + + public String getCounterSet() { + return this.counterSet; + } + + public Map getCounters() { + return this.counters; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public int hashCode() { + return Objects.hash(counterSet, counters); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(counterSet == null)) { + sb.append("counterSet:"); + sb.append(counterSet); + sb.append(","); + } + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + } + sb.append("}"); + return sb.toString(); + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java new file mode 100644 index 0000000000..c76f3614b6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java @@ -0,0 +1,1132 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceFluent> extends BaseFluent{ + + private Boolean allNodes; + private Boolean allowMultipleAllocations; + private Map attributes; + private List bindingConditions; + private List bindingFailureConditions; + private Boolean bindsToNode; + private Map capacity; + private ArrayList consumesCounters; + private String name; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; + + public V1DeviceFluent() { + } + + public V1DeviceFluent(V1Device instance) { + this.copyInstance(instance); + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addAllToConsumesCounters(Collection items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } + return (A) this; + } + + public A addAllToTaints(Collection items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; + } + + public ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1DeviceTaint item) { + return new TaintsNested(-1, item); + } + + 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 addToAttributes(String key,V1DeviceAttribute 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 addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + 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 addToCapacity(String key,V1DeviceCapacity 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 addToConsumesCounters(V1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); + } + return (A) this; + } + + public A addToConsumesCounters(int index,V1DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(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 addToTaints(V1DeviceTaint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; + } + + public A addToTaints(int index,V1DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(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 V1DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public V1DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + protected void copyInstance(V1Device instance) { + instance = instance != null ? instance : new V1Device(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); + this.withAttributes(instance.getAttributes()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withBindsToNode(instance.getBindsToNode()); + 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 ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(0, this.buildTaint(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < consumesCounters.size();i++) { + if (predicate.test(consumesCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i = 0;i < taints.size();i++) { + if (predicate.test(taints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceFluent that = (V1DeviceFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { + return false; + } + if (!(Objects.equals(attributes, that.attributes))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(bindsToNode, that.bindsToNode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(consumesCounters, that.consumesCounters))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(taints, that.taints))) { + return false; + } + return true; + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public Boolean getAllowMultipleAllocations() { + return this.allowMultipleAllocations; + } + + public Map getAttributes() { + return this.attributes; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public Boolean getBindsToNode() { + return this.bindsToNode; + } + + public Map getCapacity() { + return this.capacity; + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getName() { + return this.name; + } + + public String getNodeName() { + return this.nodeName; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public boolean hasAllowMultipleAllocations() { + return this.allowMultipleAllocations != null; + } + + public boolean hasAttributes() { + return this.attributes != null; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public boolean hasBindsToNode() { + return this.bindsToNode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public boolean hasTaints() { + return this.taints != null && !(this.taints.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromConsumesCounters(Collection items) { + if (this.consumesCounters == null) { + return (A) this; + } + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); + } + return (A) this; + } + + public A removeAllFromTaints(Collection items) { + if (this.taints == null) { + return (A) this; + } + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + 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 A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + 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 A removeFromConsumesCounters(V1DeviceCounterConsumption... items) { + if (this.consumesCounters == null) { + return (A) this; + } + for (V1DeviceCounterConsumption item : items) { + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); + _visitables.get("consumesCounters").remove(builder); + this.consumesCounters.remove(builder); + } + return (A) this; + } + + public A removeFromTaints(V1DeviceTaint... items) { + if (this.taints == null) { + return (A) this; + } + for (V1DeviceTaint item : items) { + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) { + return (A) this; + } + Iterator each = consumesCounters.iterator(); + List visitables = _visitables.get("consumesCounters"); + while (each.hasNext()) { + V1DeviceCounterConsumptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) { + return (A) this; + } + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1DeviceTaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConsumesCountersNested setNewConsumesCounterLike(int index,V1DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public TaintsNested setNewTaintLike(int index,V1DeviceTaint item) { + return new TaintsNested(index, item); + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A setToConsumesCounters(int index,V1DeviceCounterConsumption item) { + if (this.consumesCounters == null) { + this.consumesCounters = new ArrayList(); + } + V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(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 setToTaints(int index,V1DeviceTaint item) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allNodes == null)) { + sb.append("allNodes:"); + sb.append(allNodes); + sb.append(","); + } + if (!(allowMultipleAllocations == null)) { + sb.append("allowMultipleAllocations:"); + sb.append(allowMultipleAllocations); + sb.append(","); + } + if (!(attributes == null) && !(attributes.isEmpty())) { + sb.append("attributes:"); + sb.append(attributes); + sb.append(","); + } + if (!(bindingConditions == null) && !(bindingConditions.isEmpty())) { + sb.append("bindingConditions:"); + sb.append(bindingConditions); + sb.append(","); + } + if (!(bindingFailureConditions == null) && !(bindingFailureConditions.isEmpty())) { + sb.append("bindingFailureConditions:"); + sb.append(bindingFailureConditions); + sb.append(","); + } + if (!(bindsToNode == null)) { + sb.append("bindsToNode:"); + sb.append(bindsToNode); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(consumesCounters == null) && !(consumesCounters.isEmpty())) { + sb.append("consumesCounters:"); + sb.append(consumesCounters); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(taints == null) && !(taints.isEmpty())) { + sb.append("taints:"); + sb.append(taints); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllNodes() { + return withAllNodes(true); + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public A withAllowMultipleAllocations() { + return withAllowMultipleAllocations(true); + } + + public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return (A) this; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public A withBindsToNode() { + return withBindsToNode(true); + } + + public A withBindsToNode(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return (A) this; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public A withConsumesCounters(List consumesCounters) { + if (this.consumesCounters != null) { + this._visitables.get("consumesCounters").clear(); + } + if (consumesCounters != null) { + this.consumesCounters = new ArrayList(); + for (V1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } else { + this.consumesCounters = null; + } + return (A) this; + } + + public A withConsumesCounters(V1DeviceCounterConsumption... consumesCounters) { + if (this.consumesCounters != null) { + this.consumesCounters.clear(); + _visitables.remove("consumesCounters"); + } + if (consumesCounters != null) { + for (V1DeviceCounterConsumption item : consumesCounters) { + this.addToConsumesCounters(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + 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 A withTaints(List taints) { + if (this.taints != null) { + this._visitables.get("taints").clear(); + } + if (taints != null) { + this.taints = new ArrayList(); + for (V1DeviceTaint item : taints) { + this.addToTaints(item); + } + } else { + this.taints = null; + } + return (A) this; + } + + public A withTaints(V1DeviceTaint... taints) { + if (this.taints != null) { + this.taints.clear(); + _visitables.remove("taints"); + } + if (taints != null) { + for (V1DeviceTaint item : taints) { + this.addToTaints(item); + } + } + return (A) this; + } + public class ConsumesCountersNested extends V1DeviceCounterConsumptionFluent> implements Nested{ + + V1DeviceCounterConsumptionBuilder builder; + int index; + + ConsumesCountersNested(int index,V1DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1DeviceCounterConsumptionBuilder(this, item); + } + + public N and() { + return (N) V1DeviceFluent.this.setToConsumesCounters(index, builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + public N and() { + return (N) V1DeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + } + public class TaintsNested extends V1DeviceTaintFluent> implements Nested{ + + V1DeviceTaintBuilder builder; + int index; + + TaintsNested(int index,V1DeviceTaint item) { + this.index = index; + this.builder = new V1DeviceTaintBuilder(this, item); + } + + public N and() { + return (N) V1DeviceFluent.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/V1DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java new file mode 100644 index 0000000000..2ac69b176b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java @@ -0,0 +1,42 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceRequestAllocationResultBuilder extends V1DeviceRequestAllocationResultFluent implements VisitableBuilder{ + + V1DeviceRequestAllocationResultFluent fluent; + + public V1DeviceRequestAllocationResultBuilder() { + this(new V1DeviceRequestAllocationResult()); + } + + public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResultFluent fluent) { + this(fluent, new V1DeviceRequestAllocationResult()); + } + + public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceRequestAllocationResultBuilder(V1DeviceRequestAllocationResultFluent fluent,V1DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceRequestAllocationResult build() { + V1DeviceRequestAllocationResult buildable = new V1DeviceRequestAllocationResult(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setConsumedCapacity(fluent.getConsumedCapacity()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setRequest(fluent.getRequest()); + buildable.setShareID(fluent.getShareID()); + buildable.setTolerations(fluent.buildTolerations()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java new file mode 100644 index 0000000000..e321b21478 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java @@ -0,0 +1,772 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceRequestAllocationResultFluent> extends BaseFluent{ + + private Boolean adminAccess; + private List bindingConditions; + private List bindingFailureConditions; + private Map consumedCapacity; + private String device; + private String driver; + private String pool; + private String request; + private String shareID; + private ArrayList tolerations; + + public V1DeviceRequestAllocationResultFluent() { + } + + public V1DeviceRequestAllocationResultFluent(V1DeviceRequestAllocationResult instance) { + this.copyInstance(instance); + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; + } + + public A addToConsumedCapacity(Map map) { + if (this.consumedCapacity == null && map != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (map != null) { + this.consumedCapacity.putAll(map); + } + return (A) this; + } + + public A addToConsumedCapacity(String key,Quantity value) { + if (this.consumedCapacity == null && key != null && value != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.consumedCapacity.put(key, value); + } + return (A) this; + } + + public A addToTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public A addToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(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 V1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + protected void copyInstance(V1DeviceRequestAllocationResult instance) { + instance = instance != null ? instance : new V1DeviceRequestAllocationResult(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withConsumedCapacity(instance.getConsumedCapacity()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withShareID(instance.getShareID()); + this.withTolerations(instance.getTolerations()); + } + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceRequestAllocationResultFluent that = (V1DeviceRequestAllocationResultFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public Map getConsumedCapacity() { + return this.consumedCapacity; + } + + public String getDevice() { + return this.device; + } + + public String getDriver() { + return this.driver; + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getPool() { + return this.pool; + } + + public String getRequest() { + return this.request; + } + + public String getShareID() { + return this.shareID; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public boolean hasConsumedCapacity() { + return this.consumedCapacity != null; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasRequest() { + return this.request != null; + } + + public boolean hasShareID() { + return this.shareID != null; + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeFromConsumedCapacity(String key) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (key != null && this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + return (A) this; + } + + public A removeFromConsumedCapacity(Map map) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + } + } + return (A) this; + } + + public A removeFromTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + return (A) this; + } + + public A setToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(adminAccess == null)) { + sb.append("adminAccess:"); + sb.append(adminAccess); + sb.append(","); + } + if (!(bindingConditions == null) && !(bindingConditions.isEmpty())) { + sb.append("bindingConditions:"); + sb.append(bindingConditions); + sb.append(","); + } + if (!(bindingFailureConditions == null) && !(bindingFailureConditions.isEmpty())) { + sb.append("bindingFailureConditions:"); + sb.append(bindingFailureConditions); + sb.append(","); + } + if (!(consumedCapacity == null) && !(consumedCapacity.isEmpty())) { + sb.append("consumedCapacity:"); + sb.append(consumedCapacity); + sb.append(","); + } + if (!(device == null)) { + sb.append("device:"); + sb.append(device); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(request == null)) { + sb.append("request:"); + sb.append(request); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdminAccess() { + return withAdminAccess(true); + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public A withConsumedCapacity(Map consumedCapacity) { + if (consumedCapacity == null) { + this.consumedCapacity = null; + } else { + this.consumedCapacity = new LinkedHashMap(consumedCapacity); + } + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + public class TolerationsNested extends V1DeviceTolerationFluent> implements Nested{ + + V1DeviceTolerationBuilder builder; + int index; + + TolerationsNested(int index,V1DeviceToleration item) { + this.index = index; + this.builder = new V1DeviceTolerationBuilder(this, item); + } + + public N and() { + return (N) V1DeviceRequestAllocationResultFluent.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/V1DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java new file mode 100644 index 0000000000..f1b0ed783e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceRequestBuilder extends V1DeviceRequestFluent implements VisitableBuilder{ + + V1DeviceRequestFluent fluent; + + public V1DeviceRequestBuilder() { + this(new V1DeviceRequest()); + } + + public V1DeviceRequestBuilder(V1DeviceRequestFluent fluent) { + this(fluent, new V1DeviceRequest()); + } + + public V1DeviceRequestBuilder(V1DeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceRequestBuilder(V1DeviceRequestFluent fluent,V1DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceRequest build() { + V1DeviceRequest buildable = new V1DeviceRequest(); + 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/V1DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java new file mode 100644 index 0000000000..ee1201b158 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java @@ -0,0 +1,388 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceRequestFluent> extends BaseFluent{ + + private V1ExactDeviceRequestBuilder exactly; + private ArrayList firstAvailable; + private String name; + + public V1DeviceRequestFluent() { + } + + public V1DeviceRequestFluent(V1DeviceRequest instance) { + this.copyInstance(instance); + } + + public A addAllToFirstAvailable(Collection items) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); + } + return (A) this; + } + + public FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public A addToFirstAvailable(V1DeviceSubRequest... items) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); + } + return (A) this; + } + + public A addToFirstAvailable(int index,V1DeviceSubRequest item) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(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 V1ExactDeviceRequest buildExactly() { + return this.exactly != null ? this.exactly.build() : null; + } + + public List buildFirstAvailable() { + return this.firstAvailable != null ? build(firstAvailable) : null; + } + + public V1DeviceSubRequest buildFirstAvailable(int index) { + return this.firstAvailable.get(index).build(); + } + + public V1DeviceSubRequest buildFirstFirstAvailable() { + return this.firstAvailable.get(0).build(); + } + + public V1DeviceSubRequest buildLastFirstAvailable() { + return this.firstAvailable.get(firstAvailable.size() - 1).build(); + } + + public V1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + protected void copyInstance(V1DeviceRequest instance) { + instance = instance != null ? instance : new V1DeviceRequest(); + if (instance != null) { + this.withExactly(instance.getExactly()); + this.withFirstAvailable(instance.getFirstAvailable()); + this.withName(instance.getName()); + } + } + + public ExactlyNested editExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(null)); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (firstAvailable.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(0, this.buildFirstAvailable(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i = 0;i < firstAvailable.size();i++) { + if (predicate.test(firstAvailable.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public ExactlyNested editOrNewExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(new V1ExactDeviceRequestBuilder().build())); + } + + public ExactlyNested editOrNewExactlyLike(V1ExactDeviceRequest item) { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceRequestFluent that = (V1DeviceRequestFluent) o; + if (!(Objects.equals(exactly, that.exactly))) { + return false; + } + if (!(Objects.equals(firstAvailable, that.firstAvailable))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public boolean hasExactly() { + return this.exactly != null; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(exactly, firstAvailable, name); + } + + public A removeAllFromFirstAvailable(Collection items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; + } + + public A removeFromFirstAvailable(V1DeviceSubRequest... items) { + if (this.firstAvailable == null) { + return (A) this; + } + for (V1DeviceSubRequest item : items) { + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); + _visitables.get("firstAvailable").remove(builder); + this.firstAvailable.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) { + return (A) this; + } + Iterator each = firstAvailable.iterator(); + List visitables = _visitables.get("firstAvailable"); + while (each.hasNext()) { + V1DeviceSubRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public FirstAvailableNested setNewFirstAvailableLike(int index,V1DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public A setToFirstAvailable(int index,V1DeviceSubRequest item) { + if (this.firstAvailable == null) { + this.firstAvailable = new ArrayList(); + } + V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(exactly == null)) { + sb.append("exactly:"); + sb.append(exactly); + sb.append(","); + } + if (!(firstAvailable == null) && !(firstAvailable.isEmpty())) { + sb.append("firstAvailable:"); + sb.append(firstAvailable); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withExactly(V1ExactDeviceRequest exactly) { + this._visitables.remove("exactly"); + if (exactly != null) { + this.exactly = new V1ExactDeviceRequestBuilder(exactly); + this._visitables.get("exactly").add(this.exactly); + } else { + this.exactly = null; + this._visitables.get("exactly").remove(this.exactly); + } + return (A) this; + } + + public A withFirstAvailable(List firstAvailable) { + if (this.firstAvailable != null) { + this._visitables.get("firstAvailable").clear(); + } + if (firstAvailable != null) { + this.firstAvailable = new ArrayList(); + for (V1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } else { + this.firstAvailable = null; + } + return (A) this; + } + + public A withFirstAvailable(V1DeviceSubRequest... firstAvailable) { + if (this.firstAvailable != null) { + this.firstAvailable.clear(); + _visitables.remove("firstAvailable"); + } + if (firstAvailable != null) { + for (V1DeviceSubRequest item : firstAvailable) { + this.addToFirstAvailable(item); + } + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public ExactlyNested withNewExactly() { + return new ExactlyNested(null); + } + + public ExactlyNested withNewExactlyLike(V1ExactDeviceRequest item) { + return new ExactlyNested(item); + } + public class ExactlyNested extends V1ExactDeviceRequestFluent> implements Nested{ + + V1ExactDeviceRequestBuilder builder; + + ExactlyNested(V1ExactDeviceRequest item) { + this.builder = new V1ExactDeviceRequestBuilder(this, item); + } + + public N and() { + return (N) V1DeviceRequestFluent.this.withExactly(builder.build()); + } + + public N endExactly() { + return and(); + } + + } + public class FirstAvailableNested extends V1DeviceSubRequestFluent> implements Nested{ + + V1DeviceSubRequestBuilder builder; + int index; + + FirstAvailableNested(int index,V1DeviceSubRequest item) { + this.index = index; + this.builder = new V1DeviceSubRequestBuilder(this, item); + } + + public N and() { + return (N) V1DeviceRequestFluent.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/V1DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java new file mode 100644 index 0000000000..9ad4765978 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceSelectorBuilder extends V1DeviceSelectorFluent implements VisitableBuilder{ + + V1DeviceSelectorFluent fluent; + + public V1DeviceSelectorBuilder() { + this(new V1DeviceSelector()); + } + + public V1DeviceSelectorBuilder(V1DeviceSelectorFluent fluent) { + this(fluent, new V1DeviceSelector()); + } + + public V1DeviceSelectorBuilder(V1DeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceSelectorBuilder(V1DeviceSelectorFluent fluent,V1DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceSelector build() { + V1DeviceSelector buildable = new V1DeviceSelector(); + buildable.setCel(fluent.buildCel()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java new file mode 100644 index 0000000000..1ae971783d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceSelectorFluent> extends BaseFluent{ + + private V1CELDeviceSelectorBuilder cel; + + public V1DeviceSelectorFluent() { + } + + public V1DeviceSelectorFluent(V1DeviceSelector instance) { + this.copyInstance(instance); + } + + public V1CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } + + protected void copyInstance(V1DeviceSelector instance) { + instance = instance != null ? instance : new V1DeviceSelector(); + if (instance != null) { + this.withCel(instance.getCel()); + } + } + + public CelNested editCel() { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); + } + + public CelNested editOrNewCel() { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(new V1CELDeviceSelectorBuilder().build())); + } + + public CelNested editOrNewCelLike(V1CELDeviceSelector item) { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceSelectorFluent that = (V1DeviceSelectorFluent) o; + if (!(Objects.equals(cel, that.cel))) { + return false; + } + return true; + } + + public boolean hasCel() { + return this.cel != null; + } + + public int hashCode() { + return Objects.hash(cel); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cel == null)) { + sb.append("cel:"); + sb.append(cel); + } + sb.append("}"); + return sb.toString(); + } + + public A withCel(V1CELDeviceSelector cel) { + this._visitables.remove("cel"); + if (cel != null) { + this.cel = new V1CELDeviceSelectorBuilder(cel); + this._visitables.get("cel").add(this.cel); + } else { + this.cel = null; + this._visitables.get("cel").remove(this.cel); + } + return (A) this; + } + + public CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1CELDeviceSelector item) { + return new CelNested(item); + } + public class CelNested extends V1CELDeviceSelectorFluent> implements Nested{ + + V1CELDeviceSelectorBuilder builder; + + CelNested(V1CELDeviceSelector item) { + this.builder = new V1CELDeviceSelectorBuilder(this, item); + } + + public N and() { + return (N) V1DeviceSelectorFluent.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/V1DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java new file mode 100644 index 0000000000..d3493dd0ce --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceSubRequestBuilder extends V1DeviceSubRequestFluent implements VisitableBuilder{ + + V1DeviceSubRequestFluent fluent; + + public V1DeviceSubRequestBuilder() { + this(new V1DeviceSubRequest()); + } + + public V1DeviceSubRequestBuilder(V1DeviceSubRequestFluent fluent) { + this(fluent, new V1DeviceSubRequest()); + } + + public V1DeviceSubRequestBuilder(V1DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceSubRequestBuilder(V1DeviceSubRequestFluent fluent,V1DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceSubRequest build() { + V1DeviceSubRequest buildable = new V1DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); + 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/V1DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java new file mode 100644 index 0000000000..74e7b11037 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java @@ -0,0 +1,695 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceSubRequestFluent> extends BaseFluent{ + + private String allocationMode; + private V1CapacityRequirementsBuilder capacity; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + public V1DeviceSubRequestFluent() { + } + + public V1DeviceSubRequestFluent(V1DeviceSubRequest instance) { + this.copyInstance(instance); + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public A addToSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A addToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(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 addToTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public A addToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(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 V1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public V1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + protected void copyInstance(V1DeviceSubRequest instance) { + instance = instance != null ? instance : new V1DeviceSubRequest(); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceSubRequestFluent that = (V1DeviceSubRequestFluent) o; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public Long getCount() { + return this.count; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public String getName() { + return this.name; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public A setToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(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 setToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationMode == null)) { + sb.append("allocationMode:"); + sb.append(allocationMode); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(deviceClassName == null)) { + sb.append("deviceClassName:"); + sb.append(deviceClassName); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { + return new CapacityNested(item); + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + public class CapacityNested extends V1CapacityRequirementsFluent> implements Nested{ + + V1CapacityRequirementsBuilder builder; + + CapacityNested(V1CapacityRequirements item) { + this.builder = new V1CapacityRequirementsBuilder(this, item); + } + + public N and() { + return (N) V1DeviceSubRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } + public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ + + V1DeviceSelectorBuilder builder; + int index; + + SelectorsNested(int index,V1DeviceSelector item) { + this.index = index; + this.builder = new V1DeviceSelectorBuilder(this, item); + } + + public N and() { + return (N) V1DeviceSubRequestFluent.this.setToSelectors(index, builder.build()); + } + + public N endSelector() { + return and(); + } + + } + public class TolerationsNested extends V1DeviceTolerationFluent> implements Nested{ + + V1DeviceTolerationBuilder builder; + int index; + + TolerationsNested(int index,V1DeviceToleration item) { + this.index = index; + this.builder = new V1DeviceTolerationBuilder(this, item); + } + + public N and() { + return (N) V1DeviceSubRequestFluent.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/V1DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java new file mode 100644 index 0000000000..5f7a712efe --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceTaintBuilder extends V1DeviceTaintFluent implements VisitableBuilder{ + + V1DeviceTaintFluent fluent; + + public V1DeviceTaintBuilder() { + this(new V1DeviceTaint()); + } + + public V1DeviceTaintBuilder(V1DeviceTaintFluent fluent) { + this(fluent, new V1DeviceTaint()); + } + + public V1DeviceTaintBuilder(V1DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceTaintBuilder(V1DeviceTaintFluent fluent,V1DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceTaint build() { + V1DeviceTaint buildable = new V1DeviceTaint(); + 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/V1DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java new file mode 100644 index 0000000000..1be1ff4574 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java @@ -0,0 +1,147 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceTaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + public V1DeviceTaintFluent() { + } + + public V1DeviceTaintFluent(V1DeviceTaint instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1DeviceTaint instance) { + instance = instance != null ? instance : new V1DeviceTaint(); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withTimeAdded(instance.getTimeAdded()); + this.withValue(instance.getValue()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceTaintFluent that = (V1DeviceTaintFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(effect, key, timeAdded, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java new file mode 100644 index 0000000000..2421c6a5e0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1DeviceTolerationBuilder extends V1DeviceTolerationFluent implements VisitableBuilder{ + + V1DeviceTolerationFluent fluent; + + public V1DeviceTolerationBuilder() { + this(new V1DeviceToleration()); + } + + public V1DeviceTolerationBuilder(V1DeviceTolerationFluent fluent) { + this(fluent, new V1DeviceToleration()); + } + + public V1DeviceTolerationBuilder(V1DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1DeviceTolerationBuilder(V1DeviceTolerationFluent fluent,V1DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1DeviceToleration build() { + V1DeviceToleration buildable = new V1DeviceToleration(); + 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/V1DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java new file mode 100644 index 0000000000..97169ceb6d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java @@ -0,0 +1,170 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1DeviceTolerationFluent> extends BaseFluent{ + + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + public V1DeviceTolerationFluent() { + } + + public V1DeviceTolerationFluent(V1DeviceToleration instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1DeviceToleration instance) { + instance = instance != null ? instance : new V1DeviceToleration(); + if (instance != null) { + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DeviceTolerationFluent that = (V1DeviceTolerationFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(tolerationSeconds, that.tolerationSeconds))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public String getOperator() { + return this.operator; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(effect, key, operator, tolerationSeconds, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(tolerationSeconds == null)) { + sb.append("tolerationSeconds:"); + sb.append(tolerationSeconds); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java index 7dc4c576f7..e9b75b40ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DownwardAPIProjectionBuilder extends V1DownwardAPIProjectionFluent implements VisitableBuilder{ + + V1DownwardAPIProjectionFluent fluent; + public V1DownwardAPIProjectionBuilder() { this(new V1DownwardAPIProjection()); } @@ -10,22 +14,20 @@ public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent) { this(fluent, new V1DownwardAPIProjection()); } - public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent,V1DownwardAPIProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1DownwardAPIProjectionFluent fluent; + public V1DownwardAPIProjectionBuilder(V1DownwardAPIProjectionFluent fluent,V1DownwardAPIProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DownwardAPIProjection build() { V1DownwardAPIProjection buildable = new V1DownwardAPIProjection(); buildable.setItems(fluent.buildItems()); return buildable; } - } \ No newline at end of file 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..686ad0d3a8 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 @@ -1,95 +1,91 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DownwardAPIProjectionFluent> extends BaseFluent{ +public class V1DownwardAPIProjectionFluent> extends BaseFluent{ + + private ArrayList items; + public V1DownwardAPIProjectionFluent() { } public V1DownwardAPIProjectionFluent(V1DownwardAPIProjection instance) { this.copyInstance(instance); } - private ArrayList items; - - protected void copyInstance(V1DownwardAPIProjection instance) { - instance = (instance != null ? instance : new V1DownwardAPIProjection()); - if (instance != null) { - this.withItems(instance.getItems()); - } - } - - 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);} - 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);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(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 (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(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 (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) return (A)this; - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { + return new ItemsNested(-1, item); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A addToItems(V1DownwardAPIVolumeFile... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").add(builder); + this.items.add(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()) { - V1DownwardAPIVolumeFileBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToItems(int index,V1DownwardAPIVolumeFile item) { + if (this.items == null) { + this.items = new ArrayList(); } - return (A)this; + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(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 List buildItems() { - return this.items != null ? build(items) : null; + public V1DownwardAPIVolumeFile buildFirstItem() { + return this.items.get(0).build(); } public V1DownwardAPIVolumeFile buildItem(int index) { return this.items.get(index).build(); } - public V1DownwardAPIVolumeFile buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1DownwardAPIVolumeFile buildLastItem() { @@ -105,6 +101,70 @@ public V1DownwardAPIVolumeFile buildMatchingItem(Predicate editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DownwardAPIProjectionFluent that = (V1DownwardAPIProjectionFluent) o; + if (!(Objects.equals(items, that.items))) { + return false; + } + return true; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + public boolean hasMatchingItem(Predicate predicate) { for (V1DownwardAPIVolumeFileBuilder item : items) { if (predicate.test(item)) { @@ -114,6 +174,80 @@ public boolean hasMatchingItem(Predicate predica return false; } + public int hashCode() { + return Objects.hash(items); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1DownwardAPIVolumeFile... items) { + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DownwardAPIVolumeFileBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + } + sb.append("}"); + return sb.toString(); + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -129,7 +263,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { + public A withItems(V1DownwardAPIVolumeFile... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -141,85 +275,23 @@ public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile.. } return (A) this; } + public class ItemsNested extends V1DownwardAPIVolumeFileFluent> implements Nested{ - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile 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 extends V1DownwardAPIVolumeFileFluent> implements Nested{ ItemsNested(int index,V1DownwardAPIVolumeFile item) { this.index = index; this.builder = new V1DownwardAPIVolumeFileBuilder(this, item); } - V1DownwardAPIVolumeFileBuilder builder; - int index; - + public N and() { - return (N) V1DownwardAPIProjectionFluent.this.setToItems(index,builder.build()); + return (N) V1DownwardAPIProjectionFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java index 6d89ac752d..fd0629a898 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DownwardAPIVolumeFileBuilder extends V1DownwardAPIVolumeFileFluent implements VisitableBuilder{ + + V1DownwardAPIVolumeFileFluent fluent; + public V1DownwardAPIVolumeFileBuilder() { this(new V1DownwardAPIVolumeFile()); } @@ -10,17 +14,16 @@ public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent) { this(fluent, new V1DownwardAPIVolumeFile()); } - public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent,V1DownwardAPIVolumeFile instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFile instance) { this.fluent = this; this.copyInstance(instance); } - V1DownwardAPIVolumeFileFluent fluent; + public V1DownwardAPIVolumeFileBuilder(V1DownwardAPIVolumeFileFluent fluent,V1DownwardAPIVolumeFile instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DownwardAPIVolumeFile build() { V1DownwardAPIVolumeFile buildable = new V1DownwardAPIVolumeFile(); buildable.setFieldRef(fluent.buildFieldRef()); @@ -30,5 +33,4 @@ public V1DownwardAPIVolumeFile build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java index 3a115a0dc4..c9c591875b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java @@ -1,176 +1,212 @@ 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.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DownwardAPIVolumeFileFluent> extends BaseFluent{ - public V1DownwardAPIVolumeFileFluent() { - } - - public V1DownwardAPIVolumeFileFluent(V1DownwardAPIVolumeFile instance) { - this.copyInstance(instance); - } +public class V1DownwardAPIVolumeFileFluent> extends BaseFluent{ + private V1ObjectFieldSelectorBuilder fieldRef; private Integer mode; private String path; private V1ResourceFieldSelectorBuilder resourceFieldRef; - - protected void copyInstance(V1DownwardAPIVolumeFile instance) { - instance = (instance != null ? instance : new V1DownwardAPIVolumeFile()); - if (instance != null) { - this.withFieldRef(instance.getFieldRef()); - this.withMode(instance.getMode()); - this.withPath(instance.getPath()); - this.withResourceFieldRef(instance.getResourceFieldRef()); - } + + public V1DownwardAPIVolumeFileFluent() { } + public V1DownwardAPIVolumeFileFluent(V1DownwardAPIVolumeFile instance) { + this.copyInstance(instance); + } + public V1ObjectFieldSelector buildFieldRef() { return this.fieldRef != null ? this.fieldRef.build() : null; } - public A withFieldRef(V1ObjectFieldSelector fieldRef) { - this._visitables.remove("fieldRef"); - if (fieldRef != null) { - this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); - this._visitables.get("fieldRef").add(this.fieldRef); - } else { - this.fieldRef = null; - this._visitables.get("fieldRef").remove(this.fieldRef); + public V1ResourceFieldSelector buildResourceFieldRef() { + return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + } + + protected void copyInstance(V1DownwardAPIVolumeFile instance) { + instance = instance != null ? instance : new V1DownwardAPIVolumeFile(); + if (instance != null) { + this.withFieldRef(instance.getFieldRef()); + this.withMode(instance.getMode()); + this.withPath(instance.getPath()); + this.withResourceFieldRef(instance.getResourceFieldRef()); } - return (A) this; } - public boolean hasFieldRef() { - return this.fieldRef != null; + public FieldRefNested editFieldRef() { + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(null)); } - public FieldRefNested withNewFieldRef() { - return new FieldRefNested(null); + public FieldRefNested editOrNewFieldRef() { + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(new V1ObjectFieldSelectorBuilder().build())); } - public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { - return new FieldRefNested(item); + public FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(item)); } - public FieldRefNested editFieldRef() { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(null)); + public ResourceFieldRefNested editOrNewResourceFieldRef() { + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); } - public FieldRefNested editOrNewFieldRef() { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(new V1ObjectFieldSelectorBuilder().build())); + public ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item) { + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(item)); } - public FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(item)); + public ResourceFieldRefNested editResourceFieldRef() { + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DownwardAPIVolumeFileFluent that = (V1DownwardAPIVolumeFileFluent) o; + if (!(Objects.equals(fieldRef, that.fieldRef))) { + return false; + } + if (!(Objects.equals(mode, that.mode))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(resourceFieldRef, that.resourceFieldRef))) { + return false; + } + return true; } public Integer getMode() { return this.mode; } - public A withMode(Integer mode) { - this.mode = mode; - return (A) this; + public String getPath() { + return this.path; + } + + public boolean hasFieldRef() { + return this.fieldRef != null; } public boolean hasMode() { return this.mode != null; } - public String getPath() { - return this.path; + public boolean hasPath() { + return this.path != null; } - public A withPath(String path) { - this.path = path; - return (A) this; + public boolean hasResourceFieldRef() { + return this.resourceFieldRef != null; } - public boolean hasPath() { - return this.path != null; + public int hashCode() { + return Objects.hash(fieldRef, mode, path, resourceFieldRef); } - public V1ResourceFieldSelector buildResourceFieldRef() { - return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fieldRef == null)) { + sb.append("fieldRef:"); + sb.append(fieldRef); + sb.append(","); + } + if (!(mode == null)) { + sb.append("mode:"); + sb.append(mode); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(resourceFieldRef == null)) { + sb.append("resourceFieldRef:"); + sb.append(resourceFieldRef); + } + sb.append("}"); + return sb.toString(); } - public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { - this._visitables.remove("resourceFieldRef"); - if (resourceFieldRef != null) { - this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); - this._visitables.get("resourceFieldRef").add(this.resourceFieldRef); + public A withFieldRef(V1ObjectFieldSelector fieldRef) { + this._visitables.remove("fieldRef"); + if (fieldRef != null) { + this.fieldRef = new V1ObjectFieldSelectorBuilder(fieldRef); + this._visitables.get("fieldRef").add(this.fieldRef); } else { - this.resourceFieldRef = null; - this._visitables.get("resourceFieldRef").remove(this.resourceFieldRef); + this.fieldRef = null; + this._visitables.get("fieldRef").remove(this.fieldRef); } return (A) this; } - public boolean hasResourceFieldRef() { - return this.resourceFieldRef != null; + public A withMode(Integer mode) { + this.mode = mode; + return (A) this; } - public ResourceFieldRefNested withNewResourceFieldRef() { - return new ResourceFieldRefNested(null); + public FieldRefNested withNewFieldRef() { + return new FieldRefNested(null); } - public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return new ResourceFieldRefNested(item); + public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { + return new FieldRefNested(item); } - public ResourceFieldRefNested editResourceFieldRef() { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(null)); + public ResourceFieldRefNested withNewResourceFieldRef() { + return new ResourceFieldRefNested(null); } - public ResourceFieldRefNested editOrNewResourceFieldRef() { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); + public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { + return new ResourceFieldRefNested(item); } - public ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(item)); + public A withPath(String path) { + this.path = path; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1DownwardAPIVolumeFileFluent that = (V1DownwardAPIVolumeFileFluent) o; - if (!java.util.Objects.equals(fieldRef, that.fieldRef)) return false; - if (!java.util.Objects.equals(mode, that.mode)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(resourceFieldRef, that.resourceFieldRef)) return false; - return true; + public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { + this._visitables.remove("resourceFieldRef"); + if (resourceFieldRef != null) { + this.resourceFieldRef = new V1ResourceFieldSelectorBuilder(resourceFieldRef); + this._visitables.get("resourceFieldRef").add(this.resourceFieldRef); + } else { + this.resourceFieldRef = null; + this._visitables.get("resourceFieldRef").remove(this.resourceFieldRef); + } + return (A) this; } + public class FieldRefNested extends V1ObjectFieldSelectorFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(fieldRef, mode, path, resourceFieldRef, super.hashCode()); - } + V1ObjectFieldSelectorBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } - if (mode != null) { sb.append("mode:"); sb.append(mode + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (resourceFieldRef != null) { sb.append("resourceFieldRef:"); sb.append(resourceFieldRef); } - sb.append("}"); - return sb.toString(); - } - public class FieldRefNested extends V1ObjectFieldSelectorFluent> implements Nested{ FieldRefNested(V1ObjectFieldSelector item) { this.builder = new V1ObjectFieldSelectorBuilder(this, item); } - V1ObjectFieldSelectorBuilder builder; - + public N and() { return (N) V1DownwardAPIVolumeFileFluent.this.withFieldRef(builder.build()); } @@ -179,14 +215,15 @@ public N endFieldRef() { return and(); } - } public class ResourceFieldRefNested extends V1ResourceFieldSelectorFluent> implements Nested{ + + V1ResourceFieldSelectorBuilder builder; + ResourceFieldRefNested(V1ResourceFieldSelector item) { this.builder = new V1ResourceFieldSelectorBuilder(this, item); } - V1ResourceFieldSelectorBuilder builder; - + public N and() { return (N) V1DownwardAPIVolumeFileFluent.this.withResourceFieldRef(builder.build()); } @@ -195,7 +232,5 @@ public N endResourceFieldRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java index 38161d4c7c..7a3f944179 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1DownwardAPIVolumeSourceBuilder extends V1DownwardAPIVolumeSourceFluent implements VisitableBuilder{ + + V1DownwardAPIVolumeSourceFluent fluent; + public V1DownwardAPIVolumeSourceBuilder() { this(new V1DownwardAPIVolumeSource()); } @@ -10,17 +14,16 @@ public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluen this(fluent, new V1DownwardAPIVolumeSource()); } - public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluent,V1DownwardAPIVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1DownwardAPIVolumeSourceFluent fluent; + public V1DownwardAPIVolumeSourceBuilder(V1DownwardAPIVolumeSourceFluent fluent,V1DownwardAPIVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1DownwardAPIVolumeSource build() { V1DownwardAPIVolumeSource buildable = new V1DownwardAPIVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -28,5 +31,4 @@ public V1DownwardAPIVolumeSource build() { return buildable; } - } \ No newline at end of file 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..db91657e55 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 @@ -1,111 +1,93 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1DownwardAPIVolumeSourceFluent> extends BaseFluent{ +public class V1DownwardAPIVolumeSourceFluent> extends BaseFluent{ + + private Integer defaultMode; + private ArrayList items; + public V1DownwardAPIVolumeSourceFluent() { } public V1DownwardAPIVolumeSourceFluent(V1DownwardAPIVolumeSource instance) { this.copyInstance(instance); } - private Integer defaultMode; - private ArrayList items; - - protected void copyInstance(V1DownwardAPIVolumeSource instance) { - instance = (instance != null ? instance : new V1DownwardAPIVolumeSource()); - if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withItems(instance.getItems()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public Integer getDefaultMode() { - return this.defaultMode; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; + public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { + return new ItemsNested(-1, item); } - public boolean hasDefaultMode() { - return this.defaultMode != null; + public A addToItems(V1DownwardAPIVolumeFile... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } 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);} - return (A)this; - } - - public A setToItems(int index,V1DownwardAPIVolumeFile item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(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 (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items == null) return (A)this; - for (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(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 (V1DownwardAPIVolumeFile item : items) {V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(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()) { - V1DownwardAPIVolumeFileBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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; + return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1DownwardAPIVolumeFile buildFirstItem() { + return this.items.get(0).build(); } public V1DownwardAPIVolumeFile buildItem(int index) { return this.items.get(index).build(); } - public V1DownwardAPIVolumeFile buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1DownwardAPIVolumeFile buildLastItem() { @@ -121,123 +103,219 @@ public V1DownwardAPIVolumeFile buildMatchingItem(Predicate predicate) { - for (V1DownwardAPIVolumeFileBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1DownwardAPIVolumeSource instance) { + instance = instance != null ? instance : new V1DownwardAPIVolumeSource(); + if (instance != null) { + this.withDefaultMode(instance.getDefaultMode()); + this.withItems(instance.getItems()); + } } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - if (items != null) { - this.items = new ArrayList(); - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); - } - } else { - this.items = null; + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } - return (A) this; + return this.setNewItemLike(index, this.buildItem(index)); } - public A withItems(io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); } - if (items != null) { - for (V1DownwardAPIVolumeFile item : items) { - this.addToItems(item); + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1DownwardAPIVolumeSourceFluent that = (V1DownwardAPIVolumeSourceFluent) o; + if (!(Objects.equals(defaultMode, that.defaultMode))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + return true; } - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + public Integer getDefaultMode() { + return this.defaultMode; } - public ItemsNested addNewItemLike(V1DownwardAPIVolumeFile item) { - return new ItemsNested(-1, item); + public boolean hasDefaultMode() { + return this.defaultMode != null; } - public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { - return new ItemsNested(index, item); + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); } - 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 boolean hasMatchingItem(Predicate predicate) { + for (V1DownwardAPIVolumeFileBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 int hashCode() { + return Objects.hash(defaultMode, items); } - 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 A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1DownwardAPIVolumeFile item : items) { + V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1DownwardAPIVolumeFileBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(defaultMode, items, super.hashCode()); + public ItemsNested setNewItemLike(int index,V1DownwardAPIVolumeFile item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (defaultMode != null) { sb.append("defaultMode:"); sb.append(defaultMode + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items); } + if (!(defaultMode == null)) { + sb.append("defaultMode:"); + sb.append(defaultMode); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + } sb.append("}"); return sb.toString(); } + + public A withDefaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1DownwardAPIVolumeFile item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1DownwardAPIVolumeFile... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1DownwardAPIVolumeFile item : items) { + this.addToItems(item); + } + } + return (A) this; + } public class ItemsNested extends V1DownwardAPIVolumeFileFluent> implements Nested{ + + V1DownwardAPIVolumeFileBuilder builder; + int index; + ItemsNested(int index,V1DownwardAPIVolumeFile item) { this.index = index; this.builder = new V1DownwardAPIVolumeFileBuilder(this, item); } - V1DownwardAPIVolumeFileBuilder builder; - int index; - + public N and() { - return (N) V1DownwardAPIVolumeSourceFluent.this.setToItems(index,builder.build()); + return (N) V1DownwardAPIVolumeSourceFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java index 9804834195..c938c24926 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EmptyDirVolumeSourceBuilder extends V1EmptyDirVolumeSourceFluent implements VisitableBuilder{ + + V1EmptyDirVolumeSourceFluent fluent; + public V1EmptyDirVolumeSourceBuilder() { this(new V1EmptyDirVolumeSource()); } @@ -10,17 +14,16 @@ public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent) { this(fluent, new V1EmptyDirVolumeSource()); } - public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent,V1EmptyDirVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EmptyDirVolumeSourceFluent fluent; + public V1EmptyDirVolumeSourceBuilder(V1EmptyDirVolumeSourceFluent fluent,V1EmptyDirVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EmptyDirVolumeSource build() { V1EmptyDirVolumeSource buildable = new V1EmptyDirVolumeSource(); buildable.setMedium(fluent.getMedium()); @@ -28,5 +31,4 @@ public V1EmptyDirVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java index 8324dda51d..5ce9ab9c62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java @@ -1,85 +1,105 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EmptyDirVolumeSourceFluent> extends BaseFluent{ +public class V1EmptyDirVolumeSourceFluent> extends BaseFluent{ + + private String medium; + private Quantity sizeLimit; + public V1EmptyDirVolumeSourceFluent() { } public V1EmptyDirVolumeSourceFluent(V1EmptyDirVolumeSource instance) { this.copyInstance(instance); } - private String medium; - private Quantity sizeLimit; - + protected void copyInstance(V1EmptyDirVolumeSource instance) { - instance = (instance != null ? instance : new V1EmptyDirVolumeSource()); + instance = instance != null ? instance : new V1EmptyDirVolumeSource(); if (instance != null) { - this.withMedium(instance.getMedium()); - this.withSizeLimit(instance.getSizeLimit()); - } + this.withMedium(instance.getMedium()); + this.withSizeLimit(instance.getSizeLimit()); + } } - public String getMedium() { - return this.medium; - } - - public A withMedium(String medium) { - this.medium = medium; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EmptyDirVolumeSourceFluent that = (V1EmptyDirVolumeSourceFluent) o; + if (!(Objects.equals(medium, that.medium))) { + return false; + } + if (!(Objects.equals(sizeLimit, that.sizeLimit))) { + return false; + } + return true; } - public boolean hasMedium() { - return this.medium != null; + public String getMedium() { + return this.medium; } public Quantity getSizeLimit() { return this.sizeLimit; } - public A withSizeLimit(Quantity sizeLimit) { - this.sizeLimit = sizeLimit; - return (A) this; + public boolean hasMedium() { + return this.medium != null; } public boolean hasSizeLimit() { return this.sizeLimit != null; } - public A withNewSizeLimit(String value) { - return (A)withSizeLimit(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; - V1EmptyDirVolumeSourceFluent that = (V1EmptyDirVolumeSourceFluent) o; - if (!java.util.Objects.equals(medium, that.medium)) return false; - if (!java.util.Objects.equals(sizeLimit, that.sizeLimit)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(medium, sizeLimit, super.hashCode()); + return Objects.hash(medium, sizeLimit); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (medium != null) { sb.append("medium:"); sb.append(medium + ","); } - if (sizeLimit != null) { sb.append("sizeLimit:"); sb.append(sizeLimit); } + if (!(medium == null)) { + sb.append("medium:"); + sb.append(medium); + sb.append(","); + } + if (!(sizeLimit == null)) { + sb.append("sizeLimit:"); + sb.append(sizeLimit); + } sb.append("}"); return sb.toString(); } - + public A withMedium(String medium) { + this.medium = medium; + return (A) this; + } + + public A withNewSizeLimit(String value) { + return (A) this.withSizeLimit(new Quantity(value)); + } + + public A withSizeLimit(Quantity sizeLimit) { + this.sizeLimit = sizeLimit; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java index 5ff4651730..5c8d3b1c1c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointAddressBuilder extends V1EndpointAddressFluent implements VisitableBuilder{ + + V1EndpointAddressFluent fluent; + public V1EndpointAddressBuilder() { this(new V1EndpointAddress()); } @@ -10,17 +14,16 @@ public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent) { this(fluent, new V1EndpointAddress()); } - public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent,V1EndpointAddress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointAddressBuilder(V1EndpointAddress instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointAddressFluent fluent; + public V1EndpointAddressBuilder(V1EndpointAddressFluent fluent,V1EndpointAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointAddress build() { V1EndpointAddress buildable = new V1EndpointAddress(); buildable.setHostname(fluent.getHostname()); @@ -30,5 +33,4 @@ public V1EndpointAddress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java index 58a723d32e..613c0f1f64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java @@ -1,94 +1,150 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointAddressFluent> extends BaseFluent{ +public class V1EndpointAddressFluent> extends BaseFluent{ + + private String hostname; + private String ip; + private String nodeName; + private V1ObjectReferenceBuilder targetRef; + public V1EndpointAddressFluent() { } public V1EndpointAddressFluent(V1EndpointAddress instance) { this.copyInstance(instance); } - private String hostname; - private String ip; - private String nodeName; - private V1ObjectReferenceBuilder targetRef; + + public V1ObjectReference buildTargetRef() { + return this.targetRef != null ? this.targetRef.build() : null; + } protected void copyInstance(V1EndpointAddress instance) { - instance = (instance != null ? instance : new V1EndpointAddress()); + instance = instance != null ? instance : new V1EndpointAddress(); if (instance != null) { - this.withHostname(instance.getHostname()); - this.withIp(instance.getIp()); - this.withNodeName(instance.getNodeName()); - this.withTargetRef(instance.getTargetRef()); - } + this.withHostname(instance.getHostname()); + this.withIp(instance.getIp()); + this.withNodeName(instance.getNodeName()); + this.withTargetRef(instance.getTargetRef()); + } } - public String getHostname() { - return this.hostname; + public TargetRefNested editOrNewTargetRef() { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); } - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; + public TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(item)); } - public boolean hasHostname() { - return this.hostname != null; + public TargetRefNested editTargetRef() { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(null)); } - public String getIp() { - return this.ip; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointAddressFluent that = (V1EndpointAddressFluent) o; + if (!(Objects.equals(hostname, that.hostname))) { + return false; + } + if (!(Objects.equals(ip, that.ip))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(targetRef, that.targetRef))) { + return false; + } + return true; } - public A withIp(String ip) { - this.ip = ip; - return (A) this; + public String getHostname() { + return this.hostname; } - public boolean hasIp() { - return this.ip != null; + public String getIp() { + return this.ip; } public String getNodeName() { return this.nodeName; } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + public boolean hasHostname() { + return this.hostname != null; + } + + public boolean hasIp() { + return this.ip != null; } public boolean hasNodeName() { return this.nodeName != null; } - public V1ObjectReference buildTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; + public boolean hasTargetRef() { + return this.targetRef != null; } - public A withTargetRef(V1ObjectReference targetRef) { - this._visitables.remove("targetRef"); - if (targetRef != null) { - this.targetRef = new V1ObjectReferenceBuilder(targetRef); - this._visitables.get("targetRef").add(this.targetRef); - } else { - this.targetRef = null; - this._visitables.get("targetRef").remove(this.targetRef); + public int hashCode() { + return Objects.hash(hostname, ip, nodeName, targetRef); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hostname == null)) { + sb.append("hostname:"); + sb.append(hostname); + sb.append(","); + } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + sb.append(","); } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(targetRef == null)) { + sb.append("targetRef:"); + sb.append(targetRef); + } + sb.append("}"); + return sb.toString(); + } + + public A withHostname(String hostname) { + this.hostname = hostname; return (A) this; } - public boolean hasTargetRef() { - return this.targetRef != null; + public A withIp(String ip) { + this.ip = ip; + return (A) this; } public TargetRefNested withNewTargetRef() { @@ -99,50 +155,30 @@ public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { return new TargetRefNested(item); } - public TargetRefNested editTargetRef() { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(null)); - } - - public TargetRefNested editOrNewTargetRef() { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); - } - - public TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(item)); + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1EndpointAddressFluent that = (V1EndpointAddressFluent) 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(nodeName, that.nodeName)) return false; - if (!java.util.Objects.equals(targetRef, that.targetRef)) return false; - return true; + public A withTargetRef(V1ObjectReference targetRef) { + this._visitables.remove("targetRef"); + if (targetRef != null) { + this.targetRef = new V1ObjectReferenceBuilder(targetRef); + this._visitables.get("targetRef").add(this.targetRef); + } else { + this.targetRef = null; + this._visitables.get("targetRef").remove(this.targetRef); + } + return (A) this; } + public class TargetRefNested extends V1ObjectReferenceFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(hostname, ip, nodeName, targetRef, super.hashCode()); - } + V1ObjectReferenceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (hostname != null) { sb.append("hostname:"); sb.append(hostname + ","); } - if (ip != null) { sb.append("ip:"); sb.append(ip + ","); } - if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName + ","); } - if (targetRef != null) { sb.append("targetRef:"); sb.append(targetRef); } - sb.append("}"); - return sb.toString(); - } - public class TargetRefNested extends V1ObjectReferenceFluent> implements Nested{ TargetRefNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1EndpointAddressFluent.this.withTargetRef(builder.build()); } @@ -151,7 +187,5 @@ public N endTargetRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java index 9175c40dd6..c4ea50ad2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointBuilder extends V1EndpointFluent implements VisitableBuilder{ + + V1EndpointFluent fluent; + public V1EndpointBuilder() { this(new V1Endpoint()); } @@ -10,17 +14,16 @@ public V1EndpointBuilder(V1EndpointFluent fluent) { this(fluent, new V1Endpoint()); } - public V1EndpointBuilder(V1EndpointFluent fluent,V1Endpoint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointBuilder(V1Endpoint instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointFluent fluent; + public V1EndpointBuilder(V1EndpointFluent fluent,V1Endpoint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Endpoint build() { V1Endpoint buildable = new V1Endpoint(); buildable.setAddresses(fluent.getAddresses()); @@ -34,5 +37,4 @@ public V1Endpoint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java index d208ada8ce..40787b2ffc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointConditionsBuilder extends V1EndpointConditionsFluent implements VisitableBuilder{ + + V1EndpointConditionsFluent fluent; + public V1EndpointConditionsBuilder() { this(new V1EndpointConditions()); } @@ -10,17 +14,16 @@ public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent) { this(fluent, new V1EndpointConditions()); } - public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent,V1EndpointConditions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointConditionsBuilder(V1EndpointConditions instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointConditionsFluent fluent; + public V1EndpointConditionsBuilder(V1EndpointConditionsFluent fluent,V1EndpointConditions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointConditions build() { V1EndpointConditions buildable = new V1EndpointConditions(); buildable.setReady(fluent.getReady()); @@ -29,5 +32,4 @@ public V1EndpointConditions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java index 6d25454f51..88f84a89a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java @@ -1,95 +1,107 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointConditionsFluent> extends BaseFluent{ +public class V1EndpointConditionsFluent> extends BaseFluent{ + + private Boolean ready; + private Boolean serving; + private Boolean terminating; + public V1EndpointConditionsFluent() { } public V1EndpointConditionsFluent(V1EndpointConditions instance) { this.copyInstance(instance); } - private Boolean ready; - private Boolean serving; - private Boolean terminating; - + protected void copyInstance(V1EndpointConditions instance) { - instance = (instance != null ? instance : new V1EndpointConditions()); + instance = instance != null ? instance : new V1EndpointConditions(); if (instance != null) { - this.withReady(instance.getReady()); - this.withServing(instance.getServing()); - this.withTerminating(instance.getTerminating()); - } - } - - public Boolean getReady() { - return this.ready; + this.withReady(instance.getReady()); + this.withServing(instance.getServing()); + this.withTerminating(instance.getTerminating()); + } } - public A withReady(Boolean ready) { - this.ready = ready; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointConditionsFluent that = (V1EndpointConditionsFluent) o; + if (!(Objects.equals(ready, that.ready))) { + return false; + } + if (!(Objects.equals(serving, that.serving))) { + return false; + } + if (!(Objects.equals(terminating, that.terminating))) { + return false; + } + return true; } - public boolean hasReady() { - return this.ready != null; + public Boolean getReady() { + return this.ready; } public Boolean getServing() { return this.serving; } - public A withServing(Boolean serving) { - this.serving = serving; - return (A) this; - } - - public boolean hasServing() { - return this.serving != null; - } - public Boolean getTerminating() { return this.terminating; } - public A withTerminating(Boolean terminating) { - this.terminating = terminating; - return (A) this; + public boolean hasReady() { + return this.ready != null; } - public boolean hasTerminating() { - return this.terminating != null; + public boolean hasServing() { + return this.serving != 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; - V1EndpointConditionsFluent that = (V1EndpointConditionsFluent) o; - if (!java.util.Objects.equals(ready, that.ready)) return false; - if (!java.util.Objects.equals(serving, that.serving)) return false; - if (!java.util.Objects.equals(terminating, that.terminating)) return false; - return true; + public boolean hasTerminating() { + return this.terminating != null; } public int hashCode() { - return java.util.Objects.hash(ready, serving, terminating, super.hashCode()); + return Objects.hash(ready, serving, terminating); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ready != null) { sb.append("ready:"); sb.append(ready + ","); } - if (serving != null) { sb.append("serving:"); sb.append(serving + ","); } - if (terminating != null) { sb.append("terminating:"); sb.append(terminating); } + if (!(ready == null)) { + sb.append("ready:"); + sb.append(ready); + sb.append(","); + } + if (!(serving == null)) { + sb.append("serving:"); + sb.append(serving); + sb.append(","); + } + if (!(terminating == null)) { + sb.append("terminating:"); + sb.append(terminating); + } sb.append("}"); return sb.toString(); } @@ -98,13 +110,27 @@ public A withReady() { return withReady(true); } + public A withReady(Boolean ready) { + this.ready = ready; + return (A) this; + } + public A withServing() { return withServing(true); } + public A withServing(Boolean serving) { + this.serving = serving; + return (A) this; + } + public A withTerminating() { return withTerminating(true); } - + public A withTerminating(Boolean terminating) { + this.terminating = terminating; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java index 835e17a843..4ff354053d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java @@ -1,28 +1,26 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.LinkedHashMap; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; import java.util.List; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointFluent> extends BaseFluent{ - public V1EndpointFluent() { - } - - public V1EndpointFluent(V1Endpoint instance) { - this.copyInstance(instance); - } +public class V1EndpointFluent> extends BaseFluent{ + private List addresses; private V1EndpointConditionsBuilder conditions; private Map deprecatedTopology; @@ -31,64 +29,182 @@ public V1EndpointFluent(V1Endpoint instance) { private String nodeName; private V1ObjectReferenceBuilder targetRef; private String zone; + + public V1EndpointFluent() { + } - protected void copyInstance(V1Endpoint instance) { - instance = (instance != null ? instance : new V1Endpoint()); - if (instance != null) { - this.withAddresses(instance.getAddresses()); - this.withConditions(instance.getConditions()); - this.withDeprecatedTopology(instance.getDeprecatedTopology()); - this.withHints(instance.getHints()); - this.withHostname(instance.getHostname()); - this.withNodeName(instance.getNodeName()); - this.withTargetRef(instance.getTargetRef()); - this.withZone(instance.getZone()); - } + public V1EndpointFluent(V1Endpoint instance) { + this.copyInstance(instance); + } + + public A addAllToAddresses(Collection items) { + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (String item : items) { + this.addresses.add(item); + } + return (A) this; + } + + public A addToAddresses(String... items) { + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (String item : items) { + this.addresses.add(item); + } + return (A) this; } public A addToAddresses(int index,String item) { - if (this.addresses == null) {this.addresses = new ArrayList();} + if (this.addresses == null) { + this.addresses = new ArrayList(); + } this.addresses.add(index, item); - return (A)this; + return (A) this; } - public A setToAddresses(int index,String item) { - if (this.addresses == null) {this.addresses = new ArrayList();} - this.addresses.set(index, item); return (A)this; + public A addToDeprecatedTopology(Map map) { + if (this.deprecatedTopology == null && map != null) { + this.deprecatedTopology = new LinkedHashMap(); + } + if (map != null) { + this.deprecatedTopology.putAll(map); + } + return (A) this; } - public A addToAddresses(java.lang.String... items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (String item : items) {this.addresses.add(item);} return (A)this; + public A addToDeprecatedTopology(String key,String value) { + if (this.deprecatedTopology == null && key != null && value != null) { + this.deprecatedTopology = new LinkedHashMap(); + } + if (key != null && value != null) { + this.deprecatedTopology.put(key, value); + } + return (A) this; } - public A addAllToAddresses(Collection items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (String item : items) {this.addresses.add(item);} return (A)this; + public V1EndpointConditions buildConditions() { + return this.conditions != null ? this.conditions.build() : null; } - public A removeFromAddresses(java.lang.String... items) { - if (this.addresses == null) return (A)this; - for (String item : items) { this.addresses.remove(item);} return (A)this; + public V1EndpointHints buildHints() { + return this.hints != null ? this.hints.build() : null; } - public A removeAllFromAddresses(Collection items) { - if (this.addresses == null) return (A)this; - for (String item : items) { this.addresses.remove(item);} return (A)this; + public V1ObjectReference buildTargetRef() { + return this.targetRef != null ? this.targetRef.build() : null; } - public List getAddresses() { - return this.addresses; + protected void copyInstance(V1Endpoint instance) { + instance = instance != null ? instance : new V1Endpoint(); + if (instance != null) { + this.withAddresses(instance.getAddresses()); + this.withConditions(instance.getConditions()); + this.withDeprecatedTopology(instance.getDeprecatedTopology()); + this.withHints(instance.getHints()); + this.withHostname(instance.getHostname()); + this.withNodeName(instance.getNodeName()); + this.withTargetRef(instance.getTargetRef()); + this.withZone(instance.getZone()); + } + } + + public ConditionsNested editConditions() { + return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(null)); + } + + public HintsNested editHints() { + return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(null)); + } + + public ConditionsNested editOrNewConditions() { + return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(new V1EndpointConditionsBuilder().build())); + } + + public ConditionsNested editOrNewConditionsLike(V1EndpointConditions item) { + return this.withNewConditionsLike(Optional.ofNullable(this.buildConditions()).orElse(item)); + } + + public HintsNested editOrNewHints() { + return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(new V1EndpointHintsBuilder().build())); + } + + public HintsNested editOrNewHintsLike(V1EndpointHints item) { + return this.withNewHintsLike(Optional.ofNullable(this.buildHints()).orElse(item)); + } + + public TargetRefNested editOrNewTargetRef() { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); + } + + public TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(item)); + } + + public TargetRefNested editTargetRef() { + return this.withNewTargetRefLike(Optional.ofNullable(this.buildTargetRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointFluent that = (V1EndpointFluent) o; + if (!(Objects.equals(addresses, that.addresses))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(deprecatedTopology, that.deprecatedTopology))) { + return false; + } + if (!(Objects.equals(hints, that.hints))) { + return false; + } + if (!(Objects.equals(hostname, that.hostname))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(targetRef, that.targetRef))) { + return false; + } + if (!(Objects.equals(zone, that.zone))) { + return false; + } + return true; } public String getAddress(int index) { return this.addresses.get(index); } + public List getAddresses() { + return this.addresses; + } + + public Map getDeprecatedTopology() { + return this.deprecatedTopology; + } + public String getFirstAddress() { return this.addresses.get(0); } + public String getHostname() { + return this.hostname; + } + public String getLastAddress() { return this.addresses.get(addresses.size() - 1); } @@ -102,6 +218,34 @@ public String getMatchingAddress(Predicate predicate) { return null; } + public String getNodeName() { + return this.nodeName; + } + + public String getZone() { + return this.zone; + } + + public boolean hasAddresses() { + return this.addresses != null && !(this.addresses.isEmpty()); + } + + public boolean hasConditions() { + return this.conditions != null; + } + + public boolean hasDeprecatedTopology() { + return this.deprecatedTopology != null; + } + + public boolean hasHints() { + return this.hints != null; + } + + public boolean hasHostname() { + return this.hostname != null; + } + public boolean hasMatchingAddress(Predicate predicate) { for (String item : addresses) { if (predicate.test(item)) { @@ -111,6 +255,120 @@ public boolean hasMatchingAddress(Predicate predicate) { return false; } + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasTargetRef() { + return this.targetRef != null; + } + + public boolean hasZone() { + return this.zone != null; + } + + public int hashCode() { + return Objects.hash(addresses, conditions, deprecatedTopology, hints, hostname, nodeName, targetRef, zone); + } + + public A removeAllFromAddresses(Collection items) { + if (this.addresses == null) { + return (A) this; + } + for (String item : items) { + this.addresses.remove(item); + } + return (A) this; + } + + public A removeFromAddresses(String... items) { + if (this.addresses == null) { + return (A) this; + } + for (String item : items) { + this.addresses.remove(item); + } + return (A) this; + } + + public A removeFromDeprecatedTopology(String key) { + if (this.deprecatedTopology == null) { + return (A) this; + } + if (key != null && this.deprecatedTopology != null) { + this.deprecatedTopology.remove(key); + } + return (A) this; + } + + public A removeFromDeprecatedTopology(Map map) { + if (this.deprecatedTopology == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.deprecatedTopology != null) { + this.deprecatedTopology.remove(key); + } + } + } + return (A) this; + } + + public A setToAddresses(int index,String item) { + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + this.addresses.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(addresses == null) && !(addresses.isEmpty())) { + sb.append("addresses:"); + sb.append(addresses); + sb.append(","); + } + if (!(conditions == null)) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(deprecatedTopology == null) && !(deprecatedTopology.isEmpty())) { + sb.append("deprecatedTopology:"); + sb.append(deprecatedTopology); + sb.append(","); + } + if (!(hints == null)) { + sb.append("hints:"); + sb.append(hints); + sb.append(","); + } + if (!(hostname == null)) { + sb.append("hostname:"); + sb.append(hostname); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(targetRef == null)) { + sb.append("targetRef:"); + sb.append(targetRef); + sb.append(","); + } + if (!(zone == null)) { + sb.append("zone:"); + sb.append(zone); + } + sb.append("}"); + return sb.toString(); + } + public A withAddresses(List addresses) { if (addresses != null) { this.addresses = new ArrayList(); @@ -123,7 +381,7 @@ public A withAddresses(List addresses) { return (A) this; } - public A withAddresses(java.lang.String... addresses) { + public A withAddresses(String... addresses) { if (this.addresses != null) { this.addresses.clear(); _visitables.remove("addresses"); @@ -136,14 +394,6 @@ public A withAddresses(java.lang.String... addresses) { return (A) this; } - public boolean hasAddresses() { - return this.addresses != null && !this.addresses.isEmpty(); - } - - public V1EndpointConditions buildConditions() { - return this.conditions != null ? this.conditions.build() : null; - } - public A withConditions(V1EndpointConditions conditions) { this._visitables.remove("conditions"); if (conditions != null) { @@ -156,54 +406,6 @@ public A withConditions(V1EndpointConditions conditions) { return (A) this; } - public boolean hasConditions() { - return this.conditions != null; - } - - public ConditionsNested withNewConditions() { - return new ConditionsNested(null); - } - - public ConditionsNested withNewConditionsLike(V1EndpointConditions item) { - return new ConditionsNested(item); - } - - public ConditionsNested editConditions() { - return withNewConditionsLike(java.util.Optional.ofNullable(buildConditions()).orElse(null)); - } - - public ConditionsNested editOrNewConditions() { - return withNewConditionsLike(java.util.Optional.ofNullable(buildConditions()).orElse(new V1EndpointConditionsBuilder().build())); - } - - public ConditionsNested editOrNewConditionsLike(V1EndpointConditions item) { - return withNewConditionsLike(java.util.Optional.ofNullable(buildConditions()).orElse(item)); - } - - public A addToDeprecatedTopology(String key,String value) { - if(this.deprecatedTopology == null && key != null && value != null) { this.deprecatedTopology = new LinkedHashMap(); } - if(key != null && value != null) {this.deprecatedTopology.put(key, value);} return (A)this; - } - - public A addToDeprecatedTopology(Map map) { - if(this.deprecatedTopology == null && map != null) { this.deprecatedTopology = new LinkedHashMap(); } - if(map != null) { this.deprecatedTopology.putAll(map);} return (A)this; - } - - public A removeFromDeprecatedTopology(String key) { - if(this.deprecatedTopology == null) { return (A) this; } - if(key != null && this.deprecatedTopology != null) {this.deprecatedTopology.remove(key);} return (A)this; - } - - public A removeFromDeprecatedTopology(Map map) { - if(this.deprecatedTopology == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.deprecatedTopology != null){this.deprecatedTopology.remove(key);}}} return (A)this; - } - - public Map getDeprecatedTopology() { - return this.deprecatedTopology; - } - public A withDeprecatedTopology(Map deprecatedTopology) { if (deprecatedTopology == null) { this.deprecatedTopology = null; @@ -213,14 +415,6 @@ public A withDeprecatedTopology(Map deprecatedTopology) { return (A) this; } - public boolean hasDeprecatedTopology() { - return this.deprecatedTopology != null; - } - - public V1EndpointHints buildHints() { - return this.hints != null ? this.hints.build() : null; - } - public A withHints(V1EndpointHints hints) { this._visitables.remove("hints"); if (hints != null) { @@ -233,45 +427,33 @@ public A withHints(V1EndpointHints hints) { return (A) this; } - public boolean hasHints() { - return this.hints != null; - } - - public HintsNested withNewHints() { - return new HintsNested(null); - } - - public HintsNested withNewHintsLike(V1EndpointHints item) { - return new HintsNested(item); - } - - public HintsNested editHints() { - return withNewHintsLike(java.util.Optional.ofNullable(buildHints()).orElse(null)); + public A withHostname(String hostname) { + this.hostname = hostname; + return (A) this; } - public HintsNested editOrNewHints() { - return withNewHintsLike(java.util.Optional.ofNullable(buildHints()).orElse(new V1EndpointHintsBuilder().build())); + public ConditionsNested withNewConditions() { + return new ConditionsNested(null); } - public HintsNested editOrNewHintsLike(V1EndpointHints item) { - return withNewHintsLike(java.util.Optional.ofNullable(buildHints()).orElse(item)); + public ConditionsNested withNewConditionsLike(V1EndpointConditions item) { + return new ConditionsNested(item); } - public String getHostname() { - return this.hostname; + public HintsNested withNewHints() { + return new HintsNested(null); } - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; + public HintsNested withNewHintsLike(V1EndpointHints item) { + return new HintsNested(item); } - public boolean hasHostname() { - return this.hostname != null; + public TargetRefNested withNewTargetRef() { + return new TargetRefNested(null); } - public String getNodeName() { - return this.nodeName; + public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { + return new TargetRefNested(item); } public A withNodeName(String nodeName) { @@ -279,14 +461,6 @@ public A withNodeName(String nodeName) { return (A) this; } - public boolean hasNodeName() { - return this.nodeName != null; - } - - public V1ObjectReference buildTargetRef() { - return this.targetRef != null ? this.targetRef.build() : null; - } - public A withTargetRef(V1ObjectReference targetRef) { this._visitables.remove("targetRef"); if (targetRef != null) { @@ -299,83 +473,18 @@ public A withTargetRef(V1ObjectReference targetRef) { return (A) this; } - public boolean hasTargetRef() { - return this.targetRef != null; - } - - public TargetRefNested withNewTargetRef() { - return new TargetRefNested(null); - } - - public TargetRefNested withNewTargetRefLike(V1ObjectReference item) { - return new TargetRefNested(item); - } - - public TargetRefNested editTargetRef() { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(null)); - } - - public TargetRefNested editOrNewTargetRef() { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(new V1ObjectReferenceBuilder().build())); - } - - public TargetRefNested editOrNewTargetRefLike(V1ObjectReference item) { - return withNewTargetRefLike(java.util.Optional.ofNullable(buildTargetRef()).orElse(item)); - } - - public String getZone() { - return this.zone; - } - public A withZone(String zone) { this.zone = zone; return (A) this; } + public class ConditionsNested extends V1EndpointConditionsFluent> implements Nested{ - public boolean hasZone() { - return this.zone != 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; - V1EndpointFluent that = (V1EndpointFluent) o; - if (!java.util.Objects.equals(addresses, that.addresses)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(deprecatedTopology, that.deprecatedTopology)) return false; - if (!java.util.Objects.equals(hints, that.hints)) return false; - if (!java.util.Objects.equals(hostname, that.hostname)) return false; - if (!java.util.Objects.equals(nodeName, that.nodeName)) return false; - if (!java.util.Objects.equals(targetRef, that.targetRef)) return false; - if (!java.util.Objects.equals(zone, that.zone)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(addresses, conditions, deprecatedTopology, hints, hostname, nodeName, targetRef, zone, super.hashCode()); - } + V1EndpointConditionsBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (addresses != null && !addresses.isEmpty()) { sb.append("addresses:"); sb.append(addresses + ","); } - if (conditions != null) { sb.append("conditions:"); sb.append(conditions + ","); } - if (deprecatedTopology != null && !deprecatedTopology.isEmpty()) { sb.append("deprecatedTopology:"); sb.append(deprecatedTopology + ","); } - if (hints != null) { sb.append("hints:"); sb.append(hints + ","); } - if (hostname != null) { sb.append("hostname:"); sb.append(hostname + ","); } - if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName + ","); } - if (targetRef != null) { sb.append("targetRef:"); sb.append(targetRef + ","); } - if (zone != null) { sb.append("zone:"); sb.append(zone); } - sb.append("}"); - return sb.toString(); - } - public class ConditionsNested extends V1EndpointConditionsFluent> implements Nested{ ConditionsNested(V1EndpointConditions item) { this.builder = new V1EndpointConditionsBuilder(this, item); } - V1EndpointConditionsBuilder builder; - + public N and() { return (N) V1EndpointFluent.this.withConditions(builder.build()); } @@ -384,14 +493,15 @@ public N endConditions() { return and(); } - } public class HintsNested extends V1EndpointHintsFluent> implements Nested{ + + V1EndpointHintsBuilder builder; + HintsNested(V1EndpointHints item) { this.builder = new V1EndpointHintsBuilder(this, item); } - V1EndpointHintsBuilder builder; - + public N and() { return (N) V1EndpointFluent.this.withHints(builder.build()); } @@ -400,14 +510,15 @@ public N endHints() { return and(); } - } public class TargetRefNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + TargetRefNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1EndpointFluent.this.withTargetRef(builder.build()); } @@ -416,7 +527,5 @@ public N endTargetRef() { return and(); } - } - } \ No newline at end of file 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..8130af5f7f 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointHintsBuilder extends V1EndpointHintsFluent implements VisitableBuilder{ + + V1EndpointHintsFluent fluent; + public V1EndpointHintsBuilder() { this(new V1EndpointHints()); } @@ -10,22 +14,21 @@ public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent) { this(fluent, new V1EndpointHints()); } - public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent,V1EndpointHints instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointHintsBuilder(V1EndpointHints instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointHintsFluent fluent; + public V1EndpointHintsBuilder(V1EndpointHintsFluent fluent,V1EndpointHints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointHints build() { V1EndpointHints buildable = new V1EndpointHints(); + buildable.setForNodes(fluent.buildForNodes()); buildable.setForZones(fluent.buildForZones()); return buildable; } - } \ No newline at end of file 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..c91a38b87b 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 @@ -1,101 +1,170 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointHintsFluent> extends BaseFluent{ +public class V1EndpointHintsFluent> extends BaseFluent{ + + private ArrayList forNodes; + private ArrayList forZones; + public V1EndpointHintsFluent() { } public V1EndpointHintsFluent(V1EndpointHints instance) { this.copyInstance(instance); } - private ArrayList forZones; + + 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; + } - protected void copyInstance(V1EndpointHints instance) { - instance = (instance != null ? instance : new V1EndpointHints()); - if (instance != null) { - this.withForZones(instance.getForZones()); - } + public A addAllToForZones(Collection items) { + if (this.forZones == null) { + this.forZones = new ArrayList(); + } + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").add(builder); + this.forZones.add(builder); + } + return (A) this; } - public A addToForZones(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").add(index, builder); forZones.add(index, builder);} - return (A)this; + public ForNodesNested addNewForNode() { + return new ForNodesNested(-1, null); } - 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);} - return (A)this; + public ForNodesNested addNewForNodeLike(V1ForNode item) { + return new ForNodesNested(-1, item); } - public A addToForZones(io.kubernetes.client.openapi.models.V1ForZone... items) { - if (this.forZones == null) {this.forZones = new ArrayList();} - for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").add(builder);this.forZones.add(builder);} return (A)this; + public ForZonesNested addNewForZone() { + return new ForZonesNested(-1, null); } - public A addAllToForZones(Collection items) { - if (this.forZones == null) {this.forZones = new ArrayList();} - for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").add(builder);this.forZones.add(builder);} return (A)this; + public ForZonesNested addNewForZoneLike(V1ForZone item) { + return new ForZonesNested(-1, item); } - public A removeFromForZones(io.kubernetes.client.openapi.models.V1ForZone... items) { - if (this.forZones == null) return (A)this; - for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").remove(builder); this.forZones.remove(builder);} return (A)this; + public A addToForNodes(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 removeAllFromForZones(Collection items) { - if (this.forZones == null) return (A)this; - for (V1ForZone item : items) {V1ForZoneBuilder builder = new V1ForZoneBuilder(item);_visitables.get("forZones").remove(builder); this.forZones.remove(builder);} return (A)this; + 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 removeMatchingFromForZones(Predicate predicate) { - if (forZones == null) return (A) this; - final Iterator each = forZones.iterator(); - final List visitables = _visitables.get("forZones"); - while (each.hasNext()) { - V1ForZoneBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToForZones(V1ForZone... items) { + if (this.forZones == null) { + this.forZones = new ArrayList(); } - return (A)this; + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").add(builder); + this.forZones.add(builder); + } + return (A) this; } - public List buildForZones() { - return this.forZones != null ? build(forZones) : null; + public A addToForZones(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").add(builder); + forZones.add(index, builder); + } + return (A) this; } - public V1ForZone buildForZone(int index) { - return this.forZones.get(index).build(); + public V1ForNode buildFirstForNode() { + return this.forNodes.get(0).build(); } public V1ForZone buildFirstForZone() { return this.forZones.get(0).build(); } + public V1ForNode buildForNode(int index) { + return this.forNodes.get(index).build(); + } + + public List buildForNodes() { + return this.forNodes != null ? build(forNodes) : null; + } + + public V1ForZone buildForZone(int index) { + return this.forZones.get(index).build(); + } + + public List buildForZones() { + return this.forZones != null ? build(forZones) : null; + } + + public V1ForNode buildLastForNode() { + return this.forNodes.get(forNodes.size() - 1).build(); + } + public V1ForZone buildLastForZone() { return this.forZones.get(forZones.size() - 1).build(); } + public V1ForNode buildMatchingForNode(Predicate predicate) { + for (V1ForNodeBuilder item : forNodes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1ForZone buildMatchingForZone(Predicate predicate) { for (V1ForZoneBuilder item : forZones) { if (predicate.test(item)) { @@ -105,6 +174,123 @@ public V1ForZone buildMatchingForZone(Predicate predicate) { return null; } + protected void copyInstance(V1EndpointHints instance) { + instance = instance != null ? instance : new V1EndpointHints(); + if (instance != null) { + this.withForNodes(instance.getForNodes()); + this.withForZones(instance.getForZones()); + } + } + + public ForNodesNested editFirstForNode() { + if (forNodes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "forNodes")); + } + return this.setNewForNodeLike(0, this.buildForNode(0)); + } + + public ForZonesNested editFirstForZone() { + if (forZones.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "forZones")); + } + return this.setNewForZoneLike(0, this.buildForZone(0)); + } + + public ForNodesNested editForNode(int index) { + if (forNodes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "forNodes")); + } + return this.setNewForNodeLike(index, this.buildForNode(index)); + } + + public ForZonesNested editForZone(int index) { + if (forZones.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "forZones")); + } + return this.setNewForZoneLike(index, this.buildForZone(index)); + } + + public ForNodesNested editLastForNode() { + int index = forNodes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "forNodes")); + } + return this.setNewForNodeLike(index, this.buildForNode(index)); + } + + public ForZonesNested editLastForZone() { + int index = forZones.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "forZones")); + } + return this.setNewForZoneLike(index, this.buildForZone(index)); + } + + public ForNodesNested editMatchingForNode(Predicate predicate) { + int index = -1; + for (int i = 0;i < forNodes.size();i++) { + if (predicate.test(forNodes.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "forNodes")); + } + return this.setNewForNodeLike(index, this.buildForNode(index)); + } + + public ForZonesNested editMatchingForZone(Predicate predicate) { + int index = -1; + for (int i = 0;i < forZones.size();i++) { + if (predicate.test(forZones.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "forZones")); + } + return this.setNewForZoneLike(index, this.buildForZone(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointHintsFluent that = (V1EndpointHintsFluent) o; + if (!(Objects.equals(forNodes, that.forNodes))) { + return false; + } + if (!(Objects.equals(forZones, that.forZones))) { + return false; + } + return true; + } + + public boolean hasForNodes() { + return this.forNodes != null && !(this.forNodes.isEmpty()); + } + + public boolean hasForZones() { + return this.forZones != null && !(this.forZones.isEmpty()); + } + + public boolean hasMatchingForNode(Predicate predicate) { + for (V1ForNodeBuilder item : forNodes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingForZone(Predicate predicate) { for (V1ForZoneBuilder item : forZones) { if (predicate.test(item)) { @@ -114,112 +300,235 @@ public boolean hasMatchingForZone(Predicate predicate) { return false; } - public A withForZones(List forZones) { - if (this.forZones != null) { - this._visitables.get("forZones").clear(); + public int hashCode() { + return Objects.hash(forNodes, forZones); + } + + public A removeAllFromForNodes(Collection items) { + if (this.forNodes == null) { + return (A) this; } - if (forZones != null) { - this.forZones = new ArrayList(); - for (V1ForZone item : forZones) { - this.addToForZones(item); - } - } else { - this.forZones = null; + for (V1ForNode item : items) { + V1ForNodeBuilder builder = new V1ForNodeBuilder(item); + _visitables.get("forNodes").remove(builder); + this.forNodes.remove(builder); } return (A) this; } - public A withForZones(io.kubernetes.client.openapi.models.V1ForZone... forZones) { - if (this.forZones != null) { - this.forZones.clear(); - _visitables.remove("forZones"); + public A removeAllFromForZones(Collection items) { + if (this.forZones == null) { + return (A) this; } - if (forZones != null) { - for (V1ForZone item : forZones) { - this.addToForZones(item); - } + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").remove(builder); + this.forZones.remove(builder); } return (A) this; } - public boolean hasForZones() { - return this.forZones != null && !this.forZones.isEmpty(); + public A removeFromForNodes(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 ForZonesNested addNewForZone() { - return new ForZonesNested(-1, null); + public A removeFromForZones(V1ForZone... items) { + if (this.forZones == null) { + return (A) this; + } + for (V1ForZone item : items) { + V1ForZoneBuilder builder = new V1ForZoneBuilder(item); + _visitables.get("forZones").remove(builder); + this.forZones.remove(builder); + } + return (A) this; } - public ForZonesNested addNewForZoneLike(V1ForZone item) { - return new ForZonesNested(-1, item); + public A removeMatchingFromForNodes(Predicate predicate) { + if (forNodes == null) { + return (A) this; + } + Iterator each = forNodes.iterator(); + 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 A removeMatchingFromForZones(Predicate predicate) { + if (forZones == null) { + return (A) this; + } + Iterator each = forZones.iterator(); + List visitables = _visitables.get("forZones"); + while (each.hasNext()) { + V1ForZoneBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ForNodesNested setNewForNodeLike(int index,V1ForNode item) { + return new ForNodesNested(index, item); } public ForZonesNested setNewForZoneLike(int index,V1ForZone item) { return new ForZonesNested(index, item); } - public ForZonesNested editForZone(int index) { - if (forZones.size() <= index) throw new RuntimeException("Can't edit forZones. Index exceeds size."); - return setNewForZoneLike(index, buildForZone(index)); + 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 ForZonesNested editFirstForZone() { - if (forZones.size() == 0) throw new RuntimeException("Can't edit first forZones. The list is empty."); - return setNewForZoneLike(0, buildForZone(0)); + 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").add(builder); + forZones.set(index, builder); + } + return (A) this; } - public ForZonesNested editLastForZone() { - int index = forZones.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last forZones. The list is empty."); - return setNewForZoneLike(index, buildForZone(index)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(forNodes == null) && !(forNodes.isEmpty())) { + sb.append("forNodes:"); + sb.append(forNodes); + sb.append(","); + } + if (!(forZones == null) && !(forZones.isEmpty())) { + sb.append("forZones:"); + sb.append(forZones); + } + sb.append("}"); + return sb.toString(); } - public ForZonesNested editMatchingForZone(Predicate predicate) { - int index = -1; - for (int i=0;i 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 boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1EndpointHintsFluent that = (V1EndpointHintsFluent) o; - if (!java.util.Objects.equals(forZones, that.forZones)) return false; - return true; + public A withForNodes(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 int hashCode() { - return java.util.Objects.hash(forZones, super.hashCode()); + public A withForZones(List forZones) { + if (this.forZones != null) { + this._visitables.get("forZones").clear(); + } + if (forZones != null) { + this.forZones = new ArrayList(); + for (V1ForZone item : forZones) { + this.addToForZones(item); + } + } else { + this.forZones = null; + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (forZones != null && !forZones.isEmpty()) { sb.append("forZones:"); sb.append(forZones); } - sb.append("}"); - return sb.toString(); + public A withForZones(V1ForZone... forZones) { + if (this.forZones != null) { + this.forZones.clear(); + _visitables.remove("forZones"); + } + if (forZones != null) { + for (V1ForZone item : forZones) { + this.addToForZones(item); + } + } + return (A) this; + } + public class ForNodesNested extends V1ForNodeFluent> implements Nested{ + + V1ForNodeBuilder builder; + int index; + + ForNodesNested(int index,V1ForNode item) { + this.index = index; + this.builder = new V1ForNodeBuilder(this, item); + } + + public N and() { + return (N) V1EndpointHintsFluent.this.setToForNodes(index, builder.build()); + } + + public N endForNode() { + return and(); + } + } public class ForZonesNested extends V1ForZoneFluent> implements Nested{ + + V1ForZoneBuilder builder; + int index; + ForZonesNested(int index,V1ForZone item) { this.index = index; this.builder = new V1ForZoneBuilder(this, item); } - V1ForZoneBuilder builder; - int index; - + public N and() { - return (N) V1EndpointHintsFluent.this.setToForZones(index,builder.build()); + return (N) V1EndpointHintsFluent.this.setToForZones(index, builder.build()); } public N endForZone() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java index 73f8627813..2837a5386b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointSliceBuilder extends V1EndpointSliceFluent implements VisitableBuilder{ + + V1EndpointSliceFluent fluent; + public V1EndpointSliceBuilder() { this(new V1EndpointSlice()); } @@ -10,17 +14,16 @@ public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent) { this(fluent, new V1EndpointSlice()); } - public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent,V1EndpointSlice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointSliceBuilder(V1EndpointSlice instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointSliceFluent fluent; + public V1EndpointSliceBuilder(V1EndpointSliceFluent fluent,V1EndpointSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointSlice build() { V1EndpointSlice buildable = new V1EndpointSlice(); buildable.setAddressType(fluent.getAddressType()); @@ -32,5 +35,4 @@ public V1EndpointSlice build() { return buildable; } - } \ No newline at end of file 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..6e9d220457 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 @@ -1,137 +1,158 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointSliceFluent> extends BaseFluent{ - public V1EndpointSliceFluent() { - } - - public V1EndpointSliceFluent(V1EndpointSlice instance) { - this.copyInstance(instance); - } +public class V1EndpointSliceFluent> extends BaseFluent{ + private String addressType; private String apiVersion; private ArrayList endpoints; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList ports; - - protected void copyInstance(V1EndpointSlice instance) { - instance = (instance != null ? instance : new V1EndpointSlice()); - if (instance != null) { - this.withAddressType(instance.getAddressType()); - this.withApiVersion(instance.getApiVersion()); - this.withEndpoints(instance.getEndpoints()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withPorts(instance.getPorts()); - } + + public V1EndpointSliceFluent() { } - public String getAddressType() { - return this.addressType; + public V1EndpointSliceFluent(V1EndpointSlice instance) { + this.copyInstance(instance); } - - public A withAddressType(String addressType) { - this.addressType = addressType; + + public A addAllToEndpoints(Collection items) { + if (this.endpoints == null) { + this.endpoints = new ArrayList(); + } + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").add(builder); + this.endpoints.add(builder); + } return (A) this; } - public boolean hasAddressType() { - return this.addressType != null; - } - - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - 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);} - return (A)this; + public EndpointsNested addNewEndpoint() { + return new EndpointsNested(-1, null); } - 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);} - return (A)this; + public EndpointsNested addNewEndpointLike(V1Endpoint item) { + return new EndpointsNested(-1, item); } - public A addToEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items) { - if (this.endpoints == null) {this.endpoints = new ArrayList();} - for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").add(builder);this.endpoints.add(builder);} return (A)this; + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public A addAllToEndpoints(Collection items) { - if (this.endpoints == null) {this.endpoints = new ArrayList();} - for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").add(builder);this.endpoints.add(builder);} return (A)this; + public PortsNested addNewPortLike(DiscoveryV1EndpointPort item) { + return new PortsNested(-1, item); } - public A removeFromEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... items) { - if (this.endpoints == null) return (A)this; - for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").remove(builder); this.endpoints.remove(builder);} return (A)this; + public A addToEndpoints(V1Endpoint... items) { + if (this.endpoints == null) { + this.endpoints = new ArrayList(); + } + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").add(builder); + this.endpoints.add(builder); + } + return (A) this; } - public A removeAllFromEndpoints(Collection items) { - if (this.endpoints == null) return (A)this; - for (V1Endpoint item : items) {V1EndpointBuilder builder = new V1EndpointBuilder(item);_visitables.get("endpoints").remove(builder); this.endpoints.remove(builder);} return (A)this; + 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(builder); + endpoints.add(index, builder); + } + return (A) this; } - public A removeMatchingFromEndpoints(Predicate predicate) { - if (endpoints == null) return (A) this; - final Iterator each = endpoints.iterator(); - final List visitables = _visitables.get("endpoints"); - while (each.hasNext()) { - V1EndpointBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToPorts(DiscoveryV1EndpointPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } - return (A)this; + return (A) this; } - public List buildEndpoints() { - return this.endpoints != null ? build(endpoints) : null; + 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(builder); + ports.add(index, builder); + } + return (A) this; } public V1Endpoint buildEndpoint(int index) { return this.endpoints.get(index).build(); } + public List buildEndpoints() { + return this.endpoints != null ? build(endpoints) : null; + } + public V1Endpoint buildFirstEndpoint() { return this.endpoints.get(0).build(); } + public DiscoveryV1EndpointPort buildFirstPort() { + return this.ports.get(0).build(); + } + public V1Endpoint buildLastEndpoint() { return this.endpoints.get(endpoints.size() - 1).build(); } + public DiscoveryV1EndpointPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); + } + public V1Endpoint buildMatchingEndpoint(Predicate predicate) { for (V1EndpointBuilder item : endpoints) { if (predicate.test(item)) { @@ -141,217 +162,428 @@ public V1Endpoint buildMatchingEndpoint(Predicate predicate) return null; } - public boolean hasMatchingEndpoint(Predicate predicate) { - for (V1EndpointBuilder item : endpoints) { + public DiscoveryV1EndpointPort buildMatchingPort(Predicate predicate) { + for (DiscoveryV1EndpointPortBuilder item : ports) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withEndpoints(List endpoints) { - if (this.endpoints != null) { - this._visitables.get("endpoints").clear(); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public DiscoveryV1EndpointPort buildPort(int index) { + return this.ports.get(index).build(); + } + + public List buildPorts() { + return this.ports != null ? build(ports) : null; + } + + protected void copyInstance(V1EndpointSlice instance) { + instance = instance != null ? instance : new V1EndpointSlice(); + if (instance != null) { + this.withAddressType(instance.getAddressType()); + this.withApiVersion(instance.getApiVersion()); + this.withEndpoints(instance.getEndpoints()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withPorts(instance.getPorts()); } - if (endpoints != null) { - this.endpoints = new ArrayList(); - for (V1Endpoint item : endpoints) { - this.addToEndpoints(item); - } - } else { - this.endpoints = null; + } + + public EndpointsNested editEndpoint(int index) { + if (endpoints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "endpoints")); } - return (A) this; + return this.setNewEndpointLike(index, this.buildEndpoint(index)); } - public A withEndpoints(io.kubernetes.client.openapi.models.V1Endpoint... endpoints) { - if (this.endpoints != null) { - this.endpoints.clear(); - _visitables.remove("endpoints"); + public EndpointsNested editFirstEndpoint() { + if (endpoints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "endpoints")); } - if (endpoints != null) { - for (V1Endpoint item : endpoints) { - this.addToEndpoints(item); + return this.setNewEndpointLike(0, this.buildEndpoint(0)); + } + + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); + } + + public EndpointsNested editLastEndpoint() { + int index = endpoints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "endpoints")); + } + return this.setNewEndpointLike(index, this.buildEndpoint(index)); + } + + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); + } + + public EndpointsNested editMatchingEndpoint(Predicate predicate) { + int index = -1; + for (int i = 0;i < endpoints.size();i++) { + if (predicate.test(endpoints.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "endpoints")); + } + return this.setNewEndpointLike(index, this.buildEndpoint(index)); } - public boolean hasEndpoints() { - return this.endpoints != null && !this.endpoints.isEmpty(); + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public EndpointsNested addNewEndpoint() { - return new EndpointsNested(-1, null); + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public EndpointsNested addNewEndpointLike(V1Endpoint item) { - return new EndpointsNested(-1, item); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public EndpointsNested setNewEndpointLike(int index,V1Endpoint item) { - return new EndpointsNested(index, item); + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public EndpointsNested editEndpoint(int index) { - if (endpoints.size() <= index) throw new RuntimeException("Can't edit endpoints. Index exceeds size."); - return setNewEndpointLike(index, buildEndpoint(index)); + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public EndpointsNested editFirstEndpoint() { - if (endpoints.size() == 0) throw new RuntimeException("Can't edit first endpoints. The list is empty."); - return setNewEndpointLike(0, buildEndpoint(0)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointSliceFluent that = (V1EndpointSliceFluent) o; + if (!(Objects.equals(addressType, that.addressType))) { + return false; + } + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(endpoints, that.endpoints))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + return true; } - public EndpointsNested editLastEndpoint() { - int index = endpoints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last endpoints. The list is empty."); - return setNewEndpointLike(index, buildEndpoint(index)); + public String getAddressType() { + return this.addressType; } - public EndpointsNested editMatchingEndpoint(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1EndpointBuilder item : endpoints) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 hasMatchingPort(Predicate predicate) { + for (DiscoveryV1EndpointPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasMetadata() { return this.metadata != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public int hashCode() { + return Objects.hash(addressType, apiVersion, endpoints, kind, metadata, ports); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public A removeAllFromEndpoints(Collection items) { + if (this.endpoints == null) { + return (A) this; + } + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").remove(builder); + this.endpoints.remove(builder); + } + return (A) this; } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public A removeFromEndpoints(V1Endpoint... items) { + if (this.endpoints == null) { + return (A) this; + } + for (V1Endpoint item : items) { + V1EndpointBuilder builder = new V1EndpointBuilder(item); + _visitables.get("endpoints").remove(builder); + this.endpoints.remove(builder); + } + return (A) this; } - 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);} - return (A)this; + public A removeFromPorts(DiscoveryV1EndpointPort... items) { + if (this.ports == null) { + return (A) this; + } + for (DiscoveryV1EndpointPort item : items) { + DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(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);} - return (A)this; + public A removeMatchingFromEndpoints(Predicate predicate) { + if (endpoints == null) { + return (A) this; + } + Iterator each = endpoints.iterator(); + List visitables = _visitables.get("endpoints"); + while (each.hasNext()) { + V1EndpointBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + DiscoveryV1EndpointPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public EndpointsNested setNewEndpointLike(int index,V1Endpoint item) { + return new EndpointsNested(index, item); } - public A removeFromPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... items) { - if (this.ports == null) return (A)this; - for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public PortsNested setNewPortLike(int index,DiscoveryV1EndpointPort item) { + return new PortsNested(index, item); } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (DiscoveryV1EndpointPort item : items) {DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(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").add(builder); + endpoints.set(index, builder); + } + return (A) this; } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); - while (each.hasNext()) { - DiscoveryV1EndpointPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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").add(builder); + ports.set(index, builder); } - return (A)this; + return (A) this; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(addressType == null)) { + sb.append("addressType:"); + sb.append(addressType); + sb.append(","); + } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(endpoints == null) && !(endpoints.isEmpty())) { + sb.append("endpoints:"); + sb.append(endpoints); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + } + sb.append("}"); + return sb.toString(); } - public DiscoveryV1EndpointPort buildPort(int index) { - return this.ports.get(index).build(); + public A withAddressType(String addressType) { + this.addressType = addressType; + return (A) this; } - public DiscoveryV1EndpointPort buildFirstPort() { - return this.ports.get(0).build(); + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public DiscoveryV1EndpointPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + public A withEndpoints(List endpoints) { + if (this.endpoints != null) { + this._visitables.get("endpoints").clear(); + } + if (endpoints != null) { + this.endpoints = new ArrayList(); + for (V1Endpoint item : endpoints) { + this.addToEndpoints(item); + } + } else { + this.endpoints = null; + } + return (A) this; } - public DiscoveryV1EndpointPort buildMatchingPort(Predicate predicate) { - for (DiscoveryV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } + public A withEndpoints(V1Endpoint... endpoints) { + if (this.endpoints != null) { + this.endpoints.clear(); + _visitables.remove("endpoints"); + } + if (endpoints != null) { + for (V1Endpoint item : endpoints) { + this.addToEndpoints(item); } - return null; + } + return (A) this; } - public boolean hasMatchingPort(Predicate predicate) { - for (DiscoveryV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } public A withPorts(List ports) { @@ -369,7 +601,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort... ports) { + public A withPorts(DiscoveryV1EndpointPort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -381,102 +613,33 @@ public A withPorts(io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort.. } return (A) this; } + public class EndpointsNested extends V1EndpointFluent> implements Nested{ - public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(DiscoveryV1EndpointPort item) { - return new PortsNested(-1, item); - } - - public PortsNested setNewPortLike(int index,DiscoveryV1EndpointPort item) { - return new PortsNested(index, item); - } - - public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); - } - - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1EndpointFluent> implements Nested{ EndpointsNested(int index,V1Endpoint item) { this.index = index; this.builder = new V1EndpointBuilder(this, item); } - V1EndpointBuilder builder; - int index; - + public N and() { - return (N) V1EndpointSliceFluent.this.setToEndpoints(index,builder.build()); + return (N) V1EndpointSliceFluent.this.setToEndpoints(index, builder.build()); } public N endEndpoint() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1EndpointSliceFluent.this.withMetadata(builder.build()); } @@ -485,25 +648,24 @@ public N endMetadata() { return and(); } - } public class PortsNested extends DiscoveryV1EndpointPortFluent> implements Nested{ + + DiscoveryV1EndpointPortBuilder builder; + int index; + PortsNested(int index,DiscoveryV1EndpointPort item) { this.index = index; this.builder = new DiscoveryV1EndpointPortBuilder(this, item); } - DiscoveryV1EndpointPortBuilder builder; - int index; - + public N and() { - return (N) V1EndpointSliceFluent.this.setToPorts(index,builder.build()); + return (N) V1EndpointSliceFluent.this.setToPorts(index, builder.build()); } public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java index 928d69b92e..1637aab82c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointSliceListBuilder extends V1EndpointSliceListFluent implements VisitableBuilder{ + + V1EndpointSliceListFluent fluent; + public V1EndpointSliceListBuilder() { this(new V1EndpointSliceList()); } @@ -10,17 +14,16 @@ public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent) { this(fluent, new V1EndpointSliceList()); } - public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent,V1EndpointSliceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointSliceListBuilder(V1EndpointSliceList instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointSliceListFluent fluent; + public V1EndpointSliceListBuilder(V1EndpointSliceListFluent fluent,V1EndpointSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointSliceList build() { V1EndpointSliceList buildable = new V1EndpointSliceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1EndpointSliceList build() { return buildable; } - } \ No newline at end of file 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..f22b4b3e2c 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointSliceListFluent> extends BaseFluent{ +public class V1EndpointSliceListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1EndpointSliceListFluent() { } public V1EndpointSliceListFluent(V1EndpointSliceList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1EndpointSliceList instance) { - instance = (instance != null ? instance : new V1EndpointSliceList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1EndpointSlice item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1EndpointSlice... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1EndpointSlice item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1EndpointSlice buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1EndpointSlice buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { - if (this.items == null) return (A)this; - for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1EndpointSlice buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1EndpointSlice item : items) {V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1EndpointSlice buildMatchingItem(Predicate predicate) { + for (V1EndpointSliceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1EndpointSliceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1EndpointSliceList instance) { + instance = instance != null ? instance : new V1EndpointSliceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1EndpointSlice buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1EndpointSlice buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1EndpointSlice buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointSliceListFluent that = (V1EndpointSliceListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1EndpointSlice buildMatchingItem(Predicate predicate) { - for (V1EndpointSliceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1EndpointSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1EndpointSlice item : items) { + V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1EndpointSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1EndpointSlice item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) { + public A withItems(V1EndpointSlice... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1EndpointSlice... items) return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1EndpointSlice item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1EndpointSlice 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1EndpointSliceFluent> implements Nested{ - 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; - V1EndpointSliceListFluent that = (V1EndpointSliceListFluent) 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()); - } + V1EndpointSliceBuilder builder; + int index; - 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 V1EndpointSliceFluent> implements Nested{ ItemsNested(int index,V1EndpointSlice item) { this.index = index; this.builder = new V1EndpointSliceBuilder(this, item); } - V1EndpointSliceBuilder builder; - int index; - + public N and() { - return (N) V1EndpointSliceListFluent.this.setToItems(index,builder.build()); + return (N) V1EndpointSliceListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1EndpointSliceListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java index fdfb3d0bc0..3e37984d4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointSubsetBuilder extends V1EndpointSubsetFluent implements VisitableBuilder{ + + V1EndpointSubsetFluent fluent; + public V1EndpointSubsetBuilder() { this(new V1EndpointSubset()); } @@ -10,17 +14,16 @@ public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent) { this(fluent, new V1EndpointSubset()); } - public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent,V1EndpointSubset instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointSubsetBuilder(V1EndpointSubset instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointSubsetFluent fluent; + public V1EndpointSubsetBuilder(V1EndpointSubsetFluent fluent,V1EndpointSubset instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointSubset build() { V1EndpointSubset buildable = new V1EndpointSubset(); buildable.setAddresses(fluent.buildAddresses()); @@ -29,5 +32,4 @@ public V1EndpointSubset build() { return buildable; } - } \ No newline at end of file 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..166cf180a4 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 @@ -1,105 +1,209 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointSubsetFluent> extends BaseFluent{ +public class V1EndpointSubsetFluent> extends BaseFluent{ + + private ArrayList addresses; + private ArrayList notReadyAddresses; + private ArrayList ports; + public V1EndpointSubsetFluent() { } public V1EndpointSubsetFluent(V1EndpointSubset instance) { this.copyInstance(instance); } - private ArrayList addresses; - private ArrayList notReadyAddresses; - private ArrayList ports; + + public A addAllToAddresses(Collection items) { + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("addresses").add(builder); + this.addresses.add(builder); + } + return (A) this; + } - protected void copyInstance(V1EndpointSubset instance) { - instance = (instance != null ? instance : new V1EndpointSubset()); - if (instance != null) { - this.withAddresses(instance.getAddresses()); - this.withNotReadyAddresses(instance.getNotReadyAddresses()); - this.withPorts(instance.getPorts()); - } + public A addAllToNotReadyAddresses(Collection items) { + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(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);} - return (A)this; + public AddressesNested addNewAddress() { + return new AddressesNested(-1, null); } - public A addToAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; + public AddressesNested addNewAddressLike(V1EndpointAddress item) { + return new AddressesNested(-1, item); } - public A addAllToAddresses(Collection items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; + public NotReadyAddressesNested addNewNotReadyAddress() { + return new NotReadyAddressesNested(-1, null); } - public A removeFromAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.addresses == null) return (A)this; - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").remove(builder); this.addresses.remove(builder);} return (A)this; + public NotReadyAddressesNested addNewNotReadyAddressLike(V1EndpointAddress item) { + return new NotReadyAddressesNested(-1, item); } - public A removeAllFromAddresses(Collection items) { - if (this.addresses == null) return (A)this; - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("addresses").remove(builder); this.addresses.remove(builder);} return (A)this; + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public A removeMatchingFromAddresses(Predicate predicate) { - if (addresses == null) return (A) this; - final Iterator each = addresses.iterator(); - final List visitables = _visitables.get("addresses"); - while (each.hasNext()) { - V1EndpointAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public PortsNested addNewPortLike(CoreV1EndpointPort item) { + return new PortsNested(-1, item); + } + + public A addToAddresses(V1EndpointAddress... items) { + if (this.addresses == null) { + this.addresses = new ArrayList(); } - return (A)this; + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("addresses").add(builder); + this.addresses.add(builder); + } + return (A) this; } - public List buildAddresses() { - return this.addresses != null ? build(addresses) : null; + 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(builder); + addresses.add(index, builder); + } + return (A) this; + } + + public A addToNotReadyAddresses(V1EndpointAddress... items) { + if (this.notReadyAddresses == null) { + this.notReadyAddresses = new ArrayList(); + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.add(builder); + } + return (A) this; + } + + public A addToNotReadyAddresses(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").add(builder); + notReadyAddresses.add(index, builder); + } + return (A) this; + } + + public A addToPorts(CoreV1EndpointPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; + } + + public A addToPorts(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").add(builder); + ports.add(index, builder); + } + return (A) this; } public V1EndpointAddress buildAddress(int index) { return this.addresses.get(index).build(); } + public List buildAddresses() { + return this.addresses != null ? build(addresses) : null; + } + public V1EndpointAddress buildFirstAddress() { return this.addresses.get(0).build(); } + public V1EndpointAddress buildFirstNotReadyAddress() { + return this.notReadyAddresses.get(0).build(); + } + + public CoreV1EndpointPort buildFirstPort() { + return this.ports.get(0).build(); + } + public V1EndpointAddress buildLastAddress() { return this.addresses.get(addresses.size() - 1).build(); } + public V1EndpointAddress buildLastNotReadyAddress() { + return this.notReadyAddresses.get(notReadyAddresses.size() - 1).build(); + } + + public CoreV1EndpointPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); + } + public V1EndpointAddress buildMatchingAddress(Predicate predicate) { for (V1EndpointAddressBuilder item : addresses) { if (predicate.test(item)) { @@ -109,155 +213,191 @@ public V1EndpointAddress buildMatchingAddress(Predicate predicate) { - for (V1EndpointAddressBuilder item : addresses) { + public V1EndpointAddress buildMatchingNotReadyAddress(Predicate predicate) { + for (V1EndpointAddressBuilder item : notReadyAddresses) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withAddresses(List addresses) { - if (this.addresses != null) { - this._visitables.get("addresses").clear(); - } - if (addresses != null) { - this.addresses = new ArrayList(); - for (V1EndpointAddress item : addresses) { - this.addToAddresses(item); + public CoreV1EndpointPort buildMatchingPort(Predicate predicate) { + for (CoreV1EndpointPortBuilder item : ports) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.addresses = null; - } - return (A) this; + } + return null; } - public A withAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... addresses) { - if (this.addresses != null) { - this.addresses.clear(); - _visitables.remove("addresses"); - } - if (addresses != null) { - for (V1EndpointAddress item : addresses) { - this.addToAddresses(item); - } - } - return (A) this; + public V1EndpointAddress buildNotReadyAddress(int index) { + return this.notReadyAddresses.get(index).build(); } - public boolean hasAddresses() { - return this.addresses != null && !this.addresses.isEmpty(); + public List buildNotReadyAddresses() { + return this.notReadyAddresses != null ? build(notReadyAddresses) : null; } - public AddressesNested addNewAddress() { - return new AddressesNested(-1, null); + public CoreV1EndpointPort buildPort(int index) { + return this.ports.get(index).build(); } - public AddressesNested addNewAddressLike(V1EndpointAddress item) { - return new AddressesNested(-1, item); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public AddressesNested setNewAddressLike(int index,V1EndpointAddress item) { - return new AddressesNested(index, item); + protected void copyInstance(V1EndpointSubset instance) { + instance = instance != null ? instance : new V1EndpointSubset(); + if (instance != null) { + this.withAddresses(instance.getAddresses()); + this.withNotReadyAddresses(instance.getNotReadyAddresses()); + this.withPorts(instance.getPorts()); + } } public AddressesNested editAddress(int index) { - if (addresses.size() <= index) throw new RuntimeException("Can't edit addresses. Index exceeds size."); - return setNewAddressLike(index, buildAddress(index)); + if (addresses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } public AddressesNested editFirstAddress() { - if (addresses.size() == 0) throw new RuntimeException("Can't edit first addresses. The list is empty."); - return setNewAddressLike(0, buildAddress(0)); - } - - public AddressesNested editLastAddress() { - int index = addresses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last addresses. The list is empty."); - return setNewAddressLike(index, buildAddress(index)); + if (addresses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(0, this.buildAddress(0)); } - public AddressesNested editMatchingAddress(Predicate predicate) { - int index = -1; - for (int i=0;i editFirstNotReadyAddress() { + if (notReadyAddresses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "notReadyAddresses")); + } + return this.setNewNotReadyAddressLike(0, this.buildNotReadyAddress(0)); } - public A addToNotReadyAddresses(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").add(index, builder); notReadyAddresses.add(index, builder);} - return (A)this; + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } - 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);} - return (A)this; + public AddressesNested editLastAddress() { + int index = addresses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } - public A addToNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").add(builder);this.notReadyAddresses.add(builder);} return (A)this; + public NotReadyAddressesNested editLastNotReadyAddress() { + int index = notReadyAddresses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "notReadyAddresses")); + } + return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); } - public A addAllToNotReadyAddresses(Collection items) { - if (this.notReadyAddresses == null) {this.notReadyAddresses = new ArrayList();} - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").add(builder);this.notReadyAddresses.add(builder);} return (A)this; + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A removeFromNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... items) { - if (this.notReadyAddresses == null) return (A)this; - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").remove(builder); this.notReadyAddresses.remove(builder);} return (A)this; + public AddressesNested editMatchingAddress(Predicate predicate) { + int index = -1; + for (int i = 0;i < addresses.size();i++) { + if (predicate.test(addresses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } - public A removeAllFromNotReadyAddresses(Collection items) { - if (this.notReadyAddresses == null) return (A)this; - for (V1EndpointAddress item : items) {V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item);_visitables.get("notReadyAddresses").remove(builder); this.notReadyAddresses.remove(builder);} return (A)this; + public NotReadyAddressesNested editMatchingNotReadyAddress(Predicate predicate) { + int index = -1; + for (int i = 0;i < notReadyAddresses.size();i++) { + if (predicate.test(notReadyAddresses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "notReadyAddresses")); + } + return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); } - public A removeMatchingFromNotReadyAddresses(Predicate predicate) { - if (notReadyAddresses == null) return (A) this; - final Iterator each = notReadyAddresses.iterator(); - final List visitables = _visitables.get("notReadyAddresses"); - while (each.hasNext()) { - V1EndpointAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public List buildNotReadyAddresses() { - return this.notReadyAddresses != null ? build(notReadyAddresses) : null; + public NotReadyAddressesNested editNotReadyAddress(int index) { + if (notReadyAddresses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "notReadyAddresses")); + } + return this.setNewNotReadyAddressLike(index, this.buildNotReadyAddress(index)); } - public V1EndpointAddress buildNotReadyAddress(int index) { - return this.notReadyAddresses.get(index).build(); + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public V1EndpointAddress buildFirstNotReadyAddress() { - return this.notReadyAddresses.get(0).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointSubsetFluent that = (V1EndpointSubsetFluent) o; + if (!(Objects.equals(addresses, that.addresses))) { + return false; + } + if (!(Objects.equals(notReadyAddresses, that.notReadyAddresses))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + return true; } - public V1EndpointAddress buildLastNotReadyAddress() { - return this.notReadyAddresses.get(notReadyAddresses.size() - 1).build(); + public boolean hasAddresses() { + return this.addresses != null && !(this.addresses.isEmpty()); } - public V1EndpointAddress buildMatchingNotReadyAddress(Predicate predicate) { - for (V1EndpointAddressBuilder item : notReadyAddresses) { + public boolean hasMatchingAddress(Predicate predicate) { + for (V1EndpointAddressBuilder item : addresses) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingNotReadyAddress(Predicate predicate) { @@ -269,155 +409,279 @@ public boolean hasMatchingNotReadyAddress(Predicate pr return false; } - public A withNotReadyAddresses(List notReadyAddresses) { - if (this.notReadyAddresses != null) { - this._visitables.get("notReadyAddresses").clear(); - } - if (notReadyAddresses != null) { - this.notReadyAddresses = new ArrayList(); - for (V1EndpointAddress item : notReadyAddresses) { - this.addToNotReadyAddresses(item); + public boolean hasMatchingPort(Predicate predicate) { + for (CoreV1EndpointPortBuilder item : ports) { + if (predicate.test(item)) { + return true; } - } else { - this.notReadyAddresses = null; - } - return (A) this; - } - - public A withNotReadyAddresses(io.kubernetes.client.openapi.models.V1EndpointAddress... notReadyAddresses) { - if (this.notReadyAddresses != null) { - this.notReadyAddresses.clear(); - _visitables.remove("notReadyAddresses"); - } - if (notReadyAddresses != null) { - for (V1EndpointAddress item : notReadyAddresses) { - this.addToNotReadyAddresses(item); } - } - return (A) this; + return false; } public boolean hasNotReadyAddresses() { - return this.notReadyAddresses != null && !this.notReadyAddresses.isEmpty(); + return this.notReadyAddresses != null && !(this.notReadyAddresses.isEmpty()); } - public NotReadyAddressesNested addNewNotReadyAddress() { - return new NotReadyAddressesNested(-1, null); + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); } - public NotReadyAddressesNested addNewNotReadyAddressLike(V1EndpointAddress item) { - return new NotReadyAddressesNested(-1, item); + public int hashCode() { + return Objects.hash(addresses, notReadyAddresses, ports); } - public NotReadyAddressesNested setNewNotReadyAddressLike(int index,V1EndpointAddress item) { - return new NotReadyAddressesNested(index, item); + public A removeAllFromAddresses(Collection items) { + if (this.addresses == null) { + return (A) this; + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); + } + return (A) this; } - public NotReadyAddressesNested editNotReadyAddress(int index) { - if (notReadyAddresses.size() <= index) throw new RuntimeException("Can't edit notReadyAddresses. Index exceeds size."); - return setNewNotReadyAddressLike(index, buildNotReadyAddress(index)); + public A removeAllFromNotReadyAddresses(Collection items) { + if (this.notReadyAddresses == null) { + return (A) this; + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("notReadyAddresses").remove(builder); + this.notReadyAddresses.remove(builder); + } + return (A) this; } - public NotReadyAddressesNested editFirstNotReadyAddress() { - if (notReadyAddresses.size() == 0) throw new RuntimeException("Can't edit first notReadyAddresses. The list is empty."); - return setNewNotReadyAddressLike(0, buildNotReadyAddress(0)); + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } - public NotReadyAddressesNested editLastNotReadyAddress() { - int index = notReadyAddresses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last notReadyAddresses. The list is empty."); - return setNewNotReadyAddressLike(index, buildNotReadyAddress(index)); + public A removeFromAddresses(V1EndpointAddress... items) { + if (this.addresses == null) { + return (A) this; + } + for (V1EndpointAddress item : items) { + V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); + } + return (A) this; } - public NotReadyAddressesNested editMatchingNotReadyAddress(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public A removeFromPorts(CoreV1EndpointPort... items) { + if (this.ports == null) { + return (A) this; + } + for (CoreV1EndpointPort item : items) { + CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(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);} - return (A)this; + public A removeMatchingFromAddresses(Predicate predicate) { + if (addresses == null) { + return (A) this; + } + Iterator each = addresses.iterator(); + List visitables = _visitables.get("addresses"); + while (each.hasNext()) { + V1EndpointAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A addToPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A removeMatchingFromNotReadyAddresses(Predicate predicate) { + if (notReadyAddresses == null) { + return (A) this; + } + Iterator each = notReadyAddresses.iterator(); + List visitables = _visitables.get("notReadyAddresses"); + while (each.hasNext()) { + V1EndpointAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + CoreV1EndpointPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A removeFromPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... items) { - if (this.ports == null) return (A)this; - for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public AddressesNested setNewAddressLike(int index,V1EndpointAddress item) { + return new AddressesNested(index, item); } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (CoreV1EndpointPort item : items) {CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public NotReadyAddressesNested setNewNotReadyAddressLike(int index,V1EndpointAddress item) { + return new NotReadyAddressesNested(index, item); } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); - while (each.hasNext()) { - CoreV1EndpointPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public PortsNested setNewPortLike(int index,CoreV1EndpointPort item) { + return new PortsNested(index, item); } - public List buildPorts() { - return this.ports != null ? build(ports) : null; + 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").add(builder); + addresses.set(index, builder); + } + return (A) this; } - public CoreV1EndpointPort buildPort(int index) { - return this.ports.get(index).build(); + 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").add(builder); + notReadyAddresses.set(index, builder); + } + return (A) this; } - public CoreV1EndpointPort buildFirstPort() { - return this.ports.get(0).build(); + 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").add(builder); + ports.set(index, builder); + } + return (A) this; } - public CoreV1EndpointPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(addresses == null) && !(addresses.isEmpty())) { + sb.append("addresses:"); + sb.append(addresses); + sb.append(","); + } + if (!(notReadyAddresses == null) && !(notReadyAddresses.isEmpty())) { + sb.append("notReadyAddresses:"); + sb.append(notReadyAddresses); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + } + sb.append("}"); + return sb.toString(); } - public CoreV1EndpointPort buildMatchingPort(Predicate predicate) { - for (CoreV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); + public A withAddresses(List addresses) { + if (this.addresses != null) { + this._visitables.get("addresses").clear(); + } + if (addresses != null) { + this.addresses = new ArrayList(); + for (V1EndpointAddress item : addresses) { + this.addToAddresses(item); } + } else { + this.addresses = null; + } + return (A) this; + } + + public A withAddresses(V1EndpointAddress... addresses) { + if (this.addresses != null) { + this.addresses.clear(); + _visitables.remove("addresses"); + } + if (addresses != null) { + for (V1EndpointAddress item : addresses) { + this.addToAddresses(item); } - return null; + } + return (A) this; } - public boolean hasMatchingPort(Predicate predicate) { - for (CoreV1EndpointPortBuilder item : ports) { - if (predicate.test(item)) { - return true; + public A withNotReadyAddresses(List notReadyAddresses) { + if (this.notReadyAddresses != null) { + this._visitables.get("notReadyAddresses").clear(); + } + if (notReadyAddresses != null) { + this.notReadyAddresses = new ArrayList(); + for (V1EndpointAddress item : notReadyAddresses) { + this.addToNotReadyAddresses(item); } + } else { + this.notReadyAddresses = null; + } + return (A) this; + } + + public A withNotReadyAddresses(V1EndpointAddress... notReadyAddresses) { + if (this.notReadyAddresses != null) { + this.notReadyAddresses.clear(); + _visitables.remove("notReadyAddresses"); + } + if (notReadyAddresses != null) { + for (V1EndpointAddress item : notReadyAddresses) { + this.addToNotReadyAddresses(item); } - return false; + } + return (A) this; } public A withPorts(List ports) { @@ -435,7 +699,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... ports) { + public A withPorts(CoreV1EndpointPort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -447,125 +711,61 @@ public A withPorts(io.kubernetes.client.openapi.models.CoreV1EndpointPort... por } return (A) this; } + public class AddressesNested extends V1EndpointAddressFluent> implements Nested{ - public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(CoreV1EndpointPort item) { - return new PortsNested(-1, item); - } - - public PortsNested setNewPortLike(int index,CoreV1EndpointPort item) { - return new PortsNested(index, item); - } - - public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); - } - - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1EndpointAddressFluent> implements Nested{ AddressesNested(int index,V1EndpointAddress item) { this.index = index; this.builder = new V1EndpointAddressBuilder(this, item); } - V1EndpointAddressBuilder builder; - int index; - + public N and() { - return (N) V1EndpointSubsetFluent.this.setToAddresses(index,builder.build()); + return (N) V1EndpointSubsetFluent.this.setToAddresses(index, builder.build()); } public N endAddress() { return and(); } - } public class NotReadyAddressesNested extends V1EndpointAddressFluent> implements Nested{ + + V1EndpointAddressBuilder builder; + int index; + NotReadyAddressesNested(int index,V1EndpointAddress item) { this.index = index; this.builder = new V1EndpointAddressBuilder(this, item); } - V1EndpointAddressBuilder builder; - int index; - + public N and() { - return (N) V1EndpointSubsetFluent.this.setToNotReadyAddresses(index,builder.build()); + return (N) V1EndpointSubsetFluent.this.setToNotReadyAddresses(index, builder.build()); } public N endNotReadyAddress() { return and(); } - } public class PortsNested extends CoreV1EndpointPortFluent> implements Nested{ + + CoreV1EndpointPortBuilder builder; + int index; + PortsNested(int index,CoreV1EndpointPort item) { this.index = index; this.builder = new CoreV1EndpointPortBuilder(this, item); } - CoreV1EndpointPortBuilder builder; - int index; - + public N and() { - return (N) V1EndpointSubsetFluent.this.setToPorts(index,builder.build()); + return (N) V1EndpointSubsetFluent.this.setToPorts(index, builder.build()); } public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java index 13ce826163..26b3e2c814 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointsBuilder extends V1EndpointsFluent implements VisitableBuilder{ + + V1EndpointsFluent fluent; + public V1EndpointsBuilder() { this(new V1Endpoints()); } @@ -10,17 +14,16 @@ public V1EndpointsBuilder(V1EndpointsFluent fluent) { this(fluent, new V1Endpoints()); } - public V1EndpointsBuilder(V1EndpointsFluent fluent,V1Endpoints instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointsBuilder(V1Endpoints instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointsFluent fluent; + public V1EndpointsBuilder(V1EndpointsFluent fluent,V1Endpoints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Endpoints build() { V1Endpoints buildable = new V1Endpoints(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1Endpoints build() { return buildable; } - } \ No newline at end of file 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..e56277fa43 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 @@ -1,189 +1,348 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointsFluent> extends BaseFluent{ +public class V1EndpointsFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private ArrayList subsets; + public V1EndpointsFluent() { } public V1EndpointsFluent(V1Endpoints instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private ArrayList subsets; + + public A addAllToSubsets(Collection items) { + if (this.subsets == null) { + this.subsets = new ArrayList(); + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").add(builder); + this.subsets.add(builder); + } + return (A) this; + } - protected void copyInstance(V1Endpoints instance) { - instance = (instance != null ? instance : new V1Endpoints()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSubsets(instance.getSubsets()); - } + public SubsetsNested addNewSubset() { + return new SubsetsNested(-1, null); } - public String getApiVersion() { - return this.apiVersion; + public SubsetsNested addNewSubsetLike(V1EndpointSubset item) { + return new SubsetsNested(-1, item); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + public A addToSubsets(V1EndpointSubset... items) { + if (this.subsets == null) { + this.subsets = new ArrayList(); + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").add(builder); + this.subsets.add(builder); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; + 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(builder); + subsets.add(index, builder); + } + return (A) this; } - public String getKind() { - return this.kind; + public V1EndpointSubset buildFirstSubset() { + return this.subsets.get(0).build(); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public V1EndpointSubset buildLastSubset() { + return this.subsets.get(subsets.size() - 1).build(); } - public boolean hasKind() { - return this.kind != null; + public V1EndpointSubset buildMatchingSubset(Predicate predicate) { + for (V1EndpointSubsetBuilder item : subsets) { + if (predicate.test(item)) { + return item.build(); + } + } + return 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); + public V1EndpointSubset buildSubset(int index) { + return this.subsets.get(index).build(); + } + + public List buildSubsets() { + return this.subsets != null ? build(subsets) : null; + } + + protected void copyInstance(V1Endpoints instance) { + instance = instance != null ? instance : new V1Endpoints(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSubsets(instance.getSubsets()); } - return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; + public SubsetsNested editFirstSubset() { + if (subsets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subsets")); + } + return this.setNewSubsetLike(0, this.buildSubset(0)); } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public SubsetsNested editLastSubset() { + int index = subsets.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subsets")); + } + return this.setNewSubsetLike(index, this.buildSubset(index)); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public SubsetsNested editMatchingSubset(Predicate predicate) { + int index = -1; + for (int i = 0;i < subsets.size();i++) { + if (predicate.test(subsets.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "subsets")); + } + return this.setNewSubsetLike(index, this.buildSubset(index)); } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(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);} - return (A)this; + public SubsetsNested editSubset(int index) { + if (subsets.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subsets")); + } + return this.setNewSubsetLike(index, this.buildSubset(index)); } - 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);} - return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointsFluent that = (V1EndpointsFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(subsets, that.subsets))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } - public A addToSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items) { - if (this.subsets == null) {this.subsets = new ArrayList();} - for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").add(builder);this.subsets.add(builder);} return (A)this; + public String getKind() { + return this.kind; } - public A addAllToSubsets(Collection items) { - if (this.subsets == null) {this.subsets = new ArrayList();} - for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").add(builder);this.subsets.add(builder);} return (A)this; + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingSubset(Predicate predicate) { + for (V1EndpointSubsetBuilder item : subsets) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSubsets() { + return this.subsets != null && !(this.subsets.isEmpty()); } - public A removeFromSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... items) { - if (this.subsets == null) return (A)this; - for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").remove(builder); this.subsets.remove(builder);} return (A)this; + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, subsets); } public A removeAllFromSubsets(Collection items) { - if (this.subsets == null) return (A)this; - for (V1EndpointSubset item : items) {V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item);_visitables.get("subsets").remove(builder); this.subsets.remove(builder);} return (A)this; + if (this.subsets == null) { + return (A) this; + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").remove(builder); + this.subsets.remove(builder); + } + return (A) this; + } + + public A removeFromSubsets(V1EndpointSubset... items) { + if (this.subsets == null) { + return (A) this; + } + for (V1EndpointSubset item : items) { + V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); + _visitables.get("subsets").remove(builder); + this.subsets.remove(builder); + } + return (A) this; } public A removeMatchingFromSubsets(Predicate predicate) { - if (subsets == null) return (A) this; - final Iterator each = subsets.iterator(); - final List visitables = _visitables.get("subsets"); + if (subsets == null) { + return (A) this; + } + Iterator each = subsets.iterator(); + List visitables = _visitables.get("subsets"); while (each.hasNext()) { - V1EndpointSubsetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1EndpointSubsetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildSubsets() { - return this.subsets != null ? build(subsets) : null; + public SubsetsNested setNewSubsetLike(int index,V1EndpointSubset item) { + return new SubsetsNested(index, item); } - public V1EndpointSubset buildSubset(int index) { - return this.subsets.get(index).build(); + 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").add(builder); + subsets.set(index, builder); + } + return (A) this; } - public V1EndpointSubset buildFirstSubset() { - return this.subsets.get(0).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(subsets == null) && !(subsets.isEmpty())) { + sb.append("subsets:"); + sb.append(subsets); + } + sb.append("}"); + return sb.toString(); } - public V1EndpointSubset buildLastSubset() { - return this.subsets.get(subsets.size() - 1).build(); + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public V1EndpointSubset buildMatchingSubset(Predicate predicate) { - for (V1EndpointSubsetBuilder item : subsets) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public boolean hasMatchingSubset(Predicate predicate) { - for (V1EndpointSubsetBuilder item : subsets) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } public A withSubsets(List subsets) { @@ -201,7 +360,7 @@ public A withSubsets(List subsets) { return (A) this; } - public A withSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... subsets) { + public A withSubsets(V1EndpointSubset... subsets) { if (this.subsets != null) { this.subsets.clear(); _visitables.remove("subsets"); @@ -213,80 +372,14 @@ public A withSubsets(io.kubernetes.client.openapi.models.V1EndpointSubset... sub } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSubsets() { - return this.subsets != null && !this.subsets.isEmpty(); - } - - public SubsetsNested addNewSubset() { - return new SubsetsNested(-1, null); - } - - public SubsetsNested addNewSubsetLike(V1EndpointSubset item) { - return new SubsetsNested(-1, item); - } - - public SubsetsNested setNewSubsetLike(int index,V1EndpointSubset item) { - return new SubsetsNested(index, item); - } - - public SubsetsNested editSubset(int index) { - if (subsets.size() <= index) throw new RuntimeException("Can't edit subsets. Index exceeds size."); - return setNewSubsetLike(index, buildSubset(index)); - } - - public SubsetsNested editFirstSubset() { - if (subsets.size() == 0) throw new RuntimeException("Can't edit first subsets. The list is empty."); - return setNewSubsetLike(0, buildSubset(0)); - } - - public SubsetsNested editLastSubset() { - int index = subsets.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last subsets. The list is empty."); - return setNewSubsetLike(index, buildSubset(index)); - } - - public SubsetsNested editMatchingSubset(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1ObjectMetaFluent> implements Nested{ MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1EndpointsFluent.this.withMetadata(builder.build()); } @@ -295,25 +388,24 @@ public N endMetadata() { return and(); } - } public class SubsetsNested extends V1EndpointSubsetFluent> implements Nested{ + + V1EndpointSubsetBuilder builder; + int index; + SubsetsNested(int index,V1EndpointSubset item) { this.index = index; this.builder = new V1EndpointSubsetBuilder(this, item); } - V1EndpointSubsetBuilder builder; - int index; - + public N and() { - return (N) V1EndpointsFluent.this.setToSubsets(index,builder.build()); + return (N) V1EndpointsFluent.this.setToSubsets(index, builder.build()); } public N endSubset() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java index be4b775d3f..132616c2d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EndpointsListBuilder extends V1EndpointsListFluent implements VisitableBuilder{ + + V1EndpointsListFluent fluent; + public V1EndpointsListBuilder() { this(new V1EndpointsList()); } @@ -10,17 +14,16 @@ public V1EndpointsListBuilder(V1EndpointsListFluent fluent) { this(fluent, new V1EndpointsList()); } - public V1EndpointsListBuilder(V1EndpointsListFluent fluent,V1EndpointsList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EndpointsListBuilder(V1EndpointsList instance) { this.fluent = this; this.copyInstance(instance); } - V1EndpointsListFluent fluent; + public V1EndpointsListBuilder(V1EndpointsListFluent fluent,V1EndpointsList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EndpointsList build() { V1EndpointsList buildable = new V1EndpointsList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1EndpointsList build() { return buildable; } - } \ No newline at end of file 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..ea31573149 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EndpointsListFluent> extends BaseFluent{ +public class V1EndpointsListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1EndpointsListFluent() { } public V1EndpointsListFluent(V1EndpointsList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1EndpointsList instance) { - instance = (instance != null ? instance : new V1EndpointsList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Endpoints item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Endpoints... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Endpoints item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Endpoints buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Endpoints buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { - if (this.items == null) return (A)this; - for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Endpoints buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Endpoints item : items) {V1EndpointsBuilder builder = new V1EndpointsBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Endpoints buildMatchingItem(Predicate predicate) { + for (V1EndpointsBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1EndpointsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1EndpointsList instance) { + instance = instance != null ? instance : new V1EndpointsList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Endpoints buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Endpoints buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Endpoints buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EndpointsListFluent that = (V1EndpointsListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Endpoints buildMatchingItem(Predicate predicate) { - for (V1EndpointsBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Endpoints... items) { + if (this.items == null) { + return (A) this; + } + for (V1Endpoints item : items) { + V1EndpointsBuilder builder = new V1EndpointsBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1EndpointsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Endpoints item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { + public A withItems(V1Endpoints... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Endpoints... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Endpoints item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Endpoints 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1EndpointsFluent> implements Nested{ - 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; - V1EndpointsListFluent that = (V1EndpointsListFluent) 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()); - } + V1EndpointsBuilder builder; + int index; - 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 V1EndpointsFluent> implements Nested{ ItemsNested(int index,V1Endpoints item) { this.index = index; this.builder = new V1EndpointsBuilder(this, item); } - V1EndpointsBuilder builder; - int index; - + public N and() { - return (N) V1EndpointsListFluent.this.setToItems(index,builder.build()); + return (N) V1EndpointsListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1EndpointsListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java index e9bab8f133..aed9afb0cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EnvFromSourceBuilder extends V1EnvFromSourceFluent implements VisitableBuilder{ + + V1EnvFromSourceFluent fluent; + public V1EnvFromSourceBuilder() { this(new V1EnvFromSource()); } @@ -10,17 +14,16 @@ public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent) { this(fluent, new V1EnvFromSource()); } - public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,V1EnvFromSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EnvFromSourceBuilder(V1EnvFromSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EnvFromSourceFluent fluent; + public V1EnvFromSourceBuilder(V1EnvFromSourceFluent fluent,V1EnvFromSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EnvFromSource build() { V1EnvFromSource buildable = new V1EnvFromSource(); buildable.setConfigMapRef(fluent.buildConfigMapRef()); @@ -29,5 +32,4 @@ public V1EnvFromSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java index cd2c31fd09..ce16b02dd0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java @@ -1,106 +1,154 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EnvFromSourceFluent> extends BaseFluent{ +public class V1EnvFromSourceFluent> extends BaseFluent{ + + private V1ConfigMapEnvSourceBuilder configMapRef; + private String prefix; + private V1SecretEnvSourceBuilder secretRef; + public V1EnvFromSourceFluent() { } public V1EnvFromSourceFluent(V1EnvFromSource instance) { this.copyInstance(instance); } - private V1ConfigMapEnvSourceBuilder configMapRef; - private String prefix; - private V1SecretEnvSourceBuilder secretRef; - - protected void copyInstance(V1EnvFromSource instance) { - instance = (instance != null ? instance : new V1EnvFromSource()); - if (instance != null) { - this.withConfigMapRef(instance.getConfigMapRef()); - this.withPrefix(instance.getPrefix()); - this.withSecretRef(instance.getSecretRef()); - } - } - + public V1ConfigMapEnvSource buildConfigMapRef() { return this.configMapRef != null ? this.configMapRef.build() : null; } - public A withConfigMapRef(V1ConfigMapEnvSource configMapRef) { - this._visitables.remove("configMapRef"); - if (configMapRef != null) { - this.configMapRef = new V1ConfigMapEnvSourceBuilder(configMapRef); - this._visitables.get("configMapRef").add(this.configMapRef); - } else { - this.configMapRef = null; - this._visitables.get("configMapRef").remove(this.configMapRef); + public V1SecretEnvSource buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } + + protected void copyInstance(V1EnvFromSource instance) { + instance = instance != null ? instance : new V1EnvFromSource(); + if (instance != null) { + this.withConfigMapRef(instance.getConfigMapRef()); + this.withPrefix(instance.getPrefix()); + this.withSecretRef(instance.getSecretRef()); } - return (A) this; } - public boolean hasConfigMapRef() { - return this.configMapRef != null; + public ConfigMapRefNested editConfigMapRef() { + return this.withNewConfigMapRefLike(Optional.ofNullable(this.buildConfigMapRef()).orElse(null)); } - public ConfigMapRefNested withNewConfigMapRef() { - return new ConfigMapRefNested(null); + public ConfigMapRefNested editOrNewConfigMapRef() { + return this.withNewConfigMapRefLike(Optional.ofNullable(this.buildConfigMapRef()).orElse(new V1ConfigMapEnvSourceBuilder().build())); } - public ConfigMapRefNested withNewConfigMapRefLike(V1ConfigMapEnvSource item) { - return new ConfigMapRefNested(item); + public ConfigMapRefNested editOrNewConfigMapRefLike(V1ConfigMapEnvSource item) { + return this.withNewConfigMapRefLike(Optional.ofNullable(this.buildConfigMapRef()).orElse(item)); } - public ConfigMapRefNested editConfigMapRef() { - return withNewConfigMapRefLike(java.util.Optional.ofNullable(buildConfigMapRef()).orElse(null)); + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretEnvSourceBuilder().build())); } - public ConfigMapRefNested editOrNewConfigMapRef() { - return withNewConfigMapRefLike(java.util.Optional.ofNullable(buildConfigMapRef()).orElse(new V1ConfigMapEnvSourceBuilder().build())); + public SecretRefNested editOrNewSecretRefLike(V1SecretEnvSource item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public ConfigMapRefNested editOrNewConfigMapRefLike(V1ConfigMapEnvSource item) { - return withNewConfigMapRefLike(java.util.Optional.ofNullable(buildConfigMapRef()).orElse(item)); + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EnvFromSourceFluent that = (V1EnvFromSourceFluent) o; + if (!(Objects.equals(configMapRef, that.configMapRef))) { + return false; + } + if (!(Objects.equals(prefix, that.prefix))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + return true; } public String getPrefix() { return this.prefix; } - public A withPrefix(String prefix) { - this.prefix = prefix; - return (A) this; + public boolean hasConfigMapRef() { + return this.configMapRef != null; } public boolean hasPrefix() { return this.prefix != null; } - public V1SecretEnvSource buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public boolean hasSecretRef() { + return this.secretRef != null; } - public A withSecretRef(V1SecretEnvSource secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretEnvSourceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); + public int hashCode() { + return Objects.hash(configMapRef, prefix, secretRef); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(configMapRef == null)) { + sb.append("configMapRef:"); + sb.append(configMapRef); + sb.append(","); + } + if (!(prefix == null)) { + sb.append("prefix:"); + sb.append(prefix); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + } + sb.append("}"); + return sb.toString(); + } + + public A withConfigMapRef(V1ConfigMapEnvSource configMapRef) { + this._visitables.remove("configMapRef"); + if (configMapRef != null) { + this.configMapRef = new V1ConfigMapEnvSourceBuilder(configMapRef); + this._visitables.get("configMapRef").add(this.configMapRef); } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); + this.configMapRef = null; + this._visitables.get("configMapRef").remove(this.configMapRef); } return (A) this; } - public boolean hasSecretRef() { - return this.secretRef != null; + public ConfigMapRefNested withNewConfigMapRef() { + return new ConfigMapRefNested(null); + } + + public ConfigMapRefNested withNewConfigMapRefLike(V1ConfigMapEnvSource item) { + return new ConfigMapRefNested(item); } public SecretRefNested withNewSecretRef() { @@ -111,48 +159,30 @@ public SecretRefNested withNewSecretRefLike(V1SecretEnvSource item) { return new SecretRefNested(item); } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); - } - - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretEnvSourceBuilder().build())); - } - - public SecretRefNested editOrNewSecretRefLike(V1SecretEnvSource item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public A withPrefix(String prefix) { + this.prefix = prefix; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1EnvFromSourceFluent that = (V1EnvFromSourceFluent) o; - if (!java.util.Objects.equals(configMapRef, that.configMapRef)) return false; - if (!java.util.Objects.equals(prefix, that.prefix)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - return true; + public A withSecretRef(V1SecretEnvSource secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretEnvSourceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; } + public class ConfigMapRefNested extends V1ConfigMapEnvSourceFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(configMapRef, prefix, secretRef, super.hashCode()); - } + V1ConfigMapEnvSourceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (configMapRef != null) { sb.append("configMapRef:"); sb.append(configMapRef + ","); } - if (prefix != null) { sb.append("prefix:"); sb.append(prefix + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); } - sb.append("}"); - return sb.toString(); - } - public class ConfigMapRefNested extends V1ConfigMapEnvSourceFluent> implements Nested{ ConfigMapRefNested(V1ConfigMapEnvSource item) { this.builder = new V1ConfigMapEnvSourceBuilder(this, item); } - V1ConfigMapEnvSourceBuilder builder; - + public N and() { return (N) V1EnvFromSourceFluent.this.withConfigMapRef(builder.build()); } @@ -161,14 +191,15 @@ public N endConfigMapRef() { return and(); } - } public class SecretRefNested extends V1SecretEnvSourceFluent> implements Nested{ + + V1SecretEnvSourceBuilder builder; + SecretRefNested(V1SecretEnvSource item) { this.builder = new V1SecretEnvSourceBuilder(this, item); } - V1SecretEnvSourceBuilder builder; - + public N and() { return (N) V1EnvFromSourceFluent.this.withSecretRef(builder.build()); } @@ -177,7 +208,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java index e1251cdec7..c57b2710d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EnvVarBuilder extends V1EnvVarFluent implements VisitableBuilder{ + + V1EnvVarFluent fluent; + public V1EnvVarBuilder() { this(new V1EnvVar()); } @@ -10,17 +14,16 @@ public V1EnvVarBuilder(V1EnvVarFluent fluent) { this(fluent, new V1EnvVar()); } - public V1EnvVarBuilder(V1EnvVarFluent fluent,V1EnvVar instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EnvVarBuilder(V1EnvVar instance) { this.fluent = this; this.copyInstance(instance); } - V1EnvVarFluent fluent; + public V1EnvVarBuilder(V1EnvVarFluent fluent,V1EnvVar instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EnvVar build() { V1EnvVar buildable = new V1EnvVar(); buildable.setName(fluent.getName()); @@ -29,5 +32,4 @@ public V1EnvVar build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java index 363943a8de..87bb3e97fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java @@ -1,79 +1,127 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EnvVarFluent> extends BaseFluent{ +public class V1EnvVarFluent> extends BaseFluent{ + + private String name; + private String value; + private V1EnvVarSourceBuilder valueFrom; + public V1EnvVarFluent() { } public V1EnvVarFluent(V1EnvVar instance) { this.copyInstance(instance); } - private String name; - private String value; - private V1EnvVarSourceBuilder valueFrom; + + public V1EnvVarSource buildValueFrom() { + return this.valueFrom != null ? this.valueFrom.build() : null; + } protected void copyInstance(V1EnvVar instance) { - instance = (instance != null ? instance : new V1EnvVar()); + instance = instance != null ? instance : new V1EnvVar(); if (instance != null) { - this.withName(instance.getName()); - this.withValue(instance.getValue()); - this.withValueFrom(instance.getValueFrom()); - } + this.withName(instance.getName()); + this.withValue(instance.getValue()); + this.withValueFrom(instance.getValueFrom()); + } } - public String getName() { - return this.name; + public ValueFromNested editOrNewValueFrom() { + return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(new V1EnvVarSourceBuilder().build())); } - public A withName(String name) { - this.name = name; - return (A) this; + public ValueFromNested editOrNewValueFromLike(V1EnvVarSource item) { + return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(item)); } - public boolean hasName() { - return this.name != null; + public ValueFromNested editValueFrom() { + return this.withNewValueFromLike(Optional.ofNullable(this.buildValueFrom()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EnvVarFluent that = (V1EnvVarFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + if (!(Objects.equals(valueFrom, that.valueFrom))) { + return false; + } + return true; + } + + public String getName() { + return this.name; } public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + public boolean hasName() { + return this.name != null; } public boolean hasValue() { return this.value != null; } - public V1EnvVarSource buildValueFrom() { - return this.valueFrom != null ? this.valueFrom.build() : null; + public boolean hasValueFrom() { + return this.valueFrom != null; } - public A withValueFrom(V1EnvVarSource valueFrom) { - this._visitables.remove("valueFrom"); - if (valueFrom != null) { - this.valueFrom = new V1EnvVarSourceBuilder(valueFrom); - this._visitables.get("valueFrom").add(this.valueFrom); - } else { - this.valueFrom = null; - this._visitables.get("valueFrom").remove(this.valueFrom); + public int hashCode() { + return Objects.hash(name, value, valueFrom); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); } - return (A) this; + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + sb.append(","); + } + if (!(valueFrom == null)) { + sb.append("valueFrom:"); + sb.append(valueFrom); + } + sb.append("}"); + return sb.toString(); } - public boolean hasValueFrom() { - return this.valueFrom != null; + public A withName(String name) { + this.name = name; + return (A) this; } public ValueFromNested withNewValueFrom() { @@ -84,48 +132,30 @@ public ValueFromNested withNewValueFromLike(V1EnvVarSource item) { return new ValueFromNested(item); } - public ValueFromNested editValueFrom() { - return withNewValueFromLike(java.util.Optional.ofNullable(buildValueFrom()).orElse(null)); - } - - public ValueFromNested editOrNewValueFrom() { - return withNewValueFromLike(java.util.Optional.ofNullable(buildValueFrom()).orElse(new V1EnvVarSourceBuilder().build())); - } - - public ValueFromNested editOrNewValueFromLike(V1EnvVarSource item) { - return withNewValueFromLike(java.util.Optional.ofNullable(buildValueFrom()).orElse(item)); + public A withValue(String value) { + this.value = value; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1EnvVarFluent that = (V1EnvVarFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - if (!java.util.Objects.equals(valueFrom, that.valueFrom)) return false; - return true; + public A withValueFrom(V1EnvVarSource valueFrom) { + this._visitables.remove("valueFrom"); + if (valueFrom != null) { + this.valueFrom = new V1EnvVarSourceBuilder(valueFrom); + this._visitables.get("valueFrom").add(this.valueFrom); + } else { + this.valueFrom = null; + this._visitables.get("valueFrom").remove(this.valueFrom); + } + return (A) this; } + public class ValueFromNested extends V1EnvVarSourceFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(name, value, valueFrom, super.hashCode()); - } + V1EnvVarSourceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (value != null) { sb.append("value:"); sb.append(value + ","); } - if (valueFrom != null) { sb.append("valueFrom:"); sb.append(valueFrom); } - sb.append("}"); - return sb.toString(); - } - public class ValueFromNested extends V1EnvVarSourceFluent> implements Nested{ ValueFromNested(V1EnvVarSource item) { this.builder = new V1EnvVarSourceBuilder(this, item); } - V1EnvVarSourceBuilder builder; - + public N and() { return (N) V1EnvVarFluent.this.withValueFrom(builder.build()); } @@ -134,7 +164,5 @@ public N endValueFrom() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java index ff8139d518..a66071e828 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EnvVarSourceBuilder extends V1EnvVarSourceFluent implements VisitableBuilder{ + + V1EnvVarSourceFluent fluent; + public V1EnvVarSourceBuilder() { this(new V1EnvVarSource()); } @@ -10,25 +14,24 @@ public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent) { this(fluent, new V1EnvVarSource()); } - public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent,V1EnvVarSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EnvVarSourceBuilder(V1EnvVarSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EnvVarSourceFluent fluent; + public V1EnvVarSourceBuilder(V1EnvVarSourceFluent fluent,V1EnvVarSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EnvVarSource build() { V1EnvVarSource buildable = new V1EnvVarSource(); buildable.setConfigMapKeyRef(fluent.buildConfigMapKeyRef()); buildable.setFieldRef(fluent.buildFieldRef()); + buildable.setFileKeyRef(fluent.buildFileKeyRef()); buildable.setResourceFieldRef(fluent.buildResourceFieldRef()); buildable.setSecretKeyRef(fluent.buildSecretKeyRef()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java index b3ff98ef5d..f4e6c4a50a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java @@ -1,79 +1,218 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EnvVarSourceFluent> extends BaseFluent{ +public class V1EnvVarSourceFluent> extends BaseFluent{ + + private V1ConfigMapKeySelectorBuilder configMapKeyRef; + private V1ObjectFieldSelectorBuilder fieldRef; + private V1FileKeySelectorBuilder fileKeyRef; + private V1ResourceFieldSelectorBuilder resourceFieldRef; + private V1SecretKeySelectorBuilder secretKeyRef; + public V1EnvVarSourceFluent() { } public V1EnvVarSourceFluent(V1EnvVarSource instance) { this.copyInstance(instance); } - private V1ConfigMapKeySelectorBuilder configMapKeyRef; - private V1ObjectFieldSelectorBuilder fieldRef; - private V1ResourceFieldSelectorBuilder resourceFieldRef; - private V1SecretKeySelectorBuilder secretKeyRef; + + public V1ConfigMapKeySelector buildConfigMapKeyRef() { + return this.configMapKeyRef != null ? this.configMapKeyRef.build() : null; + } + + public V1ObjectFieldSelector buildFieldRef() { + return this.fieldRef != null ? this.fieldRef.build() : null; + } + + public V1FileKeySelector buildFileKeyRef() { + return this.fileKeyRef != null ? this.fileKeyRef.build() : null; + } + + public V1ResourceFieldSelector buildResourceFieldRef() { + return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + } + + public V1SecretKeySelector buildSecretKeyRef() { + return this.secretKeyRef != null ? this.secretKeyRef.build() : null; + } protected void copyInstance(V1EnvVarSource instance) { - instance = (instance != null ? instance : new V1EnvVarSource()); + instance = instance != null ? instance : new V1EnvVarSource(); if (instance != null) { - this.withConfigMapKeyRef(instance.getConfigMapKeyRef()); - this.withFieldRef(instance.getFieldRef()); - this.withResourceFieldRef(instance.getResourceFieldRef()); - this.withSecretKeyRef(instance.getSecretKeyRef()); - } + this.withConfigMapKeyRef(instance.getConfigMapKeyRef()); + this.withFieldRef(instance.getFieldRef()); + this.withFileKeyRef(instance.getFileKeyRef()); + this.withResourceFieldRef(instance.getResourceFieldRef()); + this.withSecretKeyRef(instance.getSecretKeyRef()); + } } - public V1ConfigMapKeySelector buildConfigMapKeyRef() { - return this.configMapKeyRef != null ? this.configMapKeyRef.build() : null; + public ConfigMapKeyRefNested editConfigMapKeyRef() { + return this.withNewConfigMapKeyRefLike(Optional.ofNullable(this.buildConfigMapKeyRef()).orElse(null)); } - public A withConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { - this._visitables.remove("configMapKeyRef"); - if (configMapKeyRef != null) { - this.configMapKeyRef = new V1ConfigMapKeySelectorBuilder(configMapKeyRef); - this._visitables.get("configMapKeyRef").add(this.configMapKeyRef); - } else { - this.configMapKeyRef = null; - this._visitables.get("configMapKeyRef").remove(this.configMapKeyRef); + public FieldRefNested editFieldRef() { + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(null)); + } + + public FileKeyRefNested editFileKeyRef() { + return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(null)); + } + + public ConfigMapKeyRefNested editOrNewConfigMapKeyRef() { + return this.withNewConfigMapKeyRefLike(Optional.ofNullable(this.buildConfigMapKeyRef()).orElse(new V1ConfigMapKeySelectorBuilder().build())); + } + + public ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { + return this.withNewConfigMapKeyRefLike(Optional.ofNullable(this.buildConfigMapKeyRef()).orElse(item)); + } + + public FieldRefNested editOrNewFieldRef() { + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(new V1ObjectFieldSelectorBuilder().build())); + } + + public FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { + return this.withNewFieldRefLike(Optional.ofNullable(this.buildFieldRef()).orElse(item)); + } + + public FileKeyRefNested editOrNewFileKeyRef() { + return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(new V1FileKeySelectorBuilder().build())); + } + + public FileKeyRefNested editOrNewFileKeyRefLike(V1FileKeySelector item) { + return this.withNewFileKeyRefLike(Optional.ofNullable(this.buildFileKeyRef()).orElse(item)); + } + + public ResourceFieldRefNested editOrNewResourceFieldRef() { + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); + } + + public ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item) { + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(item)); + } + + public SecretKeyRefNested editOrNewSecretKeyRef() { + return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(new V1SecretKeySelectorBuilder().build())); + } + + public SecretKeyRefNested editOrNewSecretKeyRefLike(V1SecretKeySelector item) { + return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(item)); + } + + public ResourceFieldRefNested editResourceFieldRef() { + return this.withNewResourceFieldRefLike(Optional.ofNullable(this.buildResourceFieldRef()).orElse(null)); + } + + public SecretKeyRefNested editSecretKeyRef() { + return this.withNewSecretKeyRefLike(Optional.ofNullable(this.buildSecretKeyRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EnvVarSourceFluent that = (V1EnvVarSourceFluent) o; + if (!(Objects.equals(configMapKeyRef, that.configMapKeyRef))) { + return false; + } + if (!(Objects.equals(fieldRef, that.fieldRef))) { + return false; + } + if (!(Objects.equals(fileKeyRef, that.fileKeyRef))) { + return false; + } + if (!(Objects.equals(resourceFieldRef, that.resourceFieldRef))) { + return false; + } + if (!(Objects.equals(secretKeyRef, that.secretKeyRef))) { + return false; + } + return true; } public boolean hasConfigMapKeyRef() { return this.configMapKeyRef != null; } - public ConfigMapKeyRefNested withNewConfigMapKeyRef() { - return new ConfigMapKeyRefNested(null); + public boolean hasFieldRef() { + return this.fieldRef != null; } - public ConfigMapKeyRefNested withNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { - return new ConfigMapKeyRefNested(item); + public boolean hasFileKeyRef() { + return this.fileKeyRef != null; } - public ConfigMapKeyRefNested editConfigMapKeyRef() { - return withNewConfigMapKeyRefLike(java.util.Optional.ofNullable(buildConfigMapKeyRef()).orElse(null)); + public boolean hasResourceFieldRef() { + return this.resourceFieldRef != null; } - public ConfigMapKeyRefNested editOrNewConfigMapKeyRef() { - return withNewConfigMapKeyRefLike(java.util.Optional.ofNullable(buildConfigMapKeyRef()).orElse(new V1ConfigMapKeySelectorBuilder().build())); + public boolean hasSecretKeyRef() { + return this.secretKeyRef != null; } - public ConfigMapKeyRefNested editOrNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { - return withNewConfigMapKeyRefLike(java.util.Optional.ofNullable(buildConfigMapKeyRef()).orElse(item)); + public int hashCode() { + return Objects.hash(configMapKeyRef, fieldRef, fileKeyRef, resourceFieldRef, secretKeyRef); } - public V1ObjectFieldSelector buildFieldRef() { - return this.fieldRef != null ? this.fieldRef.build() : null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(configMapKeyRef == null)) { + sb.append("configMapKeyRef:"); + sb.append(configMapKeyRef); + sb.append(","); + } + if (!(fieldRef == null)) { + sb.append("fieldRef:"); + sb.append(fieldRef); + sb.append(","); + } + if (!(fileKeyRef == null)) { + sb.append("fileKeyRef:"); + sb.append(fileKeyRef); + sb.append(","); + } + if (!(resourceFieldRef == null)) { + sb.append("resourceFieldRef:"); + sb.append(resourceFieldRef); + sb.append(","); + } + if (!(secretKeyRef == null)) { + sb.append("secretKeyRef:"); + sb.append(secretKeyRef); + } + sb.append("}"); + return sb.toString(); + } + + public A withConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { + this._visitables.remove("configMapKeyRef"); + if (configMapKeyRef != null) { + this.configMapKeyRef = new V1ConfigMapKeySelectorBuilder(configMapKeyRef); + this._visitables.get("configMapKeyRef").add(this.configMapKeyRef); + } else { + this.configMapKeyRef = null; + this._visitables.get("configMapKeyRef").remove(this.configMapKeyRef); + } + return (A) this; } public A withFieldRef(V1ObjectFieldSelector fieldRef) { @@ -88,8 +227,24 @@ public A withFieldRef(V1ObjectFieldSelector fieldRef) { return (A) this; } - public boolean hasFieldRef() { - return this.fieldRef != null; + public A withFileKeyRef(V1FileKeySelector fileKeyRef) { + this._visitables.remove("fileKeyRef"); + if (fileKeyRef != null) { + this.fileKeyRef = new V1FileKeySelectorBuilder(fileKeyRef); + this._visitables.get("fileKeyRef").add(this.fileKeyRef); + } else { + this.fileKeyRef = null; + this._visitables.get("fileKeyRef").remove(this.fileKeyRef); + } + return (A) this; + } + + public ConfigMapKeyRefNested withNewConfigMapKeyRef() { + return new ConfigMapKeyRefNested(null); + } + + public ConfigMapKeyRefNested withNewConfigMapKeyRefLike(V1ConfigMapKeySelector item) { + return new ConfigMapKeyRefNested(item); } public FieldRefNested withNewFieldRef() { @@ -100,20 +255,28 @@ public FieldRefNested withNewFieldRefLike(V1ObjectFieldSelector item) { return new FieldRefNested(item); } - public FieldRefNested editFieldRef() { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(null)); + public FileKeyRefNested withNewFileKeyRef() { + return new FileKeyRefNested(null); } - public FieldRefNested editOrNewFieldRef() { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(new V1ObjectFieldSelectorBuilder().build())); + public FileKeyRefNested withNewFileKeyRefLike(V1FileKeySelector item) { + return new FileKeyRefNested(item); } - public FieldRefNested editOrNewFieldRefLike(V1ObjectFieldSelector item) { - return withNewFieldRefLike(java.util.Optional.ofNullable(buildFieldRef()).orElse(item)); + public ResourceFieldRefNested withNewResourceFieldRef() { + return new ResourceFieldRefNested(null); } - public V1ResourceFieldSelector buildResourceFieldRef() { - return this.resourceFieldRef != null ? this.resourceFieldRef.build() : null; + public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { + return new ResourceFieldRefNested(item); + } + + public SecretKeyRefNested withNewSecretKeyRef() { + return new SecretKeyRefNested(null); + } + + public SecretKeyRefNested withNewSecretKeyRefLike(V1SecretKeySelector item) { + return new SecretKeyRefNested(item); } public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { @@ -128,34 +291,6 @@ public A withResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { return (A) this; } - public boolean hasResourceFieldRef() { - return this.resourceFieldRef != null; - } - - public ResourceFieldRefNested withNewResourceFieldRef() { - return new ResourceFieldRefNested(null); - } - - public ResourceFieldRefNested withNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return new ResourceFieldRefNested(item); - } - - public ResourceFieldRefNested editResourceFieldRef() { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(null)); - } - - public ResourceFieldRefNested editOrNewResourceFieldRef() { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(new V1ResourceFieldSelectorBuilder().build())); - } - - public ResourceFieldRefNested editOrNewResourceFieldRefLike(V1ResourceFieldSelector item) { - return withNewResourceFieldRefLike(java.util.Optional.ofNullable(buildResourceFieldRef()).orElse(item)); - } - - public V1SecretKeySelector buildSecretKeyRef() { - return this.secretKeyRef != null ? this.secretKeyRef.build() : null; - } - public A withSecretKeyRef(V1SecretKeySelector secretKeyRef) { this._visitables.remove("secretKeyRef"); if (secretKeyRef != null) { @@ -167,63 +302,14 @@ public A withSecretKeyRef(V1SecretKeySelector secretKeyRef) { } return (A) this; } + public class ConfigMapKeyRefNested extends V1ConfigMapKeySelectorFluent> implements Nested{ - public boolean hasSecretKeyRef() { - return this.secretKeyRef != null; - } - - public SecretKeyRefNested withNewSecretKeyRef() { - return new SecretKeyRefNested(null); - } - - public SecretKeyRefNested withNewSecretKeyRefLike(V1SecretKeySelector item) { - return new SecretKeyRefNested(item); - } - - public SecretKeyRefNested editSecretKeyRef() { - return withNewSecretKeyRefLike(java.util.Optional.ofNullable(buildSecretKeyRef()).orElse(null)); - } - - public SecretKeyRefNested editOrNewSecretKeyRef() { - return withNewSecretKeyRefLike(java.util.Optional.ofNullable(buildSecretKeyRef()).orElse(new V1SecretKeySelectorBuilder().build())); - } - - public SecretKeyRefNested editOrNewSecretKeyRefLike(V1SecretKeySelector item) { - return withNewSecretKeyRefLike(java.util.Optional.ofNullable(buildSecretKeyRef()).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; - V1EnvVarSourceFluent that = (V1EnvVarSourceFluent) o; - if (!java.util.Objects.equals(configMapKeyRef, that.configMapKeyRef)) return false; - if (!java.util.Objects.equals(fieldRef, that.fieldRef)) return false; - if (!java.util.Objects.equals(resourceFieldRef, that.resourceFieldRef)) return false; - if (!java.util.Objects.equals(secretKeyRef, that.secretKeyRef)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(configMapKeyRef, fieldRef, resourceFieldRef, secretKeyRef, super.hashCode()); - } + V1ConfigMapKeySelectorBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (configMapKeyRef != null) { sb.append("configMapKeyRef:"); sb.append(configMapKeyRef + ","); } - if (fieldRef != null) { sb.append("fieldRef:"); sb.append(fieldRef + ","); } - if (resourceFieldRef != null) { sb.append("resourceFieldRef:"); sb.append(resourceFieldRef + ","); } - if (secretKeyRef != null) { sb.append("secretKeyRef:"); sb.append(secretKeyRef); } - sb.append("}"); - return sb.toString(); - } - public class ConfigMapKeyRefNested extends V1ConfigMapKeySelectorFluent> implements Nested{ ConfigMapKeyRefNested(V1ConfigMapKeySelector item) { this.builder = new V1ConfigMapKeySelectorBuilder(this, item); } - V1ConfigMapKeySelectorBuilder builder; - + public N and() { return (N) V1EnvVarSourceFluent.this.withConfigMapKeyRef(builder.build()); } @@ -232,14 +318,15 @@ public N endConfigMapKeyRef() { return and(); } - } public class FieldRefNested extends V1ObjectFieldSelectorFluent> implements Nested{ + + V1ObjectFieldSelectorBuilder builder; + FieldRefNested(V1ObjectFieldSelector item) { this.builder = new V1ObjectFieldSelectorBuilder(this, item); } - V1ObjectFieldSelectorBuilder builder; - + public N and() { return (N) V1EnvVarSourceFluent.this.withFieldRef(builder.build()); } @@ -248,14 +335,32 @@ public N endFieldRef() { return and(); } + } + public class FileKeyRefNested extends V1FileKeySelectorFluent> implements Nested{ + V1FileKeySelectorBuilder builder; + + FileKeyRefNested(V1FileKeySelector item) { + this.builder = new V1FileKeySelectorBuilder(this, item); + } + + public N and() { + return (N) V1EnvVarSourceFluent.this.withFileKeyRef(builder.build()); + } + + public N endFileKeyRef() { + return and(); + } + } public class ResourceFieldRefNested extends V1ResourceFieldSelectorFluent> implements Nested{ + + V1ResourceFieldSelectorBuilder builder; + ResourceFieldRefNested(V1ResourceFieldSelector item) { this.builder = new V1ResourceFieldSelectorBuilder(this, item); } - V1ResourceFieldSelectorBuilder builder; - + public N and() { return (N) V1EnvVarSourceFluent.this.withResourceFieldRef(builder.build()); } @@ -264,14 +369,15 @@ public N endResourceFieldRef() { return and(); } - } public class SecretKeyRefNested extends V1SecretKeySelectorFluent> implements Nested{ + + V1SecretKeySelectorBuilder builder; + SecretKeyRefNested(V1SecretKeySelector item) { this.builder = new V1SecretKeySelectorBuilder(this, item); } - V1SecretKeySelectorBuilder builder; - + public N and() { return (N) V1EnvVarSourceFluent.this.withSecretKeyRef(builder.build()); } @@ -280,7 +386,5 @@ public N endSecretKeyRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java index 6c1e6170f7..a5d767ccda 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EphemeralContainerBuilder extends V1EphemeralContainerFluent implements VisitableBuilder{ + + V1EphemeralContainerFluent fluent; + public V1EphemeralContainerBuilder() { this(new V1EphemeralContainer()); } @@ -10,17 +14,16 @@ public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent) { this(fluent, new V1EphemeralContainer()); } - public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent,V1EphemeralContainer instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EphemeralContainerBuilder(V1EphemeralContainer instance) { this.fluent = this; this.copyInstance(instance); } - V1EphemeralContainerFluent fluent; + public V1EphemeralContainerBuilder(V1EphemeralContainerFluent fluent,V1EphemeralContainer instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EphemeralContainer build() { V1EphemeralContainer buildable = new V1EphemeralContainer(); buildable.setArgs(fluent.getArgs()); @@ -37,6 +40,7 @@ public V1EphemeralContainer build() { buildable.setResizePolicy(fluent.buildResizePolicy()); buildable.setResources(fluent.buildResources()); buildable.setRestartPolicy(fluent.getRestartPolicy()); + buildable.setRestartPolicyRules(fluent.buildRestartPolicyRules()); buildable.setSecurityContext(fluent.buildSecurityContext()); buildable.setStartupProbe(fluent.buildStartupProbe()); buildable.setStdin(fluent.getStdin()); @@ -51,5 +55,4 @@ public V1EphemeralContainer build() { return buildable; } - } \ No newline at end of file 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..6679035464 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 @@ -1,29 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EphemeralContainerFluent> extends BaseFluent{ - public V1EphemeralContainerFluent() { - } - - public V1EphemeralContainerFluent(V1EphemeralContainer instance) { - this.copyInstance(instance); - } +public class V1EphemeralContainerFluent> extends BaseFluent{ + private List args; private List command; private ArrayList env; @@ -38,6 +36,7 @@ public V1EphemeralContainerFluent(V1EphemeralContainer instance) { private ArrayList resizePolicy; private V1ResourceRequirementsBuilder resources; private String restartPolicy; + private ArrayList restartPolicyRules; private V1SecurityContextBuilder securityContext; private V1ProbeBuilder startupProbe; private Boolean stdin; @@ -49,439 +48,486 @@ public V1EphemeralContainerFluent(V1EphemeralContainer instance) { private ArrayList volumeDevices; private ArrayList volumeMounts; private String workingDir; - - protected void copyInstance(V1EphemeralContainer instance) { - instance = (instance != null ? instance : new V1EphemeralContainer()); - if (instance != null) { - this.withArgs(instance.getArgs()); - this.withCommand(instance.getCommand()); - this.withEnv(instance.getEnv()); - this.withEnvFrom(instance.getEnvFrom()); - this.withImage(instance.getImage()); - this.withImagePullPolicy(instance.getImagePullPolicy()); - this.withLifecycle(instance.getLifecycle()); - this.withLivenessProbe(instance.getLivenessProbe()); - this.withName(instance.getName()); - this.withPorts(instance.getPorts()); - this.withReadinessProbe(instance.getReadinessProbe()); - this.withResizePolicy(instance.getResizePolicy()); - this.withResources(instance.getResources()); - this.withRestartPolicy(instance.getRestartPolicy()); - this.withSecurityContext(instance.getSecurityContext()); - this.withStartupProbe(instance.getStartupProbe()); - this.withStdin(instance.getStdin()); - this.withStdinOnce(instance.getStdinOnce()); - this.withTargetContainerName(instance.getTargetContainerName()); - this.withTerminationMessagePath(instance.getTerminationMessagePath()); - this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); - this.withTty(instance.getTty()); - this.withVolumeDevices(instance.getVolumeDevices()); - this.withVolumeMounts(instance.getVolumeMounts()); - this.withWorkingDir(instance.getWorkingDir()); - } - } - - public A addToArgs(int index,String item) { - if (this.args == null) {this.args = new ArrayList();} - this.args.add(index, item); - return (A)this; - } - - public A setToArgs(int index,String item) { - if (this.args == null) {this.args = new ArrayList();} - this.args.set(index, item); return (A)this; + + public V1EphemeralContainerFluent() { } - public A addToArgs(java.lang.String... items) { - if (this.args == null) {this.args = new ArrayList();} - for (String item : items) {this.args.add(item);} return (A)this; + public V1EphemeralContainerFluent(V1EphemeralContainer instance) { + this.copyInstance(instance); } - + public A addAllToArgs(Collection items) { - if (this.args == null) {this.args = new ArrayList();} - for (String item : items) {this.args.add(item);} return (A)this; - } - - public A removeFromArgs(java.lang.String... items) { - if (this.args == null) return (A)this; - for (String item : items) { this.args.remove(item);} return (A)this; - } - - public A removeAllFromArgs(Collection items) { - if (this.args == null) return (A)this; - for (String item : items) { this.args.remove(item);} return (A)this; + if (this.args == null) { + this.args = new ArrayList(); + } + for (String item : items) { + this.args.add(item); + } + return (A) this; } - public List getArgs() { - return this.args; + public A addAllToCommand(Collection items) { + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; } - public String getArg(int index) { - return this.args.get(index); + public A addAllToEnv(Collection items) { + if (this.env == null) { + this.env = new ArrayList(); + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); + } + return (A) this; } - public String getFirstArg() { - return this.args.get(0); + public A addAllToEnvFrom(Collection items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); + } + return (A) this; } - public String getLastArg() { - return this.args.get(args.size() - 1); + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public String getMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A addAllToResizePolicy(Collection items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); + } + return (A) this; } - public boolean hasMatchingArg(Predicate predicate) { - for (String item : args) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addAllToRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); + } + return (A) this; } - public A withArgs(List args) { - if (args != null) { - this.args = new ArrayList(); - for (String item : args) { - this.addToArgs(item); - } - } else { - this.args = null; + public A addAllToVolumeDevices(Collection items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } return (A) this; } - public A withArgs(java.lang.String... args) { - if (this.args != null) { - this.args.clear(); - _visitables.remove("args"); + public A addAllToVolumeMounts(Collection items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - if (args != null) { - for (String item : args) { - this.addToArgs(item); - } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public boolean hasArgs() { - return this.args != null && !this.args.isEmpty(); + public EnvNested addNewEnv() { + return new EnvNested(-1, null); } - public A addToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} - this.command.add(index, item); - return (A)this; + public EnvFromNested addNewEnvFrom() { + return new EnvFromNested(-1, null); } - public A setToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} - this.command.set(index, item); return (A)this; + public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { + return new EnvFromNested(-1, item); } - public A addToCommand(java.lang.String... items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + public EnvNested addNewEnvLike(V1EnvVar item) { + return new EnvNested(-1, item); } - public A addAllToCommand(Collection items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public A removeFromCommand(java.lang.String... items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + public PortsNested addNewPortLike(V1ContainerPort item) { + return new PortsNested(-1, item); } - public A removeAllFromCommand(Collection items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + public ResizePolicyNested addNewResizePolicy() { + return new ResizePolicyNested(-1, null); } - public List getCommand() { - return this.command; + public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { + return new ResizePolicyNested(-1, item); } - public String getCommand(int index) { - return this.command.get(index); + public RestartPolicyRulesNested addNewRestartPolicyRule() { + return new RestartPolicyRulesNested(-1, null); } - public String getFirstCommand() { - return this.command.get(0); + public RestartPolicyRulesNested addNewRestartPolicyRuleLike(V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(-1, item); } - public String getLastCommand() { - return this.command.get(command.size() - 1); + public VolumeDevicesNested addNewVolumeDevice() { + return new VolumeDevicesNested(-1, null); } - public String getMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return item; - } - } - return null; + public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { + return new VolumeDevicesNested(-1, item); } - public boolean hasMatchingCommand(Predicate predicate) { - for (String item : command) { - if (predicate.test(item)) { - return true; - } - } - return false; + public VolumeMountsNested addNewVolumeMount() { + return new VolumeMountsNested(-1, null); } - public A withCommand(List command) { - if (command != null) { - this.command = new ArrayList(); - for (String item : command) { - this.addToCommand(item); - } - } else { - this.command = null; + public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { + return new VolumeMountsNested(-1, item); + } + + public A addToArgs(String... items) { + if (this.args == null) { + this.args = new ArrayList(); + } + for (String item : items) { + this.args.add(item); } return (A) this; } - public A withCommand(java.lang.String... command) { - if (this.command != null) { - this.command.clear(); - _visitables.remove("command"); + public A addToArgs(int index,String item) { + if (this.args == null) { + this.args = new ArrayList(); } - if (command != null) { - for (String item : command) { - this.addToCommand(item); - } + this.args.add(index, item); + return (A) this; + } + + public A addToCommand(String... items) { + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); } return (A) this; } - public boolean hasCommand() { - return this.command != null && !this.command.isEmpty(); + public A addToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); + } + this.command.add(index, item); + return (A) this; + } + + public A addToEnv(V1EnvVar... items) { + if (this.env == null) { + this.env = new ArrayList(); + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").add(builder); + this.env.add(builder); + } + return (A) this; } public A addToEnv(int index,V1EnvVar item) { - if (this.env == null) {this.env = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public A addToEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + this.envFrom = new ArrayList(); + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").add(builder); + this.envFrom.add(builder); + } + return (A) this; } - public A addToEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) {this.env = new ArrayList();} - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; + 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(builder); + envFrom.add(index, builder); + } + return (A) this; } - public A addAllToEnv(Collection items) { - if (this.env == null) {this.env = new ArrayList();} - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").add(builder);this.env.add(builder);} return (A)this; + public A addToPorts(V1ContainerPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeFromEnv(io.kubernetes.client.openapi.models.V1EnvVar... items) { - if (this.env == null) return (A)this; - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this; + 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(builder); + ports.add(index, builder); + } + return (A) this; } - public A removeAllFromEnv(Collection items) { - if (this.env == null) return (A)this; - for (V1EnvVar item : items) {V1EnvVarBuilder builder = new V1EnvVarBuilder(item);_visitables.get("env").remove(builder); this.env.remove(builder);} return (A)this; + public A addToResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + this.resizePolicy = new ArrayList(); + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); + } + return (A) this; } - public A removeMatchingFromEnv(Predicate predicate) { - if (env == null) return (A) this; - final Iterator each = env.iterator(); - final List visitables = _visitables.get("env"); - while (each.hasNext()) { - V1EnvVarBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + resizePolicy.add(index, builder); } - return (A)this; + return (A) this; } - public List buildEnv() { - return this.env != null ? build(env) : null; + public A addToRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); + } + return (A) this; } - public V1EnvVar buildEnv(int index) { - return this.env.get(index).build(); + public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(index, builder); + } + return (A) this; } - public V1EnvVar buildFirstEnv() { - return this.env.get(0).build(); + public A addToVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + this.volumeDevices = new ArrayList(); + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); + } + return (A) this; } - public V1EnvVar buildLastEnv() { - return this.env.get(env.size() - 1).build(); + 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(builder); + volumeDevices.add(index, builder); + } + return (A) this; } - public V1EnvVar buildMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingEnv(Predicate predicate) { - for (V1EnvVarBuilder item : env) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withEnv(List env) { - if (this.env != null) { - this._visitables.get("env").clear(); + public A addToVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - if (env != null) { - this.env = new ArrayList(); - for (V1EnvVar item : env) { - this.addToEnv(item); - } - } else { - this.env = null; + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } return (A) this; } - public A withEnv(io.kubernetes.client.openapi.models.V1EnvVar... env) { - if (this.env != null) { - this.env.clear(); - _visitables.remove("env"); + public A addToVolumeMounts(int index,V1VolumeMount item) { + if (this.volumeMounts == null) { + this.volumeMounts = new ArrayList(); } - if (env != null) { - for (V1EnvVar item : env) { - this.addToEnv(item); - } + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(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 boolean hasEnv() { - return this.env != null && !this.env.isEmpty(); + public List buildEnv() { + return this.env != null ? build(env) : null; } - public EnvNested addNewEnv() { - return new EnvNested(-1, null); + public V1EnvVar buildEnv(int index) { + return this.env.get(index).build(); } - public EnvNested addNewEnvLike(V1EnvVar item) { - return new EnvNested(-1, item); + public List buildEnvFrom() { + return this.envFrom != null ? build(envFrom) : null; } - public EnvNested setNewEnvLike(int index,V1EnvVar item) { - return new EnvNested(index, item); + public V1EnvFromSource buildEnvFrom(int index) { + return this.envFrom.get(index).build(); } - public EnvNested editEnv(int index) { - if (env.size() <= index) throw new RuntimeException("Can't edit env. Index exceeds size."); - return setNewEnvLike(index, buildEnv(index)); + public V1EnvVar buildFirstEnv() { + return this.env.get(0).build(); } - public EnvNested editFirstEnv() { - if (env.size() == 0) throw new RuntimeException("Can't edit first env. The list is empty."); - return setNewEnvLike(0, buildEnv(0)); + public V1EnvFromSource buildFirstEnvFrom() { + return this.envFrom.get(0).build(); } - public EnvNested editLastEnv() { - int index = env.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last env. The list is empty."); - return setNewEnvLike(index, buildEnv(index)); + public V1ContainerPort buildFirstPort() { + return this.ports.get(0).build(); } - public EnvNested editMatchingEnv(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public V1ContainerRestartRule buildFirstRestartPolicyRule() { + return this.restartPolicyRules.get(0).build(); } - 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);} - return (A)this; + public V1VolumeDevice buildFirstVolumeDevice() { + return this.volumeDevices.get(0).build(); } - public A addToEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; + public V1VolumeMount buildFirstVolumeMount() { + return this.volumeMounts.get(0).build(); } - public A addAllToEnvFrom(Collection items) { - if (this.envFrom == null) {this.envFrom = new ArrayList();} - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").add(builder);this.envFrom.add(builder);} return (A)this; + public V1EnvVar buildLastEnv() { + return this.env.get(env.size() - 1).build(); } - public A removeFromEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... items) { - if (this.envFrom == null) return (A)this; - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this; + public V1EnvFromSource buildLastEnvFrom() { + return this.envFrom.get(envFrom.size() - 1).build(); } - public A removeAllFromEnvFrom(Collection items) { - if (this.envFrom == null) return (A)this; - for (V1EnvFromSource item : items) {V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item);_visitables.get("envFrom").remove(builder); this.envFrom.remove(builder);} return (A)this; + public V1ContainerPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); } - public A removeMatchingFromEnvFrom(Predicate predicate) { - if (envFrom == null) return (A) this; - final Iterator each = envFrom.iterator(); - final List visitables = _visitables.get("envFrom"); - while (each.hasNext()) { - V1EnvFromSourceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1ContainerResizePolicy buildLastResizePolicy() { + return this.resizePolicy.get(resizePolicy.size() - 1).build(); } - public List buildEnvFrom() { - return this.envFrom != null ? build(envFrom) : null; + public V1ContainerRestartRule buildLastRestartPolicyRule() { + return this.restartPolicyRules.get(restartPolicyRules.size() - 1).build(); } - public V1EnvFromSource buildEnvFrom(int index) { - return this.envFrom.get(index).build(); + public V1VolumeDevice buildLastVolumeDevice() { + return this.volumeDevices.get(volumeDevices.size() - 1).build(); } - public V1EnvFromSource buildFirstEnvFrom() { - return this.envFrom.get(0).build(); + public V1VolumeMount buildLastVolumeMount() { + return this.volumeMounts.get(volumeMounts.size() - 1).build(); } - public V1EnvFromSource buildLastEnvFrom() { - return this.envFrom.get(envFrom.size() - 1).build(); + public V1Lifecycle buildLifecycle() { + return this.lifecycle != null ? this.lifecycle.build() : null; + } + + public V1Probe buildLivenessProbe() { + return this.livenessProbe != null ? this.livenessProbe.build() : null; + } + + public V1EnvVar buildMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } public V1EnvFromSource buildMatchingEnvFrom(Predicate predicate) { @@ -493,987 +539,1841 @@ public V1EnvFromSource buildMatchingEnvFrom(Predicate pr return null; } - public boolean hasMatchingEnvFrom(Predicate predicate) { - for (V1EnvFromSourceBuilder item : envFrom) { + public V1ContainerPort buildMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withEnvFrom(List envFrom) { - if (this.envFrom != null) { - this._visitables.get("envFrom").clear(); - } - if (envFrom != null) { - this.envFrom = new ArrayList(); - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); + public V1ContainerResizePolicy buildMatchingResizePolicy(Predicate predicate) { + for (V1ContainerResizePolicyBuilder item : resizePolicy) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.envFrom = null; - } - return (A) this; + } + return null; } - public A withEnvFrom(io.kubernetes.client.openapi.models.V1EnvFromSource... envFrom) { - if (this.envFrom != null) { - this.envFrom.clear(); - _visitables.remove("envFrom"); - } - if (envFrom != null) { - for (V1EnvFromSource item : envFrom) { - this.addToEnvFrom(item); + public V1ContainerRestartRule buildMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A) this; + return null; } - public boolean hasEnvFrom() { - return this.envFrom != null && !this.envFrom.isEmpty(); + public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public EnvFromNested addNewEnvFrom() { - return new EnvFromNested(-1, null); + public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public EnvFromNested addNewEnvFromLike(V1EnvFromSource item) { - return new EnvFromNested(-1, item); + public V1ContainerPort buildPort(int index) { + return this.ports.get(index).build(); } - public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { - return new EnvFromNested(index, item); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public EnvFromNested editEnvFrom(int index) { - if (envFrom.size() <= index) throw new RuntimeException("Can't edit envFrom. Index exceeds size."); - return setNewEnvFromLike(index, buildEnvFrom(index)); + public V1Probe buildReadinessProbe() { + return this.readinessProbe != null ? this.readinessProbe.build() : null; } - public EnvFromNested editFirstEnvFrom() { - if (envFrom.size() == 0) throw new RuntimeException("Can't edit first envFrom. The list is empty."); - return setNewEnvFromLike(0, buildEnvFrom(0)); + public List buildResizePolicy() { + return this.resizePolicy != null ? build(resizePolicy) : null; } - public EnvFromNested editLastEnvFrom() { - int index = envFrom.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last envFrom. The list is empty."); - return setNewEnvFromLike(index, buildEnvFrom(index)); + public V1ContainerResizePolicy buildResizePolicy(int index) { + return this.resizePolicy.get(index).build(); } - public EnvFromNested editMatchingEnvFrom(Predicate predicate) { - int index = -1; - for (int i=0;i buildRestartPolicyRules() { + return this.restartPolicyRules != null ? build(restartPolicyRules) : null; } - public boolean hasImage() { - return this.image != null; + public V1SecurityContext buildSecurityContext() { + return this.securityContext != null ? this.securityContext.build() : null; } - public String getImagePullPolicy() { - return this.imagePullPolicy; + public V1Probe buildStartupProbe() { + return this.startupProbe != null ? this.startupProbe.build() : null; } - public A withImagePullPolicy(String imagePullPolicy) { - this.imagePullPolicy = imagePullPolicy; - return (A) this; + public V1VolumeDevice buildVolumeDevice(int index) { + return this.volumeDevices.get(index).build(); } - public boolean hasImagePullPolicy() { - return this.imagePullPolicy != null; + public List buildVolumeDevices() { + return this.volumeDevices != null ? build(volumeDevices) : null; } - public V1Lifecycle buildLifecycle() { - return this.lifecycle != null ? this.lifecycle.build() : null; + public V1VolumeMount buildVolumeMount(int index) { + return this.volumeMounts.get(index).build(); } - public A withLifecycle(V1Lifecycle lifecycle) { - this._visitables.remove("lifecycle"); - if (lifecycle != null) { - this.lifecycle = new V1LifecycleBuilder(lifecycle); - this._visitables.get("lifecycle").add(this.lifecycle); - } else { - this.lifecycle = null; - this._visitables.get("lifecycle").remove(this.lifecycle); - } - return (A) this; + public List buildVolumeMounts() { + return this.volumeMounts != null ? build(volumeMounts) : null; } - public boolean hasLifecycle() { - return this.lifecycle != null; + protected void copyInstance(V1EphemeralContainer instance) { + instance = instance != null ? instance : new V1EphemeralContainer(); + if (instance != null) { + this.withArgs(instance.getArgs()); + this.withCommand(instance.getCommand()); + this.withEnv(instance.getEnv()); + this.withEnvFrom(instance.getEnvFrom()); + this.withImage(instance.getImage()); + this.withImagePullPolicy(instance.getImagePullPolicy()); + this.withLifecycle(instance.getLifecycle()); + this.withLivenessProbe(instance.getLivenessProbe()); + this.withName(instance.getName()); + this.withPorts(instance.getPorts()); + this.withReadinessProbe(instance.getReadinessProbe()); + this.withResizePolicy(instance.getResizePolicy()); + this.withResources(instance.getResources()); + this.withRestartPolicy(instance.getRestartPolicy()); + this.withRestartPolicyRules(instance.getRestartPolicyRules()); + this.withSecurityContext(instance.getSecurityContext()); + this.withStartupProbe(instance.getStartupProbe()); + this.withStdin(instance.getStdin()); + this.withStdinOnce(instance.getStdinOnce()); + this.withTargetContainerName(instance.getTargetContainerName()); + this.withTerminationMessagePath(instance.getTerminationMessagePath()); + this.withTerminationMessagePolicy(instance.getTerminationMessagePolicy()); + this.withTty(instance.getTty()); + this.withVolumeDevices(instance.getVolumeDevices()); + this.withVolumeMounts(instance.getVolumeMounts()); + this.withWorkingDir(instance.getWorkingDir()); + } } - public LifecycleNested withNewLifecycle() { - return new LifecycleNested(null); + public EnvNested editEnv(int index) { + if (env.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } - public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { - return new LifecycleNested(item); + public EnvFromNested editEnvFrom(int index) { + if (envFrom.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public LifecycleNested editLifecycle() { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(null)); + public EnvNested editFirstEnv() { + if (env.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "env")); + } + return this.setNewEnvLike(0, this.buildEnv(0)); } - public LifecycleNested editOrNewLifecycle() { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(new V1LifecycleBuilder().build())); + public EnvFromNested editFirstEnvFrom() { + if (envFrom.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(0, this.buildEnvFrom(0)); } - public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { - return withNewLifecycleLike(java.util.Optional.ofNullable(buildLifecycle()).orElse(item)); + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } - public V1Probe buildLivenessProbe() { - return this.livenessProbe != null ? this.livenessProbe.build() : null; + public ResizePolicyNested editFirstResizePolicy() { + if (resizePolicy.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resizePolicy")); + } + return this.setNewResizePolicyLike(0, this.buildResizePolicy(0)); } - public A withLivenessProbe(V1Probe livenessProbe) { - this._visitables.remove("livenessProbe"); - if (livenessProbe != null) { - this.livenessProbe = new V1ProbeBuilder(livenessProbe); - this._visitables.get("livenessProbe").add(this.livenessProbe); - } else { - this.livenessProbe = null; - this._visitables.get("livenessProbe").remove(this.livenessProbe); + public RestartPolicyRulesNested editFirstRestartPolicyRule() { + if (restartPolicyRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "restartPolicyRules")); } - return (A) this; - } - - public boolean hasLivenessProbe() { - return this.livenessProbe != null; - } - - public LivenessProbeNested withNewLivenessProbe() { - return new LivenessProbeNested(null); - } - - public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { - return new LivenessProbeNested(item); - } - - public LivenessProbeNested editLivenessProbe() { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(null)); + return this.setNewRestartPolicyRuleLike(0, this.buildRestartPolicyRule(0)); } - public LivenessProbeNested editOrNewLivenessProbe() { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); + public VolumeDevicesNested editFirstVolumeDevice() { + if (volumeDevices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(0, this.buildVolumeDevice(0)); } - public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { - return withNewLivenessProbeLike(java.util.Optional.ofNullable(buildLivenessProbe()).orElse(item)); + public VolumeMountsNested editFirstVolumeMount() { + if (volumeMounts.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(0, this.buildVolumeMount(0)); } - public String getName() { - return this.name; + public EnvNested editLastEnv() { + int index = env.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } - public A withName(String name) { - this.name = name; - return (A) this; + public EnvFromNested editLastEnvFrom() { + int index = envFrom.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public boolean hasName() { - return this.name != null; + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - 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);} - return (A)this; + public ResizePolicyNested editLastResizePolicy() { + int index = resizePolicy.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - 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);} - return (A)this; + public RestartPolicyRulesNested editLastRestartPolicyRule() { + int index = restartPolicyRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public A addToPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public VolumeDevicesNested editLastVolumeDevice() { + int index = volumeDevices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public VolumeMountsNested editLastVolumeMount() { + int index = volumeMounts.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ContainerPort... items) { - if (this.ports == null) return (A)this; - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public LifecycleNested editLifecycle() { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(null)); } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1ContainerPort item : items) {V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public LivenessProbeNested editLivenessProbe() { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(null)); } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1ContainerPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public EnvNested editMatchingEnv(Predicate predicate) { + int index = -1; + for (int i = 0;i < env.size();i++) { + if (predicate.test(env.get(i))) { + index = i; + break; } } - return (A)this; - } - - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public V1ContainerPort buildPort(int index) { - return this.ports.get(index).build(); - } - - public V1ContainerPort buildFirstPort() { - return this.ports.get(0).build(); - } - - public V1ContainerPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "env")); + } + return this.setNewEnvLike(index, this.buildEnv(index)); } - public V1ContainerPort buildMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } + public EnvFromNested editMatchingEnvFrom(Predicate predicate) { + int index = -1; + for (int i = 0;i < envFrom.size();i++) { + if (predicate.test(envFrom.get(i))) { + index = i; + break; } - return null; + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "envFrom")); + } + return this.setNewEnvFromLike(index, this.buildEnvFrom(index)); } - public boolean hasMatchingPort(Predicate predicate) { - for (V1ContainerPortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; } - return false; - } - - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); } - if (ports != null) { - this.ports = new ArrayList(); - for (V1ContainerPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); } - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public A withPorts(io.kubernetes.client.openapi.models.V1ContainerPort... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); - } - if (ports != null) { - for (V1ContainerPort item : ports) { - this.addToPorts(item); + public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { + int index = -1; + for (int i = 0;i < resizePolicy.size();i++) { + if (predicate.test(resizePolicy.get(i))) { + index = i; + break; } } - return (A) this; - } - - public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(V1ContainerPort item) { - return new PortsNested(-1, item); - } - - public PortsNested setNewPortLike(int index,V1ContainerPort item) { - return new PortsNested(index, item); - } - - public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); - } - - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public PortsNested editMatchingPort(Predicate predicate) { + public RestartPolicyRulesNested editMatchingRestartPolicyRule(Predicate predicate) { int index = -1; - for (int i=0;i editMatchingVolumeDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeDevices.size();i++) { + if (predicate.test(volumeDevices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeDevices")); + } + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public A withReadinessProbe(V1Probe readinessProbe) { - this._visitables.remove("readinessProbe"); - if (readinessProbe != null) { - this.readinessProbe = new V1ProbeBuilder(readinessProbe); - this._visitables.get("readinessProbe").add(this.readinessProbe); - } else { - this.readinessProbe = null; - this._visitables.get("readinessProbe").remove(this.readinessProbe); + public VolumeMountsNested editMatchingVolumeMount(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeMounts.size();i++) { + if (predicate.test(volumeMounts.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeMounts")); + } + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public boolean hasReadinessProbe() { - return this.readinessProbe != null; + public LifecycleNested editOrNewLifecycle() { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(new V1LifecycleBuilder().build())); } - public ReadinessProbeNested withNewReadinessProbe() { - return new ReadinessProbeNested(null); + public LifecycleNested editOrNewLifecycleLike(V1Lifecycle item) { + return this.withNewLifecycleLike(Optional.ofNullable(this.buildLifecycle()).orElse(item)); } - public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { - return new ReadinessProbeNested(item); + public LivenessProbeNested editOrNewLivenessProbe() { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(new V1ProbeBuilder().build())); } - public ReadinessProbeNested editReadinessProbe() { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(null)); + public LivenessProbeNested editOrNewLivenessProbeLike(V1Probe item) { + return this.withNewLivenessProbeLike(Optional.ofNullable(this.buildLivenessProbe()).orElse(item)); } public ReadinessProbeNested editOrNewReadinessProbe() { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(new V1ProbeBuilder().build())); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(new V1ProbeBuilder().build())); } public ReadinessProbeNested editOrNewReadinessProbeLike(V1Probe item) { - return withNewReadinessProbeLike(java.util.Optional.ofNullable(buildReadinessProbe()).orElse(item)); + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(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);} - return (A)this; + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } - 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);} - return (A)this; + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public A addToResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this; + public SecurityContextNested editOrNewSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); } - public A addAllToResizePolicy(Collection items) { - if (this.resizePolicy == null) {this.resizePolicy = new ArrayList();} - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").add(builder);this.resizePolicy.add(builder);} return (A)this; + public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } - public A removeFromResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... items) { - if (this.resizePolicy == null) return (A)this; - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this; + public StartupProbeNested editOrNewStartupProbe() { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(new V1ProbeBuilder().build())); } - public A removeAllFromResizePolicy(Collection items) { - if (this.resizePolicy == null) return (A)this; - for (V1ContainerResizePolicy item : items) {V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item);_visitables.get("resizePolicy").remove(builder); this.resizePolicy.remove(builder);} return (A)this; + public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(item)); } - public A removeMatchingFromResizePolicy(Predicate predicate) { - if (resizePolicy == null) return (A) this; - final Iterator each = resizePolicy.iterator(); - final List visitables = _visitables.get("resizePolicy"); - while (each.hasNext()) { - V1ContainerResizePolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - return (A)this; + return this.setNewPortLike(index, this.buildPort(index)); } - public List buildResizePolicy() { - return this.resizePolicy != null ? build(resizePolicy) : null; + public ReadinessProbeNested editReadinessProbe() { + return this.withNewReadinessProbeLike(Optional.ofNullable(this.buildReadinessProbe()).orElse(null)); } - public V1ContainerResizePolicy buildResizePolicy(int index) { - return this.resizePolicy.get(index).build(); + public ResizePolicyNested editResizePolicy(int index) { + if (resizePolicy.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resizePolicy")); + } + return this.setNewResizePolicyLike(index, this.buildResizePolicy(index)); } - public V1ContainerResizePolicy buildFirstResizePolicy() { - return this.resizePolicy.get(0).build(); + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } - public V1ContainerResizePolicy buildLastResizePolicy() { - return this.resizePolicy.get(resizePolicy.size() - 1).build(); + public RestartPolicyRulesNested editRestartPolicyRule(int index) { + if (restartPolicyRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "restartPolicyRules")); + } + return this.setNewRestartPolicyRuleLike(index, this.buildRestartPolicyRule(index)); } - public V1ContainerResizePolicy buildMatchingResizePolicy(Predicate predicate) { - for (V1ContainerResizePolicyBuilder item : resizePolicy) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public SecurityContextNested editSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } - public boolean hasMatchingResizePolicy(Predicate predicate) { - for (V1ContainerResizePolicyBuilder item : resizePolicy) { - if (predicate.test(item)) { - return true; - } - } - return false; + public StartupProbeNested editStartupProbe() { + return this.withNewStartupProbeLike(Optional.ofNullable(this.buildStartupProbe()).orElse(null)); } - public A withResizePolicy(List resizePolicy) { - if (this.resizePolicy != null) { - this._visitables.get("resizePolicy").clear(); - } - if (resizePolicy != null) { - this.resizePolicy = new ArrayList(); - for (V1ContainerResizePolicy item : resizePolicy) { - this.addToResizePolicy(item); - } - } else { - this.resizePolicy = null; + public VolumeDevicesNested editVolumeDevice(int index) { + if (volumeDevices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeDevices")); } - return (A) this; + return this.setNewVolumeDeviceLike(index, this.buildVolumeDevice(index)); } - public A withResizePolicy(io.kubernetes.client.openapi.models.V1ContainerResizePolicy... resizePolicy) { - if (this.resizePolicy != null) { - this.resizePolicy.clear(); - _visitables.remove("resizePolicy"); - } - if (resizePolicy != null) { - for (V1ContainerResizePolicy item : resizePolicy) { - this.addToResizePolicy(item); - } + public VolumeMountsNested editVolumeMount(int index) { + if (volumeMounts.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeMounts")); } - return (A) this; + return this.setNewVolumeMountLike(index, this.buildVolumeMount(index)); } - public boolean hasResizePolicy() { - return this.resizePolicy != null && !this.resizePolicy.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EphemeralContainerFluent that = (V1EphemeralContainerFluent) o; + if (!(Objects.equals(args, that.args))) { + return false; + } + if (!(Objects.equals(command, that.command))) { + return false; + } + if (!(Objects.equals(env, that.env))) { + return false; + } + if (!(Objects.equals(envFrom, that.envFrom))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(imagePullPolicy, that.imagePullPolicy))) { + return false; + } + if (!(Objects.equals(lifecycle, that.lifecycle))) { + return false; + } + if (!(Objects.equals(livenessProbe, that.livenessProbe))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + if (!(Objects.equals(readinessProbe, that.readinessProbe))) { + return false; + } + if (!(Objects.equals(resizePolicy, that.resizePolicy))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(restartPolicy, that.restartPolicy))) { + return false; + } + if (!(Objects.equals(restartPolicyRules, that.restartPolicyRules))) { + return false; + } + if (!(Objects.equals(securityContext, that.securityContext))) { + return false; + } + if (!(Objects.equals(startupProbe, that.startupProbe))) { + return false; + } + if (!(Objects.equals(stdin, that.stdin))) { + return false; + } + if (!(Objects.equals(stdinOnce, that.stdinOnce))) { + return false; + } + if (!(Objects.equals(targetContainerName, that.targetContainerName))) { + return false; + } + if (!(Objects.equals(terminationMessagePath, that.terminationMessagePath))) { + return false; + } + if (!(Objects.equals(terminationMessagePolicy, that.terminationMessagePolicy))) { + return false; + } + if (!(Objects.equals(tty, that.tty))) { + return false; + } + if (!(Objects.equals(volumeDevices, that.volumeDevices))) { + return false; + } + if (!(Objects.equals(volumeMounts, that.volumeMounts))) { + return false; + } + if (!(Objects.equals(workingDir, that.workingDir))) { + return false; + } + return true; } - public ResizePolicyNested addNewResizePolicy() { - return new ResizePolicyNested(-1, null); + public String getArg(int index) { + return this.args.get(index); } - public ResizePolicyNested addNewResizePolicyLike(V1ContainerResizePolicy item) { - return new ResizePolicyNested(-1, item); + public List getArgs() { + return this.args; } - public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { - return new ResizePolicyNested(index, item); + public List getCommand() { + return this.command; } - public ResizePolicyNested editResizePolicy(int index) { - if (resizePolicy.size() <= index) throw new RuntimeException("Can't edit resizePolicy. Index exceeds size."); - return setNewResizePolicyLike(index, buildResizePolicy(index)); + public String getCommand(int index) { + return this.command.get(index); } - public ResizePolicyNested editFirstResizePolicy() { - if (resizePolicy.size() == 0) throw new RuntimeException("Can't edit first resizePolicy. The list is empty."); - return setNewResizePolicyLike(0, buildResizePolicy(0)); + public String getFirstArg() { + return this.args.get(0); } - public ResizePolicyNested editLastResizePolicy() { - int index = resizePolicy.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resizePolicy. The list is empty."); - return setNewResizePolicyLike(index, buildResizePolicy(index)); + public String getFirstCommand() { + return this.command.get(0); } - public ResizePolicyNested editMatchingResizePolicy(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (String item : args) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingCommand(Predicate predicate) { + for (String item : command) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getName() { + return this.name; + } + + public String getRestartPolicy() { + return this.restartPolicy; + } + + public Boolean getStdin() { + return this.stdin; + } + + public Boolean getStdinOnce() { + return this.stdinOnce; + } + + public String getTargetContainerName() { + return this.targetContainerName; + } + + public String getTerminationMessagePath() { + return this.terminationMessagePath; + } + + public String getTerminationMessagePolicy() { + return this.terminationMessagePolicy; + } + + public Boolean getTty() { + return this.tty; + } + + public String getWorkingDir() { + return this.workingDir; + } + + public boolean hasArgs() { + return this.args != null && !(this.args.isEmpty()); + } + + public boolean hasCommand() { + return this.command != null && !(this.command.isEmpty()); + } + + public boolean hasEnv() { + return this.env != null && !(this.env.isEmpty()); + } + + public boolean hasEnvFrom() { + return this.envFrom != null && !(this.envFrom.isEmpty()); + } + + public boolean hasImage() { + return this.image != null; + } + + public boolean hasImagePullPolicy() { + return this.imagePullPolicy != null; + } + + public boolean hasLifecycle() { + return this.lifecycle != null; + } + + public boolean hasLivenessProbe() { + return this.livenessProbe != null; + } + + public boolean hasMatchingArg(Predicate predicate) { + for (String item : args) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingCommand(Predicate predicate) { + for (String item : command) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingEnv(Predicate predicate) { + for (V1EnvVarBuilder item : env) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingEnvFrom(Predicate predicate) { + for (V1EnvFromSourceBuilder item : envFrom) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPort(Predicate predicate) { + for (V1ContainerPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResizePolicy(Predicate predicate) { + for (V1ContainerResizePolicyBuilder item : resizePolicy) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRestartPolicyRule(Predicate predicate) { + for (V1ContainerRestartRuleBuilder item : restartPolicyRules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVolumeDevice(Predicate predicate) { + for (V1VolumeDeviceBuilder item : volumeDevices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVolumeMount(Predicate predicate) { + for (V1VolumeMountBuilder item : volumeMounts) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + + public boolean hasReadinessProbe() { + return this.readinessProbe != null; + } + + public boolean hasResizePolicy() { + return this.resizePolicy != null && !(this.resizePolicy.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null; + } + + public boolean hasRestartPolicy() { + return this.restartPolicy != null; + } + + public boolean hasRestartPolicyRules() { + return this.restartPolicyRules != null && !(this.restartPolicyRules.isEmpty()); + } + + public boolean hasSecurityContext() { + return this.securityContext != null; + } + + public boolean hasStartupProbe() { + return this.startupProbe != null; + } + + public boolean hasStdin() { + return this.stdin != null; + } + + public boolean hasStdinOnce() { + return this.stdinOnce != null; + } + + public boolean hasTargetContainerName() { + return this.targetContainerName != null; + } + + public boolean hasTerminationMessagePath() { + return this.terminationMessagePath != null; + } + + public boolean hasTerminationMessagePolicy() { + return this.terminationMessagePolicy != null; + } + + public boolean hasTty() { + return this.tty != null; + } + + public boolean hasVolumeDevices() { + return this.volumeDevices != null && !(this.volumeDevices.isEmpty()); + } + + public boolean hasVolumeMounts() { + return this.volumeMounts != null && !(this.volumeMounts.isEmpty()); + } + + public boolean hasWorkingDir() { + return this.workingDir != null; + } + + public int hashCode() { + return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, restartPolicyRules, securityContext, startupProbe, stdin, stdinOnce, targetContainerName, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); + } + + public A removeAllFromArgs(Collection items) { + if (this.args == null) { + return (A) this; + } + for (String item : items) { + this.args.remove(item); + } + return (A) this; + } + + public A removeAllFromCommand(Collection items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; + } + + public A removeAllFromEnv(Collection items) { + if (this.env == null) { + return (A) this; + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); + } + return (A) this; + } + + public A removeAllFromEnvFrom(Collection items) { + if (this.envFrom == null) { + return (A) this; + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); + } + return (A) this; + } + + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeAllFromResizePolicy(Collection items) { + if (this.resizePolicy == null) { + return (A) this; + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); + } + return (A) this; + } + + public A removeAllFromRestartPolicyRules(Collection items) { + if (this.restartPolicyRules == null) { + return (A) this; + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); + } + return (A) this; + } + + public A removeAllFromVolumeDevices(Collection items) { + if (this.volumeDevices == null) { + return (A) this; + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); + } + return (A) this; + } + + public A removeAllFromVolumeMounts(Collection items) { + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; + } + + public A removeFromArgs(String... items) { + if (this.args == null) { + return (A) this; + } + for (String item : items) { + this.args.remove(item); + } + return (A) this; } - public A withResources(V1ResourceRequirements resources) { - this._visitables.remove("resources"); - if (resources != null) { - this.resources = new V1ResourceRequirementsBuilder(resources); - this._visitables.get("resources").add(this.resources); - } else { - this.resources = null; - this._visitables.get("resources").remove(this.resources); + public A removeFromCommand(String... items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); } return (A) this; } - public boolean hasResources() { - return this.resources != null; + public A removeFromEnv(V1EnvVar... items) { + if (this.env == null) { + return (A) this; + } + for (V1EnvVar item : items) { + V1EnvVarBuilder builder = new V1EnvVarBuilder(item); + _visitables.get("env").remove(builder); + this.env.remove(builder); + } + return (A) this; } - public ResourcesNested withNewResources() { - return new ResourcesNested(null); + public A removeFromEnvFrom(V1EnvFromSource... items) { + if (this.envFrom == null) { + return (A) this; + } + for (V1EnvFromSource item : items) { + V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); + _visitables.get("envFrom").remove(builder); + this.envFrom.remove(builder); + } + return (A) this; } - public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { - return new ResourcesNested(item); + public A removeFromPorts(V1ContainerPort... items) { + if (this.ports == null) { + return (A) this; + } + for (V1ContainerPort item : items) { + V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } - public ResourcesNested editResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(null)); + public A removeFromResizePolicy(V1ContainerResizePolicy... items) { + if (this.resizePolicy == null) { + return (A) this; + } + for (V1ContainerResizePolicy item : items) { + V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); + _visitables.get("resizePolicy").remove(builder); + this.resizePolicy.remove(builder); + } + return (A) this; } - public ResourcesNested editOrNewResources() { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); + public A removeFromRestartPolicyRules(V1ContainerRestartRule... items) { + if (this.restartPolicyRules == null) { + return (A) this; + } + for (V1ContainerRestartRule item : items) { + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + _visitables.get("restartPolicyRules").remove(builder); + this.restartPolicyRules.remove(builder); + } + return (A) this; } - public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); + public A removeFromVolumeDevices(V1VolumeDevice... items) { + if (this.volumeDevices == null) { + return (A) this; + } + for (V1VolumeDevice item : items) { + V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); + _visitables.get("volumeDevices").remove(builder); + this.volumeDevices.remove(builder); + } + return (A) this; } - public String getRestartPolicy() { - return this.restartPolicy; + public A removeFromVolumeMounts(V1VolumeMount... items) { + if (this.volumeMounts == null) { + return (A) this; + } + for (V1VolumeMount item : items) { + V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); + _visitables.get("volumeMounts").remove(builder); + this.volumeMounts.remove(builder); + } + return (A) this; } - public A withRestartPolicy(String restartPolicy) { - this.restartPolicy = restartPolicy; + public A removeMatchingFromEnv(Predicate predicate) { + if (env == null) { + return (A) this; + } + Iterator each = env.iterator(); + List visitables = _visitables.get("env"); + while (each.hasNext()) { + V1EnvVarBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } return (A) this; } - public boolean hasRestartPolicy() { - return this.restartPolicy != null; + public A removeMatchingFromEnvFrom(Predicate predicate) { + if (envFrom == null) { + return (A) this; + } + Iterator each = envFrom.iterator(); + List visitables = _visitables.get("envFrom"); + while (each.hasNext()) { + V1EnvFromSourceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1SecurityContext buildSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1ContainerPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A withSecurityContext(V1SecurityContext securityContext) { - this._visitables.remove("securityContext"); - if (securityContext != null) { - this.securityContext = new V1SecurityContextBuilder(securityContext); - this._visitables.get("securityContext").add(this.securityContext); - } else { - this.securityContext = null; - this._visitables.get("securityContext").remove(this.securityContext); + public A removeMatchingFromResizePolicy(Predicate predicate) { + if (resizePolicy == null) { + return (A) this; + } + Iterator each = resizePolicy.iterator(); + List visitables = _visitables.get("resizePolicy"); + while (each.hasNext()) { + V1ContainerResizePolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasSecurityContext() { - return this.securityContext != null; + public A removeMatchingFromRestartPolicyRules(Predicate predicate) { + if (restartPolicyRules == null) { + return (A) this; + } + Iterator each = restartPolicyRules.iterator(); + List visitables = _visitables.get("restartPolicyRules"); + while (each.hasNext()) { + V1ContainerRestartRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + public A removeMatchingFromVolumeDevices(Predicate predicate) { + if (volumeDevices == null) { + return (A) this; + } + Iterator each = volumeDevices.iterator(); + List visitables = _visitables.get("volumeDevices"); + while (each.hasNext()) { + V1VolumeDeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { - return new SecurityContextNested(item); + public A removeMatchingFromVolumeMounts(Predicate predicate) { + if (volumeMounts == null) { + return (A) this; + } + Iterator each = volumeMounts.iterator(); + List visitables = _visitables.get("volumeMounts"); + while (each.hasNext()) { + V1VolumeMountBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public SecurityContextNested editSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(null)); + public EnvFromNested setNewEnvFromLike(int index,V1EnvFromSource item) { + return new EnvFromNested(index, item); } - public SecurityContextNested editOrNewSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(new V1SecurityContextBuilder().build())); + public EnvNested setNewEnvLike(int index,V1EnvVar item) { + return new EnvNested(index, item); } - public SecurityContextNested editOrNewSecurityContextLike(V1SecurityContext item) { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(item)); + public PortsNested setNewPortLike(int index,V1ContainerPort item) { + return new PortsNested(index, item); } - public V1Probe buildStartupProbe() { - return this.startupProbe != null ? this.startupProbe.build() : null; + public ResizePolicyNested setNewResizePolicyLike(int index,V1ContainerResizePolicy item) { + return new ResizePolicyNested(index, item); } - public A withStartupProbe(V1Probe startupProbe) { - this._visitables.remove("startupProbe"); - if (startupProbe != null) { - this.startupProbe = new V1ProbeBuilder(startupProbe); - this._visitables.get("startupProbe").add(this.startupProbe); - } else { - this.startupProbe = null; - this._visitables.get("startupProbe").remove(this.startupProbe); - } - return (A) this; + public RestartPolicyRulesNested setNewRestartPolicyRuleLike(int index,V1ContainerRestartRule item) { + return new RestartPolicyRulesNested(index, item); } - public boolean hasStartupProbe() { - return this.startupProbe != null; + public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { + return new VolumeDevicesNested(index, item); } - public StartupProbeNested withNewStartupProbe() { - return new StartupProbeNested(null); + public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount item) { + return new VolumeMountsNested(index, item); } - public StartupProbeNested withNewStartupProbeLike(V1Probe item) { - return new StartupProbeNested(item); + public A setToArgs(int index,String item) { + if (this.args == null) { + this.args = new ArrayList(); + } + this.args.set(index, item); + return (A) this; } - public StartupProbeNested editStartupProbe() { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(null)); + public A setToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); + } + this.command.set(index, item); + return (A) this; } - public StartupProbeNested editOrNewStartupProbe() { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(new V1ProbeBuilder().build())); + 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").add(builder); + env.set(index, builder); + } + return (A) this; } - public StartupProbeNested editOrNewStartupProbeLike(V1Probe item) { - return withNewStartupProbeLike(java.util.Optional.ofNullable(buildStartupProbe()).orElse(item)); + 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").add(builder); + envFrom.set(index, builder); + } + return (A) this; } - public Boolean getStdin() { - return this.stdin; + 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").add(builder); + ports.set(index, builder); + } + return (A) this; } - public A withStdin(Boolean stdin) { - this.stdin = stdin; + 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").add(builder); + resizePolicy.set(index, builder); + } return (A) this; } - public boolean hasStdin() { - return this.stdin != null; + public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { + if (this.restartPolicyRules == null) { + this.restartPolicyRules = new ArrayList(); + } + V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); + if (index < 0 || index >= restartPolicyRules.size()) { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.add(builder); + } else { + _visitables.get("restartPolicyRules").add(builder); + restartPolicyRules.set(index, builder); + } + return (A) this; } - public Boolean getStdinOnce() { - return this.stdinOnce; + 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").add(builder); + volumeDevices.set(index, builder); + } + return (A) this; } - public A withStdinOnce(Boolean stdinOnce) { - this.stdinOnce = stdinOnce; + 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").add(builder); + volumeMounts.set(index, builder); + } return (A) this; } - public boolean hasStdinOnce() { - return this.stdinOnce != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(args == null) && !(args.isEmpty())) { + sb.append("args:"); + sb.append(args); + sb.append(","); + } + if (!(command == null) && !(command.isEmpty())) { + sb.append("command:"); + sb.append(command); + sb.append(","); + } + if (!(env == null) && !(env.isEmpty())) { + sb.append("env:"); + sb.append(env); + sb.append(","); + } + if (!(envFrom == null) && !(envFrom.isEmpty())) { + sb.append("envFrom:"); + sb.append(envFrom); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(imagePullPolicy == null)) { + sb.append("imagePullPolicy:"); + sb.append(imagePullPolicy); + sb.append(","); + } + if (!(lifecycle == null)) { + sb.append("lifecycle:"); + sb.append(lifecycle); + sb.append(","); + } + if (!(livenessProbe == null)) { + sb.append("livenessProbe:"); + sb.append(livenessProbe); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + sb.append(","); + } + if (!(readinessProbe == null)) { + sb.append("readinessProbe:"); + sb.append(readinessProbe); + sb.append(","); + } + if (!(resizePolicy == null) && !(resizePolicy.isEmpty())) { + sb.append("resizePolicy:"); + sb.append(resizePolicy); + sb.append(","); + } + if (!(resources == null)) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(restartPolicy == null)) { + sb.append("restartPolicy:"); + sb.append(restartPolicy); + sb.append(","); + } + if (!(restartPolicyRules == null) && !(restartPolicyRules.isEmpty())) { + sb.append("restartPolicyRules:"); + sb.append(restartPolicyRules); + sb.append(","); + } + if (!(securityContext == null)) { + sb.append("securityContext:"); + sb.append(securityContext); + sb.append(","); + } + if (!(startupProbe == null)) { + sb.append("startupProbe:"); + sb.append(startupProbe); + sb.append(","); + } + if (!(stdin == null)) { + sb.append("stdin:"); + sb.append(stdin); + sb.append(","); + } + if (!(stdinOnce == null)) { + sb.append("stdinOnce:"); + sb.append(stdinOnce); + sb.append(","); + } + if (!(targetContainerName == null)) { + sb.append("targetContainerName:"); + sb.append(targetContainerName); + sb.append(","); + } + if (!(terminationMessagePath == null)) { + sb.append("terminationMessagePath:"); + sb.append(terminationMessagePath); + sb.append(","); + } + if (!(terminationMessagePolicy == null)) { + sb.append("terminationMessagePolicy:"); + sb.append(terminationMessagePolicy); + sb.append(","); + } + if (!(tty == null)) { + sb.append("tty:"); + sb.append(tty); + sb.append(","); + } + if (!(volumeDevices == null) && !(volumeDevices.isEmpty())) { + sb.append("volumeDevices:"); + sb.append(volumeDevices); + sb.append(","); + } + if (!(volumeMounts == null) && !(volumeMounts.isEmpty())) { + sb.append("volumeMounts:"); + sb.append(volumeMounts); + sb.append(","); + } + if (!(workingDir == null)) { + sb.append("workingDir:"); + sb.append(workingDir); + } + sb.append("}"); + return sb.toString(); } - public String getTargetContainerName() { - return this.targetContainerName; + public A withArgs(List args) { + if (args != null) { + this.args = new ArrayList(); + for (String item : args) { + this.addToArgs(item); + } + } else { + this.args = null; + } + return (A) this; } - public A withTargetContainerName(String targetContainerName) { - this.targetContainerName = targetContainerName; + public A withArgs(String... args) { + if (this.args != null) { + this.args.clear(); + _visitables.remove("args"); + } + if (args != null) { + for (String item : args) { + this.addToArgs(item); + } + } return (A) this; } - public boolean hasTargetContainerName() { - return this.targetContainerName != null; + public A withCommand(List command) { + if (command != null) { + this.command = new ArrayList(); + for (String item : command) { + this.addToCommand(item); + } + } else { + this.command = null; + } + return (A) this; } - public String getTerminationMessagePath() { - return this.terminationMessagePath; + public A withCommand(String... command) { + if (this.command != null) { + this.command.clear(); + _visitables.remove("command"); + } + if (command != null) { + for (String item : command) { + this.addToCommand(item); + } + } + return (A) this; } - public A withTerminationMessagePath(String terminationMessagePath) { - this.terminationMessagePath = terminationMessagePath; + public A withEnv(List env) { + if (this.env != null) { + this._visitables.get("env").clear(); + } + if (env != null) { + this.env = new ArrayList(); + for (V1EnvVar item : env) { + this.addToEnv(item); + } + } else { + this.env = null; + } return (A) this; } - public boolean hasTerminationMessagePath() { - return this.terminationMessagePath != null; + public A withEnv(V1EnvVar... env) { + if (this.env != null) { + this.env.clear(); + _visitables.remove("env"); + } + if (env != null) { + for (V1EnvVar item : env) { + this.addToEnv(item); + } + } + return (A) this; } - public String getTerminationMessagePolicy() { - return this.terminationMessagePolicy; + public A withEnvFrom(List envFrom) { + if (this.envFrom != null) { + this._visitables.get("envFrom").clear(); + } + if (envFrom != null) { + this.envFrom = new ArrayList(); + for (V1EnvFromSource item : envFrom) { + this.addToEnvFrom(item); + } + } else { + this.envFrom = null; + } + return (A) this; } - public A withTerminationMessagePolicy(String terminationMessagePolicy) { - this.terminationMessagePolicy = terminationMessagePolicy; + public A withEnvFrom(V1EnvFromSource... envFrom) { + if (this.envFrom != null) { + this.envFrom.clear(); + _visitables.remove("envFrom"); + } + if (envFrom != null) { + for (V1EnvFromSource item : envFrom) { + this.addToEnvFrom(item); + } + } return (A) this; } - public boolean hasTerminationMessagePolicy() { - return this.terminationMessagePolicy != null; + public A withImage(String image) { + this.image = image; + return (A) this; } - public Boolean getTty() { - return this.tty; + public A withImagePullPolicy(String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; + return (A) this; } - public A withTty(Boolean tty) { - this.tty = tty; + public A withLifecycle(V1Lifecycle lifecycle) { + this._visitables.remove("lifecycle"); + if (lifecycle != null) { + this.lifecycle = new V1LifecycleBuilder(lifecycle); + this._visitables.get("lifecycle").add(this.lifecycle); + } else { + this.lifecycle = null; + this._visitables.get("lifecycle").remove(this.lifecycle); + } return (A) this; } - public boolean hasTty() { - return this.tty != null; + public A withLivenessProbe(V1Probe livenessProbe) { + this._visitables.remove("livenessProbe"); + if (livenessProbe != null) { + this.livenessProbe = new V1ProbeBuilder(livenessProbe); + this._visitables.get("livenessProbe").add(this.livenessProbe); + } else { + this.livenessProbe = null; + this._visitables.get("livenessProbe").remove(this.livenessProbe); + } + return (A) this; } - 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);} - return (A)this; + public A withName(String name) { + this.name = name; + 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);} - return (A)this; + public LifecycleNested withNewLifecycle() { + return new LifecycleNested(null); } - public A addToVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; + public LifecycleNested withNewLifecycleLike(V1Lifecycle item) { + return new LifecycleNested(item); } - public A addAllToVolumeDevices(Collection items) { - if (this.volumeDevices == null) {this.volumeDevices = new ArrayList();} - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").add(builder);this.volumeDevices.add(builder);} return (A)this; + public LivenessProbeNested withNewLivenessProbe() { + return new LivenessProbeNested(null); } - public A removeFromVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... items) { - if (this.volumeDevices == null) return (A)this; - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this; + public LivenessProbeNested withNewLivenessProbeLike(V1Probe item) { + return new LivenessProbeNested(item); } - public A removeAllFromVolumeDevices(Collection items) { - if (this.volumeDevices == null) return (A)this; - for (V1VolumeDevice item : items) {V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item);_visitables.get("volumeDevices").remove(builder); this.volumeDevices.remove(builder);} return (A)this; + public ReadinessProbeNested withNewReadinessProbe() { + return new ReadinessProbeNested(null); } - public A removeMatchingFromVolumeDevices(Predicate predicate) { - if (volumeDevices == null) return (A) this; - final Iterator each = volumeDevices.iterator(); - final List visitables = _visitables.get("volumeDevices"); - while (each.hasNext()) { - V1VolumeDeviceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public ReadinessProbeNested withNewReadinessProbeLike(V1Probe item) { + return new ReadinessProbeNested(item); } - public List buildVolumeDevices() { - return this.volumeDevices != null ? build(volumeDevices) : null; + public ResourcesNested withNewResources() { + return new ResourcesNested(null); } - public V1VolumeDevice buildVolumeDevice(int index) { - return this.volumeDevices.get(index).build(); + public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); } - public V1VolumeDevice buildFirstVolumeDevice() { - return this.volumeDevices.get(0).build(); + public SecurityContextNested withNewSecurityContext() { + return new SecurityContextNested(null); } - public V1VolumeDevice buildLastVolumeDevice() { - return this.volumeDevices.get(volumeDevices.size() - 1).build(); + public SecurityContextNested withNewSecurityContextLike(V1SecurityContext item) { + return new SecurityContextNested(item); } - public V1VolumeDevice buildMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public StartupProbeNested withNewStartupProbe() { + return new StartupProbeNested(null); } - public boolean hasMatchingVolumeDevice(Predicate predicate) { - for (V1VolumeDeviceBuilder item : volumeDevices) { - if (predicate.test(item)) { - return true; - } - } - return false; + public StartupProbeNested withNewStartupProbeLike(V1Probe item) { + return new StartupProbeNested(item); } - public A withVolumeDevices(List volumeDevices) { - if (this.volumeDevices != null) { - this._visitables.get("volumeDevices").clear(); + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); } - if (volumeDevices != null) { - this.volumeDevices = new ArrayList(); - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); + if (ports != null) { + this.ports = new ArrayList(); + for (V1ContainerPort item : ports) { + this.addToPorts(item); } } else { - this.volumeDevices = null; + this.ports = null; } return (A) this; } - public A withVolumeDevices(io.kubernetes.client.openapi.models.V1VolumeDevice... volumeDevices) { - if (this.volumeDevices != null) { - this.volumeDevices.clear(); - _visitables.remove("volumeDevices"); + public A withPorts(V1ContainerPort... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); } - if (volumeDevices != null) { - for (V1VolumeDevice item : volumeDevices) { - this.addToVolumeDevices(item); + if (ports != null) { + for (V1ContainerPort item : ports) { + this.addToPorts(item); } } return (A) this; } - public boolean hasVolumeDevices() { - return this.volumeDevices != null && !this.volumeDevices.isEmpty(); - } - - public VolumeDevicesNested addNewVolumeDevice() { - return new VolumeDevicesNested(-1, null); + public A withReadinessProbe(V1Probe readinessProbe) { + this._visitables.remove("readinessProbe"); + if (readinessProbe != null) { + this.readinessProbe = new V1ProbeBuilder(readinessProbe); + this._visitables.get("readinessProbe").add(this.readinessProbe); + } else { + this.readinessProbe = null; + this._visitables.get("readinessProbe").remove(this.readinessProbe); + } + return (A) this; } - public VolumeDevicesNested addNewVolumeDeviceLike(V1VolumeDevice item) { - return new VolumeDevicesNested(-1, item); + public A withResizePolicy(List resizePolicy) { + if (this.resizePolicy != null) { + this._visitables.get("resizePolicy").clear(); + } + if (resizePolicy != null) { + this.resizePolicy = new ArrayList(); + for (V1ContainerResizePolicy item : resizePolicy) { + this.addToResizePolicy(item); + } + } else { + this.resizePolicy = null; + } + return (A) this; } - public VolumeDevicesNested setNewVolumeDeviceLike(int index,V1VolumeDevice item) { - return new VolumeDevicesNested(index, item); + public A withResizePolicy(V1ContainerResizePolicy... resizePolicy) { + if (this.resizePolicy != null) { + this.resizePolicy.clear(); + _visitables.remove("resizePolicy"); + } + if (resizePolicy != null) { + for (V1ContainerResizePolicy item : resizePolicy) { + this.addToResizePolicy(item); + } + } + return (A) this; } - public VolumeDevicesNested editVolumeDevice(int index) { - if (volumeDevices.size() <= index) throw new RuntimeException("Can't edit volumeDevices. Index exceeds size."); - return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); + public A withResources(V1ResourceRequirements resources) { + this._visitables.remove("resources"); + if (resources != null) { + this.resources = new V1ResourceRequirementsBuilder(resources); + this._visitables.get("resources").add(this.resources); + } else { + this.resources = null; + this._visitables.get("resources").remove(this.resources); + } + return (A) this; } - public VolumeDevicesNested editFirstVolumeDevice() { - if (volumeDevices.size() == 0) throw new RuntimeException("Can't edit first volumeDevices. The list is empty."); - return setNewVolumeDeviceLike(0, buildVolumeDevice(0)); + public A withRestartPolicy(String restartPolicy) { + this.restartPolicy = restartPolicy; + return (A) this; } - public VolumeDevicesNested editLastVolumeDevice() { - int index = volumeDevices.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumeDevices. The list is empty."); - return setNewVolumeDeviceLike(index, buildVolumeDevice(index)); + public A withRestartPolicyRules(List restartPolicyRules) { + if (this.restartPolicyRules != null) { + this._visitables.get("restartPolicyRules").clear(); + } + if (restartPolicyRules != null) { + this.restartPolicyRules = new ArrayList(); + for (V1ContainerRestartRule item : restartPolicyRules) { + this.addToRestartPolicyRules(item); + } + } else { + this.restartPolicyRules = null; + } + return (A) this; } - public VolumeDevicesNested editMatchingVolumeDevice(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public A withSecurityContext(V1SecurityContext securityContext) { + this._visitables.remove("securityContext"); + if (securityContext != null) { + this.securityContext = new V1SecurityContextBuilder(securityContext); + this._visitables.get("securityContext").add(this.securityContext); + } else { + this.securityContext = null; + this._visitables.get("securityContext").remove(this.securityContext); + } + 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);} - return (A)this; + public A withStartupProbe(V1Probe startupProbe) { + this._visitables.remove("startupProbe"); + if (startupProbe != null) { + this.startupProbe = new V1ProbeBuilder(startupProbe); + this._visitables.get("startupProbe").add(this.startupProbe); + } else { + this.startupProbe = null; + this._visitables.get("startupProbe").remove(this.startupProbe); + } + return (A) this; } - public A addToVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + public A withStdin() { + return withStdin(true); } - public A addAllToVolumeMounts(Collection items) { - if (this.volumeMounts == null) {this.volumeMounts = new ArrayList();} - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").add(builder);this.volumeMounts.add(builder);} return (A)this; + public A withStdin(Boolean stdin) { + this.stdin = stdin; + return (A) this; } - public A removeFromVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + public A withStdinOnce() { + return withStdinOnce(true); } - public A removeAllFromVolumeMounts(Collection items) { - if (this.volumeMounts == null) return (A)this; - for (V1VolumeMount item : items) {V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item);_visitables.get("volumeMounts").remove(builder); this.volumeMounts.remove(builder);} return (A)this; + public A withStdinOnce(Boolean stdinOnce) { + this.stdinOnce = stdinOnce; + 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()) { - V1VolumeMountBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public A withTargetContainerName(String targetContainerName) { + this.targetContainerName = targetContainerName; + return (A) this; } - public List buildVolumeMounts() { - return this.volumeMounts != null ? build(volumeMounts) : null; + public A withTerminationMessagePath(String terminationMessagePath) { + this.terminationMessagePath = terminationMessagePath; + return (A) this; } - public V1VolumeMount buildVolumeMount(int index) { - return this.volumeMounts.get(index).build(); + public A withTerminationMessagePolicy(String terminationMessagePolicy) { + this.terminationMessagePolicy = terminationMessagePolicy; + return (A) this; } - public V1VolumeMount buildFirstVolumeMount() { - return this.volumeMounts.get(0).build(); + public A withTty() { + return withTty(true); } - public V1VolumeMount buildLastVolumeMount() { - return this.volumeMounts.get(volumeMounts.size() - 1).build(); + public A withTty(Boolean tty) { + this.tty = tty; + return (A) this; } - public V1VolumeMount buildMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return item.build(); + public A withVolumeDevices(List volumeDevices) { + if (this.volumeDevices != null) { + this._visitables.get("volumeDevices").clear(); + } + if (volumeDevices != null) { + this.volumeDevices = new ArrayList(); + for (V1VolumeDevice item : volumeDevices) { + this.addToVolumeDevices(item); } - } - return null; + } else { + this.volumeDevices = null; + } + return (A) this; } - public boolean hasMatchingVolumeMount(Predicate predicate) { - for (V1VolumeMountBuilder item : volumeMounts) { - if (predicate.test(item)) { - return true; - } + public A withVolumeDevices(V1VolumeDevice... volumeDevices) { + if (this.volumeDevices != null) { + this.volumeDevices.clear(); + _visitables.remove("volumeDevices"); + } + if (volumeDevices != null) { + for (V1VolumeDevice item : volumeDevices) { + this.addToVolumeDevices(item); } - return false; + } + return (A) this; } public A withVolumeMounts(List volumeMounts) { @@ -1491,7 +2391,7 @@ public A withVolumeMounts(List volumeMounts) { return (A) this; } - public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... volumeMounts) { + public A withVolumeMounts(V1VolumeMount... volumeMounts) { if (this.volumeMounts != null) { this.volumeMounts.clear(); _visitables.remove("volumeMounts"); @@ -1504,182 +2404,56 @@ public A withVolumeMounts(io.kubernetes.client.openapi.models.V1VolumeMount... v return (A) this; } - public boolean hasVolumeMounts() { - return this.volumeMounts != null && !this.volumeMounts.isEmpty(); - } - - public VolumeMountsNested addNewVolumeMount() { - return new VolumeMountsNested(-1, null); - } - - public VolumeMountsNested addNewVolumeMountLike(V1VolumeMount item) { - return new VolumeMountsNested(-1, item); - } - - public VolumeMountsNested setNewVolumeMountLike(int index,V1VolumeMount 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 V1EnvFromSourceFluent> implements Nested{ - public boolean hasWorkingDir() { - return this.workingDir != 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; - V1EphemeralContainerFluent that = (V1EphemeralContainerFluent) o; - if (!java.util.Objects.equals(args, that.args)) return false; - if (!java.util.Objects.equals(command, that.command)) return false; - if (!java.util.Objects.equals(env, that.env)) return false; - if (!java.util.Objects.equals(envFrom, that.envFrom)) return false; - if (!java.util.Objects.equals(image, that.image)) return false; - if (!java.util.Objects.equals(imagePullPolicy, that.imagePullPolicy)) return false; - if (!java.util.Objects.equals(lifecycle, that.lifecycle)) return false; - if (!java.util.Objects.equals(livenessProbe, that.livenessProbe)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(ports, that.ports)) return false; - if (!java.util.Objects.equals(readinessProbe, that.readinessProbe)) return false; - if (!java.util.Objects.equals(resizePolicy, that.resizePolicy)) 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(securityContext, that.securityContext)) return false; - if (!java.util.Objects.equals(startupProbe, that.startupProbe)) return false; - if (!java.util.Objects.equals(stdin, that.stdin)) return false; - if (!java.util.Objects.equals(stdinOnce, that.stdinOnce)) return false; - if (!java.util.Objects.equals(targetContainerName, that.targetContainerName)) return false; - if (!java.util.Objects.equals(terminationMessagePath, that.terminationMessagePath)) return false; - if (!java.util.Objects.equals(terminationMessagePolicy, that.terminationMessagePolicy)) return false; - if (!java.util.Objects.equals(tty, that.tty)) return false; - if (!java.util.Objects.equals(volumeDevices, that.volumeDevices)) return false; - if (!java.util.Objects.equals(volumeMounts, that.volumeMounts)) return false; - if (!java.util.Objects.equals(workingDir, that.workingDir)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resizePolicy, resources, restartPolicy, securityContext, startupProbe, stdin, stdinOnce, targetContainerName, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (args != null && !args.isEmpty()) { sb.append("args:"); sb.append(args + ","); } - if (command != null && !command.isEmpty()) { sb.append("command:"); sb.append(command + ","); } - if (env != null && !env.isEmpty()) { sb.append("env:"); sb.append(env + ","); } - if (envFrom != null && !envFrom.isEmpty()) { sb.append("envFrom:"); sb.append(envFrom + ","); } - if (image != null) { sb.append("image:"); sb.append(image + ","); } - if (imagePullPolicy != null) { sb.append("imagePullPolicy:"); sb.append(imagePullPolicy + ","); } - if (lifecycle != null) { sb.append("lifecycle:"); sb.append(lifecycle + ","); } - if (livenessProbe != null) { sb.append("livenessProbe:"); sb.append(livenessProbe + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (ports != null && !ports.isEmpty()) { sb.append("ports:"); sb.append(ports + ","); } - if (readinessProbe != null) { sb.append("readinessProbe:"); sb.append(readinessProbe + ","); } - if (resizePolicy != null && !resizePolicy.isEmpty()) { sb.append("resizePolicy:"); sb.append(resizePolicy + ","); } - if (resources != null) { sb.append("resources:"); sb.append(resources + ","); } - if (restartPolicy != null) { sb.append("restartPolicy:"); sb.append(restartPolicy + ","); } - if (securityContext != null) { sb.append("securityContext:"); sb.append(securityContext + ","); } - if (startupProbe != null) { sb.append("startupProbe:"); sb.append(startupProbe + ","); } - if (stdin != null) { sb.append("stdin:"); sb.append(stdin + ","); } - if (stdinOnce != null) { sb.append("stdinOnce:"); sb.append(stdinOnce + ","); } - if (targetContainerName != null) { sb.append("targetContainerName:"); sb.append(targetContainerName + ","); } - if (terminationMessagePath != null) { sb.append("terminationMessagePath:"); sb.append(terminationMessagePath + ","); } - if (terminationMessagePolicy != null) { sb.append("terminationMessagePolicy:"); sb.append(terminationMessagePolicy + ","); } - if (tty != null) { sb.append("tty:"); sb.append(tty + ","); } - if (volumeDevices != null && !volumeDevices.isEmpty()) { sb.append("volumeDevices:"); sb.append(volumeDevices + ","); } - if (volumeMounts != null && !volumeMounts.isEmpty()) { sb.append("volumeMounts:"); sb.append(volumeMounts + ","); } - if (workingDir != null) { sb.append("workingDir:"); sb.append(workingDir); } - sb.append("}"); - return sb.toString(); - } - - public A withStdin() { - return withStdin(true); - } - - public A withStdinOnce() { - return withStdinOnce(true); - } + V1EnvFromSourceBuilder builder; + int index; - public A withTty() { - return withTty(true); - } - public class EnvNested extends V1EnvVarFluent> implements Nested{ - EnvNested(int index,V1EnvVar item) { + EnvFromNested(int index,V1EnvFromSource item) { this.index = index; - this.builder = new V1EnvVarBuilder(this, item); + this.builder = new V1EnvFromSourceBuilder(this, item); } - V1EnvVarBuilder builder; - int index; - + public N and() { - return (N) V1EphemeralContainerFluent.this.setToEnv(index,builder.build()); + return (N) V1EphemeralContainerFluent.this.setToEnvFrom(index, builder.build()); } - public N endEnv() { + public N endEnvFrom() { return and(); } - } - public class EnvFromNested extends V1EnvFromSourceFluent> implements Nested{ - EnvFromNested(int index,V1EnvFromSource item) { + public class EnvNested extends V1EnvVarFluent> implements Nested{ + + V1EnvVarBuilder builder; + int index; + + EnvNested(int index,V1EnvVar item) { this.index = index; - this.builder = new V1EnvFromSourceBuilder(this, item); + this.builder = new V1EnvVarBuilder(this, item); } - V1EnvFromSourceBuilder builder; - int index; - + public N and() { - return (N) V1EphemeralContainerFluent.this.setToEnvFrom(index,builder.build()); + return (N) V1EphemeralContainerFluent.this.setToEnv(index, builder.build()); } - public N endEnvFrom() { + public N endEnv() { return and(); } - } public class LifecycleNested extends V1LifecycleFluent> implements Nested{ + + V1LifecycleBuilder builder; + LifecycleNested(V1Lifecycle item) { this.builder = new V1LifecycleBuilder(this, item); } - V1LifecycleBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withLifecycle(builder.build()); } @@ -1688,14 +2462,15 @@ public N endLifecycle() { return and(); } - } public class LivenessProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + LivenessProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withLivenessProbe(builder.build()); } @@ -1704,32 +2479,34 @@ public N endLivenessProbe() { return and(); } - } public class PortsNested extends V1ContainerPortFluent> implements Nested{ + + V1ContainerPortBuilder builder; + int index; + PortsNested(int index,V1ContainerPort item) { this.index = index; this.builder = new V1ContainerPortBuilder(this, item); } - V1ContainerPortBuilder builder; - int index; - + public N and() { - return (N) V1EphemeralContainerFluent.this.setToPorts(index,builder.build()); + return (N) V1EphemeralContainerFluent.this.setToPorts(index, builder.build()); } public N endPort() { return and(); } - } public class ReadinessProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + ReadinessProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withReadinessProbe(builder.build()); } @@ -1738,32 +2515,34 @@ public N endReadinessProbe() { return and(); } - } public class ResizePolicyNested extends V1ContainerResizePolicyFluent> implements Nested{ + + V1ContainerResizePolicyBuilder builder; + int index; + ResizePolicyNested(int index,V1ContainerResizePolicy item) { this.index = index; this.builder = new V1ContainerResizePolicyBuilder(this, item); } - V1ContainerResizePolicyBuilder builder; - int index; - + public N and() { - return (N) V1EphemeralContainerFluent.this.setToResizePolicy(index,builder.build()); + return (N) V1EphemeralContainerFluent.this.setToResizePolicy(index, builder.build()); } public N endResizePolicy() { return and(); } - } public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + + V1ResourceRequirementsBuilder builder; + ResourcesNested(V1ResourceRequirements item) { this.builder = new V1ResourceRequirementsBuilder(this, item); } - V1ResourceRequirementsBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withResources(builder.build()); } @@ -1772,14 +2551,34 @@ public N endResources() { return and(); } + } + public class RestartPolicyRulesNested extends V1ContainerRestartRuleFluent> implements Nested{ + + V1ContainerRestartRuleBuilder builder; + int index; + + RestartPolicyRulesNested(int index,V1ContainerRestartRule item) { + this.index = index; + this.builder = new V1ContainerRestartRuleBuilder(this, item); + } + public N and() { + return (N) V1EphemeralContainerFluent.this.setToRestartPolicyRules(index, builder.build()); + } + + public N endRestartPolicyRule() { + return and(); + } + } public class SecurityContextNested extends V1SecurityContextFluent> implements Nested{ + + V1SecurityContextBuilder builder; + SecurityContextNested(V1SecurityContext item) { this.builder = new V1SecurityContextBuilder(this, item); } - V1SecurityContextBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withSecurityContext(builder.build()); } @@ -1788,14 +2587,15 @@ public N endSecurityContext() { return and(); } - } public class StartupProbeNested extends V1ProbeFluent> implements Nested{ + + V1ProbeBuilder builder; + StartupProbeNested(V1Probe item) { this.builder = new V1ProbeBuilder(this, item); } - V1ProbeBuilder builder; - + public N and() { return (N) V1EphemeralContainerFluent.this.withStartupProbe(builder.build()); } @@ -1804,43 +2604,43 @@ public N endStartupProbe() { return and(); } - } public class VolumeDevicesNested extends V1VolumeDeviceFluent> implements Nested{ + + V1VolumeDeviceBuilder builder; + int index; + VolumeDevicesNested(int index,V1VolumeDevice item) { this.index = index; this.builder = new V1VolumeDeviceBuilder(this, item); } - V1VolumeDeviceBuilder builder; - int index; - + public N and() { - return (N) V1EphemeralContainerFluent.this.setToVolumeDevices(index,builder.build()); + return (N) V1EphemeralContainerFluent.this.setToVolumeDevices(index, builder.build()); } public N endVolumeDevice() { return and(); } - } public class VolumeMountsNested extends V1VolumeMountFluent> implements Nested{ + + V1VolumeMountBuilder builder; + int index; + VolumeMountsNested(int index,V1VolumeMount item) { this.index = index; this.builder = new V1VolumeMountBuilder(this, item); } - V1VolumeMountBuilder builder; - int index; - + public N and() { - return (N) V1EphemeralContainerFluent.this.setToVolumeMounts(index,builder.build()); + return (N) V1EphemeralContainerFluent.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/V1EphemeralVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java index e32cd2980d..c6e885a6eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EphemeralVolumeSourceBuilder extends V1EphemeralVolumeSourceFluent implements VisitableBuilder{ + + V1EphemeralVolumeSourceFluent fluent; + public V1EphemeralVolumeSourceBuilder() { this(new V1EphemeralVolumeSource()); } @@ -10,22 +14,20 @@ public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent) { this(fluent, new V1EphemeralVolumeSource()); } - public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent,V1EphemeralVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EphemeralVolumeSourceFluent fluent; + public V1EphemeralVolumeSourceBuilder(V1EphemeralVolumeSourceFluent fluent,V1EphemeralVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EphemeralVolumeSource build() { V1EphemeralVolumeSource buildable = new V1EphemeralVolumeSource(); buildable.setVolumeClaimTemplate(fluent.buildVolumeClaimTemplate()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java index 96a46975bb..6982e94e38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java @@ -1,97 +1,115 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EphemeralVolumeSourceFluent> extends BaseFluent{ +public class V1EphemeralVolumeSourceFluent> extends BaseFluent{ + + private V1PersistentVolumeClaimTemplateBuilder volumeClaimTemplate; + public V1EphemeralVolumeSourceFluent() { } public V1EphemeralVolumeSourceFluent(V1EphemeralVolumeSource instance) { this.copyInstance(instance); } - private V1PersistentVolumeClaimTemplateBuilder volumeClaimTemplate; - - protected void copyInstance(V1EphemeralVolumeSource instance) { - instance = (instance != null ? instance : new V1EphemeralVolumeSource()); - if (instance != null) { - this.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); - } - } - + public V1PersistentVolumeClaimTemplate buildVolumeClaimTemplate() { return this.volumeClaimTemplate != null ? this.volumeClaimTemplate.build() : null; } - public A withVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { - this._visitables.remove("volumeClaimTemplate"); - if (volumeClaimTemplate != null) { - this.volumeClaimTemplate = new V1PersistentVolumeClaimTemplateBuilder(volumeClaimTemplate); - this._visitables.get("volumeClaimTemplate").add(this.volumeClaimTemplate); - } else { - this.volumeClaimTemplate = null; - this._visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); + protected void copyInstance(V1EphemeralVolumeSource instance) { + instance = instance != null ? instance : new V1EphemeralVolumeSource(); + if (instance != null) { + this.withVolumeClaimTemplate(instance.getVolumeClaimTemplate()); } - return (A) this; - } - - public boolean hasVolumeClaimTemplate() { - return this.volumeClaimTemplate != null; } - public VolumeClaimTemplateNested withNewVolumeClaimTemplate() { - return new VolumeClaimTemplateNested(null); + public VolumeClaimTemplateNested editOrNewVolumeClaimTemplate() { + return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(new V1PersistentVolumeClaimTemplateBuilder().build())); } - public VolumeClaimTemplateNested withNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { - return new VolumeClaimTemplateNested(item); + public VolumeClaimTemplateNested editOrNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { + return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(item)); } public VolumeClaimTemplateNested editVolumeClaimTemplate() { - return withNewVolumeClaimTemplateLike(java.util.Optional.ofNullable(buildVolumeClaimTemplate()).orElse(null)); - } - - public VolumeClaimTemplateNested editOrNewVolumeClaimTemplate() { - return withNewVolumeClaimTemplateLike(java.util.Optional.ofNullable(buildVolumeClaimTemplate()).orElse(new V1PersistentVolumeClaimTemplateBuilder().build())); - } - - public VolumeClaimTemplateNested editOrNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { - return withNewVolumeClaimTemplateLike(java.util.Optional.ofNullable(buildVolumeClaimTemplate()).orElse(item)); + return this.withNewVolumeClaimTemplateLike(Optional.ofNullable(this.buildVolumeClaimTemplate()).orElse(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; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1EphemeralVolumeSourceFluent that = (V1EphemeralVolumeSourceFluent) o; - if (!java.util.Objects.equals(volumeClaimTemplate, that.volumeClaimTemplate)) return false; + if (!(Objects.equals(volumeClaimTemplate, that.volumeClaimTemplate))) { + return false; + } return true; } + public boolean hasVolumeClaimTemplate() { + return this.volumeClaimTemplate != null; + } + public int hashCode() { - return java.util.Objects.hash(volumeClaimTemplate, super.hashCode()); + return Objects.hash(volumeClaimTemplate); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (volumeClaimTemplate != null) { sb.append("volumeClaimTemplate:"); sb.append(volumeClaimTemplate); } + if (!(volumeClaimTemplate == null)) { + sb.append("volumeClaimTemplate:"); + sb.append(volumeClaimTemplate); + } sb.append("}"); return sb.toString(); } + + public VolumeClaimTemplateNested withNewVolumeClaimTemplate() { + return new VolumeClaimTemplateNested(null); + } + + public VolumeClaimTemplateNested withNewVolumeClaimTemplateLike(V1PersistentVolumeClaimTemplate item) { + return new VolumeClaimTemplateNested(item); + } + + public A withVolumeClaimTemplate(V1PersistentVolumeClaimTemplate volumeClaimTemplate) { + this._visitables.remove("volumeClaimTemplate"); + if (volumeClaimTemplate != null) { + this.volumeClaimTemplate = new V1PersistentVolumeClaimTemplateBuilder(volumeClaimTemplate); + this._visitables.get("volumeClaimTemplate").add(this.volumeClaimTemplate); + } else { + this.volumeClaimTemplate = null; + this._visitables.get("volumeClaimTemplate").remove(this.volumeClaimTemplate); + } + return (A) this; + } public class VolumeClaimTemplateNested extends V1PersistentVolumeClaimTemplateFluent> implements Nested{ + + V1PersistentVolumeClaimTemplateBuilder builder; + VolumeClaimTemplateNested(V1PersistentVolumeClaimTemplate item) { this.builder = new V1PersistentVolumeClaimTemplateBuilder(this, item); } - V1PersistentVolumeClaimTemplateBuilder builder; - + public N and() { return (N) V1EphemeralVolumeSourceFluent.this.withVolumeClaimTemplate(builder.build()); } @@ -100,7 +118,5 @@ public N endVolumeClaimTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java index de2d091a4f..f7ec0e7ea7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EventSourceBuilder extends V1EventSourceFluent implements VisitableBuilder{ + + V1EventSourceFluent fluent; + public V1EventSourceBuilder() { this(new V1EventSource()); } @@ -10,17 +14,16 @@ public V1EventSourceBuilder(V1EventSourceFluent fluent) { this(fluent, new V1EventSource()); } - public V1EventSourceBuilder(V1EventSourceFluent fluent,V1EventSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EventSourceBuilder(V1EventSource instance) { this.fluent = this; this.copyInstance(instance); } - V1EventSourceFluent fluent; + public V1EventSourceBuilder(V1EventSourceFluent fluent,V1EventSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1EventSource build() { V1EventSource buildable = new V1EventSource(); buildable.setComponent(fluent.getComponent()); @@ -28,5 +31,4 @@ public V1EventSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java index 8e38263dc6..35addc2e71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EventSourceFluent> extends BaseFluent{ +public class V1EventSourceFluent> extends BaseFluent{ + + private String component; + private String host; + public V1EventSourceFluent() { } public V1EventSourceFluent(V1EventSource instance) { this.copyInstance(instance); } - private String component; - private String host; - + protected void copyInstance(V1EventSource instance) { - instance = (instance != null ? instance : new V1EventSource()); + instance = instance != null ? instance : new V1EventSource(); if (instance != null) { - this.withComponent(instance.getComponent()); - this.withHost(instance.getHost()); - } + this.withComponent(instance.getComponent()); + this.withHost(instance.getHost()); + } } - public String getComponent() { - return this.component; - } - - public A withComponent(String component) { - this.component = component; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EventSourceFluent that = (V1EventSourceFluent) o; + if (!(Objects.equals(component, that.component))) { + return false; + } + if (!(Objects.equals(host, that.host))) { + return false; + } + return true; } - public boolean hasComponent() { - return this.component != null; + public String getComponent() { + return this.component; } public String getHost() { return this.host; } - public A withHost(String host) { - this.host = host; - return (A) this; + public boolean hasComponent() { + return this.component != null; } public boolean hasHost() { return this.host != 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; - V1EventSourceFluent that = (V1EventSourceFluent) o; - if (!java.util.Objects.equals(component, that.component)) return false; - if (!java.util.Objects.equals(host, that.host)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(component, host, super.hashCode()); + return Objects.hash(component, host); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (component != null) { sb.append("component:"); sb.append(component + ","); } - if (host != null) { sb.append("host:"); sb.append(host); } + if (!(component == null)) { + sb.append("component:"); + sb.append(component); + sb.append(","); + } + if (!(host == null)) { + sb.append("host:"); + sb.append(host); + } sb.append("}"); return sb.toString(); } - + public A withComponent(String component) { + this.component = component; + return (A) this; + } + + public A withHost(String host) { + this.host = host; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java index 904eeb8e36..f537f25817 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1EvictionBuilder extends V1EvictionFluent implements VisitableBuilder{ + + V1EvictionFluent fluent; + public V1EvictionBuilder() { this(new V1Eviction()); } @@ -10,17 +14,16 @@ public V1EvictionBuilder(V1EvictionFluent fluent) { this(fluent, new V1Eviction()); } - public V1EvictionBuilder(V1EvictionFluent fluent,V1Eviction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1EvictionBuilder(V1Eviction instance) { this.fluent = this; this.copyInstance(instance); } - V1EvictionFluent fluent; + public V1EvictionBuilder(V1EvictionFluent fluent,V1Eviction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Eviction build() { V1Eviction buildable = new V1Eviction(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1Eviction build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java index 540f08618c..6ff11cd621 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java @@ -1,105 +1,174 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1EvictionFluent> extends BaseFluent{ +public class V1EvictionFluent> extends BaseFluent{ + + private String apiVersion; + private V1DeleteOptionsBuilder deleteOptions; + private String kind; + private V1ObjectMetaBuilder metadata; + public V1EvictionFluent() { } public V1EvictionFluent(V1Eviction instance) { this.copyInstance(instance); } - private String apiVersion; - private V1DeleteOptionsBuilder deleteOptions; - private String kind; - private V1ObjectMetaBuilder metadata; + + public V1DeleteOptions buildDeleteOptions() { + return this.deleteOptions != null ? this.deleteOptions.build() : null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1Eviction instance) { - instance = (instance != null ? instance : new V1Eviction()); + instance = instance != null ? instance : new V1Eviction(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDeleteOptions(instance.getDeleteOptions()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + this.withApiVersion(instance.getApiVersion()); + this.withDeleteOptions(instance.getDeleteOptions()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } } - public String getApiVersion() { - return this.apiVersion; + public DeleteOptionsNested editDeleteOptions() { + return this.withNewDeleteOptionsLike(Optional.ofNullable(this.buildDeleteOptions()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public DeleteOptionsNested editOrNewDeleteOptions() { + return this.withNewDeleteOptionsLike(Optional.ofNullable(this.buildDeleteOptions()).orElse(new V1DeleteOptionsBuilder().build())); } - public V1DeleteOptions buildDeleteOptions() { - return this.deleteOptions != null ? this.deleteOptions.build() : null; + public DeleteOptionsNested editOrNewDeleteOptionsLike(V1DeleteOptions item) { + return this.withNewDeleteOptionsLike(Optional.ofNullable(this.buildDeleteOptions()).orElse(item)); } - public A withDeleteOptions(V1DeleteOptions deleteOptions) { - this._visitables.remove("deleteOptions"); - if (deleteOptions != null) { - this.deleteOptions = new V1DeleteOptionsBuilder(deleteOptions); - this._visitables.get("deleteOptions").add(this.deleteOptions); - } else { - this.deleteOptions = null; - this._visitables.get("deleteOptions").remove(this.deleteOptions); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1EvictionFluent that = (V1EvictionFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(deleteOptions, that.deleteOptions))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public boolean hasDeleteOptions() { - return this.deleteOptions != null; + public String getApiVersion() { + return this.apiVersion; } - public DeleteOptionsNested withNewDeleteOptions() { - return new DeleteOptionsNested(null); + public String getKind() { + return this.kind; } - public DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item) { - return new DeleteOptionsNested(item); + public boolean hasApiVersion() { + return this.apiVersion != null; } - public DeleteOptionsNested editDeleteOptions() { - return withNewDeleteOptionsLike(java.util.Optional.ofNullable(buildDeleteOptions()).orElse(null)); + public boolean hasDeleteOptions() { + return this.deleteOptions != null; } - public DeleteOptionsNested editOrNewDeleteOptions() { - return withNewDeleteOptionsLike(java.util.Optional.ofNullable(buildDeleteOptions()).orElse(new V1DeleteOptionsBuilder().build())); + public boolean hasKind() { + return this.kind != null; } - public DeleteOptionsNested editOrNewDeleteOptionsLike(V1DeleteOptions item) { - return withNewDeleteOptionsLike(java.util.Optional.ofNullable(buildDeleteOptions()).orElse(item)); + public boolean hasMetadata() { + return this.metadata != null; } - public String getKind() { - return this.kind; + public int hashCode() { + return Objects.hash(apiVersion, deleteOptions, kind, metadata); } - public A withKind(String kind) { - this.kind = kind; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(deleteOptions == null)) { + sb.append("deleteOptions:"); + sb.append(deleteOptions); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; return (A) this; } - public boolean hasKind() { - return this.kind != null; + public A withDeleteOptions(V1DeleteOptions deleteOptions) { + this._visitables.remove("deleteOptions"); + if (deleteOptions != null) { + this.deleteOptions = new V1DeleteOptionsBuilder(deleteOptions); + this._visitables.get("deleteOptions").add(this.deleteOptions); + } else { + this.deleteOptions = null; + this._visitables.get("deleteOptions").remove(this.deleteOptions); + } + return (A) this; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -114,8 +183,12 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; + public DeleteOptionsNested withNewDeleteOptions() { + return new DeleteOptionsNested(null); + } + + public DeleteOptionsNested withNewDeleteOptionsLike(V1DeleteOptions item) { + return new DeleteOptionsNested(item); } public MetadataNested withNewMetadata() { @@ -125,51 +198,14 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } + public class DeleteOptionsNested extends V1DeleteOptionsFluent> implements Nested{ - 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 boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1EvictionFluent that = (V1EvictionFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(deleteOptions, that.deleteOptions)) 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, deleteOptions, kind, metadata, super.hashCode()); - } + V1DeleteOptionsBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (deleteOptions != null) { sb.append("deleteOptions:"); sb.append(deleteOptions + ","); } - 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 DeleteOptionsNested extends V1DeleteOptionsFluent> implements Nested{ DeleteOptionsNested(V1DeleteOptions item) { this.builder = new V1DeleteOptionsBuilder(this, item); } - V1DeleteOptionsBuilder builder; - + public N and() { return (N) V1EvictionFluent.this.withDeleteOptions(builder.build()); } @@ -178,14 +214,15 @@ public N endDeleteOptions() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1EvictionFluent.this.withMetadata(builder.build()); } @@ -194,7 +231,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java new file mode 100644 index 0000000000..1c6ecfe07b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ExactDeviceRequestBuilder extends V1ExactDeviceRequestFluent implements VisitableBuilder{ + + V1ExactDeviceRequestFluent fluent; + + public V1ExactDeviceRequestBuilder() { + this(new V1ExactDeviceRequest()); + } + + public V1ExactDeviceRequestBuilder(V1ExactDeviceRequestFluent fluent) { + this(fluent, new V1ExactDeviceRequest()); + } + + public V1ExactDeviceRequestBuilder(V1ExactDeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ExactDeviceRequestBuilder(V1ExactDeviceRequestFluent fluent,V1ExactDeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ExactDeviceRequest build() { + V1ExactDeviceRequest buildable = new V1ExactDeviceRequest(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); + 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/V1ExactDeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java new file mode 100644 index 0000000000..813375b890 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java @@ -0,0 +1,700 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ExactDeviceRequestFluent> extends BaseFluent{ + + private Boolean adminAccess; + private String allocationMode; + private V1CapacityRequirementsBuilder capacity; + private Long count; + private String deviceClassName; + private ArrayList selectors; + private ArrayList tolerations; + + public V1ExactDeviceRequestFluent() { + } + + public V1ExactDeviceRequestFluent(V1ExactDeviceRequest instance) { + this.copyInstance(instance); + } + + public A addAllToSelectors(Collection items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public A addToSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").add(builder); + this.selectors.add(builder); + } + return (A) this; + } + + public A addToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(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 addToTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; + } + + public A addToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(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 V1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public V1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + protected void copyInstance(V1ExactDeviceRequest instance) { + instance = instance != null ? instance : new V1ExactDeviceRequest(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ExactDeviceRequestFluent that = (V1ExactDeviceRequestFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public Long getCount() { + return this.count; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + } + + public A removeAllFromSelectors(Collection items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeFromSelectors(V1DeviceSelector... items) { + if (this.selectors == null) { + return (A) this; + } + for (V1DeviceSelector item : items) { + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); + _visitables.get("selectors").remove(builder); + this.selectors.remove(builder); + } + return (A) this; + } + + public A removeFromTolerations(V1DeviceToleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1DeviceToleration item : items) { + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + List visitables = _visitables.get("selectors"); + while (each.hasNext()) { + V1DeviceSelectorBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1DeviceTolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SelectorsNested setNewSelectorLike(int index,V1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public A setToSelectors(int index,V1DeviceSelector item) { + if (this.selectors == null) { + this.selectors = new ArrayList(); + } + V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(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 setToTolerations(int index,V1DeviceToleration item) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(adminAccess == null)) { + sb.append("adminAccess:"); + sb.append(adminAccess); + sb.append(","); + } + if (!(allocationMode == null)) { + sb.append("allocationMode:"); + sb.append(allocationMode); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(deviceClassName == null)) { + sb.append("deviceClassName:"); + sb.append(deviceClassName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdminAccess() { + return withAdminAccess(true); + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1CapacityRequirements item) { + return new CapacityNested(item); + } + + public A withSelectors(List selectors) { + if (this.selectors != null) { + this._visitables.get("selectors").clear(); + } + if (selectors != null) { + this.selectors = new ArrayList(); + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } else { + this.selectors = null; + } + return (A) this; + } + + public A withSelectors(V1DeviceSelector... selectors) { + if (this.selectors != null) { + this.selectors.clear(); + _visitables.remove("selectors"); + } + if (selectors != null) { + for (V1DeviceSelector item : selectors) { + this.addToSelectors(item); + } + } + return (A) this; + } + + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; + } + + public A withTolerations(V1DeviceToleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1DeviceToleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; + } + public class CapacityNested extends V1CapacityRequirementsFluent> implements Nested{ + + V1CapacityRequirementsBuilder builder; + + CapacityNested(V1CapacityRequirements item) { + this.builder = new V1CapacityRequirementsBuilder(this, item); + } + + public N and() { + return (N) V1ExactDeviceRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } + public class SelectorsNested extends V1DeviceSelectorFluent> implements Nested{ + + V1DeviceSelectorBuilder builder; + int index; + + SelectorsNested(int index,V1DeviceSelector item) { + this.index = index; + this.builder = new V1DeviceSelectorBuilder(this, item); + } + + public N and() { + return (N) V1ExactDeviceRequestFluent.this.setToSelectors(index, builder.build()); + } + + public N endSelector() { + return and(); + } + + } + public class TolerationsNested extends V1DeviceTolerationFluent> implements Nested{ + + V1DeviceTolerationBuilder builder; + int index; + + TolerationsNested(int index,V1DeviceToleration item) { + this.index = index; + this.builder = new V1DeviceTolerationBuilder(this, item); + } + + public N and() { + return (N) V1ExactDeviceRequestFluent.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/V1ExecActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java index ed5d3da596..ad84dd78fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ExecActionBuilder extends V1ExecActionFluent implements VisitableBuilder{ + + V1ExecActionFluent fluent; + public V1ExecActionBuilder() { this(new V1ExecAction()); } @@ -10,22 +14,20 @@ public V1ExecActionBuilder(V1ExecActionFluent fluent) { this(fluent, new V1ExecAction()); } - public V1ExecActionBuilder(V1ExecActionFluent fluent,V1ExecAction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ExecActionBuilder(V1ExecAction instance) { this.fluent = this; this.copyInstance(instance); } - V1ExecActionFluent fluent; + public V1ExecActionBuilder(V1ExecActionFluent fluent,V1ExecAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ExecAction build() { V1ExecAction buildable = new V1ExecAction(); buildable.setCommand(fluent.getCommand()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java index 98a973a259..68dd8a35b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java @@ -1,63 +1,81 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ExecActionFluent> extends BaseFluent{ +public class V1ExecActionFluent> extends BaseFluent{ + + private List command; + public V1ExecActionFluent() { } public V1ExecActionFluent(V1ExecAction instance) { this.copyInstance(instance); } - private List command; + + public A addAllToCommand(Collection items) { + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; + } - protected void copyInstance(V1ExecAction instance) { - instance = (instance != null ? instance : new V1ExecAction()); - if (instance != null) { - this.withCommand(instance.getCommand()); - } + public A addToCommand(String... items) { + if (this.command == null) { + this.command = new ArrayList(); + } + for (String item : items) { + this.command.add(item); + } + return (A) this; } public A addToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} + if (this.command == null) { + this.command = new ArrayList(); + } this.command.add(index, item); - return (A)this; - } - - public A setToCommand(int index,String item) { - if (this.command == null) {this.command = new ArrayList();} - this.command.set(index, item); return (A)this; - } - - public A addToCommand(java.lang.String... items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; - } - - public A addAllToCommand(Collection items) { - if (this.command == null) {this.command = new ArrayList();} - for (String item : items) {this.command.add(item);} return (A)this; + return (A) this; } - public A removeFromCommand(java.lang.String... items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + protected void copyInstance(V1ExecAction instance) { + instance = instance != null ? instance : new V1ExecAction(); + if (instance != null) { + this.withCommand(instance.getCommand()); + } } - public A removeAllFromCommand(Collection items) { - if (this.command == null) return (A)this; - for (String item : items) { this.command.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ExecActionFluent that = (V1ExecActionFluent) o; + if (!(Objects.equals(command, that.command))) { + return false; + } + return true; } public List getCommand() { @@ -85,6 +103,10 @@ public String getMatchingCommand(Predicate predicate) { return null; } + public boolean hasCommand() { + return this.command != null && !(this.command.isEmpty()); + } + public boolean hasMatchingCommand(Predicate predicate) { for (String item : command) { if (predicate.test(item)) { @@ -94,6 +116,49 @@ public boolean hasMatchingCommand(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(command); + } + + public A removeAllFromCommand(Collection items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; + } + + public A removeFromCommand(String... items) { + if (this.command == null) { + return (A) this; + } + for (String item : items) { + this.command.remove(item); + } + return (A) this; + } + + public A setToCommand(int index,String item) { + if (this.command == null) { + this.command = new ArrayList(); + } + this.command.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(command == null) && !(command.isEmpty())) { + sb.append("command:"); + sb.append(command); + } + sb.append("}"); + return sb.toString(); + } + public A withCommand(List command) { if (command != null) { this.command = new ArrayList(); @@ -106,7 +171,7 @@ public A withCommand(List command) { return (A) this; } - public A withCommand(java.lang.String... command) { + public A withCommand(String... command) { if (this.command != null) { this.command.clear(); _visitables.remove("command"); @@ -119,30 +184,4 @@ public A withCommand(java.lang.String... command) { return (A) this; } - public boolean hasCommand() { - return this.command != null && !this.command.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; - V1ExecActionFluent that = (V1ExecActionFluent) o; - if (!java.util.Objects.equals(command, that.command)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(command, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (command != null && !command.isEmpty()) { sb.append("command:"); sb.append(command); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file 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 index 8d3e75279a..a5f3080ac5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ExemptPriorityLevelConfigurationBuilder extends V1ExemptPriorityLevelConfigurationFluent implements VisitableBuilder{ + + V1ExemptPriorityLevelConfigurationFluent fluent; + public V1ExemptPriorityLevelConfigurationBuilder() { this(new V1ExemptPriorityLevelConfiguration()); } @@ -10,17 +14,16 @@ public V1ExemptPriorityLevelConfigurationBuilder(V1ExemptPriorityLevelConfigurat 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 V1ExemptPriorityLevelConfigurationBuilder(V1ExemptPriorityLevelConfigurationFluent fluent,V1ExemptPriorityLevelConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ExemptPriorityLevelConfiguration build() { V1ExemptPriorityLevelConfiguration buildable = new V1ExemptPriorityLevelConfiguration(); buildable.setLendablePercent(fluent.getLendablePercent()); @@ -28,5 +31,4 @@ public V1ExemptPriorityLevelConfiguration build() { 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 index ca4c09bc93..8ca20e638d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java @@ -1,81 +1,101 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ +public class V1ExemptPriorityLevelConfigurationFluent> extends BaseFluent{ + + private Integer lendablePercent; + private Integer nominalConcurrencyShares; + 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()); + instance = instance != null ? instance : new V1ExemptPriorityLevelConfiguration(); if (instance != null) { - this.withLendablePercent(instance.getLendablePercent()); - this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ExemptPriorityLevelConfigurationFluent that = (V1ExemptPriorityLevelConfigurationFluent) o; + if (!(Objects.equals(lendablePercent, that.lendablePercent))) { + return false; + } + if (!(Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares))) { + return false; + } + return true; } - public boolean hasLendablePercent() { - return this.lendablePercent != null; + public Integer getLendablePercent() { + return this.lendablePercent; } public Integer getNominalConcurrencyShares() { return this.nominalConcurrencyShares; } - public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { - this.nominalConcurrencyShares = nominalConcurrencyShares; - return (A) this; + public boolean hasLendablePercent() { + return this.lendablePercent != null; } 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()); + return Objects.hash(lendablePercent, nominalConcurrencyShares); } 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); } + if (!(lendablePercent == null)) { + sb.append("lendablePercent:"); + sb.append(lendablePercent); + sb.append(","); + } + if (!(nominalConcurrencyShares == null)) { + sb.append("nominalConcurrencyShares:"); + sb.append(nominalConcurrencyShares); + } sb.append("}"); return sb.toString(); } - + public A withLendablePercent(Integer lendablePercent) { + this.lendablePercent = lendablePercent; + return (A) this; + } + + public A withNominalConcurrencyShares(Integer nominalConcurrencyShares) { + this.nominalConcurrencyShares = nominalConcurrencyShares; + return (A) this; + } + } \ 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 index 9c9c2f4421..041c5c21e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ExpressionWarningBuilder extends V1ExpressionWarningFluent implements VisitableBuilder{ + + V1ExpressionWarningFluent fluent; + public V1ExpressionWarningBuilder() { this(new V1ExpressionWarning()); } @@ -10,17 +14,16 @@ 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 V1ExpressionWarningBuilder(V1ExpressionWarningFluent fluent,V1ExpressionWarning instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ExpressionWarning build() { V1ExpressionWarning buildable = new V1ExpressionWarning(); buildable.setFieldRef(fluent.getFieldRef()); @@ -28,5 +31,4 @@ public V1ExpressionWarning build() { 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 index b97d8e8413..3830d85fcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ExpressionWarningFluent> extends BaseFluent{ +public class V1ExpressionWarningFluent> extends BaseFluent{ + + private String fieldRef; + private String warning; + 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()); + instance = instance != null ? instance : new V1ExpressionWarning(); if (instance != null) { - this.withFieldRef(instance.getFieldRef()); - this.withWarning(instance.getWarning()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ExpressionWarningFluent that = (V1ExpressionWarningFluent) o; + if (!(Objects.equals(fieldRef, that.fieldRef))) { + return false; + } + if (!(Objects.equals(warning, that.warning))) { + return false; + } + return true; } - public boolean hasFieldRef() { - return this.fieldRef != null; + public String getFieldRef() { + return this.fieldRef; } public String getWarning() { return this.warning; } - public A withWarning(String warning) { - this.warning = warning; - return (A) this; + public boolean hasFieldRef() { + return this.fieldRef != null; } 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()); + return Objects.hash(fieldRef, warning); } 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); } + if (!(fieldRef == null)) { + sb.append("fieldRef:"); + sb.append(fieldRef); + sb.append(","); + } + if (!(warning == null)) { + sb.append("warning:"); + sb.append(warning); + } sb.append("}"); return sb.toString(); } - + public A withFieldRef(String fieldRef) { + this.fieldRef = fieldRef; + return (A) this; + } + + public A withWarning(String warning) { + this.warning = warning; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java index af775529cd..d05cadcec5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ExternalDocumentationBuilder extends V1ExternalDocumentationFluent implements VisitableBuilder{ + + V1ExternalDocumentationFluent fluent; + public V1ExternalDocumentationBuilder() { this(new V1ExternalDocumentation()); } @@ -10,17 +14,16 @@ public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent) { this(fluent, new V1ExternalDocumentation()); } - public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent,V1ExternalDocumentation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ExternalDocumentationBuilder(V1ExternalDocumentation instance) { this.fluent = this; this.copyInstance(instance); } - V1ExternalDocumentationFluent fluent; + public V1ExternalDocumentationBuilder(V1ExternalDocumentationFluent fluent,V1ExternalDocumentation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ExternalDocumentation build() { V1ExternalDocumentation buildable = new V1ExternalDocumentation(); buildable.setDescription(fluent.getDescription()); @@ -28,5 +31,4 @@ public V1ExternalDocumentation build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java index b89eb8b1e5..699a175f80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ExternalDocumentationFluent> extends BaseFluent{ +public class V1ExternalDocumentationFluent> extends BaseFluent{ + + private String description; + private String url; + public V1ExternalDocumentationFluent() { } public V1ExternalDocumentationFluent(V1ExternalDocumentation instance) { this.copyInstance(instance); } - private String description; - private String url; - + protected void copyInstance(V1ExternalDocumentation instance) { - instance = (instance != null ? instance : new V1ExternalDocumentation()); + instance = instance != null ? instance : new V1ExternalDocumentation(); if (instance != null) { - this.withDescription(instance.getDescription()); - this.withUrl(instance.getUrl()); - } + this.withDescription(instance.getDescription()); + this.withUrl(instance.getUrl()); + } } - public String getDescription() { - return this.description; - } - - public A withDescription(String description) { - this.description = description; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ExternalDocumentationFluent that = (V1ExternalDocumentationFluent) o; + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(url, that.url))) { + return false; + } + return true; } - public boolean hasDescription() { - return this.description != null; + public String getDescription() { + return this.description; } public String getUrl() { return this.url; } - public A withUrl(String url) { - this.url = url; - return (A) this; + public boolean hasDescription() { + return this.description != null; } public boolean hasUrl() { return this.url != 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; - V1ExternalDocumentationFluent that = (V1ExternalDocumentationFluent) o; - if (!java.util.Objects.equals(description, that.description)) return false; - if (!java.util.Objects.equals(url, that.url)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(description, url, super.hashCode()); + return Objects.hash(description, url); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (description != null) { sb.append("description:"); sb.append(description + ","); } - if (url != null) { sb.append("url:"); sb.append(url); } + if (!(description == null)) { + sb.append("description:"); + sb.append(description); + sb.append(","); + } + if (!(url == null)) { + sb.append("url:"); + sb.append(url); + } sb.append("}"); return sb.toString(); } - + public A withDescription(String description) { + this.description = description; + return (A) this; + } + + public A withUrl(String url) { + this.url = url; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java index 9bd33c6030..7482558d53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FCVolumeSourceBuilder extends V1FCVolumeSourceFluent implements VisitableBuilder{ + + V1FCVolumeSourceFluent fluent; + public V1FCVolumeSourceBuilder() { this(new V1FCVolumeSource()); } @@ -10,17 +14,16 @@ public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent) { this(fluent, new V1FCVolumeSource()); } - public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent,V1FCVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FCVolumeSourceBuilder(V1FCVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1FCVolumeSourceFluent fluent; + public V1FCVolumeSourceBuilder(V1FCVolumeSourceFluent fluent,V1FCVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FCVolumeSource build() { V1FCVolumeSource buildable = new V1FCVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -31,5 +34,4 @@ public V1FCVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java index a256be72bb..c777d5d99c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java @@ -1,141 +1,214 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; 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.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FCVolumeSourceFluent> extends BaseFluent{ - public V1FCVolumeSourceFluent() { - } - - public V1FCVolumeSourceFluent(V1FCVolumeSource instance) { - this.copyInstance(instance); - } +public class V1FCVolumeSourceFluent> extends BaseFluent{ + private String fsType; private Integer lun; private Boolean readOnly; private List targetWWNs; private List wwids; + + public V1FCVolumeSourceFluent() { + } - protected void copyInstance(V1FCVolumeSource instance) { - instance = (instance != null ? instance : new V1FCVolumeSource()); - if (instance != null) { - this.withFsType(instance.getFsType()); - this.withLun(instance.getLun()); - this.withReadOnly(instance.getReadOnly()); - this.withTargetWWNs(instance.getTargetWWNs()); - this.withWwids(instance.getWwids()); - } + public V1FCVolumeSourceFluent(V1FCVolumeSource instance) { + this.copyInstance(instance); + } + + public A addAllToTargetWWNs(Collection items) { + if (this.targetWWNs == null) { + this.targetWWNs = new ArrayList(); + } + for (String item : items) { + this.targetWWNs.add(item); + } + return (A) this; } - public String getFsType() { - return this.fsType; + public A addAllToWwids(Collection items) { + if (this.wwids == null) { + this.wwids = new ArrayList(); + } + for (String item : items) { + this.wwids.add(item); + } + return (A) this; } - public A withFsType(String fsType) { - this.fsType = fsType; + public A addToTargetWWNs(String... items) { + if (this.targetWWNs == null) { + this.targetWWNs = new ArrayList(); + } + for (String item : items) { + this.targetWWNs.add(item); + } return (A) this; } - public boolean hasFsType() { - return this.fsType != null; + public A addToTargetWWNs(int index,String item) { + if (this.targetWWNs == null) { + this.targetWWNs = new ArrayList(); + } + this.targetWWNs.add(index, item); + return (A) this; } - public Integer getLun() { - return this.lun; + public A addToWwids(String... items) { + if (this.wwids == null) { + this.wwids = new ArrayList(); + } + for (String item : items) { + this.wwids.add(item); + } + return (A) this; } - public A withLun(Integer lun) { - this.lun = lun; + public A addToWwids(int index,String item) { + if (this.wwids == null) { + this.wwids = new ArrayList(); + } + this.wwids.add(index, item); return (A) this; } - public boolean hasLun() { - return this.lun != null; + protected void copyInstance(V1FCVolumeSource instance) { + instance = instance != null ? instance : new V1FCVolumeSource(); + if (instance != null) { + this.withFsType(instance.getFsType()); + this.withLun(instance.getLun()); + this.withReadOnly(instance.getReadOnly()); + this.withTargetWWNs(instance.getTargetWWNs()); + this.withWwids(instance.getWwids()); + } } - public Boolean getReadOnly() { - return this.readOnly; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FCVolumeSourceFluent that = (V1FCVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(lun, that.lun))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(targetWWNs, that.targetWWNs))) { + return false; + } + if (!(Objects.equals(wwids, that.wwids))) { + return false; + } + return true; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public String getFirstTargetWWN() { + return this.targetWWNs.get(0); } - public boolean hasReadOnly() { - return this.readOnly != null; + public String getFirstWwid() { + return this.wwids.get(0); } - public A addToTargetWWNs(int index,String item) { - if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} - this.targetWWNs.add(index, item); - return (A)this; + public String getFsType() { + return this.fsType; } - public A setToTargetWWNs(int index,String item) { - if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} - this.targetWWNs.set(index, item); return (A)this; + public String getLastTargetWWN() { + return this.targetWWNs.get(targetWWNs.size() - 1); } - public A addToTargetWWNs(java.lang.String... items) { - if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} - for (String item : items) {this.targetWWNs.add(item);} return (A)this; + public String getLastWwid() { + return this.wwids.get(wwids.size() - 1); } - public A addAllToTargetWWNs(Collection items) { - if (this.targetWWNs == null) {this.targetWWNs = new ArrayList();} - for (String item : items) {this.targetWWNs.add(item);} return (A)this; + public Integer getLun() { + return this.lun; } - public A removeFromTargetWWNs(java.lang.String... items) { - if (this.targetWWNs == null) return (A)this; - for (String item : items) { this.targetWWNs.remove(item);} return (A)this; + public String getMatchingTargetWWN(Predicate predicate) { + for (String item : targetWWNs) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A removeAllFromTargetWWNs(Collection items) { - if (this.targetWWNs == null) return (A)this; - for (String item : items) { this.targetWWNs.remove(item);} return (A)this; + public String getMatchingWwid(Predicate predicate) { + for (String item : wwids) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public List getTargetWWNs() { - return this.targetWWNs; + public Boolean getReadOnly() { + return this.readOnly; } public String getTargetWWN(int index) { return this.targetWWNs.get(index); } - public String getFirstTargetWWN() { - return this.targetWWNs.get(0); + public List getTargetWWNs() { + return this.targetWWNs; } - public String getLastTargetWWN() { - return this.targetWWNs.get(targetWWNs.size() - 1); + public String getWwid(int index) { + return this.wwids.get(index); } - public String getMatchingTargetWWN(Predicate predicate) { + public List getWwids() { + return this.wwids; + } + + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasLun() { + return this.lun != null; + } + + public boolean hasMatchingTargetWWN(Predicate predicate) { for (String item : targetWWNs) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } - public boolean hasMatchingTargetWWN(Predicate predicate) { - for (String item : targetWWNs) { + public boolean hasMatchingWwid(Predicate predicate) { + for (String item : wwids) { if (predicate.test(item)) { return true; } @@ -143,98 +216,151 @@ public boolean hasMatchingTargetWWN(Predicate predicate) { return false; } - public A withTargetWWNs(List targetWWNs) { - if (targetWWNs != null) { - this.targetWWNs = new ArrayList(); - for (String item : targetWWNs) { - this.addToTargetWWNs(item); - } - } else { - this.targetWWNs = null; - } - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } - public A withTargetWWNs(java.lang.String... targetWWNs) { - if (this.targetWWNs != null) { - this.targetWWNs.clear(); - _visitables.remove("targetWWNs"); + public boolean hasTargetWWNs() { + return this.targetWWNs != null && !(this.targetWWNs.isEmpty()); + } + + public boolean hasWwids() { + return this.wwids != null && !(this.wwids.isEmpty()); + } + + public int hashCode() { + return Objects.hash(fsType, lun, readOnly, targetWWNs, wwids); + } + + public A removeAllFromTargetWWNs(Collection items) { + if (this.targetWWNs == null) { + return (A) this; } - if (targetWWNs != null) { - for (String item : targetWWNs) { - this.addToTargetWWNs(item); - } + for (String item : items) { + this.targetWWNs.remove(item); } return (A) this; } - public boolean hasTargetWWNs() { - return this.targetWWNs != null && !this.targetWWNs.isEmpty(); - } - - public A addToWwids(int index,String item) { - if (this.wwids == null) {this.wwids = new ArrayList();} - this.wwids.add(index, item); - return (A)this; + public A removeAllFromWwids(Collection items) { + if (this.wwids == null) { + return (A) this; + } + for (String item : items) { + this.wwids.remove(item); + } + return (A) this; } - public A setToWwids(int index,String item) { - if (this.wwids == null) {this.wwids = new ArrayList();} - this.wwids.set(index, item); return (A)this; + public A removeFromTargetWWNs(String... items) { + if (this.targetWWNs == null) { + return (A) this; + } + for (String item : items) { + this.targetWWNs.remove(item); + } + return (A) this; } - public A addToWwids(java.lang.String... items) { - if (this.wwids == null) {this.wwids = new ArrayList();} - for (String item : items) {this.wwids.add(item);} return (A)this; + public A removeFromWwids(String... items) { + if (this.wwids == null) { + return (A) this; + } + for (String item : items) { + this.wwids.remove(item); + } + return (A) this; } - public A addAllToWwids(Collection items) { - if (this.wwids == null) {this.wwids = new ArrayList();} - for (String item : items) {this.wwids.add(item);} return (A)this; + public A setToTargetWWNs(int index,String item) { + if (this.targetWWNs == null) { + this.targetWWNs = new ArrayList(); + } + this.targetWWNs.set(index, item); + return (A) this; } - public A removeFromWwids(java.lang.String... items) { - if (this.wwids == null) return (A)this; - for (String item : items) { this.wwids.remove(item);} return (A)this; + public A setToWwids(int index,String item) { + if (this.wwids == null) { + this.wwids = new ArrayList(); + } + this.wwids.set(index, item); + return (A) this; } - public A removeAllFromWwids(Collection items) { - if (this.wwids == null) return (A)this; - for (String item : items) { this.wwids.remove(item);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(lun == null)) { + sb.append("lun:"); + sb.append(lun); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(targetWWNs == null) && !(targetWWNs.isEmpty())) { + sb.append("targetWWNs:"); + sb.append(targetWWNs); + sb.append(","); + } + if (!(wwids == null) && !(wwids.isEmpty())) { + sb.append("wwids:"); + sb.append(wwids); + } + sb.append("}"); + return sb.toString(); } - public List getWwids() { - return this.wwids; + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public String getWwid(int index) { - return this.wwids.get(index); + public A withLun(Integer lun) { + this.lun = lun; + return (A) this; } - public String getFirstWwid() { - return this.wwids.get(0); + public A withReadOnly() { + return withReadOnly(true); } - public String getLastWwid() { - return this.wwids.get(wwids.size() - 1); + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; } - public String getMatchingWwid(Predicate predicate) { - for (String item : wwids) { - if (predicate.test(item)) { - return item; + public A withTargetWWNs(List targetWWNs) { + if (targetWWNs != null) { + this.targetWWNs = new ArrayList(); + for (String item : targetWWNs) { + this.addToTargetWWNs(item); } - } - return null; + } else { + this.targetWWNs = null; + } + return (A) this; } - public boolean hasMatchingWwid(Predicate predicate) { - for (String item : wwids) { - if (predicate.test(item)) { - return true; - } + public A withTargetWWNs(String... targetWWNs) { + if (this.targetWWNs != null) { + this.targetWWNs.clear(); + _visitables.remove("targetWWNs"); + } + if (targetWWNs != null) { + for (String item : targetWWNs) { + this.addToTargetWWNs(item); } - return false; + } + return (A) this; } public A withWwids(List wwids) { @@ -249,7 +375,7 @@ public A withWwids(List wwids) { return (A) this; } - public A withWwids(java.lang.String... wwids) { + public A withWwids(String... wwids) { if (this.wwids != null) { this.wwids.clear(); _visitables.remove("wwids"); @@ -262,42 +388,4 @@ public A withWwids(java.lang.String... wwids) { return (A) this; } - public boolean hasWwids() { - return this.wwids != null && !this.wwids.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; - V1FCVolumeSourceFluent that = (V1FCVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(lun, that.lun)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(targetWWNs, that.targetWWNs)) return false; - if (!java.util.Objects.equals(wwids, that.wwids)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(fsType, lun, readOnly, targetWWNs, wwids, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (lun != null) { sb.append("lun:"); sb.append(lun + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (targetWWNs != null && !targetWWNs.isEmpty()) { sb.append("targetWWNs:"); sb.append(targetWWNs + ","); } - if (wwids != null && !wwids.isEmpty()) { sb.append("wwids:"); sb.append(wwids); } - 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/V1FieldSelectorAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java new file mode 100644 index 0000000000..52dc7e4c81 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1FieldSelectorAttributesBuilder extends V1FieldSelectorAttributesFluent implements VisitableBuilder{ + + V1FieldSelectorAttributesFluent fluent; + + public V1FieldSelectorAttributesBuilder() { + this(new V1FieldSelectorAttributes()); + } + + public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributesFluent fluent) { + this(fluent, new V1FieldSelectorAttributes()); + } + + public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributes instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1FieldSelectorAttributesBuilder(V1FieldSelectorAttributesFluent fluent,V1FieldSelectorAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..12fb2e2043 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java @@ -0,0 +1,320 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FieldSelectorAttributesFluent> extends BaseFluent{ + + private String rawSelector; + private ArrayList requirements; + + public V1FieldSelectorAttributesFluent() { + } + + public V1FieldSelectorAttributesFluent(V1FieldSelectorAttributes instance) { + this.copyInstance(instance); + } + + 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 RequirementsNested addNewRequirement() { + return new RequirementsNested(-1, null); + } + + public RequirementsNested addNewRequirementLike(V1FieldSelectorRequirement item) { + return new RequirementsNested(-1, item); + } + + public A addToRequirements(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 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 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 V1FieldSelectorRequirement buildRequirement(int index) { + return this.requirements.get(index).build(); + } + + public List buildRequirements() { + return this.requirements != null ? build(requirements) : null; + } + + protected void copyInstance(V1FieldSelectorAttributes instance) { + instance = instance != null ? instance : new V1FieldSelectorAttributes(); + if (instance != null) { + this.withRawSelector(instance.getRawSelector()); + this.withRequirements(instance.getRequirements()); + } + } + + public RequirementsNested editFirstRequirement() { + if (requirements.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requirements")); + } + return this.setNewRequirementLike(0, this.buildRequirement(0)); + } + + public RequirementsNested editLastRequirement() { + int index = requirements.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); + } + + public RequirementsNested editMatchingRequirement(Predicate predicate) { + int index = -1; + for (int i = 0;i < requirements.size();i++) { + if (predicate.test(requirements.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); + } + + public RequirementsNested editRequirement(int index) { + if (requirements.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FieldSelectorAttributesFluent that = (V1FieldSelectorAttributesFluent) o; + if (!(Objects.equals(rawSelector, that.rawSelector))) { + return false; + } + if (!(Objects.equals(requirements, that.requirements))) { + return false; + } + return true; + } + + public String getRawSelector() { + return this.rawSelector; + } + + public boolean hasMatchingRequirement(Predicate predicate) { + for (V1FieldSelectorRequirementBuilder item : requirements) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRawSelector() { + return this.rawSelector != null; + } + + public boolean hasRequirements() { + return this.requirements != null && !(this.requirements.isEmpty()); + } + + public int hashCode() { + return Objects.hash(rawSelector, requirements); + } + + 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 removeFromRequirements(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 removeMatchingFromRequirements(Predicate predicate) { + if (requirements == null) { + return (A) this; + } + Iterator each = requirements.iterator(); + 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 RequirementsNested setNewRequirementLike(int index,V1FieldSelectorRequirement item) { + return new RequirementsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(rawSelector == null)) { + sb.append("rawSelector:"); + sb.append(rawSelector); + sb.append(","); + } + if (!(requirements == null) && !(requirements.isEmpty())) { + sb.append("requirements:"); + sb.append(requirements); + } + sb.append("}"); + return sb.toString(); + } + + public A withRawSelector(String rawSelector) { + this.rawSelector = rawSelector; + return (A) this; + } + + 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(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 class RequirementsNested extends V1FieldSelectorRequirementFluent> implements Nested{ + + V1FieldSelectorRequirementBuilder builder; + int index; + + RequirementsNested(int index,V1FieldSelectorRequirement item) { + this.index = index; + this.builder = new V1FieldSelectorRequirementBuilder(this, item); + } + + 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..80ab89d654 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1FieldSelectorRequirementBuilder extends V1FieldSelectorRequirementFluent implements VisitableBuilder{ + + V1FieldSelectorRequirementFluent fluent; + + public V1FieldSelectorRequirementBuilder() { + this(new V1FieldSelectorRequirement()); + } + + public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirementFluent fluent) { + this(fluent, new V1FieldSelectorRequirement()); + } + + public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirement instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1FieldSelectorRequirementBuilder(V1FieldSelectorRequirementFluent fluent,V1FieldSelectorRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..d731900dc3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java @@ -0,0 +1,233 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FieldSelectorRequirementFluent> extends BaseFluent{ + + private String key; + private String operator; + private List values; + + public V1FieldSelectorRequirementFluent() { + } + + public V1FieldSelectorRequirementFluent(V1FieldSelectorRequirement instance) { + this.copyInstance(instance); + } + + 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 addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; + } + + public A addToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(index, item); + return (A) this; + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FieldSelectorRequirementFluent that = (V1FieldSelectorRequirementFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; + } + + public String getFirstValue() { + return this.values.get(0); + } + + public String getKey() { + return this.key; + } + + 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 String getOperator() { + return this.operator; + } + + public String getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasMatchingValue(Predicate predicate) { + for (String item : values) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public boolean hasValues() { + return this.values != null && !(this.values.isEmpty()); + } + + public int hashCode() { + return Objects.hash(key, operator, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; + } + + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } + sb.append("}"); + return sb.toString(); + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + 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(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; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java new file mode 100644 index 0000000000..0d2415e883 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1FileKeySelectorBuilder extends V1FileKeySelectorFluent implements VisitableBuilder{ + + V1FileKeySelectorFluent fluent; + + public V1FileKeySelectorBuilder() { + this(new V1FileKeySelector()); + } + + public V1FileKeySelectorBuilder(V1FileKeySelectorFluent fluent) { + this(fluent, new V1FileKeySelector()); + } + + public V1FileKeySelectorBuilder(V1FileKeySelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1FileKeySelectorBuilder(V1FileKeySelectorFluent fluent,V1FileKeySelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1FileKeySelector build() { + V1FileKeySelector buildable = new V1FileKeySelector(); + buildable.setKey(fluent.getKey()); + buildable.setOptional(fluent.getOptional()); + buildable.setPath(fluent.getPath()); + buildable.setVolumeName(fluent.getVolumeName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java new file mode 100644 index 0000000000..4c693fe1c3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java @@ -0,0 +1,151 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1FileKeySelectorFluent> extends BaseFluent{ + + private String key; + private Boolean optional; + private String path; + private String volumeName; + + public V1FileKeySelectorFluent() { + } + + public V1FileKeySelectorFluent(V1FileKeySelector instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1FileKeySelector instance) { + instance = instance != null ? instance : new V1FileKeySelector(); + if (instance != null) { + this.withKey(instance.getKey()); + this.withOptional(instance.getOptional()); + this.withPath(instance.getPath()); + this.withVolumeName(instance.getVolumeName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FileKeySelectorFluent that = (V1FileKeySelectorFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + return true; + } + + public String getKey() { + return this.key; + } + + public Boolean getOptional() { + return this.optional; + } + + public String getPath() { + return this.path; + } + + public String getVolumeName() { + return this.volumeName; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasOptional() { + return this.optional != null; + } + + public boolean hasPath() { + return this.path != null; + } + + public boolean hasVolumeName() { + return this.volumeName != null; + } + + public int hashCode() { + return Objects.hash(key, optional, path, volumeName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + } + sb.append("}"); + return sb.toString(); + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOptional() { + return withOptional(true); + } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java index 7c03ddfc7d..40d6d5e763 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlexPersistentVolumeSourceBuilder extends V1FlexPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1FlexPersistentVolumeSourceFluent fluent; + public V1FlexPersistentVolumeSourceBuilder() { this(new V1FlexPersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent this(fluent, new V1FlexPersistentVolumeSource()); } - public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent fluent,V1FlexPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1FlexPersistentVolumeSourceFluent fluent; + public V1FlexPersistentVolumeSourceBuilder(V1FlexPersistentVolumeSourceFluent fluent,V1FlexPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlexPersistentVolumeSource build() { V1FlexPersistentVolumeSource buildable = new V1FlexPersistentVolumeSource(); buildable.setDriver(fluent.getDriver()); @@ -31,5 +34,4 @@ public V1FlexPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java index a082ad819f..09cac274e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java @@ -1,196 +1,262 @@ 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.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlexPersistentVolumeSourceFluent> extends BaseFluent{ - public V1FlexPersistentVolumeSourceFluent() { - } - - public V1FlexPersistentVolumeSourceFluent(V1FlexPersistentVolumeSource instance) { - this.copyInstance(instance); - } +public class V1FlexPersistentVolumeSourceFluent> extends BaseFluent{ + private String driver; private String fsType; private Map options; private Boolean readOnly; private V1SecretReferenceBuilder secretRef; - - protected void copyInstance(V1FlexPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1FlexPersistentVolumeSource()); - if (instance != null) { - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withOptions(instance.getOptions()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - } + + public V1FlexPersistentVolumeSourceFluent() { } - public String getDriver() { - return this.driver; + public V1FlexPersistentVolumeSourceFluent(V1FlexPersistentVolumeSource instance) { + this.copyInstance(instance); + } + + public A addToOptions(Map map) { + if (this.options == null && map != null) { + this.options = new LinkedHashMap(); + } + if (map != null) { + this.options.putAll(map); + } + return (A) this; } - public A withDriver(String driver) { - this.driver = driver; + public A addToOptions(String key,String value) { + if (this.options == null && key != null && value != null) { + this.options = new LinkedHashMap(); + } + if (key != null && value != null) { + this.options.put(key, value); + } return (A) this; } - public boolean hasDriver() { - return this.driver != null; + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public String getFsType() { - return this.fsType; + protected void copyInstance(V1FlexPersistentVolumeSource instance) { + instance = instance != null ? instance : new V1FlexPersistentVolumeSource(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withOptions(instance.getOptions()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + } } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public A addToOptions(String key,String value) { - if(this.options == null && key != null && value != null) { this.options = new LinkedHashMap(); } - if(key != null && value != null) {this.options.put(key, value);} return (A)this; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public A addToOptions(Map map) { - if(this.options == null && map != null) { this.options = new LinkedHashMap(); } - if(map != null) { this.options.putAll(map);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FlexPersistentVolumeSourceFluent that = (V1FlexPersistentVolumeSourceFluent) o; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(options, that.options))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + return true; } - public A removeFromOptions(String key) { - if(this.options == null) { return (A) this; } - if(key != null && this.options != null) {this.options.remove(key);} return (A)this; + public String getDriver() { + return this.driver; } - public A removeFromOptions(Map map) { - if(this.options == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.options != null){this.options.remove(key);}}} return (A)this; + public String getFsType() { + return this.fsType; } public Map getOptions() { return this.options; } - public A withOptions(Map options) { - if (options == null) { - this.options = null; - } else { - this.options = new LinkedHashMap(options); - } - return (A) this; + public Boolean getReadOnly() { + return this.readOnly; } - public boolean hasOptions() { - return this.options != null; + public boolean hasDriver() { + return this.driver != null; } - public Boolean getReadOnly() { - return this.readOnly; + public boolean hasFsType() { + return this.fsType != null; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean hasOptions() { + return this.options != null; } public boolean hasReadOnly() { return this.readOnly != null; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public boolean hasSecretRef() { + return this.secretRef != null; } - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); + public int hashCode() { + return Objects.hash(driver, fsType, options, readOnly, secretRef); + } + + public A removeFromOptions(String key) { + if (this.options == null) { + return (A) this; + } + if (key != null && this.options != null) { + this.options.remove(key); } return (A) this; } - public boolean hasSecretRef() { - return this.secretRef != null; + public A removeFromOptions(Map map) { + if (this.options == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.options != null) { + this.options.remove(key); + } + } + } + return (A) this; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(options == null) && !(options.isEmpty())) { + sb.append("options:"); + sb.append(options); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + } + sb.append("}"); + return sb.toString(); } - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + public A withDriver(String driver) { + this.driver = driver; + return (A) this; } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(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; - V1FlexPersistentVolumeSourceFluent that = (V1FlexPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(options, that.options)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - return true; + public A withOptions(Map options) { + if (options == null) { + this.options = null; + } else { + this.options = new LinkedHashMap(options); + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); + public A withReadOnly() { + return withReadOnly(true); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (options != null && !options.isEmpty()) { sb.append("options:"); sb.append(options + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); } - sb.append("}"); - return sb.toString(); + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; } - public A withReadOnly() { - return withReadOnly(true); + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; } public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1FlexPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -199,7 +265,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java index c883baccfa..88eed4efff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlexVolumeSourceBuilder extends V1FlexVolumeSourceFluent implements VisitableBuilder{ + + V1FlexVolumeSourceFluent fluent; + public V1FlexVolumeSourceBuilder() { this(new V1FlexVolumeSource()); } @@ -10,17 +14,16 @@ public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent) { this(fluent, new V1FlexVolumeSource()); } - public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent,V1FlexVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlexVolumeSourceBuilder(V1FlexVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1FlexVolumeSourceFluent fluent; + public V1FlexVolumeSourceBuilder(V1FlexVolumeSourceFluent fluent,V1FlexVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlexVolumeSource build() { V1FlexVolumeSource buildable = new V1FlexVolumeSource(); buildable.setDriver(fluent.getDriver()); @@ -31,5 +34,4 @@ public V1FlexVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java index 91ce0040b2..f9490fbf2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java @@ -1,196 +1,262 @@ 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.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlexVolumeSourceFluent> extends BaseFluent{ - public V1FlexVolumeSourceFluent() { - } - - public V1FlexVolumeSourceFluent(V1FlexVolumeSource instance) { - this.copyInstance(instance); - } +public class V1FlexVolumeSourceFluent> extends BaseFluent{ + private String driver; private String fsType; private Map options; private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; - - protected void copyInstance(V1FlexVolumeSource instance) { - instance = (instance != null ? instance : new V1FlexVolumeSource()); - if (instance != null) { - this.withDriver(instance.getDriver()); - this.withFsType(instance.getFsType()); - this.withOptions(instance.getOptions()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - } + + public V1FlexVolumeSourceFluent() { } - public String getDriver() { - return this.driver; + public V1FlexVolumeSourceFluent(V1FlexVolumeSource instance) { + this.copyInstance(instance); + } + + public A addToOptions(Map map) { + if (this.options == null && map != null) { + this.options = new LinkedHashMap(); + } + if (map != null) { + this.options.putAll(map); + } + return (A) this; } - public A withDriver(String driver) { - this.driver = driver; + public A addToOptions(String key,String value) { + if (this.options == null && key != null && value != null) { + this.options = new LinkedHashMap(); + } + if (key != null && value != null) { + this.options.put(key, value); + } return (A) this; } - public boolean hasDriver() { - return this.driver != null; + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public String getFsType() { - return this.fsType; + protected void copyInstance(V1FlexVolumeSource instance) { + instance = instance != null ? instance : new V1FlexVolumeSource(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withFsType(instance.getFsType()); + this.withOptions(instance.getOptions()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + } } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public A addToOptions(String key,String value) { - if(this.options == null && key != null && value != null) { this.options = new LinkedHashMap(); } - if(key != null && value != null) {this.options.put(key, value);} return (A)this; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public A addToOptions(Map map) { - if(this.options == null && map != null) { this.options = new LinkedHashMap(); } - if(map != null) { this.options.putAll(map);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FlexVolumeSourceFluent that = (V1FlexVolumeSourceFluent) o; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(options, that.options))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + return true; } - public A removeFromOptions(String key) { - if(this.options == null) { return (A) this; } - if(key != null && this.options != null) {this.options.remove(key);} return (A)this; + public String getDriver() { + return this.driver; } - public A removeFromOptions(Map map) { - if(this.options == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.options != null){this.options.remove(key);}}} return (A)this; + public String getFsType() { + return this.fsType; } public Map getOptions() { return this.options; } - public A withOptions(Map options) { - if (options == null) { - this.options = null; - } else { - this.options = new LinkedHashMap(options); - } - return (A) this; + public Boolean getReadOnly() { + return this.readOnly; } - public boolean hasOptions() { - return this.options != null; + public boolean hasDriver() { + return this.driver != null; } - public Boolean getReadOnly() { - return this.readOnly; + public boolean hasFsType() { + return this.fsType != null; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean hasOptions() { + return this.options != null; } public boolean hasReadOnly() { return this.readOnly != null; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public boolean hasSecretRef() { + return this.secretRef != null; } - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); + public int hashCode() { + return Objects.hash(driver, fsType, options, readOnly, secretRef); + } + + public A removeFromOptions(String key) { + if (this.options == null) { + return (A) this; + } + if (key != null && this.options != null) { + this.options.remove(key); } return (A) this; } - public boolean hasSecretRef() { - return this.secretRef != null; + public A removeFromOptions(Map map) { + if (this.options == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.options != null) { + this.options.remove(key); + } + } + } + return (A) this; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(options == null) && !(options.isEmpty())) { + sb.append("options:"); + sb.append(options); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + } + sb.append("}"); + return sb.toString(); } - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + public A withDriver(String driver) { + this.driver = driver; + return (A) this; } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(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; - V1FlexVolumeSourceFluent that = (V1FlexVolumeSourceFluent) o; - if (!java.util.Objects.equals(driver, that.driver)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(options, that.options)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - return true; + public A withOptions(Map options) { + if (options == null) { + this.options = null; + } else { + this.options = new LinkedHashMap(options); + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(driver, fsType, options, readOnly, secretRef, super.hashCode()); + public A withReadOnly() { + return withReadOnly(true); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (driver != null) { sb.append("driver:"); sb.append(driver + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (options != null && !options.isEmpty()) { sb.append("options:"); sb.append(options + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef); } - sb.append("}"); - return sb.toString(); + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; } - public A withReadOnly() { - return withReadOnly(true); + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1FlexVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -199,7 +265,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java index d502dfeaa4..27cb525d26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlockerVolumeSourceBuilder extends V1FlockerVolumeSourceFluent implements VisitableBuilder{ + + V1FlockerVolumeSourceFluent fluent; + public V1FlockerVolumeSourceBuilder() { this(new V1FlockerVolumeSource()); } @@ -10,17 +14,16 @@ public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent) { this(fluent, new V1FlockerVolumeSource()); } - public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,V1FlockerVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1FlockerVolumeSourceFluent fluent; + public V1FlockerVolumeSourceBuilder(V1FlockerVolumeSourceFluent fluent,V1FlockerVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlockerVolumeSource build() { V1FlockerVolumeSource buildable = new V1FlockerVolumeSource(); buildable.setDatasetName(fluent.getDatasetName()); @@ -28,5 +31,4 @@ public V1FlockerVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java index d445abb971..6f0a71ae24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlockerVolumeSourceFluent> extends BaseFluent{ +public class V1FlockerVolumeSourceFluent> extends BaseFluent{ + + private String datasetName; + private String datasetUUID; + public V1FlockerVolumeSourceFluent() { } public V1FlockerVolumeSourceFluent(V1FlockerVolumeSource instance) { this.copyInstance(instance); } - private String datasetName; - private String datasetUUID; - + protected void copyInstance(V1FlockerVolumeSource instance) { - instance = (instance != null ? instance : new V1FlockerVolumeSource()); + instance = instance != null ? instance : new V1FlockerVolumeSource(); if (instance != null) { - this.withDatasetName(instance.getDatasetName()); - this.withDatasetUUID(instance.getDatasetUUID()); - } + this.withDatasetName(instance.getDatasetName()); + this.withDatasetUUID(instance.getDatasetUUID()); + } } - public String getDatasetName() { - return this.datasetName; - } - - public A withDatasetName(String datasetName) { - this.datasetName = datasetName; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FlockerVolumeSourceFluent that = (V1FlockerVolumeSourceFluent) o; + if (!(Objects.equals(datasetName, that.datasetName))) { + return false; + } + if (!(Objects.equals(datasetUUID, that.datasetUUID))) { + return false; + } + return true; } - public boolean hasDatasetName() { - return this.datasetName != null; + public String getDatasetName() { + return this.datasetName; } public String getDatasetUUID() { return this.datasetUUID; } - public A withDatasetUUID(String datasetUUID) { - this.datasetUUID = datasetUUID; - return (A) this; + public boolean hasDatasetName() { + return this.datasetName != null; } public boolean hasDatasetUUID() { return this.datasetUUID != 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; - V1FlockerVolumeSourceFluent that = (V1FlockerVolumeSourceFluent) o; - if (!java.util.Objects.equals(datasetName, that.datasetName)) return false; - if (!java.util.Objects.equals(datasetUUID, that.datasetUUID)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(datasetName, datasetUUID, super.hashCode()); + return Objects.hash(datasetName, datasetUUID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (datasetName != null) { sb.append("datasetName:"); sb.append(datasetName + ","); } - if (datasetUUID != null) { sb.append("datasetUUID:"); sb.append(datasetUUID); } + if (!(datasetName == null)) { + sb.append("datasetName:"); + sb.append(datasetName); + sb.append(","); + } + if (!(datasetUUID == null)) { + sb.append("datasetUUID:"); + sb.append(datasetUUID); + } sb.append("}"); return sb.toString(); } - + public A withDatasetName(String datasetName) { + this.datasetName = datasetName; + return (A) this; + } + + public A withDatasetUUID(String datasetUUID) { + this.datasetUUID = datasetUUID; + return (A) this; + } + } \ 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 index 7c916c0081..788117f97a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowDistinguisherMethodBuilder extends V1FlowDistinguisherMethodFluent implements VisitableBuilder{ + + V1FlowDistinguisherMethodFluent fluent; + public V1FlowDistinguisherMethodBuilder() { this(new V1FlowDistinguisherMethod()); } @@ -10,22 +14,20 @@ public V1FlowDistinguisherMethodBuilder(V1FlowDistinguisherMethodFluent fluen 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 V1FlowDistinguisherMethodBuilder(V1FlowDistinguisherMethodFluent fluent,V1FlowDistinguisherMethod instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index 2776c02bb5..1e4bd0d5b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlowDistinguisherMethodFluent> extends BaseFluent{ +public class V1FlowDistinguisherMethodFluent> extends BaseFluent{ + + private String type; + public V1FlowDistinguisherMethodFluent() { } public V1FlowDistinguisherMethodFluent(V1FlowDistinguisherMethod instance) { this.copyInstance(instance); } - private String type; - + protected void copyInstance(V1FlowDistinguisherMethod instance) { - instance = (instance != null ? instance : new V1FlowDistinguisherMethod()); + instance = instance != null ? instance : new V1FlowDistinguisherMethod(); if (instance != null) { - this.withType(instance.getType()); - } + this.withType(instance.getType()); + } } - public String getType() { - return this.type; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FlowDistinguisherMethodFluent that = (V1FlowDistinguisherMethodFluent) o; + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public A withType(String type) { - this.type = type; - return (A) this; + public String getType() { + return this.type; } 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()); + return Objects.hash(type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } - + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ 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 index 53497f2d58..482ff8506c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowSchemaBuilder extends V1FlowSchemaFluent implements VisitableBuilder{ + + V1FlowSchemaFluent fluent; + public V1FlowSchemaBuilder() { this(new V1FlowSchema()); } @@ -10,17 +14,16 @@ 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 V1FlowSchemaBuilder(V1FlowSchemaFluent fluent,V1FlowSchema instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowSchema build() { V1FlowSchema buildable = new V1FlowSchema(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1FlowSchema build() { 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 index 34aa8213a1..6bfdcfd897 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowSchemaConditionBuilder extends V1FlowSchemaConditionFluent implements VisitableBuilder{ + + V1FlowSchemaConditionFluent fluent; + public V1FlowSchemaConditionBuilder() { this(new V1FlowSchemaCondition()); } @@ -10,17 +14,16 @@ 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 V1FlowSchemaConditionBuilder(V1FlowSchemaConditionFluent fluent,V1FlowSchemaCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowSchemaCondition build() { V1FlowSchemaCondition buildable = new V1FlowSchemaCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -31,5 +34,4 @@ public V1FlowSchemaCondition build() { 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 index 30608937a6..f8efbff875 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java @@ -1,132 +1,170 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaConditionFluent> extends BaseFluent{ - public V1FlowSchemaConditionFluent() { - } - - public V1FlowSchemaConditionFluent(V1FlowSchemaCondition instance) { - this.copyInstance(instance); - } +public class V1FlowSchemaConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1FlowSchemaConditionFluent() { + } + public V1FlowSchemaConditionFluent(V1FlowSchemaCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1FlowSchemaCondition instance) { - instance = (instance != null ? instance : new V1FlowSchemaCondition()); + 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()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FlowSchemaConditionFluent that = (V1FlowSchemaConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getStatus() { + return this.status; } - public String getReason() { - return this.reason; + public String getType() { + return this.type; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - 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 A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withStatus(String status) { + this.status = status; + return (A) this; } - 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(); + public A withType(String type) { + this.type = type; + return (A) this; } - } \ 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 index 9ad7159195..3bc4f5a955 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaFluent> extends BaseFluent{ +public class V1FlowSchemaFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1FlowSchemaSpecBuilder spec; + private V1FlowSchemaStatusBuilder status; + public V1FlowSchemaFluent() { } public V1FlowSchemaFluent(V1FlowSchema instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1FlowSchemaSpecBuilder spec; - private V1FlowSchemaStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1FlowSchemaSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1FlowSchemaStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1FlowSchema instance) { - instance = (instance != null ? instance : new V1FlowSchema()); + 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()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1FlowSchemaSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1FlowSchemaSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1FlowSchemaStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1FlowSchemaStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FlowSchemaFluent that = (V1FlowSchemaFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1FlowSchemaSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1FlowSchemaSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1FlowSchemaStatus item) { + return new StatusNested(item); } public A withSpec(V1FlowSchemaSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1FlowSchemaSpec 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) { @@ -155,65 +248,14 @@ public A withStatus(V1FlowSchemaStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - 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()); - } + V1ObjectMetaBuilder builder; - 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()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1FlowSchemaSpecFluent> implements Nested{ + + V1FlowSchemaSpecBuilder builder; + SpecNested(V1FlowSchemaSpec item) { this.builder = new V1FlowSchemaSpecBuilder(this, item); } - V1FlowSchemaSpecBuilder builder; - + public N and() { return (N) V1FlowSchemaFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1FlowSchemaStatusFluent> implements Nested{ + + V1FlowSchemaStatusBuilder builder; + StatusNested(V1FlowSchemaStatus item) { this.builder = new V1FlowSchemaStatusBuilder(this, item); } - V1FlowSchemaStatusBuilder builder; - + public N and() { return (N) V1FlowSchemaFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ 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 index 0d75a42920..0227cbac48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowSchemaListBuilder extends V1FlowSchemaListFluent implements VisitableBuilder{ + + V1FlowSchemaListFluent fluent; + public V1FlowSchemaListBuilder() { this(new V1FlowSchemaList()); } @@ -10,17 +14,16 @@ 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 V1FlowSchemaListBuilder(V1FlowSchemaListFluent fluent,V1FlowSchemaList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowSchemaList build() { V1FlowSchemaList buildable = new V1FlowSchemaList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1FlowSchemaList build() { 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 index d7a3051a4f..87dd349fe8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaListFluent> extends BaseFluent{ +public class V1FlowSchemaListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + 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 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 String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1FlowSchema item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(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 addToItems(int index,V1FlowSchema item) { - if (this.items == null) {this.items = new ArrayList();} + 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(index, builder); items.add(index, builder);} - return (A)this; + 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").set(index, builder); items.set(index, builder);} - return (A)this; + public V1FlowSchema buildFirstItem() { + return this.items.get(0).build(); } - 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 V1FlowSchema buildItem(int index) { + return this.items.get(index).build(); } - 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 List buildItems() { + return this.items != null ? build(items) : null; } - 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 V1FlowSchema buildLastItem() { + return this.items.get(items.size() - 1).build(); } - 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 V1FlowSchema buildMatchingItem(Predicate predicate) { + for (V1FlowSchemaBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1FlowSchema buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1FlowSchema buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1FlowSchema buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FlowSchemaListFluent that = (V1FlowSchemaListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1FlowSchema buildMatchingItem(Predicate predicate) { - for (V1FlowSchemaBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1FlowSchema item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1FlowSchema... items) { + public A withItems(V1FlowSchema... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1FlowSchema... items) { 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1FlowSchemaFluent> implements Nested{ - 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()); - } + V1FlowSchemaBuilder builder; + int index; - 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()); + return (N) V1FlowSchemaListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1FlowSchemaListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ 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 index e877eb7a68..c54d2d55c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowSchemaSpecBuilder extends V1FlowSchemaSpecFluent implements VisitableBuilder{ + + V1FlowSchemaSpecFluent fluent; + public V1FlowSchemaSpecBuilder() { this(new V1FlowSchemaSpec()); } @@ -10,17 +14,16 @@ 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 V1FlowSchemaSpecBuilder(V1FlowSchemaSpecFluent fluent,V1FlowSchemaSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1FlowSchemaSpec build() { V1FlowSchemaSpec buildable = new V1FlowSchemaSpec(); buildable.setDistinguisherMethod(fluent.buildDistinguisherMethod()); @@ -30,5 +33,4 @@ public V1FlowSchemaSpec build() { 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 index 36d4dd95cf..86f6175fdc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java @@ -1,217 +1,376 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Integer; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaSpecFluent> extends BaseFluent{ +public class V1FlowSchemaSpecFluent> extends BaseFluent{ + + private V1FlowDistinguisherMethodBuilder distinguisherMethod; + private Integer matchingPrecedence; + private V1PriorityLevelConfigurationReferenceBuilder priorityLevelConfiguration; + private ArrayList rules; + public V1FlowSchemaSpecFluent() { } public V1FlowSchemaSpecFluent(V1FlowSchemaSpec instance) { this.copyInstance(instance); } - private V1FlowDistinguisherMethodBuilder distinguisherMethod; - private Integer matchingPrecedence; - private V1PriorityLevelConfigurationReferenceBuilder priorityLevelConfiguration; - private ArrayList rules; + + 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; + } - 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 RulesNested addNewRule() { + return new RulesNested(-1, null); } - public V1FlowDistinguisherMethod buildDistinguisherMethod() { - return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; + public RulesNested addNewRuleLike(V1PolicyRulesWithSubjects item) { + return new RulesNested(-1, item); } - 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); + public A addToRules(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 boolean hasDistinguisherMethod() { - return this.distinguisherMethod != null; + 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 DistinguisherMethodNested withNewDistinguisherMethod() { - return new DistinguisherMethodNested(null); + public V1FlowDistinguisherMethod buildDistinguisherMethod() { + return this.distinguisherMethod != null ? this.distinguisherMethod.build() : null; } - public DistinguisherMethodNested withNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { - return new DistinguisherMethodNested(item); + public V1PolicyRulesWithSubjects buildFirstRule() { + return this.rules.get(0).build(); } - public DistinguisherMethodNested editDistinguisherMethod() { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(null)); + public V1PolicyRulesWithSubjects buildLastRule() { + return this.rules.get(rules.size() - 1).build(); } - public DistinguisherMethodNested editOrNewDistinguisherMethod() { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(new V1FlowDistinguisherMethodBuilder().build())); + public V1PolicyRulesWithSubjects buildMatchingRule(Predicate predicate) { + for (V1PolicyRulesWithSubjectsBuilder item : rules) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { - return withNewDistinguisherMethodLike(java.util.Optional.ofNullable(buildDistinguisherMethod()).orElse(item)); + public V1PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { + return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; } - public Integer getMatchingPrecedence() { - return this.matchingPrecedence; + public V1PolicyRulesWithSubjects buildRule(int index) { + return this.rules.get(index).build(); } - public A withMatchingPrecedence(Integer matchingPrecedence) { - this.matchingPrecedence = matchingPrecedence; - return (A) this; + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public boolean hasMatchingPrecedence() { - return this.matchingPrecedence != null; + 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 V1PriorityLevelConfigurationReference buildPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null ? this.priorityLevelConfiguration.build() : null; + public DistinguisherMethodNested editDistinguisherMethod() { + return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(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); + public RulesNested editFirstRule() { + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); } - return (A) this; + return this.setNewRuleLike(0, this.buildRule(0)); } - public boolean hasPriorityLevelConfiguration() { - return this.priorityLevelConfiguration != null; + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { - return new PriorityLevelConfigurationNested(null); + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { - return new PriorityLevelConfigurationNested(item); + public DistinguisherMethodNested editOrNewDistinguisherMethod() { + return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(new V1FlowDistinguisherMethodBuilder().build())); } - public PriorityLevelConfigurationNested editPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(null)); + public DistinguisherMethodNested editOrNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { + return this.withNewDistinguisherMethodLike(Optional.ofNullable(this.buildDistinguisherMethod()).orElse(item)); } public PriorityLevelConfigurationNested editOrNewPriorityLevelConfiguration() { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(new V1PriorityLevelConfigurationReferenceBuilder().build())); + return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(new V1PriorityLevelConfigurationReferenceBuilder().build())); } public PriorityLevelConfigurationNested editOrNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { - return withNewPriorityLevelConfigurationLike(java.util.Optional.ofNullable(buildPriorityLevelConfiguration()).orElse(item)); + return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.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(index, builder); rules.add(index, builder);} - return (A)this; + public PriorityLevelConfigurationNested editPriorityLevelConfiguration() { + return this.withNewPriorityLevelConfigurationLike(Optional.ofNullable(this.buildPriorityLevelConfiguration()).orElse(null)); } - 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").set(index, builder); rules.set(index, builder);} - return (A)this; + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FlowSchemaSpecFluent that = (V1FlowSchemaSpecFluent) o; + if (!(Objects.equals(distinguisherMethod, that.distinguisherMethod))) { + return false; + } + if (!(Objects.equals(matchingPrecedence, that.matchingPrecedence))) { + return false; + } + if (!(Objects.equals(priorityLevelConfiguration, that.priorityLevelConfiguration))) { + return false; + } + if (!(Objects.equals(rules, that.rules))) { + return false; + } + return true; } - 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 Integer getMatchingPrecedence() { + return this.matchingPrecedence; + } + + public boolean hasDistinguisherMethod() { + return this.distinguisherMethod != null; + } + + public boolean hasMatchingPrecedence() { + return this.matchingPrecedence != null; } - 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 boolean hasMatchingRule(Predicate predicate) { + for (V1PolicyRulesWithSubjectsBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPriorityLevelConfiguration() { + return this.priorityLevelConfiguration != null; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + + public int hashCode() { + return Objects.hash(distinguisherMethod, matchingPrecedence, priorityLevelConfiguration, rules); } 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; + 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 removeFromRules(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 removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1PolicyRulesWithSubjectsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PolicyRulesWithSubjectsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildRules() { - return this.rules != null ? build(rules) : null; + public RulesNested setNewRuleLike(int index,V1PolicyRulesWithSubjects item) { + return new RulesNested(index, item); } - public V1PolicyRulesWithSubjects buildRule(int index) { - return this.rules.get(index).build(); + 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 V1PolicyRulesWithSubjects buildFirstRule() { - return this.rules.get(0).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(distinguisherMethod == null)) { + sb.append("distinguisherMethod:"); + sb.append(distinguisherMethod); + sb.append(","); + } + if (!(matchingPrecedence == null)) { + sb.append("matchingPrecedence:"); + sb.append(matchingPrecedence); + sb.append(","); + } + if (!(priorityLevelConfiguration == null)) { + sb.append("priorityLevelConfiguration:"); + sb.append(priorityLevelConfiguration); + sb.append(","); + } + if (!(rules == null) && !(rules.isEmpty())) { + sb.append("rules:"); + sb.append(rules); + } + sb.append("}"); + return sb.toString(); } - public V1PolicyRulesWithSubjects buildLastRule() { - return this.rules.get(rules.size() - 1).build(); + 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 V1PolicyRulesWithSubjects buildMatchingRule(Predicate predicate) { - for (V1PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withMatchingPrecedence(Integer matchingPrecedence) { + this.matchingPrecedence = matchingPrecedence; + return (A) this; } - public boolean hasMatchingRule(Predicate predicate) { - for (V1PolicyRulesWithSubjectsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + public DistinguisherMethodNested withNewDistinguisherMethod() { + return new DistinguisherMethodNested(null); + } + + public DistinguisherMethodNested withNewDistinguisherMethodLike(V1FlowDistinguisherMethod item) { + return new DistinguisherMethodNested(item); + } + + public PriorityLevelConfigurationNested withNewPriorityLevelConfiguration() { + return new PriorityLevelConfigurationNested(null); + } + + public PriorityLevelConfigurationNested withNewPriorityLevelConfigurationLike(V1PriorityLevelConfigurationReference item) { + return new PriorityLevelConfigurationNested(item); + } + + 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 A withRules(List rules) { @@ -229,7 +388,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects... rules) { + public A withRules(V1PolicyRulesWithSubjects... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -241,80 +400,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1PolicyRulesWithSubjects } return (A) this; } + public class DistinguisherMethodNested extends V1FlowDistinguisherMethodFluent> implements Nested{ - 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()); } @@ -323,14 +416,15 @@ public N endDistinguisherMethod() { return and(); } - } public class PriorityLevelConfigurationNested extends V1PriorityLevelConfigurationReferenceFluent> implements Nested{ + + V1PriorityLevelConfigurationReferenceBuilder builder; + PriorityLevelConfigurationNested(V1PriorityLevelConfigurationReference item) { this.builder = new V1PriorityLevelConfigurationReferenceBuilder(this, item); } - V1PriorityLevelConfigurationReferenceBuilder builder; - + public N and() { return (N) V1FlowSchemaSpecFluent.this.withPriorityLevelConfiguration(builder.build()); } @@ -339,25 +433,24 @@ public N endPriorityLevelConfiguration() { return and(); } - } public class RulesNested extends V1PolicyRulesWithSubjectsFluent> implements Nested{ + + V1PolicyRulesWithSubjectsBuilder builder; + int index; + 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()); + 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 index 2c38494609..d3c1e381b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1FlowSchemaStatusBuilder extends V1FlowSchemaStatusFluent implements VisitableBuilder{ + + V1FlowSchemaStatusFluent fluent; + public V1FlowSchemaStatusBuilder() { this(new V1FlowSchemaStatus()); } @@ -10,22 +14,20 @@ 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 V1FlowSchemaStatusBuilder(V1FlowSchemaStatusFluent fluent,V1FlowSchemaStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index 79cb0a6bbe..6f26d3a934 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java @@ -1,93 +1,89 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1FlowSchemaStatusFluent> extends BaseFluent{ +public class V1FlowSchemaStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + 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(index, 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").set(index, 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; + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - 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 ConditionsNested addNewConditionLike(V1FlowSchemaCondition item) { + return new ConditionsNested(-1, item); } - 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(); - } + public A addToConditions(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; + return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + 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 V1FlowSchemaCondition buildCondition(int index) { return this.conditions.get(index).build(); } + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + public V1FlowSchemaCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -105,6 +101,70 @@ public V1FlowSchemaCondition buildMatchingCondition(Predicate editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1FlowSchemaStatusFluent that = (V1FlowSchemaStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + public boolean hasMatchingCondition(Predicate predicate) { for (V1FlowSchemaConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -114,6 +174,80 @@ public boolean hasMatchingCondition(Predicate pred return false; } + public int hashCode() { + return Objects.hash(conditions); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1FlowSchemaCondition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + } + sb.append("}"); + return sb.toString(); + } + public A withConditions(List conditions) { if (this.conditions != null) { this._visitables.get("conditions").clear(); @@ -129,7 +263,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1FlowSchemaCondition... conditions) { + public A withConditions(V1FlowSchemaCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -141,85 +275,23 @@ public A withConditions(io.kubernetes.client.openapi.models.V1FlowSchemaConditio } return (A) this; } + public class ConditionsNested extends V1FlowSchemaConditionFluent> implements Nested{ - 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()); + 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..176352c4b1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ForNodeBuilder extends V1ForNodeFluent implements VisitableBuilder{ + + V1ForNodeFluent fluent; + + public V1ForNodeBuilder() { + this(new V1ForNode()); + } + + public V1ForNodeBuilder(V1ForNodeFluent fluent) { + this(fluent, new V1ForNode()); + } + + public V1ForNodeBuilder(V1ForNode instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ForNodeBuilder(V1ForNodeFluent fluent,V1ForNode instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..64afd832d9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java @@ -0,0 +1,77 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ForNodeFluent> extends BaseFluent{ + + private String name; + + public V1ForNodeFluent() { + } + + public V1ForNodeFluent(V1ForNode instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1ForNode instance) { + instance = instance != null ? instance : new V1ForNode(); + if (instance != null) { + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ForNodeFluent that = (V1ForNodeFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java index eea84b4b0e..55a3755eb2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ForZoneBuilder extends V1ForZoneFluent implements VisitableBuilder{ + + V1ForZoneFluent fluent; + public V1ForZoneBuilder() { this(new V1ForZone()); } @@ -10,22 +14,20 @@ public V1ForZoneBuilder(V1ForZoneFluent fluent) { this(fluent, new V1ForZone()); } - public V1ForZoneBuilder(V1ForZoneFluent fluent,V1ForZone instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ForZoneBuilder(V1ForZone instance) { this.fluent = this; this.copyInstance(instance); } - V1ForZoneFluent fluent; + public V1ForZoneBuilder(V1ForZoneFluent fluent,V1ForZone instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ForZone build() { V1ForZone buildable = new V1ForZone(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java index 2be8a328c8..4c5783430e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ForZoneFluent> extends BaseFluent{ +public class V1ForZoneFluent> extends BaseFluent{ + + private String name; + public V1ForZoneFluent() { } public V1ForZoneFluent(V1ForZone instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1ForZone instance) { - instance = (instance != null ? instance : new V1ForZone()); + instance = instance != null ? instance : new V1ForZone(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } - public String getName() { - return this.name; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ForZoneFluent that = (V1ForZoneFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getName() { + return this.name; } 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; - V1ForZoneFluent that = (V1ForZoneFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } 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); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java index a5224bbec6..19483a8ce9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GCEPersistentDiskVolumeSourceBuilder extends V1GCEPersistentDiskVolumeSourceFluent implements VisitableBuilder{ + + V1GCEPersistentDiskVolumeSourceFluent fluent; + public V1GCEPersistentDiskVolumeSourceBuilder() { this(new V1GCEPersistentDiskVolumeSource()); } @@ -10,17 +14,16 @@ public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFlu this(fluent, new V1GCEPersistentDiskVolumeSource()); } - public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFluent fluent,V1GCEPersistentDiskVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1GCEPersistentDiskVolumeSourceFluent fluent; + public V1GCEPersistentDiskVolumeSourceBuilder(V1GCEPersistentDiskVolumeSourceFluent fluent,V1GCEPersistentDiskVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GCEPersistentDiskVolumeSource build() { V1GCEPersistentDiskVolumeSource buildable = new V1GCEPersistentDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -30,5 +33,4 @@ public V1GCEPersistentDiskVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java index 810d854f29..c1a589f81f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java @@ -1,120 +1,152 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Integer; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1GCEPersistentDiskVolumeSourceFluent> extends BaseFluent{ +public class V1GCEPersistentDiskVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Integer partition; + private String pdName; + private Boolean readOnly; + public V1GCEPersistentDiskVolumeSourceFluent() { } public V1GCEPersistentDiskVolumeSourceFluent(V1GCEPersistentDiskVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Integer partition; - private String pdName; - private Boolean readOnly; - + protected void copyInstance(V1GCEPersistentDiskVolumeSource instance) { - instance = (instance != null ? instance : new V1GCEPersistentDiskVolumeSource()); + instance = instance != null ? instance : new V1GCEPersistentDiskVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withPartition(instance.getPartition()); - this.withPdName(instance.getPdName()); - this.withReadOnly(instance.getReadOnly()); - } - } - - public String getFsType() { - return this.fsType; + this.withFsType(instance.getFsType()); + this.withPartition(instance.getPartition()); + this.withPdName(instance.getPdName()); + this.withReadOnly(instance.getReadOnly()); + } } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1GCEPersistentDiskVolumeSourceFluent that = (V1GCEPersistentDiskVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(partition, that.partition))) { + return false; + } + if (!(Objects.equals(pdName, that.pdName))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + return true; } - public boolean hasFsType() { - return this.fsType != null; + public String getFsType() { + return this.fsType; } public Integer getPartition() { return this.partition; } - public A withPartition(Integer partition) { - this.partition = partition; - return (A) this; - } - - public boolean hasPartition() { - return this.partition != null; - } - public String getPdName() { return this.pdName; } - public A withPdName(String pdName) { - this.pdName = pdName; - return (A) this; + public Boolean getReadOnly() { + return this.readOnly; } - public boolean hasPdName() { - return this.pdName != null; + public boolean hasFsType() { + return this.fsType != null; } - public Boolean getReadOnly() { - return this.readOnly; + public boolean hasPartition() { + return this.partition != null; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean hasPdName() { + return this.pdName != null; } public boolean hasReadOnly() { return this.readOnly != 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; - V1GCEPersistentDiskVolumeSourceFluent that = (V1GCEPersistentDiskVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(partition, that.partition)) return false; - if (!java.util.Objects.equals(pdName, that.pdName)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(fsType, partition, pdName, readOnly, super.hashCode()); + return Objects.hash(fsType, partition, pdName, readOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (partition != null) { sb.append("partition:"); sb.append(partition + ","); } - if (pdName != null) { sb.append("pdName:"); sb.append(pdName + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(partition == null)) { + sb.append("partition:"); + sb.append(partition); + sb.append(","); + } + if (!(pdName == null)) { + sb.append("pdName:"); + sb.append(pdName); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } sb.append("}"); return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withPartition(Integer partition) { + this.partition = partition; + return (A) this; + } + + public A withPdName(String pdName) { + this.pdName = pdName; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java index 9449ec2fe8..06221b4d42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GRPCActionBuilder extends V1GRPCActionFluent implements VisitableBuilder{ + + V1GRPCActionFluent fluent; + public V1GRPCActionBuilder() { this(new V1GRPCAction()); } @@ -10,17 +14,16 @@ public V1GRPCActionBuilder(V1GRPCActionFluent fluent) { this(fluent, new V1GRPCAction()); } - public V1GRPCActionBuilder(V1GRPCActionFluent fluent,V1GRPCAction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GRPCActionBuilder(V1GRPCAction instance) { this.fluent = this; this.copyInstance(instance); } - V1GRPCActionFluent fluent; + public V1GRPCActionBuilder(V1GRPCActionFluent fluent,V1GRPCAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GRPCAction build() { V1GRPCAction buildable = new V1GRPCAction(); buildable.setPort(fluent.getPort()); @@ -28,5 +31,4 @@ public V1GRPCAction build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java index 54a0ce6066..6fd35209ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java @@ -1,81 +1,101 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1GRPCActionFluent> extends BaseFluent{ +public class V1GRPCActionFluent> extends BaseFluent{ + + private Integer port; + private String service; + public V1GRPCActionFluent() { } public V1GRPCActionFluent(V1GRPCAction instance) { this.copyInstance(instance); } - private Integer port; - private String service; - + protected void copyInstance(V1GRPCAction instance) { - instance = (instance != null ? instance : new V1GRPCAction()); + instance = instance != null ? instance : new V1GRPCAction(); if (instance != null) { - this.withPort(instance.getPort()); - this.withService(instance.getService()); - } + this.withPort(instance.getPort()); + this.withService(instance.getService()); + } } - public Integer getPort() { - return this.port; - } - - public A withPort(Integer port) { - this.port = port; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1GRPCActionFluent that = (V1GRPCActionFluent) o; + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } + return true; } - public boolean hasPort() { - return this.port != null; + public Integer getPort() { + return this.port; } public String getService() { return this.service; } - public A withService(String service) { - this.service = service; - return (A) this; + public boolean hasPort() { + return this.port != null; } public boolean hasService() { return this.service != 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; - V1GRPCActionFluent that = (V1GRPCActionFluent) o; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(port, service, super.hashCode()); + return Objects.hash(port, service); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (service != null) { sb.append("service:"); sb.append(service); } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + } sb.append("}"); return sb.toString(); } - + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withService(String service) { + this.service = service; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java index 48626bd7bb..e0d477de63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GitRepoVolumeSourceBuilder extends V1GitRepoVolumeSourceFluent implements VisitableBuilder{ + + V1GitRepoVolumeSourceFluent fluent; + public V1GitRepoVolumeSourceBuilder() { this(new V1GitRepoVolumeSource()); } @@ -10,17 +14,16 @@ public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent) { this(fluent, new V1GitRepoVolumeSource()); } - public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent,V1GitRepoVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1GitRepoVolumeSourceFluent fluent; + public V1GitRepoVolumeSourceBuilder(V1GitRepoVolumeSourceFluent fluent,V1GitRepoVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GitRepoVolumeSource build() { V1GitRepoVolumeSource buildable = new V1GitRepoVolumeSource(); buildable.setDirectory(fluent.getDirectory()); @@ -29,5 +32,4 @@ public V1GitRepoVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java index 08a5cf3042..e5750aaddd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java @@ -1,97 +1,123 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1GitRepoVolumeSourceFluent> extends BaseFluent{ +public class V1GitRepoVolumeSourceFluent> extends BaseFluent{ + + private String directory; + private String repository; + private String revision; + public V1GitRepoVolumeSourceFluent() { } public V1GitRepoVolumeSourceFluent(V1GitRepoVolumeSource instance) { this.copyInstance(instance); } - private String directory; - private String repository; - private String revision; - + protected void copyInstance(V1GitRepoVolumeSource instance) { - instance = (instance != null ? instance : new V1GitRepoVolumeSource()); + instance = instance != null ? instance : new V1GitRepoVolumeSource(); if (instance != null) { - this.withDirectory(instance.getDirectory()); - this.withRepository(instance.getRepository()); - this.withRevision(instance.getRevision()); - } - } - - public String getDirectory() { - return this.directory; + this.withDirectory(instance.getDirectory()); + this.withRepository(instance.getRepository()); + this.withRevision(instance.getRevision()); + } } - public A withDirectory(String directory) { - this.directory = directory; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1GitRepoVolumeSourceFluent that = (V1GitRepoVolumeSourceFluent) o; + if (!(Objects.equals(directory, that.directory))) { + return false; + } + if (!(Objects.equals(repository, that.repository))) { + return false; + } + if (!(Objects.equals(revision, that.revision))) { + return false; + } + return true; } - public boolean hasDirectory() { - return this.directory != null; + public String getDirectory() { + return this.directory; } public String getRepository() { return this.repository; } - public A withRepository(String repository) { - this.repository = repository; - return (A) this; - } - - public boolean hasRepository() { - return this.repository != null; - } - public String getRevision() { return this.revision; } - public A withRevision(String revision) { - this.revision = revision; - return (A) this; + public boolean hasDirectory() { + return this.directory != null; } - public boolean hasRevision() { - return this.revision != null; + public boolean hasRepository() { + return this.repository != 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; - V1GitRepoVolumeSourceFluent that = (V1GitRepoVolumeSourceFluent) o; - if (!java.util.Objects.equals(directory, that.directory)) return false; - if (!java.util.Objects.equals(repository, that.repository)) return false; - if (!java.util.Objects.equals(revision, that.revision)) return false; - return true; + public boolean hasRevision() { + return this.revision != null; } public int hashCode() { - return java.util.Objects.hash(directory, repository, revision, super.hashCode()); + return Objects.hash(directory, repository, revision); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (directory != null) { sb.append("directory:"); sb.append(directory + ","); } - if (repository != null) { sb.append("repository:"); sb.append(repository + ","); } - if (revision != null) { sb.append("revision:"); sb.append(revision); } + if (!(directory == null)) { + sb.append("directory:"); + sb.append(directory); + sb.append(","); + } + if (!(repository == null)) { + sb.append("repository:"); + sb.append(repository); + sb.append(","); + } + if (!(revision == null)) { + sb.append("revision:"); + sb.append(revision); + } sb.append("}"); return sb.toString(); } - + public A withDirectory(String directory) { + this.directory = directory; + return (A) this; + } + + public A withRepository(String repository) { + this.repository = repository; + return (A) this; + } + + public A withRevision(String revision) { + this.revision = revision; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java index ae60a13223..6cc91aeca7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GlusterfsPersistentVolumeSourceBuilder extends V1GlusterfsPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1GlusterfsPersistentVolumeSourceFluent fluent; + public V1GlusterfsPersistentVolumeSourceBuilder() { this(new V1GlusterfsPersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourc this(fluent, new V1GlusterfsPersistentVolumeSource()); } - public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourceFluent fluent,V1GlusterfsPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1GlusterfsPersistentVolumeSourceFluent fluent; + public V1GlusterfsPersistentVolumeSourceBuilder(V1GlusterfsPersistentVolumeSourceFluent fluent,V1GlusterfsPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GlusterfsPersistentVolumeSource build() { V1GlusterfsPersistentVolumeSource buildable = new V1GlusterfsPersistentVolumeSource(); buildable.setEndpoints(fluent.getEndpoints()); @@ -30,5 +33,4 @@ public V1GlusterfsPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java index d97318b0e7..28d0082918 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java @@ -1,119 +1,151 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1GlusterfsPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1GlusterfsPersistentVolumeSourceFluent> extends BaseFluent{ + + private String endpoints; + private String endpointsNamespace; + private String path; + private Boolean readOnly; + public V1GlusterfsPersistentVolumeSourceFluent() { } public V1GlusterfsPersistentVolumeSourceFluent(V1GlusterfsPersistentVolumeSource instance) { this.copyInstance(instance); } - private String endpoints; - private String endpointsNamespace; - private String path; - private Boolean readOnly; - + protected void copyInstance(V1GlusterfsPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1GlusterfsPersistentVolumeSource()); + instance = instance != null ? instance : new V1GlusterfsPersistentVolumeSource(); if (instance != null) { - this.withEndpoints(instance.getEndpoints()); - this.withEndpointsNamespace(instance.getEndpointsNamespace()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - } + this.withEndpoints(instance.getEndpoints()); + this.withEndpointsNamespace(instance.getEndpointsNamespace()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + } } - public String getEndpoints() { - return this.endpoints; - } - - public A withEndpoints(String endpoints) { - this.endpoints = endpoints; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1GlusterfsPersistentVolumeSourceFluent that = (V1GlusterfsPersistentVolumeSourceFluent) o; + if (!(Objects.equals(endpoints, that.endpoints))) { + return false; + } + if (!(Objects.equals(endpointsNamespace, that.endpointsNamespace))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + return true; } - public boolean hasEndpoints() { - return this.endpoints != null; + public String getEndpoints() { + return this.endpoints; } public String getEndpointsNamespace() { return this.endpointsNamespace; } - public A withEndpointsNamespace(String endpointsNamespace) { - this.endpointsNamespace = endpointsNamespace; - return (A) this; - } - - public boolean hasEndpointsNamespace() { - return this.endpointsNamespace != null; - } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + public Boolean getReadOnly() { + return this.readOnly; } - public boolean hasPath() { - return this.path != null; + public boolean hasEndpoints() { + return this.endpoints != null; } - public Boolean getReadOnly() { - return this.readOnly; + public boolean hasEndpointsNamespace() { + return this.endpointsNamespace != null; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean hasPath() { + return this.path != null; } public boolean hasReadOnly() { return this.readOnly != 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; - V1GlusterfsPersistentVolumeSourceFluent that = (V1GlusterfsPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(endpoints, that.endpoints)) return false; - if (!java.util.Objects.equals(endpointsNamespace, that.endpointsNamespace)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(endpoints, endpointsNamespace, path, readOnly, super.hashCode()); + return Objects.hash(endpoints, endpointsNamespace, path, readOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (endpoints != null) { sb.append("endpoints:"); sb.append(endpoints + ","); } - if (endpointsNamespace != null) { sb.append("endpointsNamespace:"); sb.append(endpointsNamespace + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } + if (!(endpoints == null)) { + sb.append("endpoints:"); + sb.append(endpoints); + sb.append(","); + } + if (!(endpointsNamespace == null)) { + sb.append("endpointsNamespace:"); + sb.append(endpointsNamespace); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } sb.append("}"); return sb.toString(); } + public A withEndpoints(String endpoints) { + this.endpoints = endpoints; + return (A) this; + } + + public A withEndpointsNamespace(String endpointsNamespace) { + this.endpointsNamespace = endpointsNamespace; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java index 178425ec3a..b68676d38e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GlusterfsVolumeSourceBuilder extends V1GlusterfsVolumeSourceFluent implements VisitableBuilder{ + + V1GlusterfsVolumeSourceFluent fluent; + public V1GlusterfsVolumeSourceBuilder() { this(new V1GlusterfsVolumeSource()); } @@ -10,17 +14,16 @@ public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent) { this(fluent, new V1GlusterfsVolumeSource()); } - public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent,V1GlusterfsVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1GlusterfsVolumeSourceFluent fluent; + public V1GlusterfsVolumeSourceBuilder(V1GlusterfsVolumeSourceFluent fluent,V1GlusterfsVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GlusterfsVolumeSource build() { V1GlusterfsVolumeSource buildable = new V1GlusterfsVolumeSource(); buildable.setEndpoints(fluent.getEndpoints()); @@ -29,5 +32,4 @@ public V1GlusterfsVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java index df2c98b0d0..0573a62fcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java @@ -1,102 +1,128 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1GlusterfsVolumeSourceFluent> extends BaseFluent{ +public class V1GlusterfsVolumeSourceFluent> extends BaseFluent{ + + private String endpoints; + private String path; + private Boolean readOnly; + public V1GlusterfsVolumeSourceFluent() { } public V1GlusterfsVolumeSourceFluent(V1GlusterfsVolumeSource instance) { this.copyInstance(instance); } - private String endpoints; - private String path; - private Boolean readOnly; - + protected void copyInstance(V1GlusterfsVolumeSource instance) { - instance = (instance != null ? instance : new V1GlusterfsVolumeSource()); + instance = instance != null ? instance : new V1GlusterfsVolumeSource(); if (instance != null) { - this.withEndpoints(instance.getEndpoints()); - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - } - } - - public String getEndpoints() { - return this.endpoints; + this.withEndpoints(instance.getEndpoints()); + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + } } - public A withEndpoints(String endpoints) { - this.endpoints = endpoints; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1GlusterfsVolumeSourceFluent that = (V1GlusterfsVolumeSourceFluent) o; + if (!(Objects.equals(endpoints, that.endpoints))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + return true; } - public boolean hasEndpoints() { - return this.endpoints != null; + public String getEndpoints() { + return this.endpoints; } 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 Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean hasEndpoints() { + return this.endpoints != null; } - public boolean hasReadOnly() { - return this.readOnly != null; + public boolean hasPath() { + return this.path != 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; - V1GlusterfsVolumeSourceFluent that = (V1GlusterfsVolumeSourceFluent) o; - if (!java.util.Objects.equals(endpoints, that.endpoints)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - return true; + public boolean hasReadOnly() { + return this.readOnly != null; } public int hashCode() { - return java.util.Objects.hash(endpoints, path, readOnly, super.hashCode()); + return Objects.hash(endpoints, path, readOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (endpoints != null) { sb.append("endpoints:"); sb.append(endpoints + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } + if (!(endpoints == null)) { + sb.append("endpoints:"); + sb.append(endpoints); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } sb.append("}"); return sb.toString(); } + public A withEndpoints(String endpoints) { + this.endpoints = endpoints; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java new file mode 100644 index 0000000000..492418b8eb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1GroupResourceBuilder extends V1GroupResourceFluent implements VisitableBuilder{ + + V1GroupResourceFluent fluent; + + public V1GroupResourceBuilder() { + this(new V1GroupResource()); + } + + public V1GroupResourceBuilder(V1GroupResourceFluent fluent) { + this(fluent, new V1GroupResource()); + } + + public V1GroupResourceBuilder(V1GroupResource instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1GroupResourceBuilder(V1GroupResourceFluent fluent,V1GroupResource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1GroupResource build() { + V1GroupResource buildable = new V1GroupResource(); + buildable.setGroup(fluent.getGroup()); + buildable.setResource(fluent.getResource()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java new file mode 100644 index 0000000000..4adc0298e1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java @@ -0,0 +1,100 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1GroupResourceFluent> extends BaseFluent{ + + private String group; + private String resource; + + public V1GroupResourceFluent() { + } + + public V1GroupResourceFluent(V1GroupResource instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1GroupResource instance) { + instance = instance != null ? instance : new V1GroupResource(); + if (instance != null) { + this.withGroup(instance.getGroup()); + this.withResource(instance.getResource()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1GroupResourceFluent that = (V1GroupResourceFluent) o; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + return true; + } + + public String getGroup() { + return this.group; + } + + public String getResource() { + return this.resource; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public int hashCode() { + return Objects.hash(group, resource); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } + sb.append("}"); + return sb.toString(); + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + +} \ 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 index 72503449c3..9464d03935 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GroupSubjectBuilder extends V1GroupSubjectFluent implements VisitableBuilder{ + + V1GroupSubjectFluent fluent; + public V1GroupSubjectBuilder() { this(new V1GroupSubject()); } @@ -10,22 +14,20 @@ 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 V1GroupSubjectBuilder(V1GroupSubjectFluent fluent,V1GroupSubject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index 10d63f70bd..c8a49fb1c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1GroupSubjectFluent> extends BaseFluent{ +public class V1GroupSubjectFluent> extends BaseFluent{ + + private String name; + public V1GroupSubjectFluent() { } public V1GroupSubjectFluent(V1GroupSubject instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1GroupSubject instance) { - instance = (instance != null ? instance : new V1GroupSubject()); + instance = instance != null ? instance : new V1GroupSubject(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } - public String getName() { - return this.name; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1GroupSubjectFluent that = (V1GroupSubjectFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getName() { + return this.name; } 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()); + return Objects.hash(name); } 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); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java index 756fb64e4e..cd247ff650 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1GroupVersionForDiscoveryBuilder extends V1GroupVersionForDiscoveryFluent implements VisitableBuilder{ + + V1GroupVersionForDiscoveryFluent fluent; + public V1GroupVersionForDiscoveryBuilder() { this(new V1GroupVersionForDiscovery()); } @@ -10,17 +14,16 @@ public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent flu this(fluent, new V1GroupVersionForDiscovery()); } - public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent fluent,V1GroupVersionForDiscovery instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscovery instance) { this.fluent = this; this.copyInstance(instance); } - V1GroupVersionForDiscoveryFluent fluent; + public V1GroupVersionForDiscoveryBuilder(V1GroupVersionForDiscoveryFluent fluent,V1GroupVersionForDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1GroupVersionForDiscovery build() { V1GroupVersionForDiscovery buildable = new V1GroupVersionForDiscovery(); buildable.setGroupVersion(fluent.getGroupVersion()); @@ -28,5 +31,4 @@ public V1GroupVersionForDiscovery build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java index 92764efea7..fd04769763 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1GroupVersionForDiscoveryFluent> extends BaseFluent{ +public class V1GroupVersionForDiscoveryFluent> extends BaseFluent{ + + private String groupVersion; + private String version; + public V1GroupVersionForDiscoveryFluent() { } public V1GroupVersionForDiscoveryFluent(V1GroupVersionForDiscovery instance) { this.copyInstance(instance); } - private String groupVersion; - private String version; - + protected void copyInstance(V1GroupVersionForDiscovery instance) { - instance = (instance != null ? instance : new V1GroupVersionForDiscovery()); + instance = instance != null ? instance : new V1GroupVersionForDiscovery(); if (instance != null) { - this.withGroupVersion(instance.getGroupVersion()); - this.withVersion(instance.getVersion()); - } + this.withGroupVersion(instance.getGroupVersion()); + this.withVersion(instance.getVersion()); + } } - public String getGroupVersion() { - return this.groupVersion; - } - - public A withGroupVersion(String groupVersion) { - this.groupVersion = groupVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1GroupVersionForDiscoveryFluent that = (V1GroupVersionForDiscoveryFluent) o; + if (!(Objects.equals(groupVersion, that.groupVersion))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; } - public boolean hasGroupVersion() { - return this.groupVersion != null; + public String getGroupVersion() { + return this.groupVersion; } public String getVersion() { return this.version; } - public A withVersion(String version) { - this.version = version; - return (A) this; + public boolean hasGroupVersion() { + return this.groupVersion != null; } 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; - V1GroupVersionForDiscoveryFluent that = (V1GroupVersionForDiscoveryFluent) o; - if (!java.util.Objects.equals(groupVersion, that.groupVersion)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(groupVersion, version, super.hashCode()); + return Objects.hash(groupVersion, version); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (groupVersion != null) { sb.append("groupVersion:"); sb.append(groupVersion + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } + if (!(groupVersion == null)) { + sb.append("groupVersion:"); + sb.append(groupVersion); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } sb.append("}"); return sb.toString(); } - + public A withGroupVersion(String groupVersion) { + this.groupVersion = groupVersion; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java index 1482810317..e1836f2864 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HTTPGetActionBuilder extends V1HTTPGetActionFluent implements VisitableBuilder{ + + V1HTTPGetActionFluent fluent; + public V1HTTPGetActionBuilder() { this(new V1HTTPGetAction()); } @@ -10,17 +14,16 @@ public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent) { this(fluent, new V1HTTPGetAction()); } - public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent,V1HTTPGetAction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HTTPGetActionBuilder(V1HTTPGetAction instance) { this.fluent = this; this.copyInstance(instance); } - V1HTTPGetActionFluent fluent; + public V1HTTPGetActionBuilder(V1HTTPGetActionFluent fluent,V1HTTPGetAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HTTPGetAction build() { V1HTTPGetAction buildable = new V1HTTPGetAction(); buildable.setHost(fluent.getHost()); @@ -31,5 +34,4 @@ public V1HTTPGetAction build() { return buildable; } - } \ 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..84c08835ff 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 @@ -1,117 +1,96 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HTTPGetActionFluent> extends BaseFluent{ - public V1HTTPGetActionFluent() { - } - - public V1HTTPGetActionFluent(V1HTTPGetAction instance) { - this.copyInstance(instance); - } +public class V1HTTPGetActionFluent> extends BaseFluent{ + private String host; private ArrayList httpHeaders; private String path; private IntOrString port; private String scheme; - - protected void copyInstance(V1HTTPGetAction instance) { - instance = (instance != null ? instance : new V1HTTPGetAction()); - if (instance != null) { - this.withHost(instance.getHost()); - this.withHttpHeaders(instance.getHttpHeaders()); - this.withPath(instance.getPath()); - this.withPort(instance.getPort()); - this.withScheme(instance.getScheme()); - } + + public V1HTTPGetActionFluent() { } - public String getHost() { - return this.host; + public V1HTTPGetActionFluent(V1HTTPGetAction instance) { + this.copyInstance(instance); } - - public A withHost(String host) { - this.host = host; + + public A addAllToHttpHeaders(Collection items) { + if (this.httpHeaders == null) { + this.httpHeaders = new ArrayList(); + } + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").add(builder); + this.httpHeaders.add(builder); + } return (A) this; } - public boolean hasHost() { - return this.host != null; - } - - 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);} - 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);} - return (A)this; - } - - public A addToHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items) { - if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} - for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").add(builder);this.httpHeaders.add(builder);} return (A)this; - } - - public A addAllToHttpHeaders(Collection items) { - if (this.httpHeaders == null) {this.httpHeaders = new ArrayList();} - for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").add(builder);this.httpHeaders.add(builder);} return (A)this; + public HttpHeadersNested addNewHttpHeader() { + return new HttpHeadersNested(-1, null); } - public A removeFromHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... items) { - if (this.httpHeaders == null) return (A)this; - for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").remove(builder); this.httpHeaders.remove(builder);} return (A)this; + public HttpHeadersNested addNewHttpHeaderLike(V1HTTPHeader item) { + return new HttpHeadersNested(-1, item); } - public A removeAllFromHttpHeaders(Collection items) { - if (this.httpHeaders == null) return (A)this; - for (V1HTTPHeader item : items) {V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item);_visitables.get("httpHeaders").remove(builder); this.httpHeaders.remove(builder);} return (A)this; + public A addToHttpHeaders(V1HTTPHeader... items) { + if (this.httpHeaders == null) { + this.httpHeaders = new ArrayList(); + } + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").add(builder); + this.httpHeaders.add(builder); + } + return (A) this; } - public A removeMatchingFromHttpHeaders(Predicate predicate) { - if (httpHeaders == null) return (A) this; - final Iterator each = httpHeaders.iterator(); - final List visitables = _visitables.get("httpHeaders"); - while (each.hasNext()) { - V1HTTPHeaderBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToHttpHeaders(int index,V1HTTPHeader item) { + if (this.httpHeaders == null) { + this.httpHeaders = new ArrayList(); } - return (A)this; + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + 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 List buildHttpHeaders() { - return this.httpHeaders != null ? build(httpHeaders) : null; + public V1HTTPHeader buildFirstHttpHeader() { + return this.httpHeaders.get(0).build(); } public V1HTTPHeader buildHttpHeader(int index) { return this.httpHeaders.get(index).build(); } - public V1HTTPHeader buildFirstHttpHeader() { - return this.httpHeaders.get(0).build(); + public List buildHttpHeaders() { + return this.httpHeaders != null ? build(httpHeaders) : null; } public V1HTTPHeader buildLastHttpHeader() { @@ -127,176 +106,293 @@ public V1HTTPHeader buildMatchingHttpHeader(Predicate predi return null; } - public boolean hasMatchingHttpHeader(Predicate predicate) { - for (V1HTTPHeaderBuilder item : httpHeaders) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1HTTPGetAction instance) { + instance = instance != null ? instance : new V1HTTPGetAction(); + if (instance != null) { + this.withHost(instance.getHost()); + this.withHttpHeaders(instance.getHttpHeaders()); + this.withPath(instance.getPath()); + this.withPort(instance.getPort()); + this.withScheme(instance.getScheme()); + } } - public A withHttpHeaders(List httpHeaders) { - if (this.httpHeaders != null) { - this._visitables.get("httpHeaders").clear(); - } - if (httpHeaders != null) { - this.httpHeaders = new ArrayList(); - for (V1HTTPHeader item : httpHeaders) { - this.addToHttpHeaders(item); - } - } else { - this.httpHeaders = null; + public HttpHeadersNested editFirstHttpHeader() { + if (httpHeaders.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "httpHeaders")); } - return (A) this; + return this.setNewHttpHeaderLike(0, this.buildHttpHeader(0)); } - public A withHttpHeaders(io.kubernetes.client.openapi.models.V1HTTPHeader... httpHeaders) { - if (this.httpHeaders != null) { - this.httpHeaders.clear(); - _visitables.remove("httpHeaders"); - } - if (httpHeaders != null) { - for (V1HTTPHeader item : httpHeaders) { - this.addToHttpHeaders(item); - } + public HttpHeadersNested editHttpHeader(int index) { + if (httpHeaders.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "httpHeaders")); } - return (A) this; + return this.setNewHttpHeaderLike(index, this.buildHttpHeader(index)); } - public boolean hasHttpHeaders() { - return this.httpHeaders != null && !this.httpHeaders.isEmpty(); + public HttpHeadersNested editLastHttpHeader() { + int index = httpHeaders.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "httpHeaders")); + } + return this.setNewHttpHeaderLike(index, this.buildHttpHeader(index)); } - public HttpHeadersNested addNewHttpHeader() { - return new HttpHeadersNested(-1, null); + public HttpHeadersNested editMatchingHttpHeader(Predicate predicate) { + int index = -1; + for (int i = 0;i < httpHeaders.size();i++) { + if (predicate.test(httpHeaders.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "httpHeaders")); + } + return this.setNewHttpHeaderLike(index, this.buildHttpHeader(index)); } - public HttpHeadersNested addNewHttpHeaderLike(V1HTTPHeader item) { - return new HttpHeadersNested(-1, item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HTTPGetActionFluent that = (V1HTTPGetActionFluent) o; + if (!(Objects.equals(host, that.host))) { + return false; + } + if (!(Objects.equals(httpHeaders, that.httpHeaders))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(scheme, that.scheme))) { + return false; + } + return true; } - public HttpHeadersNested setNewHttpHeaderLike(int index,V1HTTPHeader item) { - return new HttpHeadersNested(index, item); + public String getHost() { + return this.host; } - public HttpHeadersNested editHttpHeader(int index) { - if (httpHeaders.size() <= index) throw new RuntimeException("Can't edit httpHeaders. Index exceeds size."); - return setNewHttpHeaderLike(index, buildHttpHeader(index)); + public String getPath() { + return this.path; } - public HttpHeadersNested editFirstHttpHeader() { - if (httpHeaders.size() == 0) throw new RuntimeException("Can't edit first httpHeaders. The list is empty."); - return setNewHttpHeaderLike(0, buildHttpHeader(0)); + public IntOrString getPort() { + return this.port; } - public HttpHeadersNested editLastHttpHeader() { - int index = httpHeaders.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last httpHeaders. The list is empty."); - return setNewHttpHeaderLike(index, buildHttpHeader(index)); + public String getScheme() { + return this.scheme; } - public HttpHeadersNested editMatchingHttpHeader(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1HTTPHeaderBuilder item : httpHeaders) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasPath() { return this.path != null; } - public IntOrString getPort() { - return this.port; - } - - public A withPort(IntOrString port) { - this.port = port; - return (A) this; - } - public boolean hasPort() { return this.port != null; } - public A withNewPort(int value) { - return (A)withPort(new IntOrString(value)); + public boolean hasScheme() { + return this.scheme != null; } - public A withNewPort(String value) { - return (A)withPort(new IntOrString(value)); + public int hashCode() { + return Objects.hash(host, httpHeaders, path, port, scheme); } - public String getScheme() { - return this.scheme; + public A removeAllFromHttpHeaders(Collection items) { + if (this.httpHeaders == null) { + return (A) this; + } + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").remove(builder); + this.httpHeaders.remove(builder); + } + return (A) this; } - public A withScheme(String scheme) { - this.scheme = scheme; + public A removeFromHttpHeaders(V1HTTPHeader... items) { + if (this.httpHeaders == null) { + return (A) this; + } + for (V1HTTPHeader item : items) { + V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); + _visitables.get("httpHeaders").remove(builder); + this.httpHeaders.remove(builder); + } return (A) this; } - public boolean hasScheme() { - return this.scheme != null; + public A removeMatchingFromHttpHeaders(Predicate predicate) { + if (httpHeaders == null) { + return (A) this; + } + Iterator each = httpHeaders.iterator(); + List visitables = _visitables.get("httpHeaders"); + while (each.hasNext()) { + V1HTTPHeaderBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1HTTPGetActionFluent that = (V1HTTPGetActionFluent) o; - if (!java.util.Objects.equals(host, that.host)) return false; - if (!java.util.Objects.equals(httpHeaders, that.httpHeaders)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(scheme, that.scheme)) return false; - return true; + public HttpHeadersNested setNewHttpHeaderLike(int index,V1HTTPHeader item) { + return new HttpHeadersNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(host, httpHeaders, path, port, scheme, super.hashCode()); + 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").add(builder); + httpHeaders.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (host != null) { sb.append("host:"); sb.append(host + ","); } - if (httpHeaders != null && !httpHeaders.isEmpty()) { sb.append("httpHeaders:"); sb.append(httpHeaders + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (scheme != null) { sb.append("scheme:"); sb.append(scheme); } + if (!(host == null)) { + sb.append("host:"); + sb.append(host); + sb.append(","); + } + if (!(httpHeaders == null) && !(httpHeaders.isEmpty())) { + sb.append("httpHeaders:"); + sb.append(httpHeaders); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(scheme == null)) { + sb.append("scheme:"); + sb.append(scheme); + } sb.append("}"); return sb.toString(); } + + public A withHost(String host) { + this.host = host; + return (A) this; + } + + public A withHttpHeaders(List httpHeaders) { + if (this.httpHeaders != null) { + this._visitables.get("httpHeaders").clear(); + } + if (httpHeaders != null) { + this.httpHeaders = new ArrayList(); + for (V1HTTPHeader item : httpHeaders) { + this.addToHttpHeaders(item); + } + } else { + this.httpHeaders = null; + } + return (A) this; + } + + public A withHttpHeaders(V1HTTPHeader... httpHeaders) { + if (this.httpHeaders != null) { + this.httpHeaders.clear(); + _visitables.remove("httpHeaders"); + } + if (httpHeaders != null) { + for (V1HTTPHeader item : httpHeaders) { + this.addToHttpHeaders(item); + } + } + return (A) this; + } + + public A withNewPort(int value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withNewPort(String value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withPort(IntOrString port) { + this.port = port; + return (A) this; + } + + public A withScheme(String scheme) { + this.scheme = scheme; + return (A) this; + } public class HttpHeadersNested extends V1HTTPHeaderFluent> implements Nested{ + + V1HTTPHeaderBuilder builder; + int index; + HttpHeadersNested(int index,V1HTTPHeader item) { this.index = index; this.builder = new V1HTTPHeaderBuilder(this, item); } - V1HTTPHeaderBuilder builder; - int index; - + public N and() { - return (N) V1HTTPGetActionFluent.this.setToHttpHeaders(index,builder.build()); + return (N) V1HTTPGetActionFluent.this.setToHttpHeaders(index, builder.build()); } public N endHttpHeader() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java index cb15c666f2..2adc5fce12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HTTPHeaderBuilder extends V1HTTPHeaderFluent implements VisitableBuilder{ + + V1HTTPHeaderFluent fluent; + public V1HTTPHeaderBuilder() { this(new V1HTTPHeader()); } @@ -10,17 +14,16 @@ public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent) { this(fluent, new V1HTTPHeader()); } - public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent,V1HTTPHeader instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HTTPHeaderBuilder(V1HTTPHeader instance) { this.fluent = this; this.copyInstance(instance); } - V1HTTPHeaderFluent fluent; + public V1HTTPHeaderBuilder(V1HTTPHeaderFluent fluent,V1HTTPHeader instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HTTPHeader build() { V1HTTPHeader buildable = new V1HTTPHeader(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1HTTPHeader build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java index ece4369a57..19d44e6076 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HTTPHeaderFluent> extends BaseFluent{ +public class V1HTTPHeaderFluent> extends BaseFluent{ + + private String name; + private String value; + public V1HTTPHeaderFluent() { } public V1HTTPHeaderFluent(V1HTTPHeader instance) { this.copyInstance(instance); } - private String name; - private String value; - + protected void copyInstance(V1HTTPHeader instance) { - instance = (instance != null ? instance : new V1HTTPHeader()); + instance = instance != null ? instance : new V1HTTPHeader(); if (instance != null) { - this.withName(instance.getName()); - this.withValue(instance.getValue()); - } + this.withName(instance.getName()); + this.withValue(instance.getValue()); + } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HTTPHeaderFluent that = (V1HTTPHeaderFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + public boolean hasName() { + return this.name != null; } 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; - V1HTTPHeaderFluent that = (V1HTTPHeaderFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, value, super.hashCode()); + return Objects.hash(name, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java index e95e44bc1a..7aa1812642 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HTTPIngressPathBuilder extends V1HTTPIngressPathFluent implements VisitableBuilder{ + + V1HTTPIngressPathFluent fluent; + public V1HTTPIngressPathBuilder() { this(new V1HTTPIngressPath()); } @@ -10,17 +14,16 @@ public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent) { this(fluent, new V1HTTPIngressPath()); } - public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent,V1HTTPIngressPath instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HTTPIngressPathBuilder(V1HTTPIngressPath instance) { this.fluent = this; this.copyInstance(instance); } - V1HTTPIngressPathFluent fluent; + public V1HTTPIngressPathBuilder(V1HTTPIngressPathFluent fluent,V1HTTPIngressPath instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HTTPIngressPath build() { V1HTTPIngressPath buildable = new V1HTTPIngressPath(); buildable.setBackend(fluent.buildBackend()); @@ -29,5 +32,4 @@ public V1HTTPIngressPath build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java index d68ef251b1..942f09341a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java @@ -1,131 +1,161 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HTTPIngressPathFluent> extends BaseFluent{ +public class V1HTTPIngressPathFluent> extends BaseFluent{ + + private V1IngressBackendBuilder backend; + private String path; + private String pathType; + public V1HTTPIngressPathFluent() { } public V1HTTPIngressPathFluent(V1HTTPIngressPath instance) { this.copyInstance(instance); } - private V1IngressBackendBuilder backend; - private String path; - private String pathType; - - protected void copyInstance(V1HTTPIngressPath instance) { - instance = (instance != null ? instance : new V1HTTPIngressPath()); - if (instance != null) { - this.withBackend(instance.getBackend()); - this.withPath(instance.getPath()); - this.withPathType(instance.getPathType()); - } - } - + public V1IngressBackend buildBackend() { return this.backend != null ? this.backend.build() : null; } - public A withBackend(V1IngressBackend backend) { - this._visitables.remove("backend"); - if (backend != null) { - this.backend = new V1IngressBackendBuilder(backend); - this._visitables.get("backend").add(this.backend); - } else { - this.backend = null; - this._visitables.get("backend").remove(this.backend); + protected void copyInstance(V1HTTPIngressPath instance) { + instance = instance != null ? instance : new V1HTTPIngressPath(); + if (instance != null) { + this.withBackend(instance.getBackend()); + this.withPath(instance.getPath()); + this.withPathType(instance.getPathType()); } - return (A) this; - } - - public boolean hasBackend() { - return this.backend != null; - } - - public BackendNested withNewBackend() { - return new BackendNested(null); - } - - public BackendNested withNewBackendLike(V1IngressBackend item) { - return new BackendNested(item); } public BackendNested editBackend() { - return withNewBackendLike(java.util.Optional.ofNullable(buildBackend()).orElse(null)); + return this.withNewBackendLike(Optional.ofNullable(this.buildBackend()).orElse(null)); } public BackendNested editOrNewBackend() { - return withNewBackendLike(java.util.Optional.ofNullable(buildBackend()).orElse(new V1IngressBackendBuilder().build())); + return this.withNewBackendLike(Optional.ofNullable(this.buildBackend()).orElse(new V1IngressBackendBuilder().build())); } public BackendNested editOrNewBackendLike(V1IngressBackend item) { - return withNewBackendLike(java.util.Optional.ofNullable(buildBackend()).orElse(item)); - } - - public String getPath() { - return this.path; + return this.withNewBackendLike(Optional.ofNullable(this.buildBackend()).orElse(item)); } - public A withPath(String path) { - this.path = path; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HTTPIngressPathFluent that = (V1HTTPIngressPathFluent) o; + if (!(Objects.equals(backend, that.backend))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(pathType, that.pathType))) { + return false; + } + return true; } - public boolean hasPath() { - return this.path != null; + public String getPath() { + return this.path; } public String getPathType() { return this.pathType; } - public A withPathType(String pathType) { - this.pathType = pathType; - return (A) this; + public boolean hasBackend() { + return this.backend != null; } - public boolean hasPathType() { - return this.pathType != null; + public boolean hasPath() { + return this.path != 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; - V1HTTPIngressPathFluent that = (V1HTTPIngressPathFluent) o; - if (!java.util.Objects.equals(backend, that.backend)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(pathType, that.pathType)) return false; - return true; + public boolean hasPathType() { + return this.pathType != null; } public int hashCode() { - return java.util.Objects.hash(backend, path, pathType, super.hashCode()); + return Objects.hash(backend, path, pathType); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (backend != null) { sb.append("backend:"); sb.append(backend + ","); } - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (pathType != null) { sb.append("pathType:"); sb.append(pathType); } + if (!(backend == null)) { + sb.append("backend:"); + sb.append(backend); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(pathType == null)) { + sb.append("pathType:"); + sb.append(pathType); + } sb.append("}"); return sb.toString(); } + + public A withBackend(V1IngressBackend backend) { + this._visitables.remove("backend"); + if (backend != null) { + this.backend = new V1IngressBackendBuilder(backend); + this._visitables.get("backend").add(this.backend); + } else { + this.backend = null; + this._visitables.get("backend").remove(this.backend); + } + return (A) this; + } + + public BackendNested withNewBackend() { + return new BackendNested(null); + } + + public BackendNested withNewBackendLike(V1IngressBackend item) { + return new BackendNested(item); + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withPathType(String pathType) { + this.pathType = pathType; + return (A) this; + } public class BackendNested extends V1IngressBackendFluent> implements Nested{ + + V1IngressBackendBuilder builder; + BackendNested(V1IngressBackend item) { this.builder = new V1IngressBackendBuilder(this, item); } - V1IngressBackendBuilder builder; - + public N and() { return (N) V1HTTPIngressPathFluent.this.withBackend(builder.build()); } @@ -134,7 +164,5 @@ public N endBackend() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java index a8e62da77a..d12903d913 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HTTPIngressRuleValueBuilder extends V1HTTPIngressRuleValueFluent implements VisitableBuilder{ + + V1HTTPIngressRuleValueFluent fluent; + public V1HTTPIngressRuleValueBuilder() { this(new V1HTTPIngressRuleValue()); } @@ -10,22 +14,20 @@ public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent) { this(fluent, new V1HTTPIngressRuleValue()); } - public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent,V1HTTPIngressRuleValue instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValue instance) { this.fluent = this; this.copyInstance(instance); } - V1HTTPIngressRuleValueFluent fluent; + public V1HTTPIngressRuleValueBuilder(V1HTTPIngressRuleValueFluent fluent,V1HTTPIngressRuleValue instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HTTPIngressRuleValue build() { V1HTTPIngressRuleValue buildable = new V1HTTPIngressRuleValue(); buildable.setPaths(fluent.buildPaths()); return buildable; } - } \ No newline at end of file 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..fd12b039a2 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 @@ -1,91 +1,79 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HTTPIngressRuleValueFluent> extends BaseFluent{ +public class V1HTTPIngressRuleValueFluent> extends BaseFluent{ + + private ArrayList paths; + public V1HTTPIngressRuleValueFluent() { } public V1HTTPIngressRuleValueFluent(V1HTTPIngressRuleValue instance) { this.copyInstance(instance); } - private ArrayList paths; - - protected void copyInstance(V1HTTPIngressRuleValue instance) { - instance = (instance != null ? instance : new V1HTTPIngressRuleValue()); - if (instance != null) { - this.withPaths(instance.getPaths()); - } - } - - 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);} - 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);} - return (A)this; - } - - public A addToPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items) { - if (this.paths == null) {this.paths = new ArrayList();} - for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").add(builder);this.paths.add(builder);} return (A)this; - } - + public A addAllToPaths(Collection items) { - if (this.paths == null) {this.paths = new ArrayList();} - for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").add(builder);this.paths.add(builder);} return (A)this; + if (this.paths == null) { + this.paths = new ArrayList(); + } + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").add(builder); + this.paths.add(builder); + } + return (A) this; } - public A removeFromPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... items) { - if (this.paths == null) return (A)this; - for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").remove(builder); this.paths.remove(builder);} return (A)this; + public PathsNested addNewPath() { + return new PathsNested(-1, null); } - public A removeAllFromPaths(Collection items) { - if (this.paths == null) return (A)this; - for (V1HTTPIngressPath item : items) {V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item);_visitables.get("paths").remove(builder); this.paths.remove(builder);} return (A)this; + public PathsNested addNewPathLike(V1HTTPIngressPath item) { + return new PathsNested(-1, item); } - public A removeMatchingFromPaths(Predicate predicate) { - if (paths == null) return (A) this; - final Iterator each = paths.iterator(); - final List visitables = _visitables.get("paths"); - while (each.hasNext()) { - V1HTTPIngressPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToPaths(V1HTTPIngressPath... items) { + if (this.paths == null) { + this.paths = new ArrayList(); } - return (A)this; - } - - public List buildPaths() { - return this.paths != null ? build(paths) : null; + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").add(builder); + this.paths.add(builder); + } + return (A) this; } - public V1HTTPIngressPath buildPath(int index) { - return this.paths.get(index).build(); + 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(builder); + paths.add(index, builder); + } + return (A) this; } public V1HTTPIngressPath buildFirstPath() { @@ -105,121 +93,205 @@ public V1HTTPIngressPath buildMatchingPath(Predicate p return null; } - public boolean hasMatchingPath(Predicate predicate) { - for (V1HTTPIngressPathBuilder item : paths) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1HTTPIngressPath buildPath(int index) { + return this.paths.get(index).build(); } - public A withPaths(List paths) { - if (this.paths != null) { - this._visitables.get("paths").clear(); + public List buildPaths() { + return this.paths != null ? build(paths) : null; + } + + protected void copyInstance(V1HTTPIngressRuleValue instance) { + instance = instance != null ? instance : new V1HTTPIngressRuleValue(); + if (instance != null) { + this.withPaths(instance.getPaths()); } - if (paths != null) { - this.paths = new ArrayList(); - for (V1HTTPIngressPath item : paths) { - this.addToPaths(item); - } - } else { - this.paths = null; + } + + public PathsNested editFirstPath() { + if (paths.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "paths")); } - return (A) this; + return this.setNewPathLike(0, this.buildPath(0)); } - public A withPaths(io.kubernetes.client.openapi.models.V1HTTPIngressPath... paths) { - if (this.paths != null) { - this.paths.clear(); - _visitables.remove("paths"); + public PathsNested editLastPath() { + int index = paths.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "paths")); } - if (paths != null) { - for (V1HTTPIngressPath item : paths) { - this.addToPaths(item); + return this.setNewPathLike(index, this.buildPath(index)); + } + + public PathsNested editMatchingPath(Predicate predicate) { + int index = -1; + for (int i = 0;i < paths.size();i++) { + if (predicate.test(paths.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "paths")); + } + return this.setNewPathLike(index, this.buildPath(index)); } - public boolean hasPaths() { - return this.paths != null && !this.paths.isEmpty(); + public PathsNested editPath(int index) { + if (paths.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "paths")); + } + return this.setNewPathLike(index, this.buildPath(index)); } - public PathsNested addNewPath() { - return new PathsNested(-1, null); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HTTPIngressRuleValueFluent that = (V1HTTPIngressRuleValueFluent) o; + if (!(Objects.equals(paths, that.paths))) { + return false; + } + return true; } - public PathsNested addNewPathLike(V1HTTPIngressPath item) { - return new PathsNested(-1, item); + public boolean hasMatchingPath(Predicate predicate) { + for (V1HTTPIngressPathBuilder item : paths) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public PathsNested setNewPathLike(int index,V1HTTPIngressPath item) { - return new PathsNested(index, item); + public boolean hasPaths() { + return this.paths != null && !(this.paths.isEmpty()); } - public PathsNested editPath(int index) { - if (paths.size() <= index) throw new RuntimeException("Can't edit paths. Index exceeds size."); - return setNewPathLike(index, buildPath(index)); + public int hashCode() { + return Objects.hash(paths); } - public PathsNested editFirstPath() { - if (paths.size() == 0) throw new RuntimeException("Can't edit first paths. The list is empty."); - return setNewPathLike(0, buildPath(0)); + public A removeAllFromPaths(Collection items) { + if (this.paths == null) { + return (A) this; + } + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").remove(builder); + this.paths.remove(builder); + } + return (A) this; } - public PathsNested editLastPath() { - int index = paths.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last paths. The list is empty."); - return setNewPathLike(index, buildPath(index)); + public A removeFromPaths(V1HTTPIngressPath... items) { + if (this.paths == null) { + return (A) this; + } + for (V1HTTPIngressPath item : items) { + V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); + _visitables.get("paths").remove(builder); + this.paths.remove(builder); + } + return (A) this; } - public PathsNested editMatchingPath(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + if (paths == null) { + return (A) this; + } + Iterator each = paths.iterator(); + List visitables = _visitables.get("paths"); + while (each.hasNext()) { + V1HTTPIngressPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1HTTPIngressRuleValueFluent that = (V1HTTPIngressRuleValueFluent) o; - if (!java.util.Objects.equals(paths, that.paths)) return false; - return true; + public PathsNested setNewPathLike(int index,V1HTTPIngressPath item) { + return new PathsNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(paths, super.hashCode()); + 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").add(builder); + paths.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (paths != null && !paths.isEmpty()) { sb.append("paths:"); sb.append(paths); } + if (!(paths == null) && !(paths.isEmpty())) { + sb.append("paths:"); + sb.append(paths); + } sb.append("}"); return sb.toString(); } + + public A withPaths(List paths) { + if (this.paths != null) { + this._visitables.get("paths").clear(); + } + if (paths != null) { + this.paths = new ArrayList(); + for (V1HTTPIngressPath item : paths) { + this.addToPaths(item); + } + } else { + this.paths = null; + } + return (A) this; + } + + public A withPaths(V1HTTPIngressPath... paths) { + if (this.paths != null) { + this.paths.clear(); + _visitables.remove("paths"); + } + if (paths != null) { + for (V1HTTPIngressPath item : paths) { + this.addToPaths(item); + } + } + return (A) this; + } public class PathsNested extends V1HTTPIngressPathFluent> implements Nested{ + + V1HTTPIngressPathBuilder builder; + int index; + PathsNested(int index,V1HTTPIngressPath item) { this.index = index; this.builder = new V1HTTPIngressPathBuilder(this, item); } - V1HTTPIngressPathBuilder builder; - int index; - + public N and() { - return (N) V1HTTPIngressRuleValueFluent.this.setToPaths(index,builder.build()); + return (N) V1HTTPIngressRuleValueFluent.this.setToPaths(index, builder.build()); } public N endPath() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java index 63b83168bc..b63b73606a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HorizontalPodAutoscalerBuilder extends V1HorizontalPodAutoscalerFluent implements VisitableBuilder{ + + V1HorizontalPodAutoscalerFluent fluent; + public V1HorizontalPodAutoscalerBuilder() { this(new V1HorizontalPodAutoscaler()); } @@ -10,17 +14,16 @@ public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluen this(fluent, new V1HorizontalPodAutoscaler()); } - public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluent,V1HorizontalPodAutoscaler instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscaler instance) { this.fluent = this; this.copyInstance(instance); } - V1HorizontalPodAutoscalerFluent fluent; + public V1HorizontalPodAutoscalerBuilder(V1HorizontalPodAutoscalerFluent fluent,V1HorizontalPodAutoscaler instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HorizontalPodAutoscaler build() { V1HorizontalPodAutoscaler buildable = new V1HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1HorizontalPodAutoscaler build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java index 6a9195a969..8e727f39ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerFluent> extends BaseFluent{ +public class V1HorizontalPodAutoscalerFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1HorizontalPodAutoscalerSpecBuilder spec; + private V1HorizontalPodAutoscalerStatusBuilder status; + public V1HorizontalPodAutoscalerFluent() { } public V1HorizontalPodAutoscalerFluent(V1HorizontalPodAutoscaler instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1HorizontalPodAutoscalerSpecBuilder spec; - private V1HorizontalPodAutoscalerStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1HorizontalPodAutoscalerSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1HorizontalPodAutoscalerStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1HorizontalPodAutoscaler instance) { - instance = (instance != null ? instance : new V1HorizontalPodAutoscaler()); + instance = instance != null ? instance : new V1HorizontalPodAutoscaler(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1HorizontalPodAutoscalerSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1HorizontalPodAutoscalerSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1HorizontalPodAutoscalerStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1HorizontalPodAutoscalerStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HorizontalPodAutoscalerFluent that = (V1HorizontalPodAutoscalerFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1HorizontalPodAutoscalerSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1HorizontalPodAutoscalerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1HorizontalPodAutoscalerStatus item) { + return new StatusNested(item); } public A withSpec(V1HorizontalPodAutoscalerSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1HorizontalPodAutoscalerSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1HorizontalPodAutoscalerSpec 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 V1HorizontalPodAutoscalerSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1HorizontalPodAutoscalerSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1HorizontalPodAutoscalerStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1HorizontalPodAutoscalerStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1HorizontalPodAutoscalerStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1HorizontalPodAutoscalerStatus 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 V1HorizontalPodAutoscalerStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1HorizontalPodAutoscalerStatus 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; - V1HorizontalPodAutoscalerFluent that = (V1HorizontalPodAutoscalerFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1HorizontalPodAutoscalerFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1HorizontalPodAutoscalerSpecFluent> implements Nested{ + + V1HorizontalPodAutoscalerSpecBuilder builder; + SpecNested(V1HorizontalPodAutoscalerSpec item) { this.builder = new V1HorizontalPodAutoscalerSpecBuilder(this, item); } - V1HorizontalPodAutoscalerSpecBuilder builder; - + public N and() { return (N) V1HorizontalPodAutoscalerFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1HorizontalPodAutoscalerStatusFluent> implements Nested{ + + V1HorizontalPodAutoscalerStatusBuilder builder; + StatusNested(V1HorizontalPodAutoscalerStatus item) { this.builder = new V1HorizontalPodAutoscalerStatusBuilder(this, item); } - V1HorizontalPodAutoscalerStatusBuilder builder; - + public N and() { return (N) V1HorizontalPodAutoscalerFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java index 0fcb3ad45d..f5928091c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HorizontalPodAutoscalerListBuilder extends V1HorizontalPodAutoscalerListFluent implements VisitableBuilder{ + + V1HorizontalPodAutoscalerListFluent fluent; + public V1HorizontalPodAutoscalerListBuilder() { this(new V1HorizontalPodAutoscalerList()); } @@ -10,17 +14,16 @@ public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent< this(fluent, new V1HorizontalPodAutoscalerList()); } - public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent fluent,V1HorizontalPodAutoscalerList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerList instance) { this.fluent = this; this.copyInstance(instance); } - V1HorizontalPodAutoscalerListFluent fluent; + public V1HorizontalPodAutoscalerListBuilder(V1HorizontalPodAutoscalerListFluent fluent,V1HorizontalPodAutoscalerList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HorizontalPodAutoscalerList build() { V1HorizontalPodAutoscalerList buildable = new V1HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1HorizontalPodAutoscalerList build() { return buildable; } - } \ No newline at end of file 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..6b46a1a983 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerListFluent> extends BaseFluent{ +public class V1HorizontalPodAutoscalerListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1HorizontalPodAutoscalerListFluent() { } public V1HorizontalPodAutoscalerListFluent(V1HorizontalPodAutoscalerList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1HorizontalPodAutoscalerList instance) { - instance = (instance != null ? instance : new V1HorizontalPodAutoscalerList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1HorizontalPodAutoscaler item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1HorizontalPodAutoscaler... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1HorizontalPodAutoscaler item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1HorizontalPodAutoscaler buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1HorizontalPodAutoscaler buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { - if (this.items == null) return (A)this; - for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1HorizontalPodAutoscaler buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1HorizontalPodAutoscaler item : items) {V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1HorizontalPodAutoscaler buildMatchingItem(Predicate predicate) { + for (V1HorizontalPodAutoscalerBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1HorizontalPodAutoscalerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1HorizontalPodAutoscalerList instance) { + instance = instance != null ? instance : new V1HorizontalPodAutoscalerList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1HorizontalPodAutoscaler buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1HorizontalPodAutoscaler buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1HorizontalPodAutoscaler buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HorizontalPodAutoscalerListFluent that = (V1HorizontalPodAutoscalerListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1HorizontalPodAutoscaler buildMatchingItem(Predicate predicate) { - for (V1HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predi return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1HorizontalPodAutoscaler... items) { + if (this.items == null) { + return (A) this; + } + for (V1HorizontalPodAutoscaler item : items) { + V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1HorizontalPodAutoscalerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1HorizontalPodAutoscaler item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler... items) { + public A withItems(V1HorizontalPodAutoscaler... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1HorizontalPodAutoscaler return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1HorizontalPodAutoscaler item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1HorizontalPodAutoscaler 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1HorizontalPodAutoscalerFluent> implements Nested{ - 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; - V1HorizontalPodAutoscalerListFluent that = (V1HorizontalPodAutoscalerListFluent) 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()); - } + V1HorizontalPodAutoscalerBuilder builder; + int index; - 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 V1HorizontalPodAutoscalerFluent> implements Nested{ ItemsNested(int index,V1HorizontalPodAutoscaler item) { this.index = index; this.builder = new V1HorizontalPodAutoscalerBuilder(this, item); } - V1HorizontalPodAutoscalerBuilder builder; - int index; - + public N and() { - return (N) V1HorizontalPodAutoscalerListFluent.this.setToItems(index,builder.build()); + return (N) V1HorizontalPodAutoscalerListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1HorizontalPodAutoscalerListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java index 86d3ba2aea..47832edd77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HorizontalPodAutoscalerSpecBuilder extends V1HorizontalPodAutoscalerSpecFluent implements VisitableBuilder{ + + V1HorizontalPodAutoscalerSpecFluent fluent; + public V1HorizontalPodAutoscalerSpecBuilder() { this(new V1HorizontalPodAutoscalerSpec()); } @@ -10,17 +14,16 @@ public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent< this(fluent, new V1HorizontalPodAutoscalerSpec()); } - public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent fluent,V1HorizontalPodAutoscalerSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1HorizontalPodAutoscalerSpecFluent fluent; + public V1HorizontalPodAutoscalerSpecBuilder(V1HorizontalPodAutoscalerSpecFluent fluent,V1HorizontalPodAutoscalerSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HorizontalPodAutoscalerSpec build() { V1HorizontalPodAutoscalerSpec buildable = new V1HorizontalPodAutoscalerSpec(); buildable.setMaxReplicas(fluent.getMaxReplicas()); @@ -30,5 +33,4 @@ public V1HorizontalPodAutoscalerSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java index c1abf37c47..6b5cc42e30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java @@ -1,149 +1,185 @@ 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.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ +public class V1HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ + + private Integer maxReplicas; + private Integer minReplicas; + private V1CrossVersionObjectReferenceBuilder scaleTargetRef; + private Integer targetCPUUtilizationPercentage; + public V1HorizontalPodAutoscalerSpecFluent() { } public V1HorizontalPodAutoscalerSpecFluent(V1HorizontalPodAutoscalerSpec instance) { this.copyInstance(instance); } - private Integer maxReplicas; - private Integer minReplicas; - private V1CrossVersionObjectReferenceBuilder scaleTargetRef; - private Integer targetCPUUtilizationPercentage; + + public V1CrossVersionObjectReference buildScaleTargetRef() { + return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; + } protected void copyInstance(V1HorizontalPodAutoscalerSpec instance) { - instance = (instance != null ? instance : new V1HorizontalPodAutoscalerSpec()); + instance = instance != null ? instance : new V1HorizontalPodAutoscalerSpec(); if (instance != null) { - this.withMaxReplicas(instance.getMaxReplicas()); - this.withMinReplicas(instance.getMinReplicas()); - this.withScaleTargetRef(instance.getScaleTargetRef()); - this.withTargetCPUUtilizationPercentage(instance.getTargetCPUUtilizationPercentage()); - } + this.withMaxReplicas(instance.getMaxReplicas()); + this.withMinReplicas(instance.getMinReplicas()); + this.withScaleTargetRef(instance.getScaleTargetRef()); + this.withTargetCPUUtilizationPercentage(instance.getTargetCPUUtilizationPercentage()); + } } - public Integer getMaxReplicas() { - return this.maxReplicas; + public ScaleTargetRefNested editOrNewScaleTargetRef() { + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(new V1CrossVersionObjectReferenceBuilder().build())); } - public A withMaxReplicas(Integer maxReplicas) { - this.maxReplicas = maxReplicas; - return (A) this; + public ScaleTargetRefNested editOrNewScaleTargetRefLike(V1CrossVersionObjectReference item) { + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(item)); } - public boolean hasMaxReplicas() { - return this.maxReplicas != null; + public ScaleTargetRefNested editScaleTargetRef() { + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HorizontalPodAutoscalerSpecFluent that = (V1HorizontalPodAutoscalerSpecFluent) o; + if (!(Objects.equals(maxReplicas, that.maxReplicas))) { + return false; + } + if (!(Objects.equals(minReplicas, that.minReplicas))) { + return false; + } + if (!(Objects.equals(scaleTargetRef, that.scaleTargetRef))) { + return false; + } + if (!(Objects.equals(targetCPUUtilizationPercentage, that.targetCPUUtilizationPercentage))) { + return false; + } + return true; + } + + public Integer getMaxReplicas() { + return this.maxReplicas; } public Integer getMinReplicas() { return this.minReplicas; } - public A withMinReplicas(Integer minReplicas) { - this.minReplicas = minReplicas; - return (A) this; + public Integer getTargetCPUUtilizationPercentage() { + return this.targetCPUUtilizationPercentage; + } + + public boolean hasMaxReplicas() { + return this.maxReplicas != null; } public boolean hasMinReplicas() { return this.minReplicas != null; } - public V1CrossVersionObjectReference buildScaleTargetRef() { - return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; + public boolean hasScaleTargetRef() { + return this.scaleTargetRef != null; } - public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { - this._visitables.remove("scaleTargetRef"); - if (scaleTargetRef != null) { - this.scaleTargetRef = new V1CrossVersionObjectReferenceBuilder(scaleTargetRef); - this._visitables.get("scaleTargetRef").add(this.scaleTargetRef); - } else { - this.scaleTargetRef = null; - this._visitables.get("scaleTargetRef").remove(this.scaleTargetRef); - } - return (A) this; + public boolean hasTargetCPUUtilizationPercentage() { + return this.targetCPUUtilizationPercentage != null; } - public boolean hasScaleTargetRef() { - return this.scaleTargetRef != null; + public int hashCode() { + return Objects.hash(maxReplicas, minReplicas, scaleTargetRef, targetCPUUtilizationPercentage); } - public ScaleTargetRefNested withNewScaleTargetRef() { - return new ScaleTargetRefNested(null); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(maxReplicas == null)) { + sb.append("maxReplicas:"); + sb.append(maxReplicas); + sb.append(","); + } + if (!(minReplicas == null)) { + sb.append("minReplicas:"); + sb.append(minReplicas); + sb.append(","); + } + if (!(scaleTargetRef == null)) { + sb.append("scaleTargetRef:"); + sb.append(scaleTargetRef); + sb.append(","); + } + if (!(targetCPUUtilizationPercentage == null)) { + sb.append("targetCPUUtilizationPercentage:"); + sb.append(targetCPUUtilizationPercentage); + } + sb.append("}"); + return sb.toString(); } - public ScaleTargetRefNested withNewScaleTargetRefLike(V1CrossVersionObjectReference item) { - return new ScaleTargetRefNested(item); + public A withMaxReplicas(Integer maxReplicas) { + this.maxReplicas = maxReplicas; + return (A) this; } - public ScaleTargetRefNested editScaleTargetRef() { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(null)); + public A withMinReplicas(Integer minReplicas) { + this.minReplicas = minReplicas; + return (A) this; } - public ScaleTargetRefNested editOrNewScaleTargetRef() { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(new V1CrossVersionObjectReferenceBuilder().build())); + public ScaleTargetRefNested withNewScaleTargetRef() { + return new ScaleTargetRefNested(null); } - public ScaleTargetRefNested editOrNewScaleTargetRefLike(V1CrossVersionObjectReference item) { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(item)); + public ScaleTargetRefNested withNewScaleTargetRefLike(V1CrossVersionObjectReference item) { + return new ScaleTargetRefNested(item); } - public Integer getTargetCPUUtilizationPercentage() { - return this.targetCPUUtilizationPercentage; + public A withScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { + this._visitables.remove("scaleTargetRef"); + if (scaleTargetRef != null) { + this.scaleTargetRef = new V1CrossVersionObjectReferenceBuilder(scaleTargetRef); + this._visitables.get("scaleTargetRef").add(this.scaleTargetRef); + } else { + this.scaleTargetRef = null; + this._visitables.get("scaleTargetRef").remove(this.scaleTargetRef); + } + return (A) this; } public A withTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) { this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; return (A) this; } + public class ScaleTargetRefNested extends V1CrossVersionObjectReferenceFluent> implements Nested{ - public boolean hasTargetCPUUtilizationPercentage() { - return this.targetCPUUtilizationPercentage != 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; - V1HorizontalPodAutoscalerSpecFluent that = (V1HorizontalPodAutoscalerSpecFluent) o; - if (!java.util.Objects.equals(maxReplicas, that.maxReplicas)) return false; - if (!java.util.Objects.equals(minReplicas, that.minReplicas)) return false; - if (!java.util.Objects.equals(scaleTargetRef, that.scaleTargetRef)) return false; - if (!java.util.Objects.equals(targetCPUUtilizationPercentage, that.targetCPUUtilizationPercentage)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(maxReplicas, minReplicas, scaleTargetRef, targetCPUUtilizationPercentage, super.hashCode()); - } + V1CrossVersionObjectReferenceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (maxReplicas != null) { sb.append("maxReplicas:"); sb.append(maxReplicas + ","); } - if (minReplicas != null) { sb.append("minReplicas:"); sb.append(minReplicas + ","); } - if (scaleTargetRef != null) { sb.append("scaleTargetRef:"); sb.append(scaleTargetRef + ","); } - if (targetCPUUtilizationPercentage != null) { sb.append("targetCPUUtilizationPercentage:"); sb.append(targetCPUUtilizationPercentage); } - sb.append("}"); - return sb.toString(); - } - public class ScaleTargetRefNested extends V1CrossVersionObjectReferenceFluent> implements Nested{ ScaleTargetRefNested(V1CrossVersionObjectReference item) { this.builder = new V1CrossVersionObjectReferenceBuilder(this, item); } - V1CrossVersionObjectReferenceBuilder builder; - + public N and() { return (N) V1HorizontalPodAutoscalerSpecFluent.this.withScaleTargetRef(builder.build()); } @@ -152,7 +188,5 @@ public N endScaleTargetRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java index 4c5999d31b..41152d6edb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HorizontalPodAutoscalerStatusBuilder extends V1HorizontalPodAutoscalerStatusFluent implements VisitableBuilder{ + + V1HorizontalPodAutoscalerStatusFluent fluent; + public V1HorizontalPodAutoscalerStatusBuilder() { this(new V1HorizontalPodAutoscalerStatus()); } @@ -10,17 +14,16 @@ public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFlu this(fluent, new V1HorizontalPodAutoscalerStatus()); } - public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFluent fluent,V1HorizontalPodAutoscalerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1HorizontalPodAutoscalerStatusFluent fluent; + public V1HorizontalPodAutoscalerStatusBuilder(V1HorizontalPodAutoscalerStatusFluent fluent,V1HorizontalPodAutoscalerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HorizontalPodAutoscalerStatus build() { V1HorizontalPodAutoscalerStatus buildable = new V1HorizontalPodAutoscalerStatus(); buildable.setCurrentCPUUtilizationPercentage(fluent.getCurrentCPUUtilizationPercentage()); @@ -31,5 +34,4 @@ public V1HorizontalPodAutoscalerStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java index 4e85c29ad8..fba5ce981d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java @@ -1,134 +1,172 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Long; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ - public V1HorizontalPodAutoscalerStatusFluent() { - } - - public V1HorizontalPodAutoscalerStatusFluent(V1HorizontalPodAutoscalerStatus instance) { - this.copyInstance(instance); - } +public class V1HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ + private Integer currentCPUUtilizationPercentage; private Integer currentReplicas; private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; + + public V1HorizontalPodAutoscalerStatusFluent() { + } + public V1HorizontalPodAutoscalerStatusFluent(V1HorizontalPodAutoscalerStatus instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1HorizontalPodAutoscalerStatus instance) { - instance = (instance != null ? instance : new V1HorizontalPodAutoscalerStatus()); + instance = instance != null ? instance : new V1HorizontalPodAutoscalerStatus(); if (instance != null) { - this.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); - this.withCurrentReplicas(instance.getCurrentReplicas()); - this.withDesiredReplicas(instance.getDesiredReplicas()); - this.withLastScaleTime(instance.getLastScaleTime()); - this.withObservedGeneration(instance.getObservedGeneration()); - } + this.withCurrentCPUUtilizationPercentage(instance.getCurrentCPUUtilizationPercentage()); + this.withCurrentReplicas(instance.getCurrentReplicas()); + this.withDesiredReplicas(instance.getDesiredReplicas()); + this.withLastScaleTime(instance.getLastScaleTime()); + this.withObservedGeneration(instance.getObservedGeneration()); + } } - public Integer getCurrentCPUUtilizationPercentage() { - return this.currentCPUUtilizationPercentage; - } - - public A withCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { - this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HorizontalPodAutoscalerStatusFluent that = (V1HorizontalPodAutoscalerStatusFluent) o; + if (!(Objects.equals(currentCPUUtilizationPercentage, that.currentCPUUtilizationPercentage))) { + return false; + } + if (!(Objects.equals(currentReplicas, that.currentReplicas))) { + return false; + } + if (!(Objects.equals(desiredReplicas, that.desiredReplicas))) { + return false; + } + if (!(Objects.equals(lastScaleTime, that.lastScaleTime))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + return true; } - public boolean hasCurrentCPUUtilizationPercentage() { - return this.currentCPUUtilizationPercentage != null; + public Integer getCurrentCPUUtilizationPercentage() { + return this.currentCPUUtilizationPercentage; } public Integer getCurrentReplicas() { return this.currentReplicas; } - public A withCurrentReplicas(Integer currentReplicas) { - this.currentReplicas = currentReplicas; - return (A) this; + public Integer getDesiredReplicas() { + return this.desiredReplicas; } - public boolean hasCurrentReplicas() { - return this.currentReplicas != null; + public OffsetDateTime getLastScaleTime() { + return this.lastScaleTime; } - public Integer getDesiredReplicas() { - return this.desiredReplicas; + public Long getObservedGeneration() { + return this.observedGeneration; } - public A withDesiredReplicas(Integer desiredReplicas) { - this.desiredReplicas = desiredReplicas; - return (A) this; + public boolean hasCurrentCPUUtilizationPercentage() { + return this.currentCPUUtilizationPercentage != null; + } + + public boolean hasCurrentReplicas() { + return this.currentReplicas != null; } public boolean hasDesiredReplicas() { return this.desiredReplicas != null; } - public OffsetDateTime getLastScaleTime() { - return this.lastScaleTime; + public boolean hasLastScaleTime() { + return this.lastScaleTime != null; } - public A withLastScaleTime(OffsetDateTime lastScaleTime) { - this.lastScaleTime = lastScaleTime; - return (A) this; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public boolean hasLastScaleTime() { - return this.lastScaleTime != null; + public int hashCode() { + return Objects.hash(currentCPUUtilizationPercentage, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); } - public Long getObservedGeneration() { - return this.observedGeneration; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(currentCPUUtilizationPercentage == null)) { + sb.append("currentCPUUtilizationPercentage:"); + sb.append(currentCPUUtilizationPercentage); + sb.append(","); + } + if (!(currentReplicas == null)) { + sb.append("currentReplicas:"); + sb.append(currentReplicas); + sb.append(","); + } + if (!(desiredReplicas == null)) { + sb.append("desiredReplicas:"); + sb.append(desiredReplicas); + sb.append(","); + } + if (!(lastScaleTime == null)) { + sb.append("lastScaleTime:"); + sb.append(lastScaleTime); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + } + sb.append("}"); + return sb.toString(); } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; + public A withCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { + this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; return (A) this; } - public boolean hasObservedGeneration() { - return this.observedGeneration != null; + public A withCurrentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1HorizontalPodAutoscalerStatusFluent that = (V1HorizontalPodAutoscalerStatusFluent) o; - if (!java.util.Objects.equals(currentCPUUtilizationPercentage, that.currentCPUUtilizationPercentage)) return false; - if (!java.util.Objects.equals(currentReplicas, that.currentReplicas)) return false; - if (!java.util.Objects.equals(desiredReplicas, that.desiredReplicas)) return false; - if (!java.util.Objects.equals(lastScaleTime, that.lastScaleTime)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - return true; + public A withDesiredReplicas(Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(currentCPUUtilizationPercentage, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration, super.hashCode()); + public A withLastScaleTime(OffsetDateTime lastScaleTime) { + this.lastScaleTime = lastScaleTime; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (currentCPUUtilizationPercentage != null) { sb.append("currentCPUUtilizationPercentage:"); sb.append(currentCPUUtilizationPercentage + ","); } - if (currentReplicas != null) { sb.append("currentReplicas:"); sb.append(currentReplicas + ","); } - if (desiredReplicas != null) { sb.append("desiredReplicas:"); sb.append(desiredReplicas + ","); } - if (lastScaleTime != null) { sb.append("lastScaleTime:"); sb.append(lastScaleTime + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration); } - sb.append("}"); - return sb.toString(); + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java index bba851859b..3ea7e4f4fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HostAliasBuilder extends V1HostAliasFluent implements VisitableBuilder{ + + V1HostAliasFluent fluent; + public V1HostAliasBuilder() { this(new V1HostAlias()); } @@ -10,17 +14,16 @@ public V1HostAliasBuilder(V1HostAliasFluent fluent) { this(fluent, new V1HostAlias()); } - public V1HostAliasBuilder(V1HostAliasFluent fluent,V1HostAlias instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HostAliasBuilder(V1HostAlias instance) { this.fluent = this; this.copyInstance(instance); } - V1HostAliasFluent fluent; + public V1HostAliasBuilder(V1HostAliasFluent fluent,V1HostAlias instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HostAlias build() { V1HostAlias buildable = new V1HostAlias(); buildable.setHostnames(fluent.getHostnames()); @@ -28,5 +31,4 @@ public V1HostAlias build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java index 1da355118a..62fc106c60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java @@ -1,77 +1,102 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HostAliasFluent> extends BaseFluent{ +public class V1HostAliasFluent> extends BaseFluent{ + + private List hostnames; + private String ip; + public V1HostAliasFluent() { } public V1HostAliasFluent(V1HostAlias instance) { this.copyInstance(instance); } - private List hostnames; - private String ip; + + public A addAllToHostnames(Collection items) { + if (this.hostnames == null) { + this.hostnames = new ArrayList(); + } + for (String item : items) { + this.hostnames.add(item); + } + return (A) this; + } - protected void copyInstance(V1HostAlias instance) { - instance = (instance != null ? instance : new V1HostAlias()); - if (instance != null) { - this.withHostnames(instance.getHostnames()); - this.withIp(instance.getIp()); - } + public A addToHostnames(String... items) { + if (this.hostnames == null) { + this.hostnames = new ArrayList(); + } + for (String item : items) { + this.hostnames.add(item); + } + return (A) this; } public A addToHostnames(int index,String item) { - if (this.hostnames == null) {this.hostnames = new ArrayList();} + if (this.hostnames == null) { + this.hostnames = new ArrayList(); + } this.hostnames.add(index, item); - return (A)this; - } - - public A setToHostnames(int index,String item) { - if (this.hostnames == null) {this.hostnames = new ArrayList();} - this.hostnames.set(index, item); return (A)this; + return (A) this; } - public A addToHostnames(java.lang.String... items) { - if (this.hostnames == null) {this.hostnames = new ArrayList();} - for (String item : items) {this.hostnames.add(item);} return (A)this; + protected void copyInstance(V1HostAlias instance) { + instance = instance != null ? instance : new V1HostAlias(); + if (instance != null) { + this.withHostnames(instance.getHostnames()); + this.withIp(instance.getIp()); + } } - public A addAllToHostnames(Collection items) { - if (this.hostnames == null) {this.hostnames = new ArrayList();} - for (String item : items) {this.hostnames.add(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HostAliasFluent that = (V1HostAliasFluent) o; + if (!(Objects.equals(hostnames, that.hostnames))) { + return false; + } + if (!(Objects.equals(ip, that.ip))) { + return false; + } + return true; } - public A removeFromHostnames(java.lang.String... items) { - if (this.hostnames == null) return (A)this; - for (String item : items) { this.hostnames.remove(item);} return (A)this; + public String getFirstHostname() { + return this.hostnames.get(0); } - public A removeAllFromHostnames(Collection items) { - if (this.hostnames == null) return (A)this; - for (String item : items) { this.hostnames.remove(item);} return (A)this; + public String getHostname(int index) { + return this.hostnames.get(index); } public List getHostnames() { return this.hostnames; } - public String getHostname(int index) { - return this.hostnames.get(index); - } - - public String getFirstHostname() { - return this.hostnames.get(0); + public String getIp() { + return this.ip; } public String getLastHostname() { @@ -87,6 +112,14 @@ public String getMatchingHostname(Predicate predicate) { return null; } + public boolean hasHostnames() { + return this.hostnames != null && !(this.hostnames.isEmpty()); + } + + public boolean hasIp() { + return this.ip != null; + } + public boolean hasMatchingHostname(Predicate predicate) { for (String item : hostnames) { if (predicate.test(item)) { @@ -96,6 +129,54 @@ public boolean hasMatchingHostname(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(hostnames, ip); + } + + public A removeAllFromHostnames(Collection items) { + if (this.hostnames == null) { + return (A) this; + } + for (String item : items) { + this.hostnames.remove(item); + } + return (A) this; + } + + public A removeFromHostnames(String... items) { + if (this.hostnames == null) { + return (A) this; + } + for (String item : items) { + this.hostnames.remove(item); + } + return (A) this; + } + + public A setToHostnames(int index,String item) { + if (this.hostnames == null) { + this.hostnames = new ArrayList(); + } + this.hostnames.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hostnames == null) && !(hostnames.isEmpty())) { + sb.append("hostnames:"); + sb.append(hostnames); + sb.append(","); + } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + } + sb.append("}"); + return sb.toString(); + } + public A withHostnames(List hostnames) { if (hostnames != null) { this.hostnames = new ArrayList(); @@ -108,7 +189,7 @@ public A withHostnames(List hostnames) { return (A) this; } - public A withHostnames(java.lang.String... hostnames) { + public A withHostnames(String... hostnames) { if (this.hostnames != null) { this.hostnames.clear(); _visitables.remove("hostnames"); @@ -121,45 +202,9 @@ public A withHostnames(java.lang.String... hostnames) { return (A) this; } - public boolean hasHostnames() { - return this.hostnames != null && !this.hostnames.isEmpty(); - } - - public String getIp() { - return this.ip; - } - public A withIp(String ip) { this.ip = ip; return (A) this; } - public boolean hasIp() { - return this.ip != 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; - V1HostAliasFluent that = (V1HostAliasFluent) o; - if (!java.util.Objects.equals(hostnames, that.hostnames)) return false; - if (!java.util.Objects.equals(ip, that.ip)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(hostnames, ip, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (hostnames != null && !hostnames.isEmpty()) { sb.append("hostnames:"); sb.append(hostnames + ","); } - if (ip != null) { sb.append("ip:"); sb.append(ip); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java index 2588192d3a..dbd4c460b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HostIPBuilder extends V1HostIPFluent implements VisitableBuilder{ + + V1HostIPFluent fluent; + public V1HostIPBuilder() { this(new V1HostIP()); } @@ -10,22 +14,20 @@ public V1HostIPBuilder(V1HostIPFluent fluent) { this(fluent, new V1HostIP()); } - public V1HostIPBuilder(V1HostIPFluent fluent,V1HostIP instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HostIPBuilder(V1HostIP instance) { this.fluent = this; this.copyInstance(instance); } - V1HostIPFluent fluent; + public V1HostIPBuilder(V1HostIPFluent fluent,V1HostIP instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HostIP build() { V1HostIP buildable = new V1HostIP(); buildable.setIp(fluent.getIp()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java index 904a057ea9..6d769869bf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HostIPFluent> extends BaseFluent{ +public class V1HostIPFluent> extends BaseFluent{ + + private String ip; + public V1HostIPFluent() { } public V1HostIPFluent(V1HostIP instance) { this.copyInstance(instance); } - private String ip; - + protected void copyInstance(V1HostIP instance) { - instance = (instance != null ? instance : new V1HostIP()); + instance = instance != null ? instance : new V1HostIP(); if (instance != null) { - this.withIp(instance.getIp()); - } + this.withIp(instance.getIp()); + } } - public String getIp() { - return this.ip; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HostIPFluent that = (V1HostIPFluent) o; + if (!(Objects.equals(ip, that.ip))) { + return false; + } + return true; } - public A withIp(String ip) { - this.ip = ip; - return (A) this; + public String getIp() { + return this.ip; } public boolean hasIp() { return this.ip != 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; - V1HostIPFluent that = (V1HostIPFluent) o; - if (!java.util.Objects.equals(ip, that.ip)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(ip, super.hashCode()); + return Objects.hash(ip); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ip != null) { sb.append("ip:"); sb.append(ip); } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + } sb.append("}"); return sb.toString(); } - + public A withIp(String ip) { + this.ip = ip; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java index 4cc85f972b..61cca5a5cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1HostPathVolumeSourceBuilder extends V1HostPathVolumeSourceFluent implements VisitableBuilder{ + + V1HostPathVolumeSourceFluent fluent; + public V1HostPathVolumeSourceBuilder() { this(new V1HostPathVolumeSource()); } @@ -10,17 +14,16 @@ public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent) { this(fluent, new V1HostPathVolumeSource()); } - public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent,V1HostPathVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1HostPathVolumeSourceFluent fluent; + public V1HostPathVolumeSourceBuilder(V1HostPathVolumeSourceFluent fluent,V1HostPathVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1HostPathVolumeSource build() { V1HostPathVolumeSource buildable = new V1HostPathVolumeSource(); buildable.setPath(fluent.getPath()); @@ -28,5 +31,4 @@ public V1HostPathVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java index 54c093830c..2e87d765a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1HostPathVolumeSourceFluent> extends BaseFluent{ +public class V1HostPathVolumeSourceFluent> extends BaseFluent{ + + private String path; + private String type; + public V1HostPathVolumeSourceFluent() { } public V1HostPathVolumeSourceFluent(V1HostPathVolumeSource instance) { this.copyInstance(instance); } - private String path; - private String type; - + protected void copyInstance(V1HostPathVolumeSource instance) { - instance = (instance != null ? instance : new V1HostPathVolumeSource()); + instance = instance != null ? instance : new V1HostPathVolumeSource(); if (instance != null) { - this.withPath(instance.getPath()); - this.withType(instance.getType()); - } + this.withPath(instance.getPath()); + this.withType(instance.getType()); + } } - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1HostPathVolumeSourceFluent that = (V1HostPathVolumeSourceFluent) o; + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasPath() { - return this.path != null; + public String getPath() { + return this.path; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasPath() { + return this.path != null; } 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; - V1HostPathVolumeSourceFluent that = (V1HostPathVolumeSourceFluent) o; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(path, type, super.hashCode()); + return Objects.hash(path, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } - + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file 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..ea752e17eb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1IPAddressBuilder extends V1IPAddressFluent implements VisitableBuilder{ + + V1IPAddressFluent fluent; + + public V1IPAddressBuilder() { + this(new V1IPAddress()); + } + + public V1IPAddressBuilder(V1IPAddressFluent fluent) { + this(fluent, new V1IPAddress()); + } + + public V1IPAddressBuilder(V1IPAddress instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1IPAddressBuilder(V1IPAddressFluent fluent,V1IPAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..9616392a9e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1IPAddressFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1IPAddressSpecBuilder spec; + + public V1IPAddressFluent() { + } + + public V1IPAddressFluent(V1IPAddress instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1IPAddressSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1IPAddressSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1IPAddressSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IPAddressFluent that = (V1IPAddressFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1IPAddressSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1IPAddressFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1IPAddressSpecFluent> implements Nested{ + + V1IPAddressSpecBuilder builder; + + SpecNested(V1IPAddressSpec item) { + this.builder = new V1IPAddressSpecBuilder(this, item); + } + + 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..c1233f6bb1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1IPAddressListBuilder extends V1IPAddressListFluent implements VisitableBuilder{ + + V1IPAddressListFluent fluent; + + public V1IPAddressListBuilder() { + this(new V1IPAddressList()); + } + + public V1IPAddressListBuilder(V1IPAddressListFluent fluent) { + this(fluent, new V1IPAddressList()); + } + + public V1IPAddressListBuilder(V1IPAddressList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1IPAddressListBuilder(V1IPAddressListFluent fluent,V1IPAddressList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..5608c1eab4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1IPAddressListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1IPAddressListFluent() { + } + + public V1IPAddressListFluent(V1IPAddressList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1IPAddress item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1IPAddress buildFirstItem() { + return this.items.get(0).build(); + } + + public V1IPAddress buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IPAddressListFluent that = (V1IPAddressListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1IPAddress item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1IPAddressFluent> implements Nested{ + + V1IPAddressBuilder builder; + int index; + + ItemsNested(int index,V1IPAddress item) { + this.index = index; + this.builder = new V1IPAddressBuilder(this, item); + } + + public N and() { + return (N) V1IPAddressListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..0745e24e37 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1IPAddressSpecBuilder extends V1IPAddressSpecFluent implements VisitableBuilder{ + + V1IPAddressSpecFluent fluent; + + public V1IPAddressSpecBuilder() { + this(new V1IPAddressSpec()); + } + + public V1IPAddressSpecBuilder(V1IPAddressSpecFluent fluent) { + this(fluent, new V1IPAddressSpec()); + } + + public V1IPAddressSpecBuilder(V1IPAddressSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1IPAddressSpecBuilder(V1IPAddressSpecFluent fluent,V1IPAddressSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..525fee1b8e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1IPAddressSpecFluent> extends BaseFluent{ + + private V1ParentReferenceBuilder parentRef; + + public V1IPAddressSpecFluent() { + } + + public V1IPAddressSpecFluent(V1IPAddressSpec instance) { + this.copyInstance(instance); + } + + public V1ParentReference buildParentRef() { + return this.parentRef != null ? this.parentRef.build() : null; + } + + protected void copyInstance(V1IPAddressSpec instance) { + instance = instance != null ? instance : new V1IPAddressSpec(); + if (instance != null) { + this.withParentRef(instance.getParentRef()); + } + } + + public ParentRefNested editOrNewParentRef() { + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(new V1ParentReferenceBuilder().build())); + } + + public ParentRefNested editOrNewParentRefLike(V1ParentReference item) { + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(item)); + } + + public ParentRefNested editParentRef() { + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IPAddressSpecFluent that = (V1IPAddressSpecFluent) o; + if (!(Objects.equals(parentRef, that.parentRef))) { + return false; + } + return true; + } + + public boolean hasParentRef() { + return this.parentRef != null; + } + + public int hashCode() { + return Objects.hash(parentRef); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(parentRef == null)) { + sb.append("parentRef:"); + sb.append(parentRef); + } + sb.append("}"); + return sb.toString(); + } + + public ParentRefNested withNewParentRef() { + return new ParentRefNested(null); + } + + public ParentRefNested withNewParentRefLike(V1ParentReference item) { + return new ParentRefNested(item); + } + + 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 class ParentRefNested extends V1ParentReferenceFluent> implements Nested{ + + V1ParentReferenceBuilder builder; + + ParentRefNested(V1ParentReference item) { + this.builder = new V1ParentReferenceBuilder(this, item); + } + + 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/V1IPBlockBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java index 652333930d..64ac496ed8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IPBlockBuilder extends V1IPBlockFluent implements VisitableBuilder{ + + V1IPBlockFluent fluent; + public V1IPBlockBuilder() { this(new V1IPBlock()); } @@ -10,17 +14,16 @@ public V1IPBlockBuilder(V1IPBlockFluent fluent) { this(fluent, new V1IPBlock()); } - public V1IPBlockBuilder(V1IPBlockFluent fluent,V1IPBlock instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IPBlockBuilder(V1IPBlock instance) { this.fluent = this; this.copyInstance(instance); } - V1IPBlockFluent fluent; + public V1IPBlockBuilder(V1IPBlockFluent fluent,V1IPBlock instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IPBlock build() { V1IPBlock buildable = new V1IPBlock(); buildable.setCidr(fluent.getCidr()); @@ -28,5 +31,4 @@ public V1IPBlock build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java index 0d0df27b91..a2f2456330 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java @@ -1,78 +1,90 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IPBlockFluent> extends BaseFluent{ +public class V1IPBlockFluent> extends BaseFluent{ + + private String cidr; + private List except; + public V1IPBlockFluent() { } public V1IPBlockFluent(V1IPBlock instance) { this.copyInstance(instance); } - private String cidr; - private List except; - - protected void copyInstance(V1IPBlock instance) { - instance = (instance != null ? instance : new V1IPBlock()); - if (instance != null) { - this.withCidr(instance.getCidr()); - this.withExcept(instance.getExcept()); - } - } - - public String getCidr() { - return this.cidr; - } - - public A withCidr(String cidr) { - this.cidr = cidr; + + public A addAllToExcept(Collection items) { + if (this.except == null) { + this.except = new ArrayList(); + } + for (String item : items) { + this.except.add(item); + } return (A) this; } - public boolean hasCidr() { - return this.cidr != null; + public A addToExcept(String... items) { + if (this.except == null) { + this.except = new ArrayList(); + } + for (String item : items) { + this.except.add(item); + } + return (A) this; } public A addToExcept(int index,String item) { - if (this.except == null) {this.except = new ArrayList();} + if (this.except == null) { + this.except = new ArrayList(); + } this.except.add(index, item); - return (A)this; - } - - public A setToExcept(int index,String item) { - if (this.except == null) {this.except = new ArrayList();} - this.except.set(index, item); return (A)this; - } - - public A addToExcept(java.lang.String... items) { - if (this.except == null) {this.except = new ArrayList();} - for (String item : items) {this.except.add(item);} return (A)this; + return (A) this; } - public A addAllToExcept(Collection items) { - if (this.except == null) {this.except = new ArrayList();} - for (String item : items) {this.except.add(item);} return (A)this; + protected void copyInstance(V1IPBlock instance) { + instance = instance != null ? instance : new V1IPBlock(); + if (instance != null) { + this.withCidr(instance.getCidr()); + this.withExcept(instance.getExcept()); + } } - public A removeFromExcept(java.lang.String... items) { - if (this.except == null) return (A)this; - for (String item : items) { this.except.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IPBlockFluent that = (V1IPBlockFluent) o; + if (!(Objects.equals(cidr, that.cidr))) { + return false; + } + if (!(Objects.equals(except, that.except))) { + return false; + } + return true; } - public A removeAllFromExcept(Collection items) { - if (this.except == null) return (A)this; - for (String item : items) { this.except.remove(item);} return (A)this; + public String getCidr() { + return this.cidr; } public List getExcept() { @@ -100,6 +112,14 @@ public String getMatchingExcept(Predicate predicate) { return null; } + public boolean hasCidr() { + return this.cidr != null; + } + + public boolean hasExcept() { + return this.except != null && !(this.except.isEmpty()); + } + public boolean hasMatchingExcept(Predicate predicate) { for (String item : except) { if (predicate.test(item)) { @@ -109,6 +129,59 @@ public boolean hasMatchingExcept(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(cidr, except); + } + + public A removeAllFromExcept(Collection items) { + if (this.except == null) { + return (A) this; + } + for (String item : items) { + this.except.remove(item); + } + return (A) this; + } + + public A removeFromExcept(String... items) { + if (this.except == null) { + return (A) this; + } + for (String item : items) { + this.except.remove(item); + } + return (A) this; + } + + public A setToExcept(int index,String item) { + if (this.except == null) { + this.except = new ArrayList(); + } + this.except.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cidr == null)) { + sb.append("cidr:"); + sb.append(cidr); + sb.append(","); + } + if (!(except == null) && !(except.isEmpty())) { + sb.append("except:"); + sb.append(except); + } + sb.append("}"); + return sb.toString(); + } + + public A withCidr(String cidr) { + this.cidr = cidr; + return (A) this; + } + public A withExcept(List except) { if (except != null) { this.except = new ArrayList(); @@ -121,7 +194,7 @@ public A withExcept(List except) { return (A) this; } - public A withExcept(java.lang.String... except) { + public A withExcept(String... except) { if (this.except != null) { this.except.clear(); _visitables.remove("except"); @@ -134,32 +207,4 @@ public A withExcept(java.lang.String... except) { return (A) this; } - public boolean hasExcept() { - return this.except != null && !this.except.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; - V1IPBlockFluent that = (V1IPBlockFluent) o; - if (!java.util.Objects.equals(cidr, that.cidr)) return false; - if (!java.util.Objects.equals(except, that.except)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(cidr, except, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (cidr != null) { sb.append("cidr:"); sb.append(cidr + ","); } - if (except != null && !except.isEmpty()) { sb.append("except:"); sb.append(except); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java index 335f4a97de..98b9054c57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ISCSIPersistentVolumeSourceBuilder extends V1ISCSIPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1ISCSIPersistentVolumeSourceFluent fluent; + public V1ISCSIPersistentVolumeSourceBuilder() { this(new V1ISCSIPersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent< this(fluent, new V1ISCSIPersistentVolumeSource()); } - public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent fluent,V1ISCSIPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ISCSIPersistentVolumeSourceFluent fluent; + public V1ISCSIPersistentVolumeSourceBuilder(V1ISCSIPersistentVolumeSourceFluent fluent,V1ISCSIPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ISCSIPersistentVolumeSource build() { V1ISCSIPersistentVolumeSource buildable = new V1ISCSIPersistentVolumeSource(); buildable.setChapAuthDiscovery(fluent.getChapAuthDiscovery()); @@ -37,5 +40,4 @@ public V1ISCSIPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java index bb0e0d9ca0..bf2293708a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java @@ -1,28 +1,26 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; +import java.lang.Boolean; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ISCSIPersistentVolumeSourceFluent> extends BaseFluent{ - public V1ISCSIPersistentVolumeSourceFluent() { - } - - public V1ISCSIPersistentVolumeSourceFluent(V1ISCSIPersistentVolumeSource instance) { - this.copyInstance(instance); - } +public class V1ISCSIPersistentVolumeSourceFluent> extends BaseFluent{ + private Boolean chapAuthDiscovery; private Boolean chapAuthSession; private String fsType; @@ -34,169 +32,209 @@ public V1ISCSIPersistentVolumeSourceFluent(V1ISCSIPersistentVolumeSource instanc private Boolean readOnly; private V1SecretReferenceBuilder secretRef; private String targetPortal; - - protected void copyInstance(V1ISCSIPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1ISCSIPersistentVolumeSource()); - if (instance != null) { - this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); - this.withChapAuthSession(instance.getChapAuthSession()); - this.withFsType(instance.getFsType()); - this.withInitiatorName(instance.getInitiatorName()); - this.withIqn(instance.getIqn()); - this.withIscsiInterface(instance.getIscsiInterface()); - this.withLun(instance.getLun()); - this.withPortals(instance.getPortals()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withTargetPortal(instance.getTargetPortal()); - } + + public V1ISCSIPersistentVolumeSourceFluent() { } - public Boolean getChapAuthDiscovery() { - return this.chapAuthDiscovery; + public V1ISCSIPersistentVolumeSourceFluent(V1ISCSIPersistentVolumeSource instance) { + this.copyInstance(instance); + } + + public A addAllToPortals(Collection items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; } - public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { - this.chapAuthDiscovery = chapAuthDiscovery; + public A addToPortals(String... items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } return (A) this; } - public boolean hasChapAuthDiscovery() { - return this.chapAuthDiscovery != null; + public A addToPortals(int index,String item) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + this.portals.add(index, item); + return (A) this; } - public Boolean getChapAuthSession() { - return this.chapAuthSession; + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public A withChapAuthSession(Boolean chapAuthSession) { - this.chapAuthSession = chapAuthSession; - return (A) this; + protected void copyInstance(V1ISCSIPersistentVolumeSource instance) { + instance = instance != null ? instance : new V1ISCSIPersistentVolumeSource(); + if (instance != null) { + this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); + this.withChapAuthSession(instance.getChapAuthSession()); + this.withFsType(instance.getFsType()); + this.withInitiatorName(instance.getInitiatorName()); + this.withIqn(instance.getIqn()); + this.withIscsiInterface(instance.getIscsiInterface()); + this.withLun(instance.getLun()); + this.withPortals(instance.getPortals()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withTargetPortal(instance.getTargetPortal()); + } } - public boolean hasChapAuthSession() { - return this.chapAuthSession != null; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public boolean hasFsType() { - return this.fsType != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ISCSIPersistentVolumeSourceFluent that = (V1ISCSIPersistentVolumeSourceFluent) o; + if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { + return false; + } + if (!(Objects.equals(chapAuthSession, that.chapAuthSession))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(initiatorName, that.initiatorName))) { + return false; + } + if (!(Objects.equals(iqn, that.iqn))) { + return false; + } + if (!(Objects.equals(iscsiInterface, that.iscsiInterface))) { + return false; + } + if (!(Objects.equals(lun, that.lun))) { + return false; + } + if (!(Objects.equals(portals, that.portals))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(targetPortal, that.targetPortal))) { + return false; + } + return true; } - public String getInitiatorName() { - return this.initiatorName; + public Boolean getChapAuthDiscovery() { + return this.chapAuthDiscovery; } - public A withInitiatorName(String initiatorName) { - this.initiatorName = initiatorName; - return (A) this; + public Boolean getChapAuthSession() { + return this.chapAuthSession; } - public boolean hasInitiatorName() { - return this.initiatorName != null; + public String getFirstPortal() { + return this.portals.get(0); } - public String getIqn() { - return this.iqn; + public String getFsType() { + return this.fsType; } - public A withIqn(String iqn) { - this.iqn = iqn; - return (A) this; + public String getInitiatorName() { + return this.initiatorName; } - public boolean hasIqn() { - return this.iqn != null; + public String getIqn() { + return this.iqn; } public String getIscsiInterface() { return this.iscsiInterface; } - public A withIscsiInterface(String iscsiInterface) { - this.iscsiInterface = iscsiInterface; - return (A) this; - } - - public boolean hasIscsiInterface() { - return this.iscsiInterface != null; + public String getLastPortal() { + return this.portals.get(portals.size() - 1); } public Integer getLun() { return this.lun; } - public A withLun(Integer lun) { - this.lun = lun; - return (A) this; - } - - public boolean hasLun() { - return this.lun != null; + public String getMatchingPortal(Predicate predicate) { + for (String item : portals) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addToPortals(int index,String item) { - if (this.portals == null) {this.portals = new ArrayList();} - this.portals.add(index, item); - return (A)this; + public String getPortal(int index) { + return this.portals.get(index); } - public A setToPortals(int index,String item) { - if (this.portals == null) {this.portals = new ArrayList();} - this.portals.set(index, item); return (A)this; + public List getPortals() { + return this.portals; } - public A addToPortals(java.lang.String... items) { - if (this.portals == null) {this.portals = new ArrayList();} - for (String item : items) {this.portals.add(item);} return (A)this; + public Boolean getReadOnly() { + return this.readOnly; } - public A addAllToPortals(Collection items) { - if (this.portals == null) {this.portals = new ArrayList();} - for (String item : items) {this.portals.add(item);} return (A)this; + public String getTargetPortal() { + return this.targetPortal; } - public A removeFromPortals(java.lang.String... items) { - if (this.portals == null) return (A)this; - for (String item : items) { this.portals.remove(item);} return (A)this; + public boolean hasChapAuthDiscovery() { + return this.chapAuthDiscovery != null; } - public A removeAllFromPortals(Collection items) { - if (this.portals == null) return (A)this; - for (String item : items) { this.portals.remove(item);} return (A)this; + public boolean hasChapAuthSession() { + return this.chapAuthSession != null; } - public List getPortals() { - return this.portals; + public boolean hasFsType() { + return this.fsType != null; } - public String getPortal(int index) { - return this.portals.get(index); + public boolean hasInitiatorName() { + return this.initiatorName != null; } - public String getFirstPortal() { - return this.portals.get(0); + public boolean hasIqn() { + return this.iqn != null; } - public String getLastPortal() { - return this.portals.get(portals.size() - 1); + public boolean hasIscsiInterface() { + return this.iscsiInterface != null; } - public String getMatchingPortal(Predicate predicate) { - for (String item : portals) { - if (predicate.test(item)) { - return item; - } - } - return null; + public boolean hasLun() { + return this.lun != null; } public boolean hasMatchingPortal(Predicate predicate) { @@ -208,159 +246,224 @@ public boolean hasMatchingPortal(Predicate predicate) { return false; } - public A withPortals(List portals) { - if (portals != null) { - this.portals = new ArrayList(); - for (String item : portals) { - this.addToPortals(item); - } - } else { - this.portals = null; - } - return (A) this; + public boolean hasPortals() { + return this.portals != null && !(this.portals.isEmpty()); } - public A withPortals(java.lang.String... portals) { - if (this.portals != null) { - this.portals.clear(); - _visitables.remove("portals"); - } - if (portals != null) { - for (String item : portals) { - this.addToPortals(item); - } - } - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } - public boolean hasPortals() { - return this.portals != null && !this.portals.isEmpty(); + public boolean hasSecretRef() { + return this.secretRef != null; } - public Boolean getReadOnly() { - return this.readOnly; + public boolean hasTargetPortal() { + return this.targetPortal != null; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public int hashCode() { + return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); } - public boolean hasReadOnly() { - return this.readOnly != null; + public A removeAllFromPortals(Collection items) { + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } + return (A) this; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public A removeFromPortals(String... items) { + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } + return (A) this; } - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); + public A setToPortals(int index,String item) { + if (this.portals == null) { + this.portals = new ArrayList(); } + this.portals.set(index, item); return (A) this; } - public boolean hasSecretRef() { - return this.secretRef != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(chapAuthDiscovery == null)) { + sb.append("chapAuthDiscovery:"); + sb.append(chapAuthDiscovery); + sb.append(","); + } + if (!(chapAuthSession == null)) { + sb.append("chapAuthSession:"); + sb.append(chapAuthSession); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(initiatorName == null)) { + sb.append("initiatorName:"); + sb.append(initiatorName); + sb.append(","); + } + if (!(iqn == null)) { + sb.append("iqn:"); + sb.append(iqn); + sb.append(","); + } + if (!(iscsiInterface == null)) { + sb.append("iscsiInterface:"); + sb.append(iscsiInterface); + sb.append(","); + } + if (!(lun == null)) { + sb.append("lun:"); + sb.append(lun); + sb.append(","); + } + if (!(portals == null) && !(portals.isEmpty())) { + sb.append("portals:"); + sb.append(portals); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(targetPortal == null)) { + sb.append("targetPortal:"); + sb.append(targetPortal); + } + sb.append("}"); + return sb.toString(); } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public A withChapAuthDiscovery() { + return withChapAuthDiscovery(true); } - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; + return (A) this; } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + public A withChapAuthSession() { + return withChapAuthSession(true); } - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public A withChapAuthSession(Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; + return (A) this; } - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public String getTargetPortal() { - return this.targetPortal; + public A withInitiatorName(String initiatorName) { + this.initiatorName = initiatorName; + return (A) this; } - public A withTargetPortal(String targetPortal) { - this.targetPortal = targetPortal; + public A withIqn(String iqn) { + this.iqn = iqn; return (A) this; } - public boolean hasTargetPortal() { - return this.targetPortal != null; + public A withIscsiInterface(String iscsiInterface) { + this.iscsiInterface = iscsiInterface; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ISCSIPersistentVolumeSourceFluent that = (V1ISCSIPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery)) return false; - if (!java.util.Objects.equals(chapAuthSession, that.chapAuthSession)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(initiatorName, that.initiatorName)) return false; - if (!java.util.Objects.equals(iqn, that.iqn)) return false; - if (!java.util.Objects.equals(iscsiInterface, that.iscsiInterface)) return false; - if (!java.util.Objects.equals(lun, that.lun)) return false; - if (!java.util.Objects.equals(portals, that.portals)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(targetPortal, that.targetPortal)) return false; - return true; + public A withLun(Integer lun) { + this.lun = lun; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal, super.hashCode()); + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (chapAuthDiscovery != null) { sb.append("chapAuthDiscovery:"); sb.append(chapAuthDiscovery + ","); } - if (chapAuthSession != null) { sb.append("chapAuthSession:"); sb.append(chapAuthSession + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (initiatorName != null) { sb.append("initiatorName:"); sb.append(initiatorName + ","); } - if (iqn != null) { sb.append("iqn:"); sb.append(iqn + ","); } - if (iscsiInterface != null) { sb.append("iscsiInterface:"); sb.append(iscsiInterface + ","); } - if (lun != null) { sb.append("lun:"); sb.append(lun + ","); } - if (portals != null && !portals.isEmpty()) { sb.append("portals:"); sb.append(portals + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (targetPortal != null) { sb.append("targetPortal:"); sb.append(targetPortal); } - sb.append("}"); - return sb.toString(); + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); } - public A withChapAuthDiscovery() { - return withChapAuthDiscovery(true); + public A withPortals(List portals) { + if (portals != null) { + this.portals = new ArrayList(); + for (String item : portals) { + this.addToPortals(item); + } + } else { + this.portals = null; + } + return (A) this; } - public A withChapAuthSession() { - return withChapAuthSession(true); + public A withPortals(String... portals) { + if (this.portals != null) { + this.portals.clear(); + _visitables.remove("portals"); + } + if (portals != null) { + for (String item : portals) { + this.addToPortals(item); + } + } + return (A) this; } public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withTargetPortal(String targetPortal) { + this.targetPortal = targetPortal; + return (A) this; + } public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1ISCSIPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -369,7 +472,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java index 1a68f91b10..fb3aa103fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ISCSIVolumeSourceBuilder extends V1ISCSIVolumeSourceFluent implements VisitableBuilder{ + + V1ISCSIVolumeSourceFluent fluent; + public V1ISCSIVolumeSourceBuilder() { this(new V1ISCSIVolumeSource()); } @@ -10,17 +14,16 @@ public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent) { this(fluent, new V1ISCSIVolumeSource()); } - public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent,V1ISCSIVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ISCSIVolumeSourceFluent fluent; + public V1ISCSIVolumeSourceBuilder(V1ISCSIVolumeSourceFluent fluent,V1ISCSIVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ISCSIVolumeSource build() { V1ISCSIVolumeSource buildable = new V1ISCSIVolumeSource(); buildable.setChapAuthDiscovery(fluent.getChapAuthDiscovery()); @@ -37,5 +40,4 @@ public V1ISCSIVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java index 25e08b2047..f487bca4fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java @@ -1,28 +1,26 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; +import java.lang.Boolean; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ISCSIVolumeSourceFluent> extends BaseFluent{ - public V1ISCSIVolumeSourceFluent() { - } - - public V1ISCSIVolumeSourceFluent(V1ISCSIVolumeSource instance) { - this.copyInstance(instance); - } +public class V1ISCSIVolumeSourceFluent> extends BaseFluent{ + private Boolean chapAuthDiscovery; private Boolean chapAuthSession; private String fsType; @@ -34,169 +32,209 @@ public V1ISCSIVolumeSourceFluent(V1ISCSIVolumeSource instance) { private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; private String targetPortal; - - protected void copyInstance(V1ISCSIVolumeSource instance) { - instance = (instance != null ? instance : new V1ISCSIVolumeSource()); - if (instance != null) { - this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); - this.withChapAuthSession(instance.getChapAuthSession()); - this.withFsType(instance.getFsType()); - this.withInitiatorName(instance.getInitiatorName()); - this.withIqn(instance.getIqn()); - this.withIscsiInterface(instance.getIscsiInterface()); - this.withLun(instance.getLun()); - this.withPortals(instance.getPortals()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withTargetPortal(instance.getTargetPortal()); - } + + public V1ISCSIVolumeSourceFluent() { } - public Boolean getChapAuthDiscovery() { - return this.chapAuthDiscovery; + public V1ISCSIVolumeSourceFluent(V1ISCSIVolumeSource instance) { + this.copyInstance(instance); + } + + public A addAllToPortals(Collection items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } + return (A) this; } - public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { - this.chapAuthDiscovery = chapAuthDiscovery; + public A addToPortals(String... items) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + for (String item : items) { + this.portals.add(item); + } return (A) this; } - public boolean hasChapAuthDiscovery() { - return this.chapAuthDiscovery != null; + public A addToPortals(int index,String item) { + if (this.portals == null) { + this.portals = new ArrayList(); + } + this.portals.add(index, item); + return (A) this; } - public Boolean getChapAuthSession() { - return this.chapAuthSession; + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public A withChapAuthSession(Boolean chapAuthSession) { - this.chapAuthSession = chapAuthSession; - return (A) this; + protected void copyInstance(V1ISCSIVolumeSource instance) { + instance = instance != null ? instance : new V1ISCSIVolumeSource(); + if (instance != null) { + this.withChapAuthDiscovery(instance.getChapAuthDiscovery()); + this.withChapAuthSession(instance.getChapAuthSession()); + this.withFsType(instance.getFsType()); + this.withInitiatorName(instance.getInitiatorName()); + this.withIqn(instance.getIqn()); + this.withIscsiInterface(instance.getIscsiInterface()); + this.withLun(instance.getLun()); + this.withPortals(instance.getPortals()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withTargetPortal(instance.getTargetPortal()); + } } - public boolean hasChapAuthSession() { - return this.chapAuthSession != null; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public boolean hasFsType() { - return this.fsType != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ISCSIVolumeSourceFluent that = (V1ISCSIVolumeSourceFluent) o; + if (!(Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery))) { + return false; + } + if (!(Objects.equals(chapAuthSession, that.chapAuthSession))) { + return false; + } + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(initiatorName, that.initiatorName))) { + return false; + } + if (!(Objects.equals(iqn, that.iqn))) { + return false; + } + if (!(Objects.equals(iscsiInterface, that.iscsiInterface))) { + return false; + } + if (!(Objects.equals(lun, that.lun))) { + return false; + } + if (!(Objects.equals(portals, that.portals))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(targetPortal, that.targetPortal))) { + return false; + } + return true; } - public String getInitiatorName() { - return this.initiatorName; + public Boolean getChapAuthDiscovery() { + return this.chapAuthDiscovery; } - public A withInitiatorName(String initiatorName) { - this.initiatorName = initiatorName; - return (A) this; + public Boolean getChapAuthSession() { + return this.chapAuthSession; } - public boolean hasInitiatorName() { - return this.initiatorName != null; + public String getFirstPortal() { + return this.portals.get(0); } - public String getIqn() { - return this.iqn; + public String getFsType() { + return this.fsType; } - public A withIqn(String iqn) { - this.iqn = iqn; - return (A) this; + public String getInitiatorName() { + return this.initiatorName; } - public boolean hasIqn() { - return this.iqn != null; + public String getIqn() { + return this.iqn; } public String getIscsiInterface() { return this.iscsiInterface; } - public A withIscsiInterface(String iscsiInterface) { - this.iscsiInterface = iscsiInterface; - return (A) this; - } - - public boolean hasIscsiInterface() { - return this.iscsiInterface != null; + public String getLastPortal() { + return this.portals.get(portals.size() - 1); } public Integer getLun() { return this.lun; } - public A withLun(Integer lun) { - this.lun = lun; - return (A) this; - } - - public boolean hasLun() { - return this.lun != null; + public String getMatchingPortal(Predicate predicate) { + for (String item : portals) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A addToPortals(int index,String item) { - if (this.portals == null) {this.portals = new ArrayList();} - this.portals.add(index, item); - return (A)this; + public String getPortal(int index) { + return this.portals.get(index); } - public A setToPortals(int index,String item) { - if (this.portals == null) {this.portals = new ArrayList();} - this.portals.set(index, item); return (A)this; + public List getPortals() { + return this.portals; } - public A addToPortals(java.lang.String... items) { - if (this.portals == null) {this.portals = new ArrayList();} - for (String item : items) {this.portals.add(item);} return (A)this; + public Boolean getReadOnly() { + return this.readOnly; } - public A addAllToPortals(Collection items) { - if (this.portals == null) {this.portals = new ArrayList();} - for (String item : items) {this.portals.add(item);} return (A)this; + public String getTargetPortal() { + return this.targetPortal; } - public A removeFromPortals(java.lang.String... items) { - if (this.portals == null) return (A)this; - for (String item : items) { this.portals.remove(item);} return (A)this; + public boolean hasChapAuthDiscovery() { + return this.chapAuthDiscovery != null; } - public A removeAllFromPortals(Collection items) { - if (this.portals == null) return (A)this; - for (String item : items) { this.portals.remove(item);} return (A)this; + public boolean hasChapAuthSession() { + return this.chapAuthSession != null; } - public List getPortals() { - return this.portals; + public boolean hasFsType() { + return this.fsType != null; } - public String getPortal(int index) { - return this.portals.get(index); + public boolean hasInitiatorName() { + return this.initiatorName != null; } - public String getFirstPortal() { - return this.portals.get(0); + public boolean hasIqn() { + return this.iqn != null; } - public String getLastPortal() { - return this.portals.get(portals.size() - 1); + public boolean hasIscsiInterface() { + return this.iscsiInterface != null; } - public String getMatchingPortal(Predicate predicate) { - for (String item : portals) { - if (predicate.test(item)) { - return item; - } - } - return null; + public boolean hasLun() { + return this.lun != null; } public boolean hasMatchingPortal(Predicate predicate) { @@ -208,159 +246,224 @@ public boolean hasMatchingPortal(Predicate predicate) { return false; } - public A withPortals(List portals) { - if (portals != null) { - this.portals = new ArrayList(); - for (String item : portals) { - this.addToPortals(item); - } - } else { - this.portals = null; - } - return (A) this; + public boolean hasPortals() { + return this.portals != null && !(this.portals.isEmpty()); } - public A withPortals(java.lang.String... portals) { - if (this.portals != null) { - this.portals.clear(); - _visitables.remove("portals"); - } - if (portals != null) { - for (String item : portals) { - this.addToPortals(item); - } - } - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } - public boolean hasPortals() { - return this.portals != null && !this.portals.isEmpty(); + public boolean hasSecretRef() { + return this.secretRef != null; } - public Boolean getReadOnly() { - return this.readOnly; + public boolean hasTargetPortal() { + return this.targetPortal != null; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public int hashCode() { + return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); } - public boolean hasReadOnly() { - return this.readOnly != null; + public A removeAllFromPortals(Collection items) { + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } + return (A) this; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public A removeFromPortals(String... items) { + if (this.portals == null) { + return (A) this; + } + for (String item : items) { + this.portals.remove(item); + } + return (A) this; } - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); + public A setToPortals(int index,String item) { + if (this.portals == null) { + this.portals = new ArrayList(); } + this.portals.set(index, item); return (A) this; } - public boolean hasSecretRef() { - return this.secretRef != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(chapAuthDiscovery == null)) { + sb.append("chapAuthDiscovery:"); + sb.append(chapAuthDiscovery); + sb.append(","); + } + if (!(chapAuthSession == null)) { + sb.append("chapAuthSession:"); + sb.append(chapAuthSession); + sb.append(","); + } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(initiatorName == null)) { + sb.append("initiatorName:"); + sb.append(initiatorName); + sb.append(","); + } + if (!(iqn == null)) { + sb.append("iqn:"); + sb.append(iqn); + sb.append(","); + } + if (!(iscsiInterface == null)) { + sb.append("iscsiInterface:"); + sb.append(iscsiInterface); + sb.append(","); + } + if (!(lun == null)) { + sb.append("lun:"); + sb.append(lun); + sb.append(","); + } + if (!(portals == null) && !(portals.isEmpty())) { + sb.append("portals:"); + sb.append(portals); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(targetPortal == null)) { + sb.append("targetPortal:"); + sb.append(targetPortal); + } + sb.append("}"); + return sb.toString(); } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public A withChapAuthDiscovery() { + return withChapAuthDiscovery(true); } - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + public A withChapAuthDiscovery(Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; + return (A) this; } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + public A withChapAuthSession() { + return withChapAuthSession(true); } - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public A withChapAuthSession(Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; + return (A) this; } - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public String getTargetPortal() { - return this.targetPortal; + public A withInitiatorName(String initiatorName) { + this.initiatorName = initiatorName; + return (A) this; } - public A withTargetPortal(String targetPortal) { - this.targetPortal = targetPortal; + public A withIqn(String iqn) { + this.iqn = iqn; return (A) this; } - public boolean hasTargetPortal() { - return this.targetPortal != null; + public A withIscsiInterface(String iscsiInterface) { + this.iscsiInterface = iscsiInterface; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ISCSIVolumeSourceFluent that = (V1ISCSIVolumeSourceFluent) o; - if (!java.util.Objects.equals(chapAuthDiscovery, that.chapAuthDiscovery)) return false; - if (!java.util.Objects.equals(chapAuthSession, that.chapAuthSession)) return false; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(initiatorName, that.initiatorName)) return false; - if (!java.util.Objects.equals(iqn, that.iqn)) return false; - if (!java.util.Objects.equals(iscsiInterface, that.iscsiInterface)) return false; - if (!java.util.Objects.equals(lun, that.lun)) return false; - if (!java.util.Objects.equals(portals, that.portals)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(targetPortal, that.targetPortal)) return false; - return true; + public A withLun(Integer lun) { + this.lun = lun; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal, super.hashCode()); + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (chapAuthDiscovery != null) { sb.append("chapAuthDiscovery:"); sb.append(chapAuthDiscovery + ","); } - if (chapAuthSession != null) { sb.append("chapAuthSession:"); sb.append(chapAuthSession + ","); } - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (initiatorName != null) { sb.append("initiatorName:"); sb.append(initiatorName + ","); } - if (iqn != null) { sb.append("iqn:"); sb.append(iqn + ","); } - if (iscsiInterface != null) { sb.append("iscsiInterface:"); sb.append(iscsiInterface + ","); } - if (lun != null) { sb.append("lun:"); sb.append(lun + ","); } - if (portals != null && !portals.isEmpty()) { sb.append("portals:"); sb.append(portals + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (targetPortal != null) { sb.append("targetPortal:"); sb.append(targetPortal); } - sb.append("}"); - return sb.toString(); + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); } - public A withChapAuthDiscovery() { - return withChapAuthDiscovery(true); + public A withPortals(List portals) { + if (portals != null) { + this.portals = new ArrayList(); + for (String item : portals) { + this.addToPortals(item); + } + } else { + this.portals = null; + } + return (A) this; } - public A withChapAuthSession() { - return withChapAuthSession(true); + public A withPortals(String... portals) { + if (this.portals != null) { + this.portals.clear(); + _visitables.remove("portals"); + } + if (portals != null) { + for (String item : portals) { + this.addToPortals(item); + } + } + return (A) this; } public A withReadOnly() { return withReadOnly(true); } + + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; + } + + public A withTargetPortal(String targetPortal) { + this.targetPortal = targetPortal; + return (A) this; + } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1ISCSIVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -369,7 +472,5 @@ public N endSecretRef() { 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..b4ea5f79ea --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ImageVolumeSourceBuilder extends V1ImageVolumeSourceFluent implements VisitableBuilder{ + + V1ImageVolumeSourceFluent fluent; + + public V1ImageVolumeSourceBuilder() { + this(new V1ImageVolumeSource()); + } + + public V1ImageVolumeSourceBuilder(V1ImageVolumeSourceFluent fluent) { + this(fluent, new V1ImageVolumeSource()); + } + + public V1ImageVolumeSourceBuilder(V1ImageVolumeSource instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ImageVolumeSourceBuilder(V1ImageVolumeSourceFluent fluent,V1ImageVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..95265f939b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java @@ -0,0 +1,100 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ImageVolumeSourceFluent> extends BaseFluent{ + + private String pullPolicy; + private String reference; + + public V1ImageVolumeSourceFluent() { + } + + public V1ImageVolumeSourceFluent(V1ImageVolumeSource instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1ImageVolumeSource instance) { + instance = instance != null ? instance : new V1ImageVolumeSource(); + if (instance != null) { + this.withPullPolicy(instance.getPullPolicy()); + this.withReference(instance.getReference()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ImageVolumeSourceFluent that = (V1ImageVolumeSourceFluent) o; + if (!(Objects.equals(pullPolicy, that.pullPolicy))) { + return false; + } + if (!(Objects.equals(reference, that.reference))) { + return false; + } + return true; + } + + public String getPullPolicy() { + return this.pullPolicy; + } + + public String getReference() { + return this.reference; + } + + public boolean hasPullPolicy() { + return this.pullPolicy != null; + } + + public boolean hasReference() { + return this.reference != null; + } + + public int hashCode() { + return Objects.hash(pullPolicy, reference); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(pullPolicy == null)) { + sb.append("pullPolicy:"); + sb.append(pullPolicy); + sb.append(","); + } + if (!(reference == null)) { + sb.append("reference:"); + sb.append(reference); + } + sb.append("}"); + return sb.toString(); + } + + public A withPullPolicy(String pullPolicy) { + this.pullPolicy = pullPolicy; + return (A) this; + } + + public A withReference(String reference) { + this.reference = reference; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java index 55903fef64..57a03cef55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressBackendBuilder extends V1IngressBackendFluent implements VisitableBuilder{ + + V1IngressBackendFluent fluent; + public V1IngressBackendBuilder() { this(new V1IngressBackend()); } @@ -10,17 +14,16 @@ public V1IngressBackendBuilder(V1IngressBackendFluent fluent) { this(fluent, new V1IngressBackend()); } - public V1IngressBackendBuilder(V1IngressBackendFluent fluent,V1IngressBackend instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressBackendBuilder(V1IngressBackend instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressBackendFluent fluent; + public V1IngressBackendBuilder(V1IngressBackendFluent fluent,V1IngressBackend instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressBackend build() { V1IngressBackend buildable = new V1IngressBackend(); buildable.setResource(fluent.buildResource()); @@ -28,5 +31,4 @@ public V1IngressBackend build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java index abb82615fe..4ffe2ebe28 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java @@ -1,141 +1,165 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressBackendFluent> extends BaseFluent{ +public class V1IngressBackendFluent> extends BaseFluent{ + + private V1TypedLocalObjectReferenceBuilder resource; + private V1IngressServiceBackendBuilder service; + public V1IngressBackendFluent() { } public V1IngressBackendFluent(V1IngressBackend instance) { this.copyInstance(instance); } - private V1TypedLocalObjectReferenceBuilder resource; - private V1IngressServiceBackendBuilder service; - - protected void copyInstance(V1IngressBackend instance) { - instance = (instance != null ? instance : new V1IngressBackend()); - if (instance != null) { - this.withResource(instance.getResource()); - this.withService(instance.getService()); - } - } - + public V1TypedLocalObjectReference buildResource() { return this.resource != null ? this.resource.build() : null; } - public A withResource(V1TypedLocalObjectReference resource) { - this._visitables.remove("resource"); - if (resource != null) { - this.resource = new V1TypedLocalObjectReferenceBuilder(resource); - this._visitables.get("resource").add(this.resource); - } else { - this.resource = null; - this._visitables.get("resource").remove(this.resource); - } - return (A) this; + public V1IngressServiceBackend buildService() { + return this.service != null ? this.service.build() : null; } - public boolean hasResource() { - return this.resource != null; + protected void copyInstance(V1IngressBackend instance) { + instance = instance != null ? instance : new V1IngressBackend(); + if (instance != null) { + this.withResource(instance.getResource()); + this.withService(instance.getService()); + } } - public ResourceNested withNewResource() { - return new ResourceNested(null); + public ResourceNested editOrNewResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); } - public ResourceNested withNewResourceLike(V1TypedLocalObjectReference item) { - return new ResourceNested(item); + public ResourceNested editOrNewResourceLike(V1TypedLocalObjectReference item) { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } - public ResourceNested editResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(null)); + public ServiceNested editOrNewService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(new V1IngressServiceBackendBuilder().build())); } - public ResourceNested editOrNewResource() { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); + public ServiceNested editOrNewServiceLike(V1IngressServiceBackend item) { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(item)); } - public ResourceNested editOrNewResourceLike(V1TypedLocalObjectReference item) { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(item)); + public ResourceNested editResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); } - public V1IngressServiceBackend buildService() { - return this.service != null ? this.service.build() : null; + public ServiceNested editService() { + return this.withNewServiceLike(Optional.ofNullable(this.buildService()).orElse(null)); } - public A withService(V1IngressServiceBackend service) { - this._visitables.remove("service"); - if (service != null) { - this.service = new V1IngressServiceBackendBuilder(service); - this._visitables.get("service").add(this.service); - } else { - this.service = null; - this._visitables.get("service").remove(this.service); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressBackendFluent that = (V1IngressBackendFluent) o; + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(service, that.service))) { + return false; + } + return true; + } + + public boolean hasResource() { + return this.resource != null; } public boolean hasService() { return this.service != null; } - public ServiceNested withNewService() { - return new ServiceNested(null); + public int hashCode() { + return Objects.hash(resource, service); } - public ServiceNested withNewServiceLike(V1IngressServiceBackend item) { - return new ServiceNested(item); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(service == null)) { + sb.append("service:"); + sb.append(service); + } + sb.append("}"); + return sb.toString(); } - public ServiceNested editService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(null)); + public ResourceNested withNewResource() { + return new ResourceNested(null); } - public ServiceNested editOrNewService() { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(new V1IngressServiceBackendBuilder().build())); + public ResourceNested withNewResourceLike(V1TypedLocalObjectReference item) { + return new ResourceNested(item); } - public ServiceNested editOrNewServiceLike(V1IngressServiceBackend item) { - return withNewServiceLike(java.util.Optional.ofNullable(buildService()).orElse(item)); + public ServiceNested withNewService() { + return new ServiceNested(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; - V1IngressBackendFluent that = (V1IngressBackendFluent) o; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(service, that.service)) return false; - return true; + public ServiceNested withNewServiceLike(V1IngressServiceBackend item) { + return new ServiceNested(item); } - public int hashCode() { - return java.util.Objects.hash(resource, service, super.hashCode()); + public A withResource(V1TypedLocalObjectReference resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V1TypedLocalObjectReferenceBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this.resource = null; + this._visitables.get("resource").remove(this.resource); + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (service != null) { sb.append("service:"); sb.append(service); } - sb.append("}"); - return sb.toString(); + public A withService(V1IngressServiceBackend service) { + this._visitables.remove("service"); + if (service != null) { + this.service = new V1IngressServiceBackendBuilder(service); + this._visitables.get("service").add(this.service); + } else { + this.service = null; + this._visitables.get("service").remove(this.service); + } + return (A) this; } public class ResourceNested extends V1TypedLocalObjectReferenceFluent> implements Nested{ + + V1TypedLocalObjectReferenceBuilder builder; + ResourceNested(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } - V1TypedLocalObjectReferenceBuilder builder; - + public N and() { return (N) V1IngressBackendFluent.this.withResource(builder.build()); } @@ -144,14 +168,15 @@ public N endResource() { return and(); } - } public class ServiceNested extends V1IngressServiceBackendFluent> implements Nested{ + + V1IngressServiceBackendBuilder builder; + ServiceNested(V1IngressServiceBackend item) { this.builder = new V1IngressServiceBackendBuilder(this, item); } - V1IngressServiceBackendBuilder builder; - + public N and() { return (N) V1IngressBackendFluent.this.withService(builder.build()); } @@ -160,7 +185,5 @@ public N endService() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java index fdff52b0a2..6d24585c8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressBuilder extends V1IngressFluent implements VisitableBuilder{ + + V1IngressFluent fluent; + public V1IngressBuilder() { this(new V1Ingress()); } @@ -10,17 +14,16 @@ public V1IngressBuilder(V1IngressFluent fluent) { this(fluent, new V1Ingress()); } - public V1IngressBuilder(V1IngressFluent fluent,V1Ingress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressBuilder(V1Ingress instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressFluent fluent; + public V1IngressBuilder(V1IngressFluent fluent,V1Ingress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Ingress build() { V1Ingress buildable = new V1Ingress(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1Ingress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java index ac6e989035..ca54180a7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressClassBuilder extends V1IngressClassFluent implements VisitableBuilder{ + + V1IngressClassFluent fluent; + public V1IngressClassBuilder() { this(new V1IngressClass()); } @@ -10,17 +14,16 @@ public V1IngressClassBuilder(V1IngressClassFluent fluent) { this(fluent, new V1IngressClass()); } - public V1IngressClassBuilder(V1IngressClassFluent fluent,V1IngressClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressClassBuilder(V1IngressClass instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressClassFluent fluent; + public V1IngressClassBuilder(V1IngressClassFluent fluent,V1IngressClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressClass build() { V1IngressClass buildable = new V1IngressClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1IngressClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java index feebf50abc..24e8543977 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressClassFluent> extends BaseFluent{ +public class V1IngressClassFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1IngressClassSpecBuilder spec; + public V1IngressClassFluent() { } public V1IngressClassFluent(V1IngressClass instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1IngressClassSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1IngressClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1IngressClass instance) { - instance = (instance != null ? instance : new V1IngressClass()); + instance = instance != null ? instance : new V1IngressClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1IngressClassSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1IngressClassSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressClassFluent that = (V1IngressClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1IngressClassSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1IngressClassSpec item) { + return new SpecNested(item); } public A withSpec(V1IngressClassSpec spec) { @@ -113,63 +198,14 @@ public A withSpec(V1IngressClassSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1IngressClassSpec 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 V1IngressClassSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1IngressClassSpec 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; - V1IngressClassFluent that = (V1IngressClassFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1IngressClassFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1IngressClassSpecFluent> implements Nested{ + + V1IngressClassSpecBuilder builder; + SpecNested(V1IngressClassSpec item) { this.builder = new V1IngressClassSpecBuilder(this, item); } - V1IngressClassSpecBuilder builder; - + public N and() { return (N) V1IngressClassFluent.this.withSpec(builder.build()); } @@ -194,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java index 8621a9806c..617eb951f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressClassListBuilder extends V1IngressClassListFluent implements VisitableBuilder{ + + V1IngressClassListFluent fluent; + public V1IngressClassListBuilder() { this(new V1IngressClassList()); } @@ -10,17 +14,16 @@ public V1IngressClassListBuilder(V1IngressClassListFluent fluent) { this(fluent, new V1IngressClassList()); } - public V1IngressClassListBuilder(V1IngressClassListFluent fluent,V1IngressClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressClassListBuilder(V1IngressClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressClassListFluent fluent; + public V1IngressClassListBuilder(V1IngressClassListFluent fluent,V1IngressClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressClassList build() { V1IngressClassList buildable = new V1IngressClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1IngressClassList build() { return buildable; } - } \ 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..e1fa933ca0 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressClassListFluent> extends BaseFluent{ +public class V1IngressClassListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1IngressClassListFluent() { } public V1IngressClassListFluent(V1IngressClassList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1IngressClassList instance) { - instance = (instance != null ? instance : new V1IngressClassList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1IngressClass item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1IngressClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1IngressClass item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1IngressClass buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1IngressClass buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { - if (this.items == null) return (A)this; - for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1IngressClass buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1IngressClass item : items) {V1IngressClassBuilder builder = new V1IngressClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1IngressClass buildMatchingItem(Predicate predicate) { + for (V1IngressClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1IngressClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1IngressClassList instance) { + instance = instance != null ? instance : new V1IngressClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1IngressClass buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1IngressClass buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1IngressClass buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressClassListFluent that = (V1IngressClassListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1IngressClass buildMatchingItem(Predicate predicate) { - for (V1IngressClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1IngressClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1IngressClass item : items) { + V1IngressClassBuilder builder = new V1IngressClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1IngressClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1IngressClass item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1IngressClass... items) { + public A withItems(V1IngressClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1IngressClass... items) return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1IngressClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1IngressClass 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1IngressClassFluent> implements Nested{ - 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; - V1IngressClassListFluent that = (V1IngressClassListFluent) 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()); - } + V1IngressClassBuilder builder; + int index; - 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 V1IngressClassFluent> implements Nested{ ItemsNested(int index,V1IngressClass item) { this.index = index; this.builder = new V1IngressClassBuilder(this, item); } - V1IngressClassBuilder builder; - int index; - + public N and() { - return (N) V1IngressClassListFluent.this.setToItems(index,builder.build()); + return (N) V1IngressClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1IngressClassListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java index 68a85587d5..177e135a09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressClassParametersReferenceBuilder extends V1IngressClassParametersReferenceFluent implements VisitableBuilder{ + + V1IngressClassParametersReferenceFluent fluent; + public V1IngressClassParametersReferenceBuilder() { this(new V1IngressClassParametersReference()); } @@ -10,17 +14,16 @@ public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenc this(fluent, new V1IngressClassParametersReference()); } - public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenceFluent fluent,V1IngressClassParametersReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReference instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressClassParametersReferenceFluent fluent; + public V1IngressClassParametersReferenceBuilder(V1IngressClassParametersReferenceFluent fluent,V1IngressClassParametersReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressClassParametersReference build() { V1IngressClassParametersReference buildable = new V1IngressClassParametersReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -31,5 +34,4 @@ public V1IngressClassParametersReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java index 56a9dc7edb..6a62d7975c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java @@ -1,131 +1,169 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressClassParametersReferenceFluent> extends BaseFluent{ - public V1IngressClassParametersReferenceFluent() { - } - - public V1IngressClassParametersReferenceFluent(V1IngressClassParametersReference instance) { - this.copyInstance(instance); - } +public class V1IngressClassParametersReferenceFluent> extends BaseFluent{ + private String apiGroup; private String kind; private String name; private String namespace; private String scope; + + public V1IngressClassParametersReferenceFluent() { + } + public V1IngressClassParametersReferenceFluent(V1IngressClassParametersReference instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1IngressClassParametersReference instance) { - instance = (instance != null ? instance : new V1IngressClassParametersReference()); + instance = instance != null ? instance : new V1IngressClassParametersReference(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withScope(instance.getScope()); - } - } - - public String getApiGroup() { - return this.apiGroup; + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withScope(instance.getScope()); + } } - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressClassParametersReferenceFluent that = (V1IngressClassParametersReferenceFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + return true; } - public boolean hasApiGroup() { - return this.apiGroup != null; + public String getApiGroup() { + return this.apiGroup; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public String getName() { + return this.name; } - public boolean hasKind() { - return this.kind != null; + public String getNamespace() { + return this.namespace; } - public String getName() { - return this.name; + public String getScope() { + return this.scope; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasName() { return this.name != null; } - public String getNamespace() { - return this.namespace; + public boolean hasNamespace() { + return this.namespace != null; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public boolean hasScope() { + return this.scope != null; } - public boolean hasNamespace() { - return this.namespace != null; + public int hashCode() { + return Objects.hash(apiGroup, kind, name, namespace, scope); } - public String getScope() { - return this.scope; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } + sb.append("}"); + return sb.toString(); } - public A withScope(String scope) { - this.scope = scope; + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; return (A) this; } - public boolean hasScope() { - return this.scope != null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1IngressClassParametersReferenceFluent that = (V1IngressClassParametersReferenceFluent) 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; - if (!java.util.Objects.equals(scope, that.scope)) return false; - return true; + public A withName(String name) { + this.name = name; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, namespace, scope, super.hashCode()); + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; } - 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 + ","); } - if (scope != null) { sb.append("scope:"); sb.append(scope); } - sb.append("}"); - return sb.toString(); + public A withScope(String scope) { + this.scope = scope; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java index 4c6e7df7c4..a9df2c329a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressClassSpecBuilder extends V1IngressClassSpecFluent implements VisitableBuilder{ + + V1IngressClassSpecFluent fluent; + public V1IngressClassSpecBuilder() { this(new V1IngressClassSpec()); } @@ -10,17 +14,16 @@ public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent) { this(fluent, new V1IngressClassSpec()); } - public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent,V1IngressClassSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressClassSpecBuilder(V1IngressClassSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressClassSpecFluent fluent; + public V1IngressClassSpecBuilder(V1IngressClassSpecFluent fluent,V1IngressClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressClassSpec build() { V1IngressClassSpec buildable = new V1IngressClassSpec(); buildable.setController(fluent.getController()); @@ -28,5 +31,4 @@ public V1IngressClassSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java index f98afff209..b3c0b741f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressClassSpecFluent> extends BaseFluent{ +public class V1IngressClassSpecFluent> extends BaseFluent{ + + private String controller; + private V1IngressClassParametersReferenceBuilder parameters; + public V1IngressClassSpecFluent() { } public V1IngressClassSpecFluent(V1IngressClassSpec instance) { this.copyInstance(instance); } - private String controller; - private V1IngressClassParametersReferenceBuilder parameters; + + public V1IngressClassParametersReference buildParameters() { + return this.parameters != null ? this.parameters.build() : null; + } protected void copyInstance(V1IngressClassSpec instance) { - instance = (instance != null ? instance : new V1IngressClassSpec()); + instance = instance != null ? instance : new V1IngressClassSpec(); if (instance != null) { - this.withController(instance.getController()); - this.withParameters(instance.getParameters()); - } - } - - public String getController() { - return this.controller; + this.withController(instance.getController()); + this.withParameters(instance.getParameters()); + } } - public A withController(String controller) { - this.controller = controller; - return (A) this; + public ParametersNested editOrNewParameters() { + return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(new V1IngressClassParametersReferenceBuilder().build())); } - public boolean hasController() { - return this.controller != null; + public ParametersNested editOrNewParametersLike(V1IngressClassParametersReference item) { + return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(item)); } - public V1IngressClassParametersReference buildParameters() { - return this.parameters != null ? this.parameters.build() : null; + public ParametersNested editParameters() { + return this.withNewParametersLike(Optional.ofNullable(this.buildParameters()).orElse(null)); } - public A withParameters(V1IngressClassParametersReference parameters) { - this._visitables.remove("parameters"); - if (parameters != null) { - this.parameters = new V1IngressClassParametersReferenceBuilder(parameters); - this._visitables.get("parameters").add(this.parameters); - } else { - this.parameters = null; - this._visitables.get("parameters").remove(this.parameters); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressClassSpecFluent that = (V1IngressClassSpecFluent) o; + if (!(Objects.equals(controller, that.controller))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; } - public boolean hasParameters() { - return this.parameters != null; + public String getController() { + return this.controller; } - public ParametersNested withNewParameters() { - return new ParametersNested(null); + public boolean hasController() { + return this.controller != null; } - public ParametersNested withNewParametersLike(V1IngressClassParametersReference item) { - return new ParametersNested(item); + public boolean hasParameters() { + return this.parameters != null; } - public ParametersNested editParameters() { - return withNewParametersLike(java.util.Optional.ofNullable(buildParameters()).orElse(null)); + public int hashCode() { + return Objects.hash(controller, parameters); } - public ParametersNested editOrNewParameters() { - return withNewParametersLike(java.util.Optional.ofNullable(buildParameters()).orElse(new V1IngressClassParametersReferenceBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(controller == null)) { + sb.append("controller:"); + sb.append(controller); + sb.append(","); + } + if (!(parameters == null)) { + sb.append("parameters:"); + sb.append(parameters); + } + sb.append("}"); + return sb.toString(); } - public ParametersNested editOrNewParametersLike(V1IngressClassParametersReference item) { - return withNewParametersLike(java.util.Optional.ofNullable(buildParameters()).orElse(item)); + public A withController(String controller) { + this.controller = controller; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1IngressClassSpecFluent that = (V1IngressClassSpecFluent) o; - if (!java.util.Objects.equals(controller, that.controller)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; - return true; + public ParametersNested withNewParameters() { + return new ParametersNested(null); } - public int hashCode() { - return java.util.Objects.hash(controller, parameters, super.hashCode()); + public ParametersNested withNewParametersLike(V1IngressClassParametersReference item) { + return new ParametersNested(item); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (controller != null) { sb.append("controller:"); sb.append(controller + ","); } - if (parameters != null) { sb.append("parameters:"); sb.append(parameters); } - sb.append("}"); - return sb.toString(); + public A withParameters(V1IngressClassParametersReference parameters) { + this._visitables.remove("parameters"); + if (parameters != null) { + this.parameters = new V1IngressClassParametersReferenceBuilder(parameters); + this._visitables.get("parameters").add(this.parameters); + } else { + this.parameters = null; + this._visitables.get("parameters").remove(this.parameters); + } + return (A) this; } public class ParametersNested extends V1IngressClassParametersReferenceFluent> implements Nested{ + + V1IngressClassParametersReferenceBuilder builder; + ParametersNested(V1IngressClassParametersReference item) { this.builder = new V1IngressClassParametersReferenceBuilder(this, item); } - V1IngressClassParametersReferenceBuilder builder; - + public N and() { return (N) V1IngressClassSpecFluent.this.withParameters(builder.build()); } @@ -117,7 +141,5 @@ public N endParameters() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java index 732f88eb0f..123e2081b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressFluent> extends BaseFluent{ +public class V1IngressFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1IngressSpecBuilder spec; + private V1IngressStatusBuilder status; + public V1IngressFluent() { } public V1IngressFluent(V1Ingress instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1IngressSpecBuilder spec; - private V1IngressStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1IngressSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1IngressStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1Ingress instance) { - instance = (instance != null ? instance : new V1Ingress()); + instance = instance != null ? instance : new V1Ingress(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1IngressSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1IngressSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1IngressStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1IngressStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressFluent that = (V1IngressFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1IngressSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1IngressSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1IngressStatus item) { + return new StatusNested(item); } public A withSpec(V1IngressSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1IngressSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1IngressSpec 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 V1IngressSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1IngressSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1IngressStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1IngressStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1IngressStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1IngressStatus 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 V1IngressStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1IngressStatus 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; - V1IngressFluent that = (V1IngressFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1IngressFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1IngressSpecFluent> implements Nested{ + + V1IngressSpecBuilder builder; + SpecNested(V1IngressSpec item) { this.builder = new V1IngressSpecBuilder(this, item); } - V1IngressSpecBuilder builder; - + public N and() { return (N) V1IngressFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1IngressStatusFluent> implements Nested{ + + V1IngressStatusBuilder builder; + StatusNested(V1IngressStatus item) { this.builder = new V1IngressStatusBuilder(this, item); } - V1IngressStatusBuilder builder; - + public N and() { return (N) V1IngressFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java index b12cf2c80d..18a13bcfcd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressListBuilder extends V1IngressListFluent implements VisitableBuilder{ + + V1IngressListFluent fluent; + public V1IngressListBuilder() { this(new V1IngressList()); } @@ -10,17 +14,16 @@ public V1IngressListBuilder(V1IngressListFluent fluent) { this(fluent, new V1IngressList()); } - public V1IngressListBuilder(V1IngressListFluent fluent,V1IngressList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressListBuilder(V1IngressList instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressListFluent fluent; + public V1IngressListBuilder(V1IngressListFluent fluent,V1IngressList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressList build() { V1IngressList buildable = new V1IngressList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1IngressList build() { return buildable; } - } \ No newline at end of file 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..c381ea649f 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressListFluent> extends BaseFluent{ +public class V1IngressListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1IngressListFluent() { } public V1IngressListFluent(V1IngressList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1IngressList instance) { - instance = (instance != null ? instance : new V1IngressList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Ingress item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Ingress... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Ingress item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Ingress buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Ingress... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Ingress buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Ingress... items) { - if (this.items == null) return (A)this; - for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Ingress buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Ingress item : items) {V1IngressBuilder builder = new V1IngressBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Ingress buildMatchingItem(Predicate predicate) { + for (V1IngressBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1IngressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1IngressList instance) { + instance = instance != null ? instance : new V1IngressList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Ingress buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Ingress buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Ingress buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressListFluent that = (V1IngressListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Ingress buildMatchingItem(Predicate predicate) { - for (V1IngressBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Ingress... items) { + if (this.items == null) { + return (A) this; + } + for (V1Ingress item : items) { + V1IngressBuilder builder = new V1IngressBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1IngressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Ingress item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Ingress... items) { + public A withItems(V1Ingress... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Ingress... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Ingress item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Ingress 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1IngressFluent> implements Nested{ - 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; - V1IngressListFluent that = (V1IngressListFluent) 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()); - } + V1IngressBuilder builder; + int index; - 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 V1IngressFluent> implements Nested{ ItemsNested(int index,V1Ingress item) { this.index = index; this.builder = new V1IngressBuilder(this, item); } - V1IngressBuilder builder; - int index; - + public N and() { - return (N) V1IngressListFluent.this.setToItems(index,builder.build()); + return (N) V1IngressListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1IngressListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java index 87fd0c369d..484c9a94b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressLoadBalancerIngressBuilder extends V1IngressLoadBalancerIngressFluent implements VisitableBuilder{ + + V1IngressLoadBalancerIngressFluent fluent; + public V1IngressLoadBalancerIngressBuilder() { this(new V1IngressLoadBalancerIngress()); } @@ -10,17 +14,16 @@ public V1IngressLoadBalancerIngressBuilder(V1IngressLoadBalancerIngressFluent this(fluent, new V1IngressLoadBalancerIngress()); } - public V1IngressLoadBalancerIngressBuilder(V1IngressLoadBalancerIngressFluent fluent,V1IngressLoadBalancerIngress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressLoadBalancerIngressBuilder(V1IngressLoadBalancerIngress instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressLoadBalancerIngressFluent fluent; + public V1IngressLoadBalancerIngressBuilder(V1IngressLoadBalancerIngressFluent fluent,V1IngressLoadBalancerIngress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressLoadBalancerIngress build() { V1IngressLoadBalancerIngress buildable = new V1IngressLoadBalancerIngress(); buildable.setHostname(fluent.getHostname()); @@ -29,5 +32,4 @@ public V1IngressLoadBalancerIngress build() { return buildable; } - } \ No newline at end of file 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..87eefce5d0 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 @@ -1,138 +1,190 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressLoadBalancerIngressFluent> extends BaseFluent{ +public class V1IngressLoadBalancerIngressFluent> extends BaseFluent{ + + private String hostname; + private String ip; + private ArrayList ports; + public V1IngressLoadBalancerIngressFluent() { } public V1IngressLoadBalancerIngressFluent(V1IngressLoadBalancerIngress instance) { this.copyInstance(instance); } - private String hostname; - private String ip; - private ArrayList ports; + + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; + } - protected void copyInstance(V1IngressLoadBalancerIngress instance) { - instance = (instance != null ? instance : new V1IngressLoadBalancerIngress()); - if (instance != null) { - this.withHostname(instance.getHostname()); - this.withIp(instance.getIp()); - this.withPorts(instance.getPorts()); - } + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public String getHostname() { - return this.hostname; + public PortsNested addNewPortLike(V1IngressPortStatus item) { + return new PortsNested(-1, item); } - public A withHostname(String hostname) { - this.hostname = hostname; + public A addToPorts(V1IngressPortStatus... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } return (A) this; } - public boolean hasHostname() { - return this.hostname != null; + 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(builder); + ports.add(index, builder); + } + return (A) this; } - public String getIp() { - return this.ip; + public V1IngressPortStatus buildFirstPort() { + return this.ports.get(0).build(); } - public A withIp(String ip) { - this.ip = ip; - return (A) this; + public V1IngressPortStatus buildLastPort() { + return this.ports.get(ports.size() - 1).build(); } - public boolean hasIp() { - return this.ip != null; + public V1IngressPortStatus buildMatchingPort(Predicate predicate) { + for (V1IngressPortStatusBuilder item : ports) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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);} - return (A)this; + public V1IngressPortStatus buildPort(int index) { + return this.ports.get(index).build(); } - 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);} - return (A)this; + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public A addToPorts(io.kubernetes.client.openapi.models.V1IngressPortStatus... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1IngressPortStatus item : items) {V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + protected void copyInstance(V1IngressLoadBalancerIngress instance) { + instance = instance != null ? instance : new V1IngressLoadBalancerIngress(); + if (instance != null) { + this.withHostname(instance.getHostname()); + this.withIp(instance.getIp()); + this.withPorts(instance.getPorts()); + } } - public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1IngressPortStatus item : items) {V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1IngressPortStatus... items) { - if (this.ports == null) return (A)this; - for (V1IngressPortStatus item : items) {V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1IngressPortStatus item : items) {V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1IngressPortStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - return (A)this; + return this.setNewPortLike(index, this.buildPort(index)); } - public List buildPorts() { - return this.ports != null ? build(ports) : null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressLoadBalancerIngressFluent that = (V1IngressLoadBalancerIngressFluent) o; + if (!(Objects.equals(hostname, that.hostname))) { + return false; + } + if (!(Objects.equals(ip, that.ip))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + return true; } - public V1IngressPortStatus buildPort(int index) { - return this.ports.get(index).build(); + public String getHostname() { + return this.hostname; } - public V1IngressPortStatus buildFirstPort() { - return this.ports.get(0).build(); + public String getIp() { + return this.ip; } - public V1IngressPortStatus buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + public boolean hasHostname() { + return this.hostname != null; } - public V1IngressPortStatus buildMatchingPort(Predicate predicate) { - for (V1IngressPortStatusBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public boolean hasIp() { + return this.ip != null; } public boolean hasMatchingPort(Predicate predicate) { @@ -144,116 +196,148 @@ public boolean hasMatchingPort(Predicate predicate) return false; } - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + + public int hashCode() { + return Objects.hash(hostname, ip, ports); + } + + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; } - if (ports != null) { - this.ports = new ArrayList(); - for (V1IngressPortStatus item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1IngressPortStatus... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); + public A removeFromPorts(V1IngressPortStatus... items) { + if (this.ports == null) { + return (A) this; } - if (ports != null) { - for (V1IngressPortStatus item : ports) { - this.addToPorts(item); - } + for (V1IngressPortStatus item : items) { + V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(V1IngressPortStatus item) { - return new PortsNested(-1, item); + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1IngressPortStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public PortsNested setNewPortLike(int index,V1IngressPortStatus item) { return new PortsNested(index, item); } - public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + 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").add(builder); + ports.set(index, builder); + } + return (A) this; } - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hostname == null)) { + sb.append("hostname:"); + sb.append(hostname); + sb.append(","); + } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + } + sb.append("}"); + return sb.toString(); } - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i=0;i ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (V1IngressPortStatus item : ports) { + this.addToPorts(item); + } + } else { + this.ports = null; + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (hostname != null) { sb.append("hostname:"); sb.append(hostname + ","); } - if (ip != null) { sb.append("ip:"); sb.append(ip + ","); } - if (ports != null && !ports.isEmpty()) { sb.append("ports:"); sb.append(ports); } - sb.append("}"); - return sb.toString(); + public A withPorts(V1IngressPortStatus... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (V1IngressPortStatus item : ports) { + this.addToPorts(item); + } + } + return (A) this; } public class PortsNested extends V1IngressPortStatusFluent> implements Nested{ + + V1IngressPortStatusBuilder builder; + int index; + PortsNested(int index,V1IngressPortStatus item) { this.index = index; this.builder = new V1IngressPortStatusBuilder(this, item); } - V1IngressPortStatusBuilder builder; - int index; - + public N and() { - return (N) V1IngressLoadBalancerIngressFluent.this.setToPorts(index,builder.build()); + return (N) V1IngressLoadBalancerIngressFluent.this.setToPorts(index, builder.build()); } public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java index bd5fed0a9a..5667d3d9e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressLoadBalancerStatusBuilder extends V1IngressLoadBalancerStatusFluent implements VisitableBuilder{ + + V1IngressLoadBalancerStatusFluent fluent; + public V1IngressLoadBalancerStatusBuilder() { this(new V1IngressLoadBalancerStatus()); } @@ -10,22 +14,20 @@ public V1IngressLoadBalancerStatusBuilder(V1IngressLoadBalancerStatusFluent f this(fluent, new V1IngressLoadBalancerStatus()); } - public V1IngressLoadBalancerStatusBuilder(V1IngressLoadBalancerStatusFluent fluent,V1IngressLoadBalancerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressLoadBalancerStatusBuilder(V1IngressLoadBalancerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressLoadBalancerStatusFluent fluent; + public V1IngressLoadBalancerStatusBuilder(V1IngressLoadBalancerStatusFluent fluent,V1IngressLoadBalancerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressLoadBalancerStatus build() { V1IngressLoadBalancerStatus buildable = new V1IngressLoadBalancerStatus(); buildable.setIngress(fluent.buildIngress()); return buildable; } - } \ No newline at end of file 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..afea17f9d7 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 @@ -1,83 +1,83 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressLoadBalancerStatusFluent> extends BaseFluent{ +public class V1IngressLoadBalancerStatusFluent> extends BaseFluent{ + + private ArrayList ingress; + public V1IngressLoadBalancerStatusFluent() { } public V1IngressLoadBalancerStatusFluent(V1IngressLoadBalancerStatus instance) { this.copyInstance(instance); } - private ArrayList ingress; - - protected void copyInstance(V1IngressLoadBalancerStatus instance) { - instance = (instance != null ? instance : new V1IngressLoadBalancerStatus()); - if (instance != null) { - this.withIngress(instance.getIngress()); - } - } - - 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);} - 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);} - return (A)this; + + public A addAllToIngress(Collection items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } - public A addToIngress(io.kubernetes.client.openapi.models.V1IngressLoadBalancerIngress... items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1IngressLoadBalancerIngress item : items) {V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + public IngressNested addNewIngress() { + return new IngressNested(-1, null); } - public A addAllToIngress(Collection items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1IngressLoadBalancerIngress item : items) {V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + public IngressNested addNewIngressLike(V1IngressLoadBalancerIngress item) { + return new IngressNested(-1, item); } - public A removeFromIngress(io.kubernetes.client.openapi.models.V1IngressLoadBalancerIngress... items) { - if (this.ingress == null) return (A)this; - for (V1IngressLoadBalancerIngress item : items) {V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + public A addToIngress(V1IngressLoadBalancerIngress... items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } - public A removeAllFromIngress(Collection items) { - if (this.ingress == null) return (A)this; - for (V1IngressLoadBalancerIngress item : items) {V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + 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(builder); + ingress.add(index, builder); + } + return (A) this; } - public A removeMatchingFromIngress(Predicate predicate) { - if (ingress == null) return (A) this; - final Iterator each = ingress.iterator(); - final List visitables = _visitables.get("ingress"); - while (each.hasNext()) { - V1IngressLoadBalancerIngressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1IngressLoadBalancerIngress buildFirstIngress() { + return this.ingress.get(0).build(); } public List buildIngress() { @@ -88,10 +88,6 @@ public V1IngressLoadBalancerIngress buildIngress(int index) { return this.ingress.get(index).build(); } - public V1IngressLoadBalancerIngress buildFirstIngress() { - return this.ingress.get(0).build(); - } - public V1IngressLoadBalancerIngress buildLastIngress() { return this.ingress.get(ingress.size() - 1).build(); } @@ -105,6 +101,70 @@ public V1IngressLoadBalancerIngress buildMatchingIngress(Predicate editFirstIngress() { + if (ingress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(0, this.buildIngress(0)); + } + + public IngressNested editIngress(int index) { + if (ingress.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); + } + + public IngressNested editLastIngress() { + int index = ingress.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); + } + + public IngressNested editMatchingIngress(Predicate predicate) { + int index = -1; + for (int i = 0;i < ingress.size();i++) { + if (predicate.test(ingress.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressLoadBalancerStatusFluent that = (V1IngressLoadBalancerStatusFluent) o; + if (!(Objects.equals(ingress, that.ingress))) { + return false; + } + return true; + } + + public boolean hasIngress() { + return this.ingress != null && !(this.ingress.isEmpty()); + } + public boolean hasMatchingIngress(Predicate predicate) { for (V1IngressLoadBalancerIngressBuilder item : ingress) { if (predicate.test(item)) { @@ -114,6 +174,80 @@ public boolean hasMatchingIngress(Predicate return false; } + public int hashCode() { + return Objects.hash(ingress); + } + + public A removeAllFromIngress(Collection items) { + if (this.ingress == null) { + return (A) this; + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; + } + + public A removeFromIngress(V1IngressLoadBalancerIngress... items) { + if (this.ingress == null) { + return (A) this; + } + for (V1IngressLoadBalancerIngress item : items) { + V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromIngress(Predicate predicate) { + if (ingress == null) { + return (A) this; + } + Iterator each = ingress.iterator(); + List visitables = _visitables.get("ingress"); + while (each.hasNext()) { + V1IngressLoadBalancerIngressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public IngressNested setNewIngressLike(int index,V1IngressLoadBalancerIngress item) { + return new IngressNested(index, item); + } + + 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").add(builder); + ingress.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(ingress == null) && !(ingress.isEmpty())) { + sb.append("ingress:"); + sb.append(ingress); + } + sb.append("}"); + return sb.toString(); + } + public A withIngress(List ingress) { if (this.ingress != null) { this._visitables.get("ingress").clear(); @@ -129,7 +263,7 @@ public A withIngress(List ingress) { return (A) this; } - public A withIngress(io.kubernetes.client.openapi.models.V1IngressLoadBalancerIngress... ingress) { + public A withIngress(V1IngressLoadBalancerIngress... ingress) { if (this.ingress != null) { this.ingress.clear(); _visitables.remove("ingress"); @@ -141,85 +275,23 @@ public A withIngress(io.kubernetes.client.openapi.models.V1IngressLoadBalancerIn } return (A) this; } + public class IngressNested extends V1IngressLoadBalancerIngressFluent> implements Nested{ - public boolean hasIngress() { - return this.ingress != null && !this.ingress.isEmpty(); - } - - public IngressNested addNewIngress() { - return new IngressNested(-1, null); - } - - public IngressNested addNewIngressLike(V1IngressLoadBalancerIngress item) { - return new IngressNested(-1, item); - } - - public IngressNested setNewIngressLike(int index,V1IngressLoadBalancerIngress item) { - return new IngressNested(index, item); - } - - public IngressNested editIngress(int index) { - if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); - return setNewIngressLike(index, buildIngress(index)); - } - - public IngressNested editFirstIngress() { - if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); - return setNewIngressLike(0, buildIngress(0)); - } - - public IngressNested editLastIngress() { - int index = ingress.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ingress. The list is empty."); - return setNewIngressLike(index, buildIngress(index)); - } - - public IngressNested editMatchingIngress(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1IngressLoadBalancerIngressFluent> implements Nested{ IngressNested(int index,V1IngressLoadBalancerIngress item) { this.index = index; this.builder = new V1IngressLoadBalancerIngressBuilder(this, item); } - V1IngressLoadBalancerIngressBuilder builder; - int index; - + public N and() { - return (N) V1IngressLoadBalancerStatusFluent.this.setToIngress(index,builder.build()); + return (N) V1IngressLoadBalancerStatusFluent.this.setToIngress(index, builder.build()); } public N endIngress() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java index e123082dd9..af9e3a6cb1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressPortStatusBuilder extends V1IngressPortStatusFluent implements VisitableBuilder{ + + V1IngressPortStatusFluent fluent; + public V1IngressPortStatusBuilder() { this(new V1IngressPortStatus()); } @@ -10,17 +14,16 @@ public V1IngressPortStatusBuilder(V1IngressPortStatusFluent fluent) { this(fluent, new V1IngressPortStatus()); } - public V1IngressPortStatusBuilder(V1IngressPortStatusFluent fluent,V1IngressPortStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressPortStatusBuilder(V1IngressPortStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressPortStatusFluent fluent; + public V1IngressPortStatusBuilder(V1IngressPortStatusFluent fluent,V1IngressPortStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressPortStatus build() { V1IngressPortStatus buildable = new V1IngressPortStatus(); buildable.setError(fluent.getError()); @@ -29,5 +32,4 @@ public V1IngressPortStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java index d288140e46..81b35b72a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java @@ -1,98 +1,124 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressPortStatusFluent> extends BaseFluent{ +public class V1IngressPortStatusFluent> extends BaseFluent{ + + private String error; + private Integer port; + private String protocol; + public V1IngressPortStatusFluent() { } public V1IngressPortStatusFluent(V1IngressPortStatus instance) { this.copyInstance(instance); } - private String error; - private Integer port; - private String protocol; - + protected void copyInstance(V1IngressPortStatus instance) { - instance = (instance != null ? instance : new V1IngressPortStatus()); + instance = instance != null ? instance : new V1IngressPortStatus(); if (instance != null) { - this.withError(instance.getError()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } - } - - public String getError() { - return this.error; + this.withError(instance.getError()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } - public A withError(String error) { - this.error = error; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressPortStatusFluent that = (V1IngressPortStatusFluent) o; + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } + return true; } - public boolean hasError() { - return this.error != null; + public String getError() { + return this.error; } public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - public String getProtocol() { return this.protocol; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + public boolean hasError() { + return this.error != null; } - public boolean hasProtocol() { - return this.protocol != null; + public boolean hasPort() { + return this.port != 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; - V1IngressPortStatusFluent that = (V1IngressPortStatusFluent) o; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; - return true; + public boolean hasProtocol() { + return this.protocol != null; } public int hashCode() { - return java.util.Objects.hash(error, port, protocol, super.hashCode()); + return Objects.hash(error, port, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } - + public A withError(String error) { + this.error = error; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java index 3ad697af23..73fbf64b15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressRuleBuilder extends V1IngressRuleFluent implements VisitableBuilder{ + + V1IngressRuleFluent fluent; + public V1IngressRuleBuilder() { this(new V1IngressRule()); } @@ -10,17 +14,16 @@ public V1IngressRuleBuilder(V1IngressRuleFluent fluent) { this(fluent, new V1IngressRule()); } - public V1IngressRuleBuilder(V1IngressRuleFluent fluent,V1IngressRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressRuleBuilder(V1IngressRule instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressRuleFluent fluent; + public V1IngressRuleBuilder(V1IngressRuleFluent fluent,V1IngressRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressRule build() { V1IngressRule buildable = new V1IngressRule(); buildable.setHost(fluent.getHost()); @@ -28,5 +31,4 @@ public V1IngressRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java index 3d4ac6c6b4..d875bda639 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java @@ -1,48 +1,109 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressRuleFluent> extends BaseFluent{ +public class V1IngressRuleFluent> extends BaseFluent{ + + private String host; + private V1HTTPIngressRuleValueBuilder http; + public V1IngressRuleFluent() { } public V1IngressRuleFluent(V1IngressRule instance) { this.copyInstance(instance); } - private String host; - private V1HTTPIngressRuleValueBuilder http; + + public V1HTTPIngressRuleValue buildHttp() { + return this.http != null ? this.http.build() : null; + } protected void copyInstance(V1IngressRule instance) { - instance = (instance != null ? instance : new V1IngressRule()); + instance = instance != null ? instance : new V1IngressRule(); if (instance != null) { - this.withHost(instance.getHost()); - this.withHttp(instance.getHttp()); - } + this.withHost(instance.getHost()); + this.withHttp(instance.getHttp()); + } } - public String getHost() { - return this.host; + public HttpNested editHttp() { + return this.withNewHttpLike(Optional.ofNullable(this.buildHttp()).orElse(null)); } - public A withHost(String host) { - this.host = host; - return (A) this; + public HttpNested editOrNewHttp() { + return this.withNewHttpLike(Optional.ofNullable(this.buildHttp()).orElse(new V1HTTPIngressRuleValueBuilder().build())); + } + + public HttpNested editOrNewHttpLike(V1HTTPIngressRuleValue item) { + return this.withNewHttpLike(Optional.ofNullable(this.buildHttp()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressRuleFluent that = (V1IngressRuleFluent) o; + if (!(Objects.equals(host, that.host))) { + return false; + } + if (!(Objects.equals(http, that.http))) { + return false; + } + return true; + } + + public String getHost() { + return this.host; } public boolean hasHost() { return this.host != null; } - public V1HTTPIngressRuleValue buildHttp() { - return this.http != null ? this.http.build() : null; + public boolean hasHttp() { + return this.http != null; + } + + public int hashCode() { + return Objects.hash(host, http); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(host == null)) { + sb.append("host:"); + sb.append(host); + sb.append(","); + } + if (!(http == null)) { + sb.append("http:"); + sb.append(http); + } + sb.append("}"); + return sb.toString(); + } + + public A withHost(String host) { + this.host = host; + return (A) this; } public A withHttp(V1HTTPIngressRuleValue http) { @@ -57,10 +118,6 @@ public A withHttp(V1HTTPIngressRuleValue http) { return (A) this; } - public boolean hasHttp() { - return this.http != null; - } - public HttpNested withNewHttp() { return new HttpNested(null); } @@ -68,47 +125,14 @@ public HttpNested withNewHttp() { public HttpNested withNewHttpLike(V1HTTPIngressRuleValue item) { return new HttpNested(item); } + public class HttpNested extends V1HTTPIngressRuleValueFluent> implements Nested{ - public HttpNested editHttp() { - return withNewHttpLike(java.util.Optional.ofNullable(buildHttp()).orElse(null)); - } - - public HttpNested editOrNewHttp() { - return withNewHttpLike(java.util.Optional.ofNullable(buildHttp()).orElse(new V1HTTPIngressRuleValueBuilder().build())); - } - - public HttpNested editOrNewHttpLike(V1HTTPIngressRuleValue item) { - return withNewHttpLike(java.util.Optional.ofNullable(buildHttp()).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; - V1IngressRuleFluent that = (V1IngressRuleFluent) o; - if (!java.util.Objects.equals(host, that.host)) return false; - if (!java.util.Objects.equals(http, that.http)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(host, http, super.hashCode()); - } + V1HTTPIngressRuleValueBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (host != null) { sb.append("host:"); sb.append(host + ","); } - if (http != null) { sb.append("http:"); sb.append(http); } - sb.append("}"); - return sb.toString(); - } - public class HttpNested extends V1HTTPIngressRuleValueFluent> implements Nested{ HttpNested(V1HTTPIngressRuleValue item) { this.builder = new V1HTTPIngressRuleValueBuilder(this, item); } - V1HTTPIngressRuleValueBuilder builder; - + public N and() { return (N) V1IngressRuleFluent.this.withHttp(builder.build()); } @@ -117,7 +141,5 @@ public N endHttp() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java index 8a2fbe27c0..4b8d41a30b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressServiceBackendBuilder extends V1IngressServiceBackendFluent implements VisitableBuilder{ + + V1IngressServiceBackendFluent fluent; + public V1IngressServiceBackendBuilder() { this(new V1IngressServiceBackend()); } @@ -10,17 +14,16 @@ public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent) { this(fluent, new V1IngressServiceBackend()); } - public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent,V1IngressServiceBackend instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressServiceBackendBuilder(V1IngressServiceBackend instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressServiceBackendFluent fluent; + public V1IngressServiceBackendBuilder(V1IngressServiceBackendFluent fluent,V1IngressServiceBackend instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressServiceBackend build() { V1IngressServiceBackend buildable = new V1IngressServiceBackend(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1IngressServiceBackend build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java index c4fcf4fe22..b38ffc74b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressServiceBackendFluent> extends BaseFluent{ +public class V1IngressServiceBackendFluent> extends BaseFluent{ + + private String name; + private V1ServiceBackendPortBuilder port; + public V1IngressServiceBackendFluent() { } public V1IngressServiceBackendFluent(V1IngressServiceBackend instance) { this.copyInstance(instance); } - private String name; - private V1ServiceBackendPortBuilder port; + + public V1ServiceBackendPort buildPort() { + return this.port != null ? this.port.build() : null; + } protected void copyInstance(V1IngressServiceBackend instance) { - instance = (instance != null ? instance : new V1IngressServiceBackend()); + instance = instance != null ? instance : new V1IngressServiceBackend(); if (instance != null) { - this.withName(instance.getName()); - this.withPort(instance.getPort()); - } - } - - public String getName() { - return this.name; + this.withName(instance.getName()); + this.withPort(instance.getPort()); + } } - public A withName(String name) { - this.name = name; - return (A) this; + public PortNested editOrNewPort() { + return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(new V1ServiceBackendPortBuilder().build())); } - public boolean hasName() { - return this.name != null; + public PortNested editOrNewPortLike(V1ServiceBackendPort item) { + return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(item)); } - public V1ServiceBackendPort buildPort() { - return this.port != null ? this.port.build() : null; + public PortNested editPort() { + return this.withNewPortLike(Optional.ofNullable(this.buildPort()).orElse(null)); } - public A withPort(V1ServiceBackendPort port) { - this._visitables.remove("port"); - if (port != null) { - this.port = new V1ServiceBackendPortBuilder(port); - this._visitables.get("port").add(this.port); - } else { - this.port = null; - this._visitables.get("port").remove(this.port); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressServiceBackendFluent that = (V1IngressServiceBackendFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + return true; } - public boolean hasPort() { - return this.port != null; + public String getName() { + return this.name; } - public PortNested withNewPort() { - return new PortNested(null); + public boolean hasName() { + return this.name != null; } - public PortNested withNewPortLike(V1ServiceBackendPort item) { - return new PortNested(item); + public boolean hasPort() { + return this.port != null; } - public PortNested editPort() { - return withNewPortLike(java.util.Optional.ofNullable(buildPort()).orElse(null)); + public int hashCode() { + return Objects.hash(name, port); } - public PortNested editOrNewPort() { - return withNewPortLike(java.util.Optional.ofNullable(buildPort()).orElse(new V1ServiceBackendPortBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } + sb.append("}"); + return sb.toString(); } - public PortNested editOrNewPortLike(V1ServiceBackendPort item) { - return withNewPortLike(java.util.Optional.ofNullable(buildPort()).orElse(item)); + public A withName(String name) { + this.name = name; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1IngressServiceBackendFluent that = (V1IngressServiceBackendFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - return true; + public PortNested withNewPort() { + return new PortNested(null); } - public int hashCode() { - return java.util.Objects.hash(name, port, super.hashCode()); + public PortNested withNewPortLike(V1ServiceBackendPort item) { + return new PortNested(item); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (port != null) { sb.append("port:"); sb.append(port); } - sb.append("}"); - return sb.toString(); + public A withPort(V1ServiceBackendPort port) { + this._visitables.remove("port"); + if (port != null) { + this.port = new V1ServiceBackendPortBuilder(port); + this._visitables.get("port").add(this.port); + } else { + this.port = null; + this._visitables.get("port").remove(this.port); + } + return (A) this; } public class PortNested extends V1ServiceBackendPortFluent> implements Nested{ + + V1ServiceBackendPortBuilder builder; + PortNested(V1ServiceBackendPort item) { this.builder = new V1ServiceBackendPortBuilder(this, item); } - V1ServiceBackendPortBuilder builder; - + public N and() { return (N) V1IngressServiceBackendFluent.this.withPort(builder.build()); } @@ -117,7 +141,5 @@ public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java index fac67ab401..3b546f453c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressSpecBuilder extends V1IngressSpecFluent implements VisitableBuilder{ + + V1IngressSpecFluent fluent; + public V1IngressSpecBuilder() { this(new V1IngressSpec()); } @@ -10,17 +14,16 @@ public V1IngressSpecBuilder(V1IngressSpecFluent fluent) { this(fluent, new V1IngressSpec()); } - public V1IngressSpecBuilder(V1IngressSpecFluent fluent,V1IngressSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressSpecBuilder(V1IngressSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressSpecFluent fluent; + public V1IngressSpecBuilder(V1IngressSpecFluent fluent,V1IngressSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressSpec build() { V1IngressSpec buildable = new V1IngressSpec(); buildable.setDefaultBackend(fluent.buildDefaultBackend()); @@ -30,5 +33,4 @@ public V1IngressSpec build() { return buildable; } - } \ No newline at end of file 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..645714121e 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 @@ -1,160 +1,152 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressSpecFluent> extends BaseFluent{ - public V1IngressSpecFluent() { - } - - public V1IngressSpecFluent(V1IngressSpec instance) { - this.copyInstance(instance); - } +public class V1IngressSpecFluent> extends BaseFluent{ + private V1IngressBackendBuilder defaultBackend; private String ingressClassName; private ArrayList rules; private ArrayList tls; - - protected void copyInstance(V1IngressSpec instance) { - instance = (instance != null ? instance : new V1IngressSpec()); - if (instance != null) { - this.withDefaultBackend(instance.getDefaultBackend()); - this.withIngressClassName(instance.getIngressClassName()); - this.withRules(instance.getRules()); - this.withTls(instance.getTls()); - } + + public V1IngressSpecFluent() { } - public V1IngressBackend buildDefaultBackend() { - return this.defaultBackend != null ? this.defaultBackend.build() : null; + public V1IngressSpecFluent(V1IngressSpec instance) { + this.copyInstance(instance); } - - public A withDefaultBackend(V1IngressBackend defaultBackend) { - this._visitables.remove("defaultBackend"); - if (defaultBackend != null) { - this.defaultBackend = new V1IngressBackendBuilder(defaultBackend); - this._visitables.get("defaultBackend").add(this.defaultBackend); - } else { - this.defaultBackend = null; - this._visitables.get("defaultBackend").remove(this.defaultBackend); + + public A addAllToRules(Collection items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); } return (A) this; } - public boolean hasDefaultBackend() { - return this.defaultBackend != null; - } - - public DefaultBackendNested withNewDefaultBackend() { - return new DefaultBackendNested(null); - } - - public DefaultBackendNested withNewDefaultBackendLike(V1IngressBackend item) { - return new DefaultBackendNested(item); + public A addAllToTls(Collection items) { + if (this.tls == null) { + this.tls = new ArrayList(); + } + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").add(builder); + this.tls.add(builder); + } + return (A) this; } - public DefaultBackendNested editDefaultBackend() { - return withNewDefaultBackendLike(java.util.Optional.ofNullable(buildDefaultBackend()).orElse(null)); + public RulesNested addNewRule() { + return new RulesNested(-1, null); } - public DefaultBackendNested editOrNewDefaultBackend() { - return withNewDefaultBackendLike(java.util.Optional.ofNullable(buildDefaultBackend()).orElse(new V1IngressBackendBuilder().build())); + public RulesNested addNewRuleLike(V1IngressRule item) { + return new RulesNested(-1, item); } - public DefaultBackendNested editOrNewDefaultBackendLike(V1IngressBackend item) { - return withNewDefaultBackendLike(java.util.Optional.ofNullable(buildDefaultBackend()).orElse(item)); + public TlsNested addNewTl() { + return new TlsNested(-1, null); } - public String getIngressClassName() { - return this.ingressClassName; + public TlsNested addNewTlLike(V1IngressTLS item) { + return new TlsNested(-1, item); } - public A withIngressClassName(String ingressClassName) { - this.ingressClassName = ingressClassName; + public A addToRules(V1IngressRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } return (A) this; } - public boolean hasIngressClassName() { - return this.ingressClassName != null; - } - 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);} - return (A)this; - } - - public A setToRules(int index,V1IngressRule item) { - if (this.rules == null) {this.rules = new ArrayList();} + 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);} - return (A)this; - } - - public A addToRules(io.kubernetes.client.openapi.models.V1IngressRule... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(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 (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; - } - - public A removeFromRules(io.kubernetes.client.openapi.models.V1IngressRule... items) { - if (this.rules == null) return (A)this; - for (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(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 (V1IngressRule item : items) {V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + 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 removeMatchingFromRules(Predicate predicate) { - if (rules == null) return (A) this; - final Iterator each = rules.iterator(); - final List visitables = _visitables.get("rules"); - while (each.hasNext()) { - V1IngressRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToTls(V1IngressTLS... items) { + if (this.tls == null) { + this.tls = new ArrayList(); + } + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").add(builder); + this.tls.add(builder); } - return (A)this; + return (A) this; } - public List buildRules() { - return this.rules != null ? build(rules) : null; + 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(builder); + tls.add(index, builder); + } + return (A) this; } - public V1IngressRule buildRule(int index) { - return this.rules.get(index).build(); + public V1IngressBackend buildDefaultBackend() { + return this.defaultBackend != null ? this.defaultBackend.build() : null; } public V1IngressRule buildFirstRule() { return this.rules.get(0).build(); } + public V1IngressTLS buildFirstTl() { + return this.tls.get(0).build(); + } + public V1IngressRule buildLastRule() { return this.rules.get(rules.size() - 1).build(); } + public V1IngressTLS buildLastTl() { + return this.tls.get(tls.size() - 1).build(); + } + public V1IngressRule buildMatchingRule(Predicate predicate) { for (V1IngressRuleBuilder item : rules) { if (predicate.test(item)) { @@ -164,155 +156,170 @@ public V1IngressRule buildMatchingRule(Predicate predicate return null; } - public boolean hasMatchingRule(Predicate predicate) { - for (V1IngressRuleBuilder item : rules) { + public V1IngressTLS buildMatchingTl(Predicate predicate) { + for (V1IngressTLSBuilder item : tls) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); - } - if (rules != null) { - this.rules = new ArrayList(); - for (V1IngressRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; - } - return (A) this; + public V1IngressRule buildRule(int index) { + return this.rules.get(index).build(); } - public A withRules(io.kubernetes.client.openapi.models.V1IngressRule... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); - } - if (rules != null) { - for (V1IngressRule item : rules) { - this.addToRules(item); - } - } - return (A) this; + public List buildRules() { + return this.rules != null ? build(rules) : null; } - public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + public V1IngressTLS buildTl(int index) { + return this.tls.get(index).build(); } - public RulesNested addNewRule() { - return new RulesNested(-1, null); + public List buildTls() { + return this.tls != null ? build(tls) : null; } - public RulesNested addNewRuleLike(V1IngressRule item) { - return new RulesNested(-1, item); + protected void copyInstance(V1IngressSpec instance) { + instance = instance != null ? instance : new V1IngressSpec(); + if (instance != null) { + this.withDefaultBackend(instance.getDefaultBackend()); + this.withIngressClassName(instance.getIngressClassName()); + this.withRules(instance.getRules()); + this.withTls(instance.getTls()); + } } - public RulesNested setNewRuleLike(int index,V1IngressRule item) { - return new RulesNested(index, item); + public DefaultBackendNested editDefaultBackend() { + return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(null)); } - 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(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } - 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 TlsNested editFirstTl() { + if (tls.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tls")); + } + return this.setNewTlLike(0, this.buildTl(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();} - 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);} - return (A)this; + public TlsNested editLastTl() { + int index = tls.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tls")); + } + return this.setNewTlLike(index, this.buildTl(index)); } - 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);} - return (A)this; + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public A addToTls(io.kubernetes.client.openapi.models.V1IngressTLS... items) { - if (this.tls == null) {this.tls = new ArrayList();} - for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").add(builder);this.tls.add(builder);} return (A)this; + public TlsNested editMatchingTl(Predicate predicate) { + int index = -1; + for (int i = 0;i < tls.size();i++) { + if (predicate.test(tls.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tls")); + } + return this.setNewTlLike(index, this.buildTl(index)); } - public A addAllToTls(Collection items) { - if (this.tls == null) {this.tls = new ArrayList();} - for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").add(builder);this.tls.add(builder);} return (A)this; + public DefaultBackendNested editOrNewDefaultBackend() { + return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(new V1IngressBackendBuilder().build())); } - public A removeFromTls(io.kubernetes.client.openapi.models.V1IngressTLS... items) { - if (this.tls == null) return (A)this; - for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").remove(builder); this.tls.remove(builder);} return (A)this; + public DefaultBackendNested editOrNewDefaultBackendLike(V1IngressBackend item) { + return this.withNewDefaultBackendLike(Optional.ofNullable(this.buildDefaultBackend()).orElse(item)); } - public A removeAllFromTls(Collection items) { - if (this.tls == null) return (A)this; - for (V1IngressTLS item : items) {V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item);_visitables.get("tls").remove(builder); this.tls.remove(builder);} return (A)this; + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public A removeMatchingFromTls(Predicate predicate) { - if (tls == null) return (A) this; - final Iterator each = tls.iterator(); - final List visitables = _visitables.get("tls"); - while (each.hasNext()) { - V1IngressTLSBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public TlsNested editTl(int index) { + if (tls.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tls")); } - return (A)this; + return this.setNewTlLike(index, this.buildTl(index)); } - public List buildTls() { - return this.tls != null ? build(tls) : null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressSpecFluent that = (V1IngressSpecFluent) o; + if (!(Objects.equals(defaultBackend, that.defaultBackend))) { + return false; + } + if (!(Objects.equals(ingressClassName, that.ingressClassName))) { + return false; + } + if (!(Objects.equals(rules, that.rules))) { + return false; + } + if (!(Objects.equals(tls, that.tls))) { + return false; + } + return true; } - public V1IngressTLS buildTl(int index) { - return this.tls.get(index).build(); + public String getIngressClassName() { + return this.ingressClassName; } - public V1IngressTLS buildFirstTl() { - return this.tls.get(0).build(); + public boolean hasDefaultBackend() { + return this.defaultBackend != null; } - public V1IngressTLS buildLastTl() { - return this.tls.get(tls.size() - 1).build(); + public boolean hasIngressClassName() { + return this.ingressClassName != null; } - public V1IngressTLS buildMatchingTl(Predicate predicate) { - for (V1IngressTLSBuilder item : tls) { + public boolean hasMatchingRule(Predicate predicate) { + for (V1IngressRuleBuilder item : rules) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingTl(Predicate predicate) { @@ -324,107 +331,250 @@ public boolean hasMatchingTl(Predicate predicate) { return false; } - public A withTls(List tls) { - if (this.tls != null) { - this._visitables.get("tls").clear(); + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + + public boolean hasTls() { + return this.tls != null && !(this.tls.isEmpty()); + } + + public int hashCode() { + return Objects.hash(defaultBackend, ingressClassName, rules, tls); + } + + public A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; } - if (tls != null) { - this.tls = new ArrayList(); - for (V1IngressTLS item : tls) { - this.addToTls(item); - } - } else { - this.tls = null; + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); } return (A) this; } - public A withTls(io.kubernetes.client.openapi.models.V1IngressTLS... tls) { - if (this.tls != null) { - this.tls.clear(); - _visitables.remove("tls"); + public A removeAllFromTls(Collection items) { + if (this.tls == null) { + return (A) this; } - if (tls != null) { - for (V1IngressTLS item : tls) { - this.addToTls(item); - } + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").remove(builder); + this.tls.remove(builder); } return (A) this; } - public boolean hasTls() { - return this.tls != null && !this.tls.isEmpty(); + public A removeFromRules(V1IngressRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1IngressRule item : items) { + V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } - public TlsNested addNewTl() { - return new TlsNested(-1, null); + public A removeFromTls(V1IngressTLS... items) { + if (this.tls == null) { + return (A) this; + } + for (V1IngressTLS item : items) { + V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); + _visitables.get("tls").remove(builder); + this.tls.remove(builder); + } + return (A) this; } - public TlsNested addNewTlLike(V1IngressTLS item) { - return new TlsNested(-1, item); + public A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1IngressRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromTls(Predicate predicate) { + if (tls == null) { + return (A) this; + } + Iterator each = tls.iterator(); + List visitables = _visitables.get("tls"); + while (each.hasNext()) { + V1IngressTLSBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RulesNested setNewRuleLike(int index,V1IngressRule item) { + return new RulesNested(index, item); } public TlsNested setNewTlLike(int index,V1IngressTLS item) { return new TlsNested(index, item); } - public TlsNested editTl(int index) { - if (tls.size() <= index) throw new RuntimeException("Can't edit tls. Index exceeds size."); - return setNewTlLike(index, buildTl(index)); + 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").add(builder); + rules.set(index, builder); + } + return (A) this; } - public TlsNested editFirstTl() { - if (tls.size() == 0) throw new RuntimeException("Can't edit first tls. The list is empty."); - return setNewTlLike(0, buildTl(0)); + 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").add(builder); + tls.set(index, builder); + } + return (A) this; } - public TlsNested editLastTl() { - int index = tls.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last tls. The list is empty."); - return setNewTlLike(index, buildTl(index)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(defaultBackend == null)) { + sb.append("defaultBackend:"); + sb.append(defaultBackend); + sb.append(","); + } + if (!(ingressClassName == null)) { + sb.append("ingressClassName:"); + sb.append(ingressClassName); + sb.append(","); + } + if (!(rules == null) && !(rules.isEmpty())) { + sb.append("rules:"); + sb.append(rules); + sb.append(","); + } + if (!(tls == null) && !(tls.isEmpty())) { + sb.append("tls:"); + sb.append(tls); + } + sb.append("}"); + return sb.toString(); } - public TlsNested editMatchingTl(Predicate predicate) { - int index = -1; - for (int i=0;i withNewDefaultBackend() { + return new DefaultBackendNested(null); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (defaultBackend != null) { sb.append("defaultBackend:"); sb.append(defaultBackend + ","); } - if (ingressClassName != null) { sb.append("ingressClassName:"); sb.append(ingressClassName + ","); } - if (rules != null && !rules.isEmpty()) { sb.append("rules:"); sb.append(rules + ","); } - if (tls != null && !tls.isEmpty()) { sb.append("tls:"); sb.append(tls); } - sb.append("}"); - return sb.toString(); + public DefaultBackendNested withNewDefaultBackendLike(V1IngressBackend item) { + return new DefaultBackendNested(item); + } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1IngressRule item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1IngressRule... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1IngressRule item : rules) { + this.addToRules(item); + } + } + return (A) this; + } + + public A withTls(List tls) { + if (this.tls != null) { + this._visitables.get("tls").clear(); + } + if (tls != null) { + this.tls = new ArrayList(); + for (V1IngressTLS item : tls) { + this.addToTls(item); + } + } else { + this.tls = null; + } + return (A) this; + } + + public A withTls(V1IngressTLS... tls) { + if (this.tls != null) { + this.tls.clear(); + _visitables.remove("tls"); + } + if (tls != null) { + for (V1IngressTLS item : tls) { + this.addToTls(item); + } + } + return (A) this; } public class DefaultBackendNested extends V1IngressBackendFluent> implements Nested{ + + V1IngressBackendBuilder builder; + DefaultBackendNested(V1IngressBackend item) { this.builder = new V1IngressBackendBuilder(this, item); } - V1IngressBackendBuilder builder; - + public N and() { return (N) V1IngressSpecFluent.this.withDefaultBackend(builder.build()); } @@ -433,43 +583,43 @@ public N endDefaultBackend() { return and(); } - } public class RulesNested extends V1IngressRuleFluent> implements Nested{ + + V1IngressRuleBuilder builder; + int index; + RulesNested(int index,V1IngressRule item) { this.index = index; this.builder = new V1IngressRuleBuilder(this, item); } - V1IngressRuleBuilder builder; - int index; - + public N and() { - return (N) V1IngressSpecFluent.this.setToRules(index,builder.build()); + return (N) V1IngressSpecFluent.this.setToRules(index, builder.build()); } public N endRule() { return and(); } - } public class TlsNested extends V1IngressTLSFluent> implements Nested{ + + V1IngressTLSBuilder builder; + int index; + TlsNested(int index,V1IngressTLS item) { this.index = index; this.builder = new V1IngressTLSBuilder(this, item); } - V1IngressTLSBuilder builder; - int index; - + public N and() { - return (N) V1IngressSpecFluent.this.setToTls(index,builder.build()); + return (N) V1IngressSpecFluent.this.setToTls(index, builder.build()); } public N endTl() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java index b1f90efbb0..c507e7af18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressStatusBuilder extends V1IngressStatusFluent implements VisitableBuilder{ + + V1IngressStatusFluent fluent; + public V1IngressStatusBuilder() { this(new V1IngressStatus()); } @@ -10,22 +14,20 @@ public V1IngressStatusBuilder(V1IngressStatusFluent fluent) { this(fluent, new V1IngressStatus()); } - public V1IngressStatusBuilder(V1IngressStatusFluent fluent,V1IngressStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressStatusBuilder(V1IngressStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressStatusFluent fluent; + public V1IngressStatusBuilder(V1IngressStatusFluent fluent,V1IngressStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressStatus build() { V1IngressStatus buildable = new V1IngressStatus(); buildable.setLoadBalancer(fluent.buildLoadBalancer()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java index 614c9dad60..5c1c732097 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java @@ -1,97 +1,115 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressStatusFluent> extends BaseFluent{ +public class V1IngressStatusFluent> extends BaseFluent{ + + private V1IngressLoadBalancerStatusBuilder loadBalancer; + public V1IngressStatusFluent() { } public V1IngressStatusFluent(V1IngressStatus instance) { this.copyInstance(instance); } - private V1IngressLoadBalancerStatusBuilder loadBalancer; - - protected void copyInstance(V1IngressStatus instance) { - instance = (instance != null ? instance : new V1IngressStatus()); - if (instance != null) { - this.withLoadBalancer(instance.getLoadBalancer()); - } - } - + public V1IngressLoadBalancerStatus buildLoadBalancer() { return this.loadBalancer != null ? this.loadBalancer.build() : null; } - public A withLoadBalancer(V1IngressLoadBalancerStatus loadBalancer) { - this._visitables.remove("loadBalancer"); - if (loadBalancer != null) { - this.loadBalancer = new V1IngressLoadBalancerStatusBuilder(loadBalancer); - this._visitables.get("loadBalancer").add(this.loadBalancer); - } else { - this.loadBalancer = null; - this._visitables.get("loadBalancer").remove(this.loadBalancer); + protected void copyInstance(V1IngressStatus instance) { + instance = instance != null ? instance : new V1IngressStatus(); + if (instance != null) { + this.withLoadBalancer(instance.getLoadBalancer()); } - return (A) this; - } - - public boolean hasLoadBalancer() { - return this.loadBalancer != null; - } - - public LoadBalancerNested withNewLoadBalancer() { - return new LoadBalancerNested(null); - } - - public LoadBalancerNested withNewLoadBalancerLike(V1IngressLoadBalancerStatus item) { - return new LoadBalancerNested(item); } public LoadBalancerNested editLoadBalancer() { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(null)); + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(null)); } public LoadBalancerNested editOrNewLoadBalancer() { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(new V1IngressLoadBalancerStatusBuilder().build())); + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(new V1IngressLoadBalancerStatusBuilder().build())); } public LoadBalancerNested editOrNewLoadBalancerLike(V1IngressLoadBalancerStatus item) { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(item)); + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).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; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1IngressStatusFluent that = (V1IngressStatusFluent) o; - if (!java.util.Objects.equals(loadBalancer, that.loadBalancer)) return false; + if (!(Objects.equals(loadBalancer, that.loadBalancer))) { + return false; + } return true; } + public boolean hasLoadBalancer() { + return this.loadBalancer != null; + } + public int hashCode() { - return java.util.Objects.hash(loadBalancer, super.hashCode()); + return Objects.hash(loadBalancer); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (loadBalancer != null) { sb.append("loadBalancer:"); sb.append(loadBalancer); } + if (!(loadBalancer == null)) { + sb.append("loadBalancer:"); + sb.append(loadBalancer); + } sb.append("}"); return sb.toString(); } + + public A withLoadBalancer(V1IngressLoadBalancerStatus loadBalancer) { + this._visitables.remove("loadBalancer"); + if (loadBalancer != null) { + this.loadBalancer = new V1IngressLoadBalancerStatusBuilder(loadBalancer); + this._visitables.get("loadBalancer").add(this.loadBalancer); + } else { + this.loadBalancer = null; + this._visitables.get("loadBalancer").remove(this.loadBalancer); + } + return (A) this; + } + + public LoadBalancerNested withNewLoadBalancer() { + return new LoadBalancerNested(null); + } + + public LoadBalancerNested withNewLoadBalancerLike(V1IngressLoadBalancerStatus item) { + return new LoadBalancerNested(item); + } public class LoadBalancerNested extends V1IngressLoadBalancerStatusFluent> implements Nested{ + + V1IngressLoadBalancerStatusBuilder builder; + LoadBalancerNested(V1IngressLoadBalancerStatus item) { this.builder = new V1IngressLoadBalancerStatusBuilder(this, item); } - V1IngressLoadBalancerStatusBuilder builder; - + public N and() { return (N) V1IngressStatusFluent.this.withLoadBalancer(builder.build()); } @@ -100,7 +118,5 @@ public N endLoadBalancer() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java index f21e29553e..761741aa6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1IngressTLSBuilder extends V1IngressTLSFluent implements VisitableBuilder{ + + V1IngressTLSFluent fluent; + public V1IngressTLSBuilder() { this(new V1IngressTLS()); } @@ -10,17 +14,16 @@ public V1IngressTLSBuilder(V1IngressTLSFluent fluent) { this(fluent, new V1IngressTLS()); } - public V1IngressTLSBuilder(V1IngressTLSFluent fluent,V1IngressTLS instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1IngressTLSBuilder(V1IngressTLS instance) { this.fluent = this; this.copyInstance(instance); } - V1IngressTLSFluent fluent; + public V1IngressTLSBuilder(V1IngressTLSFluent fluent,V1IngressTLS instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1IngressTLS build() { V1IngressTLS buildable = new V1IngressTLS(); buildable.setHosts(fluent.getHosts()); @@ -28,5 +31,4 @@ public V1IngressTLS build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java index 4b8c2c2c97..c4af0060cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java @@ -1,77 +1,98 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1IngressTLSFluent> extends BaseFluent{ +public class V1IngressTLSFluent> extends BaseFluent{ + + private List hosts; + private String secretName; + public V1IngressTLSFluent() { } public V1IngressTLSFluent(V1IngressTLS instance) { this.copyInstance(instance); } - private List hosts; - private String secretName; + + public A addAllToHosts(Collection items) { + if (this.hosts == null) { + this.hosts = new ArrayList(); + } + for (String item : items) { + this.hosts.add(item); + } + return (A) this; + } - protected void copyInstance(V1IngressTLS instance) { - instance = (instance != null ? instance : new V1IngressTLS()); - if (instance != null) { - this.withHosts(instance.getHosts()); - this.withSecretName(instance.getSecretName()); - } + public A addToHosts(String... items) { + if (this.hosts == null) { + this.hosts = new ArrayList(); + } + for (String item : items) { + this.hosts.add(item); + } + return (A) this; } public A addToHosts(int index,String item) { - if (this.hosts == null) {this.hosts = new ArrayList();} + if (this.hosts == null) { + this.hosts = new ArrayList(); + } this.hosts.add(index, item); - return (A)this; - } - - public A setToHosts(int index,String item) { - if (this.hosts == null) {this.hosts = new ArrayList();} - this.hosts.set(index, item); return (A)this; - } - - public A addToHosts(java.lang.String... items) { - if (this.hosts == null) {this.hosts = new ArrayList();} - for (String item : items) {this.hosts.add(item);} return (A)this; - } - - public A addAllToHosts(Collection items) { - if (this.hosts == null) {this.hosts = new ArrayList();} - for (String item : items) {this.hosts.add(item);} return (A)this; + return (A) this; } - public A removeFromHosts(java.lang.String... items) { - if (this.hosts == null) return (A)this; - for (String item : items) { this.hosts.remove(item);} return (A)this; + protected void copyInstance(V1IngressTLS instance) { + instance = instance != null ? instance : new V1IngressTLS(); + if (instance != null) { + this.withHosts(instance.getHosts()); + this.withSecretName(instance.getSecretName()); + } } - public A removeAllFromHosts(Collection items) { - if (this.hosts == null) return (A)this; - for (String item : items) { this.hosts.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1IngressTLSFluent that = (V1IngressTLSFluent) o; + if (!(Objects.equals(hosts, that.hosts))) { + return false; + } + if (!(Objects.equals(secretName, that.secretName))) { + return false; + } + return true; } - public List getHosts() { - return this.hosts; + public String getFirstHost() { + return this.hosts.get(0); } public String getHost(int index) { return this.hosts.get(index); } - public String getFirstHost() { - return this.hosts.get(0); + public List getHosts() { + return this.hosts; } public String getLastHost() { @@ -87,6 +108,14 @@ public String getMatchingHost(Predicate predicate) { return null; } + public String getSecretName() { + return this.secretName; + } + + public boolean hasHosts() { + return this.hosts != null && !(this.hosts.isEmpty()); + } + public boolean hasMatchingHost(Predicate predicate) { for (String item : hosts) { if (predicate.test(item)) { @@ -96,6 +125,58 @@ public boolean hasMatchingHost(Predicate predicate) { return false; } + public boolean hasSecretName() { + return this.secretName != null; + } + + public int hashCode() { + return Objects.hash(hosts, secretName); + } + + public A removeAllFromHosts(Collection items) { + if (this.hosts == null) { + return (A) this; + } + for (String item : items) { + this.hosts.remove(item); + } + return (A) this; + } + + public A removeFromHosts(String... items) { + if (this.hosts == null) { + return (A) this; + } + for (String item : items) { + this.hosts.remove(item); + } + return (A) this; + } + + public A setToHosts(int index,String item) { + if (this.hosts == null) { + this.hosts = new ArrayList(); + } + this.hosts.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hosts == null) && !(hosts.isEmpty())) { + sb.append("hosts:"); + sb.append(hosts); + sb.append(","); + } + if (!(secretName == null)) { + sb.append("secretName:"); + sb.append(secretName); + } + sb.append("}"); + return sb.toString(); + } + public A withHosts(List hosts) { if (hosts != null) { this.hosts = new ArrayList(); @@ -108,7 +189,7 @@ public A withHosts(List hosts) { return (A) this; } - public A withHosts(java.lang.String... hosts) { + public A withHosts(String... hosts) { if (this.hosts != null) { this.hosts.clear(); _visitables.remove("hosts"); @@ -121,45 +202,9 @@ public A withHosts(java.lang.String... hosts) { return (A) this; } - public boolean hasHosts() { - return this.hosts != null && !this.hosts.isEmpty(); - } - - public String getSecretName() { - return this.secretName; - } - public A withSecretName(String secretName) { this.secretName = secretName; return (A) this; } - public boolean hasSecretName() { - return this.secretName != 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; - V1IngressTLSFluent that = (V1IngressTLSFluent) o; - if (!java.util.Objects.equals(hosts, that.hosts)) return false; - if (!java.util.Objects.equals(secretName, that.secretName)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(hosts, secretName, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (hosts != null && !hosts.isEmpty()) { sb.append("hosts:"); sb.append(hosts + ","); } - if (secretName != null) { sb.append("secretName:"); sb.append(secretName); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java index 09125ddbae..0da4470f3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JSONSchemaPropsBuilder extends V1JSONSchemaPropsFluent implements VisitableBuilder{ + + V1JSONSchemaPropsFluent fluent; + public V1JSONSchemaPropsBuilder() { this(new V1JSONSchemaProps()); } @@ -10,17 +14,16 @@ public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent) { this(fluent, new V1JSONSchemaProps()); } - public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent,V1JSONSchemaProps instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JSONSchemaPropsBuilder(V1JSONSchemaProps instance) { this.fluent = this; this.copyInstance(instance); } - V1JSONSchemaPropsFluent fluent; + public V1JSONSchemaPropsBuilder(V1JSONSchemaPropsFluent fluent,V1JSONSchemaProps instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JSONSchemaProps build() { V1JSONSchemaProps buildable = new V1JSONSchemaProps(); buildable.set$Ref(fluent.getRef()); @@ -63,5 +66,4 @@ public V1JSONSchemaProps build() { return buildable; } - } \ No newline at end of file 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..31112a70a3 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 @@ -1,44 +1,42 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; import java.lang.Double; import java.lang.Long; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JSONSchemaPropsFluent> extends BaseFluent{ - public V1JSONSchemaPropsFluent() { - } - - public V1JSONSchemaPropsFluent(V1JSONSchemaProps instance) { - this.copyInstance(instance); - } +public class V1JSONSchemaPropsFluent> extends BaseFluent{ + private String $ref; private String $schema; + private Object _default; + private List _enum; private Object additionalItems; private Object additionalProperties; private ArrayList allOf; private ArrayList anyOf; - private Object _default; private Map definitions; private Map dependencies; private String description; - private List _enum; private Object example; private Boolean exclusiveMaximum; private Boolean exclusiveMinimum; @@ -65,315 +63,342 @@ public V1JSONSchemaPropsFluent(V1JSONSchemaProps instance) { private String title; private String type; private Boolean uniqueItems; - - protected void copyInstance(V1JSONSchemaProps instance) { - instance = (instance != null ? instance : new V1JSONSchemaProps()); - if (instance != null) { - this.withRef(instance.get$Ref()); - this.withSchema(instance.get$Schema()); - this.withAdditionalItems(instance.getAdditionalItems()); - this.withAdditionalProperties(instance.getAdditionalProperties()); - this.withAllOf(instance.getAllOf()); - this.withAnyOf(instance.getAnyOf()); - this.withDefault(instance.getDefault()); - this.withDefinitions(instance.getDefinitions()); - this.withDependencies(instance.getDependencies()); - this.withDescription(instance.getDescription()); - this.withEnum(instance.getEnum()); - this.withExample(instance.getExample()); - this.withExclusiveMaximum(instance.getExclusiveMaximum()); - this.withExclusiveMinimum(instance.getExclusiveMinimum()); - this.withExternalDocs(instance.getExternalDocs()); - this.withFormat(instance.getFormat()); - this.withId(instance.getId()); - this.withItems(instance.getItems()); - this.withMaxItems(instance.getMaxItems()); - this.withMaxLength(instance.getMaxLength()); - this.withMaxProperties(instance.getMaxProperties()); - this.withMaximum(instance.getMaximum()); - this.withMinItems(instance.getMinItems()); - this.withMinLength(instance.getMinLength()); - this.withMinProperties(instance.getMinProperties()); - this.withMinimum(instance.getMinimum()); - this.withMultipleOf(instance.getMultipleOf()); - this.withNot(instance.getNot()); - this.withNullable(instance.getNullable()); - this.withOneOf(instance.getOneOf()); - this.withPattern(instance.getPattern()); - this.withPatternProperties(instance.getPatternProperties()); - this.withProperties(instance.getProperties()); - this.withRequired(instance.getRequired()); - this.withTitle(instance.getTitle()); - this.withType(instance.getType()); - this.withUniqueItems(instance.getUniqueItems()); - } + + public V1JSONSchemaPropsFluent() { } - public String getRef() { - return this.$ref; + public V1JSONSchemaPropsFluent(V1JSONSchemaProps instance) { + this.copyInstance(instance); + } + + public A addAllToAllOf(Collection items) { + if (this.allOf == null) { + this.allOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").add(builder); + this.allOf.add(builder); + } + return (A) this; } - public A withRef(String $ref) { - this.$ref = $ref; + public A addAllToAnyOf(Collection items) { + if (this.anyOf == null) { + this.anyOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").add(builder); + this.anyOf.add(builder); + } return (A) this; } - public boolean hasRef() { - return this.$ref != null; + public A addAllToEnum(Collection items) { + if (this._enum == null) { + this._enum = new ArrayList(); + } + for (Object item : items) { + this._enum.add(item); + } + return (A) this; } - public String getSchema() { - return this.$schema; + public A addAllToOneOf(Collection items) { + if (this.oneOf == null) { + this.oneOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").add(builder); + this.oneOf.add(builder); + } + return (A) this; } - public A withSchema(String $schema) { - this.$schema = $schema; + public A addAllToRequired(Collection items) { + if (this.required == null) { + this.required = new ArrayList(); + } + for (String item : items) { + this.required.add(item); + } return (A) this; } - public boolean hasSchema() { - return this.$schema != null; + public AllOfNested addNewAllOf() { + return new AllOfNested(-1, null); } - public Object getAdditionalItems() { - return this.additionalItems; + public AllOfNested addNewAllOfLike(V1JSONSchemaProps item) { + return new AllOfNested(-1, item); } - public A withAdditionalItems(Object additionalItems) { - this.additionalItems = additionalItems; - return (A) this; + public AnyOfNested addNewAnyOf() { + return new AnyOfNested(-1, null); } - public boolean hasAdditionalItems() { - return this.additionalItems != null; + public AnyOfNested addNewAnyOfLike(V1JSONSchemaProps item) { + return new AnyOfNested(-1, item); } - public Object getAdditionalProperties() { - return this.additionalProperties; + public OneOfNested addNewOneOf() { + return new OneOfNested(-1, null); } - public A withAdditionalProperties(Object additionalProperties) { - this.additionalProperties = additionalProperties; - return (A) this; + public OneOfNested addNewOneOfLike(V1JSONSchemaProps item) { + return new OneOfNested(-1, item); } - public boolean hasAdditionalProperties() { - return this.additionalProperties != null; + public A addToAllOf(V1JSONSchemaProps... items) { + if (this.allOf == null) { + this.allOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").add(builder); + this.allOf.add(builder); + } + return (A) this; } public A addToAllOf(int index,V1JSONSchemaProps item) { - if (this.allOf == null) {this.allOf = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public A addToAnyOf(V1JSONSchemaProps... items) { + if (this.anyOf == null) { + this.anyOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").add(builder); + this.anyOf.add(builder); + } + return (A) this; } - public A addToAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.allOf == null) {this.allOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").add(builder);this.allOf.add(builder);} return (A)this; + 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(builder); + anyOf.add(index, builder); + } + return (A) this; } - public A addAllToAllOf(Collection items) { - if (this.allOf == null) {this.allOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").add(builder);this.allOf.add(builder);} return (A)this; + public A addToDefinitions(Map map) { + if (this.definitions == null && map != null) { + this.definitions = new LinkedHashMap(); + } + if (map != null) { + this.definitions.putAll(map); + } + return (A) this; } - public A removeFromAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.allOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").remove(builder); this.allOf.remove(builder);} return (A)this; + public A addToDefinitions(String key,V1JSONSchemaProps value) { + if (this.definitions == null && key != null && value != null) { + this.definitions = new LinkedHashMap(); + } + if (key != null && value != null) { + this.definitions.put(key, value); + } + return (A) this; } - public A removeAllFromAllOf(Collection items) { - if (this.allOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("allOf").remove(builder); this.allOf.remove(builder);} return (A)this; + public A addToDependencies(Map map) { + if (this.dependencies == null && map != null) { + this.dependencies = new LinkedHashMap(); + } + if (map != null) { + this.dependencies.putAll(map); + } + return (A) this; } - public A removeMatchingFromAllOf(Predicate predicate) { - if (allOf == null) return (A) this; - final Iterator each = allOf.iterator(); - final List visitables = _visitables.get("allOf"); - while (each.hasNext()) { - V1JSONSchemaPropsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToDependencies(String key,Object value) { + if (this.dependencies == null && key != null && value != null) { + this.dependencies = new LinkedHashMap(); + } + if (key != null && value != null) { + this.dependencies.put(key, value); } - return (A)this; + return (A) this; } - public List buildAllOf() { - return this.allOf != null ? build(allOf) : null; + public A addToEnum(Object... items) { + if (this._enum == null) { + this._enum = new ArrayList(); + } + for (Object item : items) { + this._enum.add(item); + } + return (A) this; } - public V1JSONSchemaProps buildAllOf(int index) { - return this.allOf.get(index).build(); + public A addToEnum(int index,Object item) { + if (this._enum == null) { + this._enum = new ArrayList(); + } + this._enum.add(index, item); + return (A) this; } - public V1JSONSchemaProps buildFirstAllOf() { - return this.allOf.get(0).build(); + public A addToOneOf(V1JSONSchemaProps... items) { + if (this.oneOf == null) { + this.oneOf = new ArrayList(); + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").add(builder); + this.oneOf.add(builder); + } + return (A) this; } - public V1JSONSchemaProps buildLastAllOf() { - return this.allOf.get(allOf.size() - 1).build(); + 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(builder); + oneOf.add(index, builder); + } + return (A) this; } - public V1JSONSchemaProps buildMatchingAllOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : allOf) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A addToPatternProperties(Map map) { + if (this.patternProperties == null && map != null) { + this.patternProperties = new LinkedHashMap(); + } + if (map != null) { + this.patternProperties.putAll(map); + } + return (A) this; } - public boolean hasMatchingAllOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : allOf) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToPatternProperties(String key,V1JSONSchemaProps value) { + if (this.patternProperties == null && key != null && value != null) { + this.patternProperties = new LinkedHashMap(); + } + if (key != null && value != null) { + this.patternProperties.put(key, value); + } + return (A) this; } - public A withAllOf(List allOf) { - if (this.allOf != null) { - this._visitables.get("allOf").clear(); + public A addToProperties(Map map) { + if (this.properties == null && map != null) { + this.properties = new LinkedHashMap(); } - if (allOf != null) { - this.allOf = new ArrayList(); - for (V1JSONSchemaProps item : allOf) { - this.addToAllOf(item); - } - } else { - this.allOf = null; + if (map != null) { + this.properties.putAll(map); } return (A) this; } - public A withAllOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... allOf) { - if (this.allOf != null) { - this.allOf.clear(); - _visitables.remove("allOf"); + public A addToProperties(String key,V1JSONSchemaProps value) { + if (this.properties == null && key != null && value != null) { + this.properties = new LinkedHashMap(); } - if (allOf != null) { - for (V1JSONSchemaProps item : allOf) { - this.addToAllOf(item); - } + if (key != null && value != null) { + this.properties.put(key, value); } return (A) this; } - public boolean hasAllOf() { - return this.allOf != null && !this.allOf.isEmpty(); + public A addToRequired(String... items) { + if (this.required == null) { + this.required = new ArrayList(); + } + for (String item : items) { + this.required.add(item); + } + return (A) this; } - public AllOfNested addNewAllOf() { - return new AllOfNested(-1, null); + public A addToRequired(int index,String item) { + if (this.required == null) { + this.required = new ArrayList(); + } + this.required.add(index, item); + return (A) this; } - public AllOfNested addNewAllOfLike(V1JSONSchemaProps item) { - return new AllOfNested(-1, item); + public List buildAllOf() { + return this.allOf != null ? build(allOf) : null; } - public AllOfNested setNewAllOfLike(int index,V1JSONSchemaProps item) { - return new AllOfNested(index, item); + public V1JSONSchemaProps buildAllOf(int index) { + return this.allOf.get(index).build(); } - public AllOfNested editAllOf(int index) { - if (allOf.size() <= index) throw new RuntimeException("Can't edit allOf. Index exceeds size."); - return setNewAllOfLike(index, buildAllOf(index)); + public List buildAnyOf() { + return this.anyOf != null ? build(anyOf) : null; } - public AllOfNested editFirstAllOf() { - if (allOf.size() == 0) throw new RuntimeException("Can't edit first allOf. The list is empty."); - return setNewAllOfLike(0, buildAllOf(0)); + public V1JSONSchemaProps buildAnyOf(int index) { + return this.anyOf.get(index).build(); } - public AllOfNested editLastAllOf() { - int index = allOf.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last allOf. The list is empty."); - return setNewAllOfLike(index, buildAllOf(index)); + public V1ExternalDocumentation buildExternalDocs() { + return this.externalDocs != null ? this.externalDocs.build() : null; } - public AllOfNested editMatchingAllOf(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public V1JSONSchemaProps buildFirstAnyOf() { + return this.anyOf.get(0).build(); } - 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);} - return (A)this; + public V1JSONSchemaProps buildFirstOneOf() { + return this.oneOf.get(0).build(); } - public A addToAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.anyOf == null) {this.anyOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").add(builder);this.anyOf.add(builder);} return (A)this; + public V1JSONSchemaProps buildLastAllOf() { + return this.allOf.get(allOf.size() - 1).build(); } - public A addAllToAnyOf(Collection items) { - if (this.anyOf == null) {this.anyOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").add(builder);this.anyOf.add(builder);} return (A)this; + public V1JSONSchemaProps buildLastAnyOf() { + return this.anyOf.get(anyOf.size() - 1).build(); } - public A removeFromAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.anyOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").remove(builder); this.anyOf.remove(builder);} return (A)this; + public V1JSONSchemaProps buildLastOneOf() { + return this.oneOf.get(oneOf.size() - 1).build(); } - public A removeAllFromAnyOf(Collection items) { - if (this.anyOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("anyOf").remove(builder); this.anyOf.remove(builder);} return (A)this; - } - - public A removeMatchingFromAnyOf(Predicate predicate) { - if (anyOf == null) return (A) this; - final Iterator each = anyOf.iterator(); - final List visitables = _visitables.get("anyOf"); - while (each.hasNext()) { - V1JSONSchemaPropsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildAnyOf() { - return this.anyOf != null ? build(anyOf) : null; - } - - public V1JSONSchemaProps buildAnyOf(int index) { - return this.anyOf.get(index).build(); - } - - public V1JSONSchemaProps buildFirstAnyOf() { - return this.anyOf.get(0).build(); - } - - public V1JSONSchemaProps buildLastAnyOf() { - return this.anyOf.get(anyOf.size() - 1).build(); + public V1JSONSchemaProps buildMatchingAllOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : allOf) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } public V1JSONSchemaProps buildMatchingAnyOf(Predicate predicate) { @@ -385,247 +410,1306 @@ public V1JSONSchemaProps buildMatchingAnyOf(Predicate return null; } - public boolean hasMatchingAnyOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : anyOf) { + public V1JSONSchemaProps buildMatchingOneOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : oneOf) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withAnyOf(List anyOf) { - if (this.anyOf != null) { - this._visitables.get("anyOf").clear(); - } - if (anyOf != null) { - this.anyOf = new ArrayList(); - for (V1JSONSchemaProps item : anyOf) { - this.addToAnyOf(item); - } - } else { - this.anyOf = null; - } - return (A) this; + public V1JSONSchemaProps buildNot() { + return this.not != null ? this.not.build() : null; } - public A withAnyOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... anyOf) { - if (this.anyOf != null) { - this.anyOf.clear(); - _visitables.remove("anyOf"); + public List buildOneOf() { + return this.oneOf != null ? build(oneOf) : null; + } + + public V1JSONSchemaProps buildOneOf(int index) { + return this.oneOf.get(index).build(); + } + + protected void copyInstance(V1JSONSchemaProps instance) { + instance = instance != null ? instance : new V1JSONSchemaProps(); + if (instance != null) { + this.withRef(instance.get$Ref()); + this.withSchema(instance.get$Schema()); + this.withAdditionalItems(instance.getAdditionalItems()); + this.withAdditionalProperties(instance.getAdditionalProperties()); + this.withAllOf(instance.getAllOf()); + this.withAnyOf(instance.getAnyOf()); + this.withDefault(instance.getDefault()); + this.withDefinitions(instance.getDefinitions()); + this.withDependencies(instance.getDependencies()); + this.withDescription(instance.getDescription()); + this.withEnum(instance.getEnum()); + this.withExample(instance.getExample()); + this.withExclusiveMaximum(instance.getExclusiveMaximum()); + this.withExclusiveMinimum(instance.getExclusiveMinimum()); + this.withExternalDocs(instance.getExternalDocs()); + this.withFormat(instance.getFormat()); + this.withId(instance.getId()); + this.withItems(instance.getItems()); + this.withMaxItems(instance.getMaxItems()); + this.withMaxLength(instance.getMaxLength()); + this.withMaxProperties(instance.getMaxProperties()); + this.withMaximum(instance.getMaximum()); + this.withMinItems(instance.getMinItems()); + this.withMinLength(instance.getMinLength()); + this.withMinProperties(instance.getMinProperties()); + this.withMinimum(instance.getMinimum()); + this.withMultipleOf(instance.getMultipleOf()); + this.withNot(instance.getNot()); + this.withNullable(instance.getNullable()); + this.withOneOf(instance.getOneOf()); + this.withPattern(instance.getPattern()); + this.withPatternProperties(instance.getPatternProperties()); + this.withProperties(instance.getProperties()); + this.withRequired(instance.getRequired()); + this.withTitle(instance.getTitle()); + this.withType(instance.getType()); + this.withUniqueItems(instance.getUniqueItems()); } - if (anyOf != null) { - for (V1JSONSchemaProps item : anyOf) { - this.addToAnyOf(item); - } + } + + public AllOfNested editAllOf(int index) { + if (allOf.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allOf")); } - return (A) this; + return this.setNewAllOfLike(index, this.buildAllOf(index)); } - public boolean hasAnyOf() { - return this.anyOf != null && !this.anyOf.isEmpty(); + public AnyOfNested editAnyOf(int index) { + if (anyOf.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "anyOf")); + } + return this.setNewAnyOfLike(index, this.buildAnyOf(index)); } - public AnyOfNested addNewAnyOf() { - return new AnyOfNested(-1, null); + public ExternalDocsNested editExternalDocs() { + return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(null)); } - public AnyOfNested addNewAnyOfLike(V1JSONSchemaProps item) { - return new AnyOfNested(-1, item); + public AllOfNested editFirstAllOf() { + if (allOf.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "allOf")); + } + return this.setNewAllOfLike(0, this.buildAllOf(0)); } - public AnyOfNested setNewAnyOfLike(int index,V1JSONSchemaProps item) { - return new AnyOfNested(index, item); + public AnyOfNested editFirstAnyOf() { + if (anyOf.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "anyOf")); + } + return this.setNewAnyOfLike(0, this.buildAnyOf(0)); } - public AnyOfNested editAnyOf(int index) { - if (anyOf.size() <= index) throw new RuntimeException("Can't edit anyOf. Index exceeds size."); - return setNewAnyOfLike(index, buildAnyOf(index)); + public OneOfNested editFirstOneOf() { + if (oneOf.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "oneOf")); + } + return this.setNewOneOfLike(0, this.buildOneOf(0)); } - public AnyOfNested editFirstAnyOf() { - if (anyOf.size() == 0) throw new RuntimeException("Can't edit first anyOf. The list is empty."); - return setNewAnyOfLike(0, buildAnyOf(0)); + public AllOfNested editLastAllOf() { + int index = allOf.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "allOf")); + } + return this.setNewAllOfLike(index, this.buildAllOf(index)); } public AnyOfNested editLastAnyOf() { int index = anyOf.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last anyOf. The list is empty."); - return setNewAnyOfLike(index, buildAnyOf(index)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "anyOf")); + } + return this.setNewAnyOfLike(index, this.buildAnyOf(index)); } - public AnyOfNested editMatchingAnyOf(Predicate predicate) { - int index = -1; - for (int i=0;i editLastOneOf() { + int index = oneOf.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "oneOf")); + } + return this.setNewOneOfLike(index, this.buildOneOf(index)); } - public Object getDefault() { - return this._default; + public AllOfNested editMatchingAllOf(Predicate predicate) { + int index = -1; + for (int i = 0;i < allOf.size();i++) { + if (predicate.test(allOf.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "allOf")); + } + return this.setNewAllOfLike(index, this.buildAllOf(index)); } - public A withDefault(Object _default) { - this._default = _default; - return (A) this; + public AnyOfNested editMatchingAnyOf(Predicate predicate) { + int index = -1; + for (int i = 0;i < anyOf.size();i++) { + if (predicate.test(anyOf.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "anyOf")); + } + return this.setNewAnyOfLike(index, this.buildAnyOf(index)); } - public boolean hasDefault() { - return this._default != null; + public OneOfNested editMatchingOneOf(Predicate predicate) { + int index = -1; + for (int i = 0;i < oneOf.size();i++) { + if (predicate.test(oneOf.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "oneOf")); + } + return this.setNewOneOfLike(index, this.buildOneOf(index)); } - public A addToDefinitions(String key,V1JSONSchemaProps value) { - if(this.definitions == null && key != null && value != null) { this.definitions = new LinkedHashMap(); } - if(key != null && value != null) {this.definitions.put(key, value);} return (A)this; + public NotNested editNot() { + return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(null)); } - public A addToDefinitions(Map map) { - if(this.definitions == null && map != null) { this.definitions = new LinkedHashMap(); } - if(map != null) { this.definitions.putAll(map);} return (A)this; + public OneOfNested editOneOf(int index) { + if (oneOf.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "oneOf")); + } + return this.setNewOneOfLike(index, this.buildOneOf(index)); } - public A removeFromDefinitions(String key) { - if(this.definitions == null) { return (A) this; } - if(key != null && this.definitions != null) {this.definitions.remove(key);} return (A)this; + public ExternalDocsNested editOrNewExternalDocs() { + return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(new V1ExternalDocumentationBuilder().build())); } - public A removeFromDefinitions(Map map) { - if(this.definitions == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.definitions != null){this.definitions.remove(key);}}} return (A)this; + public ExternalDocsNested editOrNewExternalDocsLike(V1ExternalDocumentation item) { + return this.withNewExternalDocsLike(Optional.ofNullable(this.buildExternalDocs()).orElse(item)); } - public Map getDefinitions() { - return this.definitions; + public NotNested editOrNewNot() { + return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(new V1JSONSchemaPropsBuilder().build())); } - public A withDefinitions(Map definitions) { - if (definitions == null) { - this.definitions = null; - } else { - this.definitions = new LinkedHashMap(definitions); - } - return (A) this; + public NotNested editOrNewNotLike(V1JSONSchemaProps item) { + return this.withNewNotLike(Optional.ofNullable(this.buildNot()).orElse(item)); } - public boolean hasDefinitions() { - return this.definitions != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JSONSchemaPropsFluent that = (V1JSONSchemaPropsFluent) o; + if (!(Objects.equals($ref, that.$ref))) { + return false; + } + if (!(Objects.equals($schema, that.$schema))) { + return false; + } + if (!(Objects.equals(additionalItems, that.additionalItems))) { + return false; + } + if (!(Objects.equals(additionalProperties, that.additionalProperties))) { + return false; + } + if (!(Objects.equals(allOf, that.allOf))) { + return false; + } + if (!(Objects.equals(anyOf, that.anyOf))) { + return false; + } + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(definitions, that.definitions))) { + return false; + } + if (!(Objects.equals(dependencies, that.dependencies))) { + return false; + } + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(_enum, that._enum))) { + return false; + } + if (!(Objects.equals(example, that.example))) { + return false; + } + if (!(Objects.equals(exclusiveMaximum, that.exclusiveMaximum))) { + return false; + } + if (!(Objects.equals(exclusiveMinimum, that.exclusiveMinimum))) { + return false; + } + if (!(Objects.equals(externalDocs, that.externalDocs))) { + return false; + } + if (!(Objects.equals(format, that.format))) { + return false; + } + if (!(Objects.equals(id, that.id))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(maxItems, that.maxItems))) { + return false; + } + if (!(Objects.equals(maxLength, that.maxLength))) { + return false; + } + if (!(Objects.equals(maxProperties, that.maxProperties))) { + return false; + } + if (!(Objects.equals(maximum, that.maximum))) { + return false; + } + if (!(Objects.equals(minItems, that.minItems))) { + return false; + } + if (!(Objects.equals(minLength, that.minLength))) { + return false; + } + if (!(Objects.equals(minProperties, that.minProperties))) { + return false; + } + if (!(Objects.equals(minimum, that.minimum))) { + return false; + } + if (!(Objects.equals(multipleOf, that.multipleOf))) { + return false; + } + if (!(Objects.equals(not, that.not))) { + return false; + } + if (!(Objects.equals(nullable, that.nullable))) { + return false; + } + if (!(Objects.equals(oneOf, that.oneOf))) { + return false; + } + if (!(Objects.equals(pattern, that.pattern))) { + return false; + } + if (!(Objects.equals(patternProperties, that.patternProperties))) { + return false; + } + if (!(Objects.equals(properties, that.properties))) { + return false; + } + if (!(Objects.equals(required, that.required))) { + return false; + } + if (!(Objects.equals(title, that.title))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + if (!(Objects.equals(uniqueItems, that.uniqueItems))) { + return false; + } + return true; } - public A addToDependencies(String key,Object value) { - if(this.dependencies == null && key != null && value != null) { this.dependencies = new LinkedHashMap(); } - if(key != null && value != null) {this.dependencies.put(key, value);} return (A)this; + public Object getAdditionalItems() { + return this.additionalItems; } - public A addToDependencies(Map map) { - if(this.dependencies == null && map != null) { this.dependencies = new LinkedHashMap(); } - if(map != null) { this.dependencies.putAll(map);} return (A)this; + public Object getAdditionalProperties() { + return this.additionalProperties; } - public A removeFromDependencies(String key) { - if(this.dependencies == null) { return (A) this; } - if(key != null && this.dependencies != null) {this.dependencies.remove(key);} return (A)this; + public Object getDefault() { + return this._default; } - public A removeFromDependencies(Map map) { - if(this.dependencies == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.dependencies != null){this.dependencies.remove(key);}}} return (A)this; + public Map getDefinitions() { + return this.definitions; } public Map getDependencies() { return this.dependencies; } - public A withDependencies(Map dependencies) { - if (dependencies == null) { - this.dependencies = null; - } else { - this.dependencies = new LinkedHashMap(dependencies); - } - return (A) this; - } - - public boolean hasDependencies() { - return this.dependencies != null; - } - public String getDescription() { return this.description; } - public A withDescription(String description) { - this.description = description; - return (A) this; + public List getEnum() { + return this._enum; } - public boolean hasDescription() { - return this.description != null; + public Object getEnum(int index) { + return this._enum.get(index); } - public A addToEnum(int index,Object item) { - if (this._enum == null) {this._enum = new ArrayList();} - this._enum.add(index, item); - return (A)this; + public Object getExample() { + return this.example; } - public A setToEnum(int index,Object item) { - if (this._enum == null) {this._enum = new ArrayList();} - this._enum.set(index, item); return (A)this; - } - - public A addToEnum(java.lang.Object... items) { - if (this._enum == null) {this._enum = new ArrayList();} - for (Object item : items) {this._enum.add(item);} return (A)this; + public Boolean getExclusiveMaximum() { + return this.exclusiveMaximum; } - public A addAllToEnum(Collection items) { - if (this._enum == null) {this._enum = new ArrayList();} - for (Object item : items) {this._enum.add(item);} return (A)this; + public Boolean getExclusiveMinimum() { + return this.exclusiveMinimum; } - public A removeFromEnum(java.lang.Object... items) { - if (this._enum == null) return (A)this; - for (Object item : items) { this._enum.remove(item);} return (A)this; + public Object getFirstEnum() { + return this._enum.get(0); } - public A removeAllFromEnum(Collection items) { - if (this._enum == null) return (A)this; - for (Object item : items) { this._enum.remove(item);} return (A)this; + public String getFirstRequired() { + return this.required.get(0); } - public List getEnum() { - return this._enum; + public String getFormat() { + return this.format; } - public Object getEnum(int index) { - return this._enum.get(index); + public String getId() { + return this.id; } - public Object getFirstEnum() { - return this._enum.get(0); + public Object getItems() { + return this.items; } public Object getLastEnum() { return this._enum.get(_enum.size() - 1); } - public Object getMatchingEnum(Predicate predicate) { - for (Object item : _enum) { - if (predicate.test(item)) { - return item; - } - } - return null; + public String getLastRequired() { + return this.required.get(required.size() - 1); + } + + public Object getMatchingEnum(Predicate predicate) { + for (Object item : _enum) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingRequired(Predicate predicate) { + for (String item : required) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Long getMaxItems() { + return this.maxItems; + } + + public Long getMaxLength() { + return this.maxLength; + } + + public Long getMaxProperties() { + return this.maxProperties; + } + + public Double getMaximum() { + return this.maximum; + } + + public Long getMinItems() { + return this.minItems; + } + + public Long getMinLength() { + return this.minLength; + } + + public Long getMinProperties() { + return this.minProperties; + } + + public Double getMinimum() { + return this.minimum; + } + + public Double getMultipleOf() { + return this.multipleOf; + } + + public Boolean getNullable() { + return this.nullable; + } + + public String getPattern() { + return this.pattern; + } + + public Map getPatternProperties() { + return this.patternProperties; + } + + public Map getProperties() { + return this.properties; + } + + public String getRef() { + return this.$ref; + } + + public List getRequired() { + return this.required; + } + + public String getRequired(int index) { + return this.required.get(index); + } + + public String getSchema() { + return this.$schema; + } + + public String getTitle() { + return this.title; + } + + public String getType() { + return this.type; + } + + public Boolean getUniqueItems() { + return this.uniqueItems; + } + + public boolean hasAdditionalItems() { + return this.additionalItems != null; + } + + public boolean hasAdditionalProperties() { + return this.additionalProperties != null; + } + + public boolean hasAllOf() { + return this.allOf != null && !(this.allOf.isEmpty()); + } + + public boolean hasAnyOf() { + return this.anyOf != null && !(this.anyOf.isEmpty()); + } + + public boolean hasDefault() { + return this._default != null; + } + + public boolean hasDefinitions() { + return this.definitions != null; + } + + public boolean hasDependencies() { + return this.dependencies != null; + } + + public boolean hasDescription() { + return this.description != null; + } + + public boolean hasEnum() { + return this._enum != null && !(this._enum.isEmpty()); + } + + public boolean hasExample() { + return this.example != null; + } + + public boolean hasExclusiveMaximum() { + return this.exclusiveMaximum != null; + } + + public boolean hasExclusiveMinimum() { + return this.exclusiveMinimum != null; + } + + public boolean hasExternalDocs() { + return this.externalDocs != null; + } + + public boolean hasFormat() { + return this.format != null; + } + + public boolean hasId() { + return this.id != null; + } + + public boolean hasItems() { + return this.items != null; + } + + public boolean hasMatchingAllOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : allOf) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingAnyOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : anyOf) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingEnum(Predicate predicate) { + for (Object item : _enum) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingOneOf(Predicate predicate) { + for (V1JSONSchemaPropsBuilder item : oneOf) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequired(Predicate predicate) { + for (String item : required) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMaxItems() { + return this.maxItems != null; + } + + public boolean hasMaxLength() { + return this.maxLength != null; + } + + public boolean hasMaxProperties() { + return this.maxProperties != null; + } + + public boolean hasMaximum() { + return this.maximum != null; + } + + public boolean hasMinItems() { + return this.minItems != null; + } + + public boolean hasMinLength() { + return this.minLength != null; + } + + public boolean hasMinProperties() { + return this.minProperties != null; + } + + public boolean hasMinimum() { + return this.minimum != null; + } + + public boolean hasMultipleOf() { + return this.multipleOf != null; + } + + public boolean hasNot() { + return this.not != null; + } + + public boolean hasNullable() { + return this.nullable != null; + } + + public boolean hasOneOf() { + return this.oneOf != null && !(this.oneOf.isEmpty()); + } + + public boolean hasPattern() { + return this.pattern != null; + } + + public boolean hasPatternProperties() { + return this.patternProperties != null; + } + + public boolean hasProperties() { + return this.properties != null; + } + + public boolean hasRef() { + return this.$ref != null; + } + + public boolean hasRequired() { + return this.required != null && !(this.required.isEmpty()); + } + + public boolean hasSchema() { + return this.$schema != null; + } + + public boolean hasTitle() { + return this.title != null; + } + + public boolean hasType() { + return this.type != null; + } + + public boolean hasUniqueItems() { + return this.uniqueItems != null; + } + + public int hashCode() { + return Objects.hash($ref, $schema, additionalItems, additionalProperties, allOf, anyOf, _default, definitions, dependencies, description, _enum, example, exclusiveMaximum, exclusiveMinimum, externalDocs, format, id, items, maxItems, maxLength, maxProperties, maximum, minItems, minLength, minProperties, minimum, multipleOf, not, nullable, oneOf, pattern, patternProperties, properties, required, title, type, uniqueItems); + } + + public A removeAllFromAllOf(Collection items) { + if (this.allOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").remove(builder); + this.allOf.remove(builder); + } + return (A) this; + } + + public A removeAllFromAnyOf(Collection items) { + if (this.anyOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").remove(builder); + this.anyOf.remove(builder); + } + return (A) this; + } + + public A removeAllFromEnum(Collection items) { + if (this._enum == null) { + return (A) this; + } + for (Object item : items) { + this._enum.remove(item); + } + return (A) this; + } + + public A removeAllFromOneOf(Collection items) { + if (this.oneOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").remove(builder); + this.oneOf.remove(builder); + } + return (A) this; + } + + public A removeAllFromRequired(Collection items) { + if (this.required == null) { + return (A) this; + } + for (String item : items) { + this.required.remove(item); + } + return (A) this; + } + + public A removeFromAllOf(V1JSONSchemaProps... items) { + if (this.allOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("allOf").remove(builder); + this.allOf.remove(builder); + } + return (A) this; + } + + public A removeFromAnyOf(V1JSONSchemaProps... items) { + if (this.anyOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("anyOf").remove(builder); + this.anyOf.remove(builder); + } + return (A) this; + } + + public A removeFromDefinitions(String key) { + if (this.definitions == null) { + return (A) this; + } + if (key != null && this.definitions != null) { + this.definitions.remove(key); + } + return (A) this; + } + + public A removeFromDefinitions(Map map) { + if (this.definitions == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.definitions != null) { + this.definitions.remove(key); + } + } + } + return (A) this; + } + + public A removeFromDependencies(String key) { + if (this.dependencies == null) { + return (A) this; + } + if (key != null && this.dependencies != null) { + this.dependencies.remove(key); + } + return (A) this; + } + + public A removeFromDependencies(Map map) { + if (this.dependencies == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.dependencies != null) { + this.dependencies.remove(key); + } + } + } + return (A) this; + } + + public A removeFromEnum(Object... items) { + if (this._enum == null) { + return (A) this; + } + for (Object item : items) { + this._enum.remove(item); + } + return (A) this; + } + + public A removeFromOneOf(V1JSONSchemaProps... items) { + if (this.oneOf == null) { + return (A) this; + } + for (V1JSONSchemaProps item : items) { + V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); + _visitables.get("oneOf").remove(builder); + this.oneOf.remove(builder); + } + return (A) this; + } + + public A removeFromPatternProperties(String key) { + if (this.patternProperties == null) { + return (A) this; + } + if (key != null && this.patternProperties != null) { + this.patternProperties.remove(key); + } + return (A) this; + } + + public A removeFromPatternProperties(Map map) { + if (this.patternProperties == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.patternProperties != null) { + this.patternProperties.remove(key); + } + } + } + return (A) this; + } + + public A removeFromProperties(String key) { + if (this.properties == null) { + return (A) this; + } + if (key != null && this.properties != null) { + this.properties.remove(key); + } + return (A) this; + } + + public A removeFromProperties(Map map) { + if (this.properties == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.properties != null) { + this.properties.remove(key); + } + } + } + return (A) this; + } + + public A removeFromRequired(String... items) { + if (this.required == null) { + return (A) this; + } + for (String item : items) { + this.required.remove(item); + } + return (A) this; + } + + public A removeMatchingFromAllOf(Predicate predicate) { + if (allOf == null) { + return (A) this; + } + Iterator each = allOf.iterator(); + List visitables = _visitables.get("allOf"); + while (each.hasNext()) { + V1JSONSchemaPropsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromAnyOf(Predicate predicate) { + if (anyOf == null) { + return (A) this; + } + Iterator each = anyOf.iterator(); + List visitables = _visitables.get("anyOf"); + while (each.hasNext()) { + V1JSONSchemaPropsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromOneOf(Predicate predicate) { + if (oneOf == null) { + return (A) this; + } + Iterator each = oneOf.iterator(); + List visitables = _visitables.get("oneOf"); + while (each.hasNext()) { + V1JSONSchemaPropsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public AllOfNested setNewAllOfLike(int index,V1JSONSchemaProps item) { + return new AllOfNested(index, item); + } + + public AnyOfNested setNewAnyOfLike(int index,V1JSONSchemaProps item) { + return new AnyOfNested(index, item); + } + + public OneOfNested setNewOneOfLike(int index,V1JSONSchemaProps item) { + return new OneOfNested(index, item); + } + + 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").add(builder); + allOf.set(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").add(builder); + anyOf.set(index, builder); + } + return (A) this; + } + + public A setToEnum(int index,Object item) { + if (this._enum == null) { + this._enum = new ArrayList(); + } + this._enum.set(index, item); + 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").add(builder); + oneOf.set(index, builder); + } + return (A) this; + } + + public A setToRequired(int index,String item) { + if (this.required == null) { + this.required = new ArrayList(); + } + this.required.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!($ref == null)) { + sb.append("$ref:"); + sb.append($ref); + sb.append(","); + } + if (!($schema == null)) { + sb.append("$schema:"); + sb.append($schema); + sb.append(","); + } + if (!(additionalItems == null)) { + sb.append("additionalItems:"); + sb.append(additionalItems); + sb.append(","); + } + if (!(additionalProperties == null)) { + sb.append("additionalProperties:"); + sb.append(additionalProperties); + sb.append(","); + } + if (!(allOf == null) && !(allOf.isEmpty())) { + sb.append("allOf:"); + sb.append(allOf); + sb.append(","); + } + if (!(anyOf == null) && !(anyOf.isEmpty())) { + sb.append("anyOf:"); + sb.append(anyOf); + sb.append(","); + } + if (!(_default == null)) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(definitions == null) && !(definitions.isEmpty())) { + sb.append("definitions:"); + sb.append(definitions); + sb.append(","); + } + if (!(dependencies == null) && !(dependencies.isEmpty())) { + sb.append("dependencies:"); + sb.append(dependencies); + sb.append(","); + } + if (!(description == null)) { + sb.append("description:"); + sb.append(description); + sb.append(","); + } + if (!(_enum == null) && !(_enum.isEmpty())) { + sb.append("_enum:"); + sb.append(_enum); + sb.append(","); + } + if (!(example == null)) { + sb.append("example:"); + sb.append(example); + sb.append(","); + } + if (!(exclusiveMaximum == null)) { + sb.append("exclusiveMaximum:"); + sb.append(exclusiveMaximum); + sb.append(","); + } + if (!(exclusiveMinimum == null)) { + sb.append("exclusiveMinimum:"); + sb.append(exclusiveMinimum); + sb.append(","); + } + if (!(externalDocs == null)) { + sb.append("externalDocs:"); + sb.append(externalDocs); + sb.append(","); + } + if (!(format == null)) { + sb.append("format:"); + sb.append(format); + sb.append(","); + } + if (!(id == null)) { + sb.append("id:"); + sb.append(id); + sb.append(","); + } + if (!(items == null)) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(maxItems == null)) { + sb.append("maxItems:"); + sb.append(maxItems); + sb.append(","); + } + if (!(maxLength == null)) { + sb.append("maxLength:"); + sb.append(maxLength); + sb.append(","); + } + if (!(maxProperties == null)) { + sb.append("maxProperties:"); + sb.append(maxProperties); + sb.append(","); + } + if (!(maximum == null)) { + sb.append("maximum:"); + sb.append(maximum); + sb.append(","); + } + if (!(minItems == null)) { + sb.append("minItems:"); + sb.append(minItems); + sb.append(","); + } + if (!(minLength == null)) { + sb.append("minLength:"); + sb.append(minLength); + sb.append(","); + } + if (!(minProperties == null)) { + sb.append("minProperties:"); + sb.append(minProperties); + sb.append(","); + } + if (!(minimum == null)) { + sb.append("minimum:"); + sb.append(minimum); + sb.append(","); + } + if (!(multipleOf == null)) { + sb.append("multipleOf:"); + sb.append(multipleOf); + sb.append(","); + } + if (!(not == null)) { + sb.append("not:"); + sb.append(not); + sb.append(","); + } + if (!(nullable == null)) { + sb.append("nullable:"); + sb.append(nullable); + sb.append(","); + } + if (!(oneOf == null) && !(oneOf.isEmpty())) { + sb.append("oneOf:"); + sb.append(oneOf); + sb.append(","); + } + if (!(pattern == null)) { + sb.append("pattern:"); + sb.append(pattern); + sb.append(","); + } + if (!(patternProperties == null) && !(patternProperties.isEmpty())) { + sb.append("patternProperties:"); + sb.append(patternProperties); + sb.append(","); + } + if (!(properties == null) && !(properties.isEmpty())) { + sb.append("properties:"); + sb.append(properties); + sb.append(","); + } + if (!(required == null) && !(required.isEmpty())) { + sb.append("required:"); + sb.append(required); + sb.append(","); + } + if (!(title == null)) { + sb.append("title:"); + sb.append(title); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + sb.append(","); + } + if (!(uniqueItems == null)) { + sb.append("uniqueItems:"); + sb.append(uniqueItems); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdditionalItems(Object additionalItems) { + this.additionalItems = additionalItems; + return (A) this; + } + + public A withAdditionalProperties(Object additionalProperties) { + this.additionalProperties = additionalProperties; + return (A) this; + } + + public A withAllOf(List allOf) { + if (this.allOf != null) { + this._visitables.get("allOf").clear(); + } + if (allOf != null) { + this.allOf = new ArrayList(); + for (V1JSONSchemaProps item : allOf) { + this.addToAllOf(item); + } + } else { + this.allOf = null; + } + return (A) this; + } + + public A withAllOf(V1JSONSchemaProps... allOf) { + if (this.allOf != null) { + this.allOf.clear(); + _visitables.remove("allOf"); + } + if (allOf != null) { + for (V1JSONSchemaProps item : allOf) { + this.addToAllOf(item); + } + } + return (A) this; + } + + public A withAnyOf(List anyOf) { + if (this.anyOf != null) { + this._visitables.get("anyOf").clear(); + } + if (anyOf != null) { + this.anyOf = new ArrayList(); + for (V1JSONSchemaProps item : anyOf) { + this.addToAnyOf(item); + } + } else { + this.anyOf = null; + } + return (A) this; + } + + public A withAnyOf(V1JSONSchemaProps... anyOf) { + if (this.anyOf != null) { + this.anyOf.clear(); + _visitables.remove("anyOf"); + } + if (anyOf != null) { + for (V1JSONSchemaProps item : anyOf) { + this.addToAnyOf(item); + } + } + return (A) this; + } + + public A withDefault(Object _default) { + this._default = _default; + return (A) this; + } + + public A withDefinitions(Map definitions) { + if (definitions == null) { + this.definitions = null; + } else { + this.definitions = new LinkedHashMap(definitions); + } + return (A) this; + } + + public A withDependencies(Map dependencies) { + if (dependencies == null) { + this.dependencies = null; + } else { + this.dependencies = new LinkedHashMap(dependencies); + } + return (A) this; } - public boolean hasMatchingEnum(Predicate predicate) { - for (Object item : _enum) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withDescription(String description) { + this.description = description; + return (A) this; } public A withEnum(List _enum) { @@ -640,7 +1724,7 @@ public A withEnum(List _enum) { return (A) this; } - public A withEnum(java.lang.Object... _enum) { + public A withEnum(Object... _enum) { if (this._enum != null) { this._enum.clear(); _visitables.remove("_enum"); @@ -653,25 +1737,13 @@ public A withEnum(java.lang.Object... _enum) { return (A) this; } - public boolean hasEnum() { - return this._enum != null && !this._enum.isEmpty(); - } - - public Object getExample() { - return this.example; - } - public A withExample(Object example) { this.example = example; return (A) this; } - public boolean hasExample() { - return this.example != null; - } - - public Boolean getExclusiveMaximum() { - return this.exclusiveMaximum; + public A withExclusiveMaximum() { + return withExclusiveMaximum(true); } public A withExclusiveMaximum(Boolean exclusiveMaximum) { @@ -679,12 +1751,8 @@ public A withExclusiveMaximum(Boolean exclusiveMaximum) { return (A) this; } - public boolean hasExclusiveMaximum() { - return this.exclusiveMaximum != null; - } - - public Boolean getExclusiveMinimum() { - return this.exclusiveMinimum; + public A withExclusiveMinimum() { + return withExclusiveMinimum(true); } public A withExclusiveMinimum(Boolean exclusiveMinimum) { @@ -692,14 +1760,6 @@ public A withExclusiveMinimum(Boolean exclusiveMinimum) { return (A) this; } - public boolean hasExclusiveMinimum() { - return this.exclusiveMinimum != null; - } - - public V1ExternalDocumentation buildExternalDocs() { - return this.externalDocs != null ? this.externalDocs.build() : null; - } - public A withExternalDocs(V1ExternalDocumentation externalDocs) { this._visitables.remove("externalDocs"); if (externalDocs != null) { @@ -712,204 +1772,72 @@ public A withExternalDocs(V1ExternalDocumentation externalDocs) { return (A) this; } - public boolean hasExternalDocs() { - return this.externalDocs != null; - } - - public ExternalDocsNested withNewExternalDocs() { - return new ExternalDocsNested(null); - } - - public ExternalDocsNested withNewExternalDocsLike(V1ExternalDocumentation item) { - return new ExternalDocsNested(item); - } - - public ExternalDocsNested editExternalDocs() { - return withNewExternalDocsLike(java.util.Optional.ofNullable(buildExternalDocs()).orElse(null)); - } - - public ExternalDocsNested editOrNewExternalDocs() { - return withNewExternalDocsLike(java.util.Optional.ofNullable(buildExternalDocs()).orElse(new V1ExternalDocumentationBuilder().build())); - } - - public ExternalDocsNested editOrNewExternalDocsLike(V1ExternalDocumentation item) { - return withNewExternalDocsLike(java.util.Optional.ofNullable(buildExternalDocs()).orElse(item)); - } - - public String getFormat() { - return this.format; - } - public A withFormat(String format) { this.format = format; return (A) this; } - public boolean hasFormat() { - return this.format != null; - } - - public String getId() { - return this.id; - } - public A withId(String id) { this.id = id; return (A) this; } - public boolean hasId() { - return this.id != null; - } - - public Object getItems() { - return this.items; - } - public A withItems(Object items) { this.items = items; return (A) this; } - public boolean hasItems() { - return this.items != null; - } - - public Long getMaxItems() { - return this.maxItems; - } - public A withMaxItems(Long maxItems) { this.maxItems = maxItems; return (A) this; } - public boolean hasMaxItems() { - return this.maxItems != null; - } - - public Long getMaxLength() { - return this.maxLength; - } - public A withMaxLength(Long maxLength) { this.maxLength = maxLength; return (A) this; } - public boolean hasMaxLength() { - return this.maxLength != null; - } - - public Long getMaxProperties() { - return this.maxProperties; - } - public A withMaxProperties(Long maxProperties) { this.maxProperties = maxProperties; return (A) this; } - public boolean hasMaxProperties() { - return this.maxProperties != null; - } - - public Double getMaximum() { - return this.maximum; - } - public A withMaximum(Double maximum) { this.maximum = maximum; return (A) this; } - public boolean hasMaximum() { - return this.maximum != null; - } - - public Long getMinItems() { - return this.minItems; - } - public A withMinItems(Long minItems) { this.minItems = minItems; return (A) this; } - public boolean hasMinItems() { - return this.minItems != null; - } - - public Long getMinLength() { - return this.minLength; - } - public A withMinLength(Long minLength) { this.minLength = minLength; return (A) this; } - public boolean hasMinLength() { - return this.minLength != null; - } - - public Long getMinProperties() { - return this.minProperties; - } - public A withMinProperties(Long minProperties) { this.minProperties = minProperties; return (A) this; } - public boolean hasMinProperties() { - return this.minProperties != null; - } - - public Double getMinimum() { - return this.minimum; - } - public A withMinimum(Double minimum) { this.minimum = minimum; return (A) this; } - public boolean hasMinimum() { - return this.minimum != null; - } - - public Double getMultipleOf() { - return this.multipleOf; - } - public A withMultipleOf(Double multipleOf) { this.multipleOf = multipleOf; return (A) this; } - public boolean hasMultipleOf() { - return this.multipleOf != null; - } - - public V1JSONSchemaProps buildNot() { - return this.not != null ? this.not.build() : null; - } - - public A withNot(V1JSONSchemaProps not) { - this._visitables.remove("not"); - if (not != null) { - this.not = new V1JSONSchemaPropsBuilder(not); - this._visitables.get("not").add(this.not); - } else { - this.not = null; - this._visitables.get("not").remove(this.not); - } - return (A) this; + public ExternalDocsNested withNewExternalDocs() { + return new ExternalDocsNested(null); } - public boolean hasNot() { - return this.not != null; + public ExternalDocsNested withNewExternalDocsLike(V1ExternalDocumentation item) { + return new ExternalDocsNested(item); } public NotNested withNewNot() { @@ -920,111 +1848,25 @@ public NotNested withNewNotLike(V1JSONSchemaProps item) { return new NotNested(item); } - public NotNested editNot() { - return withNewNotLike(java.util.Optional.ofNullable(buildNot()).orElse(null)); - } - - public NotNested editOrNewNot() { - return withNewNotLike(java.util.Optional.ofNullable(buildNot()).orElse(new V1JSONSchemaPropsBuilder().build())); - } - - public NotNested editOrNewNotLike(V1JSONSchemaProps item) { - return withNewNotLike(java.util.Optional.ofNullable(buildNot()).orElse(item)); - } - - public Boolean getNullable() { - return this.nullable; - } - - public A withNullable(Boolean nullable) { - this.nullable = nullable; - return (A) this; - } - - public boolean hasNullable() { - return this.nullable != null; - } - - 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);} - 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);} - return (A)this; - } - - public A addToOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.oneOf == null) {this.oneOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").add(builder);this.oneOf.add(builder);} return (A)this; - } - - public A addAllToOneOf(Collection items) { - if (this.oneOf == null) {this.oneOf = new ArrayList();} - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").add(builder);this.oneOf.add(builder);} return (A)this; - } - - public A removeFromOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... items) { - if (this.oneOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").remove(builder); this.oneOf.remove(builder);} return (A)this; - } - - public A removeAllFromOneOf(Collection items) { - if (this.oneOf == null) return (A)this; - for (V1JSONSchemaProps item : items) {V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item);_visitables.get("oneOf").remove(builder); this.oneOf.remove(builder);} return (A)this; - } - - public A removeMatchingFromOneOf(Predicate predicate) { - if (oneOf == null) return (A) this; - final Iterator each = oneOf.iterator(); - final List visitables = _visitables.get("oneOf"); - while (each.hasNext()) { - V1JSONSchemaPropsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildOneOf() { - return this.oneOf != null ? build(oneOf) : null; - } - - public V1JSONSchemaProps buildOneOf(int index) { - return this.oneOf.get(index).build(); - } - - public V1JSONSchemaProps buildFirstOneOf() { - return this.oneOf.get(0).build(); - } - - public V1JSONSchemaProps buildLastOneOf() { - return this.oneOf.get(oneOf.size() - 1).build(); + public A withNot(V1JSONSchemaProps not) { + this._visitables.remove("not"); + if (not != null) { + this.not = new V1JSONSchemaPropsBuilder(not); + this._visitables.get("not").add(this.not); + } else { + this.not = null; + this._visitables.get("not").remove(this.not); + } + return (A) this; } - public V1JSONSchemaProps buildMatchingOneOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : oneOf) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withNullable() { + return withNullable(true); } - public boolean hasMatchingOneOf(Predicate predicate) { - for (V1JSONSchemaPropsBuilder item : oneOf) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withNullable(Boolean nullable) { + this.nullable = nullable; + return (A) this; } public A withOneOf(List oneOf) { @@ -1042,7 +1884,7 @@ public A withOneOf(List oneOf) { return (A) this; } - public A withOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... oneOf) { + public A withOneOf(V1JSONSchemaProps... oneOf) { if (this.oneOf != null) { this.oneOf.clear(); _visitables.remove("oneOf"); @@ -1055,84 +1897,11 @@ public A withOneOf(io.kubernetes.client.openapi.models.V1JSONSchemaProps... oneO return (A) this; } - public boolean hasOneOf() { - return this.oneOf != null && !this.oneOf.isEmpty(); - } - - public OneOfNested addNewOneOf() { - return new OneOfNested(-1, null); - } - - public OneOfNested addNewOneOfLike(V1JSONSchemaProps item) { - return new OneOfNested(-1, item); - } - - public OneOfNested setNewOneOfLike(int index,V1JSONSchemaProps item) { - return new OneOfNested(index, item); - } - - public OneOfNested editOneOf(int index) { - if (oneOf.size() <= index) throw new RuntimeException("Can't edit oneOf. Index exceeds size."); - return setNewOneOfLike(index, buildOneOf(index)); - } - - public OneOfNested editFirstOneOf() { - if (oneOf.size() == 0) throw new RuntimeException("Can't edit first oneOf. The list is empty."); - return setNewOneOfLike(0, buildOneOf(0)); - } - - public OneOfNested editLastOneOf() { - int index = oneOf.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last oneOf. The list is empty."); - return setNewOneOfLike(index, buildOneOf(index)); - } - - public OneOfNested editMatchingOneOf(Predicate predicate) { - int index = -1; - for (int i=0;i map) { - if(this.patternProperties == null && map != null) { this.patternProperties = new LinkedHashMap(); } - if(map != null) { this.patternProperties.putAll(map);} return (A)this; - } - - public A removeFromPatternProperties(String key) { - if(this.patternProperties == null) { return (A) this; } - if(key != null && this.patternProperties != null) {this.patternProperties.remove(key);} return (A)this; - } - - public A removeFromPatternProperties(Map map) { - if(this.patternProperties == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.patternProperties != null){this.patternProperties.remove(key);}}} return (A)this; - } - - public Map getPatternProperties() { - return this.patternProperties; - } - public A withPatternProperties(Map patternProperties) { if (patternProperties == null) { this.patternProperties = null; @@ -1142,34 +1911,6 @@ public A withPatternProperties(Map patternPropert return (A) this; } - public boolean hasPatternProperties() { - return this.patternProperties != null; - } - - public A addToProperties(String key,V1JSONSchemaProps value) { - if(this.properties == null && key != null && value != null) { this.properties = new LinkedHashMap(); } - if(key != null && value != null) {this.properties.put(key, value);} return (A)this; - } - - public A addToProperties(Map map) { - if(this.properties == null && map != null) { this.properties = new LinkedHashMap(); } - if(map != null) { this.properties.putAll(map);} return (A)this; - } - - public A removeFromProperties(String key) { - if(this.properties == null) { return (A) this; } - if(key != null && this.properties != null) {this.properties.remove(key);} return (A)this; - } - - public A removeFromProperties(Map map) { - if(this.properties == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.properties != null){this.properties.remove(key);}}} return (A)this; - } - - public Map getProperties() { - return this.properties; - } - public A withProperties(Map properties) { if (properties == null) { this.properties = null; @@ -1179,73 +1920,9 @@ public A withProperties(Map properties) { return (A) this; } - public boolean hasProperties() { - return this.properties != null; - } - - public A addToRequired(int index,String item) { - if (this.required == null) {this.required = new ArrayList();} - this.required.add(index, item); - return (A)this; - } - - public A setToRequired(int index,String item) { - if (this.required == null) {this.required = new ArrayList();} - this.required.set(index, item); return (A)this; - } - - public A addToRequired(java.lang.String... items) { - if (this.required == null) {this.required = new ArrayList();} - for (String item : items) {this.required.add(item);} return (A)this; - } - - public A addAllToRequired(Collection items) { - if (this.required == null) {this.required = new ArrayList();} - for (String item : items) {this.required.add(item);} return (A)this; - } - - public A removeFromRequired(java.lang.String... items) { - if (this.required == null) return (A)this; - for (String item : items) { this.required.remove(item);} return (A)this; - } - - public A removeAllFromRequired(Collection items) { - if (this.required == null) return (A)this; - for (String item : items) { this.required.remove(item);} return (A)this; - } - - public List getRequired() { - return this.required; - } - - public String getRequired(int index) { - return this.required.get(index); - } - - public String getFirstRequired() { - return this.required.get(0); - } - - public String getLastRequired() { - return this.required.get(required.size() - 1); - } - - public String getMatchingRequired(Predicate predicate) { - for (String item : required) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingRequired(Predicate predicate) { - for (String item : required) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withRef(String $ref) { + this.$ref = $ref; + return (A) this; } public A withRequired(List required) { @@ -1260,7 +1937,7 @@ public A withRequired(List required) { return (A) this; } - public A withRequired(java.lang.String... required) { + public A withRequired(String... required) { if (this.required != null) { this.required.clear(); _visitables.remove("required"); @@ -1273,12 +1950,9 @@ public A withRequired(java.lang.String... required) { return (A) this; } - public boolean hasRequired() { - return this.required != null && !this.required.isEmpty(); - } - - public String getTitle() { - return this.title; + public A withSchema(String $schema) { + this.$schema = $schema; + return (A) this; } public A withTitle(String title) { @@ -1286,186 +1960,65 @@ public A withTitle(String title) { return (A) this; } - public boolean hasTitle() { - return this.title != 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 getUniqueItems() { - return this.uniqueItems; + public A withUniqueItems() { + return withUniqueItems(true); } public A withUniqueItems(Boolean uniqueItems) { this.uniqueItems = uniqueItems; return (A) this; } + public class AllOfNested extends V1JSONSchemaPropsFluent> implements Nested{ - public boolean hasUniqueItems() { - return this.uniqueItems != 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; - V1JSONSchemaPropsFluent that = (V1JSONSchemaPropsFluent) o; - if (!java.util.Objects.equals($ref, that.$ref)) return false; - if (!java.util.Objects.equals($schema, that.$schema)) return false; - if (!java.util.Objects.equals(additionalItems, that.additionalItems)) return false; - if (!java.util.Objects.equals(additionalProperties, that.additionalProperties)) return false; - if (!java.util.Objects.equals(allOf, that.allOf)) return false; - if (!java.util.Objects.equals(anyOf, that.anyOf)) return false; - if (!java.util.Objects.equals(_default, that._default)) return false; - if (!java.util.Objects.equals(definitions, that.definitions)) return false; - if (!java.util.Objects.equals(dependencies, that.dependencies)) return false; - if (!java.util.Objects.equals(description, that.description)) return false; - if (!java.util.Objects.equals(_enum, that._enum)) return false; - if (!java.util.Objects.equals(example, that.example)) return false; - if (!java.util.Objects.equals(exclusiveMaximum, that.exclusiveMaximum)) return false; - if (!java.util.Objects.equals(exclusiveMinimum, that.exclusiveMinimum)) return false; - if (!java.util.Objects.equals(externalDocs, that.externalDocs)) return false; - if (!java.util.Objects.equals(format, that.format)) return false; - if (!java.util.Objects.equals(id, that.id)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(maxItems, that.maxItems)) return false; - if (!java.util.Objects.equals(maxLength, that.maxLength)) return false; - if (!java.util.Objects.equals(maxProperties, that.maxProperties)) return false; - if (!java.util.Objects.equals(maximum, that.maximum)) return false; - if (!java.util.Objects.equals(minItems, that.minItems)) return false; - if (!java.util.Objects.equals(minLength, that.minLength)) return false; - if (!java.util.Objects.equals(minProperties, that.minProperties)) return false; - if (!java.util.Objects.equals(minimum, that.minimum)) return false; - if (!java.util.Objects.equals(multipleOf, that.multipleOf)) return false; - if (!java.util.Objects.equals(not, that.not)) return false; - if (!java.util.Objects.equals(nullable, that.nullable)) return false; - if (!java.util.Objects.equals(oneOf, that.oneOf)) return false; - if (!java.util.Objects.equals(pattern, that.pattern)) return false; - if (!java.util.Objects.equals(patternProperties, that.patternProperties)) return false; - if (!java.util.Objects.equals(properties, that.properties)) return false; - if (!java.util.Objects.equals(required, that.required)) return false; - if (!java.util.Objects.equals(title, that.title)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - if (!java.util.Objects.equals(uniqueItems, that.uniqueItems)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash($ref, $schema, additionalItems, additionalProperties, allOf, anyOf, _default, definitions, dependencies, description, _enum, example, exclusiveMaximum, exclusiveMinimum, externalDocs, format, id, items, maxItems, maxLength, maxProperties, maximum, minItems, minLength, minProperties, minimum, multipleOf, not, nullable, oneOf, pattern, patternProperties, properties, required, title, type, uniqueItems, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if ($ref != null) { sb.append("$ref:"); sb.append($ref + ","); } - if ($schema != null) { sb.append("$schema:"); sb.append($schema + ","); } - if (additionalItems != null) { sb.append("additionalItems:"); sb.append(additionalItems + ","); } - if (additionalProperties != null) { sb.append("additionalProperties:"); sb.append(additionalProperties + ","); } - if (allOf != null && !allOf.isEmpty()) { sb.append("allOf:"); sb.append(allOf + ","); } - if (anyOf != null && !anyOf.isEmpty()) { sb.append("anyOf:"); sb.append(anyOf + ","); } - if (_default != null) { sb.append("_default:"); sb.append(_default + ","); } - if (definitions != null && !definitions.isEmpty()) { sb.append("definitions:"); sb.append(definitions + ","); } - if (dependencies != null && !dependencies.isEmpty()) { sb.append("dependencies:"); sb.append(dependencies + ","); } - if (description != null) { sb.append("description:"); sb.append(description + ","); } - if (_enum != null && !_enum.isEmpty()) { sb.append("_enum:"); sb.append(_enum + ","); } - if (example != null) { sb.append("example:"); sb.append(example + ","); } - if (exclusiveMaximum != null) { sb.append("exclusiveMaximum:"); sb.append(exclusiveMaximum + ","); } - if (exclusiveMinimum != null) { sb.append("exclusiveMinimum:"); sb.append(exclusiveMinimum + ","); } - if (externalDocs != null) { sb.append("externalDocs:"); sb.append(externalDocs + ","); } - if (format != null) { sb.append("format:"); sb.append(format + ","); } - if (id != null) { sb.append("id:"); sb.append(id + ","); } - if (items != null) { sb.append("items:"); sb.append(items + ","); } - if (maxItems != null) { sb.append("maxItems:"); sb.append(maxItems + ","); } - if (maxLength != null) { sb.append("maxLength:"); sb.append(maxLength + ","); } - if (maxProperties != null) { sb.append("maxProperties:"); sb.append(maxProperties + ","); } - if (maximum != null) { sb.append("maximum:"); sb.append(maximum + ","); } - if (minItems != null) { sb.append("minItems:"); sb.append(minItems + ","); } - if (minLength != null) { sb.append("minLength:"); sb.append(minLength + ","); } - if (minProperties != null) { sb.append("minProperties:"); sb.append(minProperties + ","); } - if (minimum != null) { sb.append("minimum:"); sb.append(minimum + ","); } - if (multipleOf != null) { sb.append("multipleOf:"); sb.append(multipleOf + ","); } - if (not != null) { sb.append("not:"); sb.append(not + ","); } - if (nullable != null) { sb.append("nullable:"); sb.append(nullable + ","); } - if (oneOf != null && !oneOf.isEmpty()) { sb.append("oneOf:"); sb.append(oneOf + ","); } - if (pattern != null) { sb.append("pattern:"); sb.append(pattern + ","); } - if (patternProperties != null && !patternProperties.isEmpty()) { sb.append("patternProperties:"); sb.append(patternProperties + ","); } - if (properties != null && !properties.isEmpty()) { sb.append("properties:"); sb.append(properties + ","); } - if (required != null && !required.isEmpty()) { sb.append("required:"); sb.append(required + ","); } - if (title != null) { sb.append("title:"); sb.append(title + ","); } - if (type != null) { sb.append("type:"); sb.append(type + ","); } - if (uniqueItems != null) { sb.append("uniqueItems:"); sb.append(uniqueItems); } - sb.append("}"); - return sb.toString(); - } - - public A withExclusiveMaximum() { - return withExclusiveMaximum(true); - } - - public A withExclusiveMinimum() { - return withExclusiveMinimum(true); - } - - public A withNullable() { - return withNullable(true); - } + V1JSONSchemaPropsBuilder builder; + int index; - public A withUniqueItems() { - return withUniqueItems(true); - } - public class AllOfNested extends V1JSONSchemaPropsFluent> implements Nested{ AllOfNested(int index,V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - int index; - + public N and() { - return (N) V1JSONSchemaPropsFluent.this.setToAllOf(index,builder.build()); + return (N) V1JSONSchemaPropsFluent.this.setToAllOf(index, builder.build()); } public N endAllOf() { return and(); } - } public class AnyOfNested extends V1JSONSchemaPropsFluent> implements Nested{ + + V1JSONSchemaPropsBuilder builder; + int index; + AnyOfNested(int index,V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - int index; - + public N and() { - return (N) V1JSONSchemaPropsFluent.this.setToAnyOf(index,builder.build()); + return (N) V1JSONSchemaPropsFluent.this.setToAnyOf(index, builder.build()); } public N endAnyOf() { return and(); } - } public class ExternalDocsNested extends V1ExternalDocumentationFluent> implements Nested{ + + V1ExternalDocumentationBuilder builder; + ExternalDocsNested(V1ExternalDocumentation item) { this.builder = new V1ExternalDocumentationBuilder(this, item); } - V1ExternalDocumentationBuilder builder; - + public N and() { return (N) V1JSONSchemaPropsFluent.this.withExternalDocs(builder.build()); } @@ -1474,14 +2027,15 @@ public N endExternalDocs() { return and(); } - } public class NotNested extends V1JSONSchemaPropsFluent> implements Nested{ + + V1JSONSchemaPropsBuilder builder; + NotNested(V1JSONSchemaProps item) { this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - + public N and() { return (N) V1JSONSchemaPropsFluent.this.withNot(builder.build()); } @@ -1490,25 +2044,24 @@ public N endNot() { return and(); } - } public class OneOfNested extends V1JSONSchemaPropsFluent> implements Nested{ + + V1JSONSchemaPropsBuilder builder; + int index; + OneOfNested(int index,V1JSONSchemaProps item) { this.index = index; this.builder = new V1JSONSchemaPropsBuilder(this, item); } - V1JSONSchemaPropsBuilder builder; - int index; - + public N and() { - return (N) V1JSONSchemaPropsFluent.this.setToOneOf(index,builder.build()); + return (N) V1JSONSchemaPropsFluent.this.setToOneOf(index, builder.build()); } public N endOneOf() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java index 9f28e66523..0c81199bfd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobBuilder extends V1JobFluent implements VisitableBuilder{ + + V1JobFluent fluent; + public V1JobBuilder() { this(new V1Job()); } @@ -10,17 +14,16 @@ public V1JobBuilder(V1JobFluent fluent) { this(fluent, new V1Job()); } - public V1JobBuilder(V1JobFluent fluent,V1Job instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobBuilder(V1Job instance) { this.fluent = this; this.copyInstance(instance); } - V1JobFluent fluent; + public V1JobBuilder(V1JobFluent fluent,V1Job instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Job build() { V1Job buildable = new V1Job(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1Job build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java index 342d18e5ce..69e988d73d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobConditionBuilder extends V1JobConditionFluent implements VisitableBuilder{ + + V1JobConditionFluent fluent; + public V1JobConditionBuilder() { this(new V1JobCondition()); } @@ -10,17 +14,16 @@ public V1JobConditionBuilder(V1JobConditionFluent fluent) { this(fluent, new V1JobCondition()); } - public V1JobConditionBuilder(V1JobConditionFluent fluent,V1JobCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobConditionBuilder(V1JobCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1JobConditionFluent fluent; + public V1JobConditionBuilder(V1JobConditionFluent fluent,V1JobCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobCondition build() { V1JobCondition buildable = new V1JobCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); @@ -32,5 +35,4 @@ public V1JobCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java index bc6a2bce06..0dc47f192a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java @@ -1,149 +1,193 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobConditionFluent> extends BaseFluent{ - public V1JobConditionFluent() { - } - - public V1JobConditionFluent(V1JobCondition instance) { - this.copyInstance(instance); - } +public class V1JobConditionFluent> extends BaseFluent{ + private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1JobConditionFluent() { + } + public V1JobConditionFluent(V1JobCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1JobCondition instance) { - instance = (instance != null ? instance : new V1JobCondition()); + instance = instance != null ? instance : new V1JobCondition(); if (instance != null) { - this.withLastProbeTime(instance.getLastProbeTime()); - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastProbeTime() { - return this.lastProbeTime; + this.withLastProbeTime(instance.getLastProbeTime()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } - public A withLastProbeTime(OffsetDateTime lastProbeTime) { - this.lastProbeTime = lastProbeTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobConditionFluent that = (V1JobConditionFluent) o; + if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastProbeTime() { - return this.lastProbeTime != null; + public OffsetDateTime getLastProbeTime() { + return this.lastProbeTime; } public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public String getMessage() { + return this.message; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public String getReason() { + return this.reason; } - public String getMessage() { - return this.message; + public String getStatus() { + return this.status; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getType() { + return this.type; } - public boolean hasMessage() { - return this.message != null; + public boolean hasLastProbeTime() { + return this.lastProbeTime != null; } - public String getReason() { - return this.reason; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastProbeTime == null)) { + sb.append("lastProbeTime:"); + sb.append(lastProbeTime); + sb.append(","); + } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastProbeTime(OffsetDateTime lastProbeTime) { + this.lastProbeTime = lastProbeTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1JobConditionFluent that = (V1JobConditionFluent) 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(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 A withMessage(String message) { + this.message = message; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - 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 (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(); + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java index 0dfa658f3a..00ed8acb54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobFluent> extends BaseFluent{ +public class V1JobFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1JobSpecBuilder spec; + private V1JobStatusBuilder status; + public V1JobFluent() { } public V1JobFluent(V1Job instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1JobSpecBuilder spec; - private V1JobStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1JobSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1JobStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1Job instance) { - instance = (instance != null ? instance : new V1Job()); + instance = instance != null ? instance : new V1Job(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1JobSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1JobSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1JobStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1JobStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobFluent that = (V1JobFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1JobSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1JobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1JobStatus item) { + return new StatusNested(item); } public A withSpec(V1JobSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1JobSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1JobSpec 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 V1JobSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1JobSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1JobStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1JobStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1JobStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1JobStatus 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 V1JobStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1JobStatus 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; - V1JobFluent that = (V1JobFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1JobFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1JobSpecFluent> implements Nested{ + + V1JobSpecBuilder builder; + SpecNested(V1JobSpec item) { this.builder = new V1JobSpecBuilder(this, item); } - V1JobSpecBuilder builder; - + public N and() { return (N) V1JobFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1JobStatusFluent> implements Nested{ + + V1JobStatusBuilder builder; + StatusNested(V1JobStatus item) { this.builder = new V1JobStatusBuilder(this, item); } - V1JobStatusBuilder builder; - + public N and() { return (N) V1JobFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java index d91ce78a19..d3da2ce3b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobListBuilder extends V1JobListFluent implements VisitableBuilder{ + + V1JobListFluent fluent; + public V1JobListBuilder() { this(new V1JobList()); } @@ -10,17 +14,16 @@ public V1JobListBuilder(V1JobListFluent fluent) { this(fluent, new V1JobList()); } - public V1JobListBuilder(V1JobListFluent fluent,V1JobList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobListBuilder(V1JobList instance) { this.fluent = this; this.copyInstance(instance); } - V1JobListFluent fluent; + public V1JobListBuilder(V1JobListFluent fluent,V1JobList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobList build() { V1JobList buildable = new V1JobList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1JobList build() { return buildable; } - } \ No newline at end of file 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..efee1947b4 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobListFluent> extends BaseFluent{ +public class V1JobListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1JobListFluent() { } public V1JobListFluent(V1JobList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1JobList instance) { - instance = (instance != null ? instance : new V1JobList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Job item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Job... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Job item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Job buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Job... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Job buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Job... items) { - if (this.items == null) return (A)this; - for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Job buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Job item : items) {V1JobBuilder builder = new V1JobBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Job buildMatchingItem(Predicate predicate) { + for (V1JobBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1JobBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1JobList instance) { + instance = instance != null ? instance : new V1JobList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Job buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Job buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Job buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobListFluent that = (V1JobListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Job buildMatchingItem(Predicate predicate) { - for (V1JobBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Job... items) { + if (this.items == null) { + return (A) this; + } + for (V1Job item : items) { + V1JobBuilder builder = new V1JobBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1JobBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Job item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Job... items) { + public A withItems(V1Job... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Job... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Job item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Job 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1JobFluent> implements Nested{ - 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; - V1JobListFluent that = (V1JobListFluent) 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()); - } + V1JobBuilder builder; + int index; - 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 V1JobFluent> implements Nested{ ItemsNested(int index,V1Job item) { this.index = index; this.builder = new V1JobBuilder(this, item); } - V1JobBuilder builder; - int index; - + public N and() { - return (N) V1JobListFluent.this.setToItems(index,builder.build()); + return (N) V1JobListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1JobListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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 540f5ea045..787e6a6241 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobSpecBuilder extends V1JobSpecFluent implements VisitableBuilder{ + + V1JobSpecFluent fluent; + public V1JobSpecBuilder() { this(new V1JobSpec()); } @@ -10,17 +14,16 @@ public V1JobSpecBuilder(V1JobSpecFluent fluent) { this(fluent, new V1JobSpec()); } - public V1JobSpecBuilder(V1JobSpecFluent fluent,V1JobSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobSpecBuilder(V1JobSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1JobSpecFluent fluent; + public V1JobSpecBuilder(V1JobSpecFluent fluent,V1JobSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobSpec build() { V1JobSpec buildable = new V1JobSpec(); buildable.setActiveDeadlineSeconds(fluent.getActiveDeadlineSeconds()); @@ -42,5 +45,4 @@ public V1JobSpec build() { return buildable; } - } \ No newline at end of file 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 f086b5f714..2acd0bfae1 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 @@ -1,25 +1,23 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; import java.lang.Integer; import java.lang.Long; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobSpecFluent> extends BaseFluent{ - public V1JobSpecFluent() { - } - - public V1JobSpecFluent(V1JobSpec instance) { - this.copyInstance(instance); - } +public class V1JobSpecFluent> extends BaseFluent{ + private Long activeDeadlineSeconds; private Integer backoffLimit; private Integer backoffLimitPerIndex; @@ -36,310 +34,430 @@ public V1JobSpecFluent(V1JobSpec instance) { private Boolean suspend; private V1PodTemplateSpecBuilder template; private Integer ttlSecondsAfterFinished; + + public V1JobSpecFluent() { + } - protected void copyInstance(V1JobSpec instance) { - instance = (instance != null ? instance : new V1JobSpec()); - if (instance != null) { - this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); - this.withBackoffLimit(instance.getBackoffLimit()); - 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()); - } + public V1JobSpecFluent(V1JobSpec instance) { + this.copyInstance(instance); + } + + public V1PodFailurePolicy buildPodFailurePolicy() { + return this.podFailurePolicy != null ? this.podFailurePolicy.build() : null; } - public Long getActiveDeadlineSeconds() { - return this.activeDeadlineSeconds; + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; } - public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { - this.activeDeadlineSeconds = activeDeadlineSeconds; - return (A) this; + public V1SuccessPolicy buildSuccessPolicy() { + return this.successPolicy != null ? this.successPolicy.build() : null; } - public boolean hasActiveDeadlineSeconds() { - return this.activeDeadlineSeconds != null; + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; } - public Integer getBackoffLimit() { - return this.backoffLimit; + protected void copyInstance(V1JobSpec instance) { + instance = instance != null ? instance : new V1JobSpec(); + if (instance != null) { + this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); + this.withBackoffLimit(instance.getBackoffLimit()); + 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()); + } } - public A withBackoffLimit(Integer backoffLimit) { - this.backoffLimit = backoffLimit; - return (A) this; + public PodFailurePolicyNested editOrNewPodFailurePolicy() { + return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(new V1PodFailurePolicyBuilder().build())); } - public boolean hasBackoffLimit() { - return this.backoffLimit != null; + public PodFailurePolicyNested editOrNewPodFailurePolicyLike(V1PodFailurePolicy item) { + return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(item)); } - public Integer getBackoffLimitPerIndex() { - return this.backoffLimitPerIndex; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withBackoffLimitPerIndex(Integer backoffLimitPerIndex) { - this.backoffLimitPerIndex = backoffLimitPerIndex; - return (A) this; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public boolean hasBackoffLimitPerIndex() { - return this.backoffLimitPerIndex != null; + public SuccessPolicyNested editOrNewSuccessPolicy() { + return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(new V1SuccessPolicyBuilder().build())); } - public String getCompletionMode() { - return this.completionMode; + public SuccessPolicyNested editOrNewSuccessPolicyLike(V1SuccessPolicy item) { + return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(item)); } - public A withCompletionMode(String completionMode) { - this.completionMode = completionMode; - return (A) this; + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } - public boolean hasCompletionMode() { - return this.completionMode != null; + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } - public Integer getCompletions() { - return this.completions; + public PodFailurePolicyNested editPodFailurePolicy() { + return this.withNewPodFailurePolicyLike(Optional.ofNullable(this.buildPodFailurePolicy()).orElse(null)); } - public A withCompletions(Integer completions) { - this.completions = completions; - return (A) this; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public boolean hasCompletions() { - return this.completions != null; + public SuccessPolicyNested editSuccessPolicy() { + return this.withNewSuccessPolicyLike(Optional.ofNullable(this.buildSuccessPolicy()).orElse(null)); } - public String getManagedBy() { - return this.managedBy; + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); } - public A withManagedBy(String managedBy) { - this.managedBy = managedBy; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobSpecFluent that = (V1JobSpecFluent) o; + if (!(Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds))) { + return false; + } + if (!(Objects.equals(backoffLimit, that.backoffLimit))) { + return false; + } + if (!(Objects.equals(backoffLimitPerIndex, that.backoffLimitPerIndex))) { + return false; + } + if (!(Objects.equals(completionMode, that.completionMode))) { + return false; + } + if (!(Objects.equals(completions, that.completions))) { + return false; + } + if (!(Objects.equals(managedBy, that.managedBy))) { + return false; + } + if (!(Objects.equals(manualSelector, that.manualSelector))) { + return false; + } + if (!(Objects.equals(maxFailedIndexes, that.maxFailedIndexes))) { + return false; + } + if (!(Objects.equals(parallelism, that.parallelism))) { + return false; + } + if (!(Objects.equals(podFailurePolicy, that.podFailurePolicy))) { + return false; + } + if (!(Objects.equals(podReplacementPolicy, that.podReplacementPolicy))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(successPolicy, that.successPolicy))) { + return false; + } + if (!(Objects.equals(suspend, that.suspend))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + if (!(Objects.equals(ttlSecondsAfterFinished, that.ttlSecondsAfterFinished))) { + return false; + } + return true; } - public boolean hasManagedBy() { - return this.managedBy != null; + public Long getActiveDeadlineSeconds() { + return this.activeDeadlineSeconds; } - public Boolean getManualSelector() { - return this.manualSelector; + public Integer getBackoffLimit() { + return this.backoffLimit; } - public A withManualSelector(Boolean manualSelector) { - this.manualSelector = manualSelector; - return (A) this; + public Integer getBackoffLimitPerIndex() { + return this.backoffLimitPerIndex; } - public boolean hasManualSelector() { - return this.manualSelector != null; + public String getCompletionMode() { + return this.completionMode; } - public Integer getMaxFailedIndexes() { - return this.maxFailedIndexes; + public Integer getCompletions() { + return this.completions; } - public A withMaxFailedIndexes(Integer maxFailedIndexes) { - this.maxFailedIndexes = maxFailedIndexes; - return (A) this; + public String getManagedBy() { + return this.managedBy; } - public boolean hasMaxFailedIndexes() { - return this.maxFailedIndexes != null; + public Boolean getManualSelector() { + return this.manualSelector; + } + + public Integer getMaxFailedIndexes() { + return this.maxFailedIndexes; } public Integer getParallelism() { return this.parallelism; } - public A withParallelism(Integer parallelism) { - this.parallelism = parallelism; - return (A) this; + public String getPodReplacementPolicy() { + return this.podReplacementPolicy; } - public boolean hasParallelism() { - return this.parallelism != null; + public Boolean getSuspend() { + return this.suspend; } - public V1PodFailurePolicy buildPodFailurePolicy() { - return this.podFailurePolicy != null ? this.podFailurePolicy.build() : null; + public Integer getTtlSecondsAfterFinished() { + return this.ttlSecondsAfterFinished; } - public A withPodFailurePolicy(V1PodFailurePolicy podFailurePolicy) { - this._visitables.remove("podFailurePolicy"); - if (podFailurePolicy != null) { - this.podFailurePolicy = new V1PodFailurePolicyBuilder(podFailurePolicy); - this._visitables.get("podFailurePolicy").add(this.podFailurePolicy); - } else { - this.podFailurePolicy = null; - this._visitables.get("podFailurePolicy").remove(this.podFailurePolicy); - } - return (A) this; + public boolean hasActiveDeadlineSeconds() { + return this.activeDeadlineSeconds != null; } - public boolean hasPodFailurePolicy() { - return this.podFailurePolicy != null; + public boolean hasBackoffLimit() { + return this.backoffLimit != null; } - public PodFailurePolicyNested withNewPodFailurePolicy() { - return new PodFailurePolicyNested(null); + public boolean hasBackoffLimitPerIndex() { + return this.backoffLimitPerIndex != null; } - public PodFailurePolicyNested withNewPodFailurePolicyLike(V1PodFailurePolicy item) { - return new PodFailurePolicyNested(item); + public boolean hasCompletionMode() { + return this.completionMode != null; } - public PodFailurePolicyNested editPodFailurePolicy() { - return withNewPodFailurePolicyLike(java.util.Optional.ofNullable(buildPodFailurePolicy()).orElse(null)); + public boolean hasCompletions() { + return this.completions != null; } - public PodFailurePolicyNested editOrNewPodFailurePolicy() { - return withNewPodFailurePolicyLike(java.util.Optional.ofNullable(buildPodFailurePolicy()).orElse(new V1PodFailurePolicyBuilder().build())); + public boolean hasManagedBy() { + return this.managedBy != null; } - public PodFailurePolicyNested editOrNewPodFailurePolicyLike(V1PodFailurePolicy item) { - return withNewPodFailurePolicyLike(java.util.Optional.ofNullable(buildPodFailurePolicy()).orElse(item)); + public boolean hasManualSelector() { + return this.manualSelector != null; } - public String getPodReplacementPolicy() { - return this.podReplacementPolicy; + public boolean hasMaxFailedIndexes() { + return this.maxFailedIndexes != null; } - public A withPodReplacementPolicy(String podReplacementPolicy) { - this.podReplacementPolicy = podReplacementPolicy; - return (A) this; + public boolean hasParallelism() { + return this.parallelism != null; + } + + public boolean hasPodFailurePolicy() { + return this.podFailurePolicy != null; } public boolean hasPodReplacementPolicy() { return this.podReplacementPolicy != null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public boolean hasSelector() { + return this.selector != 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 hasSuccessPolicy() { + return this.successPolicy != null; } - public boolean hasSelector() { - return this.selector != null; + public boolean hasSuspend() { + return this.suspend != null; } - public SelectorNested withNewSelector() { - return new SelectorNested(null); + public boolean hasTemplate() { + return this.template != null; } - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + public boolean hasTtlSecondsAfterFinished() { + return this.ttlSecondsAfterFinished != null; } - public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + public int hashCode() { + return Objects.hash(activeDeadlineSeconds, backoffLimit, backoffLimitPerIndex, completionMode, completions, managedBy, manualSelector, maxFailedIndexes, parallelism, podFailurePolicy, podReplacementPolicy, selector, successPolicy, suspend, template, ttlSecondsAfterFinished); } - public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(activeDeadlineSeconds == null)) { + sb.append("activeDeadlineSeconds:"); + sb.append(activeDeadlineSeconds); + sb.append(","); + } + if (!(backoffLimit == null)) { + sb.append("backoffLimit:"); + sb.append(backoffLimit); + sb.append(","); + } + if (!(backoffLimitPerIndex == null)) { + sb.append("backoffLimitPerIndex:"); + sb.append(backoffLimitPerIndex); + sb.append(","); + } + if (!(completionMode == null)) { + sb.append("completionMode:"); + sb.append(completionMode); + sb.append(","); + } + if (!(completions == null)) { + sb.append("completions:"); + sb.append(completions); + sb.append(","); + } + if (!(managedBy == null)) { + sb.append("managedBy:"); + sb.append(managedBy); + sb.append(","); + } + if (!(manualSelector == null)) { + sb.append("manualSelector:"); + sb.append(manualSelector); + sb.append(","); + } + if (!(maxFailedIndexes == null)) { + sb.append("maxFailedIndexes:"); + sb.append(maxFailedIndexes); + sb.append(","); + } + if (!(parallelism == null)) { + sb.append("parallelism:"); + sb.append(parallelism); + sb.append(","); + } + if (!(podFailurePolicy == null)) { + sb.append("podFailurePolicy:"); + sb.append(podFailurePolicy); + sb.append(","); + } + if (!(podReplacementPolicy == null)) { + sb.append("podReplacementPolicy:"); + sb.append(podReplacementPolicy); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(successPolicy == null)) { + sb.append("successPolicy:"); + sb.append(successPolicy); + sb.append(","); + } + if (!(suspend == null)) { + sb.append("suspend:"); + sb.append(suspend); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + sb.append(","); + } + if (!(ttlSecondsAfterFinished == null)) { + sb.append("ttlSecondsAfterFinished:"); + sb.append(ttlSecondsAfterFinished); + } + sb.append("}"); + return sb.toString(); } - public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; + return (A) this; } - public V1SuccessPolicy buildSuccessPolicy() { - return this.successPolicy != null ? this.successPolicy.build() : null; + public A withBackoffLimit(Integer backoffLimit) { + this.backoffLimit = backoffLimit; + return (A) this; } - 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); - } + public A withBackoffLimitPerIndex(Integer backoffLimitPerIndex) { + this.backoffLimitPerIndex = backoffLimitPerIndex; return (A) this; } - public boolean hasSuccessPolicy() { - return this.successPolicy != null; + public A withCompletionMode(String completionMode) { + this.completionMode = completionMode; + return (A) this; } - public SuccessPolicyNested withNewSuccessPolicy() { - return new SuccessPolicyNested(null); + public A withCompletions(Integer completions) { + this.completions = completions; + return (A) this; } - public SuccessPolicyNested withNewSuccessPolicyLike(V1SuccessPolicy item) { - return new SuccessPolicyNested(item); + public A withManagedBy(String managedBy) { + this.managedBy = managedBy; + return (A) this; } - public SuccessPolicyNested editSuccessPolicy() { - return withNewSuccessPolicyLike(java.util.Optional.ofNullable(buildSuccessPolicy()).orElse(null)); + public A withManualSelector() { + return withManualSelector(true); } - public SuccessPolicyNested editOrNewSuccessPolicy() { - return withNewSuccessPolicyLike(java.util.Optional.ofNullable(buildSuccessPolicy()).orElse(new V1SuccessPolicyBuilder().build())); + public A withManualSelector(Boolean manualSelector) { + this.manualSelector = manualSelector; + return (A) this; } - public SuccessPolicyNested editOrNewSuccessPolicyLike(V1SuccessPolicy item) { - return withNewSuccessPolicyLike(java.util.Optional.ofNullable(buildSuccessPolicy()).orElse(item)); + public A withMaxFailedIndexes(Integer maxFailedIndexes) { + this.maxFailedIndexes = maxFailedIndexes; + return (A) this; } - public Boolean getSuspend() { - return this.suspend; + public PodFailurePolicyNested withNewPodFailurePolicy() { + return new PodFailurePolicyNested(null); } - public A withSuspend(Boolean suspend) { - this.suspend = suspend; - return (A) this; + public PodFailurePolicyNested withNewPodFailurePolicyLike(V1PodFailurePolicy item) { + return new PodFailurePolicyNested(item); } - public boolean hasSuspend() { - return this.suspend != null; + public SelectorNested withNewSelector() { + return new SelectorNested(null); } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); } - public A withTemplate(V1PodTemplateSpec template) { - this._visitables.remove("template"); - if (template != null) { - this.template = new V1PodTemplateSpecBuilder(template); - this._visitables.get("template").add(this.template); - } else { - this.template = null; - this._visitables.get("template").remove(this.template); - } - return (A) this; + public SuccessPolicyNested withNewSuccessPolicy() { + return new SuccessPolicyNested(null); } - public boolean hasTemplate() { - return this.template != null; + public SuccessPolicyNested withNewSuccessPolicyLike(V1SuccessPolicy item) { + return new SuccessPolicyNested(item); } public TemplateNested withNewTemplate() { @@ -350,95 +468,85 @@ public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { return new TemplateNested(item); } - public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); + public A withParallelism(Integer parallelism) { + this.parallelism = parallelism; + return (A) this; } - public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + public A withPodFailurePolicy(V1PodFailurePolicy podFailurePolicy) { + this._visitables.remove("podFailurePolicy"); + if (podFailurePolicy != null) { + this.podFailurePolicy = new V1PodFailurePolicyBuilder(podFailurePolicy); + this._visitables.get("podFailurePolicy").add(this.podFailurePolicy); + } else { + this.podFailurePolicy = null; + this._visitables.get("podFailurePolicy").remove(this.podFailurePolicy); + } + return (A) this; } - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); + public A withPodReplacementPolicy(String podReplacementPolicy) { + this.podReplacementPolicy = podReplacementPolicy; + return (A) this; } - public Integer getTtlSecondsAfterFinished() { - return this.ttlSecondsAfterFinished; + 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 A withTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { - this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; + 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 hasTtlSecondsAfterFinished() { - return this.ttlSecondsAfterFinished != null; + public A withSuspend() { + return withSuspend(true); } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1JobSpecFluent that = (V1JobSpecFluent) o; - if (!java.util.Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds)) return false; - if (!java.util.Objects.equals(backoffLimit, that.backoffLimit)) return false; - 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; - return true; + public A withSuspend(Boolean suspend) { + this.suspend = suspend; + return (A) this; } - public int 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 A withTemplate(V1PodTemplateSpec template) { + this._visitables.remove("template"); + if (template != null) { + this.template = new V1PodTemplateSpecBuilder(template); + this._visitables.get("template").add(this.template); + } else { + this.template = null; + this._visitables.get("template").remove(this.template); + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (activeDeadlineSeconds != null) { sb.append("activeDeadlineSeconds:"); sb.append(activeDeadlineSeconds + ","); } - if (backoffLimit != null) { sb.append("backoffLimit:"); sb.append(backoffLimit + ","); } - 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); } - sb.append("}"); - return sb.toString(); + public A withTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { + this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; + return (A) this; } + public class PodFailurePolicyNested extends V1PodFailurePolicyFluent> implements Nested{ - public A withManualSelector() { - return withManualSelector(true); - } + V1PodFailurePolicyBuilder builder; - public A withSuspend() { - return withSuspend(true); - } - public class PodFailurePolicyNested extends V1PodFailurePolicyFluent> implements Nested{ PodFailurePolicyNested(V1PodFailurePolicy item) { this.builder = new V1PodFailurePolicyBuilder(this, item); } - V1PodFailurePolicyBuilder builder; - + public N and() { return (N) V1JobSpecFluent.this.withPodFailurePolicy(builder.build()); } @@ -447,14 +555,15 @@ public N endPodFailurePolicy() { return and(); } - } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1JobSpecFluent.this.withSelector(builder.build()); } @@ -463,14 +572,15 @@ public N endSelector() { return and(); } - } public class SuccessPolicyNested extends V1SuccessPolicyFluent> implements Nested{ + + V1SuccessPolicyBuilder builder; + SuccessPolicyNested(V1SuccessPolicy item) { this.builder = new V1SuccessPolicyBuilder(this, item); } - V1SuccessPolicyBuilder builder; - + public N and() { return (N) V1JobSpecFluent.this.withSuccessPolicy(builder.build()); } @@ -479,14 +589,15 @@ public N endSuccessPolicy() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1JobSpecFluent.this.withTemplate(builder.build()); } @@ -495,7 +606,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java index 8f9c16e506..a8cf7e80e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobStatusBuilder extends V1JobStatusFluent implements VisitableBuilder{ + + V1JobStatusFluent fluent; + public V1JobStatusBuilder() { this(new V1JobStatus()); } @@ -10,17 +14,16 @@ public V1JobStatusBuilder(V1JobStatusFluent fluent) { this(fluent, new V1JobStatus()); } - public V1JobStatusBuilder(V1JobStatusFluent fluent,V1JobStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobStatusBuilder(V1JobStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1JobStatusFluent fluent; + public V1JobStatusBuilder(V1JobStatusFluent fluent,V1JobStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobStatus build() { V1JobStatus buildable = new V1JobStatus(); buildable.setActive(fluent.getActive()); @@ -37,5 +40,4 @@ public V1JobStatus build() { return buildable; } - } \ No newline at end of file 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..c647e5d291 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 @@ -1,30 +1,28 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobStatusFluent> extends BaseFluent{ - public V1JobStatusFluent() { - } - - public V1JobStatusFluent(V1JobStatus instance) { - this.copyInstance(instance); - } +public class V1JobStatusFluent> extends BaseFluent{ + private Integer active; private String completedIndexes; private OffsetDateTime completionTime; @@ -36,119 +34,69 @@ public V1JobStatusFluent(V1JobStatus instance) { private Integer succeeded; private Integer terminating; private V1UncountedTerminatedPodsBuilder uncountedTerminatedPods; - - protected void copyInstance(V1JobStatus instance) { - instance = (instance != null ? instance : new V1JobStatus()); - if (instance != null) { - this.withActive(instance.getActive()); - this.withCompletedIndexes(instance.getCompletedIndexes()); - this.withCompletionTime(instance.getCompletionTime()); - this.withConditions(instance.getConditions()); - this.withFailed(instance.getFailed()); - this.withFailedIndexes(instance.getFailedIndexes()); - this.withReady(instance.getReady()); - this.withStartTime(instance.getStartTime()); - this.withSucceeded(instance.getSucceeded()); - this.withTerminating(instance.getTerminating()); - this.withUncountedTerminatedPods(instance.getUncountedTerminatedPods()); - } - } - - public Integer getActive() { - return this.active; - } - - public A withActive(Integer active) { - this.active = active; - return (A) this; - } - - public boolean hasActive() { - return this.active != null; + + public V1JobStatusFluent() { } - public String getCompletedIndexes() { - return this.completedIndexes; + public V1JobStatusFluent(V1JobStatus instance) { + this.copyInstance(instance); } - - public A withCompletedIndexes(String completedIndexes) { - this.completedIndexes = completedIndexes; + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasCompletedIndexes() { - return this.completedIndexes != null; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public OffsetDateTime getCompletionTime() { - return this.completionTime; + public ConditionsNested addNewConditionLike(V1JobCondition item) { + return new ConditionsNested(-1, item); } - public A withCompletionTime(OffsetDateTime completionTime) { - this.completionTime = completionTime; + public A addToConditions(V1JobCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasCompletionTime() { - return this.completionTime != null; - } - 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);} - return (A)this; - } - - public A setToConditions(int index,V1JobCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + 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);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1JobCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(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 (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1JobCondition... items) { - if (this.conditions == null) return (A)this; - for (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(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 (V1JobCondition item : items) {V1JobConditionBuilder builder = new V1JobConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + 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 removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1JobConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1JobCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1JobCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1JobCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -166,180 +114,386 @@ public V1JobCondition buildMatchingCondition(Predicate pr return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1JobConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1UncountedTerminatedPods buildUncountedTerminatedPods() { + return this.uncountedTerminatedPods != null ? this.uncountedTerminatedPods.build() : null; } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); + protected void copyInstance(V1JobStatus instance) { + instance = instance != null ? instance : new V1JobStatus(); + if (instance != null) { + this.withActive(instance.getActive()); + this.withCompletedIndexes(instance.getCompletedIndexes()); + this.withCompletionTime(instance.getCompletionTime()); + this.withConditions(instance.getConditions()); + this.withFailed(instance.getFailed()); + this.withFailedIndexes(instance.getFailedIndexes()); + this.withReady(instance.getReady()); + this.withStartTime(instance.getStartTime()); + this.withSucceeded(instance.getSucceeded()); + this.withTerminating(instance.getTerminating()); + this.withUncountedTerminatedPods(instance.getUncountedTerminatedPods()); } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1JobCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A withConditions(io.kubernetes.client.openapi.models.V1JobCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - if (conditions != null) { - for (V1JobCondition item : conditions) { - this.addToConditions(item); - } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public UncountedTerminatedPodsNested editOrNewUncountedTerminatedPods() { + return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(new V1UncountedTerminatedPodsBuilder().build())); } - public ConditionsNested addNewConditionLike(V1JobCondition item) { - return new ConditionsNested(-1, item); + public UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { + return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(item)); } - public ConditionsNested setNewConditionLike(int index,V1JobCondition item) { - return new ConditionsNested(index, item); + public UncountedTerminatedPodsNested editUncountedTerminatedPods() { + return this.withNewUncountedTerminatedPodsLike(Optional.ofNullable(this.buildUncountedTerminatedPods()).orElse(null)); } - 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobStatusFluent that = (V1JobStatusFluent) o; + if (!(Objects.equals(active, that.active))) { + return false; + } + if (!(Objects.equals(completedIndexes, that.completedIndexes))) { + return false; + } + if (!(Objects.equals(completionTime, that.completionTime))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(failed, that.failed))) { + return false; + } + if (!(Objects.equals(failedIndexes, that.failedIndexes))) { + return false; + } + if (!(Objects.equals(ready, that.ready))) { + return false; + } + if (!(Objects.equals(startTime, that.startTime))) { + return false; + } + if (!(Objects.equals(succeeded, that.succeeded))) { + return false; + } + if (!(Objects.equals(terminating, that.terminating))) { + return false; + } + if (!(Objects.equals(uncountedTerminatedPods, that.uncountedTerminatedPods))) { + return false; + } + return true; } - 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 Integer getActive() { + return this.active; } - 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 String getCompletedIndexes() { + return this.completedIndexes; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1JobConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasReady() { + return this.ready != null; } public boolean hasStartTime() { return this.startTime != null; } - public Integer getSucceeded() { - return this.succeeded; + public boolean hasSucceeded() { + return this.succeeded != null; } - public A withSucceeded(Integer succeeded) { - this.succeeded = succeeded; + public boolean hasTerminating() { + return this.terminating != null; + } + + public boolean hasUncountedTerminatedPods() { + return this.uncountedTerminatedPods != null; + } + + public int hashCode() { + return Objects.hash(active, completedIndexes, completionTime, conditions, failed, failedIndexes, ready, startTime, succeeded, terminating, uncountedTerminatedPods); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasSucceeded() { - return this.succeeded != null; + public A removeFromConditions(V1JobCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1JobCondition item : items) { + V1JobConditionBuilder builder = new V1JobConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public Integer getTerminating() { - return this.terminating; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1JobConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A withTerminating(Integer terminating) { - this.terminating = terminating; + public ConditionsNested setNewConditionLike(int index,V1JobCondition item) { + return new ConditionsNested(index, item); + } + + 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").add(builder); + conditions.set(index, builder); + } return (A) this; } - public boolean hasTerminating() { - return this.terminating != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(active == null)) { + sb.append("active:"); + sb.append(active); + sb.append(","); + } + if (!(completedIndexes == null)) { + sb.append("completedIndexes:"); + sb.append(completedIndexes); + sb.append(","); + } + if (!(completionTime == null)) { + sb.append("completionTime:"); + sb.append(completionTime); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(failed == null)) { + sb.append("failed:"); + sb.append(failed); + sb.append(","); + } + if (!(failedIndexes == null)) { + sb.append("failedIndexes:"); + sb.append(failedIndexes); + sb.append(","); + } + if (!(ready == null)) { + sb.append("ready:"); + sb.append(ready); + sb.append(","); + } + if (!(startTime == null)) { + sb.append("startTime:"); + sb.append(startTime); + sb.append(","); + } + if (!(succeeded == null)) { + sb.append("succeeded:"); + sb.append(succeeded); + sb.append(","); + } + if (!(terminating == null)) { + sb.append("terminating:"); + sb.append(terminating); + sb.append(","); + } + if (!(uncountedTerminatedPods == null)) { + sb.append("uncountedTerminatedPods:"); + sb.append(uncountedTerminatedPods); + } + sb.append("}"); + return sb.toString(); } - public V1UncountedTerminatedPods buildUncountedTerminatedPods() { - return this.uncountedTerminatedPods != null ? this.uncountedTerminatedPods.build() : null; + public A withActive(Integer active) { + this.active = active; + return (A) this; } - public A withUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods) { - this._visitables.remove("uncountedTerminatedPods"); - if (uncountedTerminatedPods != null) { - this.uncountedTerminatedPods = new V1UncountedTerminatedPodsBuilder(uncountedTerminatedPods); - this._visitables.get("uncountedTerminatedPods").add(this.uncountedTerminatedPods); + public A withCompletedIndexes(String completedIndexes) { + this.completedIndexes = completedIndexes; + return (A) this; + } + + public A withCompletionTime(OffsetDateTime completionTime) { + this.completionTime = completionTime; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1JobCondition item : conditions) { + this.addToConditions(item); + } } else { - this.uncountedTerminatedPods = null; - this._visitables.get("uncountedTerminatedPods").remove(this.uncountedTerminatedPods); + this.conditions = null; } return (A) this; } - public boolean hasUncountedTerminatedPods() { - return this.uncountedTerminatedPods != null; + public A withConditions(V1JobCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1JobCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withFailed(Integer failed) { + this.failed = failed; + return (A) this; + } + + public A withFailedIndexes(String failedIndexes) { + this.failedIndexes = failedIndexes; + return (A) this; } public UncountedTerminatedPodsNested withNewUncountedTerminatedPods() { @@ -350,82 +504,64 @@ public UncountedTerminatedPodsNested withNewUncountedTerminatedPodsLike(V1Unc return new UncountedTerminatedPodsNested(item); } - public UncountedTerminatedPodsNested editUncountedTerminatedPods() { - return withNewUncountedTerminatedPodsLike(java.util.Optional.ofNullable(buildUncountedTerminatedPods()).orElse(null)); - } - - public UncountedTerminatedPodsNested editOrNewUncountedTerminatedPods() { - return withNewUncountedTerminatedPodsLike(java.util.Optional.ofNullable(buildUncountedTerminatedPods()).orElse(new V1UncountedTerminatedPodsBuilder().build())); + public A withReady(Integer ready) { + this.ready = ready; + return (A) this; } - public UncountedTerminatedPodsNested editOrNewUncountedTerminatedPodsLike(V1UncountedTerminatedPods item) { - return withNewUncountedTerminatedPodsLike(java.util.Optional.ofNullable(buildUncountedTerminatedPods()).orElse(item)); + public A withStartTime(OffsetDateTime startTime) { + this.startTime = startTime; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1JobStatusFluent that = (V1JobStatusFluent) o; - if (!java.util.Objects.equals(active, that.active)) return false; - if (!java.util.Objects.equals(completedIndexes, that.completedIndexes)) return false; - if (!java.util.Objects.equals(completionTime, that.completionTime)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(failed, that.failed)) return false; - if (!java.util.Objects.equals(failedIndexes, that.failedIndexes)) return false; - if (!java.util.Objects.equals(ready, that.ready)) return false; - if (!java.util.Objects.equals(startTime, that.startTime)) return false; - if (!java.util.Objects.equals(succeeded, that.succeeded)) return false; - if (!java.util.Objects.equals(terminating, that.terminating)) return false; - if (!java.util.Objects.equals(uncountedTerminatedPods, that.uncountedTerminatedPods)) return false; - return true; + public A withSucceeded(Integer succeeded) { + this.succeeded = succeeded; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(active, completedIndexes, completionTime, conditions, failed, failedIndexes, ready, startTime, succeeded, terminating, uncountedTerminatedPods, super.hashCode()); + public A withTerminating(Integer terminating) { + this.terminating = terminating; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (active != null) { sb.append("active:"); sb.append(active + ","); } - if (completedIndexes != null) { sb.append("completedIndexes:"); sb.append(completedIndexes + ","); } - if (completionTime != null) { sb.append("completionTime:"); sb.append(completionTime + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (failed != null) { sb.append("failed:"); sb.append(failed + ","); } - if (failedIndexes != null) { sb.append("failedIndexes:"); sb.append(failedIndexes + ","); } - if (ready != null) { sb.append("ready:"); sb.append(ready + ","); } - if (startTime != null) { sb.append("startTime:"); sb.append(startTime + ","); } - if (succeeded != null) { sb.append("succeeded:"); sb.append(succeeded + ","); } - if (terminating != null) { sb.append("terminating:"); sb.append(terminating + ","); } - if (uncountedTerminatedPods != null) { sb.append("uncountedTerminatedPods:"); sb.append(uncountedTerminatedPods); } - sb.append("}"); - return sb.toString(); + public A withUncountedTerminatedPods(V1UncountedTerminatedPods uncountedTerminatedPods) { + this._visitables.remove("uncountedTerminatedPods"); + if (uncountedTerminatedPods != null) { + this.uncountedTerminatedPods = new V1UncountedTerminatedPodsBuilder(uncountedTerminatedPods); + this._visitables.get("uncountedTerminatedPods").add(this.uncountedTerminatedPods); + } else { + this.uncountedTerminatedPods = null; + this._visitables.get("uncountedTerminatedPods").remove(this.uncountedTerminatedPods); + } + return (A) this; } public class ConditionsNested extends V1JobConditionFluent> implements Nested{ + + V1JobConditionBuilder builder; + int index; + ConditionsNested(int index,V1JobCondition item) { this.index = index; this.builder = new V1JobConditionBuilder(this, item); } - V1JobConditionBuilder builder; - int index; - + public N and() { - return (N) V1JobStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1JobStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { return and(); } - } public class UncountedTerminatedPodsNested extends V1UncountedTerminatedPodsFluent> implements Nested{ + + V1UncountedTerminatedPodsBuilder builder; + UncountedTerminatedPodsNested(V1UncountedTerminatedPods item) { this.builder = new V1UncountedTerminatedPodsBuilder(this, item); } - V1UncountedTerminatedPodsBuilder builder; - + public N and() { return (N) V1JobStatusFluent.this.withUncountedTerminatedPods(builder.build()); } @@ -434,7 +570,5 @@ public N endUncountedTerminatedPods() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java index bad9adb146..a5e18270df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1JobTemplateSpecBuilder extends V1JobTemplateSpecFluent implements VisitableBuilder{ + + V1JobTemplateSpecFluent fluent; + public V1JobTemplateSpecBuilder() { this(new V1JobTemplateSpec()); } @@ -10,17 +14,16 @@ public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent) { this(fluent, new V1JobTemplateSpec()); } - public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent,V1JobTemplateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1JobTemplateSpecBuilder(V1JobTemplateSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1JobTemplateSpecFluent fluent; + public V1JobTemplateSpecBuilder(V1JobTemplateSpecFluent fluent,V1JobTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1JobTemplateSpec build() { V1JobTemplateSpec buildable = new V1JobTemplateSpec(); buildable.setMetadata(fluent.buildMetadata()); @@ -28,5 +31,4 @@ public V1JobTemplateSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java index 2df834f26b..8226e6b63c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java @@ -1,35 +1,116 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1JobTemplateSpecFluent> extends BaseFluent{ +public class V1JobTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1JobSpecBuilder spec; + public V1JobTemplateSpecFluent() { } public V1JobTemplateSpecFluent(V1JobTemplateSpec instance) { this.copyInstance(instance); } - private V1ObjectMetaBuilder metadata; - private V1JobSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1JobSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1JobTemplateSpec instance) { - instance = (instance != null ? instance : new V1JobTemplateSpec()); + instance = instance != null ? instance : new V1JobTemplateSpec(); if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1JobSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1JobSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JobTemplateSpecFluent that = (V1JobTemplateSpecFluent) o; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); } public A withMetadata(V1ObjectMeta metadata) { @@ -44,10 +125,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -56,20 +133,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1JobSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1JobSpec item) { + return new SpecNested(item); } public A withSpec(V1JobSpec spec) { @@ -83,59 +152,14 @@ public A withSpec(V1JobSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1JobSpec 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 V1JobSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1JobSpec 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; - V1JobTemplateSpecFluent that = (V1JobTemplateSpecFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1JobTemplateSpecFluent.this.withMetadata(builder.build()); } @@ -144,14 +168,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1JobSpecFluent> implements Nested{ + + V1JobSpecBuilder builder; + SpecNested(V1JobSpec item) { this.builder = new V1JobSpecBuilder(this, item); } - V1JobSpecBuilder builder; - + public N and() { return (N) V1JobTemplateSpecFluent.this.withSpec(builder.build()); } @@ -160,7 +185,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java index 14923973ca..9445165ac3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1KeyToPathBuilder extends V1KeyToPathFluent implements VisitableBuilder{ + + V1KeyToPathFluent fluent; + public V1KeyToPathBuilder() { this(new V1KeyToPath()); } @@ -10,17 +14,16 @@ public V1KeyToPathBuilder(V1KeyToPathFluent fluent) { this(fluent, new V1KeyToPath()); } - public V1KeyToPathBuilder(V1KeyToPathFluent fluent,V1KeyToPath instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1KeyToPathBuilder(V1KeyToPath instance) { this.fluent = this; this.copyInstance(instance); } - V1KeyToPathFluent fluent; + public V1KeyToPathBuilder(V1KeyToPathFluent fluent,V1KeyToPath instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1KeyToPath build() { V1KeyToPath buildable = new V1KeyToPath(); buildable.setKey(fluent.getKey()); @@ -29,5 +32,4 @@ public V1KeyToPath build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java index a3541dda38..07b4bced04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java @@ -1,98 +1,124 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1KeyToPathFluent> extends BaseFluent{ +public class V1KeyToPathFluent> extends BaseFluent{ + + private String key; + private Integer mode; + private String path; + public V1KeyToPathFluent() { } public V1KeyToPathFluent(V1KeyToPath instance) { this.copyInstance(instance); } - private String key; - private Integer mode; - private String path; - + protected void copyInstance(V1KeyToPath instance) { - instance = (instance != null ? instance : new V1KeyToPath()); + instance = instance != null ? instance : new V1KeyToPath(); if (instance != null) { - this.withKey(instance.getKey()); - this.withMode(instance.getMode()); - this.withPath(instance.getPath()); - } - } - - public String getKey() { - return this.key; + this.withKey(instance.getKey()); + this.withMode(instance.getMode()); + this.withPath(instance.getPath()); + } } - public A withKey(String key) { - this.key = key; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1KeyToPathFluent that = (V1KeyToPathFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(mode, that.mode))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + return true; } - public boolean hasKey() { - return this.key != null; + public String getKey() { + return this.key; } public Integer getMode() { return this.mode; } - public A withMode(Integer mode) { - this.mode = mode; - return (A) this; - } - - public boolean hasMode() { - return this.mode != null; - } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + public boolean hasKey() { + return this.key != null; } - public boolean hasPath() { - return this.path != null; + public boolean hasMode() { + return this.mode != 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; - V1KeyToPathFluent that = (V1KeyToPathFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(mode, that.mode)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - return true; + public boolean hasPath() { + return this.path != null; } public int hashCode() { - return java.util.Objects.hash(key, mode, path, super.hashCode()); + return Objects.hash(key, mode, path); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (mode != null) { sb.append("mode:"); sb.append(mode + ","); } - if (path != null) { sb.append("path:"); sb.append(path); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(mode == null)) { + sb.append("mode:"); + sb.append(mode); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + } sb.append("}"); return sb.toString(); } - + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withMode(Integer mode) { + this.mode = mode; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + } \ No newline at end of file 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..46949d7ef5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1LabelSelectorAttributesBuilder extends V1LabelSelectorAttributesFluent implements VisitableBuilder{ + + V1LabelSelectorAttributesFluent fluent; + + public V1LabelSelectorAttributesBuilder() { + this(new V1LabelSelectorAttributes()); + } + + public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributesFluent fluent) { + this(fluent, new V1LabelSelectorAttributes()); + } + + public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributes instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1LabelSelectorAttributesBuilder(V1LabelSelectorAttributesFluent fluent,V1LabelSelectorAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..1964aa33fa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java @@ -0,0 +1,320 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1LabelSelectorAttributesFluent> extends BaseFluent{ + + private String rawSelector; + private ArrayList requirements; + + public V1LabelSelectorAttributesFluent() { + } + + public V1LabelSelectorAttributesFluent(V1LabelSelectorAttributes instance) { + this.copyInstance(instance); + } + + 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 RequirementsNested addNewRequirement() { + return new RequirementsNested(-1, null); + } + + public RequirementsNested addNewRequirementLike(V1LabelSelectorRequirement item) { + return new RequirementsNested(-1, item); + } + + public A addToRequirements(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 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 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 V1LabelSelectorRequirement buildRequirement(int index) { + return this.requirements.get(index).build(); + } + + public List buildRequirements() { + return this.requirements != null ? build(requirements) : null; + } + + protected void copyInstance(V1LabelSelectorAttributes instance) { + instance = instance != null ? instance : new V1LabelSelectorAttributes(); + if (instance != null) { + this.withRawSelector(instance.getRawSelector()); + this.withRequirements(instance.getRequirements()); + } + } + + public RequirementsNested editFirstRequirement() { + if (requirements.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requirements")); + } + return this.setNewRequirementLike(0, this.buildRequirement(0)); + } + + public RequirementsNested editLastRequirement() { + int index = requirements.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); + } + + public RequirementsNested editMatchingRequirement(Predicate predicate) { + int index = -1; + for (int i = 0;i < requirements.size();i++) { + if (predicate.test(requirements.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); + } + + public RequirementsNested editRequirement(int index) { + if (requirements.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requirements")); + } + return this.setNewRequirementLike(index, this.buildRequirement(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LabelSelectorAttributesFluent that = (V1LabelSelectorAttributesFluent) o; + if (!(Objects.equals(rawSelector, that.rawSelector))) { + return false; + } + if (!(Objects.equals(requirements, that.requirements))) { + return false; + } + return true; + } + + public String getRawSelector() { + return this.rawSelector; + } + + public boolean hasMatchingRequirement(Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item : requirements) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRawSelector() { + return this.rawSelector != null; + } + + public boolean hasRequirements() { + return this.requirements != null && !(this.requirements.isEmpty()); + } + + public int hashCode() { + return Objects.hash(rawSelector, requirements); + } + + 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 removeFromRequirements(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 removeMatchingFromRequirements(Predicate predicate) { + if (requirements == null) { + return (A) this; + } + Iterator each = requirements.iterator(); + 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 RequirementsNested setNewRequirementLike(int index,V1LabelSelectorRequirement item) { + return new RequirementsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(rawSelector == null)) { + sb.append("rawSelector:"); + sb.append(rawSelector); + sb.append(","); + } + if (!(requirements == null) && !(requirements.isEmpty())) { + sb.append("requirements:"); + sb.append(requirements); + } + sb.append("}"); + return sb.toString(); + } + + public A withRawSelector(String rawSelector) { + this.rawSelector = rawSelector; + return (A) this; + } + + 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(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 class RequirementsNested extends V1LabelSelectorRequirementFluent> implements Nested{ + + V1LabelSelectorRequirementBuilder builder; + int index; + + RequirementsNested(int index,V1LabelSelectorRequirement item) { + this.index = index; + this.builder = new V1LabelSelectorRequirementBuilder(this, item); + } + + 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/V1LabelSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java index e0629e1de4..4cd7ba3642 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LabelSelectorBuilder extends V1LabelSelectorFluent implements VisitableBuilder{ + + V1LabelSelectorFluent fluent; + public V1LabelSelectorBuilder() { this(new V1LabelSelector()); } @@ -10,17 +14,16 @@ public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent) { this(fluent, new V1LabelSelector()); } - public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent,V1LabelSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LabelSelectorBuilder(V1LabelSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1LabelSelectorFluent fluent; + public V1LabelSelectorBuilder(V1LabelSelectorFluent fluent,V1LabelSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LabelSelector build() { V1LabelSelector buildable = new V1LabelSelector(); buildable.setMatchExpressions(fluent.buildMatchExpressions()); @@ -28,5 +31,4 @@ public V1LabelSelector build() { return buildable; } - } \ 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..94c9886299 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 @@ -1,103 +1,118 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; 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.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LabelSelectorFluent> extends BaseFluent{ +public class V1LabelSelectorFluent> extends BaseFluent{ + + private ArrayList matchExpressions; + private Map matchLabels; + public V1LabelSelectorFluent() { } public V1LabelSelectorFluent(V1LabelSelector instance) { this.copyInstance(instance); } - private ArrayList matchExpressions; - private Map matchLabels; - - protected void copyInstance(V1LabelSelector instance) { - instance = (instance != null ? instance : new V1LabelSelector()); - if (instance != null) { - this.withMatchExpressions(instance.getMatchExpressions()); - this.withMatchLabels(instance.getMatchLabels()); - } + + public A addAllToMatchExpressions(Collection items) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public MatchExpressionsNested addNewMatchExpression() { + return new MatchExpressionsNested(-1, null); } - 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);} - return (A)this; + public MatchExpressionsNested addNewMatchExpressionLike(V1LabelSelectorRequirement item) { + return new MatchExpressionsNested(-1, item); } - public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + public A addToMatchExpressions(V1LabelSelectorRequirement... items) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } - public A addAllToMatchExpressions(Collection items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + 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(builder); + matchExpressions.add(index, builder); + } + return (A) this; } - public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... items) { - if (this.matchExpressions == null) return (A)this; - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + public A addToMatchLabels(Map map) { + if (this.matchLabels == null && map != null) { + this.matchLabels = new LinkedHashMap(); + } + if (map != null) { + this.matchLabels.putAll(map); + } + return (A) this; } - public A removeAllFromMatchExpressions(Collection items) { - if (this.matchExpressions == null) return (A)this; - for (V1LabelSelectorRequirement item : items) {V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + public A addToMatchLabels(String key,String value) { + if (this.matchLabels == null && key != null && value != null) { + this.matchLabels = new LinkedHashMap(); + } + if (key != null && value != null) { + this.matchLabels.put(key, value); + } + return (A) this; } - public A removeMatchingFromMatchExpressions(Predicate predicate) { - if (matchExpressions == null) return (A) this; - final Iterator each = matchExpressions.iterator(); - final List visitables = _visitables.get("matchExpressions"); - while (each.hasNext()) { - V1LabelSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1LabelSelectorRequirement buildFirstMatchExpression() { + return this.matchExpressions.get(0).build(); } - public List buildMatchExpressions() { - return this.matchExpressions != null ? build(matchExpressions) : null; + public V1LabelSelectorRequirement buildLastMatchExpression() { + return this.matchExpressions.get(matchExpressions.size() - 1).build(); } public V1LabelSelectorRequirement buildMatchExpression(int index) { return this.matchExpressions.get(index).build(); } - public V1LabelSelectorRequirement buildFirstMatchExpression() { - return this.matchExpressions.get(0).build(); - } - - public V1LabelSelectorRequirement buildLastMatchExpression() { - return this.matchExpressions.get(matchExpressions.size() - 1).build(); + public List buildMatchExpressions() { + return this.matchExpressions != null ? build(matchExpressions) : null; } public V1LabelSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { @@ -109,160 +124,247 @@ public V1LabelSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { - for (V1LabelSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1LabelSelector instance) { + instance = instance != null ? instance : new V1LabelSelector(); + if (instance != null) { + this.withMatchExpressions(instance.getMatchExpressions()); + this.withMatchLabels(instance.getMatchLabels()); + } } - public A withMatchExpressions(List matchExpressions) { - if (this.matchExpressions != null) { - this._visitables.get("matchExpressions").clear(); - } - if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); - for (V1LabelSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } else { - this.matchExpressions = null; + public MatchExpressionsNested editFirstMatchExpression() { + if (matchExpressions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchExpressions")); } - return (A) this; + return this.setNewMatchExpressionLike(0, this.buildMatchExpression(0)); } - public A withMatchExpressions(io.kubernetes.client.openapi.models.V1LabelSelectorRequirement... matchExpressions) { - if (this.matchExpressions != null) { - this.matchExpressions.clear(); - _visitables.remove("matchExpressions"); - } - if (matchExpressions != null) { - for (V1LabelSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } + public MatchExpressionsNested editLastMatchExpression() { + int index = matchExpressions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchExpressions")); } - return (A) this; + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public boolean hasMatchExpressions() { - return this.matchExpressions != null && !this.matchExpressions.isEmpty(); + public MatchExpressionsNested editMatchExpression(int index) { + if (matchExpressions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public MatchExpressionsNested addNewMatchExpression() { - return new MatchExpressionsNested(-1, null); + public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchExpressions.size();i++) { + if (predicate.test(matchExpressions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public MatchExpressionsNested addNewMatchExpressionLike(V1LabelSelectorRequirement item) { - return new MatchExpressionsNested(-1, item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LabelSelectorFluent that = (V1LabelSelectorFluent) o; + if (!(Objects.equals(matchExpressions, that.matchExpressions))) { + return false; + } + if (!(Objects.equals(matchLabels, that.matchLabels))) { + return false; + } + return true; } - public MatchExpressionsNested setNewMatchExpressionLike(int index,V1LabelSelectorRequirement item) { - return new MatchExpressionsNested(index, item); + public Map getMatchLabels() { + return this.matchLabels; } - public MatchExpressionsNested editMatchExpression(int index) { - if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + public boolean hasMatchExpressions() { + return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); } - public MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); - return setNewMatchExpressionLike(0, buildMatchExpression(0)); + public boolean hasMatchLabels() { + return this.matchLabels != null; } - public MatchExpressionsNested editLastMatchExpression() { - int index = matchExpressions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + public boolean hasMatchingMatchExpression(Predicate predicate) { + for (V1LabelSelectorRequirementBuilder item : matchExpressions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { - int index = -1; - for (int i=0;i items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; } - public A addToMatchLabels(Map map) { - if(this.matchLabels == null && map != null) { this.matchLabels = new LinkedHashMap(); } - if(map != null) { this.matchLabels.putAll(map);} return (A)this; + public A removeFromMatchExpressions(V1LabelSelectorRequirement... items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1LabelSelectorRequirement item : items) { + V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; } public A removeFromMatchLabels(String key) { - if(this.matchLabels == null) { return (A) this; } - if(key != null && this.matchLabels != null) {this.matchLabels.remove(key);} return (A)this; + if (this.matchLabels == null) { + return (A) this; + } + if (key != null && this.matchLabels != null) { + this.matchLabels.remove(key); + } + return (A) this; } public A removeFromMatchLabels(Map map) { - if(this.matchLabels == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.matchLabels != null){this.matchLabels.remove(key);}}} return (A)this; - } - - public Map getMatchLabels() { - return this.matchLabels; - } - - public A withMatchLabels(Map matchLabels) { - if (matchLabels == null) { - this.matchLabels = null; - } else { - this.matchLabels = new LinkedHashMap(matchLabels); + if (this.matchLabels == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.matchLabels != null) { + this.matchLabels.remove(key); + } + } } return (A) this; } - public boolean hasMatchLabels() { - return this.matchLabels != null; + public A removeMatchingFromMatchExpressions(Predicate predicate) { + if (matchExpressions == null) { + return (A) this; + } + Iterator each = matchExpressions.iterator(); + List visitables = _visitables.get("matchExpressions"); + while (each.hasNext()) { + V1LabelSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1LabelSelectorFluent that = (V1LabelSelectorFluent) o; - if (!java.util.Objects.equals(matchExpressions, that.matchExpressions)) return false; - if (!java.util.Objects.equals(matchLabels, that.matchLabels)) return false; - return true; + public MatchExpressionsNested setNewMatchExpressionLike(int index,V1LabelSelectorRequirement item) { + return new MatchExpressionsNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(matchExpressions, matchLabels, super.hashCode()); + 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").add(builder); + matchExpressions.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (matchExpressions != null && !matchExpressions.isEmpty()) { sb.append("matchExpressions:"); sb.append(matchExpressions + ","); } - if (matchLabels != null && !matchLabels.isEmpty()) { sb.append("matchLabels:"); sb.append(matchLabels); } + if (!(matchExpressions == null) && !(matchExpressions.isEmpty())) { + sb.append("matchExpressions:"); + sb.append(matchExpressions); + sb.append(","); + } + if (!(matchLabels == null) && !(matchLabels.isEmpty())) { + sb.append("matchLabels:"); + sb.append(matchLabels); + } sb.append("}"); return sb.toString(); } + + public A withMatchExpressions(List matchExpressions) { + if (this.matchExpressions != null) { + this._visitables.get("matchExpressions").clear(); + } + if (matchExpressions != null) { + this.matchExpressions = new ArrayList(); + for (V1LabelSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); + } + } else { + this.matchExpressions = null; + } + return (A) this; + } + + public A withMatchExpressions(V1LabelSelectorRequirement... matchExpressions) { + if (this.matchExpressions != null) { + this.matchExpressions.clear(); + _visitables.remove("matchExpressions"); + } + if (matchExpressions != null) { + for (V1LabelSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); + } + } + return (A) this; + } + + public A withMatchLabels(Map matchLabels) { + if (matchLabels == null) { + this.matchLabels = null; + } else { + this.matchLabels = new LinkedHashMap(matchLabels); + } + return (A) this; + } public class MatchExpressionsNested extends V1LabelSelectorRequirementFluent> implements Nested{ + + V1LabelSelectorRequirementBuilder builder; + int index; + MatchExpressionsNested(int index,V1LabelSelectorRequirement item) { this.index = index; this.builder = new V1LabelSelectorRequirementBuilder(this, item); } - V1LabelSelectorRequirementBuilder builder; - int index; - + public N and() { - return (N) V1LabelSelectorFluent.this.setToMatchExpressions(index,builder.build()); + return (N) V1LabelSelectorFluent.this.setToMatchExpressions(index, builder.build()); } public N endMatchExpression() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java index f4c88db363..8d375b0b83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LabelSelectorRequirementBuilder extends V1LabelSelectorRequirementFluent implements VisitableBuilder{ + + V1LabelSelectorRequirementFluent fluent; + public V1LabelSelectorRequirementBuilder() { this(new V1LabelSelectorRequirement()); } @@ -10,17 +14,16 @@ public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent flu this(fluent, new V1LabelSelectorRequirement()); } - public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent fluent,V1LabelSelectorRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1LabelSelectorRequirementFluent fluent; + public V1LabelSelectorRequirementBuilder(V1LabelSelectorRequirementFluent fluent,V1LabelSelectorRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LabelSelectorRequirement build() { V1LabelSelectorRequirement buildable = new V1LabelSelectorRequirement(); buildable.setKey(fluent.getKey()); @@ -29,5 +32,4 @@ public V1LabelSelectorRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java index 0a19d1d81e..63b4eccd51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java @@ -1,127 +1,208 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LabelSelectorRequirementFluent> extends BaseFluent{ +public class V1LabelSelectorRequirementFluent> extends BaseFluent{ + + private String key; + private String operator; + private List values; + public V1LabelSelectorRequirementFluent() { } public V1LabelSelectorRequirementFluent(V1LabelSelectorRequirement instance) { this.copyInstance(instance); } - private String key; - private String operator; - private List values; + + 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 addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; + } + + public A addToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(index, item); + return (A) this; + } protected void copyInstance(V1LabelSelectorRequirement instance) { - instance = (instance != null ? instance : new V1LabelSelectorRequirement()); + instance = instance != null ? instance : new V1LabelSelectorRequirement(); if (instance != null) { - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LabelSelectorRequirementFluent that = (V1LabelSelectorRequirementFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; + } + + public String getFirstValue() { + return this.values.get(0); } public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + public String getLastValue() { + return this.values.get(values.size() - 1); } - public boolean hasKey() { - return this.key != null; + public String getMatchingValue(Predicate predicate) { + for (String item : values) { + if (predicate.test(item)) { + return item; + } + } + return null; } public String getOperator() { return this.operator; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + public String getValue(int index) { + return this.values.get(index); } - public boolean hasOperator() { - return this.operator != null; + public List getValues() { + return this.values; } - public A addToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.add(index, item); - return (A)this; + public boolean hasKey() { + return this.key != null; } - public A setToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + public boolean hasMatchingValue(Predicate predicate) { + for (String item : values) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 boolean hasOperator() { + return this.operator != null; } - 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 boolean hasValues() { + return this.values != null && !(this.values.isEmpty()); } - 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 int hashCode() { + return Objects.hash(key, operator, values); } 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; + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } - public String getValue(int index) { - return this.values.get(index); + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } - public String getFirstValue() { - return this.values.get(0); + public A setToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public String getLastValue() { - return this.values.get(values.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withKey(String key) { + this.key = key; + return (A) this; } - public boolean hasMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withOperator(String operator) { + this.operator = operator; + return (A) this; } public A withValues(List values) { @@ -136,7 +217,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.String... values) { + public A withValues(String... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -149,34 +230,4 @@ public A withValues(java.lang.String... values) { 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; - V1LabelSelectorRequirementFluent that = (V1LabelSelectorRequirementFluent) 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/V1LeaseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java index 8e1f73cec4..079922d51e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LeaseBuilder extends V1LeaseFluent implements VisitableBuilder{ + + V1LeaseFluent fluent; + public V1LeaseBuilder() { this(new V1Lease()); } @@ -10,17 +14,16 @@ public V1LeaseBuilder(V1LeaseFluent fluent) { this(fluent, new V1Lease()); } - public V1LeaseBuilder(V1LeaseFluent fluent,V1Lease instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LeaseBuilder(V1Lease instance) { this.fluent = this; this.copyInstance(instance); } - V1LeaseFluent fluent; + public V1LeaseBuilder(V1LeaseFluent fluent,V1Lease instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Lease build() { V1Lease buildable = new V1Lease(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1Lease build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java index f65f2970c5..d3519e206c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LeaseFluent> extends BaseFluent{ +public class V1LeaseFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1LeaseSpecBuilder spec; + public V1LeaseFluent() { } public V1LeaseFluent(V1Lease instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1LeaseSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1LeaseSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1Lease instance) { - instance = (instance != null ? instance : new V1Lease()); + instance = instance != null ? instance : new V1Lease(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1LeaseSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1LeaseSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LeaseFluent that = (V1LeaseFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1LeaseSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1LeaseSpec item) { + return new SpecNested(item); } public A withSpec(V1LeaseSpec spec) { @@ -113,63 +198,14 @@ public A withSpec(V1LeaseSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1LeaseSpec 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 V1LeaseSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1LeaseSpec 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; - V1LeaseFluent that = (V1LeaseFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1LeaseFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1LeaseSpecFluent> implements Nested{ + + V1LeaseSpecBuilder builder; + SpecNested(V1LeaseSpec item) { this.builder = new V1LeaseSpecBuilder(this, item); } - V1LeaseSpecBuilder builder; - + public N and() { return (N) V1LeaseFluent.this.withSpec(builder.build()); } @@ -194,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java index 06ab94c424..4abe53e0db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LeaseListBuilder extends V1LeaseListFluent implements VisitableBuilder{ + + V1LeaseListFluent fluent; + public V1LeaseListBuilder() { this(new V1LeaseList()); } @@ -10,17 +14,16 @@ public V1LeaseListBuilder(V1LeaseListFluent fluent) { this(fluent, new V1LeaseList()); } - public V1LeaseListBuilder(V1LeaseListFluent fluent,V1LeaseList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LeaseListBuilder(V1LeaseList instance) { this.fluent = this; this.copyInstance(instance); } - V1LeaseListFluent fluent; + public V1LeaseListBuilder(V1LeaseListFluent fluent,V1LeaseList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LeaseList build() { V1LeaseList buildable = new V1LeaseList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1LeaseList build() { return buildable; } - } \ No newline at end of file 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..1dbfde27d6 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LeaseListFluent> extends BaseFluent{ +public class V1LeaseListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1LeaseListFluent() { } public V1LeaseListFluent(V1LeaseList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1LeaseList instance) { - instance = (instance != null ? instance : new V1LeaseList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Lease item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Lease... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Lease item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Lease buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Lease... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Lease buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Lease... items) { - if (this.items == null) return (A)this; - for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Lease buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Lease item : items) {V1LeaseBuilder builder = new V1LeaseBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Lease buildMatchingItem(Predicate predicate) { + for (V1LeaseBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1LeaseBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1LeaseList instance) { + instance = instance != null ? instance : new V1LeaseList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Lease buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Lease buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Lease buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LeaseListFluent that = (V1LeaseListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Lease buildMatchingItem(Predicate predicate) { - for (V1LeaseBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Lease... items) { + if (this.items == null) { + return (A) this; + } + for (V1Lease item : items) { + V1LeaseBuilder builder = new V1LeaseBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1LeaseBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Lease item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Lease... items) { + public A withItems(V1Lease... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Lease... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Lease item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Lease 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1LeaseFluent> implements Nested{ - 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; - V1LeaseListFluent that = (V1LeaseListFluent) 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()); - } + V1LeaseBuilder builder; + int index; - 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 V1LeaseFluent> implements Nested{ ItemsNested(int index,V1Lease item) { this.index = index; this.builder = new V1LeaseBuilder(this, item); } - V1LeaseBuilder builder; - int index; - + public N and() { - return (N) V1LeaseListFluent.this.setToItems(index,builder.build()); + return (N) V1LeaseListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1LeaseListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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..5161ec401a 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LeaseSpecBuilder extends V1LeaseSpecFluent implements VisitableBuilder{ + + V1LeaseSpecFluent fluent; + public V1LeaseSpecBuilder() { this(new V1LeaseSpec()); } @@ -10,26 +14,26 @@ public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent) { this(fluent, new V1LeaseSpec()); } - public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent,V1LeaseSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LeaseSpecBuilder(V1LeaseSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1LeaseSpecFluent fluent; + public V1LeaseSpecBuilder(V1LeaseSpecFluent fluent,V1LeaseSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LeaseSpec build() { V1LeaseSpec buildable = new V1LeaseSpec(); buildable.setAcquireTime(fluent.getAcquireTime()); 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; } - } \ No newline at end of file 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..c146ea4b52 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 @@ -1,133 +1,217 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LeaseSpecFluent> extends BaseFluent{ - public V1LeaseSpecFluent() { - } - - public V1LeaseSpecFluent(V1LeaseSpec instance) { - this.copyInstance(instance); - } +public class V1LeaseSpecFluent> extends BaseFluent{ + private OffsetDateTime acquireTime; private String holderIdentity; private Integer leaseDurationSeconds; private Integer leaseTransitions; + private String preferredHolder; private OffsetDateTime renewTime; + private String strategy; + + public V1LeaseSpecFluent() { + } + public V1LeaseSpecFluent(V1LeaseSpec instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1LeaseSpec instance) { - instance = (instance != null ? instance : new V1LeaseSpec()); + instance = instance != null ? instance : new V1LeaseSpec(); if (instance != null) { - this.withAcquireTime(instance.getAcquireTime()); - this.withHolderIdentity(instance.getHolderIdentity()); - this.withLeaseDurationSeconds(instance.getLeaseDurationSeconds()); - this.withLeaseTransitions(instance.getLeaseTransitions()); - this.withRenewTime(instance.getRenewTime()); - } + this.withAcquireTime(instance.getAcquireTime()); + this.withHolderIdentity(instance.getHolderIdentity()); + this.withLeaseDurationSeconds(instance.getLeaseDurationSeconds()); + this.withLeaseTransitions(instance.getLeaseTransitions()); + this.withPreferredHolder(instance.getPreferredHolder()); + this.withRenewTime(instance.getRenewTime()); + this.withStrategy(instance.getStrategy()); + } } - public OffsetDateTime getAcquireTime() { - return this.acquireTime; - } - - public A withAcquireTime(OffsetDateTime acquireTime) { - this.acquireTime = acquireTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LeaseSpecFluent that = (V1LeaseSpecFluent) o; + if (!(Objects.equals(acquireTime, that.acquireTime))) { + return false; + } + if (!(Objects.equals(holderIdentity, that.holderIdentity))) { + return false; + } + if (!(Objects.equals(leaseDurationSeconds, that.leaseDurationSeconds))) { + return false; + } + if (!(Objects.equals(leaseTransitions, that.leaseTransitions))) { + return false; + } + if (!(Objects.equals(preferredHolder, that.preferredHolder))) { + return false; + } + if (!(Objects.equals(renewTime, that.renewTime))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + return true; } - public boolean hasAcquireTime() { - return this.acquireTime != null; + public OffsetDateTime getAcquireTime() { + return this.acquireTime; } public String getHolderIdentity() { return this.holderIdentity; } - public A withHolderIdentity(String holderIdentity) { - this.holderIdentity = holderIdentity; - return (A) this; + public Integer getLeaseDurationSeconds() { + return this.leaseDurationSeconds; } - public boolean hasHolderIdentity() { - return this.holderIdentity != null; + public Integer getLeaseTransitions() { + return this.leaseTransitions; } - public Integer getLeaseDurationSeconds() { - return this.leaseDurationSeconds; + public String getPreferredHolder() { + return this.preferredHolder; } - public A withLeaseDurationSeconds(Integer leaseDurationSeconds) { - this.leaseDurationSeconds = leaseDurationSeconds; - return (A) this; + public OffsetDateTime getRenewTime() { + return this.renewTime; } - public boolean hasLeaseDurationSeconds() { - return this.leaseDurationSeconds != null; + public String getStrategy() { + return this.strategy; } - public Integer getLeaseTransitions() { - return this.leaseTransitions; + public boolean hasAcquireTime() { + return this.acquireTime != null; } - public A withLeaseTransitions(Integer leaseTransitions) { - this.leaseTransitions = leaseTransitions; - return (A) this; + public boolean hasHolderIdentity() { + return this.holderIdentity != null; } - public boolean hasLeaseTransitions() { - return this.leaseTransitions != null; + public boolean hasLeaseDurationSeconds() { + return this.leaseDurationSeconds != null; } - public OffsetDateTime getRenewTime() { - return this.renewTime; + public boolean hasLeaseTransitions() { + return this.leaseTransitions != null; } - public A withRenewTime(OffsetDateTime renewTime) { - this.renewTime = renewTime; - return (A) this; + public boolean hasPreferredHolder() { + return this.preferredHolder != null; } public boolean hasRenewTime() { return this.renewTime != 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; - V1LeaseSpecFluent that = (V1LeaseSpecFluent) o; - if (!java.util.Objects.equals(acquireTime, that.acquireTime)) return false; - 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(renewTime, that.renewTime)) return false; - return true; + public boolean hasStrategy() { + return this.strategy != null; } public int hashCode() { - return java.util.Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, renewTime, super.hashCode()); + return Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, preferredHolder, renewTime, strategy); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (acquireTime != null) { sb.append("acquireTime:"); sb.append(acquireTime + ","); } - 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 (!(acquireTime == null)) { + sb.append("acquireTime:"); + sb.append(acquireTime); + sb.append(","); + } + if (!(holderIdentity == null)) { + sb.append("holderIdentity:"); + sb.append(holderIdentity); + sb.append(","); + } + if (!(leaseDurationSeconds == null)) { + sb.append("leaseDurationSeconds:"); + sb.append(leaseDurationSeconds); + sb.append(","); + } + if (!(leaseTransitions == null)) { + sb.append("leaseTransitions:"); + sb.append(leaseTransitions); + sb.append(","); + } + if (!(preferredHolder == null)) { + sb.append("preferredHolder:"); + sb.append(preferredHolder); + sb.append(","); + } + if (!(renewTime == null)) { + sb.append("renewTime:"); + sb.append(renewTime); + sb.append(","); + } + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + } sb.append("}"); return sb.toString(); } - + public A withAcquireTime(OffsetDateTime acquireTime) { + this.acquireTime = acquireTime; + return (A) this; + } + + public A withHolderIdentity(String holderIdentity) { + this.holderIdentity = holderIdentity; + return (A) this; + } + + public A withLeaseDurationSeconds(Integer leaseDurationSeconds) { + this.leaseDurationSeconds = leaseDurationSeconds; + return (A) this; + } + + public A withLeaseTransitions(Integer leaseTransitions) { + this.leaseTransitions = leaseTransitions; + return (A) this; + } + + public A withPreferredHolder(String preferredHolder) { + this.preferredHolder = preferredHolder; + return (A) this; + } + + public A withRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + return (A) this; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + } \ No newline at end of file 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..a32bdb6806 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LifecycleBuilder extends V1LifecycleFluent implements VisitableBuilder{ + + V1LifecycleFluent fluent; + public V1LifecycleBuilder() { this(new V1Lifecycle()); } @@ -10,23 +14,22 @@ public V1LifecycleBuilder(V1LifecycleFluent fluent) { this(fluent, new V1Lifecycle()); } - public V1LifecycleBuilder(V1LifecycleFluent fluent,V1Lifecycle instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LifecycleBuilder(V1Lifecycle instance) { this.fluent = this; this.copyInstance(instance); } - V1LifecycleFluent fluent; + public V1LifecycleBuilder(V1LifecycleFluent fluent,V1Lifecycle instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Lifecycle build() { V1Lifecycle buildable = new V1Lifecycle(); buildable.setPostStart(fluent.buildPostStart()); buildable.setPreStop(fluent.buildPreStop()); + buildable.setStopSignal(fluent.getStopSignal()); return buildable; } - } \ No newline at end of file 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..982b2609b9 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 @@ -1,141 +1,188 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LifecycleFluent> extends BaseFluent{ +public class V1LifecycleFluent> extends BaseFluent{ + + private V1LifecycleHandlerBuilder postStart; + private V1LifecycleHandlerBuilder preStop; + private String stopSignal; + public V1LifecycleFluent() { } public V1LifecycleFluent(V1Lifecycle instance) { this.copyInstance(instance); } - private V1LifecycleHandlerBuilder postStart; - private V1LifecycleHandlerBuilder preStop; - - protected void copyInstance(V1Lifecycle instance) { - instance = (instance != null ? instance : new V1Lifecycle()); - if (instance != null) { - this.withPostStart(instance.getPostStart()); - this.withPreStop(instance.getPreStop()); - } - } - + public V1LifecycleHandler buildPostStart() { return this.postStart != null ? this.postStart.build() : null; } - public A withPostStart(V1LifecycleHandler postStart) { - this._visitables.remove("postStart"); - if (postStart != null) { - this.postStart = new V1LifecycleHandlerBuilder(postStart); - this._visitables.get("postStart").add(this.postStart); - } else { - this.postStart = null; - this._visitables.get("postStart").remove(this.postStart); + public V1LifecycleHandler buildPreStop() { + return this.preStop != null ? this.preStop.build() : null; + } + + 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()); } - return (A) this; } - public boolean hasPostStart() { - return this.postStart != null; + public PostStartNested editOrNewPostStart() { + return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(new V1LifecycleHandlerBuilder().build())); } - public PostStartNested withNewPostStart() { - return new PostStartNested(null); + public PostStartNested editOrNewPostStartLike(V1LifecycleHandler item) { + return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(item)); } - public PostStartNested withNewPostStartLike(V1LifecycleHandler item) { - return new PostStartNested(item); + public PreStopNested editOrNewPreStop() { + return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(new V1LifecycleHandlerBuilder().build())); + } + + public PreStopNested editOrNewPreStopLike(V1LifecycleHandler item) { + return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(item)); } public PostStartNested editPostStart() { - return withNewPostStartLike(java.util.Optional.ofNullable(buildPostStart()).orElse(null)); + return this.withNewPostStartLike(Optional.ofNullable(this.buildPostStart()).orElse(null)); } - public PostStartNested editOrNewPostStart() { - return withNewPostStartLike(java.util.Optional.ofNullable(buildPostStart()).orElse(new V1LifecycleHandlerBuilder().build())); + public PreStopNested editPreStop() { + return this.withNewPreStopLike(Optional.ofNullable(this.buildPreStop()).orElse(null)); } - public PostStartNested editOrNewPostStartLike(V1LifecycleHandler item) { - return withNewPostStartLike(java.util.Optional.ofNullable(buildPostStart()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LifecycleFluent that = (V1LifecycleFluent) o; + if (!(Objects.equals(postStart, that.postStart))) { + return false; + } + if (!(Objects.equals(preStop, that.preStop))) { + return false; + } + if (!(Objects.equals(stopSignal, that.stopSignal))) { + return false; + } + return true; } - public V1LifecycleHandler buildPreStop() { - return this.preStop != null ? this.preStop.build() : null; + public String getStopSignal() { + return this.stopSignal; } - public A withPreStop(V1LifecycleHandler preStop) { - this._visitables.remove("preStop"); - if (preStop != null) { - this.preStop = new V1LifecycleHandlerBuilder(preStop); - this._visitables.get("preStop").add(this.preStop); - } else { - this.preStop = null; - this._visitables.get("preStop").remove(this.preStop); - } - return (A) this; + public boolean hasPostStart() { + return this.postStart != null; } public boolean hasPreStop() { return this.preStop != null; } - public PreStopNested withNewPreStop() { - return new PreStopNested(null); + public boolean hasStopSignal() { + return this.stopSignal != null; } - public PreStopNested withNewPreStopLike(V1LifecycleHandler item) { - return new PreStopNested(item); + public int hashCode() { + return Objects.hash(postStart, preStop, stopSignal); } - public PreStopNested editPreStop() { - return withNewPreStopLike(java.util.Optional.ofNullable(buildPreStop()).orElse(null)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(postStart == null)) { + sb.append("postStart:"); + sb.append(postStart); + sb.append(","); + } + if (!(preStop == null)) { + sb.append("preStop:"); + sb.append(preStop); + sb.append(","); + } + if (!(stopSignal == null)) { + sb.append("stopSignal:"); + sb.append(stopSignal); + } + sb.append("}"); + return sb.toString(); } - public PreStopNested editOrNewPreStop() { - return withNewPreStopLike(java.util.Optional.ofNullable(buildPreStop()).orElse(new V1LifecycleHandlerBuilder().build())); + public PostStartNested withNewPostStart() { + return new PostStartNested(null); } - public PreStopNested editOrNewPreStopLike(V1LifecycleHandler item) { - return withNewPreStopLike(java.util.Optional.ofNullable(buildPreStop()).orElse(item)); + public PostStartNested withNewPostStartLike(V1LifecycleHandler item) { + return new PostStartNested(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; - V1LifecycleFluent that = (V1LifecycleFluent) o; - if (!java.util.Objects.equals(postStart, that.postStart)) return false; - if (!java.util.Objects.equals(preStop, that.preStop)) return false; - return true; + public PreStopNested withNewPreStop() { + return new PreStopNested(null); } - public int hashCode() { - return java.util.Objects.hash(postStart, preStop, super.hashCode()); + public PreStopNested withNewPreStopLike(V1LifecycleHandler item) { + return new PreStopNested(item); } - 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); } - sb.append("}"); - return sb.toString(); + public A withPostStart(V1LifecycleHandler postStart) { + this._visitables.remove("postStart"); + if (postStart != null) { + this.postStart = new V1LifecycleHandlerBuilder(postStart); + this._visitables.get("postStart").add(this.postStart); + } else { + this.postStart = null; + this._visitables.get("postStart").remove(this.postStart); + } + return (A) this; + } + + public A withPreStop(V1LifecycleHandler preStop) { + this._visitables.remove("preStop"); + if (preStop != null) { + this.preStop = new V1LifecycleHandlerBuilder(preStop); + this._visitables.get("preStop").add(this.preStop); + } else { + this.preStop = null; + this._visitables.get("preStop").remove(this.preStop); + } + return (A) this; + } + + public A withStopSignal(String stopSignal) { + this.stopSignal = stopSignal; + return (A) this; } public class PostStartNested extends V1LifecycleHandlerFluent> implements Nested{ + + V1LifecycleHandlerBuilder builder; + PostStartNested(V1LifecycleHandler item) { this.builder = new V1LifecycleHandlerBuilder(this, item); } - V1LifecycleHandlerBuilder builder; - + public N and() { return (N) V1LifecycleFluent.this.withPostStart(builder.build()); } @@ -144,14 +191,15 @@ public N endPostStart() { return and(); } - } public class PreStopNested extends V1LifecycleHandlerFluent> implements Nested{ + + V1LifecycleHandlerBuilder builder; + PreStopNested(V1LifecycleHandler item) { this.builder = new V1LifecycleHandlerBuilder(this, item); } - V1LifecycleHandlerBuilder builder; - + public N and() { return (N) V1LifecycleFluent.this.withPreStop(builder.build()); } @@ -160,7 +208,5 @@ public N endPreStop() { return and(); } - } - } \ No newline at end of file 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 69b74be574..a01cf0ba00 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LifecycleHandlerBuilder extends V1LifecycleHandlerFluent implements VisitableBuilder{ + + V1LifecycleHandlerFluent fluent; + public V1LifecycleHandlerBuilder() { this(new V1LifecycleHandler()); } @@ -10,17 +14,16 @@ public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent) { this(fluent, new V1LifecycleHandler()); } - public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent,V1LifecycleHandler instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LifecycleHandlerBuilder(V1LifecycleHandler instance) { this.fluent = this; this.copyInstance(instance); } - V1LifecycleHandlerFluent fluent; + public V1LifecycleHandlerBuilder(V1LifecycleHandlerFluent fluent,V1LifecycleHandler instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LifecycleHandler build() { V1LifecycleHandler buildable = new V1LifecycleHandler(); buildable.setExec(fluent.buildExec()); @@ -30,5 +33,4 @@ public V1LifecycleHandler build() { return buildable; } - } \ No newline at end of file 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 55d16c57e3..664a6e225f 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 @@ -1,79 +1,188 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LifecycleHandlerFluent> extends BaseFluent{ +public class V1LifecycleHandlerFluent> extends BaseFluent{ + + private V1ExecActionBuilder exec; + private V1HTTPGetActionBuilder httpGet; + private V1SleepActionBuilder sleep; + private V1TCPSocketActionBuilder tcpSocket; + public V1LifecycleHandlerFluent() { } public V1LifecycleHandlerFluent(V1LifecycleHandler instance) { this.copyInstance(instance); } - private V1ExecActionBuilder exec; - private V1HTTPGetActionBuilder httpGet; - private V1SleepActionBuilder sleep; - private V1TCPSocketActionBuilder tcpSocket; + + public V1ExecAction buildExec() { + return this.exec != null ? this.exec.build() : null; + } + + public V1HTTPGetAction buildHttpGet() { + return this.httpGet != null ? this.httpGet.build() : null; + } + + public V1SleepAction buildSleep() { + return this.sleep != null ? this.sleep.build() : null; + } + + public V1TCPSocketAction buildTcpSocket() { + return this.tcpSocket != null ? this.tcpSocket.build() : null; + } protected void copyInstance(V1LifecycleHandler instance) { - instance = (instance != null ? instance : new V1LifecycleHandler()); + instance = instance != null ? instance : new V1LifecycleHandler(); if (instance != null) { - this.withExec(instance.getExec()); - this.withHttpGet(instance.getHttpGet()); - this.withSleep(instance.getSleep()); - this.withTcpSocket(instance.getTcpSocket()); - } + this.withExec(instance.getExec()); + this.withHttpGet(instance.getHttpGet()); + this.withSleep(instance.getSleep()); + this.withTcpSocket(instance.getTcpSocket()); + } } - public V1ExecAction buildExec() { - return this.exec != null ? this.exec.build() : null; + public ExecNested editExec() { + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(null)); } - public A withExec(V1ExecAction exec) { - this._visitables.remove("exec"); - if (exec != null) { - this.exec = new V1ExecActionBuilder(exec); - this._visitables.get("exec").add(this.exec); - } else { - this.exec = null; - this._visitables.get("exec").remove(this.exec); + public HttpGetNested editHttpGet() { + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(null)); + } + + public ExecNested editOrNewExec() { + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(new V1ExecActionBuilder().build())); + } + + public ExecNested editOrNewExecLike(V1ExecAction item) { + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(item)); + } + + public HttpGetNested editOrNewHttpGet() { + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); + } + + public HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(item)); + } + + public SleepNested editOrNewSleep() { + return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(new V1SleepActionBuilder().build())); + } + + public SleepNested editOrNewSleepLike(V1SleepAction item) { + return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(item)); + } + + public TcpSocketNested editOrNewTcpSocket() { + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); + } + + public TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(item)); + } + + public SleepNested editSleep() { + return this.withNewSleepLike(Optional.ofNullable(this.buildSleep()).orElse(null)); + } + + public TcpSocketNested editTcpSocket() { + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LifecycleHandlerFluent that = (V1LifecycleHandlerFluent) o; + if (!(Objects.equals(exec, that.exec))) { + return false; + } + if (!(Objects.equals(httpGet, that.httpGet))) { + return false; + } + if (!(Objects.equals(sleep, that.sleep))) { + return false; + } + if (!(Objects.equals(tcpSocket, that.tcpSocket))) { + return false; + } + return true; } public boolean hasExec() { return this.exec != null; } - public ExecNested withNewExec() { - return new ExecNested(null); + public boolean hasHttpGet() { + return this.httpGet != null; } - public ExecNested withNewExecLike(V1ExecAction item) { - return new ExecNested(item); + public boolean hasSleep() { + return this.sleep != null; } - public ExecNested editExec() { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(null)); + public boolean hasTcpSocket() { + return this.tcpSocket != null; } - public ExecNested editOrNewExec() { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(new V1ExecActionBuilder().build())); + public int hashCode() { + return Objects.hash(exec, httpGet, sleep, tcpSocket); } - public ExecNested editOrNewExecLike(V1ExecAction item) { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(item)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(exec == null)) { + sb.append("exec:"); + sb.append(exec); + sb.append(","); + } + if (!(httpGet == null)) { + sb.append("httpGet:"); + sb.append(httpGet); + sb.append(","); + } + if (!(sleep == null)) { + sb.append("sleep:"); + sb.append(sleep); + sb.append(","); + } + if (!(tcpSocket == null)) { + sb.append("tcpSocket:"); + sb.append(tcpSocket); + } + sb.append("}"); + return sb.toString(); } - public V1HTTPGetAction buildHttpGet() { - return this.httpGet != null ? this.httpGet.build() : null; + public A withExec(V1ExecAction exec) { + this._visitables.remove("exec"); + if (exec != null) { + this.exec = new V1ExecActionBuilder(exec); + this._visitables.get("exec").add(this.exec); + } else { + this.exec = null; + this._visitables.get("exec").remove(this.exec); + } + return (A) this; } public A withHttpGet(V1HTTPGetAction httpGet) { @@ -88,8 +197,12 @@ public A withHttpGet(V1HTTPGetAction httpGet) { return (A) this; } - public boolean hasHttpGet() { - return this.httpGet != null; + public ExecNested withNewExec() { + return new ExecNested(null); + } + + public ExecNested withNewExecLike(V1ExecAction item) { + return new ExecNested(item); } public HttpGetNested withNewHttpGet() { @@ -100,20 +213,20 @@ public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { return new HttpGetNested(item); } - public HttpGetNested editHttpGet() { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(null)); + public SleepNested withNewSleep() { + return new SleepNested(null); } - public HttpGetNested editOrNewHttpGet() { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); + public SleepNested withNewSleepLike(V1SleepAction item) { + return new SleepNested(item); } - public HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(item)); + public TcpSocketNested withNewTcpSocket() { + return new TcpSocketNested(null); } - public V1SleepAction buildSleep() { - return this.sleep != null ? this.sleep.build() : null; + public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { + return new TcpSocketNested(item); } public A withSleep(V1SleepAction sleep) { @@ -128,34 +241,6 @@ public A withSleep(V1SleepAction 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; - } - public A withTcpSocket(V1TCPSocketAction tcpSocket) { this._visitables.remove("tcpSocket"); if (tcpSocket != null) { @@ -167,63 +252,14 @@ public A withTcpSocket(V1TCPSocketAction tcpSocket) { } return (A) this; } + public class ExecNested extends V1ExecActionFluent> implements Nested{ - public boolean hasTcpSocket() { - return this.tcpSocket != null; - } - - public TcpSocketNested withNewTcpSocket() { - return new TcpSocketNested(null); - } - - public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { - return new TcpSocketNested(item); - } - - public TcpSocketNested editTcpSocket() { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(null)); - } - - public TcpSocketNested editOrNewTcpSocket() { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); - } - - public TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).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; - 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, sleep, tcpSocket, super.hashCode()); - } + V1ExecActionBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - 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(); - } - public class ExecNested extends V1ExecActionFluent> implements Nested{ ExecNested(V1ExecAction item) { this.builder = new V1ExecActionBuilder(this, item); } - V1ExecActionBuilder builder; - + public N and() { return (N) V1LifecycleHandlerFluent.this.withExec(builder.build()); } @@ -232,14 +268,15 @@ public N endExec() { return and(); } - } public class HttpGetNested extends V1HTTPGetActionFluent> implements Nested{ + + V1HTTPGetActionBuilder builder; + HttpGetNested(V1HTTPGetAction item) { this.builder = new V1HTTPGetActionBuilder(this, item); } - V1HTTPGetActionBuilder builder; - + public N and() { return (N) V1LifecycleHandlerFluent.this.withHttpGet(builder.build()); } @@ -248,14 +285,15 @@ public N endHttpGet() { return and(); } - } public class SleepNested extends V1SleepActionFluent> implements Nested{ + + V1SleepActionBuilder builder; + SleepNested(V1SleepAction item) { this.builder = new V1SleepActionBuilder(this, item); } - V1SleepActionBuilder builder; - + public N and() { return (N) V1LifecycleHandlerFluent.this.withSleep(builder.build()); } @@ -264,14 +302,15 @@ public N endSleep() { return and(); } - } public class TcpSocketNested extends V1TCPSocketActionFluent> implements Nested{ + + V1TCPSocketActionBuilder builder; + TcpSocketNested(V1TCPSocketAction item) { this.builder = new V1TCPSocketActionBuilder(this, item); } - V1TCPSocketActionBuilder builder; - + public N and() { return (N) V1LifecycleHandlerFluent.this.withTcpSocket(builder.build()); } @@ -280,7 +319,5 @@ public N endTcpSocket() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java index d44c1178a4..53eeacd09c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitRangeBuilder extends V1LimitRangeFluent implements VisitableBuilder{ + + V1LimitRangeFluent fluent; + public V1LimitRangeBuilder() { this(new V1LimitRange()); } @@ -10,17 +14,16 @@ public V1LimitRangeBuilder(V1LimitRangeFluent fluent) { this(fluent, new V1LimitRange()); } - public V1LimitRangeBuilder(V1LimitRangeFluent fluent,V1LimitRange instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitRangeBuilder(V1LimitRange instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitRangeFluent fluent; + public V1LimitRangeBuilder(V1LimitRangeFluent fluent,V1LimitRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitRange build() { V1LimitRange buildable = new V1LimitRange(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1LimitRange build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java index 7430d6c0bf..b9f1bc9844 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitRangeFluent> extends BaseFluent{ +public class V1LimitRangeFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1LimitRangeSpecBuilder spec; + public V1LimitRangeFluent() { } public V1LimitRangeFluent(V1LimitRange instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1LimitRangeSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1LimitRangeSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1LimitRange instance) { - instance = (instance != null ? instance : new V1LimitRange()); + instance = instance != null ? instance : new V1LimitRange(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1LimitRangeSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1LimitRangeSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LimitRangeFluent that = (V1LimitRangeFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1LimitRangeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1LimitRangeSpec item) { + return new SpecNested(item); } public A withSpec(V1LimitRangeSpec spec) { @@ -113,63 +198,14 @@ public A withSpec(V1LimitRangeSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1LimitRangeSpec 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 V1LimitRangeSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1LimitRangeSpec 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; - V1LimitRangeFluent that = (V1LimitRangeFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1LimitRangeFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1LimitRangeSpecFluent> implements Nested{ + + V1LimitRangeSpecBuilder builder; + SpecNested(V1LimitRangeSpec item) { this.builder = new V1LimitRangeSpecBuilder(this, item); } - V1LimitRangeSpecBuilder builder; - + public N and() { return (N) V1LimitRangeFluent.this.withSpec(builder.build()); } @@ -194,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java index c130980a74..1add2a0fbb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitRangeItemBuilder extends V1LimitRangeItemFluent implements VisitableBuilder{ + + V1LimitRangeItemFluent fluent; + public V1LimitRangeItemBuilder() { this(new V1LimitRangeItem()); } @@ -10,17 +14,16 @@ public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent) { this(fluent, new V1LimitRangeItem()); } - public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent,V1LimitRangeItem instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitRangeItemBuilder(V1LimitRangeItem instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitRangeItemFluent fluent; + public V1LimitRangeItemBuilder(V1LimitRangeItemFluent fluent,V1LimitRangeItem instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitRangeItem build() { V1LimitRangeItem buildable = new V1LimitRangeItem(); buildable.setDefault(fluent.getDefault()); @@ -32,5 +35,4 @@ public V1LimitRangeItem build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java index cff01767c8..ad65ff6db1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java @@ -1,271 +1,435 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitRangeItemFluent> extends BaseFluent{ - public V1LimitRangeItemFluent() { - } - - public V1LimitRangeItemFluent(V1LimitRangeItem instance) { - this.copyInstance(instance); - } +public class V1LimitRangeItemFluent> extends BaseFluent{ + private Map _default; private Map defaultRequest; private Map max; private Map maxLimitRequestRatio; private Map min; private String type; - - protected void copyInstance(V1LimitRangeItem instance) { - instance = (instance != null ? instance : new V1LimitRangeItem()); - if (instance != null) { - this.withDefault(instance.getDefault()); - this.withDefaultRequest(instance.getDefaultRequest()); - this.withMax(instance.getMax()); - this.withMaxLimitRequestRatio(instance.getMaxLimitRequestRatio()); - this.withMin(instance.getMin()); - this.withType(instance.getType()); - } + + public V1LimitRangeItemFluent() { } - public A addToDefault(String key,Quantity value) { - if(this._default == null && key != null && value != null) { this._default = new LinkedHashMap(); } - if(key != null && value != null) {this._default.put(key, value);} return (A)this; + public V1LimitRangeItemFluent(V1LimitRangeItem instance) { + this.copyInstance(instance); } - + public A addToDefault(Map map) { - if(this._default == null && map != null) { this._default = new LinkedHashMap(); } - if(map != null) { this._default.putAll(map);} return (A)this; + if (this._default == null && map != null) { + this._default = new LinkedHashMap(); + } + if (map != null) { + this._default.putAll(map); + } + return (A) this; } - public A removeFromDefault(String key) { - if(this._default == null) { return (A) this; } - if(key != null && this._default != null) {this._default.remove(key);} return (A)this; + public A addToDefault(String key,Quantity value) { + if (this._default == null && key != null && value != null) { + this._default = new LinkedHashMap(); + } + if (key != null && value != null) { + this._default.put(key, value); + } + return (A) this; } - public A removeFromDefault(Map map) { - if(this._default == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this._default != null){this._default.remove(key);}}} return (A)this; + public A addToDefaultRequest(Map map) { + if (this.defaultRequest == null && map != null) { + this.defaultRequest = new LinkedHashMap(); + } + if (map != null) { + this.defaultRequest.putAll(map); + } + return (A) this; } - public Map getDefault() { - return this._default; + public A addToDefaultRequest(String key,Quantity value) { + if (this.defaultRequest == null && key != null && value != null) { + this.defaultRequest = new LinkedHashMap(); + } + if (key != null && value != null) { + this.defaultRequest.put(key, value); + } + return (A) this; } - public A withDefault(Map _default) { - if (_default == null) { - this._default = null; - } else { - this._default = new LinkedHashMap(_default); + public A addToMax(Map map) { + if (this.max == null && map != null) { + this.max = new LinkedHashMap(); + } + if (map != null) { + this.max.putAll(map); } return (A) this; } - public boolean hasDefault() { - return this._default != null; + public A addToMax(String key,Quantity value) { + if (this.max == null && key != null && value != null) { + this.max = new LinkedHashMap(); + } + if (key != null && value != null) { + this.max.put(key, value); + } + return (A) this; } - public A addToDefaultRequest(String key,Quantity value) { - if(this.defaultRequest == null && key != null && value != null) { this.defaultRequest = new LinkedHashMap(); } - if(key != null && value != null) {this.defaultRequest.put(key, value);} return (A)this; + public A addToMaxLimitRequestRatio(Map map) { + if (this.maxLimitRequestRatio == null && map != null) { + this.maxLimitRequestRatio = new LinkedHashMap(); + } + if (map != null) { + this.maxLimitRequestRatio.putAll(map); + } + return (A) this; } - public A addToDefaultRequest(Map map) { - if(this.defaultRequest == null && map != null) { this.defaultRequest = new LinkedHashMap(); } - if(map != null) { this.defaultRequest.putAll(map);} return (A)this; + public A addToMaxLimitRequestRatio(String key,Quantity value) { + if (this.maxLimitRequestRatio == null && key != null && value != null) { + this.maxLimitRequestRatio = new LinkedHashMap(); + } + if (key != null && value != null) { + this.maxLimitRequestRatio.put(key, value); + } + return (A) this; } - public A removeFromDefaultRequest(String key) { - if(this.defaultRequest == null) { return (A) this; } - if(key != null && this.defaultRequest != null) {this.defaultRequest.remove(key);} return (A)this; + public A addToMin(Map map) { + if (this.min == null && map != null) { + this.min = new LinkedHashMap(); + } + if (map != null) { + this.min.putAll(map); + } + return (A) this; } - public A removeFromDefaultRequest(Map map) { - if(this.defaultRequest == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.defaultRequest != null){this.defaultRequest.remove(key);}}} return (A)this; + public A addToMin(String key,Quantity value) { + if (this.min == null && key != null && value != null) { + this.min = new LinkedHashMap(); + } + if (key != null && value != null) { + this.min.put(key, value); + } + return (A) this; } - public Map getDefaultRequest() { - return this.defaultRequest; + protected void copyInstance(V1LimitRangeItem instance) { + instance = instance != null ? instance : new V1LimitRangeItem(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withDefaultRequest(instance.getDefaultRequest()); + this.withMax(instance.getMax()); + this.withMaxLimitRequestRatio(instance.getMaxLimitRequestRatio()); + this.withMin(instance.getMin()); + this.withType(instance.getType()); + } } - public A withDefaultRequest(Map defaultRequest) { - if (defaultRequest == null) { - this.defaultRequest = null; - } else { - this.defaultRequest = new LinkedHashMap(defaultRequest); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LimitRangeItemFluent that = (V1LimitRangeItemFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(defaultRequest, that.defaultRequest))) { + return false; + } + if (!(Objects.equals(max, that.max))) { + return false; + } + if (!(Objects.equals(maxLimitRequestRatio, that.maxLimitRequestRatio))) { + return false; + } + if (!(Objects.equals(min, that.min))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasDefaultRequest() { - return this.defaultRequest != null; + public Map getDefault() { + return this._default; } - public A addToMax(String key,Quantity value) { - if(this.max == null && key != null && value != null) { this.max = new LinkedHashMap(); } - if(key != null && value != null) {this.max.put(key, value);} return (A)this; + public Map getDefaultRequest() { + return this.defaultRequest; } - public A addToMax(Map map) { - if(this.max == null && map != null) { this.max = new LinkedHashMap(); } - if(map != null) { this.max.putAll(map);} return (A)this; + public Map getMax() { + return this.max; } - public A removeFromMax(String key) { - if(this.max == null) { return (A) this; } - if(key != null && this.max != null) {this.max.remove(key);} return (A)this; + public Map getMaxLimitRequestRatio() { + return this.maxLimitRequestRatio; } - public A removeFromMax(Map map) { - if(this.max == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.max != null){this.max.remove(key);}}} return (A)this; + public Map getMin() { + return this.min; } - public Map getMax() { - return this.max; + public String getType() { + return this.type; } - public A withMax(Map max) { - if (max == null) { - this.max = null; - } else { - this.max = new LinkedHashMap(max); - } - return (A) this; + public boolean hasDefault() { + return this._default != null; + } + + public boolean hasDefaultRequest() { + return this.defaultRequest != null; } public boolean hasMax() { return this.max != null; } - public A addToMaxLimitRequestRatio(String key,Quantity value) { - if(this.maxLimitRequestRatio == null && key != null && value != null) { this.maxLimitRequestRatio = new LinkedHashMap(); } - if(key != null && value != null) {this.maxLimitRequestRatio.put(key, value);} return (A)this; + public boolean hasMaxLimitRequestRatio() { + return this.maxLimitRequestRatio != null; } - public A addToMaxLimitRequestRatio(Map map) { - if(this.maxLimitRequestRatio == null && map != null) { this.maxLimitRequestRatio = new LinkedHashMap(); } - if(map != null) { this.maxLimitRequestRatio.putAll(map);} return (A)this; + public boolean hasMin() { + return this.min != null; } - public A removeFromMaxLimitRequestRatio(String key) { - if(this.maxLimitRequestRatio == null) { return (A) this; } - if(key != null && this.maxLimitRequestRatio != null) {this.maxLimitRequestRatio.remove(key);} return (A)this; + public boolean hasType() { + return this.type != null; } - public A removeFromMaxLimitRequestRatio(Map map) { - if(this.maxLimitRequestRatio == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.maxLimitRequestRatio != null){this.maxLimitRequestRatio.remove(key);}}} return (A)this; + public int hashCode() { + return Objects.hash(_default, defaultRequest, max, maxLimitRequestRatio, min, type); } - public Map getMaxLimitRequestRatio() { - return this.maxLimitRequestRatio; + public A removeFromDefault(String key) { + if (this._default == null) { + return (A) this; + } + if (key != null && this._default != null) { + this._default.remove(key); + } + return (A) this; } - public A withMaxLimitRequestRatio(Map maxLimitRequestRatio) { - if (maxLimitRequestRatio == null) { - this.maxLimitRequestRatio = null; - } else { - this.maxLimitRequestRatio = new LinkedHashMap(maxLimitRequestRatio); + public A removeFromDefault(Map map) { + if (this._default == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this._default != null) { + this._default.remove(key); + } + } } return (A) this; } - public boolean hasMaxLimitRequestRatio() { - return this.maxLimitRequestRatio != null; + public A removeFromDefaultRequest(String key) { + if (this.defaultRequest == null) { + return (A) this; + } + if (key != null && this.defaultRequest != null) { + this.defaultRequest.remove(key); + } + return (A) this; } - public A addToMin(String key,Quantity value) { - if(this.min == null && key != null && value != null) { this.min = new LinkedHashMap(); } - if(key != null && value != null) {this.min.put(key, value);} return (A)this; + public A removeFromDefaultRequest(Map map) { + if (this.defaultRequest == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.defaultRequest != null) { + this.defaultRequest.remove(key); + } + } + } + return (A) this; } - public A addToMin(Map map) { - if(this.min == null && map != null) { this.min = new LinkedHashMap(); } - if(map != null) { this.min.putAll(map);} return (A)this; + public A removeFromMax(String key) { + if (this.max == null) { + return (A) this; + } + if (key != null && this.max != null) { + this.max.remove(key); + } + return (A) this; } - public A removeFromMin(String key) { - if(this.min == null) { return (A) this; } - if(key != null && this.min != null) {this.min.remove(key);} return (A)this; + public A removeFromMax(Map map) { + if (this.max == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.max != null) { + this.max.remove(key); + } + } + } + return (A) this; } - public A removeFromMin(Map map) { - if(this.min == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.min != null){this.min.remove(key);}}} return (A)this; + public A removeFromMaxLimitRequestRatio(String key) { + if (this.maxLimitRequestRatio == null) { + return (A) this; + } + if (key != null && this.maxLimitRequestRatio != null) { + this.maxLimitRequestRatio.remove(key); + } + return (A) this; } - public Map getMin() { - return this.min; + public A removeFromMaxLimitRequestRatio(Map map) { + if (this.maxLimitRequestRatio == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.maxLimitRequestRatio != null) { + this.maxLimitRequestRatio.remove(key); + } + } + } + return (A) this; } - public A withMin(Map min) { - if (min == null) { - this.min = null; - } else { - this.min = new LinkedHashMap(min); + public A removeFromMin(String key) { + if (this.min == null) { + return (A) this; + } + if (key != null && this.min != null) { + this.min.remove(key); } return (A) this; } - public boolean hasMin() { - return this.min != null; + public A removeFromMin(Map map) { + if (this.min == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.min != null) { + this.min.remove(key); + } + } + } + return (A) this; } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(_default == null) && !(_default.isEmpty())) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(defaultRequest == null) && !(defaultRequest.isEmpty())) { + sb.append("defaultRequest:"); + sb.append(defaultRequest); + sb.append(","); + } + if (!(max == null) && !(max.isEmpty())) { + sb.append("max:"); + sb.append(max); + sb.append(","); + } + if (!(maxLimitRequestRatio == null) && !(maxLimitRequestRatio.isEmpty())) { + sb.append("maxLimitRequestRatio:"); + sb.append(maxLimitRequestRatio); + sb.append(","); + } + if (!(min == null) && !(min.isEmpty())) { + sb.append("min:"); + sb.append(min); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withDefault(Map _default) { + if (_default == null) { + this._default = null; + } else { + this._default = new LinkedHashMap(_default); + } return (A) this; } - public boolean hasType() { - return this.type != null; + public A withDefaultRequest(Map defaultRequest) { + if (defaultRequest == null) { + this.defaultRequest = null; + } else { + this.defaultRequest = new LinkedHashMap(defaultRequest); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1LimitRangeItemFluent that = (V1LimitRangeItemFluent) o; - if (!java.util.Objects.equals(_default, that._default)) return false; - if (!java.util.Objects.equals(defaultRequest, that.defaultRequest)) return false; - if (!java.util.Objects.equals(max, that.max)) return false; - if (!java.util.Objects.equals(maxLimitRequestRatio, that.maxLimitRequestRatio)) return false; - if (!java.util.Objects.equals(min, that.min)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; + public A withMax(Map max) { + if (max == null) { + this.max = null; + } else { + this.max = new LinkedHashMap(max); + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(_default, defaultRequest, max, maxLimitRequestRatio, min, type, super.hashCode()); + public A withMaxLimitRequestRatio(Map maxLimitRequestRatio) { + if (maxLimitRequestRatio == null) { + this.maxLimitRequestRatio = null; + } else { + this.maxLimitRequestRatio = new LinkedHashMap(maxLimitRequestRatio); + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (_default != null && !_default.isEmpty()) { sb.append("_default:"); sb.append(_default + ","); } - if (defaultRequest != null && !defaultRequest.isEmpty()) { sb.append("defaultRequest:"); sb.append(defaultRequest + ","); } - if (max != null && !max.isEmpty()) { sb.append("max:"); sb.append(max + ","); } - if (maxLimitRequestRatio != null && !maxLimitRequestRatio.isEmpty()) { sb.append("maxLimitRequestRatio:"); sb.append(maxLimitRequestRatio + ","); } - if (min != null && !min.isEmpty()) { sb.append("min:"); sb.append(min + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); + public A withMin(Map min) { + if (min == null) { + this.min = null; + } else { + this.min = new LinkedHashMap(min); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java index f24219f617..049dc614af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitRangeListBuilder extends V1LimitRangeListFluent implements VisitableBuilder{ + + V1LimitRangeListFluent fluent; + public V1LimitRangeListBuilder() { this(new V1LimitRangeList()); } @@ -10,17 +14,16 @@ public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent) { this(fluent, new V1LimitRangeList()); } - public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent,V1LimitRangeList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitRangeListBuilder(V1LimitRangeList instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitRangeListFluent fluent; + public V1LimitRangeListBuilder(V1LimitRangeListFluent fluent,V1LimitRangeList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitRangeList build() { V1LimitRangeList buildable = new V1LimitRangeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1LimitRangeList build() { return buildable; } - } \ No newline at end of file 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..acaf72d251 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitRangeListFluent> extends BaseFluent{ +public class V1LimitRangeListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1LimitRangeListFluent() { } public V1LimitRangeListFluent(V1LimitRangeList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1LimitRangeList instance) { - instance = (instance != null ? instance : new V1LimitRangeList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1LimitRange item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1LimitRange... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1LimitRange item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1LimitRange buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1LimitRange buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { - if (this.items == null) return (A)this; - for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1LimitRange buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1LimitRange item : items) {V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1LimitRange buildMatchingItem(Predicate predicate) { + for (V1LimitRangeBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1LimitRangeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1LimitRangeList instance) { + instance = instance != null ? instance : new V1LimitRangeList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1LimitRange buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1LimitRange buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1LimitRange buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LimitRangeListFluent that = (V1LimitRangeListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1LimitRange buildMatchingItem(Predicate predicate) { - for (V1LimitRangeBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1LimitRange... items) { + if (this.items == null) { + return (A) this; + } + for (V1LimitRange item : items) { + V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1LimitRangeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1LimitRange item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { + public A withItems(V1LimitRange... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1LimitRange... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1LimitRange item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1LimitRange 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1LimitRangeFluent> implements Nested{ - 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; - V1LimitRangeListFluent that = (V1LimitRangeListFluent) 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()); - } + V1LimitRangeBuilder builder; + int index; - 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 V1LimitRangeFluent> implements Nested{ ItemsNested(int index,V1LimitRange item) { this.index = index; this.builder = new V1LimitRangeBuilder(this, item); } - V1LimitRangeBuilder builder; - int index; - + public N and() { - return (N) V1LimitRangeListFluent.this.setToItems(index,builder.build()); + return (N) V1LimitRangeListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1LimitRangeListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java index bdbf9fe087..20331c6bfe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitRangeSpecBuilder extends V1LimitRangeSpecFluent implements VisitableBuilder{ + + V1LimitRangeSpecFluent fluent; + public V1LimitRangeSpecBuilder() { this(new V1LimitRangeSpec()); } @@ -10,22 +14,20 @@ public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent) { this(fluent, new V1LimitRangeSpec()); } - public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent,V1LimitRangeSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LimitRangeSpecBuilder(V1LimitRangeSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1LimitRangeSpecFluent fluent; + public V1LimitRangeSpecBuilder(V1LimitRangeSpecFluent fluent,V1LimitRangeSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitRangeSpec build() { V1LimitRangeSpec buildable = new V1LimitRangeSpec(); buildable.setLimits(fluent.buildLimits()); return buildable; } - } \ No newline at end of file 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..40b558998b 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 @@ -1,108 +1,168 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitRangeSpecFluent> extends BaseFluent{ +public class V1LimitRangeSpecFluent> extends BaseFluent{ + + private ArrayList limits; + public V1LimitRangeSpecFluent() { } public V1LimitRangeSpecFluent(V1LimitRangeSpec instance) { this.copyInstance(instance); } - private ArrayList limits; + + public A addAllToLimits(Collection items) { + if (this.limits == null) { + this.limits = new ArrayList(); + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").add(builder); + this.limits.add(builder); + } + return (A) this; + } - protected void copyInstance(V1LimitRangeSpec instance) { - instance = (instance != null ? instance : new V1LimitRangeSpec()); - if (instance != null) { - this.withLimits(instance.getLimits()); - } + public LimitsNested addNewLimit() { + return new LimitsNested(-1, null); } - 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);} - return (A)this; + public LimitsNested addNewLimitLike(V1LimitRangeItem item) { + return new LimitsNested(-1, item); } - public A setToLimits(int index,V1LimitRangeItem item) { - if (this.limits == null) {this.limits = new ArrayList();} + public A addToLimits(V1LimitRangeItem... items) { + if (this.limits == null) { + this.limits = new ArrayList(); + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").add(builder); + this.limits.add(builder); + } + return (A) this; + } + + 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").set(index, builder); limits.set(index, builder);} - return (A)this; + 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 addToLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items) { - if (this.limits == null) {this.limits = new ArrayList();} - for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").add(builder);this.limits.add(builder);} return (A)this; + public V1LimitRangeItem buildFirstLimit() { + return this.limits.get(0).build(); } - public A addAllToLimits(Collection items) { - if (this.limits == null) {this.limits = new ArrayList();} - for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").add(builder);this.limits.add(builder);} return (A)this; + public V1LimitRangeItem buildLastLimit() { + return this.limits.get(limits.size() - 1).build(); } - public A removeFromLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... items) { - if (this.limits == null) return (A)this; - for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").remove(builder); this.limits.remove(builder);} return (A)this; + public V1LimitRangeItem buildLimit(int index) { + return this.limits.get(index).build(); } - public A removeAllFromLimits(Collection items) { - if (this.limits == null) return (A)this; - for (V1LimitRangeItem item : items) {V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item);_visitables.get("limits").remove(builder); this.limits.remove(builder);} return (A)this; + public List buildLimits() { + return this.limits != null ? build(limits) : null; } - public A removeMatchingFromLimits(Predicate predicate) { - if (limits == null) return (A) this; - final Iterator each = limits.iterator(); - final List visitables = _visitables.get("limits"); - while (each.hasNext()) { - V1LimitRangeItemBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1LimitRangeItem buildMatchingLimit(Predicate predicate) { + for (V1LimitRangeItemBuilder item : limits) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A)this; + return null; } - public List buildLimits() { - return this.limits != null ? build(limits) : null; + protected void copyInstance(V1LimitRangeSpec instance) { + instance = instance != null ? instance : new V1LimitRangeSpec(); + if (instance != null) { + this.withLimits(instance.getLimits()); + } } - public V1LimitRangeItem buildLimit(int index) { - return this.limits.get(index).build(); + public LimitsNested editFirstLimit() { + if (limits.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "limits")); + } + return this.setNewLimitLike(0, this.buildLimit(0)); } - public V1LimitRangeItem buildFirstLimit() { - return this.limits.get(0).build(); + public LimitsNested editLastLimit() { + int index = limits.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "limits")); + } + return this.setNewLimitLike(index, this.buildLimit(index)); } - public V1LimitRangeItem buildLastLimit() { - return this.limits.get(limits.size() - 1).build(); + public LimitsNested editLimit(int index) { + if (limits.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "limits")); + } + return this.setNewLimitLike(index, this.buildLimit(index)); } - public V1LimitRangeItem buildMatchingLimit(Predicate predicate) { - for (V1LimitRangeItemBuilder item : limits) { - if (predicate.test(item)) { - return item.build(); - } + public LimitsNested editMatchingLimit(Predicate predicate) { + int index = -1; + for (int i = 0;i < limits.size();i++) { + if (predicate.test(limits.get(i))) { + index = i; + break; } - return null; + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "limits")); + } + return this.setNewLimitLike(index, this.buildLimit(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LimitRangeSpecFluent that = (V1LimitRangeSpecFluent) o; + if (!(Objects.equals(limits, that.limits))) { + return false; + } + return true; + } + + public boolean hasLimits() { + return this.limits != null && !(this.limits.isEmpty()); } public boolean hasMatchingLimit(Predicate predicate) { @@ -114,6 +174,80 @@ public boolean hasMatchingLimit(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(limits); + } + + public A removeAllFromLimits(Collection items) { + if (this.limits == null) { + return (A) this; + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").remove(builder); + this.limits.remove(builder); + } + return (A) this; + } + + public A removeFromLimits(V1LimitRangeItem... items) { + if (this.limits == null) { + return (A) this; + } + for (V1LimitRangeItem item : items) { + V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); + _visitables.get("limits").remove(builder); + this.limits.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromLimits(Predicate predicate) { + if (limits == null) { + return (A) this; + } + Iterator each = limits.iterator(); + List visitables = _visitables.get("limits"); + while (each.hasNext()) { + V1LimitRangeItemBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public LimitsNested setNewLimitLike(int index,V1LimitRangeItem item) { + return new LimitsNested(index, item); + } + + 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").add(builder); + limits.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(limits == null) && !(limits.isEmpty())) { + sb.append("limits:"); + sb.append(limits); + } + sb.append("}"); + return sb.toString(); + } + public A withLimits(List limits) { if (this.limits != null) { this._visitables.get("limits").clear(); @@ -129,7 +263,7 @@ public A withLimits(List limits) { return (A) this; } - public A withLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... limits) { + public A withLimits(V1LimitRangeItem... limits) { if (this.limits != null) { this.limits.clear(); _visitables.remove("limits"); @@ -141,85 +275,23 @@ public A withLimits(io.kubernetes.client.openapi.models.V1LimitRangeItem... limi } return (A) this; } + public class LimitsNested extends V1LimitRangeItemFluent> implements Nested{ - public boolean hasLimits() { - return this.limits != null && !this.limits.isEmpty(); - } - - public LimitsNested addNewLimit() { - return new LimitsNested(-1, null); - } - - public LimitsNested addNewLimitLike(V1LimitRangeItem item) { - return new LimitsNested(-1, item); - } - - public LimitsNested setNewLimitLike(int index,V1LimitRangeItem item) { - return new LimitsNested(index, item); - } - - public LimitsNested editLimit(int index) { - if (limits.size() <= index) throw new RuntimeException("Can't edit limits. Index exceeds size."); - return setNewLimitLike(index, buildLimit(index)); - } - - public LimitsNested editFirstLimit() { - if (limits.size() == 0) throw new RuntimeException("Can't edit first limits. The list is empty."); - return setNewLimitLike(0, buildLimit(0)); - } - - public LimitsNested editLastLimit() { - int index = limits.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last limits. The list is empty."); - return setNewLimitLike(index, buildLimit(index)); - } - - public LimitsNested editMatchingLimit(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1LimitRangeItemFluent> implements Nested{ LimitsNested(int index,V1LimitRangeItem item) { this.index = index; this.builder = new V1LimitRangeItemBuilder(this, item); } - V1LimitRangeItemBuilder builder; - int index; - + public N and() { - return (N) V1LimitRangeSpecFluent.this.setToLimits(index,builder.build()); + return (N) V1LimitRangeSpecFluent.this.setToLimits(index, builder.build()); } public N endLimit() { return and(); } - } - } \ No newline at end of file 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 index 1da3558187..c41c291612 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitResponseBuilder extends V1LimitResponseFluent implements VisitableBuilder{ + + V1LimitResponseFluent fluent; + public V1LimitResponseBuilder() { this(new V1LimitResponse()); } @@ -10,17 +14,16 @@ 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 V1LimitResponseBuilder(V1LimitResponseFluent fluent,V1LimitResponse instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitResponse build() { V1LimitResponse buildable = new V1LimitResponse(); buildable.setQueuing(fluent.buildQueuing()); @@ -28,5 +31,4 @@ public V1LimitResponse build() { 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 index 726ee855d9..ad81776834 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitResponseFluent> extends BaseFluent{ +public class V1LimitResponseFluent> extends BaseFluent{ + + private V1QueuingConfigurationBuilder queuing; + private String type; + 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); + protected void copyInstance(V1LimitResponse instance) { + instance = instance != null ? instance : new V1LimitResponse(); + if (instance != null) { + this.withQueuing(instance.getQueuing()); + this.withType(instance.getType()); } - return (A) this; - } - - public boolean hasQueuing() { - return this.queuing != null; } - public QueuingNested withNewQueuing() { - return new QueuingNested(null); + public QueuingNested editOrNewQueuing() { + return this.withNewQueuingLike(Optional.ofNullable(this.buildQueuing()).orElse(new V1QueuingConfigurationBuilder().build())); } - public QueuingNested withNewQueuingLike(V1QueuingConfiguration item) { - return new QueuingNested(item); + public QueuingNested editOrNewQueuingLike(V1QueuingConfiguration item) { + return this.withNewQueuingLike(Optional.ofNullable(this.buildQueuing()).orElse(item)); } public QueuingNested editQueuing() { - return withNewQueuingLike(java.util.Optional.ofNullable(buildQueuing()).orElse(null)); + return this.withNewQueuingLike(Optional.ofNullable(this.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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LimitResponseFluent that = (V1LimitResponseFluent) o; + if (!(Objects.equals(queuing, that.queuing))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasQueuing() { + return this.queuing != null; } 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()); + return Objects.hash(queuing, type); } 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); } + if (!(queuing == null)) { + sb.append("queuing:"); + sb.append(queuing); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } + + public QueuingNested withNewQueuing() { + return new QueuingNested(null); + } + + public QueuingNested withNewQueuingLike(V1QueuingConfiguration item) { + return new QueuingNested(item); + } + + 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 A withType(String type) { + this.type = type; + return (A) this; + } public class QueuingNested extends V1QueuingConfigurationFluent> implements Nested{ + + V1QueuingConfigurationBuilder builder; + QueuingNested(V1QueuingConfiguration item) { this.builder = new V1QueuingConfigurationBuilder(this, item); } - V1QueuingConfigurationBuilder builder; - + public N and() { return (N) V1LimitResponseFluent.this.withQueuing(builder.build()); } @@ -117,7 +141,5 @@ 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 index fbe4d4fe94..e0d987df63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LimitedPriorityLevelConfigurationBuilder extends V1LimitedPriorityLevelConfigurationFluent implements VisitableBuilder{ + + V1LimitedPriorityLevelConfigurationFluent fluent; + public V1LimitedPriorityLevelConfigurationBuilder() { this(new V1LimitedPriorityLevelConfiguration()); } @@ -10,17 +14,16 @@ public V1LimitedPriorityLevelConfigurationBuilder(V1LimitedPriorityLevelConfigur 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 V1LimitedPriorityLevelConfigurationBuilder(V1LimitedPriorityLevelConfigurationFluent fluent,V1LimitedPriorityLevelConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LimitedPriorityLevelConfiguration build() { V1LimitedPriorityLevelConfiguration buildable = new V1LimitedPriorityLevelConfiguration(); buildable.setBorrowingLimitPercent(fluent.getBorrowingLimitPercent()); @@ -30,5 +33,4 @@ public V1LimitedPriorityLevelConfiguration build() { 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 index 42092a7596..91e48386c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java @@ -1,66 +1,151 @@ 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.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ +public class V1LimitedPriorityLevelConfigurationFluent> extends BaseFluent{ + + private Integer borrowingLimitPercent; + private Integer lendablePercent; + private V1LimitResponseBuilder limitResponse; + private Integer nominalConcurrencyShares; + public V1LimitedPriorityLevelConfigurationFluent() { } public V1LimitedPriorityLevelConfigurationFluent(V1LimitedPriorityLevelConfiguration instance) { this.copyInstance(instance); } - private Integer borrowingLimitPercent; - private Integer lendablePercent; - private V1LimitResponseBuilder limitResponse; - private Integer nominalConcurrencyShares; + + public V1LimitResponse buildLimitResponse() { + return this.limitResponse != null ? this.limitResponse.build() : null; + } protected void copyInstance(V1LimitedPriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1LimitedPriorityLevelConfiguration()); + 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()); - } + this.withBorrowingLimitPercent(instance.getBorrowingLimitPercent()); + this.withLendablePercent(instance.getLendablePercent()); + this.withLimitResponse(instance.getLimitResponse()); + this.withNominalConcurrencyShares(instance.getNominalConcurrencyShares()); + } } - public Integer getBorrowingLimitPercent() { - return this.borrowingLimitPercent; + public LimitResponseNested editLimitResponse() { + return this.withNewLimitResponseLike(Optional.ofNullable(this.buildLimitResponse()).orElse(null)); } - public A withBorrowingLimitPercent(Integer borrowingLimitPercent) { - this.borrowingLimitPercent = borrowingLimitPercent; - return (A) this; + public LimitResponseNested editOrNewLimitResponse() { + return this.withNewLimitResponseLike(Optional.ofNullable(this.buildLimitResponse()).orElse(new V1LimitResponseBuilder().build())); } - public boolean hasBorrowingLimitPercent() { - return this.borrowingLimitPercent != null; + public LimitResponseNested editOrNewLimitResponseLike(V1LimitResponse item) { + return this.withNewLimitResponseLike(Optional.ofNullable(this.buildLimitResponse()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LimitedPriorityLevelConfigurationFluent that = (V1LimitedPriorityLevelConfigurationFluent) o; + if (!(Objects.equals(borrowingLimitPercent, that.borrowingLimitPercent))) { + return false; + } + if (!(Objects.equals(lendablePercent, that.lendablePercent))) { + return false; + } + if (!(Objects.equals(limitResponse, that.limitResponse))) { + return false; + } + if (!(Objects.equals(nominalConcurrencyShares, that.nominalConcurrencyShares))) { + return false; + } + return true; + } + + public Integer getBorrowingLimitPercent() { + return this.borrowingLimitPercent; } public Integer getLendablePercent() { return this.lendablePercent; } - public A withLendablePercent(Integer lendablePercent) { - this.lendablePercent = lendablePercent; - return (A) this; + public Integer getNominalConcurrencyShares() { + return this.nominalConcurrencyShares; + } + + public boolean hasBorrowingLimitPercent() { + return this.borrowingLimitPercent != null; } public boolean hasLendablePercent() { return this.lendablePercent != null; } - public V1LimitResponse buildLimitResponse() { - return this.limitResponse != null ? this.limitResponse.build() : null; + public boolean hasLimitResponse() { + return this.limitResponse != null; + } + + public boolean hasNominalConcurrencyShares() { + return this.nominalConcurrencyShares != null; + } + + public int hashCode() { + return Objects.hash(borrowingLimitPercent, lendablePercent, limitResponse, nominalConcurrencyShares); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(borrowingLimitPercent == null)) { + sb.append("borrowingLimitPercent:"); + sb.append(borrowingLimitPercent); + sb.append(","); + } + if (!(lendablePercent == null)) { + sb.append("lendablePercent:"); + sb.append(lendablePercent); + sb.append(","); + } + if (!(limitResponse == null)) { + sb.append("limitResponse:"); + sb.append(limitResponse); + sb.append(","); + } + if (!(nominalConcurrencyShares == null)) { + sb.append("nominalConcurrencyShares:"); + sb.append(nominalConcurrencyShares); + } + sb.append("}"); + return sb.toString(); + } + + public A withBorrowingLimitPercent(Integer borrowingLimitPercent) { + this.borrowingLimitPercent = borrowingLimitPercent; + return (A) this; + } + + public A withLendablePercent(Integer lendablePercent) { + this.lendablePercent = lendablePercent; + return (A) this; } public A withLimitResponse(V1LimitResponse limitResponse) { @@ -75,10 +160,6 @@ public A withLimitResponse(V1LimitResponse limitResponse) { return (A) this; } - public boolean hasLimitResponse() { - return this.limitResponse != null; - } - public LimitResponseNested withNewLimitResponse() { return new LimitResponseNested(null); } @@ -87,63 +168,18 @@ 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 class LimitResponseNested extends V1LimitResponseFluent> implements Nested{ - 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()); - } + V1LimitResponseBuilder builder; - 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()); } @@ -152,7 +188,5 @@ 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..ce7c596bec --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1LinuxContainerUserBuilder extends V1LinuxContainerUserFluent implements VisitableBuilder{ + + V1LinuxContainerUserFluent fluent; + + public V1LinuxContainerUserBuilder() { + this(new V1LinuxContainerUser()); + } + + public V1LinuxContainerUserBuilder(V1LinuxContainerUserFluent fluent) { + this(fluent, new V1LinuxContainerUser()); + } + + public V1LinuxContainerUserBuilder(V1LinuxContainerUser instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1LinuxContainerUserBuilder(V1LinuxContainerUserFluent fluent,V1LinuxContainerUser instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..bee3ff85ac --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java @@ -0,0 +1,234 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1LinuxContainerUserFluent> extends BaseFluent{ + + private Long gid; + private List supplementalGroups; + private Long uid; + + public V1LinuxContainerUserFluent() { + } + + public V1LinuxContainerUserFluent(V1LinuxContainerUser instance) { + this.copyInstance(instance); + } + + 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 addToSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + for (Long item : items) { + this.supplementalGroups.add(item); + } + return (A) this; + } + + public A addToSupplementalGroups(int index,Long item) { + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + this.supplementalGroups.add(index, item); + return (A) this; + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LinuxContainerUserFluent that = (V1LinuxContainerUserFluent) o; + if (!(Objects.equals(gid, that.gid))) { + return false; + } + if (!(Objects.equals(supplementalGroups, that.supplementalGroups))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; + } + + public Long getFirstSupplementalGroup() { + return this.supplementalGroups.get(0); + } + + public Long getGid() { + return this.gid; + } + + 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 Long getSupplementalGroup(int index) { + return this.supplementalGroups.get(index); + } + + public List getSupplementalGroups() { + return this.supplementalGroups; + } + + public Long getUid() { + return this.uid; + } + + public boolean hasGid() { + return this.gid != null; + } + + public boolean hasMatchingSupplementalGroup(Predicate predicate) { + for (Long item : supplementalGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSupplementalGroups() { + return this.supplementalGroups != null && !(this.supplementalGroups.isEmpty()); + } + + public boolean hasUid() { + return this.uid != null; + } + + public int hashCode() { + return Objects.hash(gid, supplementalGroups, uid); + } + + public A removeAllFromSupplementalGroups(Collection items) { + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(item); + } + return (A) this; + } + + public A removeFromSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(gid == null)) { + sb.append("gid:"); + sb.append(gid); + sb.append(","); + } + if (!(supplementalGroups == null) && !(supplementalGroups.isEmpty())) { + sb.append("supplementalGroups:"); + sb.append(supplementalGroups); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); + } + + public A withGid(Long gid) { + this.gid = gid; + return (A) this; + } + + 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(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 A withUid(Long uid) { + this.uid = uid; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java index 20cab15f0a..5c756a04d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ListMetaBuilder extends V1ListMetaFluent implements VisitableBuilder{ + + V1ListMetaFluent fluent; + public V1ListMetaBuilder() { this(new V1ListMeta()); } @@ -10,17 +14,16 @@ public V1ListMetaBuilder(V1ListMetaFluent fluent) { this(fluent, new V1ListMeta()); } - public V1ListMetaBuilder(V1ListMetaFluent fluent,V1ListMeta instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ListMetaBuilder(V1ListMeta instance) { this.fluent = this; this.copyInstance(instance); } - V1ListMetaFluent fluent; + public V1ListMetaBuilder(V1ListMetaFluent fluent,V1ListMeta instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ListMeta build() { V1ListMeta buildable = new V1ListMeta(); buildable.setContinue(fluent.getContinue()); @@ -30,5 +33,4 @@ public V1ListMeta build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java index 7d9a96695d..f7f83861c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java @@ -1,115 +1,147 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ListMetaFluent> extends BaseFluent{ +public class V1ListMetaFluent> extends BaseFluent{ + + private String _continue; + private Long remainingItemCount; + private String resourceVersion; + private String selfLink; + public V1ListMetaFluent() { } public V1ListMetaFluent(V1ListMeta instance) { this.copyInstance(instance); } - private String _continue; - private Long remainingItemCount; - private String resourceVersion; - private String selfLink; - + protected void copyInstance(V1ListMeta instance) { - instance = (instance != null ? instance : new V1ListMeta()); + instance = instance != null ? instance : new V1ListMeta(); if (instance != null) { - this.withContinue(instance.getContinue()); - this.withRemainingItemCount(instance.getRemainingItemCount()); - this.withResourceVersion(instance.getResourceVersion()); - this.withSelfLink(instance.getSelfLink()); - } - } - - public String getContinue() { - return this._continue; + this.withContinue(instance.getContinue()); + this.withRemainingItemCount(instance.getRemainingItemCount()); + this.withResourceVersion(instance.getResourceVersion()); + this.withSelfLink(instance.getSelfLink()); + } } - public A withContinue(String _continue) { - this._continue = _continue; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ListMetaFluent that = (V1ListMetaFluent) o; + if (!(Objects.equals(_continue, that._continue))) { + return false; + } + if (!(Objects.equals(remainingItemCount, that.remainingItemCount))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(selfLink, that.selfLink))) { + return false; + } + return true; } - public boolean hasContinue() { - return this._continue != null; + public String getContinue() { + return this._continue; } public Long getRemainingItemCount() { return this.remainingItemCount; } - public A withRemainingItemCount(Long remainingItemCount) { - this.remainingItemCount = remainingItemCount; - return (A) this; - } - - public boolean hasRemainingItemCount() { - return this.remainingItemCount != null; - } - public String getResourceVersion() { return this.resourceVersion; } - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; + public String getSelfLink() { + return this.selfLink; } - public boolean hasResourceVersion() { - return this.resourceVersion != null; + public boolean hasContinue() { + return this._continue != null; } - public String getSelfLink() { - return this.selfLink; + public boolean hasRemainingItemCount() { + return this.remainingItemCount != null; } - public A withSelfLink(String selfLink) { - this.selfLink = selfLink; - return (A) this; + public boolean hasResourceVersion() { + return this.resourceVersion != null; } public boolean hasSelfLink() { return this.selfLink != 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; - V1ListMetaFluent that = (V1ListMetaFluent) o; - if (!java.util.Objects.equals(_continue, that._continue)) return false; - if (!java.util.Objects.equals(remainingItemCount, that.remainingItemCount)) return false; - if (!java.util.Objects.equals(resourceVersion, that.resourceVersion)) return false; - if (!java.util.Objects.equals(selfLink, that.selfLink)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink, super.hashCode()); + return Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (_continue != null) { sb.append("_continue:"); sb.append(_continue + ","); } - if (remainingItemCount != null) { sb.append("remainingItemCount:"); sb.append(remainingItemCount + ","); } - if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } - if (selfLink != null) { sb.append("selfLink:"); sb.append(selfLink); } + if (!(_continue == null)) { + sb.append("_continue:"); + sb.append(_continue); + sb.append(","); + } + if (!(remainingItemCount == null)) { + sb.append("remainingItemCount:"); + sb.append(remainingItemCount); + sb.append(","); + } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + sb.append(","); + } + if (!(selfLink == null)) { + sb.append("selfLink:"); + sb.append(selfLink); + } sb.append("}"); return sb.toString(); } - + public A withContinue(String _continue) { + this._continue = _continue; + return (A) this; + } + + public A withRemainingItemCount(Long remainingItemCount) { + this.remainingItemCount = remainingItemCount; + return (A) this; + } + + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } + + public A withSelfLink(String selfLink) { + this.selfLink = selfLink; + return (A) this; + } + } \ 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 c6e92bc430..6c983ef69a 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LoadBalancerIngressBuilder extends V1LoadBalancerIngressFluent implements VisitableBuilder{ + + V1LoadBalancerIngressFluent fluent; + public V1LoadBalancerIngressBuilder() { this(new V1LoadBalancerIngress()); } @@ -10,17 +14,16 @@ public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent) { this(fluent, new V1LoadBalancerIngress()); } - public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent,V1LoadBalancerIngress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LoadBalancerIngressBuilder(V1LoadBalancerIngress instance) { this.fluent = this; this.copyInstance(instance); } - V1LoadBalancerIngressFluent fluent; + public V1LoadBalancerIngressBuilder(V1LoadBalancerIngressFluent fluent,V1LoadBalancerIngress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LoadBalancerIngress build() { V1LoadBalancerIngress buildable = new V1LoadBalancerIngress(); buildable.setHostname(fluent.getHostname()); @@ -30,5 +33,4 @@ public V1LoadBalancerIngress build() { return buildable; } - } \ No newline at end of file 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 c987f8579e..11083f6e4f 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 @@ -1,153 +1,203 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LoadBalancerIngressFluent> extends BaseFluent{ - public V1LoadBalancerIngressFluent() { - } - - public V1LoadBalancerIngressFluent(V1LoadBalancerIngress instance) { - this.copyInstance(instance); - } +public class V1LoadBalancerIngressFluent> extends BaseFluent{ + private String hostname; private String ip; private String ipMode; private ArrayList ports; - - protected void copyInstance(V1LoadBalancerIngress instance) { - instance = (instance != null ? instance : new V1LoadBalancerIngress()); - if (instance != null) { - this.withHostname(instance.getHostname()); - this.withIp(instance.getIp()); - this.withIpMode(instance.getIpMode()); - this.withPorts(instance.getPorts()); - } + + public V1LoadBalancerIngressFluent() { } - public String getHostname() { - return this.hostname; + public V1LoadBalancerIngressFluent(V1LoadBalancerIngress instance) { + this.copyInstance(instance); } - - public A withHostname(String hostname) { - this.hostname = hostname; + + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } return (A) this; } - public boolean hasHostname() { - return this.hostname != null; + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public String getIp() { - return this.ip; + public PortsNested addNewPortLike(V1PortStatus item) { + return new PortsNested(-1, item); } - public A withIp(String ip) { - this.ip = ip; + public A addToPorts(V1PortStatus... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } return (A) this; } - public boolean hasIp() { - return this.ip != 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(builder); + ports.add(index, builder); + } + return (A) this; } - public String getIpMode() { - return this.ipMode; + public V1PortStatus buildFirstPort() { + return this.ports.get(0).build(); } - public A withIpMode(String ipMode) { - this.ipMode = ipMode; - return (A) this; + public V1PortStatus buildLastPort() { + return this.ports.get(ports.size() - 1).build(); } - public boolean hasIpMode() { - return this.ipMode != null; + public V1PortStatus buildMatchingPort(Predicate predicate) { + for (V1PortStatusBuilder item : ports) { + if (predicate.test(item)) { + return item.build(); + } + } + return 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);} - return (A)this; + public V1PortStatus buildPort(int index) { + return this.ports.get(index).build(); } - 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);} - return (A)this; + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public A addToPorts(io.kubernetes.client.openapi.models.V1PortStatus... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + protected void copyInstance(V1LoadBalancerIngress instance) { + instance = instance != null ? instance : new V1LoadBalancerIngress(); + if (instance != null) { + this.withHostname(instance.getHostname()); + this.withIp(instance.getIp()); + this.withIpMode(instance.getIpMode()); + this.withPorts(instance.getPorts()); + } } - public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1PortStatus... items) { - if (this.ports == null) return (A)this; - for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1PortStatus item : items) {V1PortStatusBuilder builder = new V1PortStatusBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1PortStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); } - return (A)this; + return this.setNewPortLike(index, this.buildPort(index)); } - public List buildPorts() { - return this.ports != null ? build(ports) : null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LoadBalancerIngressFluent that = (V1LoadBalancerIngressFluent) o; + if (!(Objects.equals(hostname, that.hostname))) { + return false; + } + if (!(Objects.equals(ip, that.ip))) { + return false; + } + if (!(Objects.equals(ipMode, that.ipMode))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + return true; } - public V1PortStatus buildPort(int index) { - return this.ports.get(index).build(); + public String getHostname() { + return this.hostname; } - public V1PortStatus buildFirstPort() { - return this.ports.get(0).build(); + public String getIp() { + return this.ip; } - public V1PortStatus buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + public String getIpMode() { + return this.ipMode; } - public V1PortStatus buildMatchingPort(Predicate predicate) { - for (V1PortStatusBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public boolean hasHostname() { + return this.hostname != null; + } + + public boolean hasIp() { + return this.ip != null; + } + + public boolean hasIpMode() { + return this.ipMode != null; } public boolean hasMatchingPort(Predicate predicate) { @@ -159,118 +209,158 @@ public boolean hasMatchingPort(Predicate predicate) { return false; } - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + + public int hashCode() { + return Objects.hash(hostname, ip, ipMode, ports); + } + + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; } - if (ports != null) { - this.ports = new ArrayList(); - for (V1PortStatus item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1PortStatus... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); + public A removeFromPorts(V1PortStatus... items) { + if (this.ports == null) { + return (A) this; } - if (ports != null) { - for (V1PortStatus item : ports) { - this.addToPorts(item); - } + for (V1PortStatus item : items) { + V1PortStatusBuilder builder = new V1PortStatusBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); } return (A) this; } - public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(V1PortStatus item) { - return new PortsNested(-1, item); + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1PortStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public PortsNested setNewPortLike(int index,V1PortStatus item) { return new PortsNested(index, item); } - public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + 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").add(builder); + ports.set(index, builder); + } + return (A) this; } - public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hostname == null)) { + sb.append("hostname:"); + sb.append(hostname); + sb.append(","); + } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + sb.append(","); + } + if (!(ipMode == null)) { + sb.append("ipMode:"); + sb.append(ipMode); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + } + sb.append("}"); + return sb.toString(); } - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + public A withHostname(String hostname) { + this.hostname = hostname; + return (A) this; } - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i=0;i ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (V1PortStatus item : ports) { + this.addToPorts(item); + } + } else { + this.ports = null; + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - 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(); + public A withPorts(V1PortStatus... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (V1PortStatus item : ports) { + this.addToPorts(item); + } + } + return (A) this; } public class PortsNested extends V1PortStatusFluent> implements Nested{ + + V1PortStatusBuilder builder; + int index; + PortsNested(int index,V1PortStatus item) { this.index = index; this.builder = new V1PortStatusBuilder(this, item); } - V1PortStatusBuilder builder; - int index; - + public N and() { - return (N) V1LoadBalancerIngressFluent.this.setToPorts(index,builder.build()); + return (N) V1LoadBalancerIngressFluent.this.setToPorts(index, builder.build()); } public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java index 0793a3fe05..baf7f1cd9b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LoadBalancerStatusBuilder extends V1LoadBalancerStatusFluent implements VisitableBuilder{ + + V1LoadBalancerStatusFluent fluent; + public V1LoadBalancerStatusBuilder() { this(new V1LoadBalancerStatus()); } @@ -10,22 +14,20 @@ public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent) { this(fluent, new V1LoadBalancerStatus()); } - public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent,V1LoadBalancerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LoadBalancerStatusBuilder(V1LoadBalancerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1LoadBalancerStatusFluent fluent; + public V1LoadBalancerStatusBuilder(V1LoadBalancerStatusFluent fluent,V1LoadBalancerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LoadBalancerStatus build() { V1LoadBalancerStatus buildable = new V1LoadBalancerStatus(); buildable.setIngress(fluent.buildIngress()); return buildable; } - } \ No newline at end of file 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..083786cc8c 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 @@ -1,83 +1,83 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LoadBalancerStatusFluent> extends BaseFluent{ +public class V1LoadBalancerStatusFluent> extends BaseFluent{ + + private ArrayList ingress; + public V1LoadBalancerStatusFluent() { } public V1LoadBalancerStatusFluent(V1LoadBalancerStatus instance) { this.copyInstance(instance); } - private ArrayList ingress; - - protected void copyInstance(V1LoadBalancerStatus instance) { - instance = (instance != null ? instance : new V1LoadBalancerStatus()); - if (instance != null) { - this.withIngress(instance.getIngress()); - } - } - - 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);} - 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);} - return (A)this; + + public A addAllToIngress(Collection items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } - public A addToIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + public IngressNested addNewIngress() { + return new IngressNested(-1, null); } - public A addAllToIngress(Collection items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + public IngressNested addNewIngressLike(V1LoadBalancerIngress item) { + return new IngressNested(-1, item); } - public A removeFromIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... items) { - if (this.ingress == null) return (A)this; - for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + public A addToIngress(V1LoadBalancerIngress... items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } - public A removeAllFromIngress(Collection items) { - if (this.ingress == null) return (A)this; - for (V1LoadBalancerIngress item : items) {V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + 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(builder); + ingress.add(index, builder); + } + return (A) this; } - public A removeMatchingFromIngress(Predicate predicate) { - if (ingress == null) return (A) this; - final Iterator each = ingress.iterator(); - final List visitables = _visitables.get("ingress"); - while (each.hasNext()) { - V1LoadBalancerIngressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1LoadBalancerIngress buildFirstIngress() { + return this.ingress.get(0).build(); } public List buildIngress() { @@ -88,10 +88,6 @@ public V1LoadBalancerIngress buildIngress(int index) { return this.ingress.get(index).build(); } - public V1LoadBalancerIngress buildFirstIngress() { - return this.ingress.get(0).build(); - } - public V1LoadBalancerIngress buildLastIngress() { return this.ingress.get(ingress.size() - 1).build(); } @@ -105,6 +101,70 @@ public V1LoadBalancerIngress buildMatchingIngress(Predicate editFirstIngress() { + if (ingress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(0, this.buildIngress(0)); + } + + public IngressNested editIngress(int index) { + if (ingress.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); + } + + public IngressNested editLastIngress() { + int index = ingress.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); + } + + public IngressNested editMatchingIngress(Predicate predicate) { + int index = -1; + for (int i = 0;i < ingress.size();i++) { + if (predicate.test(ingress.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LoadBalancerStatusFluent that = (V1LoadBalancerStatusFluent) o; + if (!(Objects.equals(ingress, that.ingress))) { + return false; + } + return true; + } + + public boolean hasIngress() { + return this.ingress != null && !(this.ingress.isEmpty()); + } + public boolean hasMatchingIngress(Predicate predicate) { for (V1LoadBalancerIngressBuilder item : ingress) { if (predicate.test(item)) { @@ -114,6 +174,80 @@ public boolean hasMatchingIngress(Predicate predic return false; } + public int hashCode() { + return Objects.hash(ingress); + } + + public A removeAllFromIngress(Collection items) { + if (this.ingress == null) { + return (A) this; + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; + } + + public A removeFromIngress(V1LoadBalancerIngress... items) { + if (this.ingress == null) { + return (A) this; + } + for (V1LoadBalancerIngress item : items) { + V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromIngress(Predicate predicate) { + if (ingress == null) { + return (A) this; + } + Iterator each = ingress.iterator(); + List visitables = _visitables.get("ingress"); + while (each.hasNext()) { + V1LoadBalancerIngressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public IngressNested setNewIngressLike(int index,V1LoadBalancerIngress item) { + return new IngressNested(index, item); + } + + 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").add(builder); + ingress.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(ingress == null) && !(ingress.isEmpty())) { + sb.append("ingress:"); + sb.append(ingress); + } + sb.append("}"); + return sb.toString(); + } + public A withIngress(List ingress) { if (this.ingress != null) { this._visitables.get("ingress").clear(); @@ -129,7 +263,7 @@ public A withIngress(List ingress) { return (A) this; } - public A withIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress... ingress) { + public A withIngress(V1LoadBalancerIngress... ingress) { if (this.ingress != null) { this.ingress.clear(); _visitables.remove("ingress"); @@ -141,85 +275,23 @@ public A withIngress(io.kubernetes.client.openapi.models.V1LoadBalancerIngress.. } return (A) this; } + public class IngressNested extends V1LoadBalancerIngressFluent> implements Nested{ - public boolean hasIngress() { - return this.ingress != null && !this.ingress.isEmpty(); - } - - public IngressNested addNewIngress() { - return new IngressNested(-1, null); - } - - public IngressNested addNewIngressLike(V1LoadBalancerIngress item) { - return new IngressNested(-1, item); - } - - public IngressNested setNewIngressLike(int index,V1LoadBalancerIngress item) { - return new IngressNested(index, item); - } - - public IngressNested editIngress(int index) { - if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); - return setNewIngressLike(index, buildIngress(index)); - } - - public IngressNested editFirstIngress() { - if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); - return setNewIngressLike(0, buildIngress(0)); - } - - public IngressNested editLastIngress() { - int index = ingress.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ingress. The list is empty."); - return setNewIngressLike(index, buildIngress(index)); - } - - public IngressNested editMatchingIngress(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1LoadBalancerIngressFluent> implements Nested{ IngressNested(int index,V1LoadBalancerIngress item) { this.index = index; this.builder = new V1LoadBalancerIngressBuilder(this, item); } - V1LoadBalancerIngressBuilder builder; - int index; - + public N and() { - return (N) V1LoadBalancerStatusFluent.this.setToIngress(index,builder.build()); + return (N) V1LoadBalancerStatusFluent.this.setToIngress(index, builder.build()); } public N endIngress() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java index d3977f574c..e7cea89c6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LocalObjectReferenceBuilder extends V1LocalObjectReferenceFluent implements VisitableBuilder{ + + V1LocalObjectReferenceFluent fluent; + public V1LocalObjectReferenceBuilder() { this(new V1LocalObjectReference()); } @@ -10,22 +14,20 @@ public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent) { this(fluent, new V1LocalObjectReference()); } - public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent,V1LocalObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LocalObjectReferenceBuilder(V1LocalObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1LocalObjectReferenceFluent fluent; + public V1LocalObjectReferenceBuilder(V1LocalObjectReferenceFluent fluent,V1LocalObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LocalObjectReference build() { V1LocalObjectReference buildable = new V1LocalObjectReference(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java index 4e66fc7652..f8bcbf82a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LocalObjectReferenceFluent> extends BaseFluent{ +public class V1LocalObjectReferenceFluent> extends BaseFluent{ + + private String name; + public V1LocalObjectReferenceFluent() { } public V1LocalObjectReferenceFluent(V1LocalObjectReference instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1LocalObjectReference instance) { - instance = (instance != null ? instance : new V1LocalObjectReference()); + instance = instance != null ? instance : new V1LocalObjectReference(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } - public String getName() { - return this.name; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LocalObjectReferenceFluent that = (V1LocalObjectReferenceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getName() { + return this.name; } 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; - V1LocalObjectReferenceFluent that = (V1LocalObjectReferenceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } 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); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java index 037e3d4b48..b40190efd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LocalSubjectAccessReviewBuilder extends V1LocalSubjectAccessReviewFluent implements VisitableBuilder{ + + V1LocalSubjectAccessReviewFluent fluent; + public V1LocalSubjectAccessReviewBuilder() { this(new V1LocalSubjectAccessReview()); } @@ -10,17 +14,16 @@ public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent flu this(fluent, new V1LocalSubjectAccessReview()); } - public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent fluent,V1LocalSubjectAccessReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReview instance) { this.fluent = this; this.copyInstance(instance); } - V1LocalSubjectAccessReviewFluent fluent; + public V1LocalSubjectAccessReviewBuilder(V1LocalSubjectAccessReviewFluent fluent,V1LocalSubjectAccessReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LocalSubjectAccessReview build() { V1LocalSubjectAccessReview buildable = new V1LocalSubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1LocalSubjectAccessReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java index a9c4c55c3d..4871effbc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LocalSubjectAccessReviewFluent> extends BaseFluent{ +public class V1LocalSubjectAccessReviewFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1SubjectAccessReviewSpecBuilder spec; + private V1SubjectAccessReviewStatusBuilder status; + public V1LocalSubjectAccessReviewFluent() { } public V1LocalSubjectAccessReviewFluent(V1LocalSubjectAccessReview instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1SubjectAccessReviewSpecBuilder spec; - private V1SubjectAccessReviewStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1SubjectAccessReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1SubjectAccessReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1LocalSubjectAccessReview instance) { - instance = (instance != null ? instance : new V1LocalSubjectAccessReview()); + instance = instance != null ? instance : new V1LocalSubjectAccessReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SubjectAccessReviewSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LocalSubjectAccessReviewFluent that = (V1LocalSubjectAccessReviewFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1SubjectAccessReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { + return new StatusNested(item); } public A withSpec(V1SubjectAccessReviewSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1SubjectAccessReviewSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec 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 V1SubjectAccessReviewSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1SubjectAccessReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1SubjectAccessReviewStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1SubjectAccessReviewStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus 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 V1SubjectAccessReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus 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; - V1LocalSubjectAccessReviewFluent that = (V1LocalSubjectAccessReviewFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1LocalSubjectAccessReviewFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1SubjectAccessReviewSpecFluent> implements Nested{ + + V1SubjectAccessReviewSpecBuilder builder; + SpecNested(V1SubjectAccessReviewSpec item) { this.builder = new V1SubjectAccessReviewSpecBuilder(this, item); } - V1SubjectAccessReviewSpecBuilder builder; - + public N and() { return (N) V1LocalSubjectAccessReviewFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1SubjectAccessReviewStatusFluent> implements Nested{ + + V1SubjectAccessReviewStatusBuilder builder; + StatusNested(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } - V1SubjectAccessReviewStatusBuilder builder; - + public N and() { return (N) V1LocalSubjectAccessReviewFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java index 6d34ea4328..175642acf8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1LocalVolumeSourceBuilder extends V1LocalVolumeSourceFluent implements VisitableBuilder{ + + V1LocalVolumeSourceFluent fluent; + public V1LocalVolumeSourceBuilder() { this(new V1LocalVolumeSource()); } @@ -10,17 +14,16 @@ public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent) { this(fluent, new V1LocalVolumeSource()); } - public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent,V1LocalVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1LocalVolumeSourceBuilder(V1LocalVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1LocalVolumeSourceFluent fluent; + public V1LocalVolumeSourceBuilder(V1LocalVolumeSourceFluent fluent,V1LocalVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1LocalVolumeSource build() { V1LocalVolumeSource buildable = new V1LocalVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -28,5 +31,4 @@ public V1LocalVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java index 7946397e19..f94704933d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1LocalVolumeSourceFluent> extends BaseFluent{ +public class V1LocalVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private String path; + public V1LocalVolumeSourceFluent() { } public V1LocalVolumeSourceFluent(V1LocalVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private String path; - + protected void copyInstance(V1LocalVolumeSource instance) { - instance = (instance != null ? instance : new V1LocalVolumeSource()); + instance = instance != null ? instance : new V1LocalVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withPath(instance.getPath()); - } + this.withFsType(instance.getFsType()); + this.withPath(instance.getPath()); + } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1LocalVolumeSourceFluent that = (V1LocalVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + return true; } - public boolean hasFsType() { - return this.fsType != null; + public String getFsType() { + return this.fsType; } public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + public boolean hasFsType() { + return this.fsType != null; } public boolean hasPath() { return this.path != 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; - V1LocalVolumeSourceFluent that = (V1LocalVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(fsType, path, super.hashCode()); + return Objects.hash(fsType, path); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (path != null) { sb.append("path:"); sb.append(path); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + } sb.append("}"); return sb.toString(); } - + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java index 1c5221caa0..4257684378 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ManagedFieldsEntryBuilder extends V1ManagedFieldsEntryFluent implements VisitableBuilder{ + + V1ManagedFieldsEntryFluent fluent; + public V1ManagedFieldsEntryBuilder() { this(new V1ManagedFieldsEntry()); } @@ -10,17 +14,16 @@ public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent) { this(fluent, new V1ManagedFieldsEntry()); } - public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent,V1ManagedFieldsEntry instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntry instance) { this.fluent = this; this.copyInstance(instance); } - V1ManagedFieldsEntryFluent fluent; + public V1ManagedFieldsEntryBuilder(V1ManagedFieldsEntryFluent fluent,V1ManagedFieldsEntry instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ManagedFieldsEntry build() { V1ManagedFieldsEntry buildable = new V1ManagedFieldsEntry(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +36,4 @@ public V1ManagedFieldsEntry build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java index f46ad73c3a..648c6f9c4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java @@ -1,22 +1,19 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ManagedFieldsEntryFluent> extends BaseFluent{ - public V1ManagedFieldsEntryFluent() { - } - - public V1ManagedFieldsEntryFluent(V1ManagedFieldsEntry instance) { - this.copyInstance(instance); - } +public class V1ManagedFieldsEntryFluent> extends BaseFluent{ + private String apiVersion; private String fieldsType; private Object fieldsV1; @@ -24,143 +21,196 @@ public V1ManagedFieldsEntryFluent(V1ManagedFieldsEntry instance) { private String operation; private String subresource; private OffsetDateTime time; + + public V1ManagedFieldsEntryFluent() { + } + public V1ManagedFieldsEntryFluent(V1ManagedFieldsEntry instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ManagedFieldsEntry instance) { - instance = (instance != null ? instance : new V1ManagedFieldsEntry()); + instance = instance != null ? instance : new V1ManagedFieldsEntry(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withFieldsType(instance.getFieldsType()); - this.withFieldsV1(instance.getFieldsV1()); - this.withManager(instance.getManager()); - this.withOperation(instance.getOperation()); - this.withSubresource(instance.getSubresource()); - this.withTime(instance.getTime()); - } - } - - public String getApiVersion() { - return this.apiVersion; + this.withApiVersion(instance.getApiVersion()); + this.withFieldsType(instance.getFieldsType()); + this.withFieldsV1(instance.getFieldsV1()); + this.withManager(instance.getManager()); + this.withOperation(instance.getOperation()); + this.withSubresource(instance.getSubresource()); + this.withTime(instance.getTime()); + } } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ManagedFieldsEntryFluent that = (V1ManagedFieldsEntryFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(fieldsType, that.fieldsType))) { + return false; + } + if (!(Objects.equals(fieldsV1, that.fieldsV1))) { + return false; + } + if (!(Objects.equals(manager, that.manager))) { + return false; + } + if (!(Objects.equals(operation, that.operation))) { + return false; + } + if (!(Objects.equals(subresource, that.subresource))) { + return false; + } + if (!(Objects.equals(time, that.time))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public String getFieldsType() { return this.fieldsType; } - public A withFieldsType(String fieldsType) { - this.fieldsType = fieldsType; - return (A) this; + public Object getFieldsV1() { + return this.fieldsV1; } - public boolean hasFieldsType() { - return this.fieldsType != null; + public String getManager() { + return this.manager; } - public Object getFieldsV1() { - return this.fieldsV1; + public String getOperation() { + return this.operation; } - public A withFieldsV1(Object fieldsV1) { - this.fieldsV1 = fieldsV1; - return (A) this; + public String getSubresource() { + return this.subresource; } - public boolean hasFieldsV1() { - return this.fieldsV1 != null; + public OffsetDateTime getTime() { + return this.time; } - public String getManager() { - return this.manager; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public A withManager(String manager) { - this.manager = manager; - return (A) this; + public boolean hasFieldsType() { + return this.fieldsType != null; + } + + public boolean hasFieldsV1() { + return this.fieldsV1 != null; } public boolean hasManager() { return this.manager != null; } - public String getOperation() { - return this.operation; + public boolean hasOperation() { + return this.operation != null; } - public A withOperation(String operation) { - this.operation = operation; - return (A) this; + public boolean hasSubresource() { + return this.subresource != null; } - public boolean hasOperation() { - return this.operation != null; + public boolean hasTime() { + return this.time != null; } - public String getSubresource() { - return this.subresource; + public int hashCode() { + return Objects.hash(apiVersion, fieldsType, fieldsV1, manager, operation, subresource, time); } - public A withSubresource(String subresource) { - this.subresource = subresource; - return (A) this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(fieldsType == null)) { + sb.append("fieldsType:"); + sb.append(fieldsType); + sb.append(","); + } + if (!(fieldsV1 == null)) { + sb.append("fieldsV1:"); + sb.append(fieldsV1); + sb.append(","); + } + if (!(manager == null)) { + sb.append("manager:"); + sb.append(manager); + sb.append(","); + } + if (!(operation == null)) { + sb.append("operation:"); + sb.append(operation); + sb.append(","); + } + if (!(subresource == null)) { + sb.append("subresource:"); + sb.append(subresource); + sb.append(","); + } + if (!(time == null)) { + sb.append("time:"); + sb.append(time); + } + sb.append("}"); + return sb.toString(); } - public boolean hasSubresource() { - return this.subresource != null; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public OffsetDateTime getTime() { - return this.time; + public A withFieldsType(String fieldsType) { + this.fieldsType = fieldsType; + return (A) this; } - public A withTime(OffsetDateTime time) { - this.time = time; + public A withFieldsV1(Object fieldsV1) { + this.fieldsV1 = fieldsV1; return (A) this; } - public boolean hasTime() { - return this.time != null; + public A withManager(String manager) { + this.manager = manager; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ManagedFieldsEntryFluent that = (V1ManagedFieldsEntryFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(fieldsType, that.fieldsType)) return false; - if (!java.util.Objects.equals(fieldsV1, that.fieldsV1)) return false; - if (!java.util.Objects.equals(manager, that.manager)) return false; - if (!java.util.Objects.equals(operation, that.operation)) return false; - if (!java.util.Objects.equals(subresource, that.subresource)) return false; - if (!java.util.Objects.equals(time, that.time)) return false; - return true; + public A withOperation(String operation) { + this.operation = operation; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, fieldsType, fieldsV1, manager, operation, subresource, time, super.hashCode()); + public A withSubresource(String subresource) { + this.subresource = subresource; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (fieldsType != null) { sb.append("fieldsType:"); sb.append(fieldsType + ","); } - if (fieldsV1 != null) { sb.append("fieldsV1:"); sb.append(fieldsV1 + ","); } - if (manager != null) { sb.append("manager:"); sb.append(manager + ","); } - if (operation != null) { sb.append("operation:"); sb.append(operation + ","); } - if (subresource != null) { sb.append("subresource:"); sb.append(subresource + ","); } - if (time != null) { sb.append("time:"); sb.append(time); } - sb.append("}"); - return sb.toString(); + public A withTime(OffsetDateTime time) { + this.time = time; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java index ac8cb2d9d6..8818b55efb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MatchConditionBuilder extends V1MatchConditionFluent implements VisitableBuilder{ + + V1MatchConditionFluent fluent; + public V1MatchConditionBuilder() { this(new V1MatchCondition()); } @@ -10,17 +14,16 @@ public V1MatchConditionBuilder(V1MatchConditionFluent fluent) { this(fluent, new V1MatchCondition()); } - public V1MatchConditionBuilder(V1MatchConditionFluent fluent,V1MatchCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1MatchConditionBuilder(V1MatchCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1MatchConditionFluent fluent; + public V1MatchConditionBuilder(V1MatchConditionFluent fluent,V1MatchCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MatchCondition build() { V1MatchCondition buildable = new V1MatchCondition(); buildable.setExpression(fluent.getExpression()); @@ -28,5 +31,4 @@ public V1MatchCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java index b91c231711..2f33b2dc54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1MatchConditionFluent> extends BaseFluent{ +public class V1MatchConditionFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1MatchConditionFluent() { } public V1MatchConditionFluent(V1MatchCondition instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1MatchCondition instance) { - instance = (instance != null ? instance : new V1MatchCondition()); + instance = instance != null ? instance : new V1MatchCondition(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MatchConditionFluent that = (V1MatchConditionFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasExpression() { - return this.expression != null; + public String getExpression() { + return this.expression; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasExpression() { + return this.expression != null; } 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; - V1MatchConditionFluent that = (V1MatchConditionFluent) 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()); + return Objects.hash(expression, name); } 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); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file 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 index fdae6d54dc..1b1d4d8ce2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MatchResourcesBuilder extends V1MatchResourcesFluent implements VisitableBuilder{ + + V1MatchResourcesFluent fluent; + public V1MatchResourcesBuilder() { this(new V1MatchResources()); } @@ -10,17 +14,16 @@ 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 V1MatchResourcesBuilder(V1MatchResourcesFluent fluent,V1MatchResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MatchResources build() { V1MatchResources buildable = new V1MatchResources(); buildable.setExcludeResourceRules(fluent.buildExcludeResourceRules()); @@ -31,5 +34,4 @@ public V1MatchResources build() { 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 index 63d9b9fdf2..c9aa0d4bc6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java @@ -1,109 +1,157 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1MatchResourcesFluent> extends BaseFluent{ +public class V1MatchResourcesFluent> extends BaseFluent{ + + private ArrayList excludeResourceRules; + private String matchPolicy; + private V1LabelSelectorBuilder namespaceSelector; + private V1LabelSelectorBuilder objectSelector; + private ArrayList resourceRules; + public V1MatchResourcesFluent() { } public V1MatchResourcesFluent(V1MatchResources instance) { this.copyInstance(instance); } - private ArrayList excludeResourceRules; - private String matchPolicy; - private V1LabelSelectorBuilder namespaceSelector; - private V1LabelSelectorBuilder objectSelector; - private ArrayList resourceRules; + + 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; + } - 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 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 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(index, builder); excludeResourceRules.add(index, builder);} - return (A)this; + public ExcludeResourceRulesNested addNewExcludeResourceRule() { + return new ExcludeResourceRulesNested(-1, null); } - 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").set(index, builder); excludeResourceRules.set(index, builder);} - return (A)this; + public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(-1, item); } - 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 ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); } - 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 ResourceRulesNested addNewResourceRuleLike(V1NamedRuleWithOperations item) { + return new ResourceRulesNested(-1, item); } - 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 addToExcludeResourceRules(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 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 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 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(); - } + public A addToResourceRules(V1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - return (A)this; + for (V1NamedRuleWithOperations item : items) { + V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - public List buildExcludeResourceRules() { - return this.excludeResourceRules != null ? build(excludeResourceRules) : null; + 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 V1NamedRuleWithOperations buildExcludeResourceRule(int index) { return this.excludeResourceRules.get(index).build(); } + public List buildExcludeResourceRules() { + return this.excludeResourceRules != null ? build(excludeResourceRules) : null; + } + public V1NamedRuleWithOperations buildFirstExcludeResourceRule() { return this.excludeResourceRules.get(0).build(); } + public V1NamedRuleWithOperations buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + public V1NamedRuleWithOperations buildLastExcludeResourceRule() { return this.excludeResourceRules.get(excludeResourceRules.size() - 1).build(); } + public V1NamedRuleWithOperations buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + public V1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate predicate) { for (V1NamedRuleWithOperationsBuilder item : excludeResourceRules) { if (predicate.test(item)) { @@ -113,257 +161,433 @@ public V1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate predicate) { - for (V1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + public V1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : resourceRules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withExcludeResourceRules(List excludeResourceRules) { - if (this.excludeResourceRules != null) { - this._visitables.get("excludeResourceRules").clear(); + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + } + + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; + } + + public V1NamedRuleWithOperations buildResourceRule(int index) { + return this.resourceRules.get(index).build(); + } + + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; + } + + 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()); } - if (excludeResourceRules != null) { - this.excludeResourceRules = new ArrayList(); - for (V1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); - } - } else { - this.excludeResourceRules = null; + } + + public ExcludeResourceRulesNested editExcludeResourceRule(int index) { + if (excludeResourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "excludeResourceRules")); } - return (A) this; + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } - public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... excludeResourceRules) { - if (this.excludeResourceRules != null) { - this.excludeResourceRules.clear(); - _visitables.remove("excludeResourceRules"); + public ExcludeResourceRulesNested editFirstExcludeResourceRule() { + if (excludeResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "excludeResourceRules")); } - if (excludeResourceRules != null) { - for (V1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); + return this.setNewExcludeResourceRuleLike(0, this.buildExcludeResourceRule(0)); + } + + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + } + + public ExcludeResourceRulesNested editLastExcludeResourceRule() { + int index = excludeResourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); + } + + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + + public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < excludeResourceRules.size();i++) { + if (predicate.test(excludeResourceRules.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } - public boolean hasExcludeResourceRules() { - return this.excludeResourceRules != null && !this.excludeResourceRules.isEmpty(); + public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public ExcludeResourceRulesNested addNewExcludeResourceRule() { - return new ExcludeResourceRulesNested(-1, null); + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(-1, item); + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } - public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(index, item); + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } - 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 NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - 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 ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } - 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 ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } - public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { - int index = -1; - for (int i=0;i editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MatchResourcesFluent that = (V1MatchResourcesFluent) o; + if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; + } + return true; } public String getMatchPolicy() { return this.matchPolicy; } - public A withMatchPolicy(String matchPolicy) { - this.matchPolicy = matchPolicy; - return (A) this; + public boolean hasExcludeResourceRules() { + return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); } public boolean hasMatchPolicy() { return this.matchPolicy != null; } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + public boolean hasMatchingExcludeResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { - this._visitables.remove("namespaceSelector"); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - this._visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - this._visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; + public boolean hasMatchingResourceRule(Predicate predicate) { + for (V1NamedRuleWithOperationsBuilder item : resourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasNamespaceSelector() { return this.namespaceSelector != null; } - public NamespaceSelectorNested 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 boolean hasObjectSelector() { + return this.objectSelector != null; } - public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + public boolean hasResourceRules() { + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } - public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + public int hashCode() { + return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + 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 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); + 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 boolean hasObjectSelector() { - return this.objectSelector != null; + public A removeFromExcludeResourceRules(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 ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + public A removeFromResourceRules(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 ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + public A removeMatchingFromExcludeResourceRules(Predicate predicate) { + if (excludeResourceRules == null) { + return (A) this; + } + Iterator each = excludeResourceRules.iterator(); + 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 ObjectSelectorNested editObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(null)); + public A removeMatchingFromResourceRules(Predicate predicate) { + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + 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 ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(index, item); } - public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(item)); + public ResourceRulesNested setNewResourceRuleLike(int index,V1NamedRuleWithOperations item) { + return new ResourceRulesNested(index, item); } - public A addToResourceRules(int index,V1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = 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(index, builder); resourceRules.add(index, builder);} - return (A)this; + 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 setToResourceRules(int index,V1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + 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").set(index, builder); resourceRules.set(index, builder);} - return (A)this; + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(excludeResourceRules == null) && !(excludeResourceRules.isEmpty())) { + sb.append("excludeResourceRules:"); + sb.append(excludeResourceRules); + sb.append(","); + } + if (!(matchPolicy == null)) { + sb.append("matchPolicy:"); + sb.append(matchPolicy); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(objectSelector == null)) { + sb.append("objectSelector:"); + sb.append(objectSelector); + sb.append(","); + } + if (!(resourceRules == null) && !(resourceRules.isEmpty())) { + sb.append("resourceRules:"); + sb.append(resourceRules); + } + sb.append("}"); + return sb.toString(); } - 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 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 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 withExcludeResourceRules(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 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 withMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + 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(); - } + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); } - return (A)this; - } - - public List buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; + return (A) this; } - public V1NamedRuleWithOperations buildResourceRule(int index) { - return this.resourceRules.get(index).build(); + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); } - public V1NamedRuleWithOperations buildFirstResourceRule() { - return this.resourceRules.get(0).build(); + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); } - public V1NamedRuleWithOperations buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); + public ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); } - public V1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { - for (V1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); } - public boolean hasMatchingResourceRule(Predicate predicate) { - for (V1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 A withResourceRules(List resourceRules) { @@ -381,7 +605,7 @@ public A withResourceRules(List resourceRules) { return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOperations... resourceRules) { + public A withResourceRules(V1NamedRuleWithOperations... resourceRules) { if (this.resourceRules != null) { this.resourceRules.clear(); _visitables.remove("resourceRules"); @@ -393,100 +617,33 @@ public A withResourceRules(io.kubernetes.client.openapi.models.V1NamedRuleWithOp } return (A) this; } + public class ExcludeResourceRulesNested extends V1NamedRuleWithOperationsFluent> implements Nested{ - 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()); + return (N) V1MatchResourcesFluent.this.setToExcludeResourceRules(index, builder.build()); } public N endExcludeResourceRule() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1MatchResourcesFluent.this.withNamespaceSelector(builder.build()); } @@ -495,14 +652,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1MatchResourcesFluent.this.withObjectSelector(builder.build()); } @@ -511,25 +669,24 @@ public N endObjectSelector() { return and(); } - } public class ResourceRulesNested extends V1NamedRuleWithOperationsFluent> implements Nested{ + + V1NamedRuleWithOperationsBuilder builder; + int index; + 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()); + 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 index b7ad467ebd..db82986200 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ModifyVolumeStatusBuilder extends V1ModifyVolumeStatusFluent implements VisitableBuilder{ + + V1ModifyVolumeStatusFluent fluent; + public V1ModifyVolumeStatusBuilder() { this(new V1ModifyVolumeStatus()); } @@ -10,17 +14,16 @@ 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 V1ModifyVolumeStatusBuilder(V1ModifyVolumeStatusFluent fluent,V1ModifyVolumeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ModifyVolumeStatus build() { V1ModifyVolumeStatus buildable = new V1ModifyVolumeStatus(); buildable.setStatus(fluent.getStatus()); @@ -28,5 +31,4 @@ public V1ModifyVolumeStatus build() { 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 index 35135c122d..148efdc63d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ModifyVolumeStatusFluent> extends BaseFluent{ +public class V1ModifyVolumeStatusFluent> extends BaseFluent{ + + private String status; + private String targetVolumeAttributesClassName; + 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()); + instance = instance != null ? instance : new V1ModifyVolumeStatus(); if (instance != null) { - this.withStatus(instance.getStatus()); - this.withTargetVolumeAttributesClassName(instance.getTargetVolumeAttributesClassName()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ModifyVolumeStatusFluent that = (V1ModifyVolumeStatusFluent) o; + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(targetVolumeAttributesClassName, that.targetVolumeAttributesClassName))) { + return false; + } + return true; } - public boolean hasStatus() { - return this.status != null; + public String getStatus() { + return this.status; } public String getTargetVolumeAttributesClassName() { return this.targetVolumeAttributesClassName; } - public A withTargetVolumeAttributesClassName(String targetVolumeAttributesClassName) { - this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; - return (A) this; + public boolean hasStatus() { + return this.status != null; } 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()); + return Objects.hash(status, targetVolumeAttributesClassName); } 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); } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(targetVolumeAttributesClassName == null)) { + sb.append("targetVolumeAttributesClassName:"); + sb.append(targetVolumeAttributesClassName); + } sb.append("}"); return sb.toString(); } - + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withTargetVolumeAttributesClassName(String targetVolumeAttributesClassName) { + this.targetVolumeAttributesClassName = targetVolumeAttributesClassName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java index 4f4ecd525e..a775f9b01a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MutatingWebhookBuilder extends V1MutatingWebhookFluent implements VisitableBuilder{ + + V1MutatingWebhookFluent fluent; + public V1MutatingWebhookBuilder() { this(new V1MutatingWebhook()); } @@ -10,17 +14,16 @@ public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent) { this(fluent, new V1MutatingWebhook()); } - public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent,V1MutatingWebhook instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1MutatingWebhookBuilder(V1MutatingWebhook instance) { this.fluent = this; this.copyInstance(instance); } - V1MutatingWebhookFluent fluent; + public V1MutatingWebhookBuilder(V1MutatingWebhookFluent fluent,V1MutatingWebhook instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MutatingWebhook build() { V1MutatingWebhook buildable = new V1MutatingWebhook(); buildable.setAdmissionReviewVersions(fluent.getAdmissionReviewVersions()); @@ -38,5 +41,4 @@ public V1MutatingWebhook build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java index 5a60b05589..7b3fce9255 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MutatingWebhookConfigurationBuilder extends V1MutatingWebhookConfigurationFluent implements VisitableBuilder{ + + V1MutatingWebhookConfigurationFluent fluent; + public V1MutatingWebhookConfigurationBuilder() { this(new V1MutatingWebhookConfiguration()); } @@ -10,17 +14,16 @@ public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluen this(fluent, new V1MutatingWebhookConfiguration()); } - public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluent fluent,V1MutatingWebhookConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1MutatingWebhookConfigurationFluent fluent; + public V1MutatingWebhookConfigurationBuilder(V1MutatingWebhookConfigurationFluent fluent,V1MutatingWebhookConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MutatingWebhookConfiguration build() { V1MutatingWebhookConfiguration buildable = new V1MutatingWebhookConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1MutatingWebhookConfiguration build() { return buildable; } - } \ 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..2ccf3d36ca 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 @@ -1,189 +1,348 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1MutatingWebhookConfigurationFluent> extends BaseFluent{ +public class V1MutatingWebhookConfigurationFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private ArrayList webhooks; + public V1MutatingWebhookConfigurationFluent() { } public V1MutatingWebhookConfigurationFluent(V1MutatingWebhookConfiguration instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private ArrayList webhooks; + + public A addAllToWebhooks(Collection items) { + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").add(builder); + this.webhooks.add(builder); + } + return (A) this; + } - protected void copyInstance(V1MutatingWebhookConfiguration instance) { - instance = (instance != null ? instance : new V1MutatingWebhookConfiguration()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withWebhooks(instance.getWebhooks()); - } + public WebhooksNested addNewWebhook() { + return new WebhooksNested(-1, null); } - public String getApiVersion() { - return this.apiVersion; + public WebhooksNested addNewWebhookLike(V1MutatingWebhook item) { + return new WebhooksNested(-1, item); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + public A addToWebhooks(V1MutatingWebhook... items) { + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").add(builder); + this.webhooks.add(builder); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; + 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(builder); + webhooks.add(index, builder); + } + return (A) this; } - public String getKind() { - return this.kind; + public V1MutatingWebhook buildFirstWebhook() { + return this.webhooks.get(0).build(); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public V1MutatingWebhook buildLastWebhook() { + return this.webhooks.get(webhooks.size() - 1).build(); } - public boolean hasKind() { - return this.kind != null; + public V1MutatingWebhook buildMatchingWebhook(Predicate predicate) { + for (V1MutatingWebhookBuilder item : webhooks) { + if (predicate.test(item)) { + return item.build(); + } + } + return 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); + public V1MutatingWebhook buildWebhook(int index) { + return this.webhooks.get(index).build(); + } + + public List buildWebhooks() { + return this.webhooks != null ? build(webhooks) : null; + } + + protected void copyInstance(V1MutatingWebhookConfiguration instance) { + instance = instance != null ? instance : new V1MutatingWebhookConfiguration(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withWebhooks(instance.getWebhooks()); } - return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; + public WebhooksNested editFirstWebhook() { + if (webhooks.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "webhooks")); + } + return this.setNewWebhookLike(0, this.buildWebhook(0)); } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public WebhooksNested editLastWebhook() { + int index = webhooks.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public WebhooksNested editMatchingWebhook(Predicate predicate) { + int index = -1; + for (int i = 0;i < webhooks.size();i++) { + if (predicate.test(webhooks.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(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);} - return (A)this; + public WebhooksNested editWebhook(int index) { + if (webhooks.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } - 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);} - return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingWebhookConfigurationFluent that = (V1MutatingWebhookConfigurationFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(webhooks, that.webhooks))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } - public A addToWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} - for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; + public String getKind() { + return this.kind; } - public A addAllToWebhooks(Collection items) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} - for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingWebhook(Predicate predicate) { + for (V1MutatingWebhookBuilder item : webhooks) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasWebhooks() { + return this.webhooks != null && !(this.webhooks.isEmpty()); } - public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... items) { - if (this.webhooks == null) return (A)this; - for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder); this.webhooks.remove(builder);} return (A)this; + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, webhooks); } public A removeAllFromWebhooks(Collection items) { - if (this.webhooks == null) return (A)this; - for (V1MutatingWebhook item : items) {V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder); this.webhooks.remove(builder);} return (A)this; + if (this.webhooks == null) { + return (A) this; + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; + } + + public A removeFromWebhooks(V1MutatingWebhook... items) { + if (this.webhooks == null) { + return (A) this; + } + for (V1MutatingWebhook item : items) { + V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; } public A removeMatchingFromWebhooks(Predicate predicate) { - if (webhooks == null) return (A) this; - final Iterator each = webhooks.iterator(); - final List visitables = _visitables.get("webhooks"); + if (webhooks == null) { + return (A) this; + } + Iterator each = webhooks.iterator(); + List visitables = _visitables.get("webhooks"); while (each.hasNext()) { - V1MutatingWebhookBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1MutatingWebhookBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildWebhooks() { - return this.webhooks != null ? build(webhooks) : null; + public WebhooksNested setNewWebhookLike(int index,V1MutatingWebhook item) { + return new WebhooksNested(index, item); } - public V1MutatingWebhook buildWebhook(int index) { - return this.webhooks.get(index).build(); + 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").add(builder); + webhooks.set(index, builder); + } + return (A) this; } - public V1MutatingWebhook buildFirstWebhook() { - return this.webhooks.get(0).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(webhooks == null) && !(webhooks.isEmpty())) { + sb.append("webhooks:"); + sb.append(webhooks); + } + sb.append("}"); + return sb.toString(); } - public V1MutatingWebhook buildLastWebhook() { - return this.webhooks.get(webhooks.size() - 1).build(); + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public V1MutatingWebhook buildMatchingWebhook(Predicate predicate) { - for (V1MutatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public boolean hasMatchingWebhook(Predicate predicate) { - for (V1MutatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } public A withWebhooks(List webhooks) { @@ -201,7 +360,7 @@ public A withWebhooks(List webhooks) { return (A) this; } - public A withWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... webhooks) { + public A withWebhooks(V1MutatingWebhook... webhooks) { if (this.webhooks != null) { this.webhooks.clear(); _visitables.remove("webhooks"); @@ -213,80 +372,14 @@ public A withWebhooks(io.kubernetes.client.openapi.models.V1MutatingWebhook... w } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasWebhooks() { - return this.webhooks != null && !this.webhooks.isEmpty(); - } - - public WebhooksNested addNewWebhook() { - return new WebhooksNested(-1, null); - } - - public WebhooksNested addNewWebhookLike(V1MutatingWebhook item) { - return new WebhooksNested(-1, item); - } - - public WebhooksNested setNewWebhookLike(int index,V1MutatingWebhook item) { - return new WebhooksNested(index, item); - } - - public WebhooksNested editWebhook(int index) { - if (webhooks.size() <= index) throw new RuntimeException("Can't edit webhooks. Index exceeds size."); - return setNewWebhookLike(index, buildWebhook(index)); - } - - public WebhooksNested editFirstWebhook() { - if (webhooks.size() == 0) throw new RuntimeException("Can't edit first webhooks. The list is empty."); - return setNewWebhookLike(0, buildWebhook(0)); - } - - public WebhooksNested editLastWebhook() { - int index = webhooks.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last webhooks. The list is empty."); - return setNewWebhookLike(index, buildWebhook(index)); - } - - public WebhooksNested editMatchingWebhook(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1ObjectMetaFluent> implements Nested{ MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1MutatingWebhookConfigurationFluent.this.withMetadata(builder.build()); } @@ -295,25 +388,24 @@ public N endMetadata() { return and(); } - } public class WebhooksNested extends V1MutatingWebhookFluent> implements Nested{ + + V1MutatingWebhookBuilder builder; + int index; + WebhooksNested(int index,V1MutatingWebhook item) { this.index = index; this.builder = new V1MutatingWebhookBuilder(this, item); } - V1MutatingWebhookBuilder builder; - int index; - + public N and() { - return (N) V1MutatingWebhookConfigurationFluent.this.setToWebhooks(index,builder.build()); + return (N) V1MutatingWebhookConfigurationFluent.this.setToWebhooks(index, builder.build()); } public N endWebhook() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java index 23449c2103..c5f753ef97 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1MutatingWebhookConfigurationListBuilder extends V1MutatingWebhookConfigurationListFluent implements VisitableBuilder{ + + V1MutatingWebhookConfigurationListFluent fluent; + public V1MutatingWebhookConfigurationListBuilder() { this(new V1MutatingWebhookConfigurationList()); } @@ -10,17 +14,16 @@ public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationL this(fluent, new V1MutatingWebhookConfigurationList()); } - public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationListFluent fluent,V1MutatingWebhookConfigurationList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationList instance) { this.fluent = this; this.copyInstance(instance); } - V1MutatingWebhookConfigurationListFluent fluent; + public V1MutatingWebhookConfigurationListBuilder(V1MutatingWebhookConfigurationListFluent fluent,V1MutatingWebhookConfigurationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1MutatingWebhookConfigurationList build() { V1MutatingWebhookConfigurationList buildable = new V1MutatingWebhookConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1MutatingWebhookConfigurationList build() { return buildable; } - } \ No newline at end of file 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..6864a24355 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1MutatingWebhookConfigurationListFluent> extends BaseFluent{ +public class V1MutatingWebhookConfigurationListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1MutatingWebhookConfigurationListFluent() { } public V1MutatingWebhookConfigurationListFluent(V1MutatingWebhookConfigurationList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1MutatingWebhookConfigurationList instance) { - instance = (instance != null ? instance : new V1MutatingWebhookConfigurationList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1MutatingWebhookConfiguration item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1MutatingWebhookConfiguration... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1MutatingWebhookConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1MutatingWebhookConfiguration buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1MutatingWebhookConfiguration buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { - if (this.items == null) return (A)this; - for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1MutatingWebhookConfiguration buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1MutatingWebhookConfiguration item : items) {V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1MutatingWebhookConfiguration buildMatchingItem(Predicate predicate) { + for (V1MutatingWebhookConfigurationBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1MutatingWebhookConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1MutatingWebhookConfigurationList instance) { + instance = instance != null ? instance : new V1MutatingWebhookConfigurationList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1MutatingWebhookConfiguration buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1MutatingWebhookConfiguration buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1MutatingWebhookConfiguration buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingWebhookConfigurationListFluent that = (V1MutatingWebhookConfigurationListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1MutatingWebhookConfiguration buildMatchingItem(Predicate predicate) { - for (V1MutatingWebhookConfigurationBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1MutatingWebhookConfiguration... items) { + if (this.items == null) { + return (A) this; + } + for (V1MutatingWebhookConfiguration item : items) { + V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1MutatingWebhookConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1MutatingWebhookConfiguration item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration... items) { + public A withItems(V1MutatingWebhookConfiguration... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1MutatingWebhookConfigur return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1MutatingWebhookConfiguration item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1MutatingWebhookConfiguration 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1MutatingWebhookConfigurationFluent> implements Nested{ - 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; - V1MutatingWebhookConfigurationListFluent that = (V1MutatingWebhookConfigurationListFluent) 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()); - } + V1MutatingWebhookConfigurationBuilder builder; + int index; - 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 V1MutatingWebhookConfigurationFluent> implements Nested{ ItemsNested(int index,V1MutatingWebhookConfiguration item) { this.index = index; this.builder = new V1MutatingWebhookConfigurationBuilder(this, item); } - V1MutatingWebhookConfigurationBuilder builder; - int index; - + public N and() { - return (N) V1MutatingWebhookConfigurationListFluent.this.setToItems(index,builder.build()); + return (N) V1MutatingWebhookConfigurationListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1MutatingWebhookConfigurationListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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..b3e8b973c2 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 @@ -1,29 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Integer; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1MutatingWebhookFluent> extends BaseFluent{ - public V1MutatingWebhookFluent() { - } - - public V1MutatingWebhookFluent(V1MutatingWebhook instance) { - this.copyInstance(instance); - } +public class V1MutatingWebhookFluent> extends BaseFluent{ + private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; private String failurePolicy; @@ -36,243 +34,450 @@ public V1MutatingWebhookFluent(V1MutatingWebhook instance) { private ArrayList rules; private String sideEffects; private Integer timeoutSeconds; + + public V1MutatingWebhookFluent() { + } - protected void copyInstance(V1MutatingWebhook instance) { - instance = (instance != null ? instance : new V1MutatingWebhook()); - if (instance != null) { - this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); - this.withClientConfig(instance.getClientConfig()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withName(instance.getName()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withReinvocationPolicy(instance.getReinvocationPolicy()); - this.withRules(instance.getRules()); - this.withSideEffects(instance.getSideEffects()); - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + public V1MutatingWebhookFluent(V1MutatingWebhook instance) { + this.copyInstance(instance); + } + + public A addAllToAdmissionReviewVersions(Collection items) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + 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 addAllToRules(Collection items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; + } + + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); + } + + public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public RulesNested addNewRule() { + return new RulesNested(-1, null); + } + + public RulesNested addNewRuleLike(V1RuleWithOperations item) { + return new RulesNested(-1, item); + } + + public A addToAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + return (A) this; } public A addToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } this.admissionReviewVersions.add(index, item); - return (A)this; + return (A) this; } - public A setToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - this.admissionReviewVersions.set(index, item); return (A)this; + public A addToMatchConditions(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 addToAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; + 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(builder); + matchConditions.add(index, builder); + } + return (A) this; } - public A addAllToAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; + public A addToRules(V1RuleWithOperations... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) return (A)this; - for (String item : items) { this.admissionReviewVersions.remove(item);} return (A)this; + 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(builder); + rules.add(index, builder); + } + return (A) this; } - public A removeAllFromAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) return (A)this; - for (String item : items) { this.admissionReviewVersions.remove(item);} return (A)this; + public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { + return this.clientConfig != null ? this.clientConfig.build() : null; } - public List getAdmissionReviewVersions() { - return this.admissionReviewVersions; + public V1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); } - public String getAdmissionReviewVersion(int index) { - return this.admissionReviewVersions.get(index); + public V1RuleWithOperations buildFirstRule() { + return this.rules.get(0).build(); } - public String getFirstAdmissionReviewVersion() { - return this.admissionReviewVersions.get(0); + public V1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); } - public String getLastAdmissionReviewVersion() { - return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); + public V1RuleWithOperations buildLastRule() { + return this.rules.get(rules.size() - 1).build(); } - public String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { + public V1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); + } + + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; + } + + public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { + public V1RuleWithOperations buildMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withAdmissionReviewVersions(List admissionReviewVersions) { - if (admissionReviewVersions != null) { - this.admissionReviewVersions = new ArrayList(); - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } - } else { - this.admissionReviewVersions = null; + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + } + + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; + } + + public V1RuleWithOperations buildRule(int index) { + return this.rules.get(index).build(); + } + + public List buildRules() { + return this.rules != null ? build(rules) : null; + } + + protected void copyInstance(V1MutatingWebhook instance) { + instance = instance != null ? instance : new V1MutatingWebhook(); + if (instance != null) { + this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); + this.withClientConfig(instance.getClientConfig()); + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withName(instance.getName()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withReinvocationPolicy(instance.getReinvocationPolicy()); + this.withRules(instance.getRules()); + this.withSideEffects(instance.getSideEffects()); + this.withTimeoutSeconds(instance.getTimeoutSeconds()); } - return (A) this; } - public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.clear(); - _visitables.remove("admissionReviewVersions"); + public ClientConfigNested editClientConfig() { + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); + } + + public MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); } - if (admissionReviewVersions != null) { - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); + } + + public RulesNested editFirstRule() { + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); } - return (A) this; + return this.setNewRuleLike(0, this.buildRule(0)); } - public boolean hasAdmissionReviewVersions() { - return this.admissionReviewVersions != null && !this.admissionReviewVersions.isEmpty(); + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { - this._visitables.remove("clientConfig"); - if (clientConfig != null) { - this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); - this._visitables.get("clientConfig").add(this.clientConfig); - } else { - this.clientConfig = null; - this._visitables.get("clientConfig").remove(this.clientConfig); + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); } - return (A) this; + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public boolean hasClientConfig() { - return this.clientConfig != null; + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchConditions.size();i++) { + if (predicate.test(matchConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public ClientConfigNested withNewClientConfig() { - return new ClientConfigNested(null); + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return new ClientConfigNested(item); + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public ClientConfigNested editClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(null)); + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } public ClientConfigNested editOrNewClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); } public ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(item)); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); + } + + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); + } + + public ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); + } + + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingWebhookFluent that = (V1MutatingWebhookFluent) o; + if (!(Objects.equals(admissionReviewVersions, that.admissionReviewVersions))) { + return false; + } + if (!(Objects.equals(clientConfig, that.clientConfig))) { + return false; + } + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; + } + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { + return false; + } + if (!(Objects.equals(rules, that.rules))) { + return false; + } + if (!(Objects.equals(sideEffects, that.sideEffects))) { + return false; + } + if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { + return false; + } + return true; + } + + public String getAdmissionReviewVersion(int index) { + return this.admissionReviewVersions.get(index); + } + + public List getAdmissionReviewVersions() { + return this.admissionReviewVersions; } public String getFailurePolicy() { return this.failurePolicy; } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - return (A) this; + public String getFirstAdmissionReviewVersion() { + return this.admissionReviewVersions.get(0); } - public boolean hasFailurePolicy() { - return this.failurePolicy != null; + public String getLastAdmissionReviewVersion() { + return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); } - 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);} - return (A)this; + public String getMatchPolicy() { + return this.matchPolicy; } - 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);} - return (A)this; + public String getMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - 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 String getName() { + return this.name; } - 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 String getReinvocationPolicy() { + return this.reinvocationPolicy; } - 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 String getSideEffects() { + return this.sideEffects; } - 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 Integer getTimeoutSeconds() { + return this.timeoutSeconds; } - 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 boolean hasAdmissionReviewVersions() { + return this.admissionReviewVersions != null && !(this.admissionReviewVersions.isEmpty()); } - public List buildMatchConditions() { - return this.matchConditions != null ? build(matchConditions) : null; + public boolean hasClientConfig() { + return this.clientConfig != null; } - public V1MatchCondition buildMatchCondition(int index) { - return this.matchConditions.get(index).build(); + public boolean hasFailurePolicy() { + return this.failurePolicy != null; } - public V1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } - public V1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); + public boolean hasMatchPolicy() { + return this.matchPolicy != null; } - public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1MatchConditionBuilder item : matchConditions) { + public boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingMatchCondition(Predicate predicate) { @@ -284,6 +489,301 @@ public boolean hasMatchingMatchCondition(Predicate pred return false; } + public boolean hasMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; + } + + public boolean hasObjectSelector() { + return this.objectSelector != null; + } + + public boolean hasReinvocationPolicy() { + return this.reinvocationPolicy != null; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + + public boolean hasSideEffects() { + return this.sideEffects != null; + } + + public boolean hasTimeoutSeconds() { + return this.timeoutSeconds != null; + } + + public int hashCode() { + return Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, reinvocationPolicy, rules, sideEffects, timeoutSeconds); + } + + public A removeAllFromAdmissionReviewVersions(Collection items) { + if (this.admissionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.admissionReviewVersions.remove(item); + } + 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 removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeFromAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.admissionReviewVersions.remove(item); + } + return (A) this; + } + + public A removeFromMatchConditions(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 removeFromRules(V1RuleWithOperations... items) { + if (this.rules == null) { + return (A) this; + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + 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 A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1RuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { + return new RulesNested(index, item); + } + + public A setToAdmissionReviewVersions(int index,String item) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + this.admissionReviewVersions.set(index, item); + 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 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").add(builder); + rules.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(admissionReviewVersions == null) && !(admissionReviewVersions.isEmpty())) { + sb.append("admissionReviewVersions:"); + sb.append(admissionReviewVersions); + sb.append(","); + } + if (!(clientConfig == null)) { + sb.append("clientConfig:"); + sb.append(clientConfig); + sb.append(","); + } + if (!(failurePolicy == null)) { + sb.append("failurePolicy:"); + sb.append(failurePolicy); + sb.append(","); + } + if (!(matchConditions == null) && !(matchConditions.isEmpty())) { + sb.append("matchConditions:"); + sb.append(matchConditions); + sb.append(","); + } + if (!(matchPolicy == null)) { + sb.append("matchPolicy:"); + sb.append(matchPolicy); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(objectSelector == null)) { + sb.append("objectSelector:"); + sb.append(objectSelector); + sb.append(","); + } + if (!(reinvocationPolicy == null)) { + sb.append("reinvocationPolicy:"); + sb.append(reinvocationPolicy); + sb.append(","); + } + if (!(rules == null) && !(rules.isEmpty())) { + sb.append("rules:"); + sb.append(rules); + sb.append(","); + } + if (!(sideEffects == null)) { + sb.append("sideEffects:"); + sb.append(sideEffects); + sb.append(","); + } + if (!(timeoutSeconds == null)) { + sb.append("timeoutSeconds:"); + sb.append(timeoutSeconds); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdmissionReviewVersions(List admissionReviewVersions) { + if (admissionReviewVersions != null) { + this.admissionReviewVersions = new ArrayList(); + for (String item : admissionReviewVersions) { + this.addToAdmissionReviewVersions(item); + } + } else { + this.admissionReviewVersions = null; + } + return (A) this; + } + + public A withAdmissionReviewVersions(String... admissionReviewVersions) { + if (this.admissionReviewVersions != null) { + this.admissionReviewVersions.clear(); + _visitables.remove("admissionReviewVersions"); + } + if (admissionReviewVersions != null) { + for (String item : admissionReviewVersions) { + this.addToAdmissionReviewVersions(item); + } + } + return (A) this; + } + + public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { + this._visitables.remove("clientConfig"); + if (clientConfig != null) { + this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); + this._visitables.get("clientConfig").add(this.clientConfig); + } else { + this.clientConfig = null; + this._visitables.get("clientConfig").remove(this.clientConfig); + } + return (A) this; + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + public A withMatchConditions(List matchConditions) { if (this.matchConditions != null) { this._visitables.get("matchConditions").clear(); @@ -299,7 +799,7 @@ public A withMatchConditions(List matchConditions) { return (A) this; } - public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... matchConditions) { + public A withMatchConditions(V1MatchCondition... matchConditions) { if (this.matchConditions != null) { this.matchConditions.clear(); _visitables.remove("matchConditions"); @@ -312,77 +812,16 @@ public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchConditio 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 withNewClientConfig() { + return new ClientConfigNested(null); + } + + public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { + return new ClientConfigNested(item); } public NamespaceSelectorNested withNewNamespaceSelector() { @@ -407,20 +850,12 @@ public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector i 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 ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); } public A withObjectSelector(V1LabelSelector objectSelector) { @@ -435,125 +870,11 @@ public A withObjectSelector(V1LabelSelector 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 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 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);} - 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);} - return (A)this; - } - - public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(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 (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; - } - - public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) return (A)this; - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(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 (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(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()) { - V1RuleWithOperationsBuilder 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 V1RuleWithOperations buildRule(int index) { - return this.rules.get(index).build(); - } - - public V1RuleWithOperations buildFirstRule() { - return this.rules.get(0).build(); - } - - public V1RuleWithOperations buildLastRule() { - return this.rules.get(rules.size() - 1).build(); - } - - public V1RuleWithOperations buildMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - public A withRules(List rules) { if (this.rules != null) { this._visitables.get("rules").clear(); @@ -569,7 +890,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules) { + public A withRules(V1RuleWithOperations... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -582,121 +903,23 @@ public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... r return (A) this; } - public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); - } - - public RulesNested addNewRule() { - return new RulesNested(-1, null); - } - - public RulesNested addNewRuleLike(V1RuleWithOperations item) { - return new RulesNested(-1, item); - } - - public RulesNested setNewRuleLike(int index,V1RuleWithOperations 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 AdmissionregistrationV1WebhookClientConfigFluent> implements Nested{ - public boolean hasTimeoutSeconds() { - return this.timeoutSeconds != 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; - V1MutatingWebhookFluent that = (V1MutatingWebhookFluent) o; - if (!java.util.Objects.equals(admissionReviewVersions, that.admissionReviewVersions)) return false; - if (!java.util.Objects.equals(clientConfig, that.clientConfig)) return false; - if (!java.util.Objects.equals(failurePolicy, that.failurePolicy)) return false; - if (!java.util.Objects.equals(matchConditions, that.matchConditions)) return false; - if (!java.util.Objects.equals(matchPolicy, that.matchPolicy)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespaceSelector, that.namespaceSelector)) return false; - if (!java.util.Objects.equals(objectSelector, that.objectSelector)) return false; - if (!java.util.Objects.equals(reinvocationPolicy, that.reinvocationPolicy)) return false; - if (!java.util.Objects.equals(rules, that.rules)) return false; - if (!java.util.Objects.equals(sideEffects, that.sideEffects)) return false; - if (!java.util.Objects.equals(timeoutSeconds, that.timeoutSeconds)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, reinvocationPolicy, rules, sideEffects, timeoutSeconds, super.hashCode()); - } + AdmissionregistrationV1WebhookClientConfigBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (admissionReviewVersions != null && !admissionReviewVersions.isEmpty()) { sb.append("admissionReviewVersions:"); sb.append(admissionReviewVersions + ","); } - if (clientConfig != null) { sb.append("clientConfig:"); sb.append(clientConfig + ","); } - if (failurePolicy != null) { sb.append("failurePolicy:"); sb.append(failurePolicy + ","); } - if (matchConditions != null && !matchConditions.isEmpty()) { sb.append("matchConditions:"); sb.append(matchConditions + ","); } - if (matchPolicy != null) { sb.append("matchPolicy:"); sb.append(matchPolicy + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespaceSelector != null) { sb.append("namespaceSelector:"); sb.append(namespaceSelector + ","); } - if (objectSelector != null) { sb.append("objectSelector:"); sb.append(objectSelector + ","); } - if (reinvocationPolicy != null) { sb.append("reinvocationPolicy:"); sb.append(reinvocationPolicy + ","); } - if (rules != null && !rules.isEmpty()) { sb.append("rules:"); sb.append(rules + ","); } - if (sideEffects != null) { sb.append("sideEffects:"); sb.append(sideEffects + ","); } - if (timeoutSeconds != null) { sb.append("timeoutSeconds:"); sb.append(timeoutSeconds); } - sb.append("}"); - return sb.toString(); - } - public class ClientConfigNested extends AdmissionregistrationV1WebhookClientConfigFluent> implements Nested{ ClientConfigNested(AdmissionregistrationV1WebhookClientConfig item) { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this, item); } - AdmissionregistrationV1WebhookClientConfigBuilder builder; - + public N and() { return (N) V1MutatingWebhookFluent.this.withClientConfig(builder.build()); } @@ -705,32 +928,34 @@ public N endClientConfig() { return and(); } - } public class MatchConditionsNested extends V1MatchConditionFluent> implements Nested{ + + V1MatchConditionBuilder builder; + int index; + MatchConditionsNested(int index,V1MatchCondition item) { this.index = index; this.builder = new V1MatchConditionBuilder(this, item); } - V1MatchConditionBuilder builder; - int index; - + public N and() { - return (N) V1MutatingWebhookFluent.this.setToMatchConditions(index,builder.build()); + return (N) V1MutatingWebhookFluent.this.setToMatchConditions(index, builder.build()); } public N endMatchCondition() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1MutatingWebhookFluent.this.withNamespaceSelector(builder.build()); } @@ -739,14 +964,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1MutatingWebhookFluent.this.withObjectSelector(builder.build()); } @@ -755,25 +981,24 @@ public N endObjectSelector() { return and(); } - } public class RulesNested extends V1RuleWithOperationsFluent> implements Nested{ + + V1RuleWithOperationsBuilder builder; + int index; + RulesNested(int index,V1RuleWithOperations item) { this.index = index; this.builder = new V1RuleWithOperationsBuilder(this, item); } - V1RuleWithOperationsBuilder builder; - int index; - + public N and() { - return (N) V1MutatingWebhookFluent.this.setToRules(index,builder.build()); + return (N) V1MutatingWebhookFluent.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/V1NFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java index eec568ae18..aa47afdf12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NFSVolumeSourceBuilder extends V1NFSVolumeSourceFluent implements VisitableBuilder{ + + V1NFSVolumeSourceFluent fluent; + public V1NFSVolumeSourceBuilder() { this(new V1NFSVolumeSource()); } @@ -10,17 +14,16 @@ public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent) { this(fluent, new V1NFSVolumeSource()); } - public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent,V1NFSVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NFSVolumeSourceBuilder(V1NFSVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1NFSVolumeSourceFluent fluent; + public V1NFSVolumeSourceBuilder(V1NFSVolumeSourceFluent fluent,V1NFSVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NFSVolumeSource build() { V1NFSVolumeSource buildable = new V1NFSVolumeSource(); buildable.setPath(fluent.getPath()); @@ -29,5 +32,4 @@ public V1NFSVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java index 0e3d89bfcc..912ca50929 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java @@ -1,102 +1,128 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NFSVolumeSourceFluent> extends BaseFluent{ +public class V1NFSVolumeSourceFluent> extends BaseFluent{ + + private String path; + private Boolean readOnly; + private String server; + public V1NFSVolumeSourceFluent() { } public V1NFSVolumeSourceFluent(V1NFSVolumeSource instance) { this.copyInstance(instance); } - private String path; - private Boolean readOnly; - private String server; - + protected void copyInstance(V1NFSVolumeSource instance) { - instance = (instance != null ? instance : new V1NFSVolumeSource()); + instance = instance != null ? instance : new V1NFSVolumeSource(); if (instance != null) { - this.withPath(instance.getPath()); - this.withReadOnly(instance.getReadOnly()); - this.withServer(instance.getServer()); - } - } - - public String getPath() { - return this.path; + this.withPath(instance.getPath()); + this.withReadOnly(instance.getReadOnly()); + this.withServer(instance.getServer()); + } } - public A withPath(String path) { - this.path = path; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NFSVolumeSourceFluent that = (V1NFSVolumeSourceFluent) o; + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(server, that.server))) { + return false; + } + return true; } - public boolean hasPath() { - return this.path != null; + public String getPath() { + return this.path; } 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 getServer() { return this.server; } - public A withServer(String server) { - this.server = server; - return (A) this; + public boolean hasPath() { + return this.path != null; } - public boolean hasServer() { - return this.server != null; + public boolean hasReadOnly() { + return this.readOnly != 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; - V1NFSVolumeSourceFluent that = (V1NFSVolumeSourceFluent) o; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(server, that.server)) return false; - return true; + public boolean hasServer() { + return this.server != null; } public int hashCode() { - return java.util.Objects.hash(path, readOnly, server, super.hashCode()); + return Objects.hash(path, readOnly, server); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (server != null) { sb.append("server:"); sb.append(server); } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(server == null)) { + sb.append("server:"); + sb.append(server); + } sb.append("}"); return sb.toString(); } + public A withPath(String path) { + this.path = path; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withServer(String server) { + this.server = server; + return (A) this; + } + } \ No newline at end of file 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 index 7b7592469d..fd5217c743 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamedRuleWithOperationsBuilder extends V1NamedRuleWithOperationsFluent implements VisitableBuilder{ + + V1NamedRuleWithOperationsFluent fluent; + public V1NamedRuleWithOperationsBuilder() { this(new V1NamedRuleWithOperations()); } @@ -10,17 +14,16 @@ public V1NamedRuleWithOperationsBuilder(V1NamedRuleWithOperationsFluent fluen 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 V1NamedRuleWithOperationsBuilder(V1NamedRuleWithOperationsFluent fluent,V1NamedRuleWithOperations instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamedRuleWithOperations build() { V1NamedRuleWithOperations buildable = new V1NamedRuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); @@ -32,5 +35,4 @@ public V1NamedRuleWithOperations build() { 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 index d76ebb3c3e..c892be5f83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java @@ -1,91 +1,276 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NamedRuleWithOperationsFluent> extends BaseFluent{ - public V1NamedRuleWithOperationsFluent() { - } - - public V1NamedRuleWithOperationsFluent(V1NamedRuleWithOperations instance) { - this.copyInstance(instance); - } +public class V1NamedRuleWithOperationsFluent> extends BaseFluent{ + private List apiGroups; private List apiVersions; private List operations; private List resourceNames; private List resources; private String scope; + + public V1NamedRuleWithOperationsFluent() { + } - 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 V1NamedRuleWithOperationsFluent(V1NamedRuleWithOperations instance) { + this.copyInstance(instance); + } + + 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 addAllToApiVersions(Collection items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.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 addAllToResourceNames(Collection items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.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 addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + 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 addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(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 addToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.add(index, 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 addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.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 addToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.add(index, 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 A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } - public List getApiGroups() { - return this.apiGroups; + 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 addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; + } + + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.add(index, item); + return (A) this; + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NamedRuleWithOperationsFluent that = (V1NamedRuleWithOperationsFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + return true; } public String getApiGroup(int index) { return this.apiGroups.get(index); } + public List getApiGroups() { + return this.apiGroups; + } + + public String getApiVersion(int index) { + return this.apiVersions.get(index); + } + + public List getApiVersions() { + return this.apiVersions; + } + public String getFirstApiGroup() { return this.apiGroups.get(0); } + public String getFirstApiVersion() { + return this.apiVersions.get(0); + } + + public String getFirstOperation() { + return this.operations.get(0); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getFirstResourceName() { + return this.resourceNames.get(0); + } + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } + public String getLastApiVersion() { + return this.apiVersions.get(apiVersions.size() - 1); + } + + public String getLastOperation() { + return this.operations.get(operations.size() - 1); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); + } + public String getMatchingApiGroup(Predicate predicate) { for (String item : apiGroups) { if (predicate.test(item)) { @@ -95,6 +280,78 @@ public String getMatchingApiGroup(Predicate predicate) { return null; } + public String getMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getOperation(int index) { + return this.operations.get(index); + } + + public List getOperations() { + return this.operations; + } + + public String getResource(int index) { + return this.resources.get(index); + } + + public String getResourceName(int index) { + return this.resourceNames.get(index); + } + + public List getResourceNames() { + return this.resourceNames; + } + + public List getResources() { + return this.resources; + } + + public String getScope() { + return this.scope; + } + + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); + } + + public boolean hasApiVersions() { + return this.apiVersions != null && !(this.apiVersions.isEmpty()); + } + public boolean hasMatchingApiGroup(Predicate predicate) { for (String item : apiGroups) { if (predicate.test(item)) { @@ -104,6 +361,238 @@ public boolean hasMatchingApiGroup(Predicate predicate) { return false; } + public boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOperations() { + return this.operations != null && !(this.operations.isEmpty()); + } + + public boolean hasResourceNames() { + return this.resourceNames != null && !(this.resourceNames.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public boolean hasScope() { + return this.scope != null; + } + + public int hashCode() { + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.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 A removeAllFromOperations(Collection items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.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 A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; + } + + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; + } + + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; + } + + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; + } + + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; + } + + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(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 setToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(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 setToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(apiVersions == null) && !(apiVersions.isEmpty())) { + sb.append("apiVersions:"); + sb.append(apiVersions); + sb.append(","); + } + if (!(operations == null) && !(operations.isEmpty())) { + sb.append("operations:"); + sb.append(operations); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } + sb.append("}"); + return sb.toString(); + } + public A withApiGroups(List apiGroups) { if (apiGroups != null) { this.apiGroups = new ArrayList(); @@ -116,7 +605,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -129,75 +618,6 @@ public A withApiGroups(java.lang.String... apiGroups) { 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(); @@ -210,7 +630,7 @@ public A withApiVersions(List apiVersions) { return (A) this; } - public A withApiVersions(java.lang.String... apiVersions) { + public A withApiVersions(String... apiVersions) { if (this.apiVersions != null) { this.apiVersions.clear(); _visitables.remove("apiVersions"); @@ -223,75 +643,6 @@ public A withApiVersions(java.lang.String... apiVersions) { 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(); @@ -304,7 +655,7 @@ public A withOperations(List operations) { return (A) this; } - public A withOperations(java.lang.String... operations) { + public A withOperations(String... operations) { if (this.operations != null) { this.operations.clear(); _visitables.remove("operations"); @@ -317,75 +668,6 @@ public A withOperations(java.lang.String... operations) { 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(); @@ -398,7 +680,7 @@ public A withResourceNames(List resourceNames) { return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { + public A withResourceNames(String... resourceNames) { if (this.resourceNames != null) { this.resourceNames.clear(); _visitables.remove("resourceNames"); @@ -411,75 +693,6 @@ public A withResourceNames(java.lang.String... resourceNames) { 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(); @@ -492,7 +705,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -505,53 +718,9 @@ public A withResources(java.lang.String... resources) { 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/V1NamespaceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java index 8a99993529..848ed9639a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceBuilder extends V1NamespaceFluent implements VisitableBuilder{ + + V1NamespaceFluent fluent; + public V1NamespaceBuilder() { this(new V1Namespace()); } @@ -10,17 +14,16 @@ public V1NamespaceBuilder(V1NamespaceFluent fluent) { this(fluent, new V1Namespace()); } - public V1NamespaceBuilder(V1NamespaceFluent fluent,V1Namespace instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceBuilder(V1Namespace instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceFluent fluent; + public V1NamespaceBuilder(V1NamespaceFluent fluent,V1Namespace instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Namespace build() { V1Namespace buildable = new V1Namespace(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1Namespace build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java index ad14a9ad29..705feef2cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceConditionBuilder extends V1NamespaceConditionFluent implements VisitableBuilder{ + + V1NamespaceConditionFluent fluent; + public V1NamespaceConditionBuilder() { this(new V1NamespaceCondition()); } @@ -10,17 +14,16 @@ public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent) { this(fluent, new V1NamespaceCondition()); } - public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent,V1NamespaceCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceConditionBuilder(V1NamespaceCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceConditionFluent fluent; + public V1NamespaceConditionBuilder(V1NamespaceConditionFluent fluent,V1NamespaceCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamespaceCondition build() { V1NamespaceCondition buildable = new V1NamespaceCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -31,5 +34,4 @@ public V1NamespaceCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java index f63f11dfa7..fd418eb41f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java @@ -1,132 +1,170 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceConditionFluent> extends BaseFluent{ - public V1NamespaceConditionFluent() { - } - - public V1NamespaceConditionFluent(V1NamespaceCondition instance) { - this.copyInstance(instance); - } +public class V1NamespaceConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1NamespaceConditionFluent() { + } + public V1NamespaceConditionFluent(V1NamespaceCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1NamespaceCondition instance) { - instance = (instance != null ? instance : new V1NamespaceCondition()); + instance = instance != null ? instance : new V1NamespaceCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NamespaceConditionFluent that = (V1NamespaceConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getStatus() { + return this.status; } - public String getReason() { - return this.reason; + public String getType() { + return this.type; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1NamespaceConditionFluent that = (V1NamespaceConditionFluent) 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 A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withStatus(String status) { + this.status = status; + return (A) this; } - 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(); + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java index 0e07895cc1..bef7591c43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceFluent> extends BaseFluent{ +public class V1NamespaceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1NamespaceSpecBuilder spec; + private V1NamespaceStatusBuilder status; + public V1NamespaceFluent() { } public V1NamespaceFluent(V1Namespace instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1NamespaceSpecBuilder spec; - private V1NamespaceStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1NamespaceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1NamespaceStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1Namespace instance) { - instance = (instance != null ? instance : new V1Namespace()); + instance = instance != null ? instance : new V1Namespace(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1NamespaceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1NamespaceSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1NamespaceStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1NamespaceStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NamespaceFluent that = (V1NamespaceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1NamespaceSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1NamespaceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1NamespaceStatus item) { + return new StatusNested(item); } public A withSpec(V1NamespaceSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1NamespaceSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1NamespaceSpec 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 V1NamespaceSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1NamespaceSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1NamespaceStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1NamespaceStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1NamespaceStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1NamespaceStatus 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 V1NamespaceStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1NamespaceStatus 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; - V1NamespaceFluent that = (V1NamespaceFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1NamespaceFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1NamespaceSpecFluent> implements Nested{ + + V1NamespaceSpecBuilder builder; + SpecNested(V1NamespaceSpec item) { this.builder = new V1NamespaceSpecBuilder(this, item); } - V1NamespaceSpecBuilder builder; - + public N and() { return (N) V1NamespaceFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1NamespaceStatusFluent> implements Nested{ + + V1NamespaceStatusBuilder builder; + StatusNested(V1NamespaceStatus item) { this.builder = new V1NamespaceStatusBuilder(this, item); } - V1NamespaceStatusBuilder builder; - + public N and() { return (N) V1NamespaceFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java index 9b8899945a..a55f5f81b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceListBuilder extends V1NamespaceListFluent implements VisitableBuilder{ + + V1NamespaceListFluent fluent; + public V1NamespaceListBuilder() { this(new V1NamespaceList()); } @@ -10,17 +14,16 @@ public V1NamespaceListBuilder(V1NamespaceListFluent fluent) { this(fluent, new V1NamespaceList()); } - public V1NamespaceListBuilder(V1NamespaceListFluent fluent,V1NamespaceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceListBuilder(V1NamespaceList instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceListFluent fluent; + public V1NamespaceListBuilder(V1NamespaceListFluent fluent,V1NamespaceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamespaceList build() { V1NamespaceList buildable = new V1NamespaceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1NamespaceList build() { return buildable; } - } \ 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..7502745d5f 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceListFluent> extends BaseFluent{ +public class V1NamespaceListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1NamespaceListFluent() { } public V1NamespaceListFluent(V1NamespaceList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1NamespaceList instance) { - instance = (instance != null ? instance : new V1NamespaceList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Namespace item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Namespace... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Namespace item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Namespace buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Namespace... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Namespace buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Namespace... items) { - if (this.items == null) return (A)this; - for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Namespace buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Namespace item : items) {V1NamespaceBuilder builder = new V1NamespaceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Namespace buildMatchingItem(Predicate predicate) { + for (V1NamespaceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1NamespaceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1NamespaceList instance) { + instance = instance != null ? instance : new V1NamespaceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Namespace buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Namespace buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Namespace buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NamespaceListFluent that = (V1NamespaceListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Namespace buildMatchingItem(Predicate predicate) { - for (V1NamespaceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Namespace... items) { + if (this.items == null) { + return (A) this; + } + for (V1Namespace item : items) { + V1NamespaceBuilder builder = new V1NamespaceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1NamespaceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Namespace item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Namespace... items) { + public A withItems(V1Namespace... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Namespace... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Namespace item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Namespace 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1NamespaceFluent> implements Nested{ - 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; - V1NamespaceListFluent that = (V1NamespaceListFluent) 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()); - } + V1NamespaceBuilder builder; + int index; - 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 V1NamespaceFluent> implements Nested{ ItemsNested(int index,V1Namespace item) { this.index = index; this.builder = new V1NamespaceBuilder(this, item); } - V1NamespaceBuilder builder; - int index; - + public N and() { - return (N) V1NamespaceListFluent.this.setToItems(index,builder.build()); + return (N) V1NamespaceListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1NamespaceListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java index cd7d90b327..93054a43dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceSpecBuilder extends V1NamespaceSpecFluent implements VisitableBuilder{ + + V1NamespaceSpecFluent fluent; + public V1NamespaceSpecBuilder() { this(new V1NamespaceSpec()); } @@ -10,22 +14,20 @@ public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent) { this(fluent, new V1NamespaceSpec()); } - public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent,V1NamespaceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceSpecBuilder(V1NamespaceSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceSpecFluent fluent; + public V1NamespaceSpecBuilder(V1NamespaceSpecFluent fluent,V1NamespaceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamespaceSpec build() { V1NamespaceSpec buildable = new V1NamespaceSpec(); buildable.setFinalizers(fluent.getFinalizers()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java index 28a44d6c74..07fd1eb7e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java @@ -1,73 +1,91 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceSpecFluent> extends BaseFluent{ +public class V1NamespaceSpecFluent> extends BaseFluent{ + + private List finalizers; + public V1NamespaceSpecFluent() { } public V1NamespaceSpecFluent(V1NamespaceSpec instance) { this.copyInstance(instance); } - private List finalizers; + + public A addAllToFinalizers(Collection items) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + for (String item : items) { + this.finalizers.add(item); + } + return (A) this; + } - protected void copyInstance(V1NamespaceSpec instance) { - instance = (instance != null ? instance : new V1NamespaceSpec()); - if (instance != null) { - this.withFinalizers(instance.getFinalizers()); - } + public A addToFinalizers(String... items) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + for (String item : items) { + this.finalizers.add(item); + } + return (A) this; } public A addToFinalizers(int index,String item) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } this.finalizers.add(index, item); - return (A)this; - } - - public A setToFinalizers(int index,String item) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - this.finalizers.set(index, item); return (A)this; - } - - public A addToFinalizers(java.lang.String... items) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - for (String item : items) {this.finalizers.add(item);} return (A)this; + return (A) this; } - public A addAllToFinalizers(Collection items) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - for (String item : items) {this.finalizers.add(item);} return (A)this; + protected void copyInstance(V1NamespaceSpec instance) { + instance = instance != null ? instance : new V1NamespaceSpec(); + if (instance != null) { + this.withFinalizers(instance.getFinalizers()); + } } - public A removeFromFinalizers(java.lang.String... items) { - if (this.finalizers == null) return (A)this; - for (String item : items) { this.finalizers.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NamespaceSpecFluent that = (V1NamespaceSpecFluent) o; + if (!(Objects.equals(finalizers, that.finalizers))) { + return false; + } + return true; } - public A removeAllFromFinalizers(Collection items) { - if (this.finalizers == null) return (A)this; - for (String item : items) { this.finalizers.remove(item);} return (A)this; + public String getFinalizer(int index) { + return this.finalizers.get(index); } public List getFinalizers() { return this.finalizers; } - public String getFinalizer(int index) { - return this.finalizers.get(index); - } - public String getFirstFinalizer() { return this.finalizers.get(0); } @@ -85,6 +103,10 @@ public String getMatchingFinalizer(Predicate predicate) { return null; } + public boolean hasFinalizers() { + return this.finalizers != null && !(this.finalizers.isEmpty()); + } + public boolean hasMatchingFinalizer(Predicate predicate) { for (String item : finalizers) { if (predicate.test(item)) { @@ -94,6 +116,49 @@ public boolean hasMatchingFinalizer(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(finalizers); + } + + public A removeAllFromFinalizers(Collection items) { + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; + } + + public A removeFromFinalizers(String... items) { + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; + } + + public A setToFinalizers(int index,String item) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + this.finalizers.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(finalizers == null) && !(finalizers.isEmpty())) { + sb.append("finalizers:"); + sb.append(finalizers); + } + sb.append("}"); + return sb.toString(); + } + public A withFinalizers(List finalizers) { if (finalizers != null) { this.finalizers = new ArrayList(); @@ -106,7 +171,7 @@ public A withFinalizers(List finalizers) { return (A) this; } - public A withFinalizers(java.lang.String... finalizers) { + public A withFinalizers(String... finalizers) { if (this.finalizers != null) { this.finalizers.clear(); _visitables.remove("finalizers"); @@ -119,30 +184,4 @@ public A withFinalizers(java.lang.String... finalizers) { return (A) this; } - public boolean hasFinalizers() { - return this.finalizers != null && !this.finalizers.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; - V1NamespaceSpecFluent that = (V1NamespaceSpecFluent) o; - if (!java.util.Objects.equals(finalizers, that.finalizers)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(finalizers, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (finalizers != null && !finalizers.isEmpty()) { sb.append("finalizers:"); sb.append(finalizers); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java index 88bc412236..f4000ea6d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NamespaceStatusBuilder extends V1NamespaceStatusFluent implements VisitableBuilder{ + + V1NamespaceStatusFluent fluent; + public V1NamespaceStatusBuilder() { this(new V1NamespaceStatus()); } @@ -10,17 +14,16 @@ public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent) { this(fluent, new V1NamespaceStatus()); } - public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent,V1NamespaceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NamespaceStatusBuilder(V1NamespaceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1NamespaceStatusFluent fluent; + public V1NamespaceStatusBuilder(V1NamespaceStatusFluent fluent,V1NamespaceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NamespaceStatus build() { V1NamespaceStatus buildable = new V1NamespaceStatus(); buildable.setConditions(fluent.buildConditions()); @@ -28,5 +31,4 @@ public V1NamespaceStatus build() { return buildable; } - } \ No newline at end of file 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..310cc515f7 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 @@ -1,95 +1,90 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NamespaceStatusFluent> extends BaseFluent{ +public class V1NamespaceStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private String phase; + public V1NamespaceStatusFluent() { } public V1NamespaceStatusFluent(V1NamespaceStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - private String phase; - - protected void copyInstance(V1NamespaceStatus instance) { - instance = (instance != null ? instance : new V1NamespaceStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withPhase(instance.getPhase()); - } - } - - 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);} - 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);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(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 (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... items) { - if (this.conditions == null) return (A)this; - for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1NamespaceCondition item : items) {V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public ConditionsNested addNewConditionLike(V1NamespaceCondition item) { + return new ConditionsNested(-1, item); } - 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()) { - V1NamespaceConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToConditions(V1NamespaceCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); } - return (A)this; + return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + 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(builder); + conditions.add(index, builder); + } + return (A) this; } public V1NamespaceCondition buildCondition(int index) { return this.conditions.get(index).build(); } + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + public V1NamespaceCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -107,136 +102,219 @@ public V1NamespaceCondition buildMatchingCondition(Predicate predicate) { - for (V1NamespaceConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1NamespaceStatus instance) { + instance = instance != null ? instance : new V1NamespaceStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withPhase(instance.getPhase()); + } } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1NamespaceCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A withConditions(io.kubernetes.client.openapi.models.V1NamespaceCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1NamespaceCondition item : conditions) { - this.addToConditions(item); - } + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(0, this.buildCondition(0)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested addNewConditionLike(V1NamespaceCondition item) { - return new ConditionsNested(-1, item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NamespaceStatusFluent that = (V1NamespaceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } + return true; } - public ConditionsNested setNewConditionLike(int index,V1NamespaceCondition item) { - return new ConditionsNested(index, item); + public String getPhase() { + return this.phase; } - 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 boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - 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 boolean hasMatchingCondition(Predicate predicate) { + for (V1NamespaceConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 boolean hasPhase() { + return this.phase != null; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i items) { + if (this.conditions == null) { + return (A) this; + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public A withPhase(String phase) { - this.phase = phase; + public A removeFromConditions(V1NamespaceCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1NamespaceCondition item : items) { + V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasPhase() { - return this.phase != null; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1NamespaceConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1NamespaceStatusFluent that = (V1NamespaceStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(phase, that.phase)) return false; - return true; + public ConditionsNested setNewConditionLike(int index,V1NamespaceCondition item) { + return new ConditionsNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(conditions, phase, super.hashCode()); + 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").add(builder); + conditions.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (phase != null) { sb.append("phase:"); sb.append(phase); } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + } sb.append("}"); return sb.toString(); } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1NamespaceCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1NamespaceCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1NamespaceCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withPhase(String phase) { + this.phase = phase; + return (A) this; + } public class ConditionsNested extends V1NamespaceConditionFluent> implements Nested{ + + V1NamespaceConditionBuilder builder; + int index; + ConditionsNested(int index,V1NamespaceCondition item) { this.index = index; this.builder = new V1NamespaceConditionBuilder(this, item); } - V1NamespaceConditionBuilder builder; - int index; - + public N and() { - return (N) V1NamespaceStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1NamespaceStatusFluent.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/V1NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java new file mode 100644 index 0000000000..d3cb0a3365 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1NetworkDeviceDataBuilder extends V1NetworkDeviceDataFluent implements VisitableBuilder{ + + V1NetworkDeviceDataFluent fluent; + + public V1NetworkDeviceDataBuilder() { + this(new V1NetworkDeviceData()); + } + + public V1NetworkDeviceDataBuilder(V1NetworkDeviceDataFluent fluent) { + this(fluent, new V1NetworkDeviceData()); + } + + public V1NetworkDeviceDataBuilder(V1NetworkDeviceData instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NetworkDeviceDataBuilder(V1NetworkDeviceDataFluent fluent,V1NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NetworkDeviceData build() { + V1NetworkDeviceData buildable = new V1NetworkDeviceData(); + 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/V1NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java new file mode 100644 index 0000000000..80fa83fa01 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java @@ -0,0 +1,233 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NetworkDeviceDataFluent> extends BaseFluent{ + + private String hardwareAddress; + private String interfaceName; + private List ips; + + public V1NetworkDeviceDataFluent() { + } + + public V1NetworkDeviceDataFluent(V1NetworkDeviceData instance) { + this.copyInstance(instance); + } + + 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 addToIps(String... items) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + for (String item : items) { + this.ips.add(item); + } + return (A) this; + } + + public A addToIps(int index,String item) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + this.ips.add(index, item); + return (A) this; + } + + protected void copyInstance(V1NetworkDeviceData instance) { + instance = instance != null ? instance : new V1NetworkDeviceData(); + if (instance != null) { + this.withHardwareAddress(instance.getHardwareAddress()); + this.withInterfaceName(instance.getInterfaceName()); + this.withIps(instance.getIps()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkDeviceDataFluent that = (V1NetworkDeviceDataFluent) o; + if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { + return false; + } + if (!(Objects.equals(interfaceName, that.interfaceName))) { + return false; + } + if (!(Objects.equals(ips, that.ips))) { + return false; + } + return true; + } + + public String getFirstIp() { + return this.ips.get(0); + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public String getInterfaceName() { + return this.interfaceName; + } + + public String getIp(int index) { + return this.ips.get(index); + } + + public List getIps() { + return this.ips; + } + + 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 hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public boolean hasIps() { + return this.ips != null && !(this.ips.isEmpty()); + } + + public boolean hasMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(hardwareAddress, interfaceName, ips); + } + + public A removeAllFromIps(Collection items) { + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(item); + } + return (A) this; + } + + public A removeFromIps(String... items) { + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hardwareAddress == null)) { + sb.append("hardwareAddress:"); + sb.append(hardwareAddress); + sb.append(","); + } + if (!(interfaceName == null)) { + sb.append("interfaceName:"); + sb.append(interfaceName); + sb.append(","); + } + if (!(ips == null) && !(ips.isEmpty())) { + sb.append("ips:"); + sb.append(ips); + } + sb.append("}"); + return sb.toString(); + } + + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + 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(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; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java index 773809aa29..c8896770c3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyBuilder extends V1NetworkPolicyFluent implements VisitableBuilder{ + + V1NetworkPolicyFluent fluent; + public V1NetworkPolicyBuilder() { this(new V1NetworkPolicy()); } @@ -10,17 +14,16 @@ public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent) { this(fluent, new V1NetworkPolicy()); } - public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent,V1NetworkPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyBuilder(V1NetworkPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyFluent fluent; + public V1NetworkPolicyBuilder(V1NetworkPolicyFluent fluent,V1NetworkPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicy build() { V1NetworkPolicy buildable = new V1NetworkPolicy(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1NetworkPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java index 8a095c6d16..82a3c45b55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyEgressRuleBuilder extends V1NetworkPolicyEgressRuleFluent implements VisitableBuilder{ + + V1NetworkPolicyEgressRuleFluent fluent; + public V1NetworkPolicyEgressRuleBuilder() { this(new V1NetworkPolicyEgressRule()); } @@ -10,17 +14,16 @@ public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluen this(fluent, new V1NetworkPolicyEgressRule()); } - public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluent,V1NetworkPolicyEgressRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRule instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyEgressRuleFluent fluent; + public V1NetworkPolicyEgressRuleBuilder(V1NetworkPolicyEgressRuleFluent fluent,V1NetworkPolicyEgressRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyEgressRule build() { V1NetworkPolicyEgressRule buildable = new V1NetworkPolicyEgressRule(); buildable.setPorts(fluent.buildPorts()); @@ -28,5 +31,4 @@ public V1NetworkPolicyEgressRule build() { return buildable; } - } \ No newline at end of file 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..2bd4f35ef0 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 @@ -1,103 +1,145 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyEgressRuleFluent> extends BaseFluent{ +public class V1NetworkPolicyEgressRuleFluent> extends BaseFluent{ + + private ArrayList ports; + private ArrayList to; + public V1NetworkPolicyEgressRuleFluent() { } public V1NetworkPolicyEgressRuleFluent(V1NetworkPolicyEgressRule instance) { this.copyInstance(instance); } - private ArrayList ports; - private ArrayList to; - - protected void copyInstance(V1NetworkPolicyEgressRule instance) { - instance = (instance != null ? instance : new V1NetworkPolicyEgressRule()); - if (instance != null) { - this.withPorts(instance.getPorts()); - this.withTo(instance.getTo()); - } + + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public A addAllToTo(Collection items) { + if (this.to == null) { + this.to = new ArrayList(); + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").add(builder); + this.to.add(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);} - return (A)this; + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public PortsNested addNewPortLike(V1NetworkPolicyPort item) { + return new PortsNested(-1, item); } - public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public ToNested addNewTo() { + return new ToNested(-1, null); } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) return (A)this; - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public ToNested addNewToLike(V1NetworkPolicyPeer item) { + return new ToNested(-1, item); } - public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A addToPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1NetworkPolicyPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + ports.add(index, builder); } - return (A)this; + return (A) this; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; + public A addToTo(V1NetworkPolicyPeer... items) { + if (this.to == null) { + this.to = new ArrayList(); + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").add(builder); + this.to.add(builder); + } + return (A) this; } - public V1NetworkPolicyPort buildPort(int index) { - return this.ports.get(index).build(); + 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(builder); + to.add(index, builder); + } + return (A) this; } public V1NetworkPolicyPort buildFirstPort() { return this.ports.get(0).build(); } + public V1NetworkPolicyPeer buildFirstTo() { + return this.to.get(0).build(); + } + public V1NetworkPolicyPort buildLastPort() { return this.ports.get(ports.size() - 1).build(); } + public V1NetworkPolicyPeer buildLastTo() { + return this.to.get(to.size() - 1).build(); + } + public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { for (V1NetworkPolicyPortBuilder item : ports) { if (predicate.test(item)) { @@ -107,164 +149,321 @@ public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { + public V1NetworkPolicyPeer buildMatchingTo(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : to) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withPorts(List ports) { - if (this.ports != null) { - this._visitables.get("ports").clear(); - } - if (ports != null) { - this.ports = new ArrayList(); - for (V1NetworkPolicyPort item : ports) { - this.addToPorts(item); - } - } else { - this.ports = null; + public V1NetworkPolicyPort buildPort(int index) { + return this.ports.get(index).build(); + } + + public List buildPorts() { + return this.ports != null ? build(ports) : null; + } + + public List buildTo() { + return this.to != null ? build(to) : null; + } + + public V1NetworkPolicyPeer buildTo(int index) { + return this.to.get(index).build(); + } + + protected void copyInstance(V1NetworkPolicyEgressRule instance) { + instance = instance != null ? instance : new V1NetworkPolicyEgressRule(); + if (instance != null) { + this.withPorts(instance.getPorts()); + this.withTo(instance.getTo()); } - return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports) { - if (this.ports != null) { - this.ports.clear(); - _visitables.remove("ports"); + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); } - if (ports != null) { - for (V1NetworkPolicyPort item : ports) { - this.addToPorts(item); - } + return this.setNewPortLike(0, this.buildPort(0)); + } + + public ToNested editFirstTo() { + if (to.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "to")); } - return (A) this; + return this.setNewToLike(0, this.buildTo(0)); } - public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public PortsNested addNewPort() { - return new PortsNested(-1, null); + public ToNested editLastTo() { + int index = to.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "to")); + } + return this.setNewToLike(index, this.buildTo(index)); } - public PortsNested addNewPortLike(V1NetworkPolicyPort item) { - return new PortsNested(-1, item); + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { - return new PortsNested(index, item); + public ToNested editMatchingTo(Predicate predicate) { + int index = -1; + for (int i = 0;i < to.size();i++) { + if (predicate.test(to.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "to")); + } + return this.setNewToLike(index, this.buildTo(index)); } public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); + public ToNested editTo(int index) { + if (to.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "to")); + } + return this.setNewToLike(index, this.buildTo(index)); } - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkPolicyEgressRuleFluent that = (V1NetworkPolicyEgressRuleFluent) o; + if (!(Objects.equals(ports, that.ports))) { + return false; + } + if (!(Objects.equals(to, that.to))) { + return false; + } + return true; } - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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);} - return (A)this; + public boolean hasMatchingTo(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : to) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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);} - return (A)this; + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); } - public A addToTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.to == null) {this.to = new ArrayList();} - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").add(builder);this.to.add(builder);} return (A)this; + public boolean hasTo() { + return this.to != null && !(this.to.isEmpty()); } - public A addAllToTo(Collection items) { - if (this.to == null) {this.to = new ArrayList();} - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").add(builder);this.to.add(builder);} return (A)this; + public int hashCode() { + return Objects.hash(ports, to); } - public A removeFromTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.to == null) return (A)this; - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").remove(builder); this.to.remove(builder);} return (A)this; + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } public A removeAllFromTo(Collection items) { - if (this.to == null) return (A)this; - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("to").remove(builder); this.to.remove(builder);} return (A)this; + if (this.to == null) { + return (A) this; + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").remove(builder); + this.to.remove(builder); + } + return (A) this; + } + + public A removeFromPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + return (A) this; + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeFromTo(V1NetworkPolicyPeer... items) { + if (this.to == null) { + return (A) this; + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("to").remove(builder); + this.to.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1NetworkPolicyPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public A removeMatchingFromTo(Predicate predicate) { - if (to == null) return (A) this; - final Iterator each = to.iterator(); - final List visitables = _visitables.get("to"); + if (to == null) { + return (A) this; + } + Iterator each = to.iterator(); + List visitables = _visitables.get("to"); while (each.hasNext()) { - V1NetworkPolicyPeerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyPeerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildTo() { - return this.to != null ? build(to) : null; + public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { + return new PortsNested(index, item); } - public V1NetworkPolicyPeer buildTo(int index) { - return this.to.get(index).build(); + public ToNested setNewToLike(int index,V1NetworkPolicyPeer item) { + return new ToNested(index, item); } - public V1NetworkPolicyPeer buildFirstTo() { - return this.to.get(0).build(); + 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").add(builder); + ports.set(index, builder); + } + return (A) this; } - public V1NetworkPolicyPeer buildLastTo() { - return this.to.get(to.size() - 1).build(); + 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").add(builder); + to.set(index, builder); + } + return (A) this; } - public V1NetworkPolicyPeer buildMatchingTo(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : to) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + sb.append(","); + } + if (!(to == null) && !(to.isEmpty())) { + sb.append("to:"); + sb.append(to); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingTo(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : to) { - if (predicate.test(item)) { - return true; + public A withPorts(List ports) { + if (this.ports != null) { + this._visitables.get("ports").clear(); + } + if (ports != null) { + this.ports = new ArrayList(); + for (V1NetworkPolicyPort item : ports) { + this.addToPorts(item); } + } else { + this.ports = null; + } + return (A) this; + } + + public A withPorts(V1NetworkPolicyPort... ports) { + if (this.ports != null) { + this.ports.clear(); + _visitables.remove("ports"); + } + if (ports != null) { + for (V1NetworkPolicyPort item : ports) { + this.addToPorts(item); } - return false; + } + return (A) this; } public A withTo(List to) { @@ -282,7 +481,7 @@ public A withTo(List to) { return (A) this; } - public A withTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... to) { + public A withTo(V1NetworkPolicyPeer... to) { if (this.to != null) { this.to.clear(); _visitables.remove("to"); @@ -294,105 +493,42 @@ public A withTo(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... to) { } return (A) this; } + public class PortsNested extends V1NetworkPolicyPortFluent> implements Nested{ - public boolean hasTo() { - return this.to != null && !this.to.isEmpty(); - } - - public ToNested addNewTo() { - return new ToNested(-1, null); - } - - public ToNested addNewToLike(V1NetworkPolicyPeer item) { - return new ToNested(-1, item); - } - - public ToNested setNewToLike(int index,V1NetworkPolicyPeer item) { - return new ToNested(index, item); - } - - public ToNested editTo(int index) { - if (to.size() <= index) throw new RuntimeException("Can't edit to. Index exceeds size."); - return setNewToLike(index, buildTo(index)); - } - - public ToNested editFirstTo() { - if (to.size() == 0) throw new RuntimeException("Can't edit first to. The list is empty."); - return setNewToLike(0, buildTo(0)); - } - - public ToNested editLastTo() { - int index = to.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last to. The list is empty."); - return setNewToLike(index, buildTo(index)); - } - - public ToNested editMatchingTo(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1NetworkPolicyPortFluent> implements Nested{ PortsNested(int index,V1NetworkPolicyPort item) { this.index = index; this.builder = new V1NetworkPolicyPortBuilder(this, item); } - V1NetworkPolicyPortBuilder builder; - int index; - + public N and() { - return (N) V1NetworkPolicyEgressRuleFluent.this.setToPorts(index,builder.build()); + return (N) V1NetworkPolicyEgressRuleFluent.this.setToPorts(index, builder.build()); } public N endPort() { return and(); } - } public class ToNested extends V1NetworkPolicyPeerFluent> implements Nested{ + + V1NetworkPolicyPeerBuilder builder; + int index; + ToNested(int index,V1NetworkPolicyPeer item) { this.index = index; this.builder = new V1NetworkPolicyPeerBuilder(this, item); } - V1NetworkPolicyPeerBuilder builder; - int index; - + public N and() { - return (N) V1NetworkPolicyEgressRuleFluent.this.setToTo(index,builder.build()); + return (N) V1NetworkPolicyEgressRuleFluent.this.setToTo(index, builder.build()); } public N endTo() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java index 6b55c7a017..e4447d6f44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyFluent> extends BaseFluent{ +public class V1NetworkPolicyFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1NetworkPolicySpecBuilder spec; + public V1NetworkPolicyFluent() { } public V1NetworkPolicyFluent(V1NetworkPolicy instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1NetworkPolicySpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1NetworkPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1NetworkPolicy instance) { - instance = (instance != null ? instance : new V1NetworkPolicy()); + instance = instance != null ? instance : new V1NetworkPolicy(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1NetworkPolicySpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1NetworkPolicySpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkPolicyFluent that = (V1NetworkPolicyFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1NetworkPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1NetworkPolicySpec item) { + return new SpecNested(item); } public A withSpec(V1NetworkPolicySpec spec) { @@ -113,63 +198,14 @@ public A withSpec(V1NetworkPolicySpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1NetworkPolicySpec 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 V1NetworkPolicySpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1NetworkPolicySpec 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; - V1NetworkPolicyFluent that = (V1NetworkPolicyFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1NetworkPolicyFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1NetworkPolicySpecFluent> implements Nested{ + + V1NetworkPolicySpecBuilder builder; + SpecNested(V1NetworkPolicySpec item) { this.builder = new V1NetworkPolicySpecBuilder(this, item); } - V1NetworkPolicySpecBuilder builder; - + public N and() { return (N) V1NetworkPolicyFluent.this.withSpec(builder.build()); } @@ -194,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java index fb1ef85751..71d14dce2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyIngressRuleBuilder extends V1NetworkPolicyIngressRuleFluent implements VisitableBuilder{ + + V1NetworkPolicyIngressRuleFluent fluent; + public V1NetworkPolicyIngressRuleBuilder() { this(new V1NetworkPolicyIngressRule()); } @@ -10,17 +14,16 @@ public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent flu this(fluent, new V1NetworkPolicyIngressRule()); } - public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent fluent,V1NetworkPolicyIngressRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRule instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyIngressRuleFluent fluent; + public V1NetworkPolicyIngressRuleBuilder(V1NetworkPolicyIngressRuleFluent fluent,V1NetworkPolicyIngressRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyIngressRule build() { V1NetworkPolicyIngressRule buildable = new V1NetworkPolicyIngressRule(); buildable.setFrom(fluent.buildFrom()); @@ -28,5 +31,4 @@ public V1NetworkPolicyIngressRule build() { return buildable; } - } \ No newline at end of file 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..58a205cd2a 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 @@ -1,85 +1,135 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyIngressRuleFluent> extends BaseFluent{ +public class V1NetworkPolicyIngressRuleFluent> extends BaseFluent{ + + private ArrayList from; + private ArrayList ports; + public V1NetworkPolicyIngressRuleFluent() { } public V1NetworkPolicyIngressRuleFluent(V1NetworkPolicyIngressRule instance) { this.copyInstance(instance); } - private ArrayList from; - private ArrayList ports; + + public A addAllToFrom(Collection items) { + if (this.from == null) { + this.from = new ArrayList(); + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").add(builder); + this.from.add(builder); + } + return (A) this; + } - protected void copyInstance(V1NetworkPolicyIngressRule instance) { - instance = (instance != null ? instance : new V1NetworkPolicyIngressRule()); - if (instance != null) { - this.withFrom(instance.getFrom()); - this.withPorts(instance.getPorts()); - } + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public FromNested addNewFrom() { + return new FromNested(-1, null); } - 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);} - return (A)this; + public FromNested addNewFromLike(V1NetworkPolicyPeer item) { + return new FromNested(-1, item); } - public A addToFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.from == null) {this.from = new ArrayList();} - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").add(builder);this.from.add(builder);} return (A)this; + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public A addAllToFrom(Collection items) { - if (this.from == null) {this.from = new ArrayList();} - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").add(builder);this.from.add(builder);} return (A)this; + public PortsNested addNewPortLike(V1NetworkPolicyPort item) { + return new PortsNested(-1, item); } - public A removeFromFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... items) { - if (this.from == null) return (A)this; - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").remove(builder); this.from.remove(builder);} return (A)this; + public A addToFrom(V1NetworkPolicyPeer... items) { + if (this.from == null) { + this.from = new ArrayList(); + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").add(builder); + this.from.add(builder); + } + return (A) this; } - public A removeAllFromFrom(Collection items) { - if (this.from == null) return (A)this; - for (V1NetworkPolicyPeer item : items) {V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item);_visitables.get("from").remove(builder); this.from.remove(builder);} return (A)this; + 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(builder); + from.add(index, builder); + } + return (A) this; } - public A removeMatchingFromFrom(Predicate predicate) { - if (from == null) return (A) this; - final Iterator each = from.iterator(); - final List visitables = _visitables.get("from"); - while (each.hasNext()) { - V1NetworkPolicyPeerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); } - return (A)this; + return (A) this; + } + + 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(builder); + ports.add(index, builder); + } + return (A) this; + } + + public V1NetworkPolicyPeer buildFirstFrom() { + return this.from.get(0).build(); + } + + public V1NetworkPolicyPort buildFirstPort() { + return this.ports.get(0).build(); } public List buildFrom() { @@ -90,14 +140,14 @@ public V1NetworkPolicyPeer buildFrom(int index) { return this.from.get(index).build(); } - public V1NetworkPolicyPeer buildFirstFrom() { - return this.from.get(0).build(); - } - public V1NetworkPolicyPeer buildLastFrom() { return this.from.get(from.size() - 1).build(); } + public V1NetworkPolicyPort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); + } + public V1NetworkPolicyPeer buildMatchingFrom(Predicate predicate) { for (V1NetworkPolicyPeerBuilder item : from) { if (predicate.test(item)) { @@ -107,164 +157,313 @@ public V1NetworkPolicyPeer buildMatchingFrom(Predicate predicate) { - for (V1NetworkPolicyPeerBuilder item : from) { + public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withFrom(List from) { - if (this.from != null) { - this._visitables.get("from").clear(); - } - if (from != null) { - this.from = new ArrayList(); - for (V1NetworkPolicyPeer item : from) { - this.addToFrom(item); - } - } else { - this.from = null; + public V1NetworkPolicyPort buildPort(int index) { + return this.ports.get(index).build(); + } + + public List buildPorts() { + return this.ports != null ? build(ports) : null; + } + + protected void copyInstance(V1NetworkPolicyIngressRule instance) { + instance = instance != null ? instance : new V1NetworkPolicyIngressRule(); + if (instance != null) { + this.withFrom(instance.getFrom()); + this.withPorts(instance.getPorts()); } - return (A) this; } - public A withFrom(io.kubernetes.client.openapi.models.V1NetworkPolicyPeer... from) { - if (this.from != null) { - this.from.clear(); - _visitables.remove("from"); + public FromNested editFirstFrom() { + if (from.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "from")); } - if (from != null) { - for (V1NetworkPolicyPeer item : from) { - this.addToFrom(item); - } + return this.setNewFromLike(0, this.buildFrom(0)); + } + + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); } - return (A) this; + return this.setNewPortLike(0, this.buildPort(0)); } - public boolean hasFrom() { - return this.from != null && !this.from.isEmpty(); + public FromNested editFrom(int index) { + if (from.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "from")); + } + return this.setNewFromLike(index, this.buildFrom(index)); } - public FromNested addNewFrom() { - return new FromNested(-1, null); + public FromNested editLastFrom() { + int index = from.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "from")); + } + return this.setNewFromLike(index, this.buildFrom(index)); } - public FromNested addNewFromLike(V1NetworkPolicyPeer item) { - return new FromNested(-1, item); + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public FromNested setNewFromLike(int index,V1NetworkPolicyPeer item) { - return new FromNested(index, item); + public FromNested editMatchingFrom(Predicate predicate) { + int index = -1; + for (int i = 0;i < from.size();i++) { + if (predicate.test(from.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "from")); + } + return this.setNewFromLike(index, this.buildFrom(index)); } - public FromNested editFrom(int index) { - if (from.size() <= index) throw new RuntimeException("Can't edit from. Index exceeds size."); - return setNewFromLike(index, buildFrom(index)); + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public FromNested editFirstFrom() { - if (from.size() == 0) throw new RuntimeException("Can't edit first from. The list is empty."); - return setNewFromLike(0, buildFrom(0)); + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public FromNested editLastFrom() { - int index = from.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last from. The list is empty."); - return setNewFromLike(index, buildFrom(index)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkPolicyIngressRuleFluent that = (V1NetworkPolicyIngressRuleFluent) o; + if (!(Objects.equals(from, that.from))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + return true; } - public FromNested editMatchingFrom(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public boolean hasMatchingFrom(Predicate predicate) { + for (V1NetworkPolicyPeerBuilder item : from) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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);} - return (A)this; + public boolean hasMatchingPort(Predicate predicate) { + for (V1NetworkPolicyPortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); } - public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; + public int hashCode() { + return Objects.hash(from, ports); } - public A removeFromPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... items) { - if (this.ports == null) return (A)this; - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + public A removeAllFromFrom(Collection items) { + if (this.from == null) { + return (A) this; + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").remove(builder); + this.from.remove(builder); + } + return (A) this; } public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1NetworkPolicyPort item : items) {V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; + if (this.ports == null) { + return (A) this; + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeFromFrom(V1NetworkPolicyPeer... items) { + if (this.from == null) { + return (A) this; + } + for (V1NetworkPolicyPeer item : items) { + V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); + _visitables.get("from").remove(builder); + this.from.remove(builder); + } + return (A) this; + } + + public A removeFromPorts(V1NetworkPolicyPort... items) { + if (this.ports == null) { + return (A) this; + } + for (V1NetworkPolicyPort item : items) { + V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromFrom(Predicate predicate) { + if (from == null) { + return (A) this; + } + Iterator each = from.iterator(); + List visitables = _visitables.get("from"); + while (each.hasNext()) { + V1NetworkPolicyPeerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); while (each.hasNext()) { - V1NetworkPolicyPortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NetworkPolicyPortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildPorts() { - return this.ports != null ? build(ports) : null; + public FromNested setNewFromLike(int index,V1NetworkPolicyPeer item) { + return new FromNested(index, item); } - public V1NetworkPolicyPort buildPort(int index) { - return this.ports.get(index).build(); + public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { + return new PortsNested(index, item); } - public V1NetworkPolicyPort buildFirstPort() { - return this.ports.get(0).build(); + 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").add(builder); + from.set(index, builder); + } + return (A) this; } - public V1NetworkPolicyPort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); + 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").add(builder); + ports.set(index, builder); + } + return (A) this; } - public V1NetworkPolicyPort buildMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(from == null) && !(from.isEmpty())) { + sb.append("from:"); + sb.append(from); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingPort(Predicate predicate) { - for (V1NetworkPolicyPortBuilder item : ports) { - if (predicate.test(item)) { - return true; + public A withFrom(List from) { + if (this.from != null) { + this._visitables.get("from").clear(); + } + if (from != null) { + this.from = new ArrayList(); + for (V1NetworkPolicyPeer item : from) { + this.addToFrom(item); } + } else { + this.from = null; + } + return (A) this; + } + + public A withFrom(V1NetworkPolicyPeer... from) { + if (this.from != null) { + this.from.clear(); + _visitables.remove("from"); + } + if (from != null) { + for (V1NetworkPolicyPeer item : from) { + this.addToFrom(item); } - return false; + } + return (A) this; } public A withPorts(List ports) { @@ -282,7 +481,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... ports) { + public A withPorts(V1NetworkPolicyPort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -294,105 +493,42 @@ public A withPorts(io.kubernetes.client.openapi.models.V1NetworkPolicyPort... po } return (A) this; } + public class FromNested extends V1NetworkPolicyPeerFluent> implements Nested{ - public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(V1NetworkPolicyPort item) { - return new PortsNested(-1, item); - } - - public PortsNested setNewPortLike(int index,V1NetworkPolicyPort item) { - return new PortsNested(index, item); - } - - public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); - } - - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1NetworkPolicyPeerFluent> implements Nested{ FromNested(int index,V1NetworkPolicyPeer item) { this.index = index; this.builder = new V1NetworkPolicyPeerBuilder(this, item); } - V1NetworkPolicyPeerBuilder builder; - int index; - + public N and() { - return (N) V1NetworkPolicyIngressRuleFluent.this.setToFrom(index,builder.build()); + return (N) V1NetworkPolicyIngressRuleFluent.this.setToFrom(index, builder.build()); } public N endFrom() { return and(); } - } public class PortsNested extends V1NetworkPolicyPortFluent> implements Nested{ + + V1NetworkPolicyPortBuilder builder; + int index; + PortsNested(int index,V1NetworkPolicyPort item) { this.index = index; this.builder = new V1NetworkPolicyPortBuilder(this, item); } - V1NetworkPolicyPortBuilder builder; - int index; - + public N and() { - return (N) V1NetworkPolicyIngressRuleFluent.this.setToPorts(index,builder.build()); + return (N) V1NetworkPolicyIngressRuleFluent.this.setToPorts(index, builder.build()); } public N endPort() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java index 6a9d8aa834..2dc120cfaa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyListBuilder extends V1NetworkPolicyListFluent implements VisitableBuilder{ + + V1NetworkPolicyListFluent fluent; + public V1NetworkPolicyListBuilder() { this(new V1NetworkPolicyList()); } @@ -10,17 +14,16 @@ public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent) { this(fluent, new V1NetworkPolicyList()); } - public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent,V1NetworkPolicyList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyListBuilder(V1NetworkPolicyList instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyListFluent fluent; + public V1NetworkPolicyListBuilder(V1NetworkPolicyListFluent fluent,V1NetworkPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyList build() { V1NetworkPolicyList buildable = new V1NetworkPolicyList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1NetworkPolicyList build() { return buildable; } - } \ No newline at end of file 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..77c6a99b59 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyListFluent> extends BaseFluent{ +public class V1NetworkPolicyListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1NetworkPolicyListFluent() { } public V1NetworkPolicyListFluent(V1NetworkPolicyList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1NetworkPolicyList instance) { - instance = (instance != null ? instance : new V1NetworkPolicyList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1NetworkPolicy item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1NetworkPolicy... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1NetworkPolicy item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1NetworkPolicy buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1NetworkPolicy buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { - if (this.items == null) return (A)this; - for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1NetworkPolicy buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1NetworkPolicy item : items) {V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1NetworkPolicy buildMatchingItem(Predicate predicate) { + for (V1NetworkPolicyBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1NetworkPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1NetworkPolicyList instance) { + instance = instance != null ? instance : new V1NetworkPolicyList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1NetworkPolicy buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1NetworkPolicy buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1NetworkPolicy buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkPolicyListFluent that = (V1NetworkPolicyListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1NetworkPolicy buildMatchingItem(Predicate predicate) { - for (V1NetworkPolicyBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1NetworkPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1NetworkPolicy item : items) { + V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1NetworkPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1NetworkPolicy item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) { + public A withItems(V1NetworkPolicy... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1NetworkPolicy... items) return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1NetworkPolicy item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1NetworkPolicy 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1NetworkPolicyFluent> implements Nested{ - 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; - V1NetworkPolicyListFluent that = (V1NetworkPolicyListFluent) 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()); - } + V1NetworkPolicyBuilder builder; + int index; - 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 V1NetworkPolicyFluent> implements Nested{ ItemsNested(int index,V1NetworkPolicy item) { this.index = index; this.builder = new V1NetworkPolicyBuilder(this, item); } - V1NetworkPolicyBuilder builder; - int index; - + public N and() { - return (N) V1NetworkPolicyListFluent.this.setToItems(index,builder.build()); + return (N) V1NetworkPolicyListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1NetworkPolicyListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java index d006afd5c6..520133bda2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyPeerBuilder extends V1NetworkPolicyPeerFluent implements VisitableBuilder{ + + V1NetworkPolicyPeerFluent fluent; + public V1NetworkPolicyPeerBuilder() { this(new V1NetworkPolicyPeer()); } @@ -10,17 +14,16 @@ public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent) { this(fluent, new V1NetworkPolicyPeer()); } - public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent,V1NetworkPolicyPeer instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeer instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyPeerFluent fluent; + public V1NetworkPolicyPeerBuilder(V1NetworkPolicyPeerFluent fluent,V1NetworkPolicyPeer instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyPeer build() { V1NetworkPolicyPeer buildable = new V1NetworkPolicyPeer(); buildable.setIpBlock(fluent.buildIpBlock()); @@ -29,5 +32,4 @@ public V1NetworkPolicyPeer build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java index fb983d7202..89269d863d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java @@ -1,77 +1,158 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyPeerFluent> extends BaseFluent{ +public class V1NetworkPolicyPeerFluent> extends BaseFluent{ + + private V1IPBlockBuilder ipBlock; + private V1LabelSelectorBuilder namespaceSelector; + private V1LabelSelectorBuilder podSelector; + public V1NetworkPolicyPeerFluent() { } public V1NetworkPolicyPeerFluent(V1NetworkPolicyPeer instance) { this.copyInstance(instance); } - private V1IPBlockBuilder ipBlock; - private V1LabelSelectorBuilder namespaceSelector; - private V1LabelSelectorBuilder podSelector; + + public V1IPBlock buildIpBlock() { + return this.ipBlock != null ? this.ipBlock.build() : null; + } + + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + } + + public V1LabelSelector buildPodSelector() { + return this.podSelector != null ? this.podSelector.build() : null; + } protected void copyInstance(V1NetworkPolicyPeer instance) { - instance = (instance != null ? instance : new V1NetworkPolicyPeer()); + instance = instance != null ? instance : new V1NetworkPolicyPeer(); if (instance != null) { - this.withIpBlock(instance.getIpBlock()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withPodSelector(instance.getPodSelector()); - } + this.withIpBlock(instance.getIpBlock()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withPodSelector(instance.getPodSelector()); + } } - public V1IPBlock buildIpBlock() { - return this.ipBlock != null ? this.ipBlock.build() : null; + public IpBlockNested editIpBlock() { + return this.withNewIpBlockLike(Optional.ofNullable(this.buildIpBlock()).orElse(null)); } - public A withIpBlock(V1IPBlock ipBlock) { - this._visitables.remove("ipBlock"); - if (ipBlock != null) { - this.ipBlock = new V1IPBlockBuilder(ipBlock); - this._visitables.get("ipBlock").add(this.ipBlock); - } else { - this.ipBlock = null; - this._visitables.get("ipBlock").remove(this.ipBlock); + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); + } + + public IpBlockNested editOrNewIpBlock() { + return this.withNewIpBlockLike(Optional.ofNullable(this.buildIpBlock()).orElse(new V1IPBlockBuilder().build())); + } + + public IpBlockNested editOrNewIpBlockLike(V1IPBlock item) { + return this.withNewIpBlockLike(Optional.ofNullable(this.buildIpBlock()).orElse(item)); + } + + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); + } + + public PodSelectorNested editOrNewPodSelector() { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(item)); + } + + public PodSelectorNested editPodSelector() { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkPolicyPeerFluent that = (V1NetworkPolicyPeerFluent) o; + if (!(Objects.equals(ipBlock, that.ipBlock))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(podSelector, that.podSelector))) { + return false; + } + return true; } public boolean hasIpBlock() { return this.ipBlock != null; } - public IpBlockNested withNewIpBlock() { - return new IpBlockNested(null); - } - - public IpBlockNested withNewIpBlockLike(V1IPBlock item) { - return new IpBlockNested(item); + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; } - public IpBlockNested editIpBlock() { - return withNewIpBlockLike(java.util.Optional.ofNullable(buildIpBlock()).orElse(null)); + public boolean hasPodSelector() { + return this.podSelector != null; } - public IpBlockNested editOrNewIpBlock() { - return withNewIpBlockLike(java.util.Optional.ofNullable(buildIpBlock()).orElse(new V1IPBlockBuilder().build())); + public int hashCode() { + return Objects.hash(ipBlock, namespaceSelector, podSelector); } - public IpBlockNested editOrNewIpBlockLike(V1IPBlock item) { - return withNewIpBlockLike(java.util.Optional.ofNullable(buildIpBlock()).orElse(item)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(ipBlock == null)) { + sb.append("ipBlock:"); + sb.append(ipBlock); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(podSelector == null)) { + sb.append("podSelector:"); + sb.append(podSelector); + } + sb.append("}"); + return sb.toString(); } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + public A withIpBlock(V1IPBlock ipBlock) { + this._visitables.remove("ipBlock"); + if (ipBlock != null) { + this.ipBlock = new V1IPBlockBuilder(ipBlock); + this._visitables.get("ipBlock").add(this.ipBlock); + } else { + this.ipBlock = null; + this._visitables.get("ipBlock").remove(this.ipBlock); + } + return (A) this; } public A withNamespaceSelector(V1LabelSelector namespaceSelector) { @@ -86,8 +167,12 @@ public A withNamespaceSelector(V1LabelSelector namespaceSelector) { return (A) this; } - public boolean hasNamespaceSelector() { - return this.namespaceSelector != null; + public IpBlockNested withNewIpBlock() { + return new IpBlockNested(null); + } + + public IpBlockNested withNewIpBlockLike(V1IPBlock item) { + return new IpBlockNested(item); } public NamespaceSelectorNested withNewNamespaceSelector() { @@ -98,20 +183,12 @@ public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector i 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 PodSelectorNested withNewPodSelector() { + return new PodSelectorNested(null); } - public V1LabelSelector buildPodSelector() { - return this.podSelector != null ? this.podSelector.build() : null; + public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { + return new PodSelectorNested(item); } public A withPodSelector(V1LabelSelector podSelector) { @@ -125,61 +202,14 @@ public A withPodSelector(V1LabelSelector podSelector) { } return (A) this; } + public class IpBlockNested extends V1IPBlockFluent> implements Nested{ - public boolean hasPodSelector() { - return this.podSelector != null; - } - - public PodSelectorNested withNewPodSelector() { - return new PodSelectorNested(null); - } - - public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { - return new PodSelectorNested(item); - } - - public PodSelectorNested editPodSelector() { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(null)); - } - - public PodSelectorNested editOrNewPodSelector() { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); - } - - public PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).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; - V1NetworkPolicyPeerFluent that = (V1NetworkPolicyPeerFluent) o; - if (!java.util.Objects.equals(ipBlock, that.ipBlock)) return false; - if (!java.util.Objects.equals(namespaceSelector, that.namespaceSelector)) return false; - if (!java.util.Objects.equals(podSelector, that.podSelector)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(ipBlock, namespaceSelector, podSelector, super.hashCode()); - } + V1IPBlockBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (ipBlock != null) { sb.append("ipBlock:"); sb.append(ipBlock + ","); } - if (namespaceSelector != null) { sb.append("namespaceSelector:"); sb.append(namespaceSelector + ","); } - if (podSelector != null) { sb.append("podSelector:"); sb.append(podSelector); } - sb.append("}"); - return sb.toString(); - } - public class IpBlockNested extends V1IPBlockFluent> implements Nested{ IpBlockNested(V1IPBlock item) { this.builder = new V1IPBlockBuilder(this, item); } - V1IPBlockBuilder builder; - + public N and() { return (N) V1NetworkPolicyPeerFluent.this.withIpBlock(builder.build()); } @@ -188,14 +218,15 @@ public N endIpBlock() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1NetworkPolicyPeerFluent.this.withNamespaceSelector(builder.build()); } @@ -204,14 +235,15 @@ public N endNamespaceSelector() { return and(); } - } public class PodSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + PodSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1NetworkPolicyPeerFluent.this.withPodSelector(builder.build()); } @@ -220,7 +252,5 @@ public N endPodSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java index 1cf86692d1..97a4377df7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicyPortBuilder extends V1NetworkPolicyPortFluent implements VisitableBuilder{ + + V1NetworkPolicyPortFluent fluent; + public V1NetworkPolicyPortBuilder() { this(new V1NetworkPolicyPort()); } @@ -10,17 +14,16 @@ public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent) { this(fluent, new V1NetworkPolicyPort()); } - public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent,V1NetworkPolicyPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicyPortBuilder(V1NetworkPolicyPort instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicyPortFluent fluent; + public V1NetworkPolicyPortBuilder(V1NetworkPolicyPortFluent fluent,V1NetworkPolicyPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicyPort build() { V1NetworkPolicyPort buildable = new V1NetworkPolicyPort(); buildable.setEndPort(fluent.getEndPort()); @@ -29,5 +32,4 @@ public V1NetworkPolicyPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java index 9ddfbc3a83..6a7bb3b47c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java @@ -1,107 +1,133 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicyPortFluent> extends BaseFluent{ +public class V1NetworkPolicyPortFluent> extends BaseFluent{ + + private Integer endPort; + private IntOrString port; + private String protocol; + public V1NetworkPolicyPortFluent() { } public V1NetworkPolicyPortFluent(V1NetworkPolicyPort instance) { this.copyInstance(instance); } - private Integer endPort; - private IntOrString port; - private String protocol; - + protected void copyInstance(V1NetworkPolicyPort instance) { - instance = (instance != null ? instance : new V1NetworkPolicyPort()); + instance = instance != null ? instance : new V1NetworkPolicyPort(); if (instance != null) { - this.withEndPort(instance.getEndPort()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } + this.withEndPort(instance.getEndPort()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } - public Integer getEndPort() { - return this.endPort; - } - - public A withEndPort(Integer endPort) { - this.endPort = endPort; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkPolicyPortFluent that = (V1NetworkPolicyPortFluent) o; + if (!(Objects.equals(endPort, that.endPort))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } + return true; } - public boolean hasEndPort() { - return this.endPort != null; + public Integer getEndPort() { + return this.endPort; } public IntOrString getPort() { return this.port; } - public A withPort(IntOrString port) { - this.port = port; - return (A) this; + public String getProtocol() { + return this.protocol; + } + + public boolean hasEndPort() { + return this.endPort != null; } public boolean hasPort() { return this.port != null; } - public A withNewPort(int value) { - return (A)withPort(new IntOrString(value)); + public boolean hasProtocol() { + return this.protocol != null; } - public A withNewPort(String value) { - return (A)withPort(new IntOrString(value)); + public int hashCode() { + return Objects.hash(endPort, port, protocol); } - public String getProtocol() { - return this.protocol; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(endPort == null)) { + sb.append("endPort:"); + sb.append(endPort); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } + sb.append("}"); + return sb.toString(); } - public A withProtocol(String protocol) { - this.protocol = protocol; + public A withEndPort(Integer endPort) { + this.endPort = endPort; return (A) this; } - public boolean hasProtocol() { - return this.protocol != null; + public A withNewPort(int value) { + return (A) this.withPort(new IntOrString(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; - V1NetworkPolicyPortFluent that = (V1NetworkPolicyPortFluent) o; - if (!java.util.Objects.equals(endPort, that.endPort)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; - return true; + public A withNewPort(String value) { + return (A) this.withPort(new IntOrString(value)); } - public int hashCode() { - return java.util.Objects.hash(endPort, port, protocol, super.hashCode()); + public A withPort(IntOrString port) { + this.port = port; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (endPort != null) { sb.append("endPort:"); sb.append(endPort + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } - sb.append("}"); - return sb.toString(); + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java index 606047d3cf..fcec9b9863 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NetworkPolicySpecBuilder extends V1NetworkPolicySpecFluent implements VisitableBuilder{ + + V1NetworkPolicySpecFluent fluent; + public V1NetworkPolicySpecBuilder() { this(new V1NetworkPolicySpec()); } @@ -10,17 +14,16 @@ public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent) { this(fluent, new V1NetworkPolicySpec()); } - public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent,V1NetworkPolicySpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NetworkPolicySpecBuilder(V1NetworkPolicySpec instance) { this.fluent = this; this.copyInstance(instance); } - V1NetworkPolicySpecFluent fluent; + public V1NetworkPolicySpecBuilder(V1NetworkPolicySpecFluent fluent,V1NetworkPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NetworkPolicySpec build() { V1NetworkPolicySpec buildable = new V1NetworkPolicySpec(); buildable.setEgress(fluent.buildEgress()); @@ -30,5 +33,4 @@ public V1NetworkPolicySpec build() { return buildable; } - } \ No newline at end of file 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..098bc9cad5 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 @@ -1,89 +1,158 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NetworkPolicySpecFluent> extends BaseFluent{ +public class V1NetworkPolicySpecFluent> extends BaseFluent{ + + private ArrayList egress; + private ArrayList ingress; + private V1LabelSelectorBuilder podSelector; + private List policyTypes; + public V1NetworkPolicySpecFluent() { } public V1NetworkPolicySpecFluent(V1NetworkPolicySpec instance) { this.copyInstance(instance); } - private ArrayList egress; - private ArrayList ingress; - private V1LabelSelectorBuilder podSelector; - private List policyTypes; + + public A addAllToEgress(Collection items) { + if (this.egress == null) { + this.egress = new ArrayList(); + } + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").add(builder); + this.egress.add(builder); + } + return (A) this; + } - protected void copyInstance(V1NetworkPolicySpec instance) { - instance = (instance != null ? instance : new V1NetworkPolicySpec()); - if (instance != null) { - this.withEgress(instance.getEgress()); - this.withIngress(instance.getIngress()); - this.withPodSelector(instance.getPodSelector()); - this.withPolicyTypes(instance.getPolicyTypes()); - } + public A addAllToIngress(Collection items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public A addAllToPolicyTypes(Collection items) { + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); + } + for (String item : items) { + this.policyTypes.add(item); + } + 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);} - return (A)this; + public EgressNested addNewEgress() { + return new EgressNested(-1, null); } - public A addToEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) { - if (this.egress == null) {this.egress = new ArrayList();} - for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").add(builder);this.egress.add(builder);} return (A)this; + public EgressNested addNewEgressLike(V1NetworkPolicyEgressRule item) { + return new EgressNested(-1, item); } - public A addAllToEgress(Collection items) { - if (this.egress == null) {this.egress = new ArrayList();} - for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").add(builder);this.egress.add(builder);} return (A)this; + public IngressNested addNewIngress() { + return new IngressNested(-1, null); } - public A removeFromEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... items) { - if (this.egress == null) return (A)this; - for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").remove(builder); this.egress.remove(builder);} return (A)this; + public IngressNested addNewIngressLike(V1NetworkPolicyIngressRule item) { + return new IngressNested(-1, item); } - public A removeAllFromEgress(Collection items) { - if (this.egress == null) return (A)this; - for (V1NetworkPolicyEgressRule item : items) {V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item);_visitables.get("egress").remove(builder); this.egress.remove(builder);} return (A)this; + public A addToEgress(V1NetworkPolicyEgressRule... items) { + if (this.egress == null) { + this.egress = new ArrayList(); + } + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").add(builder); + this.egress.add(builder); + } + return (A) this; } - public A removeMatchingFromEgress(Predicate predicate) { - if (egress == null) return (A) this; - final Iterator each = egress.iterator(); - final List visitables = _visitables.get("egress"); - while (each.hasNext()) { - V1NetworkPolicyEgressRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToEgress(int index,V1NetworkPolicyEgressRule item) { + if (this.egress == null) { + this.egress = new ArrayList(); } - return (A)this; + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + 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 addToIngress(V1NetworkPolicyIngressRule... items) { + if (this.ingress == null) { + this.ingress = new ArrayList(); + } + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").add(builder); + this.ingress.add(builder); + } + return (A) this; + } + + public A addToIngress(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").add(builder); + ingress.add(index, builder); + } + return (A) this; + } + + public A addToPolicyTypes(String... items) { + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); + } + for (String item : items) { + this.policyTypes.add(item); + } + return (A) this; + } + + public A addToPolicyTypes(int index,String item) { + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); + } + this.policyTypes.add(index, item); + return (A) this; } public List buildEgress() { @@ -98,10 +167,26 @@ public V1NetworkPolicyEgressRule buildFirstEgress() { return this.egress.get(0).build(); } + public V1NetworkPolicyIngressRule buildFirstIngress() { + return this.ingress.get(0).build(); + } + + public List buildIngress() { + return this.ingress != null ? build(ingress) : null; + } + + public V1NetworkPolicyIngressRule buildIngress(int index) { + return this.ingress.get(index).build(); + } + public V1NetworkPolicyEgressRule buildLastEgress() { return this.egress.get(egress.size() - 1).build(); } + public V1NetworkPolicyIngressRule buildLastIngress() { + return this.ingress.get(ingress.size() - 1).build(); + } + public V1NetworkPolicyEgressRule buildMatchingEgress(Predicate predicate) { for (V1NetworkPolicyEgressRuleBuilder item : egress) { if (predicate.test(item)) { @@ -111,155 +196,179 @@ public V1NetworkPolicyEgressRule buildMatchingEgress(Predicate predicate) { - for (V1NetworkPolicyEgressRuleBuilder item : egress) { + public V1NetworkPolicyIngressRule buildMatchingIngress(Predicate predicate) { + for (V1NetworkPolicyIngressRuleBuilder item : ingress) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withEgress(List egress) { - if (this.egress != null) { - this._visitables.get("egress").clear(); - } - if (egress != null) { - this.egress = new ArrayList(); - for (V1NetworkPolicyEgressRule item : egress) { - this.addToEgress(item); - } - } else { - this.egress = null; - } - return (A) this; + public V1LabelSelector buildPodSelector() { + return this.podSelector != null ? this.podSelector.build() : null; } - public A withEgress(io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule... egress) { - if (this.egress != null) { - this.egress.clear(); - _visitables.remove("egress"); - } - if (egress != null) { - for (V1NetworkPolicyEgressRule item : egress) { - this.addToEgress(item); - } + protected void copyInstance(V1NetworkPolicySpec instance) { + instance = instance != null ? instance : new V1NetworkPolicySpec(); + if (instance != null) { + this.withEgress(instance.getEgress()); + this.withIngress(instance.getIngress()); + this.withPodSelector(instance.getPodSelector()); + this.withPolicyTypes(instance.getPolicyTypes()); } - return (A) this; } - public boolean hasEgress() { - return this.egress != null && !this.egress.isEmpty(); + public EgressNested editEgress(int index) { + if (egress.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "egress")); + } + return this.setNewEgressLike(index, this.buildEgress(index)); } - public EgressNested addNewEgress() { - return new EgressNested(-1, null); + public EgressNested editFirstEgress() { + if (egress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "egress")); + } + return this.setNewEgressLike(0, this.buildEgress(0)); } - public EgressNested addNewEgressLike(V1NetworkPolicyEgressRule item) { - return new EgressNested(-1, item); + public IngressNested editFirstIngress() { + if (ingress.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(0, this.buildIngress(0)); } - public EgressNested setNewEgressLike(int index,V1NetworkPolicyEgressRule item) { - return new EgressNested(index, item); + public IngressNested editIngress(int index) { + if (ingress.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); } - public EgressNested editEgress(int index) { - if (egress.size() <= index) throw new RuntimeException("Can't edit egress. Index exceeds size."); - return setNewEgressLike(index, buildEgress(index)); + public EgressNested editLastEgress() { + int index = egress.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "egress")); + } + return this.setNewEgressLike(index, this.buildEgress(index)); } - public EgressNested editFirstEgress() { - if (egress.size() == 0) throw new RuntimeException("Can't edit first egress. The list is empty."); - return setNewEgressLike(0, buildEgress(0)); + public IngressNested editLastIngress() { + int index = ingress.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ingress")); + } + return this.setNewIngressLike(index, this.buildIngress(index)); } - public EgressNested editLastEgress() { - int index = egress.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last egress. The list is empty."); - return setNewEgressLike(index, buildEgress(index)); + public EgressNested editMatchingEgress(Predicate predicate) { + int index = -1; + for (int i = 0;i < egress.size();i++) { + if (predicate.test(egress.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "egress")); + } + return this.setNewEgressLike(index, this.buildEgress(index)); } - public EgressNested editMatchingEgress(Predicate predicate) { + public IngressNested editMatchingIngress(Predicate predicate) { int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public PodSelectorNested editOrNewPodSelector() { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); } - 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);} - return (A)this; + public PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(item)); } - public A addToIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + public PodSelectorNested editPodSelector() { + return this.withNewPodSelectorLike(Optional.ofNullable(this.buildPodSelector()).orElse(null)); } - public A addAllToIngress(Collection items) { - if (this.ingress == null) {this.ingress = new ArrayList();} - for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").add(builder);this.ingress.add(builder);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NetworkPolicySpecFluent that = (V1NetworkPolicySpecFluent) o; + if (!(Objects.equals(egress, that.egress))) { + return false; + } + if (!(Objects.equals(ingress, that.ingress))) { + return false; + } + if (!(Objects.equals(podSelector, that.podSelector))) { + return false; + } + if (!(Objects.equals(policyTypes, that.policyTypes))) { + return false; + } + return true; } - public A removeFromIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... items) { - if (this.ingress == null) return (A)this; - for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + public String getFirstPolicyType() { + return this.policyTypes.get(0); } - public A removeAllFromIngress(Collection items) { - if (this.ingress == null) return (A)this; - for (V1NetworkPolicyIngressRule item : items) {V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item);_visitables.get("ingress").remove(builder); this.ingress.remove(builder);} return (A)this; + public String getLastPolicyType() { + return this.policyTypes.get(policyTypes.size() - 1); } - public A removeMatchingFromIngress(Predicate predicate) { - if (ingress == null) return (A) this; - final Iterator each = ingress.iterator(); - final List visitables = _visitables.get("ingress"); - while (each.hasNext()) { - V1NetworkPolicyIngressRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public String getMatchingPolicyType(Predicate predicate) { + for (String item : policyTypes) { + if (predicate.test(item)) { + return item; + } } - } - return (A)this; + return null; } - public List buildIngress() { - return this.ingress != null ? build(ingress) : null; + public String getPolicyType(int index) { + return this.policyTypes.get(index); } - public V1NetworkPolicyIngressRule buildIngress(int index) { - return this.ingress.get(index).build(); + public List getPolicyTypes() { + return this.policyTypes; } - public V1NetworkPolicyIngressRule buildFirstIngress() { - return this.ingress.get(0).build(); + public boolean hasEgress() { + return this.egress != null && !(this.egress.isEmpty()); } - public V1NetworkPolicyIngressRule buildLastIngress() { - return this.ingress.get(ingress.size() - 1).build(); + public boolean hasIngress() { + return this.ingress != null && !(this.ingress.isEmpty()); } - public V1NetworkPolicyIngressRule buildMatchingIngress(Predicate predicate) { - for (V1NetworkPolicyIngressRuleBuilder item : ingress) { + public boolean hasMatchingEgress(Predicate predicate) { + for (V1NetworkPolicyEgressRuleBuilder item : egress) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingIngress(Predicate predicate) { @@ -271,178 +380,273 @@ public boolean hasMatchingIngress(Predicate p return false; } - public A withIngress(List ingress) { - if (this.ingress != null) { - this._visitables.get("ingress").clear(); - } - if (ingress != null) { - this.ingress = new ArrayList(); - for (V1NetworkPolicyIngressRule item : ingress) { - this.addToIngress(item); + public boolean hasMatchingPolicyType(Predicate predicate) { + for (String item : policyTypes) { + if (predicate.test(item)) { + return true; } - } else { - this.ingress = null; - } - return (A) this; - } - - public A withIngress(io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule... ingress) { - if (this.ingress != null) { - this.ingress.clear(); - _visitables.remove("ingress"); - } - if (ingress != null) { - for (V1NetworkPolicyIngressRule item : ingress) { - this.addToIngress(item); } - } - return (A) this; - } - - public boolean hasIngress() { - return this.ingress != null && !this.ingress.isEmpty(); - } - - public IngressNested addNewIngress() { - return new IngressNested(-1, null); + return false; } - public IngressNested addNewIngressLike(V1NetworkPolicyIngressRule item) { - return new IngressNested(-1, item); + public boolean hasPodSelector() { + return this.podSelector != null; } - public IngressNested setNewIngressLike(int index,V1NetworkPolicyIngressRule item) { - return new IngressNested(index, item); + public boolean hasPolicyTypes() { + return this.policyTypes != null && !(this.policyTypes.isEmpty()); } - public IngressNested editIngress(int index) { - if (ingress.size() <= index) throw new RuntimeException("Can't edit ingress. Index exceeds size."); - return setNewIngressLike(index, buildIngress(index)); + public int hashCode() { + return Objects.hash(egress, ingress, podSelector, policyTypes); } - public IngressNested editFirstIngress() { - if (ingress.size() == 0) throw new RuntimeException("Can't edit first ingress. The list is empty."); - return setNewIngressLike(0, buildIngress(0)); + public A removeAllFromEgress(Collection items) { + if (this.egress == null) { + return (A) this; + } + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").remove(builder); + this.egress.remove(builder); + } + return (A) this; } - public IngressNested editLastIngress() { - int index = ingress.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ingress. The list is empty."); - return setNewIngressLike(index, buildIngress(index)); + public A removeAllFromIngress(Collection items) { + if (this.ingress == null) { + return (A) this; + } + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); + } + return (A) this; } - public IngressNested editMatchingIngress(Predicate predicate) { - int index = -1; - for (int i=0;i items) { + if (this.policyTypes == null) { + return (A) this; + } + for (String item : items) { + this.policyTypes.remove(item); + } + return (A) this; } - public V1LabelSelector buildPodSelector() { - return this.podSelector != null ? this.podSelector.build() : null; + public A removeFromEgress(V1NetworkPolicyEgressRule... items) { + if (this.egress == null) { + return (A) this; + } + for (V1NetworkPolicyEgressRule item : items) { + V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); + _visitables.get("egress").remove(builder); + this.egress.remove(builder); + } + return (A) this; } - public A withPodSelector(V1LabelSelector podSelector) { - this._visitables.remove("podSelector"); - if (podSelector != null) { - this.podSelector = new V1LabelSelectorBuilder(podSelector); - this._visitables.get("podSelector").add(this.podSelector); - } else { - this.podSelector = null; - this._visitables.get("podSelector").remove(this.podSelector); + public A removeFromIngress(V1NetworkPolicyIngressRule... items) { + if (this.ingress == null) { + return (A) this; + } + for (V1NetworkPolicyIngressRule item : items) { + V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); + _visitables.get("ingress").remove(builder); + this.ingress.remove(builder); } return (A) this; } - public boolean hasPodSelector() { - return this.podSelector != null; + public A removeFromPolicyTypes(String... items) { + if (this.policyTypes == null) { + return (A) this; + } + for (String item : items) { + this.policyTypes.remove(item); + } + return (A) this; } - public PodSelectorNested withNewPodSelector() { - return new PodSelectorNested(null); + public A removeMatchingFromEgress(Predicate predicate) { + if (egress == null) { + return (A) this; + } + Iterator each = egress.iterator(); + List visitables = _visitables.get("egress"); + while (each.hasNext()) { + V1NetworkPolicyEgressRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { - return new PodSelectorNested(item); + public A removeMatchingFromIngress(Predicate predicate) { + if (ingress == null) { + return (A) this; + } + Iterator each = ingress.iterator(); + List visitables = _visitables.get("ingress"); + while (each.hasNext()) { + V1NetworkPolicyIngressRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public PodSelectorNested editPodSelector() { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(null)); + public EgressNested setNewEgressLike(int index,V1NetworkPolicyEgressRule item) { + return new EgressNested(index, item); } - public PodSelectorNested editOrNewPodSelector() { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(new V1LabelSelectorBuilder().build())); + public IngressNested setNewIngressLike(int index,V1NetworkPolicyIngressRule item) { + return new IngressNested(index, item); } - public PodSelectorNested editOrNewPodSelectorLike(V1LabelSelector item) { - return withNewPodSelectorLike(java.util.Optional.ofNullable(buildPodSelector()).orElse(item)); + 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").add(builder); + egress.set(index, builder); + } + return (A) this; } - public A addToPolicyTypes(int index,String item) { - if (this.policyTypes == null) {this.policyTypes = new ArrayList();} - this.policyTypes.add(index, item); - 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").add(builder); + ingress.set(index, builder); + } + return (A) this; } public A setToPolicyTypes(int index,String item) { - if (this.policyTypes == null) {this.policyTypes = new ArrayList();} - this.policyTypes.set(index, item); return (A)this; - } - - public A addToPolicyTypes(java.lang.String... items) { - if (this.policyTypes == null) {this.policyTypes = new ArrayList();} - for (String item : items) {this.policyTypes.add(item);} return (A)this; - } - - public A addAllToPolicyTypes(Collection items) { - if (this.policyTypes == null) {this.policyTypes = new ArrayList();} - for (String item : items) {this.policyTypes.add(item);} return (A)this; + if (this.policyTypes == null) { + this.policyTypes = new ArrayList(); + } + this.policyTypes.set(index, item); + return (A) this; } - public A removeFromPolicyTypes(java.lang.String... items) { - if (this.policyTypes == null) return (A)this; - for (String item : items) { this.policyTypes.remove(item);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(egress == null) && !(egress.isEmpty())) { + sb.append("egress:"); + sb.append(egress); + sb.append(","); + } + if (!(ingress == null) && !(ingress.isEmpty())) { + sb.append("ingress:"); + sb.append(ingress); + sb.append(","); + } + if (!(podSelector == null)) { + sb.append("podSelector:"); + sb.append(podSelector); + sb.append(","); + } + if (!(policyTypes == null) && !(policyTypes.isEmpty())) { + sb.append("policyTypes:"); + sb.append(policyTypes); + } + sb.append("}"); + return sb.toString(); } - public A removeAllFromPolicyTypes(Collection items) { - if (this.policyTypes == null) return (A)this; - for (String item : items) { this.policyTypes.remove(item);} return (A)this; + public A withEgress(List egress) { + if (this.egress != null) { + this._visitables.get("egress").clear(); + } + if (egress != null) { + this.egress = new ArrayList(); + for (V1NetworkPolicyEgressRule item : egress) { + this.addToEgress(item); + } + } else { + this.egress = null; + } + return (A) this; } - public List getPolicyTypes() { - return this.policyTypes; + public A withEgress(V1NetworkPolicyEgressRule... egress) { + if (this.egress != null) { + this.egress.clear(); + _visitables.remove("egress"); + } + if (egress != null) { + for (V1NetworkPolicyEgressRule item : egress) { + this.addToEgress(item); + } + } + return (A) this; } - public String getPolicyType(int index) { - return this.policyTypes.get(index); + public A withIngress(List ingress) { + if (this.ingress != null) { + this._visitables.get("ingress").clear(); + } + if (ingress != null) { + this.ingress = new ArrayList(); + for (V1NetworkPolicyIngressRule item : ingress) { + this.addToIngress(item); + } + } else { + this.ingress = null; + } + return (A) this; } - public String getFirstPolicyType() { - return this.policyTypes.get(0); + public A withIngress(V1NetworkPolicyIngressRule... ingress) { + if (this.ingress != null) { + this.ingress.clear(); + _visitables.remove("ingress"); + } + if (ingress != null) { + for (V1NetworkPolicyIngressRule item : ingress) { + this.addToIngress(item); + } + } + return (A) this; } - public String getLastPolicyType() { - return this.policyTypes.get(policyTypes.size() - 1); + public PodSelectorNested withNewPodSelector() { + return new PodSelectorNested(null); } - public String getMatchingPolicyType(Predicate predicate) { - for (String item : policyTypes) { - if (predicate.test(item)) { - return item; - } - } - return null; + public PodSelectorNested withNewPodSelectorLike(V1LabelSelector item) { + return new PodSelectorNested(item); } - public boolean hasMatchingPolicyType(Predicate predicate) { - for (String item : policyTypes) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withPodSelector(V1LabelSelector podSelector) { + this._visitables.remove("podSelector"); + if (podSelector != null) { + this.podSelector = new V1LabelSelectorBuilder(podSelector); + this._visitables.get("podSelector").add(this.podSelector); + } else { + this.podSelector = null; + this._visitables.get("podSelector").remove(this.podSelector); + } + return (A) this; } public A withPolicyTypes(List policyTypes) { @@ -457,7 +661,7 @@ public A withPolicyTypes(List policyTypes) { return (A) this; } - public A withPolicyTypes(java.lang.String... policyTypes) { + public A withPolicyTypes(String... policyTypes) { if (this.policyTypes != null) { this.policyTypes.clear(); _visitables.remove("policyTypes"); @@ -469,79 +673,52 @@ public A withPolicyTypes(java.lang.String... policyTypes) { } return (A) this; } + public class EgressNested extends V1NetworkPolicyEgressRuleFluent> implements Nested{ - public boolean hasPolicyTypes() { - return this.policyTypes != null && !this.policyTypes.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; - V1NetworkPolicySpecFluent that = (V1NetworkPolicySpecFluent) o; - if (!java.util.Objects.equals(egress, that.egress)) return false; - if (!java.util.Objects.equals(ingress, that.ingress)) return false; - if (!java.util.Objects.equals(podSelector, that.podSelector)) return false; - if (!java.util.Objects.equals(policyTypes, that.policyTypes)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(egress, ingress, podSelector, policyTypes, super.hashCode()); - } + V1NetworkPolicyEgressRuleBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (egress != null && !egress.isEmpty()) { sb.append("egress:"); sb.append(egress + ","); } - if (ingress != null && !ingress.isEmpty()) { sb.append("ingress:"); sb.append(ingress + ","); } - if (podSelector != null) { sb.append("podSelector:"); sb.append(podSelector + ","); } - if (policyTypes != null && !policyTypes.isEmpty()) { sb.append("policyTypes:"); sb.append(policyTypes); } - sb.append("}"); - return sb.toString(); - } - public class EgressNested extends V1NetworkPolicyEgressRuleFluent> implements Nested{ EgressNested(int index,V1NetworkPolicyEgressRule item) { this.index = index; this.builder = new V1NetworkPolicyEgressRuleBuilder(this, item); } - V1NetworkPolicyEgressRuleBuilder builder; - int index; - + public N and() { - return (N) V1NetworkPolicySpecFluent.this.setToEgress(index,builder.build()); + return (N) V1NetworkPolicySpecFluent.this.setToEgress(index, builder.build()); } public N endEgress() { return and(); } - } public class IngressNested extends V1NetworkPolicyIngressRuleFluent> implements Nested{ + + V1NetworkPolicyIngressRuleBuilder builder; + int index; + IngressNested(int index,V1NetworkPolicyIngressRule item) { this.index = index; this.builder = new V1NetworkPolicyIngressRuleBuilder(this, item); } - V1NetworkPolicyIngressRuleBuilder builder; - int index; - + public N and() { - return (N) V1NetworkPolicySpecFluent.this.setToIngress(index,builder.build()); + return (N) V1NetworkPolicySpecFluent.this.setToIngress(index, builder.build()); } public N endIngress() { return and(); } - } public class PodSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + PodSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1NetworkPolicySpecFluent.this.withPodSelector(builder.build()); } @@ -550,7 +727,5 @@ public N endPodSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java index c73741fab4..715bb4c6a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeAddressBuilder extends V1NodeAddressFluent implements VisitableBuilder{ + + V1NodeAddressFluent fluent; + public V1NodeAddressBuilder() { this(new V1NodeAddress()); } @@ -10,17 +14,16 @@ public V1NodeAddressBuilder(V1NodeAddressFluent fluent) { this(fluent, new V1NodeAddress()); } - public V1NodeAddressBuilder(V1NodeAddressFluent fluent,V1NodeAddress instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeAddressBuilder(V1NodeAddress instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeAddressFluent fluent; + public V1NodeAddressBuilder(V1NodeAddressFluent fluent,V1NodeAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeAddress build() { V1NodeAddress buildable = new V1NodeAddress(); buildable.setAddress(fluent.getAddress()); @@ -28,5 +31,4 @@ public V1NodeAddress build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java index 63710862b3..d655d5a23b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeAddressFluent> extends BaseFluent{ +public class V1NodeAddressFluent> extends BaseFluent{ + + private String address; + private String type; + public V1NodeAddressFluent() { } public V1NodeAddressFluent(V1NodeAddress instance) { this.copyInstance(instance); } - private String address; - private String type; - + protected void copyInstance(V1NodeAddress instance) { - instance = (instance != null ? instance : new V1NodeAddress()); + instance = instance != null ? instance : new V1NodeAddress(); if (instance != null) { - this.withAddress(instance.getAddress()); - this.withType(instance.getType()); - } + this.withAddress(instance.getAddress()); + this.withType(instance.getType()); + } } - public String getAddress() { - return this.address; - } - - public A withAddress(String address) { - this.address = address; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeAddressFluent that = (V1NodeAddressFluent) o; + if (!(Objects.equals(address, that.address))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasAddress() { - return this.address != null; + public String getAddress() { + return this.address; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasAddress() { + return this.address != null; } 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; - V1NodeAddressFluent that = (V1NodeAddressFluent) o; - if (!java.util.Objects.equals(address, that.address)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(address, type, super.hashCode()); + return Objects.hash(address, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (address != null) { sb.append("address:"); sb.append(address + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(address == null)) { + sb.append("address:"); + sb.append(address); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } - + public A withAddress(String address) { + this.address = address; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java index 13f9d4aaeb..2458689efd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeAffinityBuilder extends V1NodeAffinityFluent implements VisitableBuilder{ + + V1NodeAffinityFluent fluent; + public V1NodeAffinityBuilder() { this(new V1NodeAffinity()); } @@ -10,17 +14,16 @@ public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent) { this(fluent, new V1NodeAffinity()); } - public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent,V1NodeAffinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeAffinityBuilder(V1NodeAffinity instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeAffinityFluent fluent; + public V1NodeAffinityBuilder(V1NodeAffinityFluent fluent,V1NodeAffinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeAffinity build() { V1NodeAffinity buildable = new V1NodeAffinity(); buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.buildPreferredDuringSchedulingIgnoredDuringExecution()); @@ -28,5 +31,4 @@ public V1NodeAffinity build() { return buildable; } - } \ No newline at end of file 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..12d9c5763a 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 @@ -1,85 +1,98 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeAffinityFluent> extends BaseFluent{ +public class V1NodeAffinityFluent> extends BaseFluent{ + + private ArrayList preferredDuringSchedulingIgnoredDuringExecution; + private V1NodeSelectorBuilder requiredDuringSchedulingIgnoredDuringExecution; + public V1NodeAffinityFluent() { } public V1NodeAffinityFluent(V1NodeAffinity instance) { this.copyInstance(instance); } - private ArrayList preferredDuringSchedulingIgnoredDuringExecution; - private V1NodeSelectorBuilder requiredDuringSchedulingIgnoredDuringExecution; - - protected void copyInstance(V1NodeAffinity instance) { - instance = (instance != null ? instance : new V1NodeAffinity()); - if (instance != null) { - this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } + + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); } - 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);} - return (A)this; + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); } - public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + 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(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } + return (A) this; } - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public V1PreferredSchedulingTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PreferredSchedulingTerm item : items) {V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public V1PreferredSchedulingTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution.get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); - while (each.hasNext()) { - V1PreferredSchedulingTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1PreferredSchedulingTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PreferredSchedulingTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A)this; + return null; } public List buildPreferredDuringSchedulingIgnoredDuringExecution() { @@ -90,21 +103,84 @@ public V1PreferredSchedulingTerm buildPreferredDuringSchedulingIgnoredDuringExec return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); } - public V1PreferredSchedulingTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); + public V1NodeSelector buildRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null ? this.requiredDuringSchedulingIgnoredDuringExecution.build() : null; } - public V1PreferredSchedulingTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution.get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); + protected void copyInstance(V1NodeAffinity instance) { + instance = instance != null ? instance : new V1NodeAffinity(); + if (instance != null) { + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); + } } - public V1PreferredSchedulingTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PreferredSchedulingTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } + public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { + if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + } + + public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { + int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + } + + public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + int index = -1; + for (int i = 0;i < preferredDuringSchedulingIgnoredDuringExecution.size();i++) { + if (predicate.test(preferredDuringSchedulingIgnoredDuringExecution.get(i))) { + index = i; + break; } - return null; + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecution() { + return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(new V1NodeSelectorBuilder().build())); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { + return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(item)); + } + + public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { + if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution() { + return this.withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(Optional.ofNullable(this.buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeAffinityFluent that = (V1NodeAffinityFluent) o; + if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + if (!(Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + return true; } public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { @@ -116,6 +192,101 @@ public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predic return false; } + public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null && !(this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty()); + } + + public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null; + } + + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + } + + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1PreferredSchedulingTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PreferredSchedulingTerm item : items) { + V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + if (preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + while (each.hasNext()) { + V1PreferredSchedulingTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PreferredSchedulingTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + } + + 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").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(preferredDuringSchedulingIgnoredDuringExecution == null) && !(preferredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); + sb.append(preferredDuringSchedulingIgnoredDuringExecution); + sb.append(","); + } + if (!(requiredDuringSchedulingIgnoredDuringExecution == null)) { + sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); + sb.append(requiredDuringSchedulingIgnoredDuringExecution); + } + sb.append("}"); + return sb.toString(); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecution() { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(null); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(item); + } + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); @@ -131,7 +302,7 @@ public A withPreferredDuringSchedulingIgnoredDuringExecution(List addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); - } - - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1PreferredSchedulingTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); - } - - public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PreferredSchedulingTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); - } - - public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { - if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); - } - - public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { - if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); - } - - public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { - int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); - } - - public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1PreferredSchedulingTermFluent> implements Nested{ - public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null; - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(null); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(item); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution() { - return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(java.util.Optional.ofNullable(buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(null)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecution() { - return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(java.util.Optional.ofNullable(buildRequiredDuringSchedulingIgnoredDuringExecution()).orElse(new V1NodeSelectorBuilder().build())); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editOrNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1NodeSelector item) { - return withNewRequiredDuringSchedulingIgnoredDuringExecutionLike(java.util.Optional.ofNullable(buildRequiredDuringSchedulingIgnoredDuringExecution()).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; - V1NodeAffinityFluent that = (V1NodeAffinityFluent) o; - if (!java.util.Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution)) return false; - if (!java.util.Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution, super.hashCode()); - } + V1PreferredSchedulingTermBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (preferredDuringSchedulingIgnoredDuringExecution != null && !preferredDuringSchedulingIgnoredDuringExecution.isEmpty()) { sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); sb.append(preferredDuringSchedulingIgnoredDuringExecution + ","); } - if (requiredDuringSchedulingIgnoredDuringExecution != null) { sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); sb.append(requiredDuringSchedulingIgnoredDuringExecution); } - sb.append("}"); - return sb.toString(); - } - public class PreferredDuringSchedulingIgnoredDuringExecutionNested extends V1PreferredSchedulingTermFluent> implements Nested{ PreferredDuringSchedulingIgnoredDuringExecutionNested(int index,V1PreferredSchedulingTerm item) { this.index = index; this.builder = new V1PreferredSchedulingTermBuilder(this, item); } - V1PreferredSchedulingTermBuilder builder; - int index; - + public N and() { - return (N) V1NodeAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1NodeAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endPreferredDuringSchedulingIgnoredDuringExecution() { return and(); } - } public class RequiredDuringSchedulingIgnoredDuringExecutionNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + RequiredDuringSchedulingIgnoredDuringExecutionNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1NodeAffinityFluent.this.withRequiredDuringSchedulingIgnoredDuringExecution(builder.build()); } @@ -279,7 +361,5 @@ public N endRequiredDuringSchedulingIgnoredDuringExecution() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java index e3df806dc0..4127c80edc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeBuilder extends V1NodeFluent implements VisitableBuilder{ + + V1NodeFluent fluent; + public V1NodeBuilder() { this(new V1Node()); } @@ -10,17 +14,16 @@ public V1NodeBuilder(V1NodeFluent fluent) { this(fluent, new V1Node()); } - public V1NodeBuilder(V1NodeFluent fluent,V1Node instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeBuilder(V1Node instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeFluent fluent; + public V1NodeBuilder(V1NodeFluent fluent,V1Node instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Node build() { V1Node buildable = new V1Node(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1Node build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java index 88454e9e66..f0e6e0899f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeConditionBuilder extends V1NodeConditionFluent implements VisitableBuilder{ + + V1NodeConditionFluent fluent; + public V1NodeConditionBuilder() { this(new V1NodeCondition()); } @@ -10,17 +14,16 @@ public V1NodeConditionBuilder(V1NodeConditionFluent fluent) { this(fluent, new V1NodeCondition()); } - public V1NodeConditionBuilder(V1NodeConditionFluent fluent,V1NodeCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeConditionBuilder(V1NodeCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeConditionFluent fluent; + public V1NodeConditionBuilder(V1NodeConditionFluent fluent,V1NodeCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeCondition build() { V1NodeCondition buildable = new V1NodeCondition(); buildable.setLastHeartbeatTime(fluent.getLastHeartbeatTime()); @@ -32,5 +35,4 @@ public V1NodeCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java index 6cc7d33f41..2d80c174d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java @@ -1,149 +1,193 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeConditionFluent> extends BaseFluent{ - public V1NodeConditionFluent() { - } - - public V1NodeConditionFluent(V1NodeCondition instance) { - this.copyInstance(instance); - } +public class V1NodeConditionFluent> extends BaseFluent{ + private OffsetDateTime lastHeartbeatTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1NodeConditionFluent() { + } + public V1NodeConditionFluent(V1NodeCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1NodeCondition instance) { - instance = (instance != null ? instance : new V1NodeCondition()); + instance = instance != null ? instance : new V1NodeCondition(); if (instance != null) { - this.withLastHeartbeatTime(instance.getLastHeartbeatTime()); - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastHeartbeatTime() { - return this.lastHeartbeatTime; + this.withLastHeartbeatTime(instance.getLastHeartbeatTime()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } - public A withLastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { - this.lastHeartbeatTime = lastHeartbeatTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeConditionFluent that = (V1NodeConditionFluent) o; + if (!(Objects.equals(lastHeartbeatTime, that.lastHeartbeatTime))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastHeartbeatTime() { - return this.lastHeartbeatTime != null; + public OffsetDateTime getLastHeartbeatTime() { + return this.lastHeartbeatTime; } public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public String getMessage() { + return this.message; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public String getReason() { + return this.reason; } - public String getMessage() { - return this.message; + public String getStatus() { + return this.status; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getType() { + return this.type; } - public boolean hasMessage() { - return this.message != null; + public boolean hasLastHeartbeatTime() { + return this.lastHeartbeatTime != null; } - public String getReason() { - return this.reason; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastHeartbeatTime, lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastHeartbeatTime == null)) { + sb.append("lastHeartbeatTime:"); + sb.append(lastHeartbeatTime); + sb.append(","); + } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastHeartbeatTime(OffsetDateTime lastHeartbeatTime) { + this.lastHeartbeatTime = lastHeartbeatTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1NodeConditionFluent that = (V1NodeConditionFluent) o; - if (!java.util.Objects.equals(lastHeartbeatTime, that.lastHeartbeatTime)) 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(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 A withMessage(String message) { + this.message = message; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastHeartbeatTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (lastHeartbeatTime != null) { sb.append("lastHeartbeatTime:"); sb.append(lastHeartbeatTime + ","); } - 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(); + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java index fe38f8407b..e6a91d00da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeConfigSourceBuilder extends V1NodeConfigSourceFluent implements VisitableBuilder{ + + V1NodeConfigSourceFluent fluent; + public V1NodeConfigSourceBuilder() { this(new V1NodeConfigSource()); } @@ -10,22 +14,20 @@ public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent) { this(fluent, new V1NodeConfigSource()); } - public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent,V1NodeConfigSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeConfigSourceBuilder(V1NodeConfigSource instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeConfigSourceFluent fluent; + public V1NodeConfigSourceBuilder(V1NodeConfigSourceFluent fluent,V1NodeConfigSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeConfigSource build() { V1NodeConfigSource buildable = new V1NodeConfigSource(); buildable.setConfigMap(fluent.buildConfigMap()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java index 8375836170..86e79cfcdc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java @@ -1,97 +1,115 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeConfigSourceFluent> extends BaseFluent{ +public class V1NodeConfigSourceFluent> extends BaseFluent{ + + private V1ConfigMapNodeConfigSourceBuilder configMap; + public V1NodeConfigSourceFluent() { } public V1NodeConfigSourceFluent(V1NodeConfigSource instance) { this.copyInstance(instance); } - private V1ConfigMapNodeConfigSourceBuilder configMap; - - protected void copyInstance(V1NodeConfigSource instance) { - instance = (instance != null ? instance : new V1NodeConfigSource()); - if (instance != null) { - this.withConfigMap(instance.getConfigMap()); - } - } - + public V1ConfigMapNodeConfigSource buildConfigMap() { return this.configMap != null ? this.configMap.build() : null; } - public A withConfigMap(V1ConfigMapNodeConfigSource configMap) { - this._visitables.remove("configMap"); - if (configMap != null) { - this.configMap = new V1ConfigMapNodeConfigSourceBuilder(configMap); - this._visitables.get("configMap").add(this.configMap); - } else { - this.configMap = null; - this._visitables.get("configMap").remove(this.configMap); + protected void copyInstance(V1NodeConfigSource instance) { + instance = instance != null ? instance : new V1NodeConfigSource(); + if (instance != null) { + this.withConfigMap(instance.getConfigMap()); } - return (A) this; - } - - public boolean hasConfigMap() { - return this.configMap != null; - } - - public ConfigMapNested withNewConfigMap() { - return new ConfigMapNested(null); - } - - public ConfigMapNested withNewConfigMapLike(V1ConfigMapNodeConfigSource item) { - return new ConfigMapNested(item); } public ConfigMapNested editConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(null)); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); } public ConfigMapNested editOrNewConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(new V1ConfigMapNodeConfigSourceBuilder().build())); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(new V1ConfigMapNodeConfigSourceBuilder().build())); } public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapNodeConfigSource item) { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(item)); + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).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; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeConfigSourceFluent that = (V1NodeConfigSourceFluent) o; - if (!java.util.Objects.equals(configMap, that.configMap)) return false; + if (!(Objects.equals(configMap, that.configMap))) { + return false; + } return true; } + public boolean hasConfigMap() { + return this.configMap != null; + } + public int hashCode() { - return java.util.Objects.hash(configMap, super.hashCode()); + return Objects.hash(configMap); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (configMap != null) { sb.append("configMap:"); sb.append(configMap); } + if (!(configMap == null)) { + sb.append("configMap:"); + sb.append(configMap); + } sb.append("}"); return sb.toString(); } + + public A withConfigMap(V1ConfigMapNodeConfigSource configMap) { + this._visitables.remove("configMap"); + if (configMap != null) { + this.configMap = new V1ConfigMapNodeConfigSourceBuilder(configMap); + this._visitables.get("configMap").add(this.configMap); + } else { + this.configMap = null; + this._visitables.get("configMap").remove(this.configMap); + } + return (A) this; + } + + public ConfigMapNested withNewConfigMap() { + return new ConfigMapNested(null); + } + + public ConfigMapNested withNewConfigMapLike(V1ConfigMapNodeConfigSource item) { + return new ConfigMapNested(item); + } public class ConfigMapNested extends V1ConfigMapNodeConfigSourceFluent> implements Nested{ + + V1ConfigMapNodeConfigSourceBuilder builder; + ConfigMapNested(V1ConfigMapNodeConfigSource item) { this.builder = new V1ConfigMapNodeConfigSourceBuilder(this, item); } - V1ConfigMapNodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeConfigSourceFluent.this.withConfigMap(builder.build()); } @@ -100,7 +118,5 @@ public N endConfigMap() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java index 0d14d091da..278178a88e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeConfigStatusBuilder extends V1NodeConfigStatusFluent implements VisitableBuilder{ + + V1NodeConfigStatusFluent fluent; + public V1NodeConfigStatusBuilder() { this(new V1NodeConfigStatus()); } @@ -10,17 +14,16 @@ public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent) { this(fluent, new V1NodeConfigStatus()); } - public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,V1NodeConfigStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeConfigStatusBuilder(V1NodeConfigStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeConfigStatusFluent fluent; + public V1NodeConfigStatusBuilder(V1NodeConfigStatusFluent fluent,V1NodeConfigStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeConfigStatus build() { V1NodeConfigStatus buildable = new V1NodeConfigStatus(); buildable.setActive(fluent.buildActive()); @@ -30,5 +33,4 @@ public V1NodeConfigStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java index 2cac576d5f..e963f36d92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java @@ -1,132 +1,193 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeConfigStatusFluent> extends BaseFluent{ +public class V1NodeConfigStatusFluent> extends BaseFluent{ + + private V1NodeConfigSourceBuilder active; + private V1NodeConfigSourceBuilder assigned; + private String error; + private V1NodeConfigSourceBuilder lastKnownGood; + public V1NodeConfigStatusFluent() { } public V1NodeConfigStatusFluent(V1NodeConfigStatus instance) { this.copyInstance(instance); } - private V1NodeConfigSourceBuilder active; - private V1NodeConfigSourceBuilder assigned; - private String error; - private V1NodeConfigSourceBuilder lastKnownGood; + + public V1NodeConfigSource buildActive() { + return this.active != null ? this.active.build() : null; + } + + public V1NodeConfigSource buildAssigned() { + return this.assigned != null ? this.assigned.build() : null; + } + + public V1NodeConfigSource buildLastKnownGood() { + return this.lastKnownGood != null ? this.lastKnownGood.build() : null; + } protected void copyInstance(V1NodeConfigStatus instance) { - instance = (instance != null ? instance : new V1NodeConfigStatus()); + instance = instance != null ? instance : new V1NodeConfigStatus(); if (instance != null) { - this.withActive(instance.getActive()); - this.withAssigned(instance.getAssigned()); - this.withError(instance.getError()); - this.withLastKnownGood(instance.getLastKnownGood()); - } + this.withActive(instance.getActive()); + this.withAssigned(instance.getAssigned()); + this.withError(instance.getError()); + this.withLastKnownGood(instance.getLastKnownGood()); + } } - public V1NodeConfigSource buildActive() { - return this.active != null ? this.active.build() : null; + public ActiveNested editActive() { + return this.withNewActiveLike(Optional.ofNullable(this.buildActive()).orElse(null)); } - public A withActive(V1NodeConfigSource active) { - this._visitables.remove("active"); - if (active != null) { - this.active = new V1NodeConfigSourceBuilder(active); - this._visitables.get("active").add(this.active); - } else { - this.active = null; - this._visitables.get("active").remove(this.active); - } - return (A) this; + public AssignedNested editAssigned() { + return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(null)); } - public boolean hasActive() { - return this.active != null; + public LastKnownGoodNested editLastKnownGood() { + return this.withNewLastKnownGoodLike(Optional.ofNullable(this.buildLastKnownGood()).orElse(null)); } - public ActiveNested withNewActive() { - return new ActiveNested(null); + public ActiveNested editOrNewActive() { + return this.withNewActiveLike(Optional.ofNullable(this.buildActive()).orElse(new V1NodeConfigSourceBuilder().build())); } - public ActiveNested withNewActiveLike(V1NodeConfigSource item) { - return new ActiveNested(item); + public ActiveNested editOrNewActiveLike(V1NodeConfigSource item) { + return this.withNewActiveLike(Optional.ofNullable(this.buildActive()).orElse(item)); } - public ActiveNested editActive() { - return withNewActiveLike(java.util.Optional.ofNullable(buildActive()).orElse(null)); + public AssignedNested editOrNewAssigned() { + return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(new V1NodeConfigSourceBuilder().build())); } - public ActiveNested editOrNewActive() { - return withNewActiveLike(java.util.Optional.ofNullable(buildActive()).orElse(new V1NodeConfigSourceBuilder().build())); + public AssignedNested editOrNewAssignedLike(V1NodeConfigSource item) { + return this.withNewAssignedLike(Optional.ofNullable(this.buildAssigned()).orElse(item)); } - public ActiveNested editOrNewActiveLike(V1NodeConfigSource item) { - return withNewActiveLike(java.util.Optional.ofNullable(buildActive()).orElse(item)); + public LastKnownGoodNested editOrNewLastKnownGood() { + return this.withNewLastKnownGoodLike(Optional.ofNullable(this.buildLastKnownGood()).orElse(new V1NodeConfigSourceBuilder().build())); } - public V1NodeConfigSource buildAssigned() { - return this.assigned != null ? this.assigned.build() : null; + public LastKnownGoodNested editOrNewLastKnownGoodLike(V1NodeConfigSource item) { + return this.withNewLastKnownGoodLike(Optional.ofNullable(this.buildLastKnownGood()).orElse(item)); } - public A withAssigned(V1NodeConfigSource assigned) { - this._visitables.remove("assigned"); - if (assigned != null) { - this.assigned = new V1NodeConfigSourceBuilder(assigned); - this._visitables.get("assigned").add(this.assigned); - } else { - this.assigned = null; - this._visitables.get("assigned").remove(this.assigned); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeConfigStatusFluent that = (V1NodeConfigStatusFluent) o; + if (!(Objects.equals(active, that.active))) { + return false; + } + if (!(Objects.equals(assigned, that.assigned))) { + return false; + } + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(lastKnownGood, that.lastKnownGood))) { + return false; + } + return true; } - public boolean hasAssigned() { - return this.assigned != null; + public String getError() { + return this.error; } - public AssignedNested withNewAssigned() { - return new AssignedNested(null); + public boolean hasActive() { + return this.active != null; } - public AssignedNested withNewAssignedLike(V1NodeConfigSource item) { - return new AssignedNested(item); + public boolean hasAssigned() { + return this.assigned != null; } - public AssignedNested editAssigned() { - return withNewAssignedLike(java.util.Optional.ofNullable(buildAssigned()).orElse(null)); + public boolean hasError() { + return this.error != null; } - public AssignedNested editOrNewAssigned() { - return withNewAssignedLike(java.util.Optional.ofNullable(buildAssigned()).orElse(new V1NodeConfigSourceBuilder().build())); + public boolean hasLastKnownGood() { + return this.lastKnownGood != null; } - public AssignedNested editOrNewAssignedLike(V1NodeConfigSource item) { - return withNewAssignedLike(java.util.Optional.ofNullable(buildAssigned()).orElse(item)); + public int hashCode() { + return Objects.hash(active, assigned, error, lastKnownGood); } - public String getError() { - return this.error; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(active == null)) { + sb.append("active:"); + sb.append(active); + sb.append(","); + } + if (!(assigned == null)) { + sb.append("assigned:"); + sb.append(assigned); + sb.append(","); + } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(lastKnownGood == null)) { + sb.append("lastKnownGood:"); + sb.append(lastKnownGood); + } + sb.append("}"); + return sb.toString(); } - public A withError(String error) { - this.error = error; + public A withActive(V1NodeConfigSource active) { + this._visitables.remove("active"); + if (active != null) { + this.active = new V1NodeConfigSourceBuilder(active); + this._visitables.get("active").add(this.active); + } else { + this.active = null; + this._visitables.get("active").remove(this.active); + } return (A) this; } - public boolean hasError() { - return this.error != null; + public A withAssigned(V1NodeConfigSource assigned) { + this._visitables.remove("assigned"); + if (assigned != null) { + this.assigned = new V1NodeConfigSourceBuilder(assigned); + this._visitables.get("assigned").add(this.assigned); + } else { + this.assigned = null; + this._visitables.get("assigned").remove(this.assigned); + } + return (A) this; } - public V1NodeConfigSource buildLastKnownGood() { - return this.lastKnownGood != null ? this.lastKnownGood.build() : null; + public A withError(String error) { + this.error = error; + return (A) this; } public A withLastKnownGood(V1NodeConfigSource lastKnownGood) { @@ -141,62 +202,37 @@ public A withLastKnownGood(V1NodeConfigSource lastKnownGood) { return (A) this; } - public boolean hasLastKnownGood() { - return this.lastKnownGood != null; - } - - public LastKnownGoodNested withNewLastKnownGood() { - return new LastKnownGoodNested(null); + public ActiveNested withNewActive() { + return new ActiveNested(null); } - public LastKnownGoodNested withNewLastKnownGoodLike(V1NodeConfigSource item) { - return new LastKnownGoodNested(item); + public ActiveNested withNewActiveLike(V1NodeConfigSource item) { + return new ActiveNested(item); } - public LastKnownGoodNested editLastKnownGood() { - return withNewLastKnownGoodLike(java.util.Optional.ofNullable(buildLastKnownGood()).orElse(null)); + public AssignedNested withNewAssigned() { + return new AssignedNested(null); } - public LastKnownGoodNested editOrNewLastKnownGood() { - return withNewLastKnownGoodLike(java.util.Optional.ofNullable(buildLastKnownGood()).orElse(new V1NodeConfigSourceBuilder().build())); + public AssignedNested withNewAssignedLike(V1NodeConfigSource item) { + return new AssignedNested(item); } - public LastKnownGoodNested editOrNewLastKnownGoodLike(V1NodeConfigSource item) { - return withNewLastKnownGoodLike(java.util.Optional.ofNullable(buildLastKnownGood()).orElse(item)); + public LastKnownGoodNested withNewLastKnownGood() { + return new LastKnownGoodNested(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; - V1NodeConfigStatusFluent that = (V1NodeConfigStatusFluent) o; - if (!java.util.Objects.equals(active, that.active)) return false; - if (!java.util.Objects.equals(assigned, that.assigned)) return false; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(lastKnownGood, that.lastKnownGood)) return false; - return true; + public LastKnownGoodNested withNewLastKnownGoodLike(V1NodeConfigSource item) { + return new LastKnownGoodNested(item); } + public class ActiveNested extends V1NodeConfigSourceFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(active, assigned, error, lastKnownGood, super.hashCode()); - } + V1NodeConfigSourceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (active != null) { sb.append("active:"); sb.append(active + ","); } - if (assigned != null) { sb.append("assigned:"); sb.append(assigned + ","); } - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (lastKnownGood != null) { sb.append("lastKnownGood:"); sb.append(lastKnownGood); } - sb.append("}"); - return sb.toString(); - } - public class ActiveNested extends V1NodeConfigSourceFluent> implements Nested{ ActiveNested(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - V1NodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeConfigStatusFluent.this.withActive(builder.build()); } @@ -205,14 +241,15 @@ public N endActive() { return and(); } - } public class AssignedNested extends V1NodeConfigSourceFluent> implements Nested{ + + V1NodeConfigSourceBuilder builder; + AssignedNested(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - V1NodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeConfigStatusFluent.this.withAssigned(builder.build()); } @@ -221,14 +258,15 @@ public N endAssigned() { return and(); } - } public class LastKnownGoodNested extends V1NodeConfigSourceFluent> implements Nested{ + + V1NodeConfigSourceBuilder builder; + LastKnownGoodNested(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - V1NodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeConfigStatusFluent.this.withLastKnownGood(builder.build()); } @@ -237,7 +275,5 @@ public N endLastKnownGood() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java index 2ce9e7fc27..a5eebe1f2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeDaemonEndpointsBuilder extends V1NodeDaemonEndpointsFluent implements VisitableBuilder{ + + V1NodeDaemonEndpointsFluent fluent; + public V1NodeDaemonEndpointsBuilder() { this(new V1NodeDaemonEndpoints()); } @@ -10,22 +14,20 @@ public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent) { this(fluent, new V1NodeDaemonEndpoints()); } - public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent,V1NodeDaemonEndpoints instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpoints instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeDaemonEndpointsFluent fluent; + public V1NodeDaemonEndpointsBuilder(V1NodeDaemonEndpointsFluent fluent,V1NodeDaemonEndpoints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeDaemonEndpoints build() { V1NodeDaemonEndpoints buildable = new V1NodeDaemonEndpoints(); buildable.setKubeletEndpoint(fluent.buildKubeletEndpoint()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java index a71f7e4a4b..e8be23ed73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java @@ -1,97 +1,115 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeDaemonEndpointsFluent> extends BaseFluent{ +public class V1NodeDaemonEndpointsFluent> extends BaseFluent{ + + private V1DaemonEndpointBuilder kubeletEndpoint; + public V1NodeDaemonEndpointsFluent() { } public V1NodeDaemonEndpointsFluent(V1NodeDaemonEndpoints instance) { this.copyInstance(instance); } - private V1DaemonEndpointBuilder kubeletEndpoint; - - protected void copyInstance(V1NodeDaemonEndpoints instance) { - instance = (instance != null ? instance : new V1NodeDaemonEndpoints()); - if (instance != null) { - this.withKubeletEndpoint(instance.getKubeletEndpoint()); - } - } - + public V1DaemonEndpoint buildKubeletEndpoint() { return this.kubeletEndpoint != null ? this.kubeletEndpoint.build() : null; } - public A withKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { - this._visitables.remove("kubeletEndpoint"); - if (kubeletEndpoint != null) { - this.kubeletEndpoint = new V1DaemonEndpointBuilder(kubeletEndpoint); - this._visitables.get("kubeletEndpoint").add(this.kubeletEndpoint); - } else { - this.kubeletEndpoint = null; - this._visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); + protected void copyInstance(V1NodeDaemonEndpoints instance) { + instance = instance != null ? instance : new V1NodeDaemonEndpoints(); + if (instance != null) { + this.withKubeletEndpoint(instance.getKubeletEndpoint()); } - return (A) this; - } - - public boolean hasKubeletEndpoint() { - return this.kubeletEndpoint != null; - } - - public KubeletEndpointNested withNewKubeletEndpoint() { - return new KubeletEndpointNested(null); - } - - public KubeletEndpointNested withNewKubeletEndpointLike(V1DaemonEndpoint item) { - return new KubeletEndpointNested(item); } public KubeletEndpointNested editKubeletEndpoint() { - return withNewKubeletEndpointLike(java.util.Optional.ofNullable(buildKubeletEndpoint()).orElse(null)); + return this.withNewKubeletEndpointLike(Optional.ofNullable(this.buildKubeletEndpoint()).orElse(null)); } public KubeletEndpointNested editOrNewKubeletEndpoint() { - return withNewKubeletEndpointLike(java.util.Optional.ofNullable(buildKubeletEndpoint()).orElse(new V1DaemonEndpointBuilder().build())); + return this.withNewKubeletEndpointLike(Optional.ofNullable(this.buildKubeletEndpoint()).orElse(new V1DaemonEndpointBuilder().build())); } public KubeletEndpointNested editOrNewKubeletEndpointLike(V1DaemonEndpoint item) { - return withNewKubeletEndpointLike(java.util.Optional.ofNullable(buildKubeletEndpoint()).orElse(item)); + return this.withNewKubeletEndpointLike(Optional.ofNullable(this.buildKubeletEndpoint()).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; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1NodeDaemonEndpointsFluent that = (V1NodeDaemonEndpointsFluent) o; - if (!java.util.Objects.equals(kubeletEndpoint, that.kubeletEndpoint)) return false; + if (!(Objects.equals(kubeletEndpoint, that.kubeletEndpoint))) { + return false; + } return true; } + public boolean hasKubeletEndpoint() { + return this.kubeletEndpoint != null; + } + public int hashCode() { - return java.util.Objects.hash(kubeletEndpoint, super.hashCode()); + return Objects.hash(kubeletEndpoint); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (kubeletEndpoint != null) { sb.append("kubeletEndpoint:"); sb.append(kubeletEndpoint); } + if (!(kubeletEndpoint == null)) { + sb.append("kubeletEndpoint:"); + sb.append(kubeletEndpoint); + } sb.append("}"); return sb.toString(); } + + public A withKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { + this._visitables.remove("kubeletEndpoint"); + if (kubeletEndpoint != null) { + this.kubeletEndpoint = new V1DaemonEndpointBuilder(kubeletEndpoint); + this._visitables.get("kubeletEndpoint").add(this.kubeletEndpoint); + } else { + this.kubeletEndpoint = null; + this._visitables.get("kubeletEndpoint").remove(this.kubeletEndpoint); + } + return (A) this; + } + + public KubeletEndpointNested withNewKubeletEndpoint() { + return new KubeletEndpointNested(null); + } + + public KubeletEndpointNested withNewKubeletEndpointLike(V1DaemonEndpoint item) { + return new KubeletEndpointNested(item); + } public class KubeletEndpointNested extends V1DaemonEndpointFluent> implements Nested{ + + V1DaemonEndpointBuilder builder; + KubeletEndpointNested(V1DaemonEndpoint item) { this.builder = new V1DaemonEndpointBuilder(this, item); } - V1DaemonEndpointBuilder builder; - + public N and() { return (N) V1NodeDaemonEndpointsFluent.this.withKubeletEndpoint(builder.build()); } @@ -100,7 +118,5 @@ public N endKubeletEndpoint() { return and(); } - } - } \ No newline at end of file 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..3bc809423f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1NodeFeaturesBuilder extends V1NodeFeaturesFluent implements VisitableBuilder{ + + V1NodeFeaturesFluent fluent; + + public V1NodeFeaturesBuilder() { + this(new V1NodeFeatures()); + } + + public V1NodeFeaturesBuilder(V1NodeFeaturesFluent fluent) { + this(fluent, new V1NodeFeatures()); + } + + public V1NodeFeaturesBuilder(V1NodeFeatures instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodeFeaturesBuilder(V1NodeFeaturesFluent fluent,V1NodeFeatures instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..570d609331 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java @@ -0,0 +1,82 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NodeFeaturesFluent> extends BaseFluent{ + + private Boolean supplementalGroupsPolicy; + + public V1NodeFeaturesFluent() { + } + + public V1NodeFeaturesFluent(V1NodeFeatures instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1NodeFeatures instance) { + instance = instance != null ? instance : new V1NodeFeatures(); + if (instance != null) { + this.withSupplementalGroupsPolicy(instance.getSupplementalGroupsPolicy()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeFeaturesFluent that = (V1NodeFeaturesFluent) o; + if (!(Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy))) { + return false; + } + return true; + } + + public Boolean getSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy; + } + + public boolean hasSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy != null; + } + + public int hashCode() { + return Objects.hash(supplementalGroupsPolicy); + } + + 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); + } + + public A withSupplementalGroupsPolicy(Boolean supplementalGroupsPolicy) { + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java index 7f9e472d41..488ebb9d2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeFluent> extends BaseFluent{ +public class V1NodeFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1NodeSpecBuilder spec; + private V1NodeStatusBuilder status; + public V1NodeFluent() { } public V1NodeFluent(V1Node instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1NodeSpecBuilder spec; - private V1NodeStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1NodeSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1NodeStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1Node instance) { - instance = (instance != null ? instance : new V1Node()); + instance = instance != null ? instance : new V1Node(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1NodeSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1NodeSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1NodeStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1NodeStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeFluent that = (V1NodeFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1NodeSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1NodeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1NodeStatus item) { + return new StatusNested(item); } public A withSpec(V1NodeSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1NodeSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1NodeSpec 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 V1NodeSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1NodeSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1NodeStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1NodeStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1NodeStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1NodeStatus 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 V1NodeStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1NodeStatus 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; - V1NodeFluent that = (V1NodeFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1NodeFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1NodeSpecFluent> implements Nested{ + + V1NodeSpecBuilder builder; + SpecNested(V1NodeSpec item) { this.builder = new V1NodeSpecBuilder(this, item); } - V1NodeSpecBuilder builder; - + public N and() { return (N) V1NodeFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1NodeStatusFluent> implements Nested{ + + V1NodeStatusBuilder builder; + StatusNested(V1NodeStatus item) { this.builder = new V1NodeStatusBuilder(this, item); } - V1NodeStatusBuilder builder; - + public N and() { return (N) V1NodeFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java index 57d4af176c..47e80d88c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeListBuilder extends V1NodeListFluent implements VisitableBuilder{ + + V1NodeListFluent fluent; + public V1NodeListBuilder() { this(new V1NodeList()); } @@ -10,17 +14,16 @@ public V1NodeListBuilder(V1NodeListFluent fluent) { this(fluent, new V1NodeList()); } - public V1NodeListBuilder(V1NodeListFluent fluent,V1NodeList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeListBuilder(V1NodeList instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeListFluent fluent; + public V1NodeListBuilder(V1NodeListFluent fluent,V1NodeList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeList build() { V1NodeList buildable = new V1NodeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1NodeList build() { return buildable; } - } \ 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..0961069fb2 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeListFluent> extends BaseFluent{ +public class V1NodeListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1NodeListFluent() { } public V1NodeListFluent(V1NodeList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1NodeList instance) { - instance = (instance != null ? instance : new V1NodeList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Node item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Node... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Node item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Node buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Node... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Node buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Node... items) { - if (this.items == null) return (A)this; - for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Node buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Node item : items) {V1NodeBuilder builder = new V1NodeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Node buildMatchingItem(Predicate predicate) { + for (V1NodeBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1NodeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1NodeList instance) { + instance = instance != null ? instance : new V1NodeList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Node buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Node buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Node buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeListFluent that = (V1NodeListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Node buildMatchingItem(Predicate predicate) { - for (V1NodeBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Node... items) { + if (this.items == null) { + return (A) this; + } + for (V1Node item : items) { + V1NodeBuilder builder = new V1NodeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1NodeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Node item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Node... items) { + public A withItems(V1Node... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Node... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Node item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Node 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1NodeFluent> implements Nested{ - 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; - V1NodeListFluent that = (V1NodeListFluent) 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()); - } + V1NodeBuilder builder; + int index; - 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 V1NodeFluent> implements Nested{ ItemsNested(int index,V1Node item) { this.index = index; this.builder = new V1NodeBuilder(this, item); } - V1NodeBuilder builder; - int index; - + public N and() { - return (N) V1NodeListFluent.this.setToItems(index,builder.build()); + return (N) V1NodeListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1NodeListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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 index 333cb9ff0a..1fb8d711dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeRuntimeHandlerBuilder extends V1NodeRuntimeHandlerFluent implements VisitableBuilder{ + + V1NodeRuntimeHandlerFluent fluent; + public V1NodeRuntimeHandlerBuilder() { this(new V1NodeRuntimeHandler()); } @@ -10,17 +14,16 @@ 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 V1NodeRuntimeHandlerBuilder(V1NodeRuntimeHandlerFluent fluent,V1NodeRuntimeHandler instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeRuntimeHandler build() { V1NodeRuntimeHandler buildable = new V1NodeRuntimeHandler(); buildable.setFeatures(fluent.buildFeatures()); @@ -28,5 +31,4 @@ public V1NodeRuntimeHandler build() { 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 index 22044406d7..ea3506bde6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeRuntimeHandlerFeaturesBuilder extends V1NodeRuntimeHandlerFeaturesFluent implements VisitableBuilder{ + + V1NodeRuntimeHandlerFeaturesFluent fluent; + public V1NodeRuntimeHandlerFeaturesBuilder() { this(new V1NodeRuntimeHandlerFeatures()); } @@ -10,22 +14,21 @@ public V1NodeRuntimeHandlerFeaturesBuilder(V1NodeRuntimeHandlerFeaturesFluent 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 V1NodeRuntimeHandlerFeaturesBuilder(V1NodeRuntimeHandlerFeaturesFluent fluent,V1NodeRuntimeHandlerFeatures instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index a99de4481f..871f4f9ae8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java @@ -1,61 +1,89 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeRuntimeHandlerFeaturesFluent> extends BaseFluent{ +public class V1NodeRuntimeHandlerFeaturesFluent> extends BaseFluent{ + + private Boolean recursiveReadOnlyMounts; + private Boolean userNamespaces; + public V1NodeRuntimeHandlerFeaturesFluent() { } public V1NodeRuntimeHandlerFeaturesFluent(V1NodeRuntimeHandlerFeatures instance) { this.copyInstance(instance); } - private Boolean recursiveReadOnlyMounts; - + protected void copyInstance(V1NodeRuntimeHandlerFeatures instance) { - instance = (instance != null ? instance : new V1NodeRuntimeHandlerFeatures()); + instance = instance != null ? instance : new V1NodeRuntimeHandlerFeatures(); if (instance != null) { - this.withRecursiveReadOnlyMounts(instance.getRecursiveReadOnlyMounts()); - } + this.withRecursiveReadOnlyMounts(instance.getRecursiveReadOnlyMounts()); + this.withUserNamespaces(instance.getUserNamespaces()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeRuntimeHandlerFeaturesFluent that = (V1NodeRuntimeHandlerFeaturesFluent) o; + if (!(Objects.equals(recursiveReadOnlyMounts, that.recursiveReadOnlyMounts))) { + return false; + } + if (!(Objects.equals(userNamespaces, that.userNamespaces))) { + return false; + } + return true; } public Boolean getRecursiveReadOnlyMounts() { return this.recursiveReadOnlyMounts; } - public A withRecursiveReadOnlyMounts(Boolean recursiveReadOnlyMounts) { - this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; - return (A) this; + public Boolean getUserNamespaces() { + return this.userNamespaces; } public boolean hasRecursiveReadOnlyMounts() { return this.recursiveReadOnlyMounts != 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; - return true; + public boolean hasUserNamespaces() { + return this.userNamespaces != null; } public int hashCode() { - return java.util.Objects.hash(recursiveReadOnlyMounts, super.hashCode()); + return Objects.hash(recursiveReadOnlyMounts, userNamespaces); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (recursiveReadOnlyMounts != null) { sb.append("recursiveReadOnlyMounts:"); sb.append(recursiveReadOnlyMounts); } + if (!(recursiveReadOnlyMounts == null)) { + sb.append("recursiveReadOnlyMounts:"); + sb.append(recursiveReadOnlyMounts); + sb.append(","); + } + if (!(userNamespaces == null)) { + sb.append("userNamespaces:"); + sb.append(userNamespaces); + } sb.append("}"); return sb.toString(); } @@ -64,5 +92,18 @@ public A withRecursiveReadOnlyMounts() { return withRecursiveReadOnlyMounts(true); } - + public A withRecursiveReadOnlyMounts(Boolean recursiveReadOnlyMounts) { + this.recursiveReadOnlyMounts = recursiveReadOnlyMounts; + return (A) this; + } + + public A withUserNamespaces() { + return withUserNamespaces(true); + } + + public A withUserNamespaces(Boolean userNamespaces) { + this.userNamespaces = userNamespaces; + return (A) this; + } + } \ 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 index 5fd2d64b3e..605c4085a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeRuntimeHandlerFluent> extends BaseFluent{ +public class V1NodeRuntimeHandlerFluent> extends BaseFluent{ + + private V1NodeRuntimeHandlerFeaturesBuilder features; + private String name; + 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); + protected void copyInstance(V1NodeRuntimeHandler instance) { + instance = instance != null ? instance : new V1NodeRuntimeHandler(); + if (instance != null) { + this.withFeatures(instance.getFeatures()); + this.withName(instance.getName()); } - 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)); + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(null)); } public FeaturesNested editOrNewFeatures() { - return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(new V1NodeRuntimeHandlerFeaturesBuilder().build())); + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(new V1NodeRuntimeHandlerFeaturesBuilder().build())); } public FeaturesNested editOrNewFeaturesLike(V1NodeRuntimeHandlerFeatures item) { - return withNewFeaturesLike(java.util.Optional.ofNullable(buildFeatures()).orElse(item)); + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeRuntimeHandlerFluent that = (V1NodeRuntimeHandlerFluent) o; + if (!(Objects.equals(features, that.features))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasFeatures() { + return this.features != null; } 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()); + return Objects.hash(features, name); } 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); } + if (!(features == null)) { + sb.append("features:"); + sb.append(features); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } + + 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 A withName(String name) { + this.name = name; + return (A) this; + } + + public FeaturesNested withNewFeatures() { + return new FeaturesNested(null); + } + + public FeaturesNested withNewFeaturesLike(V1NodeRuntimeHandlerFeatures item) { + return new FeaturesNested(item); + } public class FeaturesNested extends V1NodeRuntimeHandlerFeaturesFluent> implements Nested{ + + V1NodeRuntimeHandlerFeaturesBuilder builder; + FeaturesNested(V1NodeRuntimeHandlerFeatures item) { this.builder = new V1NodeRuntimeHandlerFeaturesBuilder(this, item); } - V1NodeRuntimeHandlerFeaturesBuilder builder; - + public N and() { return (N) V1NodeRuntimeHandlerFluent.this.withFeatures(builder.build()); } @@ -117,7 +141,5 @@ public N endFeatures() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java index 2395959cca..21662ecdf7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeSelectorBuilder extends V1NodeSelectorFluent implements VisitableBuilder{ + + V1NodeSelectorFluent fluent; + public V1NodeSelectorBuilder() { this(new V1NodeSelector()); } @@ -10,22 +14,20 @@ public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent) { this(fluent, new V1NodeSelector()); } - public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent,V1NodeSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSelectorBuilder(V1NodeSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSelectorFluent fluent; + public V1NodeSelectorBuilder(V1NodeSelectorFluent fluent,V1NodeSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSelector build() { V1NodeSelector buildable = new V1NodeSelector(); buildable.setNodeSelectorTerms(fluent.buildNodeSelectorTerms()); return buildable; } - } \ 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..09ec5c358c 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 @@ -1,91 +1,79 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSelectorFluent> extends BaseFluent{ +public class V1NodeSelectorFluent> extends BaseFluent{ + + private ArrayList nodeSelectorTerms; + public V1NodeSelectorFluent() { } public V1NodeSelectorFluent(V1NodeSelector instance) { this.copyInstance(instance); } - private ArrayList nodeSelectorTerms; - - protected void copyInstance(V1NodeSelector instance) { - instance = (instance != null ? instance : new V1NodeSelector()); - if (instance != null) { - this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); - } - } - - 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);} - 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);} - return (A)this; - } - - public A addToNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items) { - if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} - for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").add(builder);this.nodeSelectorTerms.add(builder);} return (A)this; - } - + public A addAllToNodeSelectorTerms(Collection items) { - if (this.nodeSelectorTerms == null) {this.nodeSelectorTerms = new ArrayList();} - for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").add(builder);this.nodeSelectorTerms.add(builder);} return (A)this; + if (this.nodeSelectorTerms == null) { + this.nodeSelectorTerms = new ArrayList(); + } + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").add(builder); + this.nodeSelectorTerms.add(builder); + } + return (A) this; } - public A removeFromNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... items) { - if (this.nodeSelectorTerms == null) return (A)this; - for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").remove(builder); this.nodeSelectorTerms.remove(builder);} return (A)this; + public NodeSelectorTermsNested addNewNodeSelectorTerm() { + return new NodeSelectorTermsNested(-1, null); } - public A removeAllFromNodeSelectorTerms(Collection items) { - if (this.nodeSelectorTerms == null) return (A)this; - for (V1NodeSelectorTerm item : items) {V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item);_visitables.get("nodeSelectorTerms").remove(builder); this.nodeSelectorTerms.remove(builder);} return (A)this; + public NodeSelectorTermsNested addNewNodeSelectorTermLike(V1NodeSelectorTerm item) { + return new NodeSelectorTermsNested(-1, item); } - public A removeMatchingFromNodeSelectorTerms(Predicate predicate) { - if (nodeSelectorTerms == null) return (A) this; - final Iterator each = nodeSelectorTerms.iterator(); - final List visitables = _visitables.get("nodeSelectorTerms"); - while (each.hasNext()) { - V1NodeSelectorTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToNodeSelectorTerms(V1NodeSelectorTerm... items) { + if (this.nodeSelectorTerms == null) { + this.nodeSelectorTerms = new ArrayList(); } - return (A)this; - } - - public List buildNodeSelectorTerms() { - return this.nodeSelectorTerms != null ? build(nodeSelectorTerms) : null; + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").add(builder); + this.nodeSelectorTerms.add(builder); + } + return (A) this; } - public V1NodeSelectorTerm buildNodeSelectorTerm(int index) { - return this.nodeSelectorTerms.get(index).build(); + 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(builder); + nodeSelectorTerms.add(index, builder); + } + return (A) this; } public V1NodeSelectorTerm buildFirstNodeSelectorTerm() { @@ -105,121 +93,205 @@ public V1NodeSelectorTerm buildMatchingNodeSelectorTerm(Predicate predicate) { - for (V1NodeSelectorTermBuilder item : nodeSelectorTerms) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1NodeSelectorTerm buildNodeSelectorTerm(int index) { + return this.nodeSelectorTerms.get(index).build(); } - public A withNodeSelectorTerms(List nodeSelectorTerms) { - if (this.nodeSelectorTerms != null) { - this._visitables.get("nodeSelectorTerms").clear(); + public List buildNodeSelectorTerms() { + return this.nodeSelectorTerms != null ? build(nodeSelectorTerms) : null; + } + + protected void copyInstance(V1NodeSelector instance) { + instance = instance != null ? instance : new V1NodeSelector(); + if (instance != null) { + this.withNodeSelectorTerms(instance.getNodeSelectorTerms()); } - if (nodeSelectorTerms != null) { - this.nodeSelectorTerms = new ArrayList(); - for (V1NodeSelectorTerm item : nodeSelectorTerms) { - this.addToNodeSelectorTerms(item); - } - } else { - this.nodeSelectorTerms = null; + } + + public NodeSelectorTermsNested editFirstNodeSelectorTerm() { + if (nodeSelectorTerms.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "nodeSelectorTerms")); } - return (A) this; + return this.setNewNodeSelectorTermLike(0, this.buildNodeSelectorTerm(0)); } - public A withNodeSelectorTerms(io.kubernetes.client.openapi.models.V1NodeSelectorTerm... nodeSelectorTerms) { - if (this.nodeSelectorTerms != null) { - this.nodeSelectorTerms.clear(); - _visitables.remove("nodeSelectorTerms"); + public NodeSelectorTermsNested editLastNodeSelectorTerm() { + int index = nodeSelectorTerms.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "nodeSelectorTerms")); } - if (nodeSelectorTerms != null) { - for (V1NodeSelectorTerm item : nodeSelectorTerms) { - this.addToNodeSelectorTerms(item); + return this.setNewNodeSelectorTermLike(index, this.buildNodeSelectorTerm(index)); + } + + public NodeSelectorTermsNested editMatchingNodeSelectorTerm(Predicate predicate) { + int index = -1; + for (int i = 0;i < nodeSelectorTerms.size();i++) { + if (predicate.test(nodeSelectorTerms.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "nodeSelectorTerms")); + } + return this.setNewNodeSelectorTermLike(index, this.buildNodeSelectorTerm(index)); } - public boolean hasNodeSelectorTerms() { - return this.nodeSelectorTerms != null && !this.nodeSelectorTerms.isEmpty(); + public NodeSelectorTermsNested editNodeSelectorTerm(int index) { + if (nodeSelectorTerms.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nodeSelectorTerms")); + } + return this.setNewNodeSelectorTermLike(index, this.buildNodeSelectorTerm(index)); } - public NodeSelectorTermsNested addNewNodeSelectorTerm() { - return new NodeSelectorTermsNested(-1, null); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeSelectorFluent that = (V1NodeSelectorFluent) o; + if (!(Objects.equals(nodeSelectorTerms, that.nodeSelectorTerms))) { + return false; + } + return true; } - public NodeSelectorTermsNested addNewNodeSelectorTermLike(V1NodeSelectorTerm item) { - return new NodeSelectorTermsNested(-1, item); + public boolean hasMatchingNodeSelectorTerm(Predicate predicate) { + for (V1NodeSelectorTermBuilder item : nodeSelectorTerms) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public NodeSelectorTermsNested setNewNodeSelectorTermLike(int index,V1NodeSelectorTerm item) { - return new NodeSelectorTermsNested(index, item); + public boolean hasNodeSelectorTerms() { + return this.nodeSelectorTerms != null && !(this.nodeSelectorTerms.isEmpty()); } - public NodeSelectorTermsNested editNodeSelectorTerm(int index) { - if (nodeSelectorTerms.size() <= index) throw new RuntimeException("Can't edit nodeSelectorTerms. Index exceeds size."); - return setNewNodeSelectorTermLike(index, buildNodeSelectorTerm(index)); + public int hashCode() { + return Objects.hash(nodeSelectorTerms); } - public NodeSelectorTermsNested editFirstNodeSelectorTerm() { - if (nodeSelectorTerms.size() == 0) throw new RuntimeException("Can't edit first nodeSelectorTerms. The list is empty."); - return setNewNodeSelectorTermLike(0, buildNodeSelectorTerm(0)); + public A removeAllFromNodeSelectorTerms(Collection items) { + if (this.nodeSelectorTerms == null) { + return (A) this; + } + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").remove(builder); + this.nodeSelectorTerms.remove(builder); + } + return (A) this; } - public NodeSelectorTermsNested editLastNodeSelectorTerm() { - int index = nodeSelectorTerms.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last nodeSelectorTerms. The list is empty."); - return setNewNodeSelectorTermLike(index, buildNodeSelectorTerm(index)); + public A removeFromNodeSelectorTerms(V1NodeSelectorTerm... items) { + if (this.nodeSelectorTerms == null) { + return (A) this; + } + for (V1NodeSelectorTerm item : items) { + V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); + _visitables.get("nodeSelectorTerms").remove(builder); + this.nodeSelectorTerms.remove(builder); + } + return (A) this; } - public NodeSelectorTermsNested editMatchingNodeSelectorTerm(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + if (nodeSelectorTerms == null) { + return (A) this; + } + Iterator each = nodeSelectorTerms.iterator(); + List visitables = _visitables.get("nodeSelectorTerms"); + while (each.hasNext()) { + V1NodeSelectorTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1NodeSelectorFluent that = (V1NodeSelectorFluent) o; - if (!java.util.Objects.equals(nodeSelectorTerms, that.nodeSelectorTerms)) return false; - return true; + public NodeSelectorTermsNested setNewNodeSelectorTermLike(int index,V1NodeSelectorTerm item) { + return new NodeSelectorTermsNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(nodeSelectorTerms, super.hashCode()); + 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").add(builder); + nodeSelectorTerms.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (nodeSelectorTerms != null && !nodeSelectorTerms.isEmpty()) { sb.append("nodeSelectorTerms:"); sb.append(nodeSelectorTerms); } + if (!(nodeSelectorTerms == null) && !(nodeSelectorTerms.isEmpty())) { + sb.append("nodeSelectorTerms:"); + sb.append(nodeSelectorTerms); + } sb.append("}"); return sb.toString(); } + + public A withNodeSelectorTerms(List nodeSelectorTerms) { + if (this.nodeSelectorTerms != null) { + this._visitables.get("nodeSelectorTerms").clear(); + } + if (nodeSelectorTerms != null) { + this.nodeSelectorTerms = new ArrayList(); + for (V1NodeSelectorTerm item : nodeSelectorTerms) { + this.addToNodeSelectorTerms(item); + } + } else { + this.nodeSelectorTerms = null; + } + return (A) this; + } + + public A withNodeSelectorTerms(V1NodeSelectorTerm... nodeSelectorTerms) { + if (this.nodeSelectorTerms != null) { + this.nodeSelectorTerms.clear(); + _visitables.remove("nodeSelectorTerms"); + } + if (nodeSelectorTerms != null) { + for (V1NodeSelectorTerm item : nodeSelectorTerms) { + this.addToNodeSelectorTerms(item); + } + } + return (A) this; + } public class NodeSelectorTermsNested extends V1NodeSelectorTermFluent> implements Nested{ + + V1NodeSelectorTermBuilder builder; + int index; + NodeSelectorTermsNested(int index,V1NodeSelectorTerm item) { this.index = index; this.builder = new V1NodeSelectorTermBuilder(this, item); } - V1NodeSelectorTermBuilder builder; - int index; - + public N and() { - return (N) V1NodeSelectorFluent.this.setToNodeSelectorTerms(index,builder.build()); + return (N) V1NodeSelectorFluent.this.setToNodeSelectorTerms(index, builder.build()); } public N endNodeSelectorTerm() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java index 5bb05e2eb0..039ceda2ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeSelectorRequirementBuilder extends V1NodeSelectorRequirementFluent implements VisitableBuilder{ + + V1NodeSelectorRequirementFluent fluent; + public V1NodeSelectorRequirementBuilder() { this(new V1NodeSelectorRequirement()); } @@ -10,17 +14,16 @@ public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluen this(fluent, new V1NodeSelectorRequirement()); } - public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluent,V1NodeSelectorRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSelectorRequirementFluent fluent; + public V1NodeSelectorRequirementBuilder(V1NodeSelectorRequirementFluent fluent,V1NodeSelectorRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSelectorRequirement build() { V1NodeSelectorRequirement buildable = new V1NodeSelectorRequirement(); buildable.setKey(fluent.getKey()); @@ -29,5 +32,4 @@ public V1NodeSelectorRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java index c5c86aaaa1..6d85884f89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java @@ -1,127 +1,208 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSelectorRequirementFluent> extends BaseFluent{ +public class V1NodeSelectorRequirementFluent> extends BaseFluent{ + + private String key; + private String operator; + private List values; + public V1NodeSelectorRequirementFluent() { } public V1NodeSelectorRequirementFluent(V1NodeSelectorRequirement instance) { this.copyInstance(instance); } - private String key; - private String operator; - private List values; + + 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 addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; + } + + public A addToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(index, item); + return (A) this; + } protected void copyInstance(V1NodeSelectorRequirement instance) { - instance = (instance != null ? instance : new V1NodeSelectorRequirement()); + instance = instance != null ? instance : new V1NodeSelectorRequirement(); if (instance != null) { - this.withKey(instance.getKey()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeSelectorRequirementFluent that = (V1NodeSelectorRequirementFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; + } + + public String getFirstValue() { + return this.values.get(0); } public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + public String getLastValue() { + return this.values.get(values.size() - 1); } - public boolean hasKey() { - return this.key != null; + public String getMatchingValue(Predicate predicate) { + for (String item : values) { + if (predicate.test(item)) { + return item; + } + } + return null; } public String getOperator() { return this.operator; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + public String getValue(int index) { + return this.values.get(index); } - public boolean hasOperator() { - return this.operator != null; + public List getValues() { + return this.values; } - public A addToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.add(index, item); - return (A)this; + public boolean hasKey() { + return this.key != null; } - public A setToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + public boolean hasMatchingValue(Predicate predicate) { + for (String item : values) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 boolean hasOperator() { + return this.operator != null; } - 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 boolean hasValues() { + return this.values != null && !(this.values.isEmpty()); } - 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 int hashCode() { + return Objects.hash(key, operator, values); } 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; + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } - public String getValue(int index) { - return this.values.get(index); + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } - public String getFirstValue() { - return this.values.get(0); + public A setToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public String getLastValue() { - return this.values.get(values.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withKey(String key) { + this.key = key; + return (A) this; } - public boolean hasMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withOperator(String operator) { + this.operator = operator; + return (A) this; } public A withValues(List values) { @@ -136,7 +217,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.String... values) { + public A withValues(String... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -149,34 +230,4 @@ public A withValues(java.lang.String... values) { 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; - V1NodeSelectorRequirementFluent that = (V1NodeSelectorRequirementFluent) 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/V1NodeSelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java index afa36b4901..b7f900f442 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeSelectorTermBuilder extends V1NodeSelectorTermFluent implements VisitableBuilder{ + + V1NodeSelectorTermFluent fluent; + public V1NodeSelectorTermBuilder() { this(new V1NodeSelectorTerm()); } @@ -10,17 +14,16 @@ public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent) { this(fluent, new V1NodeSelectorTerm()); } - public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent,V1NodeSelectorTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSelectorTermBuilder(V1NodeSelectorTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSelectorTermFluent fluent; + public V1NodeSelectorTermBuilder(V1NodeSelectorTermFluent fluent,V1NodeSelectorTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSelectorTerm build() { V1NodeSelectorTerm buildable = new V1NodeSelectorTerm(); buildable.setMatchExpressions(fluent.buildMatchExpressions()); @@ -28,5 +31,4 @@ public V1NodeSelectorTerm build() { return buildable; } - } \ No newline at end of file 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..8f67af06e8 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 @@ -1,103 +1,161 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSelectorTermFluent> extends BaseFluent{ +public class V1NodeSelectorTermFluent> extends BaseFluent{ + + private ArrayList matchExpressions; + private ArrayList matchFields; + public V1NodeSelectorTermFluent() { } public V1NodeSelectorTermFluent(V1NodeSelectorTerm instance) { this.copyInstance(instance); } - private ArrayList matchExpressions; - private ArrayList matchFields; - - protected void copyInstance(V1NodeSelectorTerm instance) { - instance = (instance != null ? instance : new V1NodeSelectorTerm()); - if (instance != null) { - this.withMatchExpressions(instance.getMatchExpressions()); - this.withMatchFields(instance.getMatchFields()); - } + + public A addAllToMatchExpressions(Collection items) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public A addAllToMatchFields(Collection items) { + if (this.matchFields == null) { + this.matchFields = new ArrayList(); + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchFields").add(builder); + this.matchFields.add(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);} - return (A)this; + public MatchExpressionsNested addNewMatchExpression() { + return new MatchExpressionsNested(-1, null); } - public A addToMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + public MatchExpressionsNested addNewMatchExpressionLike(V1NodeSelectorRequirement item) { + return new MatchExpressionsNested(-1, item); } - public A addAllToMatchExpressions(Collection items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + public MatchFieldsNested addNewMatchField() { + return new MatchFieldsNested(-1, null); } - public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchExpressions == null) return (A)this; - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + public MatchFieldsNested addNewMatchFieldLike(V1NodeSelectorRequirement item) { + return new MatchFieldsNested(-1, item); } - public A removeAllFromMatchExpressions(Collection items) { - if (this.matchExpressions == null) return (A)this; - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + public A addToMatchExpressions(V1NodeSelectorRequirement... items) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; } - public A removeMatchingFromMatchExpressions(Predicate predicate) { - if (matchExpressions == null) return (A) this; - final Iterator each = matchExpressions.iterator(); - final List visitables = _visitables.get("matchExpressions"); - while (each.hasNext()) { - V1NodeSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + matchExpressions.add(index, builder); } - return (A)this; + return (A) this; } - public List buildMatchExpressions() { - return this.matchExpressions != null ? build(matchExpressions) : null; + public A addToMatchFields(V1NodeSelectorRequirement... items) { + if (this.matchFields == null) { + this.matchFields = new ArrayList(); + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchFields").add(builder); + this.matchFields.add(builder); + } + return (A) this; } - public V1NodeSelectorRequirement buildMatchExpression(int index) { - return this.matchExpressions.get(index).build(); + public A addToMatchFields(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").add(builder); + matchFields.add(index, builder); + } + return (A) this; } public V1NodeSelectorRequirement buildFirstMatchExpression() { return this.matchExpressions.get(0).build(); } + public V1NodeSelectorRequirement buildFirstMatchField() { + return this.matchFields.get(0).build(); + } + public V1NodeSelectorRequirement buildLastMatchExpression() { return this.matchExpressions.get(matchExpressions.size() - 1).build(); } + public V1NodeSelectorRequirement buildLastMatchField() { + return this.matchFields.get(matchFields.size() - 1).build(); + } + + public V1NodeSelectorRequirement buildMatchExpression(int index) { + return this.matchExpressions.get(index).build(); + } + + public List buildMatchExpressions() { + return this.matchExpressions != null ? build(matchExpressions) : null; + } + + public V1NodeSelectorRequirement buildMatchField(int index) { + return this.matchFields.get(index).build(); + } + + public List buildMatchFields() { + return this.matchFields != null ? build(matchFields) : null; + } + public V1NodeSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { for (V1NodeSelectorRequirementBuilder item : matchExpressions) { if (predicate.test(item)) { @@ -107,164 +165,305 @@ public V1NodeSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchExpressions) { + public V1NodeSelectorRequirement buildMatchingMatchField(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchFields) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withMatchExpressions(List matchExpressions) { - if (this.matchExpressions != null) { - this._visitables.get("matchExpressions").clear(); - } - if (matchExpressions != null) { - this.matchExpressions = new ArrayList(); - for (V1NodeSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } - } else { - this.matchExpressions = null; + protected void copyInstance(V1NodeSelectorTerm instance) { + instance = instance != null ? instance : new V1NodeSelectorTerm(); + if (instance != null) { + this.withMatchExpressions(instance.getMatchExpressions()); + this.withMatchFields(instance.getMatchFields()); } - return (A) this; } - public A withMatchExpressions(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchExpressions) { - if (this.matchExpressions != null) { - this.matchExpressions.clear(); - _visitables.remove("matchExpressions"); + public MatchExpressionsNested editFirstMatchExpression() { + if (matchExpressions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchExpressions")); } - if (matchExpressions != null) { - for (V1NodeSelectorRequirement item : matchExpressions) { - this.addToMatchExpressions(item); - } + return this.setNewMatchExpressionLike(0, this.buildMatchExpression(0)); + } + + public MatchFieldsNested editFirstMatchField() { + if (matchFields.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchFields")); } - return (A) this; + return this.setNewMatchFieldLike(0, this.buildMatchField(0)); } - public boolean hasMatchExpressions() { - return this.matchExpressions != null && !this.matchExpressions.isEmpty(); + public MatchExpressionsNested editLastMatchExpression() { + int index = matchExpressions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public MatchExpressionsNested addNewMatchExpression() { - return new MatchExpressionsNested(-1, null); + public MatchFieldsNested editLastMatchField() { + int index = matchFields.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchFields")); + } + return this.setNewMatchFieldLike(index, this.buildMatchField(index)); } - public MatchExpressionsNested addNewMatchExpressionLike(V1NodeSelectorRequirement item) { - return new MatchExpressionsNested(-1, item); + public MatchExpressionsNested editMatchExpression(int index) { + if (matchExpressions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public MatchExpressionsNested setNewMatchExpressionLike(int index,V1NodeSelectorRequirement item) { - return new MatchExpressionsNested(index, item); + public MatchFieldsNested editMatchField(int index) { + if (matchFields.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchFields")); + } + return this.setNewMatchFieldLike(index, this.buildMatchField(index)); } - public MatchExpressionsNested editMatchExpression(int index) { - if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchExpressions.size();i++) { + if (predicate.test(matchExpressions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); - return setNewMatchExpressionLike(0, buildMatchExpression(0)); + public MatchFieldsNested editMatchingMatchField(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchFields.size();i++) { + if (predicate.test(matchFields.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchFields")); + } + return this.setNewMatchFieldLike(index, this.buildMatchField(index)); } - public MatchExpressionsNested editLastMatchExpression() { - int index = matchExpressions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeSelectorTermFluent that = (V1NodeSelectorTermFluent) o; + if (!(Objects.equals(matchExpressions, that.matchExpressions))) { + return false; + } + if (!(Objects.equals(matchFields, that.matchFields))) { + return false; + } + return true; } - public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public boolean hasMatchFields() { + return this.matchFields != null && !(this.matchFields.isEmpty()); } - 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);} - return (A)this; + public boolean hasMatchingMatchExpression(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchExpressions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchFields == null) {this.matchFields = new ArrayList();} - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").add(builder);this.matchFields.add(builder);} return (A)this; + public boolean hasMatchingMatchField(Predicate predicate) { + for (V1NodeSelectorRequirementBuilder item : matchFields) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addAllToMatchFields(Collection items) { - if (this.matchFields == null) {this.matchFields = new ArrayList();} - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").add(builder);this.matchFields.add(builder);} return (A)this; + public int hashCode() { + return Objects.hash(matchExpressions, matchFields); } - public A removeFromMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... items) { - if (this.matchFields == null) return (A)this; - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").remove(builder); this.matchFields.remove(builder);} return (A)this; + public A removeAllFromMatchExpressions(Collection items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; } public A removeAllFromMatchFields(Collection items) { - if (this.matchFields == null) return (A)this; - for (V1NodeSelectorRequirement item : items) {V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item);_visitables.get("matchFields").remove(builder); this.matchFields.remove(builder);} return (A)this; + if (this.matchFields == null) { + return (A) this; + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchFields").remove(builder); + this.matchFields.remove(builder); + } + return (A) this; + } + + public A removeFromMatchExpressions(V1NodeSelectorRequirement... items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; + } + + public A removeFromMatchFields(V1NodeSelectorRequirement... items) { + if (this.matchFields == null) { + return (A) this; + } + for (V1NodeSelectorRequirement item : items) { + V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); + _visitables.get("matchFields").remove(builder); + this.matchFields.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchExpressions(Predicate predicate) { + if (matchExpressions == null) { + return (A) this; + } + Iterator each = matchExpressions.iterator(); + List visitables = _visitables.get("matchExpressions"); + while (each.hasNext()) { + V1NodeSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public A removeMatchingFromMatchFields(Predicate predicate) { - if (matchFields == null) return (A) this; - final Iterator each = matchFields.iterator(); - final List visitables = _visitables.get("matchFields"); + if (matchFields == null) { + return (A) this; + } + Iterator each = matchFields.iterator(); + List visitables = _visitables.get("matchFields"); while (each.hasNext()) { - V1NodeSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1NodeSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildMatchFields() { - return this.matchFields != null ? build(matchFields) : null; + public MatchExpressionsNested setNewMatchExpressionLike(int index,V1NodeSelectorRequirement item) { + return new MatchExpressionsNested(index, item); } - public V1NodeSelectorRequirement buildMatchField(int index) { - return this.matchFields.get(index).build(); + public MatchFieldsNested setNewMatchFieldLike(int index,V1NodeSelectorRequirement item) { + return new MatchFieldsNested(index, item); } - public V1NodeSelectorRequirement buildFirstMatchField() { - return this.matchFields.get(0).build(); + 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").add(builder); + matchExpressions.set(index, builder); + } + return (A) this; } - public V1NodeSelectorRequirement buildLastMatchField() { - return this.matchFields.get(matchFields.size() - 1).build(); + 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").add(builder); + matchFields.set(index, builder); + } + return (A) this; } - public V1NodeSelectorRequirement buildMatchingMatchField(Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchFields) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchExpressions == null) && !(matchExpressions.isEmpty())) { + sb.append("matchExpressions:"); + sb.append(matchExpressions); + sb.append(","); + } + if (!(matchFields == null) && !(matchFields.isEmpty())) { + sb.append("matchFields:"); + sb.append(matchFields); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingMatchField(Predicate predicate) { - for (V1NodeSelectorRequirementBuilder item : matchFields) { - if (predicate.test(item)) { - return true; + public A withMatchExpressions(List matchExpressions) { + if (this.matchExpressions != null) { + this._visitables.get("matchExpressions").clear(); + } + if (matchExpressions != null) { + this.matchExpressions = new ArrayList(); + for (V1NodeSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); } + } else { + this.matchExpressions = null; + } + return (A) this; + } + + public A withMatchExpressions(V1NodeSelectorRequirement... matchExpressions) { + if (this.matchExpressions != null) { + this.matchExpressions.clear(); + _visitables.remove("matchExpressions"); + } + if (matchExpressions != null) { + for (V1NodeSelectorRequirement item : matchExpressions) { + this.addToMatchExpressions(item); } - return false; + } + return (A) this; } public A withMatchFields(List matchFields) { @@ -282,7 +481,7 @@ public A withMatchFields(List matchFields) { return (A) this; } - public A withMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequirement... matchFields) { + public A withMatchFields(V1NodeSelectorRequirement... matchFields) { if (this.matchFields != null) { this.matchFields.clear(); _visitables.remove("matchFields"); @@ -294,105 +493,42 @@ public A withMatchFields(io.kubernetes.client.openapi.models.V1NodeSelectorRequi } return (A) this; } + public class MatchExpressionsNested extends V1NodeSelectorRequirementFluent> implements Nested{ - public boolean hasMatchFields() { - return this.matchFields != null && !this.matchFields.isEmpty(); - } - - public MatchFieldsNested addNewMatchField() { - return new MatchFieldsNested(-1, null); - } - - public MatchFieldsNested addNewMatchFieldLike(V1NodeSelectorRequirement item) { - return new MatchFieldsNested(-1, item); - } - - public MatchFieldsNested setNewMatchFieldLike(int index,V1NodeSelectorRequirement item) { - return new MatchFieldsNested(index, item); - } - - public MatchFieldsNested editMatchField(int index) { - if (matchFields.size() <= index) throw new RuntimeException("Can't edit matchFields. Index exceeds size."); - return setNewMatchFieldLike(index, buildMatchField(index)); - } - - public MatchFieldsNested editFirstMatchField() { - if (matchFields.size() == 0) throw new RuntimeException("Can't edit first matchFields. The list is empty."); - return setNewMatchFieldLike(0, buildMatchField(0)); - } - - public MatchFieldsNested editLastMatchField() { - int index = matchFields.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchFields. The list is empty."); - return setNewMatchFieldLike(index, buildMatchField(index)); - } - - public MatchFieldsNested editMatchingMatchField(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1NodeSelectorRequirementFluent> implements Nested{ MatchExpressionsNested(int index,V1NodeSelectorRequirement item) { this.index = index; this.builder = new V1NodeSelectorRequirementBuilder(this, item); } - V1NodeSelectorRequirementBuilder builder; - int index; - + public N and() { - return (N) V1NodeSelectorTermFluent.this.setToMatchExpressions(index,builder.build()); + return (N) V1NodeSelectorTermFluent.this.setToMatchExpressions(index, builder.build()); } public N endMatchExpression() { return and(); } - } public class MatchFieldsNested extends V1NodeSelectorRequirementFluent> implements Nested{ + + V1NodeSelectorRequirementBuilder builder; + int index; + MatchFieldsNested(int index,V1NodeSelectorRequirement item) { this.index = index; this.builder = new V1NodeSelectorRequirementBuilder(this, item); } - V1NodeSelectorRequirementBuilder builder; - int index; - + public N and() { - return (N) V1NodeSelectorTermFluent.this.setToMatchFields(index,builder.build()); + return (N) V1NodeSelectorTermFluent.this.setToMatchFields(index, builder.build()); } public N endMatchField() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java index d1e42a241f..8026c30e41 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeSpecBuilder extends V1NodeSpecFluent implements VisitableBuilder{ + + V1NodeSpecFluent fluent; + public V1NodeSpecBuilder() { this(new V1NodeSpec()); } @@ -10,17 +14,16 @@ public V1NodeSpecBuilder(V1NodeSpecFluent fluent) { this(fluent, new V1NodeSpec()); } - public V1NodeSpecBuilder(V1NodeSpecFluent fluent,V1NodeSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSpecBuilder(V1NodeSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSpecFluent fluent; + public V1NodeSpecBuilder(V1NodeSpecFluent fluent,V1NodeSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSpec build() { V1NodeSpec buildable = new V1NodeSpec(); buildable.setConfigSource(fluent.buildConfigSource()); @@ -33,5 +36,4 @@ public V1NodeSpec build() { return buildable; } - } \ No newline at end of file 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..9dc6349b1d 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 @@ -1,29 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSpecFluent> extends BaseFluent{ - public V1NodeSpecFluent() { - } - - public V1NodeSpecFluent(V1NodeSpec instance) { - this.copyInstance(instance); - } +public class V1NodeSpecFluent> extends BaseFluent{ + private V1NodeConfigSourceBuilder configSource; private String externalID; private String podCIDR; @@ -31,123 +29,216 @@ public V1NodeSpecFluent(V1NodeSpec instance) { private String providerID; private ArrayList taints; private Boolean unschedulable; - - protected void copyInstance(V1NodeSpec instance) { - instance = (instance != null ? instance : new V1NodeSpec()); - if (instance != null) { - this.withConfigSource(instance.getConfigSource()); - this.withExternalID(instance.getExternalID()); - this.withPodCIDR(instance.getPodCIDR()); - this.withPodCIDRs(instance.getPodCIDRs()); - this.withProviderID(instance.getProviderID()); - this.withTaints(instance.getTaints()); - this.withUnschedulable(instance.getUnschedulable()); - } + + public V1NodeSpecFluent() { } - public V1NodeConfigSource buildConfigSource() { - return this.configSource != null ? this.configSource.build() : null; + public V1NodeSpecFluent(V1NodeSpec instance) { + this.copyInstance(instance); + } + + public A addAllToPodCIDRs(Collection items) { + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); + } + for (String item : items) { + this.podCIDRs.add(item); + } + return (A) this; } - public A withConfigSource(V1NodeConfigSource configSource) { - this._visitables.remove("configSource"); - if (configSource != null) { - this.configSource = new V1NodeConfigSourceBuilder(configSource); - this._visitables.get("configSource").add(this.configSource); - } else { - this.configSource = null; - this._visitables.get("configSource").remove(this.configSource); + public A addAllToTaints(Collection items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); } return (A) this; } - public boolean hasConfigSource() { - return this.configSource != null; + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); } - public ConfigSourceNested withNewConfigSource() { - return new ConfigSourceNested(null); + public TaintsNested addNewTaintLike(V1Taint item) { + return new TaintsNested(-1, item); } - public ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item) { - return new ConfigSourceNested(item); + public A addToPodCIDRs(String... items) { + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); + } + for (String item : items) { + this.podCIDRs.add(item); + } + return (A) this; } - public ConfigSourceNested editConfigSource() { - return withNewConfigSourceLike(java.util.Optional.ofNullable(buildConfigSource()).orElse(null)); + public A addToPodCIDRs(int index,String item) { + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); + } + this.podCIDRs.add(index, item); + return (A) this; } - public ConfigSourceNested editOrNewConfigSource() { - return withNewConfigSourceLike(java.util.Optional.ofNullable(buildConfigSource()).orElse(new V1NodeConfigSourceBuilder().build())); + public A addToTaints(V1Taint... items) { + if (this.taints == null) { + this.taints = new ArrayList(); + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").add(builder); + this.taints.add(builder); + } + return (A) this; } - public ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item) { - return withNewConfigSourceLike(java.util.Optional.ofNullable(buildConfigSource()).orElse(item)); + 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(builder); + taints.add(index, builder); + } + return (A) this; } - public String getExternalID() { - return this.externalID; + public V1NodeConfigSource buildConfigSource() { + return this.configSource != null ? this.configSource.build() : null; } - public A withExternalID(String externalID) { - this.externalID = externalID; - return (A) this; + public V1Taint buildFirstTaint() { + return this.taints.get(0).build(); } - public boolean hasExternalID() { - return this.externalID != null; + public V1Taint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); } - public String getPodCIDR() { - return this.podCIDR; + public V1Taint buildMatchingTaint(Predicate predicate) { + for (V1TaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withPodCIDR(String podCIDR) { - this.podCIDR = podCIDR; - return (A) this; + public V1Taint buildTaint(int index) { + return this.taints.get(index).build(); } - public boolean hasPodCIDR() { - return this.podCIDR != null; + public List buildTaints() { + return this.taints != null ? build(taints) : null; } - public A addToPodCIDRs(int index,String item) { - if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} - this.podCIDRs.add(index, item); - return (A)this; + protected void copyInstance(V1NodeSpec instance) { + instance = instance != null ? instance : new V1NodeSpec(); + if (instance != null) { + this.withConfigSource(instance.getConfigSource()); + this.withExternalID(instance.getExternalID()); + this.withPodCIDR(instance.getPodCIDR()); + this.withPodCIDRs(instance.getPodCIDRs()); + this.withProviderID(instance.getProviderID()); + this.withTaints(instance.getTaints()); + this.withUnschedulable(instance.getUnschedulable()); + } } - public A setToPodCIDRs(int index,String item) { - if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} - this.podCIDRs.set(index, item); return (A)this; + public ConfigSourceNested editConfigSource() { + return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(null)); } - public A addToPodCIDRs(java.lang.String... items) { - if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} - for (String item : items) {this.podCIDRs.add(item);} return (A)this; + public TaintsNested editFirstTaint() { + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(0, this.buildTaint(0)); } - public A addAllToPodCIDRs(Collection items) { - if (this.podCIDRs == null) {this.podCIDRs = new ArrayList();} - for (String item : items) {this.podCIDRs.add(item);} return (A)this; + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A removeFromPodCIDRs(java.lang.String... items) { - if (this.podCIDRs == null) return (A)this; - for (String item : items) { this.podCIDRs.remove(item);} return (A)this; + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i = 0;i < taints.size();i++) { + if (predicate.test(taints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); } - public A removeAllFromPodCIDRs(Collection items) { - if (this.podCIDRs == null) return (A)this; - for (String item : items) { this.podCIDRs.remove(item);} return (A)this; + public ConfigSourceNested editOrNewConfigSource() { + return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(new V1NodeConfigSourceBuilder().build())); } - public List getPodCIDRs() { - return this.podCIDRs; + public ConfigSourceNested editOrNewConfigSourceLike(V1NodeConfigSource item) { + return this.withNewConfigSourceLike(Optional.ofNullable(this.buildConfigSource()).orElse(item)); } - public String getPodCIDR(int index) { - return this.podCIDRs.get(index); + public TaintsNested editTaint(int index) { + if (taints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeSpecFluent that = (V1NodeSpecFluent) o; + if (!(Objects.equals(configSource, that.configSource))) { + return false; + } + if (!(Objects.equals(externalID, that.externalID))) { + return false; + } + if (!(Objects.equals(podCIDR, that.podCIDR))) { + return false; + } + if (!(Objects.equals(podCIDRs, that.podCIDRs))) { + return false; + } + if (!(Objects.equals(providerID, that.providerID))) { + return false; + } + if (!(Objects.equals(taints, that.taints))) { + return false; + } + if (!(Objects.equals(unschedulable, that.unschedulable))) { + return false; + } + return true; + } + + public String getExternalID() { + return this.externalID; } public String getFirstPodCIDR() { @@ -167,6 +258,34 @@ public String getMatchingPodCIDR(Predicate predicate) { return null; } + public String getPodCIDR() { + return this.podCIDR; + } + + public String getPodCIDR(int index) { + return this.podCIDRs.get(index); + } + + public List getPodCIDRs() { + return this.podCIDRs; + } + + public String getProviderID() { + return this.providerID; + } + + public Boolean getUnschedulable() { + return this.unschedulable; + } + + public boolean hasConfigSource() { + return this.configSource != null; + } + + public boolean hasExternalID() { + return this.externalID != null; + } + public boolean hasMatchingPodCIDR(Predicate predicate) { for (String item : podCIDRs) { if (predicate.test(item)) { @@ -176,128 +295,225 @@ public boolean hasMatchingPodCIDR(Predicate predicate) { return false; } - public A withPodCIDRs(List podCIDRs) { - if (podCIDRs != null) { - this.podCIDRs = new ArrayList(); - for (String item : podCIDRs) { - this.addToPodCIDRs(item); + public boolean hasMatchingTaint(Predicate predicate) { + for (V1TaintBuilder item : taints) { + if (predicate.test(item)) { + return true; } - } else { - this.podCIDRs = null; - } - return (A) this; + } + return false; } - public A withPodCIDRs(java.lang.String... podCIDRs) { - if (this.podCIDRs != null) { - this.podCIDRs.clear(); - _visitables.remove("podCIDRs"); - } - if (podCIDRs != null) { - for (String item : podCIDRs) { - this.addToPodCIDRs(item); - } - } - return (A) this; + public boolean hasPodCIDR() { + return this.podCIDR != null; } public boolean hasPodCIDRs() { - return this.podCIDRs != null && !this.podCIDRs.isEmpty(); + return this.podCIDRs != null && !(this.podCIDRs.isEmpty()); } - public String getProviderID() { - return this.providerID; + public boolean hasProviderID() { + return this.providerID != null; } - public A withProviderID(String providerID) { - this.providerID = providerID; + public boolean hasTaints() { + return this.taints != null && !(this.taints.isEmpty()); + } + + public boolean hasUnschedulable() { + return this.unschedulable != null; + } + + public int hashCode() { + return Objects.hash(configSource, externalID, podCIDR, podCIDRs, providerID, taints, unschedulable); + } + + public A removeAllFromPodCIDRs(Collection items) { + if (this.podCIDRs == null) { + return (A) this; + } + for (String item : items) { + this.podCIDRs.remove(item); + } return (A) this; } - public boolean hasProviderID() { - return this.providerID != null; + public A removeAllFromTaints(Collection items) { + if (this.taints == null) { + return (A) this; + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } - 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);} - return (A)this; + public A removeFromPodCIDRs(String... items) { + if (this.podCIDRs == null) { + return (A) this; + } + for (String item : items) { + this.podCIDRs.remove(item); + } + 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);} - return (A)this; + public A removeFromTaints(V1Taint... items) { + if (this.taints == null) { + return (A) this; + } + for (V1Taint item : items) { + V1TaintBuilder builder = new V1TaintBuilder(item); + _visitables.get("taints").remove(builder); + this.taints.remove(builder); + } + return (A) this; } - public A addToTaints(io.kubernetes.client.openapi.models.V1Taint... items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + public A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) { + return (A) this; + } + Iterator each = taints.iterator(); + List visitables = _visitables.get("taints"); + while (each.hasNext()) { + V1TaintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A addAllToTaints(Collection items) { - if (this.taints == null) {this.taints = new ArrayList();} - for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").add(builder);this.taints.add(builder);} return (A)this; + public TaintsNested setNewTaintLike(int index,V1Taint item) { + return new TaintsNested(index, item); } - public A removeFromTaints(io.kubernetes.client.openapi.models.V1Taint... items) { - if (this.taints == null) return (A)this; - for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(builder);} return (A)this; + public A setToPodCIDRs(int index,String item) { + if (this.podCIDRs == null) { + this.podCIDRs = new ArrayList(); + } + this.podCIDRs.set(index, item); + return (A) this; } - public A removeAllFromTaints(Collection items) { - if (this.taints == null) return (A)this; - for (V1Taint item : items) {V1TaintBuilder builder = new V1TaintBuilder(item);_visitables.get("taints").remove(builder); this.taints.remove(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").add(builder); + taints.set(index, 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()) { - V1TaintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(configSource == null)) { + sb.append("configSource:"); + sb.append(configSource); + sb.append(","); } - return (A)this; + if (!(externalID == null)) { + sb.append("externalID:"); + sb.append(externalID); + sb.append(","); + } + if (!(podCIDR == null)) { + sb.append("podCIDR:"); + sb.append(podCIDR); + sb.append(","); + } + if (!(podCIDRs == null) && !(podCIDRs.isEmpty())) { + sb.append("podCIDRs:"); + sb.append(podCIDRs); + sb.append(","); + } + if (!(providerID == null)) { + sb.append("providerID:"); + sb.append(providerID); + sb.append(","); + } + if (!(taints == null) && !(taints.isEmpty())) { + sb.append("taints:"); + sb.append(taints); + sb.append(","); + } + if (!(unschedulable == null)) { + sb.append("unschedulable:"); + sb.append(unschedulable); + } + sb.append("}"); + return sb.toString(); } - public List buildTaints() { - return this.taints != null ? build(taints) : null; + public A withConfigSource(V1NodeConfigSource configSource) { + this._visitables.remove("configSource"); + if (configSource != null) { + this.configSource = new V1NodeConfigSourceBuilder(configSource); + this._visitables.get("configSource").add(this.configSource); + } else { + this.configSource = null; + this._visitables.get("configSource").remove(this.configSource); + } + return (A) this; } - public V1Taint buildTaint(int index) { - return this.taints.get(index).build(); + public A withExternalID(String externalID) { + this.externalID = externalID; + return (A) this; } - public V1Taint buildFirstTaint() { - return this.taints.get(0).build(); + public ConfigSourceNested withNewConfigSource() { + return new ConfigSourceNested(null); } - public V1Taint buildLastTaint() { - return this.taints.get(taints.size() - 1).build(); + public ConfigSourceNested withNewConfigSourceLike(V1NodeConfigSource item) { + return new ConfigSourceNested(item); } - public V1Taint buildMatchingTaint(Predicate predicate) { - for (V1TaintBuilder item : taints) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withPodCIDR(String podCIDR) { + this.podCIDR = podCIDR; + return (A) this; } - public boolean hasMatchingTaint(Predicate predicate) { - for (V1TaintBuilder item : taints) { - if (predicate.test(item)) { - return true; + public A withPodCIDRs(List podCIDRs) { + if (podCIDRs != null) { + this.podCIDRs = new ArrayList(); + for (String item : podCIDRs) { + this.addToPodCIDRs(item); } + } else { + this.podCIDRs = null; + } + return (A) this; + } + + public A withPodCIDRs(String... podCIDRs) { + if (this.podCIDRs != null) { + this.podCIDRs.clear(); + _visitables.remove("podCIDRs"); + } + if (podCIDRs != null) { + for (String item : podCIDRs) { + this.addToPodCIDRs(item); } - return false; + } + return (A) this; + } + + public A withProviderID(String providerID) { + this.providerID = providerID; + return (A) this; } public A withTaints(List taints) { @@ -315,7 +531,7 @@ public A withTaints(List taints) { return (A) this; } - public A withTaints(io.kubernetes.client.openapi.models.V1Taint... taints) { + public A withTaints(V1Taint... taints) { if (this.taints != null) { this.taints.clear(); _visitables.remove("taints"); @@ -328,102 +544,22 @@ public A withTaints(io.kubernetes.client.openapi.models.V1Taint... taints) { return (A) this; } - public boolean hasTaints() { - return this.taints != null && !this.taints.isEmpty(); - } - - public TaintsNested addNewTaint() { - return new TaintsNested(-1, null); - } - - public TaintsNested addNewTaintLike(V1Taint item) { - return new TaintsNested(-1, item); - } - - public TaintsNested setNewTaintLike(int index,V1Taint 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 V1NodeConfigSourceFluent> implements Nested{ - public boolean hasUnschedulable() { - return this.unschedulable != 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; - V1NodeSpecFluent that = (V1NodeSpecFluent) o; - if (!java.util.Objects.equals(configSource, that.configSource)) return false; - if (!java.util.Objects.equals(externalID, that.externalID)) return false; - if (!java.util.Objects.equals(podCIDR, that.podCIDR)) return false; - if (!java.util.Objects.equals(podCIDRs, that.podCIDRs)) return false; - if (!java.util.Objects.equals(providerID, that.providerID)) return false; - if (!java.util.Objects.equals(taints, that.taints)) return false; - if (!java.util.Objects.equals(unschedulable, that.unschedulable)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(configSource, externalID, podCIDR, podCIDRs, providerID, taints, unschedulable, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (configSource != null) { sb.append("configSource:"); sb.append(configSource + ","); } - if (externalID != null) { sb.append("externalID:"); sb.append(externalID + ","); } - if (podCIDR != null) { sb.append("podCIDR:"); sb.append(podCIDR + ","); } - if (podCIDRs != null && !podCIDRs.isEmpty()) { sb.append("podCIDRs:"); sb.append(podCIDRs + ","); } - if (providerID != null) { sb.append("providerID:"); sb.append(providerID + ","); } - if (taints != null && !taints.isEmpty()) { sb.append("taints:"); sb.append(taints + ","); } - if (unschedulable != null) { sb.append("unschedulable:"); sb.append(unschedulable); } - sb.append("}"); - return sb.toString(); - } + V1NodeConfigSourceBuilder builder; - public A withUnschedulable() { - return withUnschedulable(true); - } - public class ConfigSourceNested extends V1NodeConfigSourceFluent> implements Nested{ ConfigSourceNested(V1NodeConfigSource item) { this.builder = new V1NodeConfigSourceBuilder(this, item); } - V1NodeConfigSourceBuilder builder; - + public N and() { return (N) V1NodeSpecFluent.this.withConfigSource(builder.build()); } @@ -432,25 +568,24 @@ public N endConfigSource() { return and(); } - } public class TaintsNested extends V1TaintFluent> implements Nested{ + + V1TaintBuilder builder; + int index; + TaintsNested(int index,V1Taint item) { this.index = index; this.builder = new V1TaintBuilder(this, item); } - V1TaintBuilder builder; - int index; - + public N and() { - return (N) V1NodeSpecFluent.this.setToTaints(index,builder.build()); + return (N) V1NodeSpecFluent.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/V1NodeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java index b579e37a2a..df46ae38b7 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeStatusBuilder extends V1NodeStatusFluent implements VisitableBuilder{ + + V1NodeStatusFluent fluent; + public V1NodeStatusBuilder() { this(new V1NodeStatus()); } @@ -10,17 +14,16 @@ public V1NodeStatusBuilder(V1NodeStatusFluent fluent) { this(fluent, new V1NodeStatus()); } - public V1NodeStatusBuilder(V1NodeStatusFluent fluent,V1NodeStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeStatusBuilder(V1NodeStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeStatusFluent fluent; + public V1NodeStatusBuilder(V1NodeStatusFluent fluent,V1NodeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeStatus build() { V1NodeStatus buildable = new V1NodeStatus(); buildable.setAddresses(fluent.buildAddresses()); @@ -29,6 +32,8 @@ public V1NodeStatus build() { buildable.setConditions(fluent.buildConditions()); buildable.setConfig(fluent.buildConfig()); buildable.setDaemonEndpoints(fluent.buildDaemonEndpoints()); + buildable.setDeclaredFeatures(fluent.getDeclaredFeatures()); + buildable.setFeatures(fluent.buildFeatures()); buildable.setImages(fluent.buildImages()); buildable.setNodeInfo(fluent.buildNodeInfo()); buildable.setPhase(fluent.getPhase()); @@ -38,5 +43,4 @@ public V1NodeStatus build() { return buildable; } - } \ No newline at end of file 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 f00fbaf875..8779a7e5fa 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 @@ -1,174 +1,129 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; -import java.util.Collection; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; -import java.util.Map; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; -import io.kubernetes.client.custom.Quantity; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeStatusFluent> extends BaseFluent{ - public V1NodeStatusFluent() { - } - - public V1NodeStatusFluent(V1NodeStatus instance) { - this.copyInstance(instance); - } +public class V1NodeStatusFluent> extends BaseFluent{ + private ArrayList addresses; private Map allocatable; private Map capacity; private ArrayList conditions; private V1NodeConfigStatusBuilder config; private V1NodeDaemonEndpointsBuilder daemonEndpoints; + private List declaredFeatures; + private V1NodeFeaturesBuilder features; private ArrayList images; private V1NodeSystemInfoBuilder nodeInfo; private String phase; private ArrayList runtimeHandlers; private ArrayList volumesAttached; private List volumesInUse; - - protected void copyInstance(V1NodeStatus instance) { - instance = (instance != null ? instance : new V1NodeStatus()); - if (instance != null) { - this.withAddresses(instance.getAddresses()); - this.withAllocatable(instance.getAllocatable()); - this.withCapacity(instance.getCapacity()); - this.withConditions(instance.getConditions()); - this.withConfig(instance.getConfig()); - this.withDaemonEndpoints(instance.getDaemonEndpoints()); - this.withImages(instance.getImages()); - this.withNodeInfo(instance.getNodeInfo()); - this.withPhase(instance.getPhase()); - this.withRuntimeHandlers(instance.getRuntimeHandlers()); - this.withVolumesAttached(instance.getVolumesAttached()); - this.withVolumesInUse(instance.getVolumesInUse()); - } - } - - 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);} - 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);} - return (A)this; + + public V1NodeStatusFluent() { } - public A addToAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; + public V1NodeStatusFluent(V1NodeStatus instance) { + this.copyInstance(instance); } - + public A addAllToAddresses(Collection items) { - if (this.addresses == null) {this.addresses = new ArrayList();} - for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").add(builder);this.addresses.add(builder);} return (A)this; - } - - public A removeFromAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... items) { - if (this.addresses == null) return (A)this; - for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").remove(builder); this.addresses.remove(builder);} return (A)this; - } - - public A removeAllFromAddresses(Collection items) { - if (this.addresses == null) return (A)this; - for (V1NodeAddress item : items) {V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item);_visitables.get("addresses").remove(builder); this.addresses.remove(builder);} return (A)this; - } - - public A removeMatchingFromAddresses(Predicate predicate) { - if (addresses == null) return (A) this; - final Iterator each = addresses.iterator(); - final List visitables = _visitables.get("addresses"); - while (each.hasNext()) { - V1NodeAddressBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (this.addresses == null) { + this.addresses = new ArrayList(); } - return (A)this; - } - - public List buildAddresses() { - return this.addresses != null ? build(addresses) : null; - } - - public V1NodeAddress buildAddress(int index) { - return this.addresses.get(index).build(); - } - - public V1NodeAddress buildFirstAddress() { - return this.addresses.get(0).build(); + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").add(builder); + this.addresses.add(builder); + } + return (A) this; } - public V1NodeAddress buildLastAddress() { - return this.addresses.get(addresses.size() - 1).build(); + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public V1NodeAddress buildMatchingAddress(Predicate predicate) { - for (V1NodeAddressBuilder item : addresses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A addAllToDeclaredFeatures(Collection items) { + if (this.declaredFeatures == null) { + this.declaredFeatures = new ArrayList(); + } + for (String item : items) { + this.declaredFeatures.add(item); + } + return (A) this; } - public boolean hasMatchingAddress(Predicate predicate) { - for (V1NodeAddressBuilder item : addresses) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addAllToImages(Collection items) { + if (this.images == null) { + this.images = new ArrayList(); + } + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").add(builder); + this.images.add(builder); + } + return (A) this; } - public A withAddresses(List addresses) { - if (this.addresses != null) { - this._visitables.get("addresses").clear(); + public A addAllToRuntimeHandlers(Collection items) { + if (this.runtimeHandlers == null) { + this.runtimeHandlers = new ArrayList(); } - if (addresses != null) { - this.addresses = new ArrayList(); - for (V1NodeAddress item : addresses) { - this.addToAddresses(item); - } - } else { - this.addresses = null; + for (V1NodeRuntimeHandler item : items) { + V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); + _visitables.get("runtimeHandlers").add(builder); + this.runtimeHandlers.add(builder); } return (A) this; } - public A withAddresses(io.kubernetes.client.openapi.models.V1NodeAddress... addresses) { - if (this.addresses != null) { - this.addresses.clear(); - _visitables.remove("addresses"); + public A addAllToVolumesAttached(Collection items) { + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); } - if (addresses != null) { - for (V1NodeAddress item : addresses) { - this.addToAddresses(item); - } + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").add(builder); + this.volumesAttached.add(builder); } return (A) this; } - public boolean hasAddresses() { - return this.addresses != null && !this.addresses.isEmpty(); + public A addAllToVolumesInUse(Collection items) { + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); + } + for (String item : items) { + this.volumesInUse.add(item); + } + return (A) this; } public AddressesNested addNewAddress() { @@ -179,615 +134,826 @@ public AddressesNested addNewAddressLike(V1NodeAddress item) { return new AddressesNested(-1, item); } - public AddressesNested setNewAddressLike(int index,V1NodeAddress item) { - return new AddressesNested(index, item); - } - - public AddressesNested editAddress(int index) { - if (addresses.size() <= index) throw new RuntimeException("Can't edit addresses. Index exceeds size."); - return setNewAddressLike(index, buildAddress(index)); + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public AddressesNested editFirstAddress() { - if (addresses.size() == 0) throw new RuntimeException("Can't edit first addresses. The list is empty."); - return setNewAddressLike(0, buildAddress(0)); + public ConditionsNested addNewConditionLike(V1NodeCondition item) { + return new ConditionsNested(-1, item); } - public AddressesNested editLastAddress() { - int index = addresses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last addresses. The list is empty."); - return setNewAddressLike(index, buildAddress(index)); + public ImagesNested addNewImage() { + return new ImagesNested(-1, null); } - public AddressesNested editMatchingAddress(Predicate predicate) { - int index = -1; - for (int i=0;i addNewImageLike(V1ContainerImage item) { + return new ImagesNested(-1, item); } - public A addToAllocatable(String key,Quantity value) { - if(this.allocatable == null && key != null && value != null) { this.allocatable = new LinkedHashMap(); } - if(key != null && value != null) {this.allocatable.put(key, value);} return (A)this; + public RuntimeHandlersNested addNewRuntimeHandler() { + return new RuntimeHandlersNested(-1, null); } - public A addToAllocatable(Map map) { - if(this.allocatable == null && map != null) { this.allocatable = new LinkedHashMap(); } - if(map != null) { this.allocatable.putAll(map);} return (A)this; + public RuntimeHandlersNested addNewRuntimeHandlerLike(V1NodeRuntimeHandler item) { + return new RuntimeHandlersNested(-1, item); } - public A removeFromAllocatable(String key) { - if(this.allocatable == null) { return (A) this; } - if(key != null && this.allocatable != null) {this.allocatable.remove(key);} return (A)this; + public VolumesAttachedNested addNewVolumesAttached() { + return new VolumesAttachedNested(-1, null); } - public A removeFromAllocatable(Map map) { - if(this.allocatable == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.allocatable != null){this.allocatable.remove(key);}}} return (A)this; + public VolumesAttachedNested addNewVolumesAttachedLike(V1AttachedVolume item) { + return new VolumesAttachedNested(-1, item); } - public Map getAllocatable() { - return this.allocatable; + public A addToAddresses(V1NodeAddress... items) { + if (this.addresses == null) { + this.addresses = new ArrayList(); + } + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").add(builder); + this.addresses.add(builder); + } + return (A) this; } - public A withAllocatable(Map allocatable) { - if (allocatable == null) { - this.allocatable = null; + 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 { - this.allocatable = new LinkedHashMap(allocatable); + _visitables.get("addresses").add(builder); + addresses.add(index, builder); } return (A) this; } - public boolean hasAllocatable() { - return this.allocatable != null; + public A addToAllocatable(Map map) { + if (this.allocatable == null && map != null) { + this.allocatable = new LinkedHashMap(); + } + if (map != null) { + this.allocatable.putAll(map); + } + return (A) this; } - 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 addToAllocatable(String key,Quantity value) { + if (this.allocatable == null && key != null && value != null) { + this.allocatable = new LinkedHashMap(); + } + if (key != null && value != null) { + this.allocatable.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; + if (this.capacity == null && map != null) { + this.capacity = new LinkedHashMap(); + } + if (map != null) { + this.capacity.putAll(map); + } + 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 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 Map getCapacity() { - return this.capacity; + public A addToConditions(V1NodeCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; + 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 { - this.capacity = new LinkedHashMap(capacity); + _visitables.get("conditions").add(builder); + conditions.add(index, builder); } return (A) this; } - public boolean hasCapacity() { - return this.capacity != null; + public A addToDeclaredFeatures(String... items) { + if (this.declaredFeatures == null) { + this.declaredFeatures = new ArrayList(); + } + for (String item : items) { + this.declaredFeatures.add(item); + } + return (A) this; } - 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);} - return (A)this; + public A addToDeclaredFeatures(int index,String item) { + if (this.declaredFeatures == null) { + this.declaredFeatures = new ArrayList(); + } + this.declaredFeatures.add(index, item); + 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);} - return (A)this; + public A addToImages(V1ContainerImage... items) { + if (this.images == null) { + this.images = new ArrayList(); + } + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").add(builder); + this.images.add(builder); + } + return (A) this; } - public A addToConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + 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(builder); + images.add(index, builder); + } + return (A) this; } - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public A addToRuntimeHandlers(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 removeFromConditions(io.kubernetes.client.openapi.models.V1NodeCondition... items) { - if (this.conditions == null) return (A)this; - for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + 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 removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1NodeCondition item : items) {V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A addToVolumesAttached(V1AttachedVolume... items) { + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); + } + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").add(builder); + this.volumesAttached.add(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()) { - V1NodeConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToVolumesAttached(int index,V1AttachedVolume item) { + if (this.volumesAttached == null) { + this.volumesAttached = new ArrayList(); } - return (A)this; + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + 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 List buildConditions() { - return this.conditions != null ? build(conditions) : null; + public A addToVolumesInUse(String... items) { + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); + } + for (String item : items) { + this.volumesInUse.add(item); + } + return (A) this; } - public V1NodeCondition buildCondition(int index) { - return this.conditions.get(index).build(); + public A addToVolumesInUse(int index,String item) { + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); + } + this.volumesInUse.add(index, item); + return (A) this; } - public V1NodeCondition buildFirstCondition() { - return this.conditions.get(0).build(); + public V1NodeAddress buildAddress(int index) { + return this.addresses.get(index).build(); } - public V1NodeCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); + public List buildAddresses() { + return this.addresses != null ? build(addresses) : null; } - public V1NodeCondition buildMatchingCondition(Predicate predicate) { - for (V1NodeConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1NodeCondition buildCondition(int index) { + return this.conditions.get(index).build(); } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1NodeConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1NodeCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; - } - return (A) this; + public V1NodeConfigStatus buildConfig() { + return this.config != null ? this.config.build() : null; } - public A withConditions(io.kubernetes.client.openapi.models.V1NodeCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1NodeCondition item : conditions) { - this.addToConditions(item); - } - } - return (A) this; + public V1NodeDaemonEndpoints buildDaemonEndpoints() { + return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null; } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public V1NodeFeatures buildFeatures() { + return this.features != null ? this.features.build() : null; } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public V1NodeAddress buildFirstAddress() { + return this.addresses.get(0).build(); } - public ConditionsNested addNewConditionLike(V1NodeCondition item) { - return new ConditionsNested(-1, item); + public V1NodeCondition buildFirstCondition() { + return this.conditions.get(0).build(); } - public ConditionsNested setNewConditionLike(int index,V1NodeCondition item) { - return new ConditionsNested(index, item); + public V1ContainerImage buildFirstImage() { + return this.images.get(0).build(); } - 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 V1NodeRuntimeHandler buildFirstRuntimeHandler() { + return this.runtimeHandlers.get(0).build(); } - 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 V1AttachedVolume buildFirstVolumesAttached() { + return this.volumesAttached.get(0).build(); } - 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 V1ContainerImage buildImage(int index) { + return this.images.get(index).build(); } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i buildImages() { + return this.images != null ? build(images) : null; } - public V1NodeConfigStatus buildConfig() { - return this.config != null ? this.config.build() : null; + public V1NodeAddress buildLastAddress() { + return this.addresses.get(addresses.size() - 1).build(); } - public A withConfig(V1NodeConfigStatus config) { - this._visitables.remove("config"); - if (config != null) { - this.config = new V1NodeConfigStatusBuilder(config); - this._visitables.get("config").add(this.config); - } else { - this.config = null; - this._visitables.get("config").remove(this.config); - } - return (A) this; + public V1NodeCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); } - public boolean hasConfig() { - return this.config != null; + public V1ContainerImage buildLastImage() { + return this.images.get(images.size() - 1).build(); } - public ConfigNested withNewConfig() { - return new ConfigNested(null); + public V1NodeRuntimeHandler buildLastRuntimeHandler() { + return this.runtimeHandlers.get(runtimeHandlers.size() - 1).build(); } - public ConfigNested withNewConfigLike(V1NodeConfigStatus item) { - return new ConfigNested(item); + public V1AttachedVolume buildLastVolumesAttached() { + return this.volumesAttached.get(volumesAttached.size() - 1).build(); } - public ConfigNested editConfig() { - return withNewConfigLike(java.util.Optional.ofNullable(buildConfig()).orElse(null)); + public V1NodeAddress buildMatchingAddress(Predicate predicate) { + for (V1NodeAddressBuilder item : addresses) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public ConfigNested editOrNewConfig() { - return withNewConfigLike(java.util.Optional.ofNullable(buildConfig()).orElse(new V1NodeConfigStatusBuilder().build())); + public V1NodeCondition buildMatchingCondition(Predicate predicate) { + for (V1NodeConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public ConfigNested editOrNewConfigLike(V1NodeConfigStatus item) { - return withNewConfigLike(java.util.Optional.ofNullable(buildConfig()).orElse(item)); + public V1ContainerImage buildMatchingImage(Predicate predicate) { + for (V1ContainerImageBuilder item : images) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public V1NodeDaemonEndpoints buildDaemonEndpoints() { - return this.daemonEndpoints != null ? this.daemonEndpoints.build() : null; + public V1NodeRuntimeHandler buildMatchingRuntimeHandler(Predicate predicate) { + for (V1NodeRuntimeHandlerBuilder item : runtimeHandlers) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { - this._visitables.remove("daemonEndpoints"); - if (daemonEndpoints != null) { - this.daemonEndpoints = new V1NodeDaemonEndpointsBuilder(daemonEndpoints); - this._visitables.get("daemonEndpoints").add(this.daemonEndpoints); - } else { - this.daemonEndpoints = null; - this._visitables.get("daemonEndpoints").remove(this.daemonEndpoints); - } - return (A) this; + public V1AttachedVolume buildMatchingVolumesAttached(Predicate predicate) { + for (V1AttachedVolumeBuilder item : volumesAttached) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasDaemonEndpoints() { - return this.daemonEndpoints != null; + public V1NodeSystemInfo buildNodeInfo() { + return this.nodeInfo != null ? this.nodeInfo.build() : null; } - public DaemonEndpointsNested withNewDaemonEndpoints() { - return new DaemonEndpointsNested(null); + public V1NodeRuntimeHandler buildRuntimeHandler(int index) { + return this.runtimeHandlers.get(index).build(); } - public DaemonEndpointsNested withNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { - return new DaemonEndpointsNested(item); + public List buildRuntimeHandlers() { + return this.runtimeHandlers != null ? build(runtimeHandlers) : null; } - public DaemonEndpointsNested editDaemonEndpoints() { - return withNewDaemonEndpointsLike(java.util.Optional.ofNullable(buildDaemonEndpoints()).orElse(null)); + public List buildVolumesAttached() { + return this.volumesAttached != null ? build(volumesAttached) : null; } - public DaemonEndpointsNested editOrNewDaemonEndpoints() { - return withNewDaemonEndpointsLike(java.util.Optional.ofNullable(buildDaemonEndpoints()).orElse(new V1NodeDaemonEndpointsBuilder().build())); + public V1AttachedVolume buildVolumesAttached(int index) { + return this.volumesAttached.get(index).build(); } - public DaemonEndpointsNested editOrNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { - return withNewDaemonEndpointsLike(java.util.Optional.ofNullable(buildDaemonEndpoints()).orElse(item)); + protected void copyInstance(V1NodeStatus instance) { + instance = instance != null ? instance : new V1NodeStatus(); + if (instance != null) { + this.withAddresses(instance.getAddresses()); + this.withAllocatable(instance.getAllocatable()); + this.withCapacity(instance.getCapacity()); + this.withConditions(instance.getConditions()); + this.withConfig(instance.getConfig()); + this.withDaemonEndpoints(instance.getDaemonEndpoints()); + this.withDeclaredFeatures(instance.getDeclaredFeatures()); + 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()); + } } - 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);} - return (A)this; + public AddressesNested editAddress(int index) { + if (addresses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } - 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);} - return (A)this; + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A addToImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) { - if (this.images == null) {this.images = new ArrayList();} - for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").add(builder);this.images.add(builder);} return (A)this; + public ConfigNested editConfig() { + return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(null)); } - public A addAllToImages(Collection items) { - if (this.images == null) {this.images = new ArrayList();} - for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").add(builder);this.images.add(builder);} return (A)this; + public DaemonEndpointsNested editDaemonEndpoints() { + return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(null)); } - public A removeFromImages(io.kubernetes.client.openapi.models.V1ContainerImage... items) { - if (this.images == null) return (A)this; - for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").remove(builder); this.images.remove(builder);} return (A)this; + public FeaturesNested editFeatures() { + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(null)); } - public A removeAllFromImages(Collection items) { - if (this.images == null) return (A)this; - for (V1ContainerImage item : items) {V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item);_visitables.get("images").remove(builder); this.images.remove(builder);} return (A)this; + public AddressesNested editFirstAddress() { + if (addresses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(0, this.buildAddress(0)); } - public A removeMatchingFromImages(Predicate predicate) { - if (images == null) return (A) this; - final Iterator each = images.iterator(); - final List visitables = _visitables.get("images"); - while (each.hasNext()) { - V1ContainerImageBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - return (A)this; + return this.setNewConditionLike(0, this.buildCondition(0)); } - public List buildImages() { - return this.images != null ? build(images) : null; + public ImagesNested editFirstImage() { + if (images.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "images")); + } + return this.setNewImageLike(0, this.buildImage(0)); } - public V1ContainerImage buildImage(int index) { - return this.images.get(index).build(); + public RuntimeHandlersNested editFirstRuntimeHandler() { + if (runtimeHandlers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "runtimeHandlers")); + } + return this.setNewRuntimeHandlerLike(0, this.buildRuntimeHandler(0)); } - public V1ContainerImage buildFirstImage() { - return this.images.get(0).build(); + public VolumesAttachedNested editFirstVolumesAttached() { + if (volumesAttached.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumesAttached")); + } + return this.setNewVolumesAttachedLike(0, this.buildVolumesAttached(0)); } - public V1ContainerImage buildLastImage() { - return this.images.get(images.size() - 1).build(); + public ImagesNested editImage(int index) { + if (images.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "images")); + } + return this.setNewImageLike(index, this.buildImage(index)); } - public V1ContainerImage buildMatchingImage(Predicate predicate) { - for (V1ContainerImageBuilder item : images) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public AddressesNested editLastAddress() { + int index = addresses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } - public boolean hasMatchingImage(Predicate predicate) { - for (V1ContainerImageBuilder item : images) { - if (predicate.test(item)) { - return true; - } - } - return false; + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A withImages(List images) { - if (this.images != null) { - this._visitables.get("images").clear(); + public ImagesNested editLastImage() { + int index = images.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "images")); } - if (images != null) { - this.images = new ArrayList(); - for (V1ContainerImage item : images) { - this.addToImages(item); - } - } else { - this.images = null; + return this.setNewImageLike(index, this.buildImage(index)); + } + + public RuntimeHandlersNested editLastRuntimeHandler() { + int index = runtimeHandlers.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "runtimeHandlers")); } - return (A) this; + return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); } - public A withImages(io.kubernetes.client.openapi.models.V1ContainerImage... images) { - if (this.images != null) { - this.images.clear(); - _visitables.remove("images"); + public VolumesAttachedNested editLastVolumesAttached() { + int index = volumesAttached.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumesAttached")); } - if (images != null) { - for (V1ContainerImage item : images) { - this.addToImages(item); + return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); + } + + public AddressesNested editMatchingAddress(Predicate predicate) { + int index = -1; + for (int i = 0;i < addresses.size();i++) { + if (predicate.test(addresses.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "addresses")); + } + return this.setNewAddressLike(index, this.buildAddress(index)); } - public boolean hasImages() { - return this.images != null && !this.images.isEmpty(); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ImagesNested addNewImage() { - return new ImagesNested(-1, null); + public ImagesNested editMatchingImage(Predicate predicate) { + int index = -1; + for (int i = 0;i < images.size();i++) { + if (predicate.test(images.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "images")); + } + return this.setNewImageLike(index, this.buildImage(index)); } - public ImagesNested addNewImageLike(V1ContainerImage item) { - return new ImagesNested(-1, item); + public RuntimeHandlersNested editMatchingRuntimeHandler(Predicate predicate) { + int index = -1; + for (int i = 0;i < runtimeHandlers.size();i++) { + if (predicate.test(runtimeHandlers.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "runtimeHandlers")); + } + return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); } - public ImagesNested setNewImageLike(int index,V1ContainerImage item) { - return new ImagesNested(index, item); + public VolumesAttachedNested editMatchingVolumesAttached(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumesAttached.size();i++) { + if (predicate.test(volumesAttached.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumesAttached")); + } + return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); } - public ImagesNested editImage(int index) { - if (images.size() <= index) throw new RuntimeException("Can't edit images. Index exceeds size."); - return setNewImageLike(index, buildImage(index)); + public NodeInfoNested editNodeInfo() { + return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(null)); } - public ImagesNested editFirstImage() { - if (images.size() == 0) throw new RuntimeException("Can't edit first images. The list is empty."); - return setNewImageLike(0, buildImage(0)); + public ConfigNested editOrNewConfig() { + return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(new V1NodeConfigStatusBuilder().build())); } - public ImagesNested editLastImage() { - int index = images.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last images. The list is empty."); - return setNewImageLike(index, buildImage(index)); + public ConfigNested editOrNewConfigLike(V1NodeConfigStatus item) { + return this.withNewConfigLike(Optional.ofNullable(this.buildConfig()).orElse(item)); } - public ImagesNested editMatchingImage(Predicate predicate) { - int index = -1; - for (int i=0;i editOrNewDaemonEndpoints() { + return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(new V1NodeDaemonEndpointsBuilder().build())); } - public V1NodeSystemInfo buildNodeInfo() { - return this.nodeInfo != null ? this.nodeInfo.build() : null; + public DaemonEndpointsNested editOrNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { + return this.withNewDaemonEndpointsLike(Optional.ofNullable(this.buildDaemonEndpoints()).orElse(item)); } - public A withNodeInfo(V1NodeSystemInfo nodeInfo) { - this._visitables.remove("nodeInfo"); - if (nodeInfo != null) { - this.nodeInfo = new V1NodeSystemInfoBuilder(nodeInfo); - this._visitables.get("nodeInfo").add(this.nodeInfo); - } else { - this.nodeInfo = null; - this._visitables.get("nodeInfo").remove(this.nodeInfo); + public FeaturesNested editOrNewFeatures() { + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(new V1NodeFeaturesBuilder().build())); + } + + public FeaturesNested editOrNewFeaturesLike(V1NodeFeatures item) { + return this.withNewFeaturesLike(Optional.ofNullable(this.buildFeatures()).orElse(item)); + } + + public NodeInfoNested editOrNewNodeInfo() { + return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(new V1NodeSystemInfoBuilder().build())); + } + + public NodeInfoNested editOrNewNodeInfoLike(V1NodeSystemInfo item) { + return this.withNewNodeInfoLike(Optional.ofNullable(this.buildNodeInfo()).orElse(item)); + } + + public RuntimeHandlersNested editRuntimeHandler(int index) { + if (runtimeHandlers.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "runtimeHandlers")); } - return (A) this; + return this.setNewRuntimeHandlerLike(index, this.buildRuntimeHandler(index)); } - public boolean hasNodeInfo() { - return this.nodeInfo != null; + public VolumesAttachedNested editVolumesAttached(int index) { + if (volumesAttached.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumesAttached")); + } + return this.setNewVolumesAttachedLike(index, this.buildVolumesAttached(index)); } - public NodeInfoNested withNewNodeInfo() { - return new NodeInfoNested(null); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeStatusFluent that = (V1NodeStatusFluent) o; + if (!(Objects.equals(addresses, that.addresses))) { + return false; + } + if (!(Objects.equals(allocatable, that.allocatable))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(daemonEndpoints, that.daemonEndpoints))) { + return false; + } + if (!(Objects.equals(declaredFeatures, that.declaredFeatures))) { + return false; + } + if (!(Objects.equals(features, that.features))) { + return false; + } + if (!(Objects.equals(images, that.images))) { + return false; + } + if (!(Objects.equals(nodeInfo, that.nodeInfo))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } + if (!(Objects.equals(runtimeHandlers, that.runtimeHandlers))) { + return false; + } + if (!(Objects.equals(volumesAttached, that.volumesAttached))) { + return false; + } + if (!(Objects.equals(volumesInUse, that.volumesInUse))) { + return false; + } + return true; } - public NodeInfoNested withNewNodeInfoLike(V1NodeSystemInfo item) { - return new NodeInfoNested(item); + public Map getAllocatable() { + return this.allocatable; } - public NodeInfoNested editNodeInfo() { - return withNewNodeInfoLike(java.util.Optional.ofNullable(buildNodeInfo()).orElse(null)); + public Map getCapacity() { + return this.capacity; } - public NodeInfoNested editOrNewNodeInfo() { - return withNewNodeInfoLike(java.util.Optional.ofNullable(buildNodeInfo()).orElse(new V1NodeSystemInfoBuilder().build())); + public String getDeclaredFeature(int index) { + return this.declaredFeatures.get(index); } - public NodeInfoNested editOrNewNodeInfoLike(V1NodeSystemInfo item) { - return withNewNodeInfoLike(java.util.Optional.ofNullable(buildNodeInfo()).orElse(item)); + public List getDeclaredFeatures() { + return this.declaredFeatures; + } + + public String getFirstDeclaredFeature() { + return this.declaredFeatures.get(0); + } + + public String getFirstVolumesInUse() { + return this.volumesInUse.get(0); + } + + public String getLastDeclaredFeature() { + return this.declaredFeatures.get(declaredFeatures.size() - 1); + } + + public String getLastVolumesInUse() { + return this.volumesInUse.get(volumesInUse.size() - 1); + } + + public String getMatchingDeclaredFeature(Predicate predicate) { + for (String item : declaredFeatures) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingVolumesInUse(Predicate predicate) { + for (String item : volumesInUse) { + if (predicate.test(item)) { + return item; + } + } + return null; } public String getPhase() { return this.phase; } - public A withPhase(String phase) { - this.phase = phase; - return (A) this; + public List getVolumesInUse() { + return this.volumesInUse; } - public boolean hasPhase() { - return this.phase != null; + public String getVolumesInUse(int index) { + return this.volumesInUse.get(index); } - 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(index, builder); runtimeHandlers.add(index, builder);} - return (A)this; + public boolean hasAddresses() { + return this.addresses != null && !(this.addresses.isEmpty()); } - 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").set(index, builder); runtimeHandlers.set(index, builder);} - return (A)this; + public boolean hasAllocatable() { + return this.allocatable != null; } - 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 boolean hasCapacity() { + return this.capacity != null; } - 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 boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - 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 boolean hasConfig() { + return this.config != null; } - 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 boolean hasDaemonEndpoints() { + return this.daemonEndpoints != null; } - 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 boolean hasDeclaredFeatures() { + return this.declaredFeatures != null && !(this.declaredFeatures.isEmpty()); } - public List buildRuntimeHandlers() { - return this.runtimeHandlers != null ? build(runtimeHandlers) : null; + public boolean hasFeatures() { + return this.features != null; } - public V1NodeRuntimeHandler buildRuntimeHandler(int index) { - return this.runtimeHandlers.get(index).build(); + public boolean hasImages() { + return this.images != null && !(this.images.isEmpty()); } - public V1NodeRuntimeHandler buildFirstRuntimeHandler() { - return this.runtimeHandlers.get(0).build(); + public boolean hasMatchingAddress(Predicate predicate) { + for (V1NodeAddressBuilder item : addresses) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public V1NodeRuntimeHandler buildLastRuntimeHandler() { - return this.runtimeHandlers.get(runtimeHandlers.size() - 1).build(); + public boolean hasMatchingCondition(Predicate predicate) { + for (V1NodeConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public V1NodeRuntimeHandler buildMatchingRuntimeHandler(Predicate predicate) { - for (V1NodeRuntimeHandlerBuilder item : runtimeHandlers) { + public boolean hasMatchingDeclaredFeature(Predicate predicate) { + for (String item : declaredFeatures) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; + } + + public boolean hasMatchingImage(Predicate predicate) { + for (V1ContainerImageBuilder item : images) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasMatchingRuntimeHandler(Predicate predicate) { @@ -799,155 +965,761 @@ public boolean hasMatchingRuntimeHandler(Predicate 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); + public boolean hasMatchingVolumesAttached(Predicate predicate) { + for (V1AttachedVolumeBuilder item : volumesAttached) { + if (predicate.test(item)) { + return true; } - } else { - this.runtimeHandlers = null; - } - return (A) this; + } + return false; } - 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); + public boolean hasMatchingVolumesInUse(Predicate predicate) { + for (String item : volumesInUse) { + if (predicate.test(item)) { + return true; + } } - } - return (A) this; + return false; } - public boolean hasRuntimeHandlers() { - return this.runtimeHandlers != null && !this.runtimeHandlers.isEmpty(); + public boolean hasNodeInfo() { + return this.nodeInfo != null; } - public RuntimeHandlersNested addNewRuntimeHandler() { - return new RuntimeHandlersNested(-1, null); + public boolean hasPhase() { + return this.phase != null; } - public RuntimeHandlersNested addNewRuntimeHandlerLike(V1NodeRuntimeHandler item) { - return new RuntimeHandlersNested(-1, item); + public boolean hasRuntimeHandlers() { + return this.runtimeHandlers != null && !(this.runtimeHandlers.isEmpty()); } - public RuntimeHandlersNested setNewRuntimeHandlerLike(int index,V1NodeRuntimeHandler item) { - return new RuntimeHandlersNested(index, item); + public boolean hasVolumesAttached() { + return this.volumesAttached != null && !(this.volumesAttached.isEmpty()); } - 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 boolean hasVolumesInUse() { + return this.volumesInUse != null && !(this.volumesInUse.isEmpty()); } - 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 int hashCode() { + return Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, declaredFeatures, features, images, nodeInfo, phase, runtimeHandlers, volumesAttached, volumesInUse); + } + + public A removeAllFromAddresses(Collection items) { + if (this.addresses == null) { + return (A) this; + } + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); + } + return (A) this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeAllFromDeclaredFeatures(Collection items) { + if (this.declaredFeatures == null) { + return (A) this; + } + for (String item : items) { + this.declaredFeatures.remove(item); + } + return (A) this; + } + + public A removeAllFromImages(Collection items) { + if (this.images == null) { + return (A) this; + } + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").remove(builder); + this.images.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 removeAllFromVolumesAttached(Collection items) { + if (this.volumesAttached == null) { + return (A) this; + } + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").remove(builder); + this.volumesAttached.remove(builder); + } + return (A) this; + } + + public A removeAllFromVolumesInUse(Collection items) { + if (this.volumesInUse == null) { + return (A) this; + } + for (String item : items) { + this.volumesInUse.remove(item); + } + return (A) this; + } + + public A removeFromAddresses(V1NodeAddress... items) { + if (this.addresses == null) { + return (A) this; + } + for (V1NodeAddress item : items) { + V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); + _visitables.get("addresses").remove(builder); + this.addresses.remove(builder); + } + return (A) this; + } + + public A removeFromAllocatable(String key) { + if (this.allocatable == null) { + return (A) this; + } + if (key != null && this.allocatable != null) { + this.allocatable.remove(key); + } + return (A) this; + } + + public A removeFromAllocatable(Map map) { + if (this.allocatable == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatable != null) { + this.allocatable.remove(key); + } + } + } + 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 A removeFromConditions(V1NodeCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1NodeCondition item : items) { + V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromDeclaredFeatures(String... items) { + if (this.declaredFeatures == null) { + return (A) this; + } + for (String item : items) { + this.declaredFeatures.remove(item); + } + return (A) this; + } + + public A removeFromImages(V1ContainerImage... items) { + if (this.images == null) { + return (A) this; + } + for (V1ContainerImage item : items) { + V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); + _visitables.get("images").remove(builder); + this.images.remove(builder); + } + return (A) this; + } + + public A removeFromRuntimeHandlers(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 removeFromVolumesAttached(V1AttachedVolume... items) { + if (this.volumesAttached == null) { + return (A) this; + } + for (V1AttachedVolume item : items) { + V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); + _visitables.get("volumesAttached").remove(builder); + this.volumesAttached.remove(builder); + } + return (A) this; + } + + public A removeFromVolumesInUse(String... items) { + if (this.volumesInUse == null) { + return (A) this; + } + for (String item : items) { + this.volumesInUse.remove(item); + } + return (A) this; + } + + public A removeMatchingFromAddresses(Predicate predicate) { + if (addresses == null) { + return (A) this; + } + Iterator each = addresses.iterator(); + List visitables = _visitables.get("addresses"); + while (each.hasNext()) { + V1NodeAddressBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1NodeConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromImages(Predicate predicate) { + if (images == null) { + return (A) this; + } + Iterator each = images.iterator(); + List visitables = _visitables.get("images"); + while (each.hasNext()) { + V1ContainerImageBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromRuntimeHandlers(Predicate predicate) { + if (runtimeHandlers == null) { + return (A) this; + } + Iterator each = runtimeHandlers.iterator(); + 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 A removeMatchingFromVolumesAttached(Predicate predicate) { + if (volumesAttached == null) { + return (A) this; + } + Iterator each = volumesAttached.iterator(); + List visitables = _visitables.get("volumesAttached"); + while (each.hasNext()) { + V1AttachedVolumeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public AddressesNested setNewAddressLike(int index,V1NodeAddress item) { + return new AddressesNested(index, item); + } + + public ConditionsNested setNewConditionLike(int index,V1NodeCondition item) { + return new ConditionsNested(index, item); + } + + public ImagesNested setNewImageLike(int index,V1ContainerImage item) { + return new ImagesNested(index, item); + } + + public RuntimeHandlersNested setNewRuntimeHandlerLike(int index,V1NodeRuntimeHandler item) { + return new RuntimeHandlersNested(index, item); + } + + public VolumesAttachedNested setNewVolumesAttachedLike(int index,V1AttachedVolume item) { + return new VolumesAttachedNested(index, item); + } + + 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").add(builder); + addresses.set(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").add(builder); + conditions.set(index, builder); + } + return (A) this; + } + + public A setToDeclaredFeatures(int index,String item) { + if (this.declaredFeatures == null) { + this.declaredFeatures = new ArrayList(); + } + this.declaredFeatures.set(index, item); + 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").add(builder); + images.set(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 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").add(builder); + volumesAttached.set(index, builder); + } + return (A) this; + } + + public A setToVolumesInUse(int index,String item) { + if (this.volumesInUse == null) { + this.volumesInUse = new ArrayList(); + } + this.volumesInUse.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(addresses == null) && !(addresses.isEmpty())) { + sb.append("addresses:"); + sb.append(addresses); + sb.append(","); + } + if (!(allocatable == null) && !(allocatable.isEmpty())) { + sb.append("allocatable:"); + sb.append(allocatable); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(config == null)) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(daemonEndpoints == null)) { + sb.append("daemonEndpoints:"); + sb.append(daemonEndpoints); + sb.append(","); + } + if (!(declaredFeatures == null) && !(declaredFeatures.isEmpty())) { + sb.append("declaredFeatures:"); + sb.append(declaredFeatures); + sb.append(","); + } + if (!(features == null)) { + sb.append("features:"); + sb.append(features); + sb.append(","); + } + if (!(images == null) && !(images.isEmpty())) { + sb.append("images:"); + sb.append(images); + sb.append(","); + } + if (!(nodeInfo == null)) { + sb.append("nodeInfo:"); + sb.append(nodeInfo); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + sb.append(","); + } + if (!(runtimeHandlers == null) && !(runtimeHandlers.isEmpty())) { + sb.append("runtimeHandlers:"); + sb.append(runtimeHandlers); + sb.append(","); + } + if (!(volumesAttached == null) && !(volumesAttached.isEmpty())) { + sb.append("volumesAttached:"); + sb.append(volumesAttached); + sb.append(","); + } + if (!(volumesInUse == null) && !(volumesInUse.isEmpty())) { + sb.append("volumesInUse:"); + sb.append(volumesInUse); + } + sb.append("}"); + return sb.toString(); + } + + public A withAddresses(List addresses) { + if (this.addresses != null) { + this._visitables.get("addresses").clear(); + } + if (addresses != null) { + this.addresses = new ArrayList(); + for (V1NodeAddress item : addresses) { + this.addToAddresses(item); + } + } else { + this.addresses = null; + } + return (A) this; + } + + public A withAddresses(V1NodeAddress... addresses) { + if (this.addresses != null) { + this.addresses.clear(); + _visitables.remove("addresses"); + } + if (addresses != null) { + for (V1NodeAddress item : addresses) { + this.addToAddresses(item); + } + } + return (A) this; + } + + public A withAllocatable(Map allocatable) { + if (allocatable == null) { + this.allocatable = null; + } else { + this.allocatable = new LinkedHashMap(allocatable); + } + return (A) this; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1NodeCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1NodeCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1NodeCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withConfig(V1NodeConfigStatus config) { + this._visitables.remove("config"); + if (config != null) { + this.config = new V1NodeConfigStatusBuilder(config); + this._visitables.get("config").add(this.config); + } else { + this.config = null; + this._visitables.get("config").remove(this.config); + } + return (A) this; + } + + public A withDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { + this._visitables.remove("daemonEndpoints"); + if (daemonEndpoints != null) { + this.daemonEndpoints = new V1NodeDaemonEndpointsBuilder(daemonEndpoints); + this._visitables.get("daemonEndpoints").add(this.daemonEndpoints); + } else { + this.daemonEndpoints = null; + this._visitables.get("daemonEndpoints").remove(this.daemonEndpoints); + } + return (A) this; + } + + public A withDeclaredFeatures(List declaredFeatures) { + if (declaredFeatures != null) { + this.declaredFeatures = new ArrayList(); + for (String item : declaredFeatures) { + this.addToDeclaredFeatures(item); + } + } else { + this.declaredFeatures = null; + } + return (A) this; + } + + public A withDeclaredFeatures(String... declaredFeatures) { + if (this.declaredFeatures != null) { + this.declaredFeatures.clear(); + _visitables.remove("declaredFeatures"); + } + if (declaredFeatures != null) { + for (String item : declaredFeatures) { + this.addToDeclaredFeatures(item); + } + } + return (A) this; + } + + 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 A withImages(List images) { + if (this.images != null) { + this._visitables.get("images").clear(); + } + if (images != null) { + this.images = new ArrayList(); + for (V1ContainerImage item : images) { + this.addToImages(item); + } + } else { + this.images = null; + } + return (A) this; + } + + public A withImages(V1ContainerImage... images) { + if (this.images != null) { + this.images.clear(); + _visitables.remove("images"); + } + if (images != null) { + for (V1ContainerImage item : images) { + this.addToImages(item); + } + } + return (A) this; } - 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 ConfigNested withNewConfig() { + return new ConfigNested(null); } - public RuntimeHandlersNested editMatchingRuntimeHandler(Predicate predicate) { - int index = -1; - for (int i=0;i withNewConfigLike(V1NodeConfigStatus item) { + return new ConfigNested(item); } - public A addToVolumesAttached(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").add(index, builder); volumesAttached.add(index, builder);} - return (A)this; + public DaemonEndpointsNested withNewDaemonEndpoints() { + return new DaemonEndpointsNested(null); } - 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);} - return (A)this; + public DaemonEndpointsNested withNewDaemonEndpointsLike(V1NodeDaemonEndpoints item) { + return new DaemonEndpointsNested(item); } - public A addToVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items) { - if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} - for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").add(builder);this.volumesAttached.add(builder);} return (A)this; + public FeaturesNested withNewFeatures() { + return new FeaturesNested(null); } - public A addAllToVolumesAttached(Collection items) { - if (this.volumesAttached == null) {this.volumesAttached = new ArrayList();} - for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").add(builder);this.volumesAttached.add(builder);} return (A)this; + public FeaturesNested withNewFeaturesLike(V1NodeFeatures item) { + return new FeaturesNested(item); } - public A removeFromVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... items) { - if (this.volumesAttached == null) return (A)this; - for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").remove(builder); this.volumesAttached.remove(builder);} return (A)this; + public NodeInfoNested withNewNodeInfo() { + return new NodeInfoNested(null); } - public A removeAllFromVolumesAttached(Collection items) { - if (this.volumesAttached == null) return (A)this; - for (V1AttachedVolume item : items) {V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item);_visitables.get("volumesAttached").remove(builder); this.volumesAttached.remove(builder);} return (A)this; + public NodeInfoNested withNewNodeInfoLike(V1NodeSystemInfo item) { + return new NodeInfoNested(item); } - public A removeMatchingFromVolumesAttached(Predicate predicate) { - if (volumesAttached == null) return (A) this; - final Iterator each = volumesAttached.iterator(); - final List visitables = _visitables.get("volumesAttached"); - while (each.hasNext()) { - V1AttachedVolumeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A withNodeInfo(V1NodeSystemInfo nodeInfo) { + this._visitables.remove("nodeInfo"); + if (nodeInfo != null) { + this.nodeInfo = new V1NodeSystemInfoBuilder(nodeInfo); + this._visitables.get("nodeInfo").add(this.nodeInfo); + } else { + this.nodeInfo = null; + this._visitables.get("nodeInfo").remove(this.nodeInfo); } - return (A)this; - } - - public List buildVolumesAttached() { - return this.volumesAttached != null ? build(volumesAttached) : null; - } - - public V1AttachedVolume buildVolumesAttached(int index) { - return this.volumesAttached.get(index).build(); - } - - public V1AttachedVolume buildFirstVolumesAttached() { - return this.volumesAttached.get(0).build(); + return (A) this; } - public V1AttachedVolume buildLastVolumesAttached() { - return this.volumesAttached.get(volumesAttached.size() - 1).build(); + public A withPhase(String phase) { + this.phase = phase; + return (A) this; } - public V1AttachedVolume buildMatchingVolumesAttached(Predicate predicate) { - for (V1AttachedVolumeBuilder item : volumesAttached) { - if (predicate.test(item)) { - return item.build(); + 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); } - } - return null; + } else { + this.runtimeHandlers = null; + } + return (A) this; } - public boolean hasMatchingVolumesAttached(Predicate predicate) { - for (V1AttachedVolumeBuilder item : volumesAttached) { - if (predicate.test(item)) { - return true; - } + public A withRuntimeHandlers(V1NodeRuntimeHandler... runtimeHandlers) { + if (this.runtimeHandlers != null) { + this.runtimeHandlers.clear(); + _visitables.remove("runtimeHandlers"); + } + if (runtimeHandlers != null) { + for (V1NodeRuntimeHandler item : runtimeHandlers) { + this.addToRuntimeHandlers(item); } - return false; + } + return (A) this; } public A withVolumesAttached(List volumesAttached) { @@ -965,7 +1737,7 @@ public A withVolumesAttached(List volumesAttached) { return (A) this; } - public A withVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolume... volumesAttached) { + public A withVolumesAttached(V1AttachedVolume... volumesAttached) { if (this.volumesAttached != null) { this.volumesAttached.clear(); _visitables.remove("volumesAttached"); @@ -978,112 +1750,6 @@ public A withVolumesAttached(io.kubernetes.client.openapi.models.V1AttachedVolum return (A) this; } - public boolean hasVolumesAttached() { - return this.volumesAttached != null && !this.volumesAttached.isEmpty(); - } - - public VolumesAttachedNested addNewVolumesAttached() { - return new VolumesAttachedNested(-1, null); - } - - public VolumesAttachedNested addNewVolumesAttachedLike(V1AttachedVolume item) { - return new VolumesAttachedNested(-1, item); - } - - public VolumesAttachedNested setNewVolumesAttachedLike(int index,V1AttachedVolume item) { - return new VolumesAttachedNested(index, item); - } - - public VolumesAttachedNested editVolumesAttached(int index) { - if (volumesAttached.size() <= index) throw new RuntimeException("Can't edit volumesAttached. Index exceeds size."); - return setNewVolumesAttachedLike(index, buildVolumesAttached(index)); - } - - public VolumesAttachedNested editFirstVolumesAttached() { - if (volumesAttached.size() == 0) throw new RuntimeException("Can't edit first volumesAttached. The list is empty."); - return setNewVolumesAttachedLike(0, buildVolumesAttached(0)); - } - - public VolumesAttachedNested editLastVolumesAttached() { - int index = volumesAttached.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumesAttached. The list is empty."); - return setNewVolumesAttachedLike(index, buildVolumesAttached(index)); - } - - public VolumesAttachedNested editMatchingVolumesAttached(Predicate predicate) { - int index = -1; - for (int i=0;i();} - this.volumesInUse.add(index, item); - return (A)this; - } - - public A setToVolumesInUse(int index,String item) { - if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} - this.volumesInUse.set(index, item); return (A)this; - } - - public A addToVolumesInUse(java.lang.String... items) { - if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} - for (String item : items) {this.volumesInUse.add(item);} return (A)this; - } - - public A addAllToVolumesInUse(Collection items) { - if (this.volumesInUse == null) {this.volumesInUse = new ArrayList();} - for (String item : items) {this.volumesInUse.add(item);} return (A)this; - } - - public A removeFromVolumesInUse(java.lang.String... items) { - if (this.volumesInUse == null) return (A)this; - for (String item : items) { this.volumesInUse.remove(item);} return (A)this; - } - - public A removeAllFromVolumesInUse(Collection items) { - if (this.volumesInUse == null) return (A)this; - for (String item : items) { this.volumesInUse.remove(item);} return (A)this; - } - - public List getVolumesInUse() { - return this.volumesInUse; - } - - public String getVolumesInUse(int index) { - return this.volumesInUse.get(index); - } - - public String getFirstVolumesInUse() { - return this.volumesInUse.get(0); - } - - public String getLastVolumesInUse() { - return this.volumesInUse.get(volumesInUse.size() - 1); - } - - public String getMatchingVolumesInUse(Predicate predicate) { - for (String item : volumesInUse) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingVolumesInUse(Predicate predicate) { - for (String item : volumesInUse) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - public A withVolumesInUse(List volumesInUse) { if (volumesInUse != null) { this.volumesInUse = new ArrayList(); @@ -1096,7 +1762,7 @@ public A withVolumesInUse(List volumesInUse) { return (A) this; } - public A withVolumesInUse(java.lang.String... volumesInUse) { + public A withVolumesInUse(String... volumesInUse) { if (this.volumesInUse != null) { this.volumesInUse.clear(); _visitables.remove("volumesInUse"); @@ -1108,95 +1774,52 @@ public A withVolumesInUse(java.lang.String... volumesInUse) { } return (A) this; } + public class AddressesNested extends V1NodeAddressFluent> implements Nested{ - public boolean hasVolumesInUse() { - return this.volumesInUse != null && !this.volumesInUse.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; - V1NodeStatusFluent that = (V1NodeStatusFluent) o; - if (!java.util.Objects.equals(addresses, that.addresses)) return false; - if (!java.util.Objects.equals(allocatable, that.allocatable)) 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(config, that.config)) return false; - if (!java.util.Objects.equals(daemonEndpoints, that.daemonEndpoints)) 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, runtimeHandlers, volumesAttached, volumesInUse, super.hashCode()); - } + V1NodeAddressBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (addresses != null && !addresses.isEmpty()) { sb.append("addresses:"); sb.append(addresses + ","); } - if (allocatable != null && !allocatable.isEmpty()) { sb.append("allocatable:"); sb.append(allocatable + ","); } - if (capacity != null && !capacity.isEmpty()) { sb.append("capacity:"); sb.append(capacity + ","); } - 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 (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("}"); - return sb.toString(); - } - public class AddressesNested extends V1NodeAddressFluent> implements Nested{ AddressesNested(int index,V1NodeAddress item) { this.index = index; this.builder = new V1NodeAddressBuilder(this, item); } - V1NodeAddressBuilder builder; - int index; - + public N and() { - return (N) V1NodeStatusFluent.this.setToAddresses(index,builder.build()); + return (N) V1NodeStatusFluent.this.setToAddresses(index, builder.build()); } public N endAddress() { return and(); } - } public class ConditionsNested extends V1NodeConditionFluent> implements Nested{ + + V1NodeConditionBuilder builder; + int index; + ConditionsNested(int index,V1NodeCondition item) { this.index = index; this.builder = new V1NodeConditionBuilder(this, item); } - V1NodeConditionBuilder builder; - int index; - + public N and() { - return (N) V1NodeStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1NodeStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { return and(); } - } public class ConfigNested extends V1NodeConfigStatusFluent> implements Nested{ + + V1NodeConfigStatusBuilder builder; + ConfigNested(V1NodeConfigStatus item) { this.builder = new V1NodeConfigStatusBuilder(this, item); } - V1NodeConfigStatusBuilder builder; - + public N and() { return (N) V1NodeStatusFluent.this.withConfig(builder.build()); } @@ -1205,14 +1828,15 @@ public N endConfig() { return and(); } - } public class DaemonEndpointsNested extends V1NodeDaemonEndpointsFluent> implements Nested{ + + V1NodeDaemonEndpointsBuilder builder; + DaemonEndpointsNested(V1NodeDaemonEndpoints item) { this.builder = new V1NodeDaemonEndpointsBuilder(this, item); } - V1NodeDaemonEndpointsBuilder builder; - + public N and() { return (N) V1NodeStatusFluent.this.withDaemonEndpoints(builder.build()); } @@ -1221,32 +1845,51 @@ public N endDaemonEndpoints() { return and(); } + } + public class FeaturesNested extends V1NodeFeaturesFluent> implements Nested{ + V1NodeFeaturesBuilder builder; + + FeaturesNested(V1NodeFeatures item) { + this.builder = new V1NodeFeaturesBuilder(this, item); + } + + public N and() { + return (N) V1NodeStatusFluent.this.withFeatures(builder.build()); + } + + public N endFeatures() { + return and(); + } + } public class ImagesNested extends V1ContainerImageFluent> implements Nested{ + + V1ContainerImageBuilder builder; + int index; + ImagesNested(int index,V1ContainerImage item) { this.index = index; this.builder = new V1ContainerImageBuilder(this, item); } - V1ContainerImageBuilder builder; - int index; - + public N and() { - return (N) V1NodeStatusFluent.this.setToImages(index,builder.build()); + return (N) V1NodeStatusFluent.this.setToImages(index, builder.build()); } public N endImage() { return and(); } - } public class NodeInfoNested extends V1NodeSystemInfoFluent> implements Nested{ + + V1NodeSystemInfoBuilder builder; + NodeInfoNested(V1NodeSystemInfo item) { this.builder = new V1NodeSystemInfoBuilder(this, item); } - V1NodeSystemInfoBuilder builder; - + public N and() { return (N) V1NodeStatusFluent.this.withNodeInfo(builder.build()); } @@ -1255,43 +1898,43 @@ public N endNodeInfo() { return and(); } - } public class RuntimeHandlersNested extends V1NodeRuntimeHandlerFluent> implements Nested{ + + V1NodeRuntimeHandlerBuilder builder; + int index; + 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()); + return (N) V1NodeStatusFluent.this.setToRuntimeHandlers(index, builder.build()); } public N endRuntimeHandler() { return and(); } - } public class VolumesAttachedNested extends V1AttachedVolumeFluent> implements Nested{ + + V1AttachedVolumeBuilder builder; + int index; + VolumesAttachedNested(int index,V1AttachedVolume item) { this.index = index; this.builder = new V1AttachedVolumeBuilder(this, item); } - V1AttachedVolumeBuilder builder; - int index; - + public N and() { - return (N) V1NodeStatusFluent.this.setToVolumesAttached(index,builder.build()); + return (N) V1NodeStatusFluent.this.setToVolumesAttached(index, builder.build()); } public N endVolumesAttached() { return and(); } - } - } \ No newline at end of file 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..5f96dc308e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1NodeSwapStatusBuilder extends V1NodeSwapStatusFluent implements VisitableBuilder{ + + V1NodeSwapStatusFluent fluent; + + public V1NodeSwapStatusBuilder() { + this(new V1NodeSwapStatus()); + } + + public V1NodeSwapStatusBuilder(V1NodeSwapStatusFluent fluent) { + this(fluent, new V1NodeSwapStatus()); + } + + public V1NodeSwapStatusBuilder(V1NodeSwapStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodeSwapStatusBuilder(V1NodeSwapStatusFluent fluent,V1NodeSwapStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..5105d2600d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java @@ -0,0 +1,78 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NodeSwapStatusFluent> extends BaseFluent{ + + private Long capacity; + + public V1NodeSwapStatusFluent() { + } + + public V1NodeSwapStatusFluent(V1NodeSwapStatus instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1NodeSwapStatus instance) { + instance = instance != null ? instance : new V1NodeSwapStatus(); + if (instance != null) { + this.withCapacity(instance.getCapacity()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeSwapStatusFluent that = (V1NodeSwapStatusFluent) o; + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + return true; + } + + public Long getCapacity() { + return this.capacity; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public int hashCode() { + return Objects.hash(capacity); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + } + sb.append("}"); + return sb.toString(); + } + + public A withCapacity(Long capacity) { + this.capacity = capacity; + return (A) this; + } + +} \ 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..cfe134fec3 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NodeSystemInfoBuilder extends V1NodeSystemInfoFluent implements VisitableBuilder{ + + V1NodeSystemInfoFluent fluent; + public V1NodeSystemInfoBuilder() { this(new V1NodeSystemInfo()); } @@ -10,17 +14,16 @@ public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent) { this(fluent, new V1NodeSystemInfo()); } - public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent,V1NodeSystemInfo instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NodeSystemInfoBuilder(V1NodeSystemInfo instance) { this.fluent = this; this.copyInstance(instance); } - V1NodeSystemInfoFluent fluent; + public V1NodeSystemInfoBuilder(V1NodeSystemInfoFluent fluent,V1NodeSystemInfo instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NodeSystemInfo build() { V1NodeSystemInfo buildable = new V1NodeSystemInfo(); buildable.setArchitecture(fluent.getArchitecture()); @@ -32,9 +35,9 @@ 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; } - } \ No newline at end of file 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..769be1d30d 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 @@ -1,21 +1,20 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NodeSystemInfoFluent> extends BaseFluent{ - public V1NodeSystemInfoFluent() { - } - - public V1NodeSystemInfoFluent(V1NodeSystemInfo instance) { - this.copyInstance(instance); - } +public class V1NodeSystemInfoFluent> extends BaseFluent{ + private String architecture; private String bootID; private String containerRuntimeVersion; @@ -25,192 +24,329 @@ public V1NodeSystemInfoFluent(V1NodeSystemInfo instance) { private String machineID; private String operatingSystem; private String osImage; + private V1NodeSwapStatusBuilder swap; private String systemUUID; + + public V1NodeSystemInfoFluent() { + } + + public V1NodeSystemInfoFluent(V1NodeSystemInfo instance) { + this.copyInstance(instance); + } + + public V1NodeSwapStatus buildSwap() { + return this.swap != null ? this.swap.build() : null; + } protected void copyInstance(V1NodeSystemInfo instance) { - instance = (instance != null ? instance : new V1NodeSystemInfo()); + instance = instance != null ? instance : new V1NodeSystemInfo(); if (instance != null) { - this.withArchitecture(instance.getArchitecture()); - this.withBootID(instance.getBootID()); - this.withContainerRuntimeVersion(instance.getContainerRuntimeVersion()); - this.withKernelVersion(instance.getKernelVersion()); - this.withKubeProxyVersion(instance.getKubeProxyVersion()); - this.withKubeletVersion(instance.getKubeletVersion()); - this.withMachineID(instance.getMachineID()); - this.withOperatingSystem(instance.getOperatingSystem()); - this.withOsImage(instance.getOsImage()); - this.withSystemUUID(instance.getSystemUUID()); - } + this.withArchitecture(instance.getArchitecture()); + this.withBootID(instance.getBootID()); + this.withContainerRuntimeVersion(instance.getContainerRuntimeVersion()); + this.withKernelVersion(instance.getKernelVersion()); + this.withKubeProxyVersion(instance.getKubeProxyVersion()); + this.withKubeletVersion(instance.getKubeletVersion()); + this.withMachineID(instance.getMachineID()); + this.withOperatingSystem(instance.getOperatingSystem()); + this.withOsImage(instance.getOsImage()); + this.withSwap(instance.getSwap()); + this.withSystemUUID(instance.getSystemUUID()); + } } - public String getArchitecture() { - return this.architecture; + public SwapNested editOrNewSwap() { + return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(new V1NodeSwapStatusBuilder().build())); } - public A withArchitecture(String architecture) { - this.architecture = architecture; - return (A) this; + public SwapNested editOrNewSwapLike(V1NodeSwapStatus item) { + return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(item)); } - public boolean hasArchitecture() { - return this.architecture != null; + public SwapNested editSwap() { + return this.withNewSwapLike(Optional.ofNullable(this.buildSwap()).orElse(null)); } - public String getBootID() { - return this.bootID; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeSystemInfoFluent that = (V1NodeSystemInfoFluent) o; + if (!(Objects.equals(architecture, that.architecture))) { + return false; + } + if (!(Objects.equals(bootID, that.bootID))) { + return false; + } + if (!(Objects.equals(containerRuntimeVersion, that.containerRuntimeVersion))) { + return false; + } + if (!(Objects.equals(kernelVersion, that.kernelVersion))) { + return false; + } + if (!(Objects.equals(kubeProxyVersion, that.kubeProxyVersion))) { + return false; + } + if (!(Objects.equals(kubeletVersion, that.kubeletVersion))) { + return false; + } + if (!(Objects.equals(machineID, that.machineID))) { + return false; + } + if (!(Objects.equals(operatingSystem, that.operatingSystem))) { + return false; + } + if (!(Objects.equals(osImage, that.osImage))) { + return false; + } + if (!(Objects.equals(swap, that.swap))) { + return false; + } + if (!(Objects.equals(systemUUID, that.systemUUID))) { + return false; + } + return true; } - public A withBootID(String bootID) { - this.bootID = bootID; - return (A) this; + public String getArchitecture() { + return this.architecture; } - public boolean hasBootID() { - return this.bootID != null; + public String getBootID() { + return this.bootID; } public String getContainerRuntimeVersion() { return this.containerRuntimeVersion; } - public A withContainerRuntimeVersion(String containerRuntimeVersion) { - this.containerRuntimeVersion = containerRuntimeVersion; - return (A) this; + public String getKernelVersion() { + return this.kernelVersion; } - public boolean hasContainerRuntimeVersion() { - return this.containerRuntimeVersion != null; + public String getKubeProxyVersion() { + return this.kubeProxyVersion; } - public String getKernelVersion() { - return this.kernelVersion; + public String getKubeletVersion() { + return this.kubeletVersion; } - public A withKernelVersion(String kernelVersion) { - this.kernelVersion = kernelVersion; - return (A) this; + public String getMachineID() { + return this.machineID; } - public boolean hasKernelVersion() { - return this.kernelVersion != null; + public String getOperatingSystem() { + return this.operatingSystem; } - public String getKubeProxyVersion() { - return this.kubeProxyVersion; + public String getOsImage() { + return this.osImage; } - public A withKubeProxyVersion(String kubeProxyVersion) { - this.kubeProxyVersion = kubeProxyVersion; - return (A) this; + public String getSystemUUID() { + return this.systemUUID; } - public boolean hasKubeProxyVersion() { - return this.kubeProxyVersion != null; + public boolean hasArchitecture() { + return this.architecture != null; } - public String getKubeletVersion() { - return this.kubeletVersion; + public boolean hasBootID() { + return this.bootID != null; } - public A withKubeletVersion(String kubeletVersion) { - this.kubeletVersion = kubeletVersion; - return (A) this; + public boolean hasContainerRuntimeVersion() { + return this.containerRuntimeVersion != null; } - public boolean hasKubeletVersion() { - return this.kubeletVersion != null; + public boolean hasKernelVersion() { + return this.kernelVersion != null; } - public String getMachineID() { - return this.machineID; + public boolean hasKubeProxyVersion() { + return this.kubeProxyVersion != null; } - public A withMachineID(String machineID) { - this.machineID = machineID; - return (A) this; + public boolean hasKubeletVersion() { + return this.kubeletVersion != null; } public boolean hasMachineID() { return this.machineID != null; } - public String getOperatingSystem() { - return this.operatingSystem; + public boolean hasOperatingSystem() { + return this.operatingSystem != null; } - public A withOperatingSystem(String operatingSystem) { - this.operatingSystem = operatingSystem; + public boolean hasOsImage() { + return this.osImage != null; + } + + public boolean hasSwap() { + return this.swap != null; + } + + public boolean hasSystemUUID() { + return this.systemUUID != null; + } + + public int hashCode() { + return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, swap, systemUUID); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(architecture == null)) { + sb.append("architecture:"); + sb.append(architecture); + sb.append(","); + } + if (!(bootID == null)) { + sb.append("bootID:"); + sb.append(bootID); + sb.append(","); + } + if (!(containerRuntimeVersion == null)) { + sb.append("containerRuntimeVersion:"); + sb.append(containerRuntimeVersion); + sb.append(","); + } + if (!(kernelVersion == null)) { + sb.append("kernelVersion:"); + sb.append(kernelVersion); + sb.append(","); + } + if (!(kubeProxyVersion == null)) { + sb.append("kubeProxyVersion:"); + sb.append(kubeProxyVersion); + sb.append(","); + } + if (!(kubeletVersion == null)) { + sb.append("kubeletVersion:"); + sb.append(kubeletVersion); + sb.append(","); + } + if (!(machineID == null)) { + sb.append("machineID:"); + sb.append(machineID); + sb.append(","); + } + if (!(operatingSystem == null)) { + sb.append("operatingSystem:"); + sb.append(operatingSystem); + sb.append(","); + } + if (!(osImage == null)) { + sb.append("osImage:"); + sb.append(osImage); + sb.append(","); + } + if (!(swap == null)) { + sb.append("swap:"); + sb.append(swap); + sb.append(","); + } + if (!(systemUUID == null)) { + sb.append("systemUUID:"); + sb.append(systemUUID); + } + sb.append("}"); + return sb.toString(); + } + + public A withArchitecture(String architecture) { + this.architecture = architecture; return (A) this; } - public boolean hasOperatingSystem() { - return this.operatingSystem != null; + public A withBootID(String bootID) { + this.bootID = bootID; + return (A) this; } - public String getOsImage() { - return this.osImage; + public A withContainerRuntimeVersion(String containerRuntimeVersion) { + this.containerRuntimeVersion = containerRuntimeVersion; + return (A) this; } - public A withOsImage(String osImage) { - this.osImage = osImage; + public A withKernelVersion(String kernelVersion) { + this.kernelVersion = kernelVersion; return (A) this; } - public boolean hasOsImage() { - return this.osImage != null; + public A withKubeProxyVersion(String kubeProxyVersion) { + this.kubeProxyVersion = kubeProxyVersion; + return (A) this; } - public String getSystemUUID() { - return this.systemUUID; + public A withKubeletVersion(String kubeletVersion) { + this.kubeletVersion = kubeletVersion; + return (A) this; } - public A withSystemUUID(String systemUUID) { - this.systemUUID = systemUUID; + public A withMachineID(String machineID) { + this.machineID = machineID; return (A) this; } - public boolean hasSystemUUID() { - return this.systemUUID != null; + public SwapNested withNewSwap() { + return new SwapNested(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; - V1NodeSystemInfoFluent that = (V1NodeSystemInfoFluent) o; - if (!java.util.Objects.equals(architecture, that.architecture)) return false; - if (!java.util.Objects.equals(bootID, that.bootID)) return false; - if (!java.util.Objects.equals(containerRuntimeVersion, that.containerRuntimeVersion)) return false; - if (!java.util.Objects.equals(kernelVersion, that.kernelVersion)) return false; - if (!java.util.Objects.equals(kubeProxyVersion, that.kubeProxyVersion)) return false; - if (!java.util.Objects.equals(kubeletVersion, that.kubeletVersion)) return false; - 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(systemUUID, that.systemUUID)) return false; - return true; + public SwapNested withNewSwapLike(V1NodeSwapStatus item) { + return new SwapNested(item); } - public int hashCode() { - return java.util.Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, systemUUID, super.hashCode()); + public A withOperatingSystem(String operatingSystem) { + this.operatingSystem = operatingSystem; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (architecture != null) { sb.append("architecture:"); sb.append(architecture + ","); } - if (bootID != null) { sb.append("bootID:"); sb.append(bootID + ","); } - if (containerRuntimeVersion != null) { sb.append("containerRuntimeVersion:"); sb.append(containerRuntimeVersion + ","); } - if (kernelVersion != null) { sb.append("kernelVersion:"); sb.append(kernelVersion + ","); } - if (kubeProxyVersion != null) { sb.append("kubeProxyVersion:"); sb.append(kubeProxyVersion + ","); } - if (kubeletVersion != null) { sb.append("kubeletVersion:"); sb.append(kubeletVersion + ","); } - 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 (systemUUID != null) { sb.append("systemUUID:"); sb.append(systemUUID); } - sb.append("}"); - return sb.toString(); + public A withOsImage(String osImage) { + this.osImage = osImage; + return (A) this; } - + 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 A withSystemUUID(String systemUUID) { + this.systemUUID = systemUUID; + return (A) this; + } + public class SwapNested extends V1NodeSwapStatusFluent> implements Nested{ + + V1NodeSwapStatusBuilder builder; + + SwapNested(V1NodeSwapStatus item) { + this.builder = new V1NodeSwapStatusBuilder(this, item); + } + + 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/V1NonResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java index 907aae7433..9fbbedbb81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NonResourceAttributesBuilder extends V1NonResourceAttributesFluent implements VisitableBuilder{ + + V1NonResourceAttributesFluent fluent; + public V1NonResourceAttributesBuilder() { this(new V1NonResourceAttributes()); } @@ -10,17 +14,16 @@ public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent) { this(fluent, new V1NonResourceAttributes()); } - public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent,V1NonResourceAttributes instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NonResourceAttributesBuilder(V1NonResourceAttributes instance) { this.fluent = this; this.copyInstance(instance); } - V1NonResourceAttributesFluent fluent; + public V1NonResourceAttributesBuilder(V1NonResourceAttributesFluent fluent,V1NonResourceAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NonResourceAttributes build() { V1NonResourceAttributes buildable = new V1NonResourceAttributes(); buildable.setPath(fluent.getPath()); @@ -28,5 +31,4 @@ public V1NonResourceAttributes build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java index 76a19ecdef..8aeda50fb7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NonResourceAttributesFluent> extends BaseFluent{ +public class V1NonResourceAttributesFluent> extends BaseFluent{ + + private String path; + private String verb; + public V1NonResourceAttributesFluent() { } public V1NonResourceAttributesFluent(V1NonResourceAttributes instance) { this.copyInstance(instance); } - private String path; - private String verb; - + protected void copyInstance(V1NonResourceAttributes instance) { - instance = (instance != null ? instance : new V1NonResourceAttributes()); + instance = instance != null ? instance : new V1NonResourceAttributes(); if (instance != null) { - this.withPath(instance.getPath()); - this.withVerb(instance.getVerb()); - } + this.withPath(instance.getPath()); + this.withVerb(instance.getVerb()); + } } - public String getPath() { - return this.path; - } - - public A withPath(String path) { - this.path = path; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NonResourceAttributesFluent that = (V1NonResourceAttributesFluent) o; + if (!(Objects.equals(path, that.path))) { + return false; + } + if (!(Objects.equals(verb, that.verb))) { + return false; + } + return true; } - public boolean hasPath() { - return this.path != null; + public String getPath() { + return this.path; } public String getVerb() { return this.verb; } - public A withVerb(String verb) { - this.verb = verb; - return (A) this; + public boolean hasPath() { + return this.path != null; } public boolean hasVerb() { return this.verb != 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; - V1NonResourceAttributesFluent that = (V1NonResourceAttributesFluent) o; - if (!java.util.Objects.equals(path, that.path)) return false; - if (!java.util.Objects.equals(verb, that.verb)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(path, verb, super.hashCode()); + return Objects.hash(path, verb); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (path != null) { sb.append("path:"); sb.append(path + ","); } - if (verb != null) { sb.append("verb:"); sb.append(verb); } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + sb.append(","); + } + if (!(verb == null)) { + sb.append("verb:"); + sb.append(verb); + } sb.append("}"); return sb.toString(); } - + public A withPath(String path) { + this.path = path; + return (A) this; + } + + public A withVerb(String verb) { + this.verb = verb; + return (A) this; + } + } \ 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 index 05a18445de..8e622ba04f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NonResourcePolicyRuleBuilder extends V1NonResourcePolicyRuleFluent implements VisitableBuilder{ + + V1NonResourcePolicyRuleFluent fluent; + public V1NonResourcePolicyRuleBuilder() { this(new V1NonResourcePolicyRule()); } @@ -10,17 +14,16 @@ 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 V1NonResourcePolicyRuleBuilder(V1NonResourcePolicyRuleFluent fluent,V1NonResourcePolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NonResourcePolicyRule build() { V1NonResourcePolicyRule buildable = new V1NonResourcePolicyRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); @@ -28,5 +31,4 @@ public V1NonResourcePolicyRule build() { 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 index 1ea96e5420..d42bf0583e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java @@ -1,83 +1,132 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NonResourcePolicyRuleFluent> extends BaseFluent{ +public class V1NonResourcePolicyRuleFluent> extends BaseFluent{ + + private List nonResourceURLs; + private List verbs; + 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 addAllToNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(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 addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(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 addToNonResourceURLs(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 addToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.add(index, 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 addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(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 A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; } - public List getNonResourceURLs() { - return this.nonResourceURLs; + protected void copyInstance(V1NonResourcePolicyRule instance) { + instance = instance != null ? instance : new V1NonResourcePolicyRule(); + if (instance != null) { + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withVerbs(instance.getVerbs()); + } } - public String getNonResourceURL(int index) { - return this.nonResourceURLs.get(index); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NonResourcePolicyRuleFluent that = (V1NonResourcePolicyRuleFluent) o; + if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } + public String getFirstVerb() { + return this.verbs.get(0); + } + public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + public String getMatchingNonResourceURL(Predicate predicate) { for (String item : nonResourceURLs) { if (predicate.test(item)) { @@ -87,6 +136,31 @@ public String getMatchingNonResourceURL(Predicate predicate) { return null; } + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getNonResourceURL(int index) { + return this.nonResourceURLs.get(index); + } + + public List getNonResourceURLs() { + return this.nonResourceURLs; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public List getVerbs() { + return this.verbs; + } + public boolean hasMatchingNonResourceURL(Predicate predicate) { for (String item : nonResourceURLs) { if (predicate.test(item)) { @@ -96,98 +170,122 @@ public boolean hasMatchingNonResourceURL(Predicate predicate) { return false; } - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; } - } 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; + return false; } public boolean hasNonResourceURLs() { - return this.nonResourceURLs != null && !this.nonResourceURLs.isEmpty(); + 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 boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); } - 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 int hashCode() { + return Objects.hash(nonResourceURLs, verbs); } - 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 removeAllFromNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(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 A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + public A removeFromNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; } - public List getVerbs() { - return this.verbs; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } - public String getVerb(int index) { - return this.verbs.get(index); + public A setToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.set(index, item); + return (A) this; } - public String getFirstVerb() { - return this.verbs.get(0); + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { + sb.append("nonResourceURLs:"); + sb.append(nonResourceURLs); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; + public A withNonResourceURLs(List nonResourceURLs) { + if (nonResourceURLs != null) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); } - } - return null; + } else { + this.nonResourceURLs = null; + } + return (A) this; } - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } + public A withNonResourceURLs(String... nonResourceURLs) { + if (this.nonResourceURLs != null) { + this.nonResourceURLs.clear(); + _visitables.remove("nonResourceURLs"); + } + if (nonResourceURLs != null) { + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); } - return false; + } + return (A) this; } public A withVerbs(List verbs) { @@ -202,7 +300,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -215,32 +313,4 @@ public A withVerbs(java.lang.String... verbs) { 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/V1NonResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java index a7926f2619..88fa739481 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1NonResourceRuleBuilder extends V1NonResourceRuleFluent implements VisitableBuilder{ + + V1NonResourceRuleFluent fluent; + public V1NonResourceRuleBuilder() { this(new V1NonResourceRule()); } @@ -10,17 +14,16 @@ public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent) { this(fluent, new V1NonResourceRule()); } - public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent,V1NonResourceRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1NonResourceRuleBuilder(V1NonResourceRule instance) { this.fluent = this; this.copyInstance(instance); } - V1NonResourceRuleFluent fluent; + public V1NonResourceRuleBuilder(V1NonResourceRuleFluent fluent,V1NonResourceRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1NonResourceRule build() { V1NonResourceRule buildable = new V1NonResourceRule(); buildable.setNonResourceURLs(fluent.getNonResourceURLs()); @@ -28,5 +31,4 @@ public V1NonResourceRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java index 263319bc4d..763f37faa1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java @@ -1,83 +1,132 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1NonResourceRuleFluent> extends BaseFluent{ +public class V1NonResourceRuleFluent> extends BaseFluent{ + + private List nonResourceURLs; + private List verbs; + public V1NonResourceRuleFluent() { } public V1NonResourceRuleFluent(V1NonResourceRule instance) { this.copyInstance(instance); } - private List nonResourceURLs; - private List verbs; - - protected void copyInstance(V1NonResourceRule instance) { - instance = (instance != null ? instance : new V1NonResourceRule()); - 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 addAllToNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(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 addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(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 addToNonResourceURLs(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 addToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.add(index, 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 addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(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 A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; } - public List getNonResourceURLs() { - return this.nonResourceURLs; + protected void copyInstance(V1NonResourceRule instance) { + instance = instance != null ? instance : new V1NonResourceRule(); + if (instance != null) { + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withVerbs(instance.getVerbs()); + } } - public String getNonResourceURL(int index) { - return this.nonResourceURLs.get(index); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NonResourceRuleFluent that = (V1NonResourceRuleFluent) o; + if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } public String getFirstNonResourceURL() { return this.nonResourceURLs.get(0); } + public String getFirstVerb() { + return this.verbs.get(0); + } + public String getLastNonResourceURL() { return this.nonResourceURLs.get(nonResourceURLs.size() - 1); } + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + public String getMatchingNonResourceURL(Predicate predicate) { for (String item : nonResourceURLs) { if (predicate.test(item)) { @@ -87,6 +136,31 @@ public String getMatchingNonResourceURL(Predicate predicate) { return null; } + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getNonResourceURL(int index) { + return this.nonResourceURLs.get(index); + } + + public List getNonResourceURLs() { + return this.nonResourceURLs; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public List getVerbs() { + return this.verbs; + } + public boolean hasMatchingNonResourceURL(Predicate predicate) { for (String item : nonResourceURLs) { if (predicate.test(item)) { @@ -96,98 +170,122 @@ public boolean hasMatchingNonResourceURL(Predicate predicate) { return false; } - public A withNonResourceURLs(List nonResourceURLs) { - if (nonResourceURLs != null) { - this.nonResourceURLs = new ArrayList(); - for (String item : nonResourceURLs) { - this.addToNonResourceURLs(item); + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; } - } 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; + return false; } public boolean hasNonResourceURLs() { - return this.nonResourceURLs != null && !this.nonResourceURLs.isEmpty(); + 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 boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); } - 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 int hashCode() { + return Objects.hash(nonResourceURLs, verbs); } - 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 removeAllFromNonResourceURLs(Collection items) { + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(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 A removeAllFromVerbs(Collection items) { - if (this.verbs == null) return (A)this; - for (String item : items) { this.verbs.remove(item);} return (A)this; + public A removeFromNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; } - public List getVerbs() { - return this.verbs; + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; } - public String getVerb(int index) { - return this.verbs.get(index); + public A setToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.set(index, item); + return (A) this; } - public String getFirstVerb() { - return this.verbs.get(0); + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { + sb.append("nonResourceURLs:"); + sb.append(nonResourceURLs); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; + public A withNonResourceURLs(List nonResourceURLs) { + if (nonResourceURLs != null) { + this.nonResourceURLs = new ArrayList(); + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); } - } - return null; + } else { + this.nonResourceURLs = null; + } + return (A) this; } - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; - } + public A withNonResourceURLs(String... nonResourceURLs) { + if (this.nonResourceURLs != null) { + this.nonResourceURLs.clear(); + _visitables.remove("nonResourceURLs"); + } + if (nonResourceURLs != null) { + for (String item : nonResourceURLs) { + this.addToNonResourceURLs(item); } - return false; + } + return (A) this; } public A withVerbs(List verbs) { @@ -202,7 +300,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -215,32 +313,4 @@ public A withVerbs(java.lang.String... verbs) { 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; - V1NonResourceRuleFluent that = (V1NonResourceRuleFluent) 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/V1ObjectFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java index 4eca119cac..482234a34d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ObjectFieldSelectorBuilder extends V1ObjectFieldSelectorFluent implements VisitableBuilder{ + + V1ObjectFieldSelectorFluent fluent; + public V1ObjectFieldSelectorBuilder() { this(new V1ObjectFieldSelector()); } @@ -10,17 +14,16 @@ public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent) { this(fluent, new V1ObjectFieldSelector()); } - public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent,V1ObjectFieldSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1ObjectFieldSelectorFluent fluent; + public V1ObjectFieldSelectorBuilder(V1ObjectFieldSelectorFluent fluent,V1ObjectFieldSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ObjectFieldSelector build() { V1ObjectFieldSelector buildable = new V1ObjectFieldSelector(); buildable.setApiVersion(fluent.getApiVersion()); @@ -28,5 +31,4 @@ public V1ObjectFieldSelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java index a20298c2f4..892c5d1114 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ObjectFieldSelectorFluent> extends BaseFluent{ +public class V1ObjectFieldSelectorFluent> extends BaseFluent{ + + private String apiVersion; + private String fieldPath; + public V1ObjectFieldSelectorFluent() { } public V1ObjectFieldSelectorFluent(V1ObjectFieldSelector instance) { this.copyInstance(instance); } - private String apiVersion; - private String fieldPath; - + protected void copyInstance(V1ObjectFieldSelector instance) { - instance = (instance != null ? instance : new V1ObjectFieldSelector()); + instance = instance != null ? instance : new V1ObjectFieldSelector(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withFieldPath(instance.getFieldPath()); - } + this.withApiVersion(instance.getApiVersion()); + this.withFieldPath(instance.getFieldPath()); + } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ObjectFieldSelectorFluent that = (V1ObjectFieldSelectorFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(fieldPath, that.fieldPath))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public String getFieldPath() { return this.fieldPath; } - public A withFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasFieldPath() { return this.fieldPath != 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; - V1ObjectFieldSelectorFluent that = (V1ObjectFieldSelectorFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(fieldPath, that.fieldPath)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(apiVersion, fieldPath, super.hashCode()); + return Objects.hash(apiVersion, fieldPath); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (fieldPath != null) { sb.append("fieldPath:"); sb.append(fieldPath); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(fieldPath == null)) { + sb.append("fieldPath:"); + sb.append(fieldPath); + } sb.append("}"); return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java index cb61ffcd3c..f11c87faf1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ObjectMetaBuilder extends V1ObjectMetaFluent implements VisitableBuilder{ + + V1ObjectMetaFluent fluent; + public V1ObjectMetaBuilder() { this(new V1ObjectMeta()); } @@ -10,17 +14,16 @@ public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent) { this(fluent, new V1ObjectMeta()); } - public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent,V1ObjectMeta instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ObjectMetaBuilder(V1ObjectMeta instance) { this.fluent = this; this.copyInstance(instance); } - V1ObjectMetaFluent fluent; + public V1ObjectMetaBuilder(V1ObjectMetaFluent fluent,V1ObjectMeta instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ObjectMeta build() { V1ObjectMeta buildable = new V1ObjectMeta(); buildable.setAnnotations(fluent.getAnnotations()); @@ -41,5 +44,4 @@ public V1ObjectMeta build() { return buildable; } - } \ 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..8623ce018f 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 @@ -1,32 +1,29 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; 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.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.lang.Long; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ObjectMetaFluent> extends BaseFluent{ - public V1ObjectMetaFluent() { - } - - public V1ObjectMetaFluent(V1ObjectMeta instance) { - this.copyInstance(instance); - } +public class V1ObjectMetaFluent> extends BaseFluent{ + private Map annotations; private OffsetDateTime creationTimestamp; private Long deletionGracePeriodSeconds; @@ -42,341 +39,883 @@ public V1ObjectMetaFluent(V1ObjectMeta instance) { private String resourceVersion; private String selfLink; private String uid; - - protected void copyInstance(V1ObjectMeta instance) { - instance = (instance != null ? instance : new V1ObjectMeta()); - if (instance != null) { - this.withAnnotations(instance.getAnnotations()); - this.withCreationTimestamp(instance.getCreationTimestamp()); - this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); - this.withDeletionTimestamp(instance.getDeletionTimestamp()); - this.withFinalizers(instance.getFinalizers()); - this.withGenerateName(instance.getGenerateName()); - this.withGeneration(instance.getGeneration()); - this.withLabels(instance.getLabels()); - this.withManagedFields(instance.getManagedFields()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withOwnerReferences(instance.getOwnerReferences()); - this.withResourceVersion(instance.getResourceVersion()); - this.withSelfLink(instance.getSelfLink()); - this.withUid(instance.getUid()); - } - } - - public A addToAnnotations(String key,String value) { - if(this.annotations == null && key != null && value != null) { this.annotations = new LinkedHashMap(); } - if(key != null && value != null) {this.annotations.put(key, value);} return (A)this; - } - - public A addToAnnotations(Map map) { - if(this.annotations == null && map != null) { this.annotations = new LinkedHashMap(); } - if(map != null) { this.annotations.putAll(map);} return (A)this; + + public V1ObjectMetaFluent() { } - public A removeFromAnnotations(String key) { - if(this.annotations == null) { return (A) this; } - if(key != null && this.annotations != null) {this.annotations.remove(key);} return (A)this; + public V1ObjectMetaFluent(V1ObjectMeta instance) { + this.copyInstance(instance); } - - public A removeFromAnnotations(Map map) { - if(this.annotations == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.annotations != null){this.annotations.remove(key);}}} return (A)this; + + public A addAllToFinalizers(Collection items) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + for (String item : items) { + this.finalizers.add(item); + } + return (A) this; } - public Map getAnnotations() { - return this.annotations; + public A addAllToManagedFields(Collection items) { + if (this.managedFields == null) { + this.managedFields = new ArrayList(); + } + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").add(builder); + this.managedFields.add(builder); + } + return (A) this; } - public A withAnnotations(Map annotations) { - if (annotations == null) { - this.annotations = null; - } else { - this.annotations = new LinkedHashMap(annotations); + public A addAllToOwnerReferences(Collection items) { + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); + } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").add(builder); + this.ownerReferences.add(builder); } return (A) this; } - public boolean hasAnnotations() { - return this.annotations != null; + public ManagedFieldsNested addNewManagedField() { + return new ManagedFieldsNested(-1, null); } - public OffsetDateTime getCreationTimestamp() { - return this.creationTimestamp; + public ManagedFieldsNested addNewManagedFieldLike(V1ManagedFieldsEntry item) { + return new ManagedFieldsNested(-1, item); } - public A withCreationTimestamp(OffsetDateTime creationTimestamp) { - this.creationTimestamp = creationTimestamp; - return (A) this; + public OwnerReferencesNested addNewOwnerReference() { + return new OwnerReferencesNested(-1, null); } - public boolean hasCreationTimestamp() { - return this.creationTimestamp != null; + public OwnerReferencesNested addNewOwnerReferenceLike(V1OwnerReference item) { + return new OwnerReferencesNested(-1, item); } - public Long getDeletionGracePeriodSeconds() { - return this.deletionGracePeriodSeconds; + public A addToAnnotations(Map map) { + if (this.annotations == null && map != null) { + this.annotations = new LinkedHashMap(); + } + if (map != null) { + this.annotations.putAll(map); + } + return (A) this; } - public A withDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { - this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; + public A addToAnnotations(String key,String value) { + if (this.annotations == null && key != null && value != null) { + this.annotations = new LinkedHashMap(); + } + if (key != null && value != null) { + this.annotations.put(key, value); + } return (A) this; } - public boolean hasDeletionGracePeriodSeconds() { - return this.deletionGracePeriodSeconds != null; + public A addToFinalizers(String... items) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + for (String item : items) { + this.finalizers.add(item); + } + return (A) this; } - public OffsetDateTime getDeletionTimestamp() { - return this.deletionTimestamp; + public A addToFinalizers(int index,String item) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + this.finalizers.add(index, item); + return (A) this; } - public A withDeletionTimestamp(OffsetDateTime deletionTimestamp) { - this.deletionTimestamp = deletionTimestamp; + public A addToLabels(Map map) { + if (this.labels == null && map != null) { + this.labels = new LinkedHashMap(); + } + if (map != null) { + this.labels.putAll(map); + } return (A) this; } - public boolean hasDeletionTimestamp() { - return this.deletionTimestamp != null; + public A addToLabels(String key,String value) { + if (this.labels == null && key != null && value != null) { + this.labels = new LinkedHashMap(); + } + if (key != null && value != null) { + this.labels.put(key, value); + } + return (A) this; } - public A addToFinalizers(int index,String item) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - this.finalizers.add(index, item); - return (A)this; + public A addToManagedFields(V1ManagedFieldsEntry... items) { + if (this.managedFields == null) { + this.managedFields = new ArrayList(); + } + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").add(builder); + this.managedFields.add(builder); + } + return (A) this; } - public A setToFinalizers(int index,String item) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - this.finalizers.set(index, item); return (A)this; + 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(builder); + managedFields.add(index, builder); + } + return (A) this; } - public A addToFinalizers(java.lang.String... items) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - for (String item : items) {this.finalizers.add(item);} return (A)this; + public A addToOwnerReferences(V1OwnerReference... items) { + if (this.ownerReferences == null) { + this.ownerReferences = new ArrayList(); + } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").add(builder); + this.ownerReferences.add(builder); + } + return (A) this; } - public A addAllToFinalizers(Collection items) { - if (this.finalizers == null) {this.finalizers = new ArrayList();} - for (String item : items) {this.finalizers.add(item);} return (A)this; + 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(builder); + ownerReferences.add(index, builder); + } + return (A) this; } - public A removeFromFinalizers(java.lang.String... items) { - if (this.finalizers == null) return (A)this; - for (String item : items) { this.finalizers.remove(item);} return (A)this; + public V1ManagedFieldsEntry buildFirstManagedField() { + return this.managedFields.get(0).build(); } - public A removeAllFromFinalizers(Collection items) { - if (this.finalizers == null) return (A)this; - for (String item : items) { this.finalizers.remove(item);} return (A)this; + public V1OwnerReference buildFirstOwnerReference() { + return this.ownerReferences.get(0).build(); } - public List getFinalizers() { - return this.finalizers; + public V1ManagedFieldsEntry buildLastManagedField() { + return this.managedFields.get(managedFields.size() - 1).build(); } - public String getFinalizer(int index) { - return this.finalizers.get(index); + public V1OwnerReference buildLastOwnerReference() { + return this.ownerReferences.get(ownerReferences.size() - 1).build(); } - public String getFirstFinalizer() { - return this.finalizers.get(0); + public V1ManagedFieldsEntry buildManagedField(int index) { + return this.managedFields.get(index).build(); } - public String getLastFinalizer() { - return this.finalizers.get(finalizers.size() - 1); + public List buildManagedFields() { + return this.managedFields != null ? build(managedFields) : null; } - public String getMatchingFinalizer(Predicate predicate) { - for (String item : finalizers) { + public V1ManagedFieldsEntry buildMatchingManagedField(Predicate predicate) { + for (V1ManagedFieldsEntryBuilder item : managedFields) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingFinalizer(Predicate predicate) { - for (String item : finalizers) { + public V1OwnerReference buildMatchingOwnerReference(Predicate predicate) { + for (V1OwnerReferenceBuilder item : ownerReferences) { if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withFinalizers(List finalizers) { - if (finalizers != null) { - this.finalizers = new ArrayList(); - for (String item : finalizers) { - this.addToFinalizers(item); + return item.build(); } - } else { - this.finalizers = null; - } - return (A) this; - } - - public A withFinalizers(java.lang.String... finalizers) { - if (this.finalizers != null) { - this.finalizers.clear(); - _visitables.remove("finalizers"); - } - if (finalizers != null) { - for (String item : finalizers) { - this.addToFinalizers(item); } - } - return (A) this; - } - - public boolean hasFinalizers() { - return this.finalizers != null && !this.finalizers.isEmpty(); - } - - public String getGenerateName() { - return this.generateName; - } - - public A withGenerateName(String generateName) { - this.generateName = generateName; - return (A) this; + return null; } - public boolean hasGenerateName() { - return this.generateName != null; + public V1OwnerReference buildOwnerReference(int index) { + return this.ownerReferences.get(index).build(); } - public Long getGeneration() { - return this.generation; + public List buildOwnerReferences() { + return this.ownerReferences != null ? build(ownerReferences) : null; } - public A withGeneration(Long generation) { - this.generation = generation; - return (A) this; + protected void copyInstance(V1ObjectMeta instance) { + instance = instance != null ? instance : new V1ObjectMeta(); + if (instance != null) { + this.withAnnotations(instance.getAnnotations()); + this.withCreationTimestamp(instance.getCreationTimestamp()); + this.withDeletionGracePeriodSeconds(instance.getDeletionGracePeriodSeconds()); + this.withDeletionTimestamp(instance.getDeletionTimestamp()); + this.withFinalizers(instance.getFinalizers()); + this.withGenerateName(instance.getGenerateName()); + this.withGeneration(instance.getGeneration()); + this.withLabels(instance.getLabels()); + this.withManagedFields(instance.getManagedFields()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withOwnerReferences(instance.getOwnerReferences()); + this.withResourceVersion(instance.getResourceVersion()); + this.withSelfLink(instance.getSelfLink()); + this.withUid(instance.getUid()); + } } - public boolean hasGeneration() { - return this.generation != null; + public ManagedFieldsNested editFirstManagedField() { + if (managedFields.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "managedFields")); + } + return this.setNewManagedFieldLike(0, this.buildManagedField(0)); } - public A addToLabels(String key,String value) { - if(this.labels == null && key != null && value != null) { this.labels = new LinkedHashMap(); } - if(key != null && value != null) {this.labels.put(key, value);} return (A)this; + public OwnerReferencesNested editFirstOwnerReference() { + if (ownerReferences.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(0, this.buildOwnerReference(0)); } - public A addToLabels(Map map) { - if(this.labels == null && map != null) { this.labels = new LinkedHashMap(); } - if(map != null) { this.labels.putAll(map);} return (A)this; + public ManagedFieldsNested editLastManagedField() { + int index = managedFields.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "managedFields")); + } + return this.setNewManagedFieldLike(index, this.buildManagedField(index)); } - public A removeFromLabels(String key) { - if(this.labels == null) { return (A) this; } - if(key != null && this.labels != null) {this.labels.remove(key);} return (A)this; + public OwnerReferencesNested editLastOwnerReference() { + int index = ownerReferences.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); } - public A removeFromLabels(Map map) { - if(this.labels == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.labels != null){this.labels.remove(key);}}} return (A)this; + public ManagedFieldsNested editManagedField(int index) { + if (managedFields.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "managedFields")); + } + return this.setNewManagedFieldLike(index, this.buildManagedField(index)); } - public Map getLabels() { - return this.labels; + public ManagedFieldsNested editMatchingManagedField(Predicate predicate) { + int index = -1; + for (int i = 0;i < managedFields.size();i++) { + if (predicate.test(managedFields.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "managedFields")); + } + return this.setNewManagedFieldLike(index, this.buildManagedField(index)); } - public A withLabels(Map labels) { - if (labels == null) { - this.labels = null; - } else { - this.labels = new LinkedHashMap(labels); + public OwnerReferencesNested editMatchingOwnerReference(Predicate predicate) { + int index = -1; + for (int i = 0;i < ownerReferences.size();i++) { + if (predicate.test(ownerReferences.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); } - public boolean hasLabels() { - return this.labels != null; + public OwnerReferencesNested editOwnerReference(int index) { + if (ownerReferences.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ownerReferences")); + } + return this.setNewOwnerReferenceLike(index, this.buildOwnerReference(index)); } - 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);} - return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ObjectMetaFluent that = (V1ObjectMetaFluent) o; + if (!(Objects.equals(annotations, that.annotations))) { + return false; + } + if (!(Objects.equals(creationTimestamp, that.creationTimestamp))) { + return false; + } + if (!(Objects.equals(deletionGracePeriodSeconds, that.deletionGracePeriodSeconds))) { + return false; + } + if (!(Objects.equals(deletionTimestamp, that.deletionTimestamp))) { + return false; + } + if (!(Objects.equals(finalizers, that.finalizers))) { + return false; + } + if (!(Objects.equals(generateName, that.generateName))) { + return false; + } + if (!(Objects.equals(generation, that.generation))) { + return false; + } + if (!(Objects.equals(labels, that.labels))) { + return false; + } + if (!(Objects.equals(managedFields, that.managedFields))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(ownerReferences, that.ownerReferences))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(selfLink, that.selfLink))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; + } + + public Map getAnnotations() { + return this.annotations; + } + + public OffsetDateTime getCreationTimestamp() { + return this.creationTimestamp; + } + + public Long getDeletionGracePeriodSeconds() { + return this.deletionGracePeriodSeconds; + } + + public OffsetDateTime getDeletionTimestamp() { + return this.deletionTimestamp; + } + + public String getFinalizer(int index) { + return this.finalizers.get(index); + } + + public List getFinalizers() { + return this.finalizers; + } + + public String getFirstFinalizer() { + return this.finalizers.get(0); + } + + public String getGenerateName() { + return this.generateName; + } + + public Long getGeneration() { + return this.generation; + } + + public Map getLabels() { + return this.labels; + } + + public String getLastFinalizer() { + return this.finalizers.get(finalizers.size() - 1); + } + + public String getMatchingFinalizer(Predicate predicate) { + for (String item : finalizers) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getResourceVersion() { + return this.resourceVersion; + } + + public String getSelfLink() { + return this.selfLink; + } + + public String getUid() { + return this.uid; + } + + public boolean hasAnnotations() { + return this.annotations != null; + } + + public boolean hasCreationTimestamp() { + return this.creationTimestamp != null; + } + + public boolean hasDeletionGracePeriodSeconds() { + return this.deletionGracePeriodSeconds != null; + } + + public boolean hasDeletionTimestamp() { + return this.deletionTimestamp != null; + } + + public boolean hasFinalizers() { + return this.finalizers != null && !(this.finalizers.isEmpty()); + } + + public boolean hasGenerateName() { + return this.generateName != null; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public boolean hasLabels() { + return this.labels != null; + } + + public boolean hasManagedFields() { + return this.managedFields != null && !(this.managedFields.isEmpty()); + } + + public boolean hasMatchingFinalizer(Predicate predicate) { + for (String item : finalizers) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingManagedField(Predicate predicate) { + for (V1ManagedFieldsEntryBuilder item : managedFields) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingOwnerReference(Predicate predicate) { + for (V1OwnerReferenceBuilder item : ownerReferences) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasOwnerReferences() { + return this.ownerReferences != null && !(this.ownerReferences.isEmpty()); + } + + public boolean hasResourceVersion() { + return this.resourceVersion != null; + } + + public boolean hasSelfLink() { + return this.selfLink != null; + } + + public boolean hasUid() { + return this.uid != null; + } + + public int hashCode() { + return Objects.hash(annotations, creationTimestamp, deletionGracePeriodSeconds, deletionTimestamp, finalizers, generateName, generation, labels, managedFields, name, namespace, ownerReferences, resourceVersion, selfLink, uid); + } + + public A removeAllFromFinalizers(Collection items) { + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; + } + + public A removeAllFromManagedFields(Collection items) { + if (this.managedFields == null) { + return (A) this; + } + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").remove(builder); + this.managedFields.remove(builder); + } + return (A) this; + } + + public A removeAllFromOwnerReferences(Collection items) { + if (this.ownerReferences == null) { + return (A) this; + } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").remove(builder); + this.ownerReferences.remove(builder); + } + return (A) this; + } + + public A removeFromAnnotations(String key) { + if (this.annotations == null) { + return (A) this; + } + if (key != null && this.annotations != null) { + this.annotations.remove(key); + } + return (A) this; + } + + public A removeFromAnnotations(Map map) { + if (this.annotations == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.annotations != null) { + this.annotations.remove(key); + } + } + } + return (A) this; + } + + public A removeFromFinalizers(String... items) { + if (this.finalizers == null) { + return (A) this; + } + for (String item : items) { + this.finalizers.remove(item); + } + return (A) this; + } + + public A removeFromLabels(String key) { + if (this.labels == null) { + return (A) this; + } + if (key != null && this.labels != null) { + this.labels.remove(key); + } + return (A) this; + } + + public A removeFromLabels(Map map) { + if (this.labels == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.labels != null) { + this.labels.remove(key); + } + } + } + return (A) this; + } + + public A removeFromManagedFields(V1ManagedFieldsEntry... items) { + if (this.managedFields == null) { + return (A) this; + } + for (V1ManagedFieldsEntry item : items) { + V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); + _visitables.get("managedFields").remove(builder); + this.managedFields.remove(builder); + } + return (A) this; + } + + public A removeFromOwnerReferences(V1OwnerReference... items) { + if (this.ownerReferences == null) { + return (A) this; + } + for (V1OwnerReference item : items) { + V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); + _visitables.get("ownerReferences").remove(builder); + this.ownerReferences.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromManagedFields(Predicate predicate) { + if (managedFields == null) { + return (A) this; + } + Iterator each = managedFields.iterator(); + List visitables = _visitables.get("managedFields"); + while (each.hasNext()) { + V1ManagedFieldsEntryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromOwnerReferences(Predicate predicate) { + if (ownerReferences == null) { + return (A) this; + } + Iterator each = ownerReferences.iterator(); + List visitables = _visitables.get("ownerReferences"); + while (each.hasNext()) { + V1OwnerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ManagedFieldsNested setNewManagedFieldLike(int index,V1ManagedFieldsEntry item) { + return new ManagedFieldsNested(index, item); + } + + public OwnerReferencesNested setNewOwnerReferenceLike(int index,V1OwnerReference item) { + return new OwnerReferencesNested(index, item); + } + + public A setToFinalizers(int index,String item) { + if (this.finalizers == null) { + this.finalizers = new ArrayList(); + } + this.finalizers.set(index, item); + return (A) this; } public A setToManagedFields(int index,V1ManagedFieldsEntry item) { - if (this.managedFields == null) {this.managedFields = new ArrayList();} + 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);} - return (A)this; + 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; } - public A addToManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items) { - if (this.managedFields == null) {this.managedFields = new ArrayList();} - for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").add(builder);this.managedFields.add(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").add(builder); + ownerReferences.set(index, builder); + } + return (A) this; } - public A addAllToManagedFields(Collection items) { - if (this.managedFields == null) {this.managedFields = new ArrayList();} - for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").add(builder);this.managedFields.add(builder);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(annotations == null) && !(annotations.isEmpty())) { + sb.append("annotations:"); + sb.append(annotations); + sb.append(","); + } + if (!(creationTimestamp == null)) { + sb.append("creationTimestamp:"); + sb.append(creationTimestamp); + sb.append(","); + } + if (!(deletionGracePeriodSeconds == null)) { + sb.append("deletionGracePeriodSeconds:"); + sb.append(deletionGracePeriodSeconds); + sb.append(","); + } + if (!(deletionTimestamp == null)) { + sb.append("deletionTimestamp:"); + sb.append(deletionTimestamp); + sb.append(","); + } + if (!(finalizers == null) && !(finalizers.isEmpty())) { + sb.append("finalizers:"); + sb.append(finalizers); + sb.append(","); + } + if (!(generateName == null)) { + sb.append("generateName:"); + sb.append(generateName); + sb.append(","); + } + if (!(generation == null)) { + sb.append("generation:"); + sb.append(generation); + sb.append(","); + } + if (!(labels == null) && !(labels.isEmpty())) { + sb.append("labels:"); + sb.append(labels); + sb.append(","); + } + if (!(managedFields == null) && !(managedFields.isEmpty())) { + sb.append("managedFields:"); + sb.append(managedFields); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(ownerReferences == null) && !(ownerReferences.isEmpty())) { + sb.append("ownerReferences:"); + sb.append(ownerReferences); + sb.append(","); + } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + sb.append(","); + } + if (!(selfLink == null)) { + sb.append("selfLink:"); + sb.append(selfLink); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); + } + + public A withAnnotations(Map annotations) { + if (annotations == null) { + this.annotations = null; + } else { + this.annotations = new LinkedHashMap(annotations); + } + return (A) this; + } + + public A withCreationTimestamp(OffsetDateTime creationTimestamp) { + this.creationTimestamp = creationTimestamp; + return (A) this; } - public A removeFromManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... items) { - if (this.managedFields == null) return (A)this; - for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").remove(builder); this.managedFields.remove(builder);} return (A)this; + public A withDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { + this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; + return (A) this; } - public A removeAllFromManagedFields(Collection items) { - if (this.managedFields == null) return (A)this; - for (V1ManagedFieldsEntry item : items) {V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item);_visitables.get("managedFields").remove(builder); this.managedFields.remove(builder);} return (A)this; + public A withDeletionTimestamp(OffsetDateTime deletionTimestamp) { + this.deletionTimestamp = deletionTimestamp; + return (A) this; } - public A removeMatchingFromManagedFields(Predicate predicate) { - if (managedFields == null) return (A) this; - final Iterator each = managedFields.iterator(); - final List visitables = _visitables.get("managedFields"); - while (each.hasNext()) { - V1ManagedFieldsEntryBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A withFinalizers(List finalizers) { + if (finalizers != null) { + this.finalizers = new ArrayList(); + for (String item : finalizers) { + this.addToFinalizers(item); + } + } else { + this.finalizers = null; } - return (A)this; - } - - public List buildManagedFields() { - return this.managedFields != null ? build(managedFields) : null; - } - - public V1ManagedFieldsEntry buildManagedField(int index) { - return this.managedFields.get(index).build(); + return (A) this; } - public V1ManagedFieldsEntry buildFirstManagedField() { - return this.managedFields.get(0).build(); + public A withFinalizers(String... finalizers) { + if (this.finalizers != null) { + this.finalizers.clear(); + _visitables.remove("finalizers"); + } + if (finalizers != null) { + for (String item : finalizers) { + this.addToFinalizers(item); + } + } + return (A) this; } - public V1ManagedFieldsEntry buildLastManagedField() { - return this.managedFields.get(managedFields.size() - 1).build(); + public A withGenerateName(String generateName) { + this.generateName = generateName; + return (A) this; } - public V1ManagedFieldsEntry buildMatchingManagedField(Predicate predicate) { - for (V1ManagedFieldsEntryBuilder item : managedFields) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; } - public boolean hasMatchingManagedField(Predicate predicate) { - for (V1ManagedFieldsEntryBuilder item : managedFields) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withLabels(Map labels) { + if (labels == null) { + this.labels = null; + } else { + this.labels = new LinkedHashMap(labels); + } + return (A) this; } public A withManagedFields(List managedFields) { @@ -394,7 +933,7 @@ public A withManagedFields(List managedFields) { return (A) this; } - public A withManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEntry... managedFields) { + public A withManagedFields(V1ManagedFieldsEntry... managedFields) { if (this.managedFields != null) { this.managedFields.clear(); _visitables.remove("managedFields"); @@ -407,155 +946,16 @@ public A withManagedFields(io.kubernetes.client.openapi.models.V1ManagedFieldsEn return (A) this; } - public boolean hasManagedFields() { - return this.managedFields != null && !this.managedFields.isEmpty(); - } - - public ManagedFieldsNested addNewManagedField() { - return new ManagedFieldsNested(-1, null); - } - - public ManagedFieldsNested addNewManagedFieldLike(V1ManagedFieldsEntry item) { - return new ManagedFieldsNested(-1, item); - } - - public ManagedFieldsNested setNewManagedFieldLike(int index,V1ManagedFieldsEntry item) { - return new ManagedFieldsNested(index, item); - } - - public ManagedFieldsNested editManagedField(int index) { - if (managedFields.size() <= index) throw new RuntimeException("Can't edit managedFields. Index exceeds size."); - return setNewManagedFieldLike(index, buildManagedField(index)); - } - - public ManagedFieldsNested editFirstManagedField() { - if (managedFields.size() == 0) throw new RuntimeException("Can't edit first managedFields. The list is empty."); - return setNewManagedFieldLike(0, buildManagedField(0)); - } - - public ManagedFieldsNested editLastManagedField() { - int index = managedFields.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last managedFields. The list is empty."); - return setNewManagedFieldLike(index, buildManagedField(index)); - } - - public ManagedFieldsNested editMatchingManagedField(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - 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);} - return (A)this; - } - - public A addToOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items) { - if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} - for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").add(builder);this.ownerReferences.add(builder);} return (A)this; - } - - public A addAllToOwnerReferences(Collection items) { - if (this.ownerReferences == null) {this.ownerReferences = new ArrayList();} - for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").add(builder);this.ownerReferences.add(builder);} return (A)this; - } - - public A removeFromOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... items) { - if (this.ownerReferences == null) return (A)this; - for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").remove(builder); this.ownerReferences.remove(builder);} return (A)this; - } - - public A removeAllFromOwnerReferences(Collection items) { - if (this.ownerReferences == null) return (A)this; - for (V1OwnerReference item : items) {V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item);_visitables.get("ownerReferences").remove(builder); this.ownerReferences.remove(builder);} return (A)this; - } - - public A removeMatchingFromOwnerReferences(Predicate predicate) { - if (ownerReferences == null) return (A) this; - final Iterator each = ownerReferences.iterator(); - final List visitables = _visitables.get("ownerReferences"); - while (each.hasNext()) { - V1OwnerReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildOwnerReferences() { - return this.ownerReferences != null ? build(ownerReferences) : null; - } - - public V1OwnerReference buildOwnerReference(int index) { - return this.ownerReferences.get(index).build(); - } - - public V1OwnerReference buildFirstOwnerReference() { - return this.ownerReferences.get(0).build(); - } - - public V1OwnerReference buildLastOwnerReference() { - return this.ownerReferences.get(ownerReferences.size() - 1).build(); - } - - public V1OwnerReference buildMatchingOwnerReference(Predicate predicate) { - for (V1OwnerReferenceBuilder item : ownerReferences) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingOwnerReference(Predicate predicate) { - for (V1OwnerReferenceBuilder item : ownerReferences) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - public A withOwnerReferences(List ownerReferences) { if (this.ownerReferences != null) { this._visitables.get("ownerReferences").clear(); @@ -571,7 +971,7 @@ public A withOwnerReferences(List ownerReferences) { return (A) this; } - public A withOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReference... ownerReferences) { + public A withOwnerReferences(V1OwnerReference... ownerReferences) { if (this.ownerReferences != null) { this.ownerReferences.clear(); _visitables.remove("ownerReferences"); @@ -584,169 +984,56 @@ public A withOwnerReferences(io.kubernetes.client.openapi.models.V1OwnerReferenc return (A) this; } - public boolean hasOwnerReferences() { - return this.ownerReferences != null && !this.ownerReferences.isEmpty(); - } - - public OwnerReferencesNested addNewOwnerReference() { - return new OwnerReferencesNested(-1, null); - } - - public OwnerReferencesNested addNewOwnerReferenceLike(V1OwnerReference item) { - return new OwnerReferencesNested(-1, item); - } - - public OwnerReferencesNested setNewOwnerReferenceLike(int index,V1OwnerReference item) { - return new OwnerReferencesNested(index, item); - } - - public OwnerReferencesNested editOwnerReference(int index) { - if (ownerReferences.size() <= index) throw new RuntimeException("Can't edit ownerReferences. Index exceeds size."); - return setNewOwnerReferenceLike(index, buildOwnerReference(index)); - } - - public OwnerReferencesNested editFirstOwnerReference() { - if (ownerReferences.size() == 0) throw new RuntimeException("Can't edit first ownerReferences. The list is empty."); - return setNewOwnerReferenceLike(0, buildOwnerReference(0)); - } - - public OwnerReferencesNested editLastOwnerReference() { - int index = ownerReferences.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ownerReferences. The list is empty."); - return setNewOwnerReferenceLike(index, buildOwnerReference(index)); - } - - public OwnerReferencesNested editMatchingOwnerReference(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1ManagedFieldsEntryFluent> implements Nested{ - 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; - V1ObjectMetaFluent that = (V1ObjectMetaFluent) o; - if (!java.util.Objects.equals(annotations, that.annotations)) return false; - if (!java.util.Objects.equals(creationTimestamp, that.creationTimestamp)) return false; - if (!java.util.Objects.equals(deletionGracePeriodSeconds, that.deletionGracePeriodSeconds)) return false; - if (!java.util.Objects.equals(deletionTimestamp, that.deletionTimestamp)) return false; - if (!java.util.Objects.equals(finalizers, that.finalizers)) return false; - if (!java.util.Objects.equals(generateName, that.generateName)) return false; - if (!java.util.Objects.equals(generation, that.generation)) return false; - if (!java.util.Objects.equals(labels, that.labels)) return false; - if (!java.util.Objects.equals(managedFields, that.managedFields)) 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(ownerReferences, that.ownerReferences)) return false; - if (!java.util.Objects.equals(resourceVersion, that.resourceVersion)) return false; - if (!java.util.Objects.equals(selfLink, that.selfLink)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(annotations, creationTimestamp, deletionGracePeriodSeconds, deletionTimestamp, finalizers, generateName, generation, labels, managedFields, name, namespace, ownerReferences, resourceVersion, selfLink, uid, super.hashCode()); - } + V1ManagedFieldsEntryBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (annotations != null && !annotations.isEmpty()) { sb.append("annotations:"); sb.append(annotations + ","); } - if (creationTimestamp != null) { sb.append("creationTimestamp:"); sb.append(creationTimestamp + ","); } - if (deletionGracePeriodSeconds != null) { sb.append("deletionGracePeriodSeconds:"); sb.append(deletionGracePeriodSeconds + ","); } - if (deletionTimestamp != null) { sb.append("deletionTimestamp:"); sb.append(deletionTimestamp + ","); } - if (finalizers != null && !finalizers.isEmpty()) { sb.append("finalizers:"); sb.append(finalizers + ","); } - if (generateName != null) { sb.append("generateName:"); sb.append(generateName + ","); } - if (generation != null) { sb.append("generation:"); sb.append(generation + ","); } - if (labels != null && !labels.isEmpty()) { sb.append("labels:"); sb.append(labels + ","); } - if (managedFields != null && !managedFields.isEmpty()) { sb.append("managedFields:"); sb.append(managedFields + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespace != null) { sb.append("namespace:"); sb.append(namespace + ","); } - if (ownerReferences != null && !ownerReferences.isEmpty()) { sb.append("ownerReferences:"); sb.append(ownerReferences + ","); } - if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } - if (selfLink != null) { sb.append("selfLink:"); sb.append(selfLink + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } - sb.append("}"); - return sb.toString(); - } - public class ManagedFieldsNested extends V1ManagedFieldsEntryFluent> implements Nested{ ManagedFieldsNested(int index,V1ManagedFieldsEntry item) { this.index = index; this.builder = new V1ManagedFieldsEntryBuilder(this, item); } - V1ManagedFieldsEntryBuilder builder; - int index; - + public N and() { - return (N) V1ObjectMetaFluent.this.setToManagedFields(index,builder.build()); + return (N) V1ObjectMetaFluent.this.setToManagedFields(index, builder.build()); } public N endManagedField() { return and(); } - } public class OwnerReferencesNested extends V1OwnerReferenceFluent> implements Nested{ + + V1OwnerReferenceBuilder builder; + int index; + OwnerReferencesNested(int index,V1OwnerReference item) { this.index = index; this.builder = new V1OwnerReferenceBuilder(this, item); } - V1OwnerReferenceBuilder builder; - int index; - + public N and() { - return (N) V1ObjectMetaFluent.this.setToOwnerReferences(index,builder.build()); + return (N) V1ObjectMetaFluent.this.setToOwnerReferences(index, builder.build()); } public N endOwnerReference() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java index f1bc3fd357..90f36c067b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ObjectReferenceBuilder extends V1ObjectReferenceFluent implements VisitableBuilder{ + + V1ObjectReferenceFluent fluent; + public V1ObjectReferenceBuilder() { this(new V1ObjectReference()); } @@ -10,17 +14,16 @@ public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent) { this(fluent, new V1ObjectReference()); } - public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent,V1ObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ObjectReferenceBuilder(V1ObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1ObjectReferenceFluent fluent; + public V1ObjectReferenceBuilder(V1ObjectReferenceFluent fluent,V1ObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ObjectReference build() { V1ObjectReference buildable = new V1ObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +36,4 @@ public V1ObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java index 321a24325f..4a8fbfe947 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java @@ -1,21 +1,18 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ObjectReferenceFluent> extends BaseFluent{ - public V1ObjectReferenceFluent() { - } - - public V1ObjectReferenceFluent(V1ObjectReference instance) { - this.copyInstance(instance); - } +public class V1ObjectReferenceFluent> extends BaseFluent{ + private String apiVersion; private String fieldPath; private String kind; @@ -23,143 +20,196 @@ public V1ObjectReferenceFluent(V1ObjectReference instance) { private String namespace; private String resourceVersion; private String uid; + + public V1ObjectReferenceFluent() { + } + public V1ObjectReferenceFluent(V1ObjectReference instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ObjectReference instance) { - instance = (instance != null ? instance : new V1ObjectReference()); + instance = instance != null ? instance : new V1ObjectReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withFieldPath(instance.getFieldPath()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResourceVersion(instance.getResourceVersion()); - this.withUid(instance.getUid()); - } + this.withApiVersion(instance.getApiVersion()); + this.withFieldPath(instance.getFieldPath()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResourceVersion(instance.getResourceVersion()); + this.withUid(instance.getUid()); + } } - public String getApiVersion() { - return this.apiVersion; - } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ObjectReferenceFluent that = (V1ObjectReferenceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(fieldPath, that.fieldPath))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public String getFieldPath() { return this.fieldPath; } - public A withFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return (A) this; + public String getKind() { + return this.kind; } - public boolean hasFieldPath() { - return this.fieldPath != null; + public String getName() { + return this.name; } - public String getKind() { - return this.kind; + public String getNamespace() { + return this.namespace; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public String getResourceVersion() { + return this.resourceVersion; } - public boolean hasKind() { - return this.kind != null; + public String getUid() { + return this.uid; } - public String getName() { - return this.name; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasFieldPath() { + return this.fieldPath != null; + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasName() { return this.name != null; } - public String getNamespace() { - return this.namespace; + public boolean hasNamespace() { + return this.namespace != null; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public boolean hasResourceVersion() { + return this.resourceVersion != null; } - public boolean hasNamespace() { - return this.namespace != null; + public boolean hasUid() { + return this.uid != null; } - public String getResourceVersion() { - return this.resourceVersion; + public int hashCode() { + return Objects.hash(apiVersion, fieldPath, kind, name, namespace, resourceVersion, uid); } - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(fieldPath == null)) { + sb.append("fieldPath:"); + sb.append(fieldPath); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); } - public boolean hasResourceVersion() { - return this.resourceVersion != null; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public String getUid() { - return this.uid; + public A withFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return (A) this; } - public A withUid(String uid) { - this.uid = uid; + public A withKind(String kind) { + this.kind = kind; return (A) this; } - public boolean hasUid() { - return this.uid != null; + public A withName(String name) { + this.name = name; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ObjectReferenceFluent that = (V1ObjectReferenceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(fieldPath, that.fieldPath)) 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; - if (!java.util.Objects.equals(resourceVersion, that.resourceVersion)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - return true; + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(apiVersion, fieldPath, kind, name, namespace, resourceVersion, uid, super.hashCode()); + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (fieldPath != null) { sb.append("fieldPath:"); sb.append(fieldPath + ","); } - 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 + ","); } - if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } - sb.append("}"); - return sb.toString(); + public A withUid(String uid) { + this.uid = uid; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java new file mode 100644 index 0000000000..917c9370ec --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1OpaqueDeviceConfigurationBuilder extends V1OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + + V1OpaqueDeviceConfigurationFluent fluent; + + public V1OpaqueDeviceConfigurationBuilder() { + this(new V1OpaqueDeviceConfiguration()); + } + + public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfigurationFluent fluent) { + this(fluent, new V1OpaqueDeviceConfiguration()); + } + + public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1OpaqueDeviceConfigurationBuilder(V1OpaqueDeviceConfigurationFluent fluent,V1OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1OpaqueDeviceConfiguration build() { + V1OpaqueDeviceConfiguration buildable = new V1OpaqueDeviceConfiguration(); + 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/V1OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java new file mode 100644 index 0000000000..aa46061c64 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java @@ -0,0 +1,100 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1OpaqueDeviceConfigurationFluent> extends BaseFluent{ + + private String driver; + private Object parameters; + + public V1OpaqueDeviceConfigurationFluent() { + } + + public V1OpaqueDeviceConfigurationFluent(V1OpaqueDeviceConfiguration instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1OpaqueDeviceConfiguration instance) { + instance = instance != null ? instance : new V1OpaqueDeviceConfiguration(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1OpaqueDeviceConfigurationFluent that = (V1OpaqueDeviceConfigurationFluent) o; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; + } + + public String getDriver() { + return this.driver; + } + + public Object getParameters() { + return this.parameters; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public int hashCode() { + return Objects.hash(driver, parameters); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(parameters == null)) { + sb.append("parameters:"); + sb.append(parameters); + } + sb.append("}"); + return sb.toString(); + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java index 006bacfd7f..d4f4815643 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1OverheadBuilder extends V1OverheadFluent implements VisitableBuilder{ + + V1OverheadFluent fluent; + public V1OverheadBuilder() { this(new V1Overhead()); } @@ -10,22 +14,20 @@ public V1OverheadBuilder(V1OverheadFluent fluent) { this(fluent, new V1Overhead()); } - public V1OverheadBuilder(V1OverheadFluent fluent,V1Overhead instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1OverheadBuilder(V1Overhead instance) { this.fluent = this; this.copyInstance(instance); } - V1OverheadFluent fluent; + public V1OverheadBuilder(V1OverheadFluent fluent,V1Overhead instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Overhead build() { V1Overhead buildable = new V1Overhead(); buildable.setPodFixed(fluent.getPodFixed()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java index 19a0f8d0e8..5aa4b7ad1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java @@ -1,90 +1,128 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1OverheadFluent> extends BaseFluent{ +public class V1OverheadFluent> extends BaseFluent{ + + private Map podFixed; + public V1OverheadFluent() { } public V1OverheadFluent(V1Overhead instance) { this.copyInstance(instance); } - private Map podFixed; - - protected void copyInstance(V1Overhead instance) { - instance = (instance != null ? instance : new V1Overhead()); - if (instance != null) { - this.withPodFixed(instance.getPodFixed()); - } + + public A addToPodFixed(Map map) { + if (this.podFixed == null && map != null) { + this.podFixed = new LinkedHashMap(); + } + if (map != null) { + this.podFixed.putAll(map); + } + return (A) this; } public A addToPodFixed(String key,Quantity value) { - if(this.podFixed == null && key != null && value != null) { this.podFixed = new LinkedHashMap(); } - if(key != null && value != null) {this.podFixed.put(key, value);} return (A)this; - } - - public A addToPodFixed(Map map) { - if(this.podFixed == null && map != null) { this.podFixed = new LinkedHashMap(); } - if(map != null) { this.podFixed.putAll(map);} return (A)this; + if (this.podFixed == null && key != null && value != null) { + this.podFixed = new LinkedHashMap(); + } + if (key != null && value != null) { + this.podFixed.put(key, value); + } + return (A) this; } - public A removeFromPodFixed(String key) { - if(this.podFixed == null) { return (A) this; } - if(key != null && this.podFixed != null) {this.podFixed.remove(key);} return (A)this; + protected void copyInstance(V1Overhead instance) { + instance = instance != null ? instance : new V1Overhead(); + if (instance != null) { + this.withPodFixed(instance.getPodFixed()); + } } - public A removeFromPodFixed(Map map) { - if(this.podFixed == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.podFixed != null){this.podFixed.remove(key);}}} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1OverheadFluent that = (V1OverheadFluent) o; + if (!(Objects.equals(podFixed, that.podFixed))) { + return false; + } + return true; } public Map getPodFixed() { return this.podFixed; } - public A withPodFixed(Map podFixed) { - if (podFixed == null) { - this.podFixed = null; - } else { - this.podFixed = new LinkedHashMap(podFixed); - } - return (A) this; - } - public boolean hasPodFixed() { return this.podFixed != 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; - V1OverheadFluent that = (V1OverheadFluent) o; - if (!java.util.Objects.equals(podFixed, that.podFixed)) return false; - return true; + public int hashCode() { + return Objects.hash(podFixed); } - public int hashCode() { - return java.util.Objects.hash(podFixed, super.hashCode()); + public A removeFromPodFixed(String key) { + if (this.podFixed == null) { + return (A) this; + } + if (key != null && this.podFixed != null) { + this.podFixed.remove(key); + } + return (A) this; + } + + public A removeFromPodFixed(Map map) { + if (this.podFixed == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.podFixed != null) { + this.podFixed.remove(key); + } + } + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (podFixed != null && !podFixed.isEmpty()) { sb.append("podFixed:"); sb.append(podFixed); } + if (!(podFixed == null) && !(podFixed.isEmpty())) { + sb.append("podFixed:"); + sb.append(podFixed); + } sb.append("}"); return sb.toString(); } - + public A withPodFixed(Map podFixed) { + if (podFixed == null) { + this.podFixed = null; + } else { + this.podFixed = new LinkedHashMap(podFixed); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java index 7d292fa113..f957fc97b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1OwnerReferenceBuilder extends V1OwnerReferenceFluent implements VisitableBuilder{ + + V1OwnerReferenceFluent fluent; + public V1OwnerReferenceBuilder() { this(new V1OwnerReference()); } @@ -10,17 +14,16 @@ public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent) { this(fluent, new V1OwnerReference()); } - public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent,V1OwnerReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1OwnerReferenceBuilder(V1OwnerReference instance) { this.fluent = this; this.copyInstance(instance); } - V1OwnerReferenceFluent fluent; + public V1OwnerReferenceBuilder(V1OwnerReferenceFluent fluent,V1OwnerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1OwnerReference build() { V1OwnerReference buildable = new V1OwnerReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +35,4 @@ public V1OwnerReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java index 272276b27d..8f91bb5ddb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java @@ -1,157 +1,201 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1OwnerReferenceFluent> extends BaseFluent{ - public V1OwnerReferenceFluent() { - } - - public V1OwnerReferenceFluent(V1OwnerReference instance) { - this.copyInstance(instance); - } +public class V1OwnerReferenceFluent> extends BaseFluent{ + private String apiVersion; private Boolean blockOwnerDeletion; private Boolean controller; private String kind; private String name; private String uid; + + public V1OwnerReferenceFluent() { + } + public V1OwnerReferenceFluent(V1OwnerReference instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1OwnerReference instance) { - instance = (instance != null ? instance : new V1OwnerReference()); + instance = instance != null ? instance : new V1OwnerReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withBlockOwnerDeletion(instance.getBlockOwnerDeletion()); - this.withController(instance.getController()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withUid(instance.getUid()); - } - } - - public String getApiVersion() { - return this.apiVersion; + this.withApiVersion(instance.getApiVersion()); + this.withBlockOwnerDeletion(instance.getBlockOwnerDeletion()); + this.withController(instance.getController()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withUid(instance.getUid()); + } } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1OwnerReferenceFluent that = (V1OwnerReferenceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(blockOwnerDeletion, that.blockOwnerDeletion))) { + return false; + } + if (!(Objects.equals(controller, that.controller))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public Boolean getBlockOwnerDeletion() { return this.blockOwnerDeletion; } - public A withBlockOwnerDeletion(Boolean blockOwnerDeletion) { - this.blockOwnerDeletion = blockOwnerDeletion; - return (A) this; - } - - public boolean hasBlockOwnerDeletion() { - return this.blockOwnerDeletion != null; - } - public Boolean getController() { return this.controller; } - public A withController(Boolean controller) { - this.controller = controller; - return (A) this; - } - - public boolean hasController() { - return this.controller != null; - } - public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public String getName() { + return this.name; } - public boolean hasKind() { - return this.kind != null; + public String getUid() { + return this.uid; } - public String getName() { - return this.name; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasBlockOwnerDeletion() { + return this.blockOwnerDeletion != null; } - public boolean hasName() { - return this.name != null; + public boolean hasController() { + return this.controller != null; } - public String getUid() { - return this.uid; + public boolean hasKind() { + return this.kind != null; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + public boolean hasName() { + return this.name != null; } 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; - V1OwnerReferenceFluent that = (V1OwnerReferenceFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(blockOwnerDeletion, that.blockOwnerDeletion)) return false; - if (!java.util.Objects.equals(controller, that.controller)) 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(uid, that.uid)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(apiVersion, blockOwnerDeletion, controller, kind, name, uid, super.hashCode()); + return Objects.hash(apiVersion, blockOwnerDeletion, controller, kind, name, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (blockOwnerDeletion != null) { sb.append("blockOwnerDeletion:"); sb.append(blockOwnerDeletion + ","); } - if (controller != null) { sb.append("controller:"); sb.append(controller + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(blockOwnerDeletion == null)) { + sb.append("blockOwnerDeletion:"); + sb.append(blockOwnerDeletion); + sb.append(","); + } + if (!(controller == null)) { + sb.append("controller:"); + sb.append(controller); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } sb.append("}"); return sb.toString(); } + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withBlockOwnerDeletion() { return withBlockOwnerDeletion(true); } + public A withBlockOwnerDeletion(Boolean blockOwnerDeletion) { + this.blockOwnerDeletion = blockOwnerDeletion; + return (A) this; + } + public A withController() { return withController(true); } - + public A withController(Boolean controller) { + this.controller = controller; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file 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 index 1800023ec1..4d9d1ca34e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ParamKindBuilder extends V1ParamKindFluent implements VisitableBuilder{ + + V1ParamKindFluent fluent; + public V1ParamKindBuilder() { this(new V1ParamKind()); } @@ -10,17 +14,16 @@ 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 V1ParamKindBuilder(V1ParamKindFluent fluent,V1ParamKind instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ParamKind build() { V1ParamKind buildable = new V1ParamKind(); buildable.setApiVersion(fluent.getApiVersion()); @@ -28,5 +31,4 @@ public V1ParamKind build() { 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 index f99f5d41d0..4d1a296cfe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ParamKindFluent> extends BaseFluent{ +public class V1ParamKindFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + 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()); + instance = instance != null ? instance : new V1ParamKind(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ParamKindFluent that = (V1ParamKindFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } 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()); + return Objects.hash(apiVersion, kind); } 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 (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + } sb.append("}"); return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + } \ 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 index e4a453db6d..bc86d0efb8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ParamRefBuilder extends V1ParamRefFluent implements VisitableBuilder{ + + V1ParamRefFluent fluent; + public V1ParamRefBuilder() { this(new V1ParamRef()); } @@ -10,17 +14,16 @@ 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 V1ParamRefBuilder(V1ParamRefFluent fluent,V1ParamRef instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ParamRef build() { V1ParamRef buildable = new V1ParamRef(); buildable.setName(fluent.getName()); @@ -30,5 +33,4 @@ public V1ParamRef build() { 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 index a83db9fe05..eeb96ff233 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java @@ -1,94 +1,150 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ParamRefFluent> extends BaseFluent{ +public class V1ParamRefFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String parameterNotFoundAction; + private V1LabelSelectorBuilder selector; + public V1ParamRefFluent() { } public V1ParamRefFluent(V1ParamRef instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String parameterNotFoundAction; - private V1LabelSelectorBuilder selector; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V1ParamRef instance) { - instance = (instance != null ? instance : new V1ParamRef()); + 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()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); + this.withSelector(instance.getSelector()); + } } - public String getName() { - return this.name; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withName(String name) { - this.name = name; - return (A) this; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public boolean hasName() { - return this.name != null; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public String getNamespace() { - return this.namespace; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ParamRefFluent that = (V1ParamRefFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + return true; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public String getName() { + return this.name; } - public boolean hasNamespace() { - return this.namespace != null; + public String getNamespace() { + return this.namespace; } public String getParameterNotFoundAction() { return this.parameterNotFoundAction; } - public A withParameterNotFoundAction(String parameterNotFoundAction) { - this.parameterNotFoundAction = parameterNotFoundAction; - return (A) this; + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; } public boolean hasParameterNotFoundAction() { return this.parameterNotFoundAction != null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public boolean hasSelector() { + return this.selector != 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); + public int hashCode() { + return Objects.hash(name, namespace, parameterNotFoundAction, selector); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); } + if (!(parameterNotFoundAction == null)) { + sb.append("parameterNotFoundAction:"); + sb.append(parameterNotFoundAction); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; return (A) this; } - public boolean hasSelector() { - return this.selector != null; + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; } public SelectorNested withNewSelector() { @@ -99,50 +155,30 @@ 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 A withParameterNotFoundAction(String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; + return (A) this; } - 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 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 class SelectorNested extends V1LabelSelectorFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(name, namespace, parameterNotFoundAction, selector, super.hashCode()); - } + V1LabelSelectorBuilder builder; - 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()); } @@ -151,7 +187,5 @@ 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..625970ebe8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ParentReferenceBuilder extends V1ParentReferenceFluent implements VisitableBuilder{ + + V1ParentReferenceFluent fluent; + + public V1ParentReferenceBuilder() { + this(new V1ParentReference()); + } + + public V1ParentReferenceBuilder(V1ParentReferenceFluent fluent) { + this(fluent, new V1ParentReference()); + } + + public V1ParentReferenceBuilder(V1ParentReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ParentReferenceBuilder(V1ParentReferenceFluent fluent,V1ParentReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..20a50bc5c1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java @@ -0,0 +1,146 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ParentReferenceFluent> extends BaseFluent{ + + private String group; + private String name; + private String namespace; + private String resource; + + public V1ParentReferenceFluent() { + } + + public V1ParentReferenceFluent(V1ParentReference instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ParentReferenceFluent that = (V1ParentReferenceFluent) o; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + return true; + } + + public String getGroup() { + return this.group; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getResource() { + return this.resource; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public int hashCode() { + return Objects.hash(group, name, namespace, resource); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } + sb.append("}"); + return sb.toString(); + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java index bddd3062ee..671a20b8f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeBuilder extends V1PersistentVolumeFluent implements VisitableBuilder{ + + V1PersistentVolumeFluent fluent; + public V1PersistentVolumeBuilder() { this(new V1PersistentVolume()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent) { this(fluent, new V1PersistentVolume()); } - public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent,V1PersistentVolume instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeBuilder(V1PersistentVolume instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeFluent fluent; + public V1PersistentVolumeBuilder(V1PersistentVolumeFluent fluent,V1PersistentVolume instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolume build() { V1PersistentVolume buildable = new V1PersistentVolume(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1PersistentVolume build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java index 77485612ac..fb63bc76f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimBuilder extends V1PersistentVolumeClaimFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimFluent fluent; + public V1PersistentVolumeClaimBuilder() { this(new V1PersistentVolumeClaim()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent) { this(fluent, new V1PersistentVolumeClaim()); } - public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent,V1PersistentVolumeClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaim instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimFluent fluent; + public V1PersistentVolumeClaimBuilder(V1PersistentVolumeClaimFluent fluent,V1PersistentVolumeClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaim build() { V1PersistentVolumeClaim buildable = new V1PersistentVolumeClaim(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1PersistentVolumeClaim build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java index a60d586e24..59e299ad20 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimConditionBuilder extends V1PersistentVolumeClaimConditionFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimConditionFluent fluent; + public V1PersistentVolumeClaimConditionBuilder() { this(new V1PersistentVolumeClaimCondition()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionF this(fluent, new V1PersistentVolumeClaimCondition()); } - public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionFluent fluent,V1PersistentVolumeClaimCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimConditionFluent fluent; + public V1PersistentVolumeClaimConditionBuilder(V1PersistentVolumeClaimConditionFluent fluent,V1PersistentVolumeClaimCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimCondition build() { V1PersistentVolumeClaimCondition buildable = new V1PersistentVolumeClaimCondition(); buildable.setLastProbeTime(fluent.getLastProbeTime()); @@ -32,5 +35,4 @@ public V1PersistentVolumeClaimCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java index 3d94ff0e18..19dc7fc8a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java @@ -1,149 +1,193 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimConditionFluent> extends BaseFluent{ - public V1PersistentVolumeClaimConditionFluent() { - } - - public V1PersistentVolumeClaimConditionFluent(V1PersistentVolumeClaimCondition instance) { - this.copyInstance(instance); - } +public class V1PersistentVolumeClaimConditionFluent> extends BaseFluent{ + private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1PersistentVolumeClaimConditionFluent() { + } + public V1PersistentVolumeClaimConditionFluent(V1PersistentVolumeClaimCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1PersistentVolumeClaimCondition instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimCondition()); + instance = instance != null ? instance : new V1PersistentVolumeClaimCondition(); if (instance != null) { - this.withLastProbeTime(instance.getLastProbeTime()); - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastProbeTime() { - return this.lastProbeTime; + this.withLastProbeTime(instance.getLastProbeTime()); + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } - public A withLastProbeTime(OffsetDateTime lastProbeTime) { - this.lastProbeTime = lastProbeTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimConditionFluent that = (V1PersistentVolumeClaimConditionFluent) o; + if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastProbeTime() { - return this.lastProbeTime != null; + public OffsetDateTime getLastProbeTime() { + return this.lastProbeTime; } public OffsetDateTime getLastTransitionTime() { return this.lastTransitionTime; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public String getMessage() { + return this.message; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public String getReason() { + return this.reason; } - public String getMessage() { - return this.message; + public String getStatus() { + return this.status; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getType() { + return this.type; } - public boolean hasMessage() { - return this.message != null; + public boolean hasLastProbeTime() { + return this.lastProbeTime != null; } - public String getReason() { - return this.reason; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastProbeTime == null)) { + sb.append("lastProbeTime:"); + sb.append(lastProbeTime); + sb.append(","); + } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastProbeTime(OffsetDateTime lastProbeTime) { + this.lastProbeTime = lastProbeTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1PersistentVolumeClaimConditionFluent that = (V1PersistentVolumeClaimConditionFluent) 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(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 A withMessage(String message) { + this.message = message; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - 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 (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(); + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java index cd916a4dc1..74bb87be9a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1PersistentVolumeClaimSpecBuilder spec; + private V1PersistentVolumeClaimStatusBuilder status; + public V1PersistentVolumeClaimFluent() { } public V1PersistentVolumeClaimFluent(V1PersistentVolumeClaim instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1PersistentVolumeClaimSpecBuilder spec; - private V1PersistentVolumeClaimStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PersistentVolumeClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1PersistentVolumeClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1PersistentVolumeClaim instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaim()); + instance = instance != null ? instance : new V1PersistentVolumeClaim(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PersistentVolumeClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PersistentVolumeClaimStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1PersistentVolumeClaimStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimFluent that = (V1PersistentVolumeClaimFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1PersistentVolumeClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1PersistentVolumeClaimStatus item) { + return new StatusNested(item); } public A withSpec(V1PersistentVolumeClaimSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1PersistentVolumeClaimSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec 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 V1PersistentVolumeClaimSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1PersistentVolumeClaimStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1PersistentVolumeClaimStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1PersistentVolumeClaimStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1PersistentVolumeClaimStatus 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 V1PersistentVolumeClaimStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1PersistentVolumeClaimStatus 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; - V1PersistentVolumeClaimFluent that = (V1PersistentVolumeClaimFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1PersistentVolumeClaimFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PersistentVolumeClaimSpecFluent> implements Nested{ + + V1PersistentVolumeClaimSpecBuilder builder; + SpecNested(V1PersistentVolumeClaimSpec item) { this.builder = new V1PersistentVolumeClaimSpecBuilder(this, item); } - V1PersistentVolumeClaimSpecBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PersistentVolumeClaimStatusFluent> implements Nested{ + + V1PersistentVolumeClaimStatusBuilder builder; + StatusNested(V1PersistentVolumeClaimStatus item) { this.builder = new V1PersistentVolumeClaimStatusBuilder(this, item); } - V1PersistentVolumeClaimStatusBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java index 7c30fd749b..5efd989a5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimListBuilder extends V1PersistentVolumeClaimListFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimListFluent fluent; + public V1PersistentVolumeClaimListBuilder() { this(new V1PersistentVolumeClaimList()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent f this(fluent, new V1PersistentVolumeClaimList()); } - public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent fluent,V1PersistentVolumeClaimList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimList instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimListFluent fluent; + public V1PersistentVolumeClaimListBuilder(V1PersistentVolumeClaimListFluent fluent,V1PersistentVolumeClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimList build() { V1PersistentVolumeClaimList buildable = new V1PersistentVolumeClaimList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1PersistentVolumeClaimList build() { return buildable; } - } \ 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..7a82b70d70 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimListFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1PersistentVolumeClaimListFluent() { } public V1PersistentVolumeClaimListFluent(V1PersistentVolumeClaimList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PersistentVolumeClaimList instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1PersistentVolumeClaim item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1PersistentVolumeClaim... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1PersistentVolumeClaim item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1PersistentVolumeClaim buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1PersistentVolumeClaim buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.items == null) return (A)this; - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PersistentVolumeClaim buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PersistentVolumeClaim buildMatchingItem(Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1PersistentVolumeClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1PersistentVolumeClaimList instance) { + instance = instance != null ? instance : new V1PersistentVolumeClaimList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1PersistentVolumeClaim buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1PersistentVolumeClaim buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PersistentVolumeClaim buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimListFluent that = (V1PersistentVolumeClaimListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1PersistentVolumeClaim buildMatchingItem(Predicate predicate) { - for (V1PersistentVolumeClaimBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predica return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PersistentVolumeClaim... items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PersistentVolumeClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PersistentVolumeClaim item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { + public A withItems(V1PersistentVolumeClaim... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim.. return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PersistentVolumeClaim item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PersistentVolumeClaim 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1PersistentVolumeClaimFluent> implements Nested{ - 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; - V1PersistentVolumeClaimListFluent that = (V1PersistentVolumeClaimListFluent) 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()); - } + V1PersistentVolumeClaimBuilder builder; + int index; - 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 V1PersistentVolumeClaimFluent> implements Nested{ ItemsNested(int index,V1PersistentVolumeClaim item) { this.index = index; this.builder = new V1PersistentVolumeClaimBuilder(this, item); } - V1PersistentVolumeClaimBuilder builder; - int index; - + public N and() { - return (N) V1PersistentVolumeClaimListFluent.this.setToItems(index,builder.build()); + return (N) V1PersistentVolumeClaimListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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 effa6daefb..ab703a1118 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimSpecBuilder extends V1PersistentVolumeClaimSpecFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimSpecFluent fluent; + public V1PersistentVolumeClaimSpecBuilder() { this(new V1PersistentVolumeClaimSpec()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent f this(fluent, new V1PersistentVolumeClaimSpec()); } - public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent fluent,V1PersistentVolumeClaimSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimSpecFluent fluent; + public V1PersistentVolumeClaimSpecBuilder(V1PersistentVolumeClaimSpecFluent fluent,V1PersistentVolumeClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimSpec build() { V1PersistentVolumeClaimSpec buildable = new V1PersistentVolumeClaimSpec(); buildable.setAccessModes(fluent.getAccessModes()); @@ -35,5 +38,4 @@ public V1PersistentVolumeClaimSpec build() { return buildable; } - } \ No newline at end of file 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 755ea57e7d..c614618282 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 @@ -1,26 +1,24 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimSpecFluent> extends BaseFluent{ - public V1PersistentVolumeClaimSpecFluent() { - } - - public V1PersistentVolumeClaimSpecFluent(V1PersistentVolumeClaimSpec instance) { - this.copyInstance(instance); - } +public class V1PersistentVolumeClaimSpecFluent> extends BaseFluent{ + private List accessModes; private V1TypedLocalObjectReferenceBuilder dataSource; private V1TypedObjectReferenceBuilder dataSourceRef; @@ -30,61 +28,170 @@ public V1PersistentVolumeClaimSpecFluent(V1PersistentVolumeClaimSpec instance) { private String volumeAttributesClassName; private String volumeMode; private String volumeName; + + public V1PersistentVolumeClaimSpecFluent() { + } - protected void copyInstance(V1PersistentVolumeClaimSpec instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimSpec()); - if (instance != null) { - this.withAccessModes(instance.getAccessModes()); - this.withDataSource(instance.getDataSource()); - this.withDataSourceRef(instance.getDataSourceRef()); - this.withResources(instance.getResources()); - this.withSelector(instance.getSelector()); - this.withStorageClassName(instance.getStorageClassName()); - this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); - this.withVolumeMode(instance.getVolumeMode()); - this.withVolumeName(instance.getVolumeName()); - } + public V1PersistentVolumeClaimSpecFluent(V1PersistentVolumeClaimSpec instance) { + this.copyInstance(instance); + } + + public A addAllToAccessModes(Collection items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; + } + + public A addToAccessModes(String... items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } public A addToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } this.accessModes.add(index, item); - return (A)this; + return (A) this; } - public A setToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - this.accessModes.set(index, item); return (A)this; + public V1TypedLocalObjectReference buildDataSource() { + return this.dataSource != null ? this.dataSource.build() : null; } - public A addToAccessModes(java.lang.String... items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + public V1TypedObjectReference buildDataSourceRef() { + return this.dataSourceRef != null ? this.dataSourceRef.build() : null; } - public A addAllToAccessModes(Collection items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + public V1VolumeResourceRequirements buildResources() { + return this.resources != null ? this.resources.build() : null; } - public A removeFromAccessModes(java.lang.String... items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; } - public A removeAllFromAccessModes(Collection items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + protected void copyInstance(V1PersistentVolumeClaimSpec instance) { + instance = instance != null ? instance : new V1PersistentVolumeClaimSpec(); + if (instance != null) { + this.withAccessModes(instance.getAccessModes()); + this.withDataSource(instance.getDataSource()); + this.withDataSourceRef(instance.getDataSourceRef()); + this.withResources(instance.getResources()); + this.withSelector(instance.getSelector()); + this.withStorageClassName(instance.getStorageClassName()); + this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); + this.withVolumeMode(instance.getVolumeMode()); + this.withVolumeName(instance.getVolumeName()); + } } - public List getAccessModes() { - return this.accessModes; + public DataSourceNested editDataSource() { + return this.withNewDataSourceLike(Optional.ofNullable(this.buildDataSource()).orElse(null)); + } + + public DataSourceRefNested editDataSourceRef() { + return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(null)); + } + + public DataSourceNested editOrNewDataSource() { + return this.withNewDataSourceLike(Optional.ofNullable(this.buildDataSource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); + } + + public DataSourceNested editOrNewDataSourceLike(V1TypedLocalObjectReference item) { + return this.withNewDataSourceLike(Optional.ofNullable(this.buildDataSource()).orElse(item)); + } + + public DataSourceRefNested editOrNewDataSourceRef() { + return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(new V1TypedObjectReferenceBuilder().build())); + } + + public DataSourceRefNested editOrNewDataSourceRefLike(V1TypedObjectReference item) { + return this.withNewDataSourceRefLike(Optional.ofNullable(this.buildDataSourceRef()).orElse(item)); + } + + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1VolumeResourceRequirementsBuilder().build())); + } + + public ResourcesNested editOrNewResourcesLike(V1VolumeResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); + } + + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); + } + + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); + } + + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimSpecFluent that = (V1PersistentVolumeClaimSpecFluent) o; + if (!(Objects.equals(accessModes, that.accessModes))) { + return false; + } + if (!(Objects.equals(dataSource, that.dataSource))) { + return false; + } + if (!(Objects.equals(dataSourceRef, that.dataSourceRef))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(storageClassName, that.storageClassName))) { + return false; + } + if (!(Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName))) { + return false; + } + if (!(Objects.equals(volumeMode, that.volumeMode))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + return true; } public String getAccessMode(int index) { return this.accessModes.get(index); } + public List getAccessModes() { + return this.accessModes; + } + public String getFirstAccessMode() { return this.accessModes.get(0); } @@ -102,6 +209,34 @@ public String getMatchingAccessMode(Predicate predicate) { return null; } + public String getStorageClassName() { + return this.storageClassName; + } + + public String getVolumeAttributesClassName() { + return this.volumeAttributesClassName; + } + + public String getVolumeMode() { + return this.volumeMode; + } + + public String getVolumeName() { + return this.volumeName; + } + + public boolean hasAccessModes() { + return this.accessModes != null && !(this.accessModes.isEmpty()); + } + + public boolean hasDataSource() { + return this.dataSource != null; + } + + public boolean hasDataSourceRef() { + return this.dataSourceRef != null; + } + public boolean hasMatchingAccessMode(Predicate predicate) { for (String item : accessModes) { if (predicate.test(item)) { @@ -111,6 +246,113 @@ public boolean hasMatchingAccessMode(Predicate predicate) { return false; } + public boolean hasResources() { + return this.resources != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public boolean hasStorageClassName() { + return this.storageClassName != null; + } + + public boolean hasVolumeAttributesClassName() { + return this.volumeAttributesClassName != null; + } + + public boolean hasVolumeMode() { + return this.volumeMode != null; + } + + public boolean hasVolumeName() { + return this.volumeName != null; + } + + public int hashCode() { + return Objects.hash(accessModes, dataSource, dataSourceRef, resources, selector, storageClassName, volumeAttributesClassName, volumeMode, volumeName); + } + + public A removeAllFromAccessModes(Collection items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; + } + + public A removeFromAccessModes(String... items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; + } + + public A setToAccessModes(int index,String item) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(accessModes == null) && !(accessModes.isEmpty())) { + sb.append("accessModes:"); + sb.append(accessModes); + sb.append(","); + } + if (!(dataSource == null)) { + sb.append("dataSource:"); + sb.append(dataSource); + sb.append(","); + } + if (!(dataSourceRef == null)) { + sb.append("dataSourceRef:"); + sb.append(dataSourceRef); + sb.append(","); + } + if (!(resources == null)) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(storageClassName == null)) { + sb.append("storageClassName:"); + sb.append(storageClassName); + sb.append(","); + } + if (!(volumeAttributesClassName == null)) { + sb.append("volumeAttributesClassName:"); + sb.append(volumeAttributesClassName); + sb.append(","); + } + if (!(volumeMode == null)) { + sb.append("volumeMode:"); + sb.append(volumeMode); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + } + sb.append("}"); + return sb.toString(); + } + public A withAccessModes(List accessModes) { if (accessModes != null) { this.accessModes = new ArrayList(); @@ -123,7 +365,7 @@ public A withAccessModes(List accessModes) { return (A) this; } - public A withAccessModes(java.lang.String... accessModes) { + public A withAccessModes(String... accessModes) { if (this.accessModes != null) { this.accessModes.clear(); _visitables.remove("accessModes"); @@ -136,14 +378,6 @@ public A withAccessModes(java.lang.String... accessModes) { return (A) this; } - public boolean hasAccessModes() { - return this.accessModes != null && !this.accessModes.isEmpty(); - } - - public V1TypedLocalObjectReference buildDataSource() { - return this.dataSource != null ? this.dataSource.build() : null; - } - public A withDataSource(V1TypedLocalObjectReference dataSource) { this._visitables.remove("dataSource"); if (dataSource != null) { @@ -156,34 +390,6 @@ public A withDataSource(V1TypedLocalObjectReference dataSource) { return (A) this; } - public boolean hasDataSource() { - return this.dataSource != null; - } - - public DataSourceNested withNewDataSource() { - return new DataSourceNested(null); - } - - public DataSourceNested withNewDataSourceLike(V1TypedLocalObjectReference item) { - return new DataSourceNested(item); - } - - public DataSourceNested editDataSource() { - return withNewDataSourceLike(java.util.Optional.ofNullable(buildDataSource()).orElse(null)); - } - - public DataSourceNested editOrNewDataSource() { - return withNewDataSourceLike(java.util.Optional.ofNullable(buildDataSource()).orElse(new V1TypedLocalObjectReferenceBuilder().build())); - } - - public DataSourceNested editOrNewDataSourceLike(V1TypedLocalObjectReference item) { - return withNewDataSourceLike(java.util.Optional.ofNullable(buildDataSource()).orElse(item)); - } - - public V1TypedObjectReference buildDataSourceRef() { - return this.dataSourceRef != null ? this.dataSourceRef.build() : null; - } - public A withDataSourceRef(V1TypedObjectReference dataSourceRef) { this._visitables.remove("dataSourceRef"); if (dataSourceRef != null) { @@ -196,8 +402,12 @@ public A withDataSourceRef(V1TypedObjectReference dataSourceRef) { return (A) this; } - public boolean hasDataSourceRef() { - return this.dataSourceRef != null; + public DataSourceNested withNewDataSource() { + return new DataSourceNested(null); + } + + public DataSourceNested withNewDataSourceLike(V1TypedLocalObjectReference item) { + return new DataSourceNested(item); } public DataSourceRefNested withNewDataSourceRef() { @@ -208,20 +418,20 @@ public DataSourceRefNested withNewDataSourceRefLike(V1TypedObjectReference it return new DataSourceRefNested(item); } - public DataSourceRefNested editDataSourceRef() { - return withNewDataSourceRefLike(java.util.Optional.ofNullable(buildDataSourceRef()).orElse(null)); + public ResourcesNested withNewResources() { + return new ResourcesNested(null); } - public DataSourceRefNested editOrNewDataSourceRef() { - return withNewDataSourceRefLike(java.util.Optional.ofNullable(buildDataSourceRef()).orElse(new V1TypedObjectReferenceBuilder().build())); + public ResourcesNested withNewResourcesLike(V1VolumeResourceRequirements item) { + return new ResourcesNested(item); } - public DataSourceRefNested editOrNewDataSourceRefLike(V1TypedObjectReference item) { - return withNewDataSourceRefLike(java.util.Optional.ofNullable(buildDataSourceRef()).orElse(item)); + public SelectorNested withNewSelector() { + return new SelectorNested(null); } - public V1VolumeResourceRequirements buildResources() { - return this.resources != null ? this.resources.build() : null; + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); } public A withResources(V1VolumeResourceRequirements resources) { @@ -236,34 +446,6 @@ public A withResources(V1VolumeResourceRequirements resources) { return (A) this; } - public boolean hasResources() { - return this.resources != null; - } - - public ResourcesNested withNewResources() { - return new ResourcesNested(null); - } - - public ResourcesNested withNewResourcesLike(V1VolumeResourceRequirements 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 V1VolumeResourceRequirementsBuilder().build())); - } - - public ResourcesNested editOrNewResourcesLike(V1VolumeResourceRequirements item) { - return withNewResourcesLike(java.util.Optional.ofNullable(buildResources()).orElse(item)); - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - public A withSelector(V1LabelSelector selector) { this._visitables.remove("selector"); if (selector != null) { @@ -276,124 +458,33 @@ public A withSelector(V1LabelSelector 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 String getStorageClassName() { - return this.storageClassName; - } - public A withStorageClassName(String storageClassName) { this.storageClassName = storageClassName; return (A) this; } - 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; - } - public A withVolumeMode(String volumeMode) { this.volumeMode = volumeMode; return (A) this; } - public boolean hasVolumeMode() { - return this.volumeMode != null; - } - - public String getVolumeName() { - return this.volumeName; - } - public A withVolumeName(String volumeName) { this.volumeName = volumeName; return (A) this; } + public class DataSourceNested extends V1TypedLocalObjectReferenceFluent> implements Nested{ - public boolean hasVolumeName() { - return this.volumeName != 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; - V1PersistentVolumeClaimSpecFluent that = (V1PersistentVolumeClaimSpecFluent) o; - if (!java.util.Objects.equals(accessModes, that.accessModes)) return false; - if (!java.util.Objects.equals(dataSource, that.dataSource)) return false; - if (!java.util.Objects.equals(dataSourceRef, that.dataSourceRef)) return false; - 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, volumeAttributesClassName, volumeMode, volumeName, super.hashCode()); - } + V1TypedLocalObjectReferenceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (accessModes != null && !accessModes.isEmpty()) { sb.append("accessModes:"); sb.append(accessModes + ","); } - if (dataSource != null) { sb.append("dataSource:"); sb.append(dataSource + ","); } - if (dataSourceRef != null) { sb.append("dataSourceRef:"); sb.append(dataSourceRef + ","); } - 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("}"); - return sb.toString(); - } - public class DataSourceNested extends V1TypedLocalObjectReferenceFluent> implements Nested{ DataSourceNested(V1TypedLocalObjectReference item) { this.builder = new V1TypedLocalObjectReferenceBuilder(this, item); } - V1TypedLocalObjectReferenceBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimSpecFluent.this.withDataSource(builder.build()); } @@ -402,14 +493,15 @@ public N endDataSource() { return and(); } - } public class DataSourceRefNested extends V1TypedObjectReferenceFluent> implements Nested{ + + V1TypedObjectReferenceBuilder builder; + DataSourceRefNested(V1TypedObjectReference item) { this.builder = new V1TypedObjectReferenceBuilder(this, item); } - V1TypedObjectReferenceBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimSpecFluent.this.withDataSourceRef(builder.build()); } @@ -418,14 +510,15 @@ public N endDataSourceRef() { return and(); } - } public class ResourcesNested extends V1VolumeResourceRequirementsFluent> implements Nested{ + + V1VolumeResourceRequirementsBuilder builder; + ResourcesNested(V1VolumeResourceRequirements item) { this.builder = new V1VolumeResourceRequirementsBuilder(this, item); } - V1VolumeResourceRequirementsBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimSpecFluent.this.withResources(builder.build()); } @@ -434,14 +527,15 @@ public N endResources() { return and(); } - } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimSpecFluent.this.withSelector(builder.build()); } @@ -450,7 +544,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file 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 ed81387b44..db942b3a09 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimStatusBuilder extends V1PersistentVolumeClaimStatusFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimStatusFluent fluent; + public V1PersistentVolumeClaimStatusBuilder() { this(new V1PersistentVolumeClaimStatus()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent< this(fluent, new V1PersistentVolumeClaimStatus()); } - public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent fluent,V1PersistentVolumeClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimStatusFluent fluent; + public V1PersistentVolumeClaimStatusBuilder(V1PersistentVolumeClaimStatusFluent fluent,V1PersistentVolumeClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimStatus build() { V1PersistentVolumeClaimStatus buildable = new V1PersistentVolumeClaimStatus(); buildable.setAccessModes(fluent.getAccessModes()); @@ -34,5 +37,4 @@ public V1PersistentVolumeClaimStatus build() { return buildable; } - } \ No newline at end of file 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 47c1ee7678..51fd52a6f6 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 @@ -1,31 +1,29 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import io.kubernetes.client.custom.Quantity; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimStatusFluent> extends BaseFluent{ - public V1PersistentVolumeClaimStatusFluent() { - } - - public V1PersistentVolumeClaimStatusFluent(V1PersistentVolumeClaimStatus instance) { - this.copyInstance(instance); - } +public class V1PersistentVolumeClaimStatusFluent> extends BaseFluent{ + private List accessModes; private Map allocatedResourceStatuses; private Map allocatedResources; @@ -34,84 +32,580 @@ public V1PersistentVolumeClaimStatusFluent(V1PersistentVolumeClaimStatus instanc private String currentVolumeAttributesClassName; private V1ModifyVolumeStatusBuilder modifyVolumeStatus; private String phase; + + public V1PersistentVolumeClaimStatusFluent() { + } - protected void copyInstance(V1PersistentVolumeClaimStatus instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimStatus()); - if (instance != null) { - this.withAccessModes(instance.getAccessModes()); - this.withAllocatedResourceStatuses(instance.getAllocatedResourceStatuses()); - this.withAllocatedResources(instance.getAllocatedResources()); - this.withCapacity(instance.getCapacity()); - this.withConditions(instance.getConditions()); - this.withCurrentVolumeAttributesClassName(instance.getCurrentVolumeAttributesClassName()); - this.withModifyVolumeStatus(instance.getModifyVolumeStatus()); - this.withPhase(instance.getPhase()); - } + public V1PersistentVolumeClaimStatusFluent(V1PersistentVolumeClaimStatus instance) { + this.copyInstance(instance); + } + + public A addAllToAccessModes(Collection items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1PersistentVolumeClaimCondition item) { + return new ConditionsNested(-1, item); + } + + public A addToAccessModes(String... items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } public A addToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } this.accessModes.add(index, item); - return (A)this; + return (A) this; } - public A setToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - this.accessModes.set(index, item); return (A)this; + public A addToAllocatedResourceStatuses(Map map) { + if (this.allocatedResourceStatuses == null && map != null) { + this.allocatedResourceStatuses = new LinkedHashMap(); + } + if (map != null) { + this.allocatedResourceStatuses.putAll(map); + } + return (A) this; } - public A addToAccessModes(java.lang.String... items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + public A addToAllocatedResourceStatuses(String key,String value) { + if (this.allocatedResourceStatuses == null && key != null && value != null) { + this.allocatedResourceStatuses = new LinkedHashMap(); + } + if (key != null && value != null) { + this.allocatedResourceStatuses.put(key, value); + } + return (A) this; } - public A addAllToAccessModes(Collection items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + public A addToAllocatedResources(Map map) { + if (this.allocatedResources == null && map != null) { + this.allocatedResources = new LinkedHashMap(); + } + if (map != null) { + this.allocatedResources.putAll(map); + } + return (A) this; } - public A removeFromAccessModes(java.lang.String... items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + public A addToAllocatedResources(String key,Quantity value) { + if (this.allocatedResources == null && key != null && value != null) { + this.allocatedResources = new LinkedHashMap(); + } + if (key != null && value != null) { + this.allocatedResources.put(key, value); + } + return (A) this; } - public A removeAllFromAccessModes(Collection items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} 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 List getAccessModes() { - return this.accessModes; + 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 addToConditions(V1PersistentVolumeClaimCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + 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(builder); + conditions.add(index, builder); + } + return (A) this; + } + + public V1PersistentVolumeClaimCondition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1PersistentVolumeClaimCondition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1PersistentVolumeClaimCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1PersistentVolumeClaimCondition buildMatchingCondition(Predicate predicate) { + for (V1PersistentVolumeClaimConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ModifyVolumeStatus buildModifyVolumeStatus() { + return this.modifyVolumeStatus != null ? this.modifyVolumeStatus.build() : null; + } + + protected void copyInstance(V1PersistentVolumeClaimStatus instance) { + instance = instance != null ? instance : new V1PersistentVolumeClaimStatus(); + if (instance != null) { + this.withAccessModes(instance.getAccessModes()); + this.withAllocatedResourceStatuses(instance.getAllocatedResourceStatuses()); + this.withAllocatedResources(instance.getAllocatedResources()); + this.withCapacity(instance.getCapacity()); + this.withConditions(instance.getConditions()); + this.withCurrentVolumeAttributesClassName(instance.getCurrentVolumeAttributesClassName()); + this.withModifyVolumeStatus(instance.getModifyVolumeStatus()); + this.withPhase(instance.getPhase()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ModifyVolumeStatusNested editModifyVolumeStatus() { + return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(null)); + } + + public ModifyVolumeStatusNested editOrNewModifyVolumeStatus() { + return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(new V1ModifyVolumeStatusBuilder().build())); + } + + public ModifyVolumeStatusNested editOrNewModifyVolumeStatusLike(V1ModifyVolumeStatus item) { + return this.withNewModifyVolumeStatusLike(Optional.ofNullable(this.buildModifyVolumeStatus()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimStatusFluent that = (V1PersistentVolumeClaimStatusFluent) o; + if (!(Objects.equals(accessModes, that.accessModes))) { + return false; + } + if (!(Objects.equals(allocatedResourceStatuses, that.allocatedResourceStatuses))) { + return false; + } + if (!(Objects.equals(allocatedResources, that.allocatedResources))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentVolumeAttributesClassName, that.currentVolumeAttributesClassName))) { + return false; + } + if (!(Objects.equals(modifyVolumeStatus, that.modifyVolumeStatus))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } + return true; } public String getAccessMode(int index) { return this.accessModes.get(index); } - public String getFirstAccessMode() { - return this.accessModes.get(0); + public List getAccessModes() { + return this.accessModes; + } + + public Map getAllocatedResourceStatuses() { + return this.allocatedResourceStatuses; + } + + public Map getAllocatedResources() { + return this.allocatedResources; + } + + public Map getCapacity() { + return this.capacity; + } + + public String getCurrentVolumeAttributesClassName() { + return this.currentVolumeAttributesClassName; + } + + public String getFirstAccessMode() { + return this.accessModes.get(0); + } + + public String getLastAccessMode() { + return this.accessModes.get(accessModes.size() - 1); + } + + public String getMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getPhase() { + return this.phase; + } + + public boolean hasAccessModes() { + return this.accessModes != null && !(this.accessModes.isEmpty()); + } + + public boolean hasAllocatedResourceStatuses() { + return this.allocatedResourceStatuses != null; + } + + public boolean hasAllocatedResources() { + return this.allocatedResources != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasCurrentVolumeAttributesClassName() { + return this.currentVolumeAttributesClassName != null; + } + + public boolean hasMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1PersistentVolumeClaimConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasModifyVolumeStatus() { + return this.modifyVolumeStatus != null; + } + + public boolean hasPhase() { + return this.phase != null; + } + + public int hashCode() { + return Objects.hash(accessModes, allocatedResourceStatuses, allocatedResources, capacity, conditions, currentVolumeAttributesClassName, modifyVolumeStatus, phase); + } + + public A removeAllFromAccessModes(Collection items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromAccessModes(String... items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; + } + + public A removeFromAllocatedResourceStatuses(String key) { + if (this.allocatedResourceStatuses == null) { + return (A) this; + } + if (key != null && this.allocatedResourceStatuses != null) { + this.allocatedResourceStatuses.remove(key); + } + return (A) this; + } + + public A removeFromAllocatedResourceStatuses(Map map) { + if (this.allocatedResourceStatuses == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResourceStatuses != null) { + this.allocatedResourceStatuses.remove(key); + } + } + } + return (A) this; + } + + public A removeFromAllocatedResources(String key) { + if (this.allocatedResources == null) { + return (A) this; + } + if (key != null && this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + return (A) this; + } + + public A removeFromAllocatedResources(Map map) { + if (this.allocatedResources == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + } + } + 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 A removeFromConditions(V1PersistentVolumeClaimCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1PersistentVolumeClaimCondition item : items) { + V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1PersistentVolumeClaimConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1PersistentVolumeClaimCondition item) { + return new ConditionsNested(index, item); } - public String getLastAccessMode() { - return this.accessModes.get(accessModes.size() - 1); + public A setToAccessModes(int index,String item) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.set(index, item); + return (A) this; } - public String getMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return item; - } - } - return null; + 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").add(builder); + conditions.set(index, builder); + } + return (A) this; } - public boolean hasMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(accessModes == null) && !(accessModes.isEmpty())) { + sb.append("accessModes:"); + sb.append(accessModes); + sb.append(","); + } + if (!(allocatedResourceStatuses == null) && !(allocatedResourceStatuses.isEmpty())) { + sb.append("allocatedResourceStatuses:"); + sb.append(allocatedResourceStatuses); + sb.append(","); + } + if (!(allocatedResources == null) && !(allocatedResources.isEmpty())) { + sb.append("allocatedResources:"); + sb.append(allocatedResources); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(currentVolumeAttributesClassName == null)) { + sb.append("currentVolumeAttributesClassName:"); + sb.append(currentVolumeAttributesClassName); + sb.append(","); + } + if (!(modifyVolumeStatus == null)) { + sb.append("modifyVolumeStatus:"); + sb.append(modifyVolumeStatus); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + } + sb.append("}"); + return sb.toString(); } public A withAccessModes(List accessModes) { @@ -126,7 +620,7 @@ public A withAccessModes(List accessModes) { return (A) this; } - public A withAccessModes(java.lang.String... accessModes) { + public A withAccessModes(String... accessModes) { if (this.accessModes != null) { this.accessModes.clear(); _visitables.remove("accessModes"); @@ -139,34 +633,6 @@ public A withAccessModes(java.lang.String... accessModes) { return (A) this; } - public boolean hasAccessModes() { - return this.accessModes != null && !this.accessModes.isEmpty(); - } - - public A addToAllocatedResourceStatuses(String key,String value) { - if(this.allocatedResourceStatuses == null && key != null && value != null) { this.allocatedResourceStatuses = new LinkedHashMap(); } - if(key != null && value != null) {this.allocatedResourceStatuses.put(key, value);} return (A)this; - } - - public A addToAllocatedResourceStatuses(Map map) { - if(this.allocatedResourceStatuses == null && map != null) { this.allocatedResourceStatuses = new LinkedHashMap(); } - if(map != null) { this.allocatedResourceStatuses.putAll(map);} return (A)this; - } - - public A removeFromAllocatedResourceStatuses(String key) { - if(this.allocatedResourceStatuses == null) { return (A) this; } - if(key != null && this.allocatedResourceStatuses != null) {this.allocatedResourceStatuses.remove(key);} return (A)this; - } - - public A removeFromAllocatedResourceStatuses(Map map) { - if(this.allocatedResourceStatuses == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.allocatedResourceStatuses != null){this.allocatedResourceStatuses.remove(key);}}} return (A)this; - } - - public Map getAllocatedResourceStatuses() { - return this.allocatedResourceStatuses; - } - public A withAllocatedResourceStatuses(Map allocatedResourceStatuses) { if (allocatedResourceStatuses == null) { this.allocatedResourceStatuses = null; @@ -176,34 +642,6 @@ public A withAllocatedResourceStatuses(Map allocatedResource return (A) this; } - public boolean hasAllocatedResourceStatuses() { - return this.allocatedResourceStatuses != null; - } - - public A addToAllocatedResources(String key,Quantity value) { - if(this.allocatedResources == null && key != null && value != null) { this.allocatedResources = new LinkedHashMap(); } - if(key != null && value != null) {this.allocatedResources.put(key, value);} return (A)this; - } - - public A addToAllocatedResources(Map map) { - if(this.allocatedResources == null && map != null) { this.allocatedResources = new LinkedHashMap(); } - if(map != null) { this.allocatedResources.putAll(map);} return (A)this; - } - - public A removeFromAllocatedResources(String key) { - if(this.allocatedResources == null) { return (A) this; } - if(key != null && this.allocatedResources != null) {this.allocatedResources.remove(key);} return (A)this; - } - - public A removeFromAllocatedResources(Map map) { - if(this.allocatedResources == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.allocatedResources != null){this.allocatedResources.remove(key);}}} return (A)this; - } - - public Map getAllocatedResources() { - return this.allocatedResources; - } - public A withAllocatedResources(Map allocatedResources) { if (allocatedResources == null) { this.allocatedResources = null; @@ -213,34 +651,6 @@ public A withAllocatedResources(Map allocatedResources) { return (A) this; } - public boolean hasAllocatedResources() { - return this.allocatedResources != 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; @@ -250,92 +660,6 @@ public A withCapacity(Map capacity) { return (A) this; } - public boolean hasCapacity() { - return this.capacity != null; - } - - 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);} - 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);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(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 (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... items) { - if (this.conditions == null) return (A)this; - for (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(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 (V1PersistentVolumeClaimCondition item : items) {V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(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()) { - V1PersistentVolumeClaimConditionBuilder 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 V1PersistentVolumeClaimCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1PersistentVolumeClaimCondition buildFirstCondition() { - return this.conditions.get(0).build(); - } - - public V1PersistentVolumeClaimCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); - } - - public V1PersistentVolumeClaimCondition buildMatchingCondition(Predicate predicate) { - for (V1PersistentVolumeClaimConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingCondition(Predicate predicate) { - for (V1PersistentVolumeClaimConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - public A withConditions(List conditions) { if (this.conditions != null) { this._visitables.get("conditions").clear(); @@ -351,7 +675,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition... conditions) { + public A withConditions(V1PersistentVolumeClaimCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -364,64 +688,11 @@ public A withConditions(io.kubernetes.client.openapi.models.V1PersistentVolumeCl return (A) this; } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V1PersistentVolumeClaimCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V1PersistentVolumeClaimCondition 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 withNewModifyVolumeStatus() { return new ModifyVolumeStatusNested(null); } @@ -446,89 +713,37 @@ public ModifyVolumeStatusNested withNewModifyVolumeStatusLike(V1ModifyVolumeS 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; - } - public A withPhase(String phase) { this.phase = phase; return (A) this; } + public class ConditionsNested extends V1PersistentVolumeClaimConditionFluent> implements Nested{ - public boolean hasPhase() { - return this.phase != 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; - V1PersistentVolumeClaimStatusFluent that = (V1PersistentVolumeClaimStatusFluent) o; - if (!java.util.Objects.equals(accessModes, that.accessModes)) return false; - if (!java.util.Objects.equals(allocatedResourceStatuses, that.allocatedResourceStatuses)) return false; - 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, currentVolumeAttributesClassName, modifyVolumeStatus, phase, super.hashCode()); - } + V1PersistentVolumeClaimConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (accessModes != null && !accessModes.isEmpty()) { sb.append("accessModes:"); sb.append(accessModes + ","); } - if (allocatedResourceStatuses != null && !allocatedResourceStatuses.isEmpty()) { sb.append("allocatedResourceStatuses:"); sb.append(allocatedResourceStatuses + ","); } - 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(); - } - public class ConditionsNested extends V1PersistentVolumeClaimConditionFluent> implements Nested{ ConditionsNested(int index,V1PersistentVolumeClaimCondition item) { this.index = index; this.builder = new V1PersistentVolumeClaimConditionBuilder(this, item); } - V1PersistentVolumeClaimConditionBuilder builder; - int index; - + public N and() { - return (N) V1PersistentVolumeClaimStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1PersistentVolumeClaimStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { return and(); } - } public class ModifyVolumeStatusNested extends V1ModifyVolumeStatusFluent> implements Nested{ + + V1ModifyVolumeStatusBuilder builder; + ModifyVolumeStatusNested(V1ModifyVolumeStatus item) { this.builder = new V1ModifyVolumeStatusBuilder(this, item); } - V1ModifyVolumeStatusBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimStatusFluent.this.withModifyVolumeStatus(builder.build()); } @@ -537,7 +752,5 @@ public N endModifyVolumeStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java index 57564498f2..0fe6c2ee00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimTemplateBuilder extends V1PersistentVolumeClaimTemplateFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimTemplateFluent fluent; + public V1PersistentVolumeClaimTemplateBuilder() { this(new V1PersistentVolumeClaimTemplate()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFlu this(fluent, new V1PersistentVolumeClaimTemplate()); } - public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFluent fluent,V1PersistentVolumeClaimTemplate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplate instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimTemplateFluent fluent; + public V1PersistentVolumeClaimTemplateBuilder(V1PersistentVolumeClaimTemplateFluent fluent,V1PersistentVolumeClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimTemplate build() { V1PersistentVolumeClaimTemplate buildable = new V1PersistentVolumeClaimTemplate(); buildable.setMetadata(fluent.buildMetadata()); @@ -28,5 +31,4 @@ public V1PersistentVolumeClaimTemplate build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java index b7eff06060..5c3d206a9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java @@ -1,35 +1,116 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimTemplateFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimTemplateFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1PersistentVolumeClaimSpecBuilder spec; + public V1PersistentVolumeClaimTemplateFluent() { } public V1PersistentVolumeClaimTemplateFluent(V1PersistentVolumeClaimTemplate instance) { this.copyInstance(instance); } - private V1ObjectMetaBuilder metadata; - private V1PersistentVolumeClaimSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PersistentVolumeClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1PersistentVolumeClaimTemplate instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimTemplate()); + instance = instance != null ? instance : new V1PersistentVolumeClaimTemplate(); if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PersistentVolumeClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimTemplateFluent that = (V1PersistentVolumeClaimTemplateFluent) o; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); } public A withMetadata(V1ObjectMeta metadata) { @@ -44,10 +125,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -56,20 +133,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1PersistentVolumeClaimSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec item) { + return new SpecNested(item); } public A withSpec(V1PersistentVolumeClaimSpec spec) { @@ -83,59 +152,14 @@ public A withSpec(V1PersistentVolumeClaimSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PersistentVolumeClaimSpec 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 V1PersistentVolumeClaimSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1PersistentVolumeClaimSpec 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; - V1PersistentVolumeClaimTemplateFluent that = (V1PersistentVolumeClaimTemplateFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1PersistentVolumeClaimTemplateFluent.this.withMetadata(builder.build()); } @@ -144,14 +168,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PersistentVolumeClaimSpecFluent> implements Nested{ + + V1PersistentVolumeClaimSpecBuilder builder; + SpecNested(V1PersistentVolumeClaimSpec item) { this.builder = new V1PersistentVolumeClaimSpecBuilder(this, item); } - V1PersistentVolumeClaimSpecBuilder builder; - + public N and() { return (N) V1PersistentVolumeClaimTemplateFluent.this.withSpec(builder.build()); } @@ -160,7 +185,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java index 1f7b5f334d..ba403b3255 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeClaimVolumeSourceBuilder extends V1PersistentVolumeClaimVolumeSourceFluent implements VisitableBuilder{ + + V1PersistentVolumeClaimVolumeSourceFluent fluent; + public V1PersistentVolumeClaimVolumeSourceBuilder() { this(new V1PersistentVolumeClaimVolumeSource()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeS this(fluent, new V1PersistentVolumeClaimVolumeSource()); } - public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSourceFluent fluent,V1PersistentVolumeClaimVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeClaimVolumeSourceFluent fluent; + public V1PersistentVolumeClaimVolumeSourceBuilder(V1PersistentVolumeClaimVolumeSourceFluent fluent,V1PersistentVolumeClaimVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeClaimVolumeSource build() { V1PersistentVolumeClaimVolumeSource buildable = new V1PersistentVolumeClaimVolumeSource(); buildable.setClaimName(fluent.getClaimName()); @@ -28,5 +31,4 @@ public V1PersistentVolumeClaimVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java index e342d604dd..01fcccfbbb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java @@ -1,85 +1,105 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeClaimVolumeSourceFluent> extends BaseFluent{ +public class V1PersistentVolumeClaimVolumeSourceFluent> extends BaseFluent{ + + private String claimName; + private Boolean readOnly; + public V1PersistentVolumeClaimVolumeSourceFluent() { } public V1PersistentVolumeClaimVolumeSourceFluent(V1PersistentVolumeClaimVolumeSource instance) { this.copyInstance(instance); } - private String claimName; - private Boolean readOnly; - + protected void copyInstance(V1PersistentVolumeClaimVolumeSource instance) { - instance = (instance != null ? instance : new V1PersistentVolumeClaimVolumeSource()); + instance = instance != null ? instance : new V1PersistentVolumeClaimVolumeSource(); if (instance != null) { - this.withClaimName(instance.getClaimName()); - this.withReadOnly(instance.getReadOnly()); - } + this.withClaimName(instance.getClaimName()); + this.withReadOnly(instance.getReadOnly()); + } } - public String getClaimName() { - return this.claimName; - } - - public A withClaimName(String claimName) { - this.claimName = claimName; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeClaimVolumeSourceFluent that = (V1PersistentVolumeClaimVolumeSourceFluent) o; + if (!(Objects.equals(claimName, that.claimName))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + return true; } - public boolean hasClaimName() { - return this.claimName != null; + public String getClaimName() { + return this.claimName; } public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean hasClaimName() { + return this.claimName != null; } public boolean hasReadOnly() { return this.readOnly != 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; - V1PersistentVolumeClaimVolumeSourceFluent that = (V1PersistentVolumeClaimVolumeSourceFluent) o; - if (!java.util.Objects.equals(claimName, that.claimName)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(claimName, readOnly, super.hashCode()); + return Objects.hash(claimName, readOnly); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (claimName != null) { sb.append("claimName:"); sb.append(claimName + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly); } + if (!(claimName == null)) { + sb.append("claimName:"); + sb.append(claimName); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + } sb.append("}"); return sb.toString(); } + public A withClaimName(String claimName) { + this.claimName = claimName; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java index 6b9d26baeb..bd6e6b13da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeFluent> extends BaseFluent{ +public class V1PersistentVolumeFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1PersistentVolumeSpecBuilder spec; + private V1PersistentVolumeStatusBuilder status; + public V1PersistentVolumeFluent() { } public V1PersistentVolumeFluent(V1PersistentVolume instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1PersistentVolumeSpecBuilder spec; - private V1PersistentVolumeStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PersistentVolumeSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1PersistentVolumeStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1PersistentVolume instance) { - instance = (instance != null ? instance : new V1PersistentVolume()); + instance = instance != null ? instance : new V1PersistentVolume(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PersistentVolumeSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1PersistentVolumeSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PersistentVolumeStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1PersistentVolumeStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeFluent that = (V1PersistentVolumeFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1PersistentVolumeSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1PersistentVolumeSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1PersistentVolumeStatus item) { + return new StatusNested(item); } public A withSpec(V1PersistentVolumeSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1PersistentVolumeSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PersistentVolumeSpec 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 V1PersistentVolumeSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1PersistentVolumeSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1PersistentVolumeStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1PersistentVolumeStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1PersistentVolumeStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1PersistentVolumeStatus 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 V1PersistentVolumeStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1PersistentVolumeStatus 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; - V1PersistentVolumeFluent that = (V1PersistentVolumeFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1PersistentVolumeFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PersistentVolumeSpecFluent> implements Nested{ + + V1PersistentVolumeSpecBuilder builder; + SpecNested(V1PersistentVolumeSpec item) { this.builder = new V1PersistentVolumeSpecBuilder(this, item); } - V1PersistentVolumeSpecBuilder builder; - + public N and() { return (N) V1PersistentVolumeFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PersistentVolumeStatusFluent> implements Nested{ + + V1PersistentVolumeStatusBuilder builder; + StatusNested(V1PersistentVolumeStatus item) { this.builder = new V1PersistentVolumeStatusBuilder(this, item); } - V1PersistentVolumeStatusBuilder builder; - + public N and() { return (N) V1PersistentVolumeFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java index 727622cffd..eb2cc7bace 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeListBuilder extends V1PersistentVolumeListFluent implements VisitableBuilder{ + + V1PersistentVolumeListFluent fluent; + public V1PersistentVolumeListBuilder() { this(new V1PersistentVolumeList()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent) { this(fluent, new V1PersistentVolumeList()); } - public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent,V1PersistentVolumeList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeListBuilder(V1PersistentVolumeList instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeListFluent fluent; + public V1PersistentVolumeListBuilder(V1PersistentVolumeListFluent fluent,V1PersistentVolumeList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeList build() { V1PersistentVolumeList buildable = new V1PersistentVolumeList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1PersistentVolumeList build() { return buildable; } - } \ 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..18aa8d4a67 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeListFluent> extends BaseFluent{ +public class V1PersistentVolumeListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1PersistentVolumeListFluent() { } public V1PersistentVolumeListFluent(V1PersistentVolumeList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PersistentVolumeList instance) { - instance = (instance != null ? instance : new V1PersistentVolumeList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1PersistentVolume item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1PersistentVolume... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1PersistentVolume item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1PersistentVolume buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1PersistentVolume buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { - if (this.items == null) return (A)this; - for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PersistentVolume buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PersistentVolume item : items) {V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PersistentVolume buildMatchingItem(Predicate predicate) { + for (V1PersistentVolumeBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1PersistentVolumeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1PersistentVolumeList instance) { + instance = instance != null ? instance : new V1PersistentVolumeList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1PersistentVolume buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1PersistentVolume buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PersistentVolume buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeListFluent that = (V1PersistentVolumeListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1PersistentVolume buildMatchingItem(Predicate predicate) { - for (V1PersistentVolumeBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PersistentVolume... items) { + if (this.items == null) { + return (A) this; + } + for (V1PersistentVolume item : items) { + V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PersistentVolumeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PersistentVolume item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolume... items) { + public A withItems(V1PersistentVolume... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1PersistentVolume... ite return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PersistentVolume item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PersistentVolume 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1PersistentVolumeFluent> implements Nested{ - 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; - V1PersistentVolumeListFluent that = (V1PersistentVolumeListFluent) 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()); - } + V1PersistentVolumeBuilder builder; + int index; - 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 V1PersistentVolumeFluent> implements Nested{ ItemsNested(int index,V1PersistentVolume item) { this.index = index; this.builder = new V1PersistentVolumeBuilder(this, item); } - V1PersistentVolumeBuilder builder; - int index; - + public N and() { - return (N) V1PersistentVolumeListFluent.this.setToItems(index,builder.build()); + return (N) V1PersistentVolumeListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PersistentVolumeListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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 68520012ee..3713d205e7 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeSpecBuilder extends V1PersistentVolumeSpecFluent implements VisitableBuilder{ + + V1PersistentVolumeSpecFluent fluent; + public V1PersistentVolumeSpecBuilder() { this(new V1PersistentVolumeSpec()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent) { this(fluent, new V1PersistentVolumeSpec()); } - public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent,V1PersistentVolumeSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeSpecFluent fluent; + public V1PersistentVolumeSpecBuilder(V1PersistentVolumeSpecFluent fluent,V1PersistentVolumeSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeSpec build() { V1PersistentVolumeSpec buildable = new V1PersistentVolumeSpec(); buildable.setAccessModes(fluent.getAccessModes()); @@ -57,5 +60,4 @@ public V1PersistentVolumeSpec build() { return buildable; } - } \ No newline at end of file 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 862e5793e8..8f8cc03bdc 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 @@ -1,29 +1,27 @@ package io.kubernetes.client.openapi.models; -import java.util.ArrayList; -import java.lang.String; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; -import java.util.Map; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.LinkedHashMap; -import java.util.function.Predicate; import java.util.List; -import java.util.Collection; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import io.kubernetes.client.custom.Quantity; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeSpecFluent> extends BaseFluent{ - public V1PersistentVolumeSpecFluent() { - } - - public V1PersistentVolumeSpecFluent(V1PersistentVolumeSpec instance) { - this.copyInstance(instance); - } +public class V1PersistentVolumeSpecFluent> extends BaseFluent{ + private List accessModes; private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore; private V1AzureDiskVolumeSourceBuilder azureDisk; @@ -55,657 +53,1251 @@ public V1PersistentVolumeSpecFluent(V1PersistentVolumeSpec instance) { private String volumeAttributesClassName; private String volumeMode; private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; - - protected void copyInstance(V1PersistentVolumeSpec instance) { - instance = (instance != null ? instance : new V1PersistentVolumeSpec()); - if (instance != null) { - this.withAccessModes(instance.getAccessModes()); - this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); - this.withAzureDisk(instance.getAzureDisk()); - this.withAzureFile(instance.getAzureFile()); - this.withCapacity(instance.getCapacity()); - this.withCephfs(instance.getCephfs()); - this.withCinder(instance.getCinder()); - this.withClaimRef(instance.getClaimRef()); - this.withCsi(instance.getCsi()); - this.withFc(instance.getFc()); - this.withFlexVolume(instance.getFlexVolume()); - this.withFlocker(instance.getFlocker()); - this.withGcePersistentDisk(instance.getGcePersistentDisk()); - this.withGlusterfs(instance.getGlusterfs()); - this.withHostPath(instance.getHostPath()); - this.withIscsi(instance.getIscsi()); - this.withLocal(instance.getLocal()); - this.withMountOptions(instance.getMountOptions()); - this.withNfs(instance.getNfs()); - this.withNodeAffinity(instance.getNodeAffinity()); - this.withPersistentVolumeReclaimPolicy(instance.getPersistentVolumeReclaimPolicy()); - this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); - this.withPortworxVolume(instance.getPortworxVolume()); - this.withQuobyte(instance.getQuobyte()); - this.withRbd(instance.getRbd()); - this.withScaleIO(instance.getScaleIO()); - this.withStorageClassName(instance.getStorageClassName()); - this.withStorageos(instance.getStorageos()); - this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); - this.withVolumeMode(instance.getVolumeMode()); - this.withVsphereVolume(instance.getVsphereVolume()); - } + + public V1PersistentVolumeSpecFluent() { } - public A addToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - this.accessModes.add(index, item); - return (A)this; + public V1PersistentVolumeSpecFluent(V1PersistentVolumeSpec instance) { + this.copyInstance(instance); + } + + public A addAllToAccessModes(Collection items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } - public A setToAccessModes(int index,String item) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - this.accessModes.set(index, item); return (A)this; + public A addAllToMountOptions(Collection items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + for (String item : items) { + this.mountOptions.add(item); + } + return (A) this; } - public A addToAccessModes(java.lang.String... items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + public A addToAccessModes(String... items) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + for (String item : items) { + this.accessModes.add(item); + } + return (A) this; } - public A addAllToAccessModes(Collection items) { - if (this.accessModes == null) {this.accessModes = new ArrayList();} - for (String item : items) {this.accessModes.add(item);} return (A)this; + public A addToAccessModes(int index,String item) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.add(index, item); + return (A) this; } - public A removeFromAccessModes(java.lang.String... items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} 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 removeAllFromAccessModes(Collection items) { - if (this.accessModes == null) return (A)this; - for (String item : items) { this.accessModes.remove(item);} return (A)this; + 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 List getAccessModes() { - return this.accessModes; + public A addToMountOptions(String... items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + for (String item : items) { + this.mountOptions.add(item); + } + return (A) this; } - public String getAccessMode(int index) { - return this.accessModes.get(index); + public A addToMountOptions(int index,String item) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + this.mountOptions.add(index, item); + return (A) this; } - public String getFirstAccessMode() { - return this.accessModes.get(0); + public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { + return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; } - public String getLastAccessMode() { - return this.accessModes.get(accessModes.size() - 1); + public V1AzureDiskVolumeSource buildAzureDisk() { + return this.azureDisk != null ? this.azureDisk.build() : null; } - public String getMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return item; - } - } - return null; + public V1AzureFilePersistentVolumeSource buildAzureFile() { + return this.azureFile != null ? this.azureFile.build() : null; } - public boolean hasMatchingAccessMode(Predicate predicate) { - for (String item : accessModes) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1CephFSPersistentVolumeSource buildCephfs() { + return this.cephfs != null ? this.cephfs.build() : null; } - public A withAccessModes(List accessModes) { - if (accessModes != null) { - this.accessModes = new ArrayList(); - for (String item : accessModes) { - this.addToAccessModes(item); - } - } else { - this.accessModes = null; - } - return (A) this; + public V1CinderPersistentVolumeSource buildCinder() { + return this.cinder != null ? this.cinder.build() : null; } - public A withAccessModes(java.lang.String... accessModes) { - if (this.accessModes != null) { - this.accessModes.clear(); - _visitables.remove("accessModes"); - } - if (accessModes != null) { - for (String item : accessModes) { - this.addToAccessModes(item); - } - } - return (A) this; + public V1ObjectReference buildClaimRef() { + return this.claimRef != null ? this.claimRef.build() : null; } - public boolean hasAccessModes() { - return this.accessModes != null && !this.accessModes.isEmpty(); + public V1CSIPersistentVolumeSource buildCsi() { + return this.csi != null ? this.csi.build() : null; } - public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { - return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; + public V1FCVolumeSource buildFc() { + return this.fc != null ? this.fc.build() : null; } - public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { - this._visitables.remove("awsElasticBlockStore"); - if (awsElasticBlockStore != null) { - this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); - this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); - } else { - this.awsElasticBlockStore = null; - this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); - } - return (A) this; + public V1FlexPersistentVolumeSource buildFlexVolume() { + return this.flexVolume != null ? this.flexVolume.build() : null; } - public boolean hasAwsElasticBlockStore() { - return this.awsElasticBlockStore != null; + public V1FlockerVolumeSource buildFlocker() { + return this.flocker != null ? this.flocker.build() : null; } - public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { - return new AwsElasticBlockStoreNested(null); + public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { + return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; } - public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return new AwsElasticBlockStoreNested(item); + public V1GlusterfsPersistentVolumeSource buildGlusterfs() { + return this.glusterfs != null ? this.glusterfs.build() : null; } - public AwsElasticBlockStoreNested editAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(null)); + public V1HostPathVolumeSource buildHostPath() { + return this.hostPath != null ? this.hostPath.build() : null; } - public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); + public V1ISCSIPersistentVolumeSource buildIscsi() { + return this.iscsi != null ? this.iscsi.build() : null; } - public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(item)); + public V1LocalVolumeSource buildLocal() { + return this.local != null ? this.local.build() : null; } - public V1AzureDiskVolumeSource buildAzureDisk() { - return this.azureDisk != null ? this.azureDisk.build() : null; + public V1NFSVolumeSource buildNfs() { + return this.nfs != null ? this.nfs.build() : null; } - public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { - this._visitables.remove("azureDisk"); - if (azureDisk != null) { - this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); - this._visitables.get("azureDisk").add(this.azureDisk); - } else { - this.azureDisk = null; - this._visitables.get("azureDisk").remove(this.azureDisk); - } - return (A) this; + public V1VolumeNodeAffinity buildNodeAffinity() { + return this.nodeAffinity != null ? this.nodeAffinity.build() : null; } - public boolean hasAzureDisk() { - return this.azureDisk != null; + public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { + return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; } - public AzureDiskNested withNewAzureDisk() { - return new AzureDiskNested(null); + public V1PortworxVolumeSource buildPortworxVolume() { + return this.portworxVolume != null ? this.portworxVolume.build() : null; } - public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return new AzureDiskNested(item); + public V1QuobyteVolumeSource buildQuobyte() { + return this.quobyte != null ? this.quobyte.build() : null; } - public AzureDiskNested editAzureDisk() { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(null)); + public V1RBDPersistentVolumeSource buildRbd() { + return this.rbd != null ? this.rbd.build() : null; } - public AzureDiskNested editOrNewAzureDisk() { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); + public V1ScaleIOPersistentVolumeSource buildScaleIO() { + return this.scaleIO != null ? this.scaleIO.build() : null; } - public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(item)); + public V1StorageOSPersistentVolumeSource buildStorageos() { + return this.storageos != null ? this.storageos.build() : null; } - public V1AzureFilePersistentVolumeSource buildAzureFile() { - return this.azureFile != null ? this.azureFile.build() : null; + public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { + return this.vsphereVolume != null ? this.vsphereVolume.build() : null; } - public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile) { - this._visitables.remove("azureFile"); - if (azureFile != null) { - this.azureFile = new V1AzureFilePersistentVolumeSourceBuilder(azureFile); - this._visitables.get("azureFile").add(this.azureFile); - } else { - this.azureFile = null; - this._visitables.get("azureFile").remove(this.azureFile); + protected void copyInstance(V1PersistentVolumeSpec instance) { + instance = instance != null ? instance : new V1PersistentVolumeSpec(); + if (instance != null) { + this.withAccessModes(instance.getAccessModes()); + this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); + this.withAzureDisk(instance.getAzureDisk()); + this.withAzureFile(instance.getAzureFile()); + this.withCapacity(instance.getCapacity()); + this.withCephfs(instance.getCephfs()); + this.withCinder(instance.getCinder()); + this.withClaimRef(instance.getClaimRef()); + this.withCsi(instance.getCsi()); + this.withFc(instance.getFc()); + this.withFlexVolume(instance.getFlexVolume()); + this.withFlocker(instance.getFlocker()); + this.withGcePersistentDisk(instance.getGcePersistentDisk()); + this.withGlusterfs(instance.getGlusterfs()); + this.withHostPath(instance.getHostPath()); + this.withIscsi(instance.getIscsi()); + this.withLocal(instance.getLocal()); + this.withMountOptions(instance.getMountOptions()); + this.withNfs(instance.getNfs()); + this.withNodeAffinity(instance.getNodeAffinity()); + this.withPersistentVolumeReclaimPolicy(instance.getPersistentVolumeReclaimPolicy()); + this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); + this.withPortworxVolume(instance.getPortworxVolume()); + this.withQuobyte(instance.getQuobyte()); + this.withRbd(instance.getRbd()); + this.withScaleIO(instance.getScaleIO()); + this.withStorageClassName(instance.getStorageClassName()); + this.withStorageos(instance.getStorageos()); + this.withVolumeAttributesClassName(instance.getVolumeAttributesClassName()); + this.withVolumeMode(instance.getVolumeMode()); + this.withVsphereVolume(instance.getVsphereVolume()); } - return (A) this; } - public boolean hasAzureFile() { - return this.azureFile != null; + public AwsElasticBlockStoreNested editAwsElasticBlockStore() { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(null)); } - public AzureFileNested withNewAzureFile() { - return new AzureFileNested(null); + public AzureDiskNested editAzureDisk() { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(null)); } - public AzureFileNested withNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { - return new AzureFileNested(item); + public AzureFileNested editAzureFile() { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(null)); } - public AzureFileNested editAzureFile() { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(null)); + public CephfsNested editCephfs() { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(null)); } - public AzureFileNested editOrNewAzureFile() { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(new V1AzureFilePersistentVolumeSourceBuilder().build())); + public CinderNested editCinder() { + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(null)); } - public AzureFileNested editOrNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(item)); + public ClaimRefNested editClaimRef() { + return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(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 CsiNested editCsi() { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(null)); } - 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 FcNested editFc() { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(null)); } - 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 FlexVolumeNested editFlexVolume() { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(null)); } - 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 FlockerNested editFlocker() { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(null)); } - public Map getCapacity() { - return this.capacity; + public GcePersistentDiskNested editGcePersistentDisk() { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(null)); } - public A withCapacity(Map capacity) { - if (capacity == null) { - this.capacity = null; - } else { - this.capacity = new LinkedHashMap(capacity); - } - return (A) this; + public GlusterfsNested editGlusterfs() { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(null)); } - public boolean hasCapacity() { - return this.capacity != null; + public HostPathNested editHostPath() { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(null)); } - public V1CephFSPersistentVolumeSource buildCephfs() { - return this.cephfs != null ? this.cephfs.build() : null; + public IscsiNested editIscsi() { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(null)); } - public A withCephfs(V1CephFSPersistentVolumeSource cephfs) { - this._visitables.remove("cephfs"); - if (cephfs != null) { - this.cephfs = new V1CephFSPersistentVolumeSourceBuilder(cephfs); - this._visitables.get("cephfs").add(this.cephfs); - } else { - this.cephfs = null; - this._visitables.get("cephfs").remove(this.cephfs); - } - return (A) this; - } - - public boolean hasCephfs() { - return this.cephfs != null; - } - - public CephfsNested withNewCephfs() { - return new CephfsNested(null); + public LocalNested editLocal() { + return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(null)); } - public CephfsNested withNewCephfsLike(V1CephFSPersistentVolumeSource item) { - return new CephfsNested(item); + public NfsNested editNfs() { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(null)); } - public CephfsNested editCephfs() { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(null)); + public NodeAffinityNested editNodeAffinity() { + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(null)); } - public CephfsNested editOrNewCephfs() { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(new V1CephFSPersistentVolumeSourceBuilder().build())); + public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); } - public CephfsNested editOrNewCephfsLike(V1CephFSPersistentVolumeSource item) { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(item)); + public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(item)); } - public V1CinderPersistentVolumeSource buildCinder() { - return this.cinder != null ? this.cinder.build() : null; + public AzureDiskNested editOrNewAzureDisk() { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); } - public A withCinder(V1CinderPersistentVolumeSource cinder) { - this._visitables.remove("cinder"); - if (cinder != null) { - this.cinder = new V1CinderPersistentVolumeSourceBuilder(cinder); - this._visitables.get("cinder").add(this.cinder); - } else { - this.cinder = null; - this._visitables.get("cinder").remove(this.cinder); - } - return (A) this; + public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(item)); } - public boolean hasCinder() { - return this.cinder != null; + public AzureFileNested editOrNewAzureFile() { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(new V1AzureFilePersistentVolumeSourceBuilder().build())); } - public CinderNested withNewCinder() { - return new CinderNested(null); + public AzureFileNested editOrNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(item)); } - public CinderNested withNewCinderLike(V1CinderPersistentVolumeSource item) { - return new CinderNested(item); + public CephfsNested editOrNewCephfs() { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(new V1CephFSPersistentVolumeSourceBuilder().build())); } - public CinderNested editCinder() { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(null)); + public CephfsNested editOrNewCephfsLike(V1CephFSPersistentVolumeSource item) { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(item)); } public CinderNested editOrNewCinder() { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(new V1CinderPersistentVolumeSourceBuilder().build())); + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(new V1CinderPersistentVolumeSourceBuilder().build())); } public CinderNested editOrNewCinderLike(V1CinderPersistentVolumeSource item) { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(item)); - } - - public V1ObjectReference buildClaimRef() { - return this.claimRef != null ? this.claimRef.build() : null; - } - - public A withClaimRef(V1ObjectReference claimRef) { - this._visitables.remove("claimRef"); - if (claimRef != null) { - this.claimRef = new V1ObjectReferenceBuilder(claimRef); - this._visitables.get("claimRef").add(this.claimRef); - } else { - this.claimRef = null; - this._visitables.get("claimRef").remove(this.claimRef); - } - return (A) this; - } - - public boolean hasClaimRef() { - return this.claimRef != null; - } - - public ClaimRefNested withNewClaimRef() { - return new ClaimRefNested(null); - } - - public ClaimRefNested withNewClaimRefLike(V1ObjectReference item) { - return new ClaimRefNested(item); - } - - public ClaimRefNested editClaimRef() { - return withNewClaimRefLike(java.util.Optional.ofNullable(buildClaimRef()).orElse(null)); + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(item)); } public ClaimRefNested editOrNewClaimRef() { - return withNewClaimRefLike(java.util.Optional.ofNullable(buildClaimRef()).orElse(new V1ObjectReferenceBuilder().build())); + return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(new V1ObjectReferenceBuilder().build())); } public ClaimRefNested editOrNewClaimRefLike(V1ObjectReference item) { - return withNewClaimRefLike(java.util.Optional.ofNullable(buildClaimRef()).orElse(item)); - } - - public V1CSIPersistentVolumeSource buildCsi() { - return this.csi != null ? this.csi.build() : null; - } - - public A withCsi(V1CSIPersistentVolumeSource csi) { - this._visitables.remove("csi"); - if (csi != null) { - this.csi = new V1CSIPersistentVolumeSourceBuilder(csi); - this._visitables.get("csi").add(this.csi); - } else { - this.csi = null; - this._visitables.get("csi").remove(this.csi); - } - return (A) this; - } - - public boolean hasCsi() { - return this.csi != null; + return this.withNewClaimRefLike(Optional.ofNullable(this.buildClaimRef()).orElse(item)); } - public CsiNested withNewCsi() { - return new CsiNested(null); + public CsiNested editOrNewCsi() { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(new V1CSIPersistentVolumeSourceBuilder().build())); } - public CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item) { - return new CsiNested(item); + public CsiNested editOrNewCsiLike(V1CSIPersistentVolumeSource item) { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(item)); } - public CsiNested editCsi() { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(null)); + public FcNested editOrNewFc() { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); } - public CsiNested editOrNewCsi() { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(new V1CSIPersistentVolumeSourceBuilder().build())); + public FcNested editOrNewFcLike(V1FCVolumeSource item) { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(item)); } - public CsiNested editOrNewCsiLike(V1CSIPersistentVolumeSource item) { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(item)); + public FlexVolumeNested editOrNewFlexVolume() { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(new V1FlexPersistentVolumeSourceBuilder().build())); } - public V1FCVolumeSource buildFc() { - return this.fc != null ? this.fc.build() : null; + public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(item)); } - public A withFc(V1FCVolumeSource fc) { - this._visitables.remove("fc"); - if (fc != null) { - this.fc = new V1FCVolumeSourceBuilder(fc); - this._visitables.get("fc").add(this.fc); - } else { - this.fc = null; - this._visitables.get("fc").remove(this.fc); - } - return (A) this; + public FlockerNested editOrNewFlocker() { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); } - public boolean hasFc() { - return this.fc != null; + public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(item)); } - public FcNested withNewFc() { - return new FcNested(null); + public GcePersistentDiskNested editOrNewGcePersistentDisk() { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); } - public FcNested withNewFcLike(V1FCVolumeSource item) { - return new FcNested(item); + public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(item)); } - public FcNested editFc() { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(null)); + public GlusterfsNested editOrNewGlusterfs() { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(new V1GlusterfsPersistentVolumeSourceBuilder().build())); } - public FcNested editOrNewFc() { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); + public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(item)); } - public FcNested editOrNewFcLike(V1FCVolumeSource item) { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(item)); + public HostPathNested editOrNewHostPath() { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); } - public V1FlexPersistentVolumeSource buildFlexVolume() { - return this.flexVolume != null ? this.flexVolume.build() : null; + public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(item)); } - public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume) { - this._visitables.remove("flexVolume"); - if (flexVolume != null) { - this.flexVolume = new V1FlexPersistentVolumeSourceBuilder(flexVolume); - this._visitables.get("flexVolume").add(this.flexVolume); - } else { - this.flexVolume = null; - this._visitables.get("flexVolume").remove(this.flexVolume); - } - return (A) this; + public IscsiNested editOrNewIscsi() { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(new V1ISCSIPersistentVolumeSourceBuilder().build())); } - public boolean hasFlexVolume() { - return this.flexVolume != null; + public IscsiNested editOrNewIscsiLike(V1ISCSIPersistentVolumeSource item) { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(item)); } - public FlexVolumeNested withNewFlexVolume() { - return new FlexVolumeNested(null); + public LocalNested editOrNewLocal() { + return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(new V1LocalVolumeSourceBuilder().build())); } - public FlexVolumeNested withNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { - return new FlexVolumeNested(item); + public LocalNested editOrNewLocalLike(V1LocalVolumeSource item) { + return this.withNewLocalLike(Optional.ofNullable(this.buildLocal()).orElse(item)); } - public FlexVolumeNested editFlexVolume() { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(null)); + public NfsNested editOrNewNfs() { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); } - public FlexVolumeNested editOrNewFlexVolume() { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(new V1FlexPersistentVolumeSourceBuilder().build())); + public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(item)); } - public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(item)); + public NodeAffinityNested editOrNewNodeAffinity() { + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(new V1VolumeNodeAffinityBuilder().build())); } - public V1FlockerVolumeSource buildFlocker() { - return this.flocker != null ? this.flocker.build() : null; + public NodeAffinityNested editOrNewNodeAffinityLike(V1VolumeNodeAffinity item) { + return this.withNewNodeAffinityLike(Optional.ofNullable(this.buildNodeAffinity()).orElse(item)); } - public A withFlocker(V1FlockerVolumeSource flocker) { - this._visitables.remove("flocker"); - if (flocker != null) { - this.flocker = new V1FlockerVolumeSourceBuilder(flocker); - this._visitables.get("flocker").add(this.flocker); - } else { - this.flocker = null; - this._visitables.get("flocker").remove(this.flocker); - } - return (A) this; + public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); } - public boolean hasFlocker() { - return this.flocker != null; + public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(item)); } - public FlockerNested withNewFlocker() { - return new FlockerNested(null); + public PortworxVolumeNested editOrNewPortworxVolume() { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); } - public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { - return new FlockerNested(item); + public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(item)); } - public FlockerNested editFlocker() { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(null)); + public QuobyteNested editOrNewQuobyte() { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); } - public FlockerNested editOrNewFlocker() { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); + public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(item)); } - public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(item)); + public RbdNested editOrNewRbd() { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(new V1RBDPersistentVolumeSourceBuilder().build())); } - public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { - return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; + public RbdNested editOrNewRbdLike(V1RBDPersistentVolumeSource item) { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(item)); } - public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { - this._visitables.remove("gcePersistentDisk"); - if (gcePersistentDisk != null) { - this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); - this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); - } else { - this.gcePersistentDisk = null; - this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); - } - return (A) this; + public ScaleIONested editOrNewScaleIO() { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(new V1ScaleIOPersistentVolumeSourceBuilder().build())); } - public boolean hasGcePersistentDisk() { - return this.gcePersistentDisk != null; + public ScaleIONested editOrNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(item)); } - public GcePersistentDiskNested withNewGcePersistentDisk() { - return new GcePersistentDiskNested(null); + public StorageosNested editOrNewStorageos() { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(new V1StorageOSPersistentVolumeSourceBuilder().build())); } - public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return new GcePersistentDiskNested(item); + public StorageosNested editOrNewStorageosLike(V1StorageOSPersistentVolumeSource item) { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(item)); } - public GcePersistentDiskNested editGcePersistentDisk() { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(null)); + public VsphereVolumeNested editOrNewVsphereVolume() { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); } - public GcePersistentDiskNested editOrNewGcePersistentDisk() { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); + public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(item)); } - public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(item)); + public PhotonPersistentDiskNested editPhotonPersistentDisk() { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(null)); } - public V1GlusterfsPersistentVolumeSource buildGlusterfs() { - return this.glusterfs != null ? this.glusterfs.build() : null; + public PortworxVolumeNested editPortworxVolume() { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(null)); } - public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { - this._visitables.remove("glusterfs"); - if (glusterfs != null) { - this.glusterfs = new V1GlusterfsPersistentVolumeSourceBuilder(glusterfs); - this._visitables.get("glusterfs").add(this.glusterfs); - } else { - this.glusterfs = null; - this._visitables.get("glusterfs").remove(this.glusterfs); - } - return (A) this; + public QuobyteNested editQuobyte() { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(null)); } - public boolean hasGlusterfs() { - return this.glusterfs != null; + public RbdNested editRbd() { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(null)); } - public GlusterfsNested withNewGlusterfs() { - return new GlusterfsNested(null); + public ScaleIONested editScaleIO() { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(null)); } - public GlusterfsNested withNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { - return new GlusterfsNested(item); + public StorageosNested editStorageos() { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(null)); } - public GlusterfsNested editGlusterfs() { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(null)); + public VsphereVolumeNested editVsphereVolume() { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(null)); } - public GlusterfsNested editOrNewGlusterfs() { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(new V1GlusterfsPersistentVolumeSourceBuilder().build())); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeSpecFluent that = (V1PersistentVolumeSpecFluent) o; + if (!(Objects.equals(accessModes, that.accessModes))) { + return false; + } + if (!(Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore))) { + return false; + } + if (!(Objects.equals(azureDisk, that.azureDisk))) { + return false; + } + if (!(Objects.equals(azureFile, that.azureFile))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(cephfs, that.cephfs))) { + return false; + } + if (!(Objects.equals(cinder, that.cinder))) { + return false; + } + if (!(Objects.equals(claimRef, that.claimRef))) { + return false; + } + if (!(Objects.equals(csi, that.csi))) { + return false; + } + if (!(Objects.equals(fc, that.fc))) { + return false; + } + if (!(Objects.equals(flexVolume, that.flexVolume))) { + return false; + } + if (!(Objects.equals(flocker, that.flocker))) { + return false; + } + if (!(Objects.equals(gcePersistentDisk, that.gcePersistentDisk))) { + return false; + } + if (!(Objects.equals(glusterfs, that.glusterfs))) { + return false; + } + if (!(Objects.equals(hostPath, that.hostPath))) { + return false; + } + if (!(Objects.equals(iscsi, that.iscsi))) { + return false; + } + if (!(Objects.equals(local, that.local))) { + return false; + } + if (!(Objects.equals(mountOptions, that.mountOptions))) { + return false; + } + if (!(Objects.equals(nfs, that.nfs))) { + return false; + } + if (!(Objects.equals(nodeAffinity, that.nodeAffinity))) { + return false; + } + if (!(Objects.equals(persistentVolumeReclaimPolicy, that.persistentVolumeReclaimPolicy))) { + return false; + } + if (!(Objects.equals(photonPersistentDisk, that.photonPersistentDisk))) { + return false; + } + if (!(Objects.equals(portworxVolume, that.portworxVolume))) { + return false; + } + if (!(Objects.equals(quobyte, that.quobyte))) { + return false; + } + if (!(Objects.equals(rbd, that.rbd))) { + return false; + } + if (!(Objects.equals(scaleIO, that.scaleIO))) { + return false; + } + if (!(Objects.equals(storageClassName, that.storageClassName))) { + return false; + } + if (!(Objects.equals(storageos, that.storageos))) { + return false; + } + if (!(Objects.equals(volumeAttributesClassName, that.volumeAttributesClassName))) { + return false; + } + if (!(Objects.equals(volumeMode, that.volumeMode))) { + return false; + } + if (!(Objects.equals(vsphereVolume, that.vsphereVolume))) { + return false; + } + return true; + } + + public String getAccessMode(int index) { + return this.accessModes.get(index); + } + + public List getAccessModes() { + return this.accessModes; + } + + public Map getCapacity() { + return this.capacity; + } + + public String getFirstAccessMode() { + return this.accessModes.get(0); + } + + public String getFirstMountOption() { + return this.mountOptions.get(0); + } + + public String getLastAccessMode() { + return this.accessModes.get(accessModes.size() - 1); + } + + public String getLastMountOption() { + return this.mountOptions.get(mountOptions.size() - 1); + } + + public String getMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingMountOption(Predicate predicate) { + for (String item : mountOptions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMountOption(int index) { + return this.mountOptions.get(index); + } + + public List getMountOptions() { + return this.mountOptions; + } + + public String getPersistentVolumeReclaimPolicy() { + return this.persistentVolumeReclaimPolicy; + } + + public String getStorageClassName() { + return this.storageClassName; + } + + public String getVolumeAttributesClassName() { + return this.volumeAttributesClassName; + } + + public String getVolumeMode() { + return this.volumeMode; + } + + public boolean hasAccessModes() { + return this.accessModes != null && !(this.accessModes.isEmpty()); + } + + public boolean hasAwsElasticBlockStore() { + return this.awsElasticBlockStore != null; + } + + public boolean hasAzureDisk() { + return this.azureDisk != null; + } + + public boolean hasAzureFile() { + return this.azureFile != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCephfs() { + return this.cephfs != null; + } + + public boolean hasCinder() { + return this.cinder != null; + } + + public boolean hasClaimRef() { + return this.claimRef != null; + } + + public boolean hasCsi() { + return this.csi != null; + } + + public boolean hasFc() { + return this.fc != null; + } + + public boolean hasFlexVolume() { + return this.flexVolume != null; + } + + public boolean hasFlocker() { + return this.flocker != null; + } + + public boolean hasGcePersistentDisk() { + return this.gcePersistentDisk != null; + } + + public boolean hasGlusterfs() { + return this.glusterfs != null; + } + + public boolean hasHostPath() { + return this.hostPath != null; + } + + public boolean hasIscsi() { + return this.iscsi != null; + } + + public boolean hasLocal() { + return this.local != null; + } + + public boolean hasMatchingAccessMode(Predicate predicate) { + for (String item : accessModes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingMountOption(Predicate predicate) { + for (String item : mountOptions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMountOptions() { + return this.mountOptions != null && !(this.mountOptions.isEmpty()); + } + + public boolean hasNfs() { + return this.nfs != null; + } + + public boolean hasNodeAffinity() { + return this.nodeAffinity != null; + } + + public boolean hasPersistentVolumeReclaimPolicy() { + return this.persistentVolumeReclaimPolicy != null; + } + + public boolean hasPhotonPersistentDisk() { + return this.photonPersistentDisk != null; + } + + public boolean hasPortworxVolume() { + return this.portworxVolume != null; + } + + public boolean hasQuobyte() { + return this.quobyte != null; + } + + public boolean hasRbd() { + return this.rbd != null; + } + + public boolean hasScaleIO() { + return this.scaleIO != null; + } + + public boolean hasStorageClassName() { + return this.storageClassName != null; + } + + public boolean hasStorageos() { + return this.storageos != null; + } + + public boolean hasVolumeAttributesClassName() { + return this.volumeAttributesClassName != null; + } + + public boolean hasVolumeMode() { + return this.volumeMode != null; + } + + public boolean hasVsphereVolume() { + return this.vsphereVolume != null; + } + + 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, volumeAttributesClassName, volumeMode, vsphereVolume); + } + + public A removeAllFromAccessModes(Collection items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + return (A) this; + } + + public A removeAllFromMountOptions(Collection items) { + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); + } + return (A) this; + } + + public A removeFromAccessModes(String... items) { + if (this.accessModes == null) { + return (A) this; + } + for (String item : items) { + this.accessModes.remove(item); + } + 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 A removeFromMountOptions(String... items) { + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); + } + return (A) this; + } + + public A setToAccessModes(int index,String item) { + if (this.accessModes == null) { + this.accessModes = new ArrayList(); + } + this.accessModes.set(index, item); + return (A) this; + } + + public A setToMountOptions(int index,String item) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + this.mountOptions.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(accessModes == null) && !(accessModes.isEmpty())) { + sb.append("accessModes:"); + sb.append(accessModes); + sb.append(","); + } + if (!(awsElasticBlockStore == null)) { + sb.append("awsElasticBlockStore:"); + sb.append(awsElasticBlockStore); + sb.append(","); + } + if (!(azureDisk == null)) { + sb.append("azureDisk:"); + sb.append(azureDisk); + sb.append(","); + } + if (!(azureFile == null)) { + sb.append("azureFile:"); + sb.append(azureFile); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(cephfs == null)) { + sb.append("cephfs:"); + sb.append(cephfs); + sb.append(","); + } + if (!(cinder == null)) { + sb.append("cinder:"); + sb.append(cinder); + sb.append(","); + } + if (!(claimRef == null)) { + sb.append("claimRef:"); + sb.append(claimRef); + sb.append(","); + } + if (!(csi == null)) { + sb.append("csi:"); + sb.append(csi); + sb.append(","); + } + if (!(fc == null)) { + sb.append("fc:"); + sb.append(fc); + sb.append(","); + } + if (!(flexVolume == null)) { + sb.append("flexVolume:"); + sb.append(flexVolume); + sb.append(","); + } + if (!(flocker == null)) { + sb.append("flocker:"); + sb.append(flocker); + sb.append(","); + } + if (!(gcePersistentDisk == null)) { + sb.append("gcePersistentDisk:"); + sb.append(gcePersistentDisk); + sb.append(","); + } + if (!(glusterfs == null)) { + sb.append("glusterfs:"); + sb.append(glusterfs); + sb.append(","); + } + if (!(hostPath == null)) { + sb.append("hostPath:"); + sb.append(hostPath); + sb.append(","); + } + if (!(iscsi == null)) { + sb.append("iscsi:"); + sb.append(iscsi); + sb.append(","); + } + if (!(local == null)) { + sb.append("local:"); + sb.append(local); + sb.append(","); + } + if (!(mountOptions == null) && !(mountOptions.isEmpty())) { + sb.append("mountOptions:"); + sb.append(mountOptions); + sb.append(","); + } + if (!(nfs == null)) { + sb.append("nfs:"); + sb.append(nfs); + sb.append(","); + } + if (!(nodeAffinity == null)) { + sb.append("nodeAffinity:"); + sb.append(nodeAffinity); + sb.append(","); + } + if (!(persistentVolumeReclaimPolicy == null)) { + sb.append("persistentVolumeReclaimPolicy:"); + sb.append(persistentVolumeReclaimPolicy); + sb.append(","); + } + if (!(photonPersistentDisk == null)) { + sb.append("photonPersistentDisk:"); + sb.append(photonPersistentDisk); + sb.append(","); + } + if (!(portworxVolume == null)) { + sb.append("portworxVolume:"); + sb.append(portworxVolume); + sb.append(","); + } + if (!(quobyte == null)) { + sb.append("quobyte:"); + sb.append(quobyte); + sb.append(","); + } + if (!(rbd == null)) { + sb.append("rbd:"); + sb.append(rbd); + sb.append(","); + } + if (!(scaleIO == null)) { + sb.append("scaleIO:"); + sb.append(scaleIO); + sb.append(","); + } + if (!(storageClassName == null)) { + sb.append("storageClassName:"); + sb.append(storageClassName); + sb.append(","); + } + if (!(storageos == null)) { + sb.append("storageos:"); + sb.append(storageos); + sb.append(","); + } + if (!(volumeAttributesClassName == null)) { + sb.append("volumeAttributesClassName:"); + sb.append(volumeAttributesClassName); + sb.append(","); + } + if (!(volumeMode == null)) { + sb.append("volumeMode:"); + sb.append(volumeMode); + sb.append(","); + } + if (!(vsphereVolume == null)) { + sb.append("vsphereVolume:"); + sb.append(vsphereVolume); + } + sb.append("}"); + return sb.toString(); + } + + public A withAccessModes(List accessModes) { + if (accessModes != null) { + this.accessModes = new ArrayList(); + for (String item : accessModes) { + this.addToAccessModes(item); + } + } else { + this.accessModes = null; + } + return (A) this; + } + + public A withAccessModes(String... accessModes) { + if (this.accessModes != null) { + this.accessModes.clear(); + _visitables.remove("accessModes"); + } + if (accessModes != null) { + for (String item : accessModes) { + this.addToAccessModes(item); + } + } + return (A) this; + } + + public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + this._visitables.remove("awsElasticBlockStore"); + if (awsElasticBlockStore != null) { + this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); + this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); + } else { + this.awsElasticBlockStore = null; + this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); + } + return (A) this; + } + + public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { + this._visitables.remove("azureDisk"); + if (azureDisk != null) { + this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); + this._visitables.get("azureDisk").add(this.azureDisk); + } else { + this.azureDisk = null; + this._visitables.get("azureDisk").remove(this.azureDisk); + } + return (A) this; + } + + public A withAzureFile(V1AzureFilePersistentVolumeSource azureFile) { + this._visitables.remove("azureFile"); + if (azureFile != null) { + this.azureFile = new V1AzureFilePersistentVolumeSourceBuilder(azureFile); + this._visitables.get("azureFile").add(this.azureFile); + } else { + this.azureFile = null; + this._visitables.get("azureFile").remove(this.azureFile); + } + return (A) this; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + public A withCephfs(V1CephFSPersistentVolumeSource cephfs) { + this._visitables.remove("cephfs"); + if (cephfs != null) { + this.cephfs = new V1CephFSPersistentVolumeSourceBuilder(cephfs); + this._visitables.get("cephfs").add(this.cephfs); + } else { + this.cephfs = null; + this._visitables.get("cephfs").remove(this.cephfs); + } + return (A) this; + } + + public A withCinder(V1CinderPersistentVolumeSource cinder) { + this._visitables.remove("cinder"); + if (cinder != null) { + this.cinder = new V1CinderPersistentVolumeSourceBuilder(cinder); + this._visitables.get("cinder").add(this.cinder); + } else { + this.cinder = null; + this._visitables.get("cinder").remove(this.cinder); + } + return (A) this; + } + + public A withClaimRef(V1ObjectReference claimRef) { + this._visitables.remove("claimRef"); + if (claimRef != null) { + this.claimRef = new V1ObjectReferenceBuilder(claimRef); + this._visitables.get("claimRef").add(this.claimRef); + } else { + this.claimRef = null; + this._visitables.get("claimRef").remove(this.claimRef); + } + return (A) this; + } + + public A withCsi(V1CSIPersistentVolumeSource csi) { + this._visitables.remove("csi"); + if (csi != null) { + this.csi = new V1CSIPersistentVolumeSourceBuilder(csi); + this._visitables.get("csi").add(this.csi); + } else { + this.csi = null; + this._visitables.get("csi").remove(this.csi); + } + return (A) this; } - public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(item)); + public A withFc(V1FCVolumeSource fc) { + this._visitables.remove("fc"); + if (fc != null) { + this.fc = new V1FCVolumeSourceBuilder(fc); + this._visitables.get("fc").add(this.fc); + } else { + this.fc = null; + this._visitables.get("fc").remove(this.fc); + } + return (A) this; } - public V1HostPathVolumeSource buildHostPath() { - return this.hostPath != null ? this.hostPath.build() : null; + public A withFlexVolume(V1FlexPersistentVolumeSource flexVolume) { + this._visitables.remove("flexVolume"); + if (flexVolume != null) { + this.flexVolume = new V1FlexPersistentVolumeSourceBuilder(flexVolume); + this._visitables.get("flexVolume").add(this.flexVolume); + } else { + this.flexVolume = null; + this._visitables.get("flexVolume").remove(this.flexVolume); + } + return (A) this; + } + + public A withFlocker(V1FlockerVolumeSource flocker) { + this._visitables.remove("flocker"); + if (flocker != null) { + this.flocker = new V1FlockerVolumeSourceBuilder(flocker); + this._visitables.get("flocker").add(this.flocker); + } else { + this.flocker = null; + this._visitables.get("flocker").remove(this.flocker); + } + return (A) this; + } + + public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + this._visitables.remove("gcePersistentDisk"); + if (gcePersistentDisk != null) { + this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); + this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); + } else { + this.gcePersistentDisk = null; + this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); + } + return (A) this; + } + + public A withGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { + this._visitables.remove("glusterfs"); + if (glusterfs != null) { + this.glusterfs = new V1GlusterfsPersistentVolumeSourceBuilder(glusterfs); + this._visitables.get("glusterfs").add(this.glusterfs); + } else { + this.glusterfs = null; + this._visitables.get("glusterfs").remove(this.glusterfs); + } + return (A) this; } public A withHostPath(V1HostPathVolumeSource hostPath) { @@ -720,88 +1312,165 @@ public A withHostPath(V1HostPathVolumeSource hostPath) { return (A) this; } - public boolean hasHostPath() { - return this.hostPath != null; + public A withIscsi(V1ISCSIPersistentVolumeSource iscsi) { + this._visitables.remove("iscsi"); + if (iscsi != null) { + this.iscsi = new V1ISCSIPersistentVolumeSourceBuilder(iscsi); + this._visitables.get("iscsi").add(this.iscsi); + } else { + this.iscsi = null; + this._visitables.get("iscsi").remove(this.iscsi); + } + return (A) this; } - public HostPathNested withNewHostPath() { - return new HostPathNested(null); + public A withLocal(V1LocalVolumeSource local) { + this._visitables.remove("local"); + if (local != null) { + this.local = new V1LocalVolumeSourceBuilder(local); + this._visitables.get("local").add(this.local); + } else { + this.local = null; + this._visitables.get("local").remove(this.local); + } + return (A) this; } - public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { - return new HostPathNested(item); + public A withMountOptions(List mountOptions) { + if (mountOptions != null) { + this.mountOptions = new ArrayList(); + for (String item : mountOptions) { + this.addToMountOptions(item); + } + } else { + this.mountOptions = null; + } + return (A) this; } - public HostPathNested editHostPath() { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(null)); + public A withMountOptions(String... mountOptions) { + if (this.mountOptions != null) { + this.mountOptions.clear(); + _visitables.remove("mountOptions"); + } + if (mountOptions != null) { + for (String item : mountOptions) { + this.addToMountOptions(item); + } + } + return (A) this; } - public HostPathNested editOrNewHostPath() { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); + public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { + return new AwsElasticBlockStoreNested(null); } - public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(item)); + public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return new AwsElasticBlockStoreNested(item); } - public V1ISCSIPersistentVolumeSource buildIscsi() { - return this.iscsi != null ? this.iscsi.build() : null; + public AzureDiskNested withNewAzureDisk() { + return new AzureDiskNested(null); } - public A withIscsi(V1ISCSIPersistentVolumeSource iscsi) { - this._visitables.remove("iscsi"); - if (iscsi != null) { - this.iscsi = new V1ISCSIPersistentVolumeSourceBuilder(iscsi); - this._visitables.get("iscsi").add(this.iscsi); - } else { - this.iscsi = null; - this._visitables.get("iscsi").remove(this.iscsi); - } - return (A) this; + public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return new AzureDiskNested(item); } - public boolean hasIscsi() { - return this.iscsi != null; + public AzureFileNested withNewAzureFile() { + return new AzureFileNested(null); } - public IscsiNested withNewIscsi() { - return new IscsiNested(null); + public AzureFileNested withNewAzureFileLike(V1AzureFilePersistentVolumeSource item) { + return new AzureFileNested(item); } - public IscsiNested withNewIscsiLike(V1ISCSIPersistentVolumeSource item) { - return new IscsiNested(item); + public CephfsNested withNewCephfs() { + return new CephfsNested(null); } - public IscsiNested editIscsi() { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(null)); + public CephfsNested withNewCephfsLike(V1CephFSPersistentVolumeSource item) { + return new CephfsNested(item); } - public IscsiNested editOrNewIscsi() { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(new V1ISCSIPersistentVolumeSourceBuilder().build())); + public CinderNested withNewCinder() { + return new CinderNested(null); } - public IscsiNested editOrNewIscsiLike(V1ISCSIPersistentVolumeSource item) { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(item)); + public CinderNested withNewCinderLike(V1CinderPersistentVolumeSource item) { + return new CinderNested(item); } - public V1LocalVolumeSource buildLocal() { - return this.local != null ? this.local.build() : null; + public ClaimRefNested withNewClaimRef() { + return new ClaimRefNested(null); } - public A withLocal(V1LocalVolumeSource local) { - this._visitables.remove("local"); - if (local != null) { - this.local = new V1LocalVolumeSourceBuilder(local); - this._visitables.get("local").add(this.local); - } else { - this.local = null; - this._visitables.get("local").remove(this.local); - } - return (A) this; + public ClaimRefNested withNewClaimRefLike(V1ObjectReference item) { + return new ClaimRefNested(item); } - public boolean hasLocal() { - return this.local != null; + public CsiNested withNewCsi() { + return new CsiNested(null); + } + + public CsiNested withNewCsiLike(V1CSIPersistentVolumeSource item) { + return new CsiNested(item); + } + + public FcNested withNewFc() { + return new FcNested(null); + } + + public FcNested withNewFcLike(V1FCVolumeSource item) { + return new FcNested(item); + } + + public FlexVolumeNested withNewFlexVolume() { + return new FlexVolumeNested(null); + } + + public FlexVolumeNested withNewFlexVolumeLike(V1FlexPersistentVolumeSource item) { + return new FlexVolumeNested(item); + } + + public FlockerNested withNewFlocker() { + return new FlockerNested(null); + } + + public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { + return new FlockerNested(item); + } + + public GcePersistentDiskNested withNewGcePersistentDisk() { + return new GcePersistentDiskNested(null); + } + + public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return new GcePersistentDiskNested(item); + } + + public GlusterfsNested withNewGlusterfs() { + return new GlusterfsNested(null); + } + + public GlusterfsNested withNewGlusterfsLike(V1GlusterfsPersistentVolumeSource item) { + return new GlusterfsNested(item); + } + + public HostPathNested withNewHostPath() { + return new HostPathNested(null); + } + + public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { + return new HostPathNested(item); + } + + public IscsiNested withNewIscsi() { + return new IscsiNested(null); + } + + public IscsiNested withNewIscsiLike(V1ISCSIPersistentVolumeSource item) { + return new IscsiNested(item); } public LocalNested withNewLocal() { @@ -812,114 +1481,76 @@ public LocalNested withNewLocalLike(V1LocalVolumeSource item) { return new LocalNested(item); } - public LocalNested editLocal() { - return withNewLocalLike(java.util.Optional.ofNullable(buildLocal()).orElse(null)); - } - - public LocalNested editOrNewLocal() { - return withNewLocalLike(java.util.Optional.ofNullable(buildLocal()).orElse(new V1LocalVolumeSourceBuilder().build())); + public NfsNested withNewNfs() { + return new NfsNested(null); } - public LocalNested editOrNewLocalLike(V1LocalVolumeSource item) { - return withNewLocalLike(java.util.Optional.ofNullable(buildLocal()).orElse(item)); + public NfsNested withNewNfsLike(V1NFSVolumeSource item) { + return new NfsNested(item); } - public A addToMountOptions(int index,String item) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - this.mountOptions.add(index, item); - return (A)this; + public NodeAffinityNested withNewNodeAffinity() { + return new NodeAffinityNested(null); } - public A setToMountOptions(int index,String item) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - this.mountOptions.set(index, item); return (A)this; + public NodeAffinityNested withNewNodeAffinityLike(V1VolumeNodeAffinity item) { + return new NodeAffinityNested(item); } - public A addToMountOptions(java.lang.String... items) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - for (String item : items) {this.mountOptions.add(item);} return (A)this; + public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { + return new PhotonPersistentDiskNested(null); } - public A addAllToMountOptions(Collection items) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - for (String item : items) {this.mountOptions.add(item);} return (A)this; + public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return new PhotonPersistentDiskNested(item); } - public A removeFromMountOptions(java.lang.String... items) { - if (this.mountOptions == null) return (A)this; - for (String item : items) { this.mountOptions.remove(item);} return (A)this; + public PortworxVolumeNested withNewPortworxVolume() { + return new PortworxVolumeNested(null); } - public A removeAllFromMountOptions(Collection items) { - if (this.mountOptions == null) return (A)this; - for (String item : items) { this.mountOptions.remove(item);} return (A)this; + public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return new PortworxVolumeNested(item); } - public List getMountOptions() { - return this.mountOptions; + public QuobyteNested withNewQuobyte() { + return new QuobyteNested(null); } - public String getMountOption(int index) { - return this.mountOptions.get(index); + public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { + return new QuobyteNested(item); } - public String getFirstMountOption() { - return this.mountOptions.get(0); + public RbdNested withNewRbd() { + return new RbdNested(null); } - public String getLastMountOption() { - return this.mountOptions.get(mountOptions.size() - 1); + public RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item) { + return new RbdNested(item); } - public String getMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public ScaleIONested withNewScaleIO() { + return new ScaleIONested(null); } - public boolean hasMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public ScaleIONested withNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { + return new ScaleIONested(item); } - public A withMountOptions(List mountOptions) { - if (mountOptions != null) { - this.mountOptions = new ArrayList(); - for (String item : mountOptions) { - this.addToMountOptions(item); - } - } else { - this.mountOptions = null; - } - return (A) this; + public StorageosNested withNewStorageos() { + return new StorageosNested(null); } - public A withMountOptions(java.lang.String... mountOptions) { - if (this.mountOptions != null) { - this.mountOptions.clear(); - _visitables.remove("mountOptions"); - } - if (mountOptions != null) { - for (String item : mountOptions) { - this.addToMountOptions(item); - } - } - return (A) this; + public StorageosNested withNewStorageosLike(V1StorageOSPersistentVolumeSource item) { + return new StorageosNested(item); } - public boolean hasMountOptions() { - return this.mountOptions != null && !this.mountOptions.isEmpty(); + public VsphereVolumeNested withNewVsphereVolume() { + return new VsphereVolumeNested(null); } - public V1NFSVolumeSource buildNfs() { - return this.nfs != null ? this.nfs.build() : null; + public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { + return new VsphereVolumeNested(item); } public A withNfs(V1NFSVolumeSource nfs) { @@ -934,34 +1565,6 @@ public A withNfs(V1NFSVolumeSource nfs) { return (A) this; } - public boolean hasNfs() { - return this.nfs != null; - } - - public NfsNested withNewNfs() { - return new NfsNested(null); - } - - public NfsNested withNewNfsLike(V1NFSVolumeSource item) { - return new NfsNested(item); - } - - public NfsNested editNfs() { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(null)); - } - - public NfsNested editOrNewNfs() { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); - } - - public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(item)); - } - - public V1VolumeNodeAffinity buildNodeAffinity() { - return this.nodeAffinity != null ? this.nodeAffinity.build() : null; - } - public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity) { this._visitables.remove("nodeAffinity"); if (nodeAffinity != null) { @@ -974,47 +1577,11 @@ public A withNodeAffinity(V1VolumeNodeAffinity nodeAffinity) { return (A) this; } - public boolean hasNodeAffinity() { - return this.nodeAffinity != null; - } - - public NodeAffinityNested withNewNodeAffinity() { - return new NodeAffinityNested(null); - } - - public NodeAffinityNested withNewNodeAffinityLike(V1VolumeNodeAffinity item) { - return new NodeAffinityNested(item); - } - - public NodeAffinityNested editNodeAffinity() { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(null)); - } - - public NodeAffinityNested editOrNewNodeAffinity() { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(new V1VolumeNodeAffinityBuilder().build())); - } - - public NodeAffinityNested editOrNewNodeAffinityLike(V1VolumeNodeAffinity item) { - return withNewNodeAffinityLike(java.util.Optional.ofNullable(buildNodeAffinity()).orElse(item)); - } - - public String getPersistentVolumeReclaimPolicy() { - return this.persistentVolumeReclaimPolicy; - } - public A withPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) { this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; return (A) this; } - public boolean hasPersistentVolumeReclaimPolicy() { - return this.persistentVolumeReclaimPolicy != null; - } - - public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { - return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; - } - public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { this._visitables.remove("photonPersistentDisk"); if (photonPersistentDisk != null) { @@ -1027,34 +1594,6 @@ public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersi return (A) this; } - public boolean hasPhotonPersistentDisk() { - return this.photonPersistentDisk != null; - } - - public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { - return new PhotonPersistentDiskNested(null); - } - - public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return new PhotonPersistentDiskNested(item); - } - - public PhotonPersistentDiskNested editPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(null)); - } - - public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); - } - - public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(item)); - } - - public V1PortworxVolumeSource buildPortworxVolume() { - return this.portworxVolume != null ? this.portworxVolume.build() : null; - } - public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { this._visitables.remove("portworxVolume"); if (portworxVolume != null) { @@ -1067,34 +1606,6 @@ public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { return (A) this; } - public boolean hasPortworxVolume() { - return this.portworxVolume != null; - } - - public PortworxVolumeNested withNewPortworxVolume() { - return new PortworxVolumeNested(null); - } - - public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return new PortworxVolumeNested(item); - } - - public PortworxVolumeNested editPortworxVolume() { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(null)); - } - - public PortworxVolumeNested editOrNewPortworxVolume() { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); - } - - public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(item)); - } - - public V1QuobyteVolumeSource buildQuobyte() { - return this.quobyte != null ? this.quobyte.build() : null; - } - public A withQuobyte(V1QuobyteVolumeSource quobyte) { this._visitables.remove("quobyte"); if (quobyte != null) { @@ -1107,34 +1618,6 @@ public A withQuobyte(V1QuobyteVolumeSource quobyte) { return (A) this; } - public boolean hasQuobyte() { - return this.quobyte != null; - } - - public QuobyteNested withNewQuobyte() { - return new QuobyteNested(null); - } - - public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { - return new QuobyteNested(item); - } - - public QuobyteNested editQuobyte() { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(null)); - } - - public QuobyteNested editOrNewQuobyte() { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); - } - - public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(item)); - } - - public V1RBDPersistentVolumeSource buildRbd() { - return this.rbd != null ? this.rbd.build() : null; - } - public A withRbd(V1RBDPersistentVolumeSource rbd) { this._visitables.remove("rbd"); if (rbd != null) { @@ -1147,72 +1630,16 @@ public A withRbd(V1RBDPersistentVolumeSource rbd) { return (A) this; } - public boolean hasRbd() { - return this.rbd != null; - } - - public RbdNested withNewRbd() { - return new RbdNested(null); - } - - public RbdNested withNewRbdLike(V1RBDPersistentVolumeSource item) { - return new RbdNested(item); - } - - public RbdNested editRbd() { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(null)); - } - - public RbdNested editOrNewRbd() { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(new V1RBDPersistentVolumeSourceBuilder().build())); - } - - public RbdNested editOrNewRbdLike(V1RBDPersistentVolumeSource item) { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(item)); - } - - public V1ScaleIOPersistentVolumeSource buildScaleIO() { - return this.scaleIO != null ? this.scaleIO.build() : null; - } - public A withScaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { this._visitables.remove("scaleIO"); if (scaleIO != null) { this.scaleIO = new V1ScaleIOPersistentVolumeSourceBuilder(scaleIO); this._visitables.get("scaleIO").add(this.scaleIO); } else { - this.scaleIO = null; - this._visitables.get("scaleIO").remove(this.scaleIO); - } - return (A) this; - } - - public boolean hasScaleIO() { - return this.scaleIO != null; - } - - public ScaleIONested withNewScaleIO() { - return new ScaleIONested(null); - } - - public ScaleIONested withNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { - return new ScaleIONested(item); - } - - public ScaleIONested editScaleIO() { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(null)); - } - - public ScaleIONested editOrNewScaleIO() { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(new V1ScaleIOPersistentVolumeSourceBuilder().build())); - } - - public ScaleIONested editOrNewScaleIOLike(V1ScaleIOPersistentVolumeSource item) { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(item)); - } - - public String getStorageClassName() { - return this.storageClassName; + this.scaleIO = null; + this._visitables.get("scaleIO").remove(this.scaleIO); + } + return (A) this; } public A withStorageClassName(String storageClassName) { @@ -1220,14 +1647,6 @@ public A withStorageClassName(String storageClassName) { return (A) this; } - public boolean hasStorageClassName() { - return this.storageClassName != null; - } - - public V1StorageOSPersistentVolumeSource buildStorageos() { - return this.storageos != null ? this.storageos.build() : null; - } - public A withStorageos(V1StorageOSPersistentVolumeSource storageos) { this._visitables.remove("storageos"); if (storageos != null) { @@ -1240,60 +1659,16 @@ public A withStorageos(V1StorageOSPersistentVolumeSource storageos) { return (A) this; } - public boolean hasStorageos() { - return this.storageos != null; - } - - public StorageosNested withNewStorageos() { - return new StorageosNested(null); - } - - public StorageosNested withNewStorageosLike(V1StorageOSPersistentVolumeSource item) { - return new StorageosNested(item); - } - - public StorageosNested editStorageos() { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(null)); - } - - public StorageosNested editOrNewStorageos() { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(new V1StorageOSPersistentVolumeSourceBuilder().build())); - } - - public StorageosNested editOrNewStorageosLike(V1StorageOSPersistentVolumeSource item) { - 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; - } - public A withVolumeMode(String volumeMode) { this.volumeMode = volumeMode; return (A) this; } - public boolean hasVolumeMode() { - return this.volumeMode != null; - } - - public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { - return this.vsphereVolume != null ? this.vsphereVolume.build() : null; - } - public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { this._visitables.remove("vsphereVolume"); if (vsphereVolume != null) { @@ -1305,117 +1680,14 @@ public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { } return (A) this; } + public class AwsElasticBlockStoreNested extends V1AWSElasticBlockStoreVolumeSourceFluent> implements Nested{ - public boolean hasVsphereVolume() { - return this.vsphereVolume != null; - } - - public VsphereVolumeNested withNewVsphereVolume() { - return new VsphereVolumeNested(null); - } - - public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return new VsphereVolumeNested(item); - } - - public VsphereVolumeNested editVsphereVolume() { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(null)); - } - - public VsphereVolumeNested editOrNewVsphereVolume() { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); - } - - public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).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; - V1PersistentVolumeSpecFluent that = (V1PersistentVolumeSpecFluent) o; - if (!java.util.Objects.equals(accessModes, that.accessModes)) return false; - if (!java.util.Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore)) return false; - if (!java.util.Objects.equals(azureDisk, that.azureDisk)) return false; - if (!java.util.Objects.equals(azureFile, that.azureFile)) return false; - if (!java.util.Objects.equals(capacity, that.capacity)) return false; - if (!java.util.Objects.equals(cephfs, that.cephfs)) return false; - if (!java.util.Objects.equals(cinder, that.cinder)) return false; - if (!java.util.Objects.equals(claimRef, that.claimRef)) return false; - if (!java.util.Objects.equals(csi, that.csi)) return false; - if (!java.util.Objects.equals(fc, that.fc)) return false; - if (!java.util.Objects.equals(flexVolume, that.flexVolume)) return false; - if (!java.util.Objects.equals(flocker, that.flocker)) return false; - if (!java.util.Objects.equals(gcePersistentDisk, that.gcePersistentDisk)) 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(iscsi, that.iscsi)) return false; - if (!java.util.Objects.equals(local, that.local)) return false; - if (!java.util.Objects.equals(mountOptions, that.mountOptions)) return false; - if (!java.util.Objects.equals(nfs, that.nfs)) return false; - if (!java.util.Objects.equals(nodeAffinity, that.nodeAffinity)) return false; - if (!java.util.Objects.equals(persistentVolumeReclaimPolicy, that.persistentVolumeReclaimPolicy)) return false; - if (!java.util.Objects.equals(photonPersistentDisk, that.photonPersistentDisk)) return false; - if (!java.util.Objects.equals(portworxVolume, that.portworxVolume)) return false; - if (!java.util.Objects.equals(quobyte, that.quobyte)) return false; - if (!java.util.Objects.equals(rbd, that.rbd)) return false; - 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, volumeAttributesClassName, volumeMode, vsphereVolume, super.hashCode()); - } + V1AWSElasticBlockStoreVolumeSourceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (accessModes != null && !accessModes.isEmpty()) { sb.append("accessModes:"); sb.append(accessModes + ","); } - if (awsElasticBlockStore != null) { sb.append("awsElasticBlockStore:"); sb.append(awsElasticBlockStore + ","); } - if (azureDisk != null) { sb.append("azureDisk:"); sb.append(azureDisk + ","); } - if (azureFile != null) { sb.append("azureFile:"); sb.append(azureFile + ","); } - if (capacity != null && !capacity.isEmpty()) { sb.append("capacity:"); sb.append(capacity + ","); } - if (cephfs != null) { sb.append("cephfs:"); sb.append(cephfs + ","); } - if (cinder != null) { sb.append("cinder:"); sb.append(cinder + ","); } - if (claimRef != null) { sb.append("claimRef:"); sb.append(claimRef + ","); } - if (csi != null) { sb.append("csi:"); sb.append(csi + ","); } - if (fc != null) { sb.append("fc:"); sb.append(fc + ","); } - if (flexVolume != null) { sb.append("flexVolume:"); sb.append(flexVolume + ","); } - if (flocker != null) { sb.append("flocker:"); sb.append(flocker + ","); } - if (gcePersistentDisk != null) { sb.append("gcePersistentDisk:"); sb.append(gcePersistentDisk + ","); } - if (glusterfs != null) { sb.append("glusterfs:"); sb.append(glusterfs + ","); } - if (hostPath != null) { sb.append("hostPath:"); sb.append(hostPath + ","); } - if (iscsi != null) { sb.append("iscsi:"); sb.append(iscsi + ","); } - if (local != null) { sb.append("local:"); sb.append(local + ","); } - if (mountOptions != null && !mountOptions.isEmpty()) { sb.append("mountOptions:"); sb.append(mountOptions + ","); } - if (nfs != null) { sb.append("nfs:"); sb.append(nfs + ","); } - if (nodeAffinity != null) { sb.append("nodeAffinity:"); sb.append(nodeAffinity + ","); } - if (persistentVolumeReclaimPolicy != null) { sb.append("persistentVolumeReclaimPolicy:"); sb.append(persistentVolumeReclaimPolicy + ","); } - if (photonPersistentDisk != null) { sb.append("photonPersistentDisk:"); sb.append(photonPersistentDisk + ","); } - if (portworxVolume != null) { sb.append("portworxVolume:"); sb.append(portworxVolume + ","); } - if (quobyte != null) { sb.append("quobyte:"); sb.append(quobyte + ","); } - if (rbd != null) { sb.append("rbd:"); sb.append(rbd + ","); } - 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("}"); - return sb.toString(); - } - public class AwsElasticBlockStoreNested extends V1AWSElasticBlockStoreVolumeSourceFluent> implements Nested{ AwsElasticBlockStoreNested(V1AWSElasticBlockStoreVolumeSource item) { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this, item); } - V1AWSElasticBlockStoreVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withAwsElasticBlockStore(builder.build()); } @@ -1424,14 +1696,15 @@ public N endAwsElasticBlockStore() { return and(); } - } public class AzureDiskNested extends V1AzureDiskVolumeSourceFluent> implements Nested{ + + V1AzureDiskVolumeSourceBuilder builder; + AzureDiskNested(V1AzureDiskVolumeSource item) { this.builder = new V1AzureDiskVolumeSourceBuilder(this, item); } - V1AzureDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withAzureDisk(builder.build()); } @@ -1440,14 +1713,15 @@ public N endAzureDisk() { return and(); } - } public class AzureFileNested extends V1AzureFilePersistentVolumeSourceFluent> implements Nested{ + + V1AzureFilePersistentVolumeSourceBuilder builder; + AzureFileNested(V1AzureFilePersistentVolumeSource item) { this.builder = new V1AzureFilePersistentVolumeSourceBuilder(this, item); } - V1AzureFilePersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withAzureFile(builder.build()); } @@ -1456,14 +1730,15 @@ public N endAzureFile() { return and(); } - } public class CephfsNested extends V1CephFSPersistentVolumeSourceFluent> implements Nested{ + + V1CephFSPersistentVolumeSourceBuilder builder; + CephfsNested(V1CephFSPersistentVolumeSource item) { this.builder = new V1CephFSPersistentVolumeSourceBuilder(this, item); } - V1CephFSPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withCephfs(builder.build()); } @@ -1472,14 +1747,15 @@ public N endCephfs() { return and(); } - } public class CinderNested extends V1CinderPersistentVolumeSourceFluent> implements Nested{ + + V1CinderPersistentVolumeSourceBuilder builder; + CinderNested(V1CinderPersistentVolumeSource item) { this.builder = new V1CinderPersistentVolumeSourceBuilder(this, item); } - V1CinderPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withCinder(builder.build()); } @@ -1488,14 +1764,15 @@ public N endCinder() { return and(); } - } public class ClaimRefNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + ClaimRefNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withClaimRef(builder.build()); } @@ -1504,14 +1781,15 @@ public N endClaimRef() { return and(); } - } public class CsiNested extends V1CSIPersistentVolumeSourceFluent> implements Nested{ + + V1CSIPersistentVolumeSourceBuilder builder; + CsiNested(V1CSIPersistentVolumeSource item) { this.builder = new V1CSIPersistentVolumeSourceBuilder(this, item); } - V1CSIPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withCsi(builder.build()); } @@ -1520,14 +1798,15 @@ public N endCsi() { return and(); } - } public class FcNested extends V1FCVolumeSourceFluent> implements Nested{ + + V1FCVolumeSourceBuilder builder; + FcNested(V1FCVolumeSource item) { this.builder = new V1FCVolumeSourceBuilder(this, item); } - V1FCVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withFc(builder.build()); } @@ -1536,14 +1815,15 @@ public N endFc() { return and(); } - } public class FlexVolumeNested extends V1FlexPersistentVolumeSourceFluent> implements Nested{ + + V1FlexPersistentVolumeSourceBuilder builder; + FlexVolumeNested(V1FlexPersistentVolumeSource item) { this.builder = new V1FlexPersistentVolumeSourceBuilder(this, item); } - V1FlexPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withFlexVolume(builder.build()); } @@ -1552,14 +1832,15 @@ public N endFlexVolume() { return and(); } - } public class FlockerNested extends V1FlockerVolumeSourceFluent> implements Nested{ + + V1FlockerVolumeSourceBuilder builder; + FlockerNested(V1FlockerVolumeSource item) { this.builder = new V1FlockerVolumeSourceBuilder(this, item); } - V1FlockerVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withFlocker(builder.build()); } @@ -1568,14 +1849,15 @@ public N endFlocker() { return and(); } - } public class GcePersistentDiskNested extends V1GCEPersistentDiskVolumeSourceFluent> implements Nested{ + + V1GCEPersistentDiskVolumeSourceBuilder builder; + GcePersistentDiskNested(V1GCEPersistentDiskVolumeSource item) { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this, item); } - V1GCEPersistentDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withGcePersistentDisk(builder.build()); } @@ -1584,14 +1866,15 @@ public N endGcePersistentDisk() { return and(); } - } public class GlusterfsNested extends V1GlusterfsPersistentVolumeSourceFluent> implements Nested{ + + V1GlusterfsPersistentVolumeSourceBuilder builder; + GlusterfsNested(V1GlusterfsPersistentVolumeSource item) { this.builder = new V1GlusterfsPersistentVolumeSourceBuilder(this, item); } - V1GlusterfsPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withGlusterfs(builder.build()); } @@ -1600,14 +1883,15 @@ public N endGlusterfs() { return and(); } - } public class HostPathNested extends V1HostPathVolumeSourceFluent> implements Nested{ + + V1HostPathVolumeSourceBuilder builder; + HostPathNested(V1HostPathVolumeSource item) { this.builder = new V1HostPathVolumeSourceBuilder(this, item); } - V1HostPathVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withHostPath(builder.build()); } @@ -1616,14 +1900,15 @@ public N endHostPath() { return and(); } - } public class IscsiNested extends V1ISCSIPersistentVolumeSourceFluent> implements Nested{ + + V1ISCSIPersistentVolumeSourceBuilder builder; + IscsiNested(V1ISCSIPersistentVolumeSource item) { this.builder = new V1ISCSIPersistentVolumeSourceBuilder(this, item); } - V1ISCSIPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withIscsi(builder.build()); } @@ -1632,14 +1917,15 @@ public N endIscsi() { return and(); } - } public class LocalNested extends V1LocalVolumeSourceFluent> implements Nested{ + + V1LocalVolumeSourceBuilder builder; + LocalNested(V1LocalVolumeSource item) { this.builder = new V1LocalVolumeSourceBuilder(this, item); } - V1LocalVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withLocal(builder.build()); } @@ -1648,14 +1934,15 @@ public N endLocal() { return and(); } - } public class NfsNested extends V1NFSVolumeSourceFluent> implements Nested{ + + V1NFSVolumeSourceBuilder builder; + NfsNested(V1NFSVolumeSource item) { this.builder = new V1NFSVolumeSourceBuilder(this, item); } - V1NFSVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withNfs(builder.build()); } @@ -1664,14 +1951,15 @@ public N endNfs() { return and(); } - } public class NodeAffinityNested extends V1VolumeNodeAffinityFluent> implements Nested{ + + V1VolumeNodeAffinityBuilder builder; + NodeAffinityNested(V1VolumeNodeAffinity item) { this.builder = new V1VolumeNodeAffinityBuilder(this, item); } - V1VolumeNodeAffinityBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withNodeAffinity(builder.build()); } @@ -1680,14 +1968,15 @@ public N endNodeAffinity() { return and(); } - } public class PhotonPersistentDiskNested extends V1PhotonPersistentDiskVolumeSourceFluent> implements Nested{ + + V1PhotonPersistentDiskVolumeSourceBuilder builder; + PhotonPersistentDiskNested(V1PhotonPersistentDiskVolumeSource item) { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this, item); } - V1PhotonPersistentDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withPhotonPersistentDisk(builder.build()); } @@ -1696,14 +1985,15 @@ public N endPhotonPersistentDisk() { return and(); } - } public class PortworxVolumeNested extends V1PortworxVolumeSourceFluent> implements Nested{ + + V1PortworxVolumeSourceBuilder builder; + PortworxVolumeNested(V1PortworxVolumeSource item) { this.builder = new V1PortworxVolumeSourceBuilder(this, item); } - V1PortworxVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withPortworxVolume(builder.build()); } @@ -1712,14 +2002,15 @@ public N endPortworxVolume() { return and(); } - } public class QuobyteNested extends V1QuobyteVolumeSourceFluent> implements Nested{ + + V1QuobyteVolumeSourceBuilder builder; + QuobyteNested(V1QuobyteVolumeSource item) { this.builder = new V1QuobyteVolumeSourceBuilder(this, item); } - V1QuobyteVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withQuobyte(builder.build()); } @@ -1728,14 +2019,15 @@ public N endQuobyte() { return and(); } - } public class RbdNested extends V1RBDPersistentVolumeSourceFluent> implements Nested{ + + V1RBDPersistentVolumeSourceBuilder builder; + RbdNested(V1RBDPersistentVolumeSource item) { this.builder = new V1RBDPersistentVolumeSourceBuilder(this, item); } - V1RBDPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withRbd(builder.build()); } @@ -1744,14 +2036,15 @@ public N endRbd() { return and(); } - } public class ScaleIONested extends V1ScaleIOPersistentVolumeSourceFluent> implements Nested{ + + V1ScaleIOPersistentVolumeSourceBuilder builder; + ScaleIONested(V1ScaleIOPersistentVolumeSource item) { this.builder = new V1ScaleIOPersistentVolumeSourceBuilder(this, item); } - V1ScaleIOPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withScaleIO(builder.build()); } @@ -1760,14 +2053,15 @@ public N endScaleIO() { return and(); } - } public class StorageosNested extends V1StorageOSPersistentVolumeSourceFluent> implements Nested{ + + V1StorageOSPersistentVolumeSourceBuilder builder; + StorageosNested(V1StorageOSPersistentVolumeSource item) { this.builder = new V1StorageOSPersistentVolumeSourceBuilder(this, item); } - V1StorageOSPersistentVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withStorageos(builder.build()); } @@ -1776,14 +2070,15 @@ public N endStorageos() { return and(); } - } public class VsphereVolumeNested extends V1VsphereVirtualDiskVolumeSourceFluent> implements Nested{ + + V1VsphereVirtualDiskVolumeSourceBuilder builder; + VsphereVolumeNested(V1VsphereVirtualDiskVolumeSource item) { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this, item); } - V1VsphereVirtualDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1PersistentVolumeSpecFluent.this.withVsphereVolume(builder.build()); } @@ -1792,7 +2087,5 @@ public N endVsphereVolume() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java index 2f6f320fdb..222200f8df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PersistentVolumeStatusBuilder extends V1PersistentVolumeStatusFluent implements VisitableBuilder{ + + V1PersistentVolumeStatusFluent fluent; + public V1PersistentVolumeStatusBuilder() { this(new V1PersistentVolumeStatus()); } @@ -10,17 +14,16 @@ public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent) this(fluent, new V1PersistentVolumeStatus()); } - public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent,V1PersistentVolumeStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PersistentVolumeStatusFluent fluent; + public V1PersistentVolumeStatusBuilder(V1PersistentVolumeStatusFluent fluent,V1PersistentVolumeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PersistentVolumeStatus build() { V1PersistentVolumeStatus buildable = new V1PersistentVolumeStatus(); buildable.setLastPhaseTransitionTime(fluent.getLastPhaseTransitionTime()); @@ -30,5 +33,4 @@ public V1PersistentVolumeStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java index 5ef7db1309..4c91b8709c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java @@ -1,115 +1,147 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PersistentVolumeStatusFluent> extends BaseFluent{ +public class V1PersistentVolumeStatusFluent> extends BaseFluent{ + + private OffsetDateTime lastPhaseTransitionTime; + private String message; + private String phase; + private String reason; + public V1PersistentVolumeStatusFluent() { } public V1PersistentVolumeStatusFluent(V1PersistentVolumeStatus instance) { this.copyInstance(instance); } - private OffsetDateTime lastPhaseTransitionTime; - private String message; - private String phase; - private String reason; - + protected void copyInstance(V1PersistentVolumeStatus instance) { - instance = (instance != null ? instance : new V1PersistentVolumeStatus()); + instance = instance != null ? instance : new V1PersistentVolumeStatus(); if (instance != null) { - this.withLastPhaseTransitionTime(instance.getLastPhaseTransitionTime()); - this.withMessage(instance.getMessage()); - this.withPhase(instance.getPhase()); - this.withReason(instance.getReason()); - } + this.withLastPhaseTransitionTime(instance.getLastPhaseTransitionTime()); + this.withMessage(instance.getMessage()); + this.withPhase(instance.getPhase()); + this.withReason(instance.getReason()); + } } - public OffsetDateTime getLastPhaseTransitionTime() { - return this.lastPhaseTransitionTime; - } - - public A withLastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime) { - this.lastPhaseTransitionTime = lastPhaseTransitionTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PersistentVolumeStatusFluent that = (V1PersistentVolumeStatusFluent) o; + if (!(Objects.equals(lastPhaseTransitionTime, that.lastPhaseTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + return true; } - public boolean hasLastPhaseTransitionTime() { - return this.lastPhaseTransitionTime != null; + public OffsetDateTime getLastPhaseTransitionTime() { + return this.lastPhaseTransitionTime; } 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 getPhase() { return this.phase; } - public A withPhase(String phase) { - this.phase = phase; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasPhase() { - return this.phase != null; + public boolean hasLastPhaseTransitionTime() { + return this.lastPhaseTransitionTime != null; } - public String getReason() { - return this.reason; + public boolean hasMessage() { + return this.message != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasPhase() { + return this.phase != null; } 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; - V1PersistentVolumeStatusFluent that = (V1PersistentVolumeStatusFluent) o; - if (!java.util.Objects.equals(lastPhaseTransitionTime, that.lastPhaseTransitionTime)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(phase, that.phase)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(lastPhaseTransitionTime, message, phase, reason, super.hashCode()); + return Objects.hash(lastPhaseTransitionTime, message, phase, reason); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (lastPhaseTransitionTime != null) { sb.append("lastPhaseTransitionTime:"); sb.append(lastPhaseTransitionTime + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (phase != null) { sb.append("phase:"); sb.append(phase + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } + if (!(lastPhaseTransitionTime == null)) { + sb.append("lastPhaseTransitionTime:"); + sb.append(lastPhaseTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } - + public A withLastPhaseTransitionTime(OffsetDateTime lastPhaseTransitionTime) { + this.lastPhaseTransitionTime = lastPhaseTransitionTime; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withPhase(String phase) { + this.phase = phase; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java index 17ece9ca5d..e27701b0a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PhotonPersistentDiskVolumeSourceBuilder extends V1PhotonPersistentDiskVolumeSourceFluent implements VisitableBuilder{ + + V1PhotonPersistentDiskVolumeSourceFluent fluent; + public V1PhotonPersistentDiskVolumeSourceBuilder() { this(new V1PhotonPersistentDiskVolumeSource()); } @@ -10,17 +14,16 @@ public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSou this(fluent, new V1PhotonPersistentDiskVolumeSource()); } - public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSourceFluent fluent,V1PhotonPersistentDiskVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1PhotonPersistentDiskVolumeSourceFluent fluent; + public V1PhotonPersistentDiskVolumeSourceBuilder(V1PhotonPersistentDiskVolumeSourceFluent fluent,V1PhotonPersistentDiskVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PhotonPersistentDiskVolumeSource build() { V1PhotonPersistentDiskVolumeSource buildable = new V1PhotonPersistentDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -28,5 +31,4 @@ public V1PhotonPersistentDiskVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java index a07e46450b..3cf208df58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PhotonPersistentDiskVolumeSourceFluent> extends BaseFluent{ +public class V1PhotonPersistentDiskVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private String pdID; + public V1PhotonPersistentDiskVolumeSourceFluent() { } public V1PhotonPersistentDiskVolumeSourceFluent(V1PhotonPersistentDiskVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private String pdID; - + protected void copyInstance(V1PhotonPersistentDiskVolumeSource instance) { - instance = (instance != null ? instance : new V1PhotonPersistentDiskVolumeSource()); + instance = instance != null ? instance : new V1PhotonPersistentDiskVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withPdID(instance.getPdID()); - } + this.withFsType(instance.getFsType()); + this.withPdID(instance.getPdID()); + } } - public String getFsType() { - return this.fsType; - } - - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PhotonPersistentDiskVolumeSourceFluent that = (V1PhotonPersistentDiskVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(pdID, that.pdID))) { + return false; + } + return true; } - public boolean hasFsType() { - return this.fsType != null; + public String getFsType() { + return this.fsType; } public String getPdID() { return this.pdID; } - public A withPdID(String pdID) { - this.pdID = pdID; - return (A) this; + public boolean hasFsType() { + return this.fsType != null; } public boolean hasPdID() { return this.pdID != 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; - V1PhotonPersistentDiskVolumeSourceFluent that = (V1PhotonPersistentDiskVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(pdID, that.pdID)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(fsType, pdID, super.hashCode()); + return Objects.hash(fsType, pdID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (pdID != null) { sb.append("pdID:"); sb.append(pdID); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(pdID == null)) { + sb.append("pdID:"); + sb.append(pdID); + } sb.append("}"); return sb.toString(); } - + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withPdID(String pdID) { + this.pdID = pdID; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java index 29d928a9df..d50406ba49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodAffinityBuilder extends V1PodAffinityFluent implements VisitableBuilder{ + + V1PodAffinityFluent fluent; + public V1PodAffinityBuilder() { this(new V1PodAffinity()); } @@ -10,17 +14,16 @@ public V1PodAffinityBuilder(V1PodAffinityFluent fluent) { this(fluent, new V1PodAffinity()); } - public V1PodAffinityBuilder(V1PodAffinityFluent fluent,V1PodAffinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodAffinityBuilder(V1PodAffinity instance) { this.fluent = this; this.copyInstance(instance); } - V1PodAffinityFluent fluent; + public V1PodAffinityBuilder(V1PodAffinityFluent fluent,V1PodAffinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodAffinity build() { V1PodAffinity buildable = new V1PodAffinity(); buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.buildPreferredDuringSchedulingIgnoredDuringExecution()); @@ -28,5 +31,4 @@ public V1PodAffinity build() { return buildable; } - } \ No newline at end of file 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..4ea8886355 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 @@ -1,103 +1,145 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodAffinityFluent> extends BaseFluent{ +public class V1PodAffinityFluent> extends BaseFluent{ + + private ArrayList preferredDuringSchedulingIgnoredDuringExecution; + private ArrayList requiredDuringSchedulingIgnoredDuringExecution; + public V1PodAffinityFluent() { } public V1PodAffinityFluent(V1PodAffinity instance) { this.copyInstance(instance); } - private ArrayList preferredDuringSchedulingIgnoredDuringExecution; - private ArrayList requiredDuringSchedulingIgnoredDuringExecution; - - protected void copyInstance(V1PodAffinity instance) { - instance = (instance != null ? instance : new V1PodAffinity()); - if (instance != null) { - this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } + + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(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);} - return (A)this; + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); } - public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); } - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); } - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); } - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); - while (each.hasNext()) { - V1WeightedPodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } - return (A)this; + return (A) this; } - public List buildPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { - return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); + 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(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } + return (A) this; } public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } + public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); + } + public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } + public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); + } + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { @@ -107,164 +149,321 @@ public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDu return null; } - public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } else { - this.preferredDuringSchedulingIgnoredDuringExecution = null; + public List buildPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; + } + + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { + return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); + } + + public List buildRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; + } + + public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(int index) { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); + } + + protected void copyInstance(V1PodAffinity instance) { + instance = instance != null ? instance : new V1PodAffinity(); + if (instance != null) { + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); } - return (A) this; } - public A withPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.clear(); - _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); + public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { + if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { + if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); } - return (A) this; + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildRequiredDuringSchedulingIgnoredDuringExecution(0)); } - public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null && !this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); + public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { + int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { + int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + int index = -1; + for (int i = 0;i < preferredDuringSchedulingIgnoredDuringExecution.size();i++) { + if (predicate.test(preferredDuringSchedulingIgnoredDuringExecution.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + int index = -1; + for (int i = 0;i < requiredDuringSchedulingIgnoredDuringExecution.size();i++) { + if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { - if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { - if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { + if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { - int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodAffinityFluent that = (V1PodAffinityFluent) o; + if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + if (!(Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + return true; } - public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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);} - return (A)this; + public boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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);} - return (A)this; + public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null && !(this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty()); } - public A addToRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null && !(this.requiredDuringSchedulingIgnoredDuringExecution.isEmpty()); } - public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); } - public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + if (preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + while (each.hasNext()) { + V1WeightedPodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (requiredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); + if (requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - V1PodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; + public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); } - public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(int index) { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); + public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); } - public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); + 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").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; } - public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); + 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").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; } - public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(preferredDuringSchedulingIgnoredDuringExecution == null) && !(preferredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); + sb.append(preferredDuringSchedulingIgnoredDuringExecution); + sb.append(","); + } + if (!(requiredDuringSchedulingIgnoredDuringExecution == null) && !(requiredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); + sb.append(requiredDuringSchedulingIgnoredDuringExecution); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } + } else { + this.preferredDuringSchedulingIgnoredDuringExecution = null; + } + return (A) this; + } + + public A withPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution.clear(); + _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } - return false; + } + return (A) this; } public A withRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { @@ -282,7 +481,7 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution(List extends V1WeightedPodAffinityTermFluent> implements Nested{ - public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null && !this.requiredDuringSchedulingIgnoredDuringExecution.isEmpty(); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { - if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { - if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { - int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1WeightedPodAffinityTermFluent> implements Nested{ PreferredDuringSchedulingIgnoredDuringExecutionNested(int index,V1WeightedPodAffinityTerm item) { this.index = index; this.builder = new V1WeightedPodAffinityTermBuilder(this, item); } - V1WeightedPodAffinityTermBuilder builder; - int index; - + public N and() { - return (N) V1PodAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1PodAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endPreferredDuringSchedulingIgnoredDuringExecution() { return and(); } - } public class RequiredDuringSchedulingIgnoredDuringExecutionNested extends V1PodAffinityTermFluent> implements Nested{ + + V1PodAffinityTermBuilder builder; + int index; + RequiredDuringSchedulingIgnoredDuringExecutionNested(int index,V1PodAffinityTerm item) { this.index = index; this.builder = new V1PodAffinityTermBuilder(this, item); } - V1PodAffinityTermBuilder builder; - int index; - + public N and() { - return (N) V1PodAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1PodAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endRequiredDuringSchedulingIgnoredDuringExecution() { return and(); } - } - } \ No newline at end of file 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 84699c1afe..fa075184c4 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodAffinityTermBuilder extends V1PodAffinityTermFluent implements VisitableBuilder{ + + V1PodAffinityTermFluent fluent; + public V1PodAffinityTermBuilder() { this(new V1PodAffinityTerm()); } @@ -10,17 +14,16 @@ public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent) { this(fluent, new V1PodAffinityTerm()); } - public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent,V1PodAffinityTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodAffinityTermBuilder(V1PodAffinityTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1PodAffinityTermFluent fluent; + public V1PodAffinityTermBuilder(V1PodAffinityTermFluent fluent,V1PodAffinityTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodAffinityTerm build() { V1PodAffinityTerm buildable = new V1PodAffinityTerm(); buildable.setLabelSelector(fluent.buildLabelSelector()); @@ -32,5 +35,4 @@ public V1PodAffinityTerm build() { return buildable; } - } \ No newline at end of file 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 bfb6d3abcc..22957c07cd 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 @@ -1,132 +1,230 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodAffinityTermFluent> extends BaseFluent{ - public V1PodAffinityTermFluent() { - } - - public V1PodAffinityTermFluent(V1PodAffinityTerm instance) { - this.copyInstance(instance); - } +public class V1PodAffinityTermFluent> extends BaseFluent{ + private V1LabelSelectorBuilder labelSelector; private List matchLabelKeys; private List mismatchLabelKeys; private V1LabelSelectorBuilder namespaceSelector; private List namespaces; private String topologyKey; + + public V1PodAffinityTermFluent() { + } - 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()); - } + public V1PodAffinityTermFluent(V1PodAffinityTerm instance) { + this.copyInstance(instance); + } + + 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 V1LabelSelector buildLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; + 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 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); + 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 boolean hasLabelSelector() { - return this.labelSelector != null; + public A addToMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.matchLabelKeys.add(item); + } + return (A) this; } - public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); + public A addToMatchLabelKeys(int index,String item) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + this.matchLabelKeys.add(index, item); + return (A) this; } - public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { - return new LabelSelectorNested(item); + public A addToMismatchLabelKeys(String... items) { + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.mismatchLabelKeys.add(item); + } + return (A) this; } - public LabelSelectorNested editLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(null)); + public A addToMismatchLabelKeys(int index,String item) { + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } + this.mismatchLabelKeys.add(index, item); + return (A) this; } - public LabelSelectorNested editOrNewLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); + public A addToNamespaces(String... items) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + for (String item : items) { + this.namespaces.add(item); + } + return (A) this; } - public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(item)); + 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 addToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} - this.matchLabelKeys.add(index, item); - return (A)this; + public V1LabelSelector buildLabelSelector() { + return this.labelSelector != null ? this.labelSelector.build() : null; } - public A setToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} - this.matchLabelKeys.set(index, item); return (A)this; + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; } - 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; + 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()); + } } - 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 LabelSelectorNested editLabelSelector() { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } - 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 NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public A removeAllFromMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) return (A)this; - for (String item : items) { this.matchLabelKeys.remove(item);} return (A)this; + public LabelSelectorNested editOrNewLabelSelector() { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public List getMatchLabelKeys() { - return this.matchLabelKeys; + public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } - public String getMatchLabelKey(int index) { - return this.matchLabelKeys.get(index); + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodAffinityTermFluent that = (V1PodAffinityTermFluent) o; + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(matchLabelKeys, that.matchLabelKeys))) { + return false; + } + if (!(Objects.equals(mismatchLabelKeys, that.mismatchLabelKeys))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(namespaces, that.namespaces))) { + return false; + } + if (!(Objects.equals(topologyKey, that.topologyKey))) { + return false; + } + return true; } public String getFirstMatchLabelKey() { return this.matchLabelKeys.get(0); } + public String getFirstMismatchLabelKey() { + return this.mismatchLabelKeys.get(0); + } + + public String getFirstNamespace() { + return this.namespaces.get(0); + } + public String getLastMatchLabelKey() { return this.matchLabelKeys.get(matchLabelKeys.size() - 1); } + public String getLastMismatchLabelKey() { + return this.mismatchLabelKeys.get(mismatchLabelKeys.size() - 1); + } + + public String getLastNamespace() { + return this.namespaces.get(namespaces.size() - 1); + } + + public String getMatchLabelKey(int index) { + return this.matchLabelKeys.get(index); + } + + public List getMatchLabelKeys() { + return this.matchLabelKeys; + } + public String getMatchingMatchLabelKey(Predicate predicate) { for (String item : matchLabelKeys) { if (predicate.test(item)) { @@ -136,98 +234,59 @@ public String getMatchingMatchLabelKey(Predicate predicate) { return null; } - public boolean hasMatchingMatchLabelKey(Predicate predicate) { - for (String item : matchLabelKeys) { + public String getMatchingMismatchLabelKey(Predicate predicate) { + for (String item : mismatchLabelKeys) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withMatchLabelKeys(List matchLabelKeys) { - if (matchLabelKeys != null) { - this.matchLabelKeys = new ArrayList(); - for (String item : matchLabelKeys) { - this.addToMatchLabelKeys(item); + public String getMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { + if (predicate.test(item)) { + return 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; + return null; } - 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 String getMismatchLabelKey(int index) { + return this.mismatchLabelKeys.get(index); } - 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 List getMismatchLabelKeys() { + return this.mismatchLabelKeys; } - public A removeAllFromMismatchLabelKeys(Collection items) { - if (this.mismatchLabelKeys == null) return (A)this; - for (String item : items) { this.mismatchLabelKeys.remove(item);} return (A)this; + public String getNamespace(int index) { + return this.namespaces.get(index); } - public List getMismatchLabelKeys() { - return this.mismatchLabelKeys; + public List getNamespaces() { + return this.namespaces; } - public String getMismatchLabelKey(int index) { - return this.mismatchLabelKeys.get(index); + public String getTopologyKey() { + return this.topologyKey; } - public String getFirstMismatchLabelKey() { - return this.mismatchLabelKeys.get(0); + public boolean hasLabelSelector() { + return this.labelSelector != null; } - public String getLastMismatchLabelKey() { - return this.mismatchLabelKeys.get(mismatchLabelKeys.size() - 1); + public boolean hasMatchLabelKeys() { + return this.matchLabelKeys != null && !(this.matchLabelKeys.isEmpty()); } - public String getMatchingMismatchLabelKey(Predicate predicate) { - for (String item : mismatchLabelKeys) { + public boolean hasMatchingMatchLabelKey(Predicate predicate) { + for (String item : matchLabelKeys) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingMismatchLabelKey(Predicate predicate) { @@ -239,138 +298,227 @@ public boolean hasMatchingMismatchLabelKey(Predicate predicate) { return false; } - public A withMismatchLabelKeys(List mismatchLabelKeys) { - if (mismatchLabelKeys != null) { - this.mismatchLabelKeys = new ArrayList(); - for (String item : mismatchLabelKeys) { - this.addToMismatchLabelKeys(item); + public boolean hasMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { + if (predicate.test(item)) { + return true; } - } 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; + return false; } public boolean hasMismatchLabelKeys() { - return this.mismatchLabelKeys != null && !this.mismatchLabelKeys.isEmpty(); - } - - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; - } - - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { - this._visitables.remove("namespaceSelector"); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - this._visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - this._visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; + return this.mismatchLabelKeys != null && !(this.mismatchLabelKeys.isEmpty()); } public boolean hasNamespaceSelector() { return this.namespaceSelector != null; } - public NamespaceSelectorNested withNewNamespaceSelector() { - return new NamespaceSelectorNested(null); + public boolean hasNamespaces() { + return this.namespaces != null && !(this.namespaces.isEmpty()); } - public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { - return new NamespaceSelectorNested(item); + public boolean hasTopologyKey() { + return this.topologyKey != null; } - public NamespaceSelectorNested editNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(null)); + public int hashCode() { + return Objects.hash(labelSelector, matchLabelKeys, mismatchLabelKeys, namespaceSelector, namespaces, topologyKey); } - public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + public A removeAllFromMatchLabelKeys(Collection items) { + if (this.matchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.matchLabelKeys.remove(item); + } + return (A) this; } - public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + public A removeAllFromMismatchLabelKeys(Collection items) { + if (this.mismatchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.mismatchLabelKeys.remove(item); + } + return (A) this; } - 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 removeAllFromNamespaces(Collection items) { + if (this.namespaces == null) { + return (A) this; + } + for (String item : items) { + this.namespaces.remove(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 removeFromMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.matchLabelKeys.remove(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 removeFromMismatchLabelKeys(String... items) { + if (this.mismatchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.mismatchLabelKeys.remove(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(String... items) { + if (this.namespaces == null) { + return (A) this; + } + for (String item : items) { + this.namespaces.remove(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 setToMatchLabelKeys(int index,String item) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + this.matchLabelKeys.set(index, 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 A setToMismatchLabelKeys(int index,String item) { + if (this.mismatchLabelKeys == null) { + this.mismatchLabelKeys = new ArrayList(); + } + this.mismatchLabelKeys.set(index, item); + return (A) this; } - public List getNamespaces() { - return this.namespaces; + public A setToNamespaces(int index,String item) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + this.namespaces.set(index, item); + return (A) this; } - public String getNamespace(int index) { - return this.namespaces.get(index); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(labelSelector == null)) { + sb.append("labelSelector:"); + sb.append(labelSelector); + sb.append(","); + } + if (!(matchLabelKeys == null) && !(matchLabelKeys.isEmpty())) { + sb.append("matchLabelKeys:"); + sb.append(matchLabelKeys); + sb.append(","); + } + if (!(mismatchLabelKeys == null) && !(mismatchLabelKeys.isEmpty())) { + sb.append("mismatchLabelKeys:"); + sb.append(mismatchLabelKeys); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(namespaces == null) && !(namespaces.isEmpty())) { + sb.append("namespaces:"); + sb.append(namespaces); + sb.append(","); + } + if (!(topologyKey == null)) { + sb.append("topologyKey:"); + sb.append(topologyKey); + } + sb.append("}"); + return sb.toString(); } - public String getFirstNamespace() { - return this.namespaces.get(0); + 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 String getLastNamespace() { - return this.namespaces.get(namespaces.size() - 1); + 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 String getMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return item; - } + public A withMatchLabelKeys(String... matchLabelKeys) { + if (this.matchLabelKeys != null) { + this.matchLabelKeys.clear(); + _visitables.remove("matchLabelKeys"); + } + if (matchLabelKeys != null) { + for (String item : matchLabelKeys) { + this.addToMatchLabelKeys(item); } - return null; + } + return (A) this; } - public boolean hasMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { - if (predicate.test(item)) { - return true; + 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(String... mismatchLabelKeys) { + if (this.mismatchLabelKeys != null) { + this.mismatchLabelKeys.clear(); + _visitables.remove("mismatchLabelKeys"); + } + if (mismatchLabelKeys != null) { + for (String item : mismatchLabelKeys) { + this.addToMismatchLabelKeys(item); } - return false; + } + return (A) this; + } + + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); + } + return (A) this; } public A withNamespaces(List namespaces) { @@ -385,7 +533,7 @@ public A withNamespaces(List namespaces) { return (A) this; } - public A withNamespaces(java.lang.String... namespaces) { + public A withNamespaces(String... namespaces) { if (this.namespaces != null) { this.namespaces.clear(); _visitables.remove("namespaces"); @@ -398,59 +546,34 @@ public A withNamespaces(java.lang.String... namespaces) { return (A) this; } - public boolean hasNamespaces() { - return this.namespaces != null && !this.namespaces.isEmpty(); + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); } - public String getTopologyKey() { - return this.topologyKey; + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { + return new LabelSelectorNested(item); } - public A withTopologyKey(String topologyKey) { - this.topologyKey = topologyKey; - return (A) this; + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); } - public boolean hasTopologyKey() { - return this.topologyKey != null; + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(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; - 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; - return true; + public A withTopologyKey(String topologyKey) { + this.topologyKey = topologyKey; + return (A) this; } + public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(labelSelector, matchLabelKeys, mismatchLabelKeys, namespaceSelector, namespaces, topologyKey, super.hashCode()); - } + V1LabelSelectorBuilder builder; - 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); } - sb.append("}"); - return sb.toString(); - } - public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ LabelSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1PodAffinityTermFluent.this.withLabelSelector(builder.build()); } @@ -459,14 +582,15 @@ public N endLabelSelector() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1PodAffinityTermFluent.this.withNamespaceSelector(builder.build()); } @@ -475,7 +599,5 @@ public N endNamespaceSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java index 10032e45d1..2356cdbd50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodAntiAffinityBuilder extends V1PodAntiAffinityFluent implements VisitableBuilder{ + + V1PodAntiAffinityFluent fluent; + public V1PodAntiAffinityBuilder() { this(new V1PodAntiAffinity()); } @@ -10,17 +14,16 @@ public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent) { this(fluent, new V1PodAntiAffinity()); } - public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent,V1PodAntiAffinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodAntiAffinityBuilder(V1PodAntiAffinity instance) { this.fluent = this; this.copyInstance(instance); } - V1PodAntiAffinityFluent fluent; + public V1PodAntiAffinityBuilder(V1PodAntiAffinityFluent fluent,V1PodAntiAffinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodAntiAffinity build() { V1PodAntiAffinity buildable = new V1PodAntiAffinity(); buildable.setPreferredDuringSchedulingIgnoredDuringExecution(fluent.buildPreferredDuringSchedulingIgnoredDuringExecution()); @@ -28,5 +31,4 @@ public V1PodAntiAffinity build() { return buildable; } - } \ No newline at end of file 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..0453537d29 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 @@ -1,103 +1,145 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodAntiAffinityFluent> extends BaseFluent{ +public class V1PodAntiAffinityFluent> extends BaseFluent{ + + private ArrayList preferredDuringSchedulingIgnoredDuringExecution; + private ArrayList requiredDuringSchedulingIgnoredDuringExecution; + public V1PodAntiAffinityFluent() { } public V1PodAntiAffinityFluent(V1PodAntiAffinity instance) { this.copyInstance(instance); } - private ArrayList preferredDuringSchedulingIgnoredDuringExecution; - private ArrayList requiredDuringSchedulingIgnoredDuringExecution; - - protected void copyInstance(V1PodAntiAffinity instance) { - instance = (instance != null ? instance : new V1PodAntiAffinity()); - if (instance != null) { - this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); - this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); - } + + public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(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);} - return (A)this; + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); } - public A addToPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); } - public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder);this.preferredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); } - public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); } - public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.preferredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1WeightedPodAffinityTerm item : items) {V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item);_visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public A addToPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (preferredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); - while (each.hasNext()) { - V1WeightedPodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } - return (A)this; + return (A) this; } - public List buildPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; + public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); + } + return (A) this; } - public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { - return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); + 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(builder); + requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + } + return (A) this; } public V1WeightedPodAffinityTerm buildFirstPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(0).build(); } + public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); + } + public V1WeightedPodAffinityTerm buildLastPreferredDuringSchedulingIgnoredDuringExecution() { return this.preferredDuringSchedulingIgnoredDuringExecution.get(preferredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); } + public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); + } + public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { @@ -107,164 +149,321 @@ public V1WeightedPodAffinityTerm buildMatchingPreferredDuringSchedulingIgnoredDu return null; } - public boolean hasMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); - } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } - } else { - this.preferredDuringSchedulingIgnoredDuringExecution = null; + public List buildPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null ? build(preferredDuringSchedulingIgnoredDuringExecution) : null; + } + + public V1WeightedPodAffinityTerm buildPreferredDuringSchedulingIgnoredDuringExecution(int index) { + return this.preferredDuringSchedulingIgnoredDuringExecution.get(index).build(); + } + + public List buildRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; + } + + public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(int index) { + return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); + } + + protected void copyInstance(V1PodAntiAffinity instance) { + instance = instance != null ? instance : new V1PodAntiAffinity(); + if (instance != null) { + this.withPreferredDuringSchedulingIgnoredDuringExecution(instance.getPreferredDuringSchedulingIgnoredDuringExecution()); + this.withRequiredDuringSchedulingIgnoredDuringExecution(instance.getRequiredDuringSchedulingIgnoredDuringExecution()); } - return (A) this; } - public A withPreferredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { - if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { - this.preferredDuringSchedulingIgnoredDuringExecution.clear(); - _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); + public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { + if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); } - if (preferredDuringSchedulingIgnoredDuringExecution != null) { - for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { - this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); - } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + } + + public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { + if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); } - return (A) this; + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, this.buildRequiredDuringSchedulingIgnoredDuringExecution(0)); } - public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { - return this.preferredDuringSchedulingIgnoredDuringExecution != null && !this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty(); + public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { + int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecution() { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, null); + public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { + int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested addNewPreferredDuringSchedulingIgnoredDuringExecutionLike(V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(-1, item); + public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + int index = -1; + for (int i = 0;i < preferredDuringSchedulingIgnoredDuringExecution.size();i++) { + if (predicate.test(preferredDuringSchedulingIgnoredDuringExecution.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { - return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); + public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + int index = -1; + for (int i = 0;i < requiredDuringSchedulingIgnoredDuringExecution.size();i++) { + if (predicate.test(requiredDuringSchedulingIgnoredDuringExecution.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } public PreferredDuringSchedulingIgnoredDuringExecutionNested editPreferredDuringSchedulingIgnoredDuringExecution(int index) { - if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit preferredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + if (preferredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "preferredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildPreferredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested editFirstPreferredDuringSchedulingIgnoredDuringExecution() { - if (preferredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(0, buildPreferredDuringSchedulingIgnoredDuringExecution(0)); + public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { + if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requiredDuringSchedulingIgnoredDuringExecution")); + } + return this.setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, this.buildRequiredDuringSchedulingIgnoredDuringExecution(index)); } - public PreferredDuringSchedulingIgnoredDuringExecutionNested editLastPreferredDuringSchedulingIgnoredDuringExecution() { - int index = preferredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last preferredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(index, buildPreferredDuringSchedulingIgnoredDuringExecution(index)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodAntiAffinityFluent that = (V1PodAntiAffinityFluent) o; + if (!(Objects.equals(preferredDuringSchedulingIgnoredDuringExecution, that.preferredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + if (!(Objects.equals(requiredDuringSchedulingIgnoredDuringExecution, that.requiredDuringSchedulingIgnoredDuringExecution))) { + return false; + } + return true; } - public PreferredDuringSchedulingIgnoredDuringExecutionNested editMatchingPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1WeightedPodAffinityTermBuilder item : preferredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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);} - return (A)this; + public boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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);} - return (A)this; + public boolean hasPreferredDuringSchedulingIgnoredDuringExecution() { + return this.preferredDuringSchedulingIgnoredDuringExecution != null && !(this.preferredDuringSchedulingIgnoredDuringExecution.isEmpty()); } - public A addToRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { + return this.requiredDuringSchedulingIgnoredDuringExecution != null && !(this.requiredDuringSchedulingIgnoredDuringExecution.isEmpty()); } - public A addAllToRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) {this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList();} - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder);this.requiredDuringSchedulingIgnoredDuringExecution.add(builder);} return (A)this; + public int hashCode() { + return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); } - public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(io.kubernetes.client.openapi.models.V1PodAffinityTerm... items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + public A removeAllFromPreferredDuringSchedulingIgnoredDuringExecution(Collection items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; } public A removeAllFromRequiredDuringSchedulingIgnoredDuringExecution(Collection items) { - if (this.requiredDuringSchedulingIgnoredDuringExecution == null) return (A)this; - for (V1PodAffinityTerm item : items) {V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item);_visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder);} return (A)this; + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeFromPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... items) { + if (this.preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1WeightedPodAffinityTerm item : items) { + V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); + _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeFromRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm... items) { + if (this.requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + for (V1PodAffinityTerm item : items) { + V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); + _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").remove(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { + if (preferredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + while (each.hasNext()) { + V1WeightedPodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - if (requiredDuringSchedulingIgnoredDuringExecution == null) return (A) this; - final Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); - final List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); + if (requiredDuringSchedulingIgnoredDuringExecution == null) { + return (A) this; + } + Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); + List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { - V1PodAffinityTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodAffinityTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null ? build(requiredDuringSchedulingIgnoredDuringExecution) : null; + public PreferredDuringSchedulingIgnoredDuringExecutionNested setNewPreferredDuringSchedulingIgnoredDuringExecutionLike(int index,V1WeightedPodAffinityTerm item) { + return new PreferredDuringSchedulingIgnoredDuringExecutionNested(index, item); } - public V1PodAffinityTerm buildRequiredDuringSchedulingIgnoredDuringExecution(int index) { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(index).build(); + public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { + return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); } - public V1PodAffinityTerm buildFirstRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(0).build(); + 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").add(builder); + preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; } - public V1PodAffinityTerm buildLastRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution.get(requiredDuringSchedulingIgnoredDuringExecution.size() - 1).build(); + 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").add(builder); + requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + } + return (A) this; } - public V1PodAffinityTerm buildMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(preferredDuringSchedulingIgnoredDuringExecution == null) && !(preferredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("preferredDuringSchedulingIgnoredDuringExecution:"); + sb.append(preferredDuringSchedulingIgnoredDuringExecution); + sb.append(","); + } + if (!(requiredDuringSchedulingIgnoredDuringExecution == null) && !(requiredDuringSchedulingIgnoredDuringExecution.isEmpty())) { + sb.append("requiredDuringSchedulingIgnoredDuringExecution:"); + sb.append(requiredDuringSchedulingIgnoredDuringExecution); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - for (V1PodAffinityTermBuilder item : requiredDuringSchedulingIgnoredDuringExecution) { - if (predicate.test(item)) { - return true; + public A withPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").clear(); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } + } else { + this.preferredDuringSchedulingIgnoredDuringExecution = null; + } + return (A) this; + } + + public A withPreferredDuringSchedulingIgnoredDuringExecution(V1WeightedPodAffinityTerm... preferredDuringSchedulingIgnoredDuringExecution) { + if (this.preferredDuringSchedulingIgnoredDuringExecution != null) { + this.preferredDuringSchedulingIgnoredDuringExecution.clear(); + _visitables.remove("preferredDuringSchedulingIgnoredDuringExecution"); + } + if (preferredDuringSchedulingIgnoredDuringExecution != null) { + for (V1WeightedPodAffinityTerm item : preferredDuringSchedulingIgnoredDuringExecution) { + this.addToPreferredDuringSchedulingIgnoredDuringExecution(item); } - return false; + } + return (A) this; } public A withRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { @@ -282,7 +481,7 @@ public A withRequiredDuringSchedulingIgnoredDuringExecution(List extends V1WeightedPodAffinityTermFluent> implements Nested{ - public boolean hasRequiredDuringSchedulingIgnoredDuringExecution() { - return this.requiredDuringSchedulingIgnoredDuringExecution != null && !this.requiredDuringSchedulingIgnoredDuringExecution.isEmpty(); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecution() { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, null); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested addNewRequiredDuringSchedulingIgnoredDuringExecutionLike(V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(-1, item); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(int index,V1PodAffinityTerm item) { - return new RequiredDuringSchedulingIgnoredDuringExecutionNested(index, item); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editRequiredDuringSchedulingIgnoredDuringExecution(int index) { - if (requiredDuringSchedulingIgnoredDuringExecution.size() <= index) throw new RuntimeException("Can't edit requiredDuringSchedulingIgnoredDuringExecution. Index exceeds size."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editFirstRequiredDuringSchedulingIgnoredDuringExecution() { - if (requiredDuringSchedulingIgnoredDuringExecution.size() == 0) throw new RuntimeException("Can't edit first requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(0, buildRequiredDuringSchedulingIgnoredDuringExecution(0)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editLastRequiredDuringSchedulingIgnoredDuringExecution() { - int index = requiredDuringSchedulingIgnoredDuringExecution.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last requiredDuringSchedulingIgnoredDuringExecution. The list is empty."); - return setNewRequiredDuringSchedulingIgnoredDuringExecutionLike(index, buildRequiredDuringSchedulingIgnoredDuringExecution(index)); - } - - public RequiredDuringSchedulingIgnoredDuringExecutionNested editMatchingRequiredDuringSchedulingIgnoredDuringExecution(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1WeightedPodAffinityTermFluent> implements Nested{ PreferredDuringSchedulingIgnoredDuringExecutionNested(int index,V1WeightedPodAffinityTerm item) { this.index = index; this.builder = new V1WeightedPodAffinityTermBuilder(this, item); } - V1WeightedPodAffinityTermBuilder builder; - int index; - + public N and() { - return (N) V1PodAntiAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1PodAntiAffinityFluent.this.setToPreferredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endPreferredDuringSchedulingIgnoredDuringExecution() { return and(); } - } public class RequiredDuringSchedulingIgnoredDuringExecutionNested extends V1PodAffinityTermFluent> implements Nested{ + + V1PodAffinityTermBuilder builder; + int index; + RequiredDuringSchedulingIgnoredDuringExecutionNested(int index,V1PodAffinityTerm item) { this.index = index; this.builder = new V1PodAffinityTermBuilder(this, item); } - V1PodAffinityTermBuilder builder; - int index; - + public N and() { - return (N) V1PodAntiAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index,builder.build()); + return (N) V1PodAntiAffinityFluent.this.setToRequiredDuringSchedulingIgnoredDuringExecution(index, builder.build()); } public N endRequiredDuringSchedulingIgnoredDuringExecution() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java index 1bd54ed696..7029bc203f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodBuilder extends V1PodFluent implements VisitableBuilder{ + + V1PodFluent fluent; + public V1PodBuilder() { this(new V1Pod()); } @@ -10,17 +14,16 @@ public V1PodBuilder(V1PodFluent fluent) { this(fluent, new V1Pod()); } - public V1PodBuilder(V1PodFluent fluent,V1Pod instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodBuilder(V1Pod instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFluent fluent; + public V1PodBuilder(V1PodFluent fluent,V1Pod instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Pod build() { V1Pod buildable = new V1Pod(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1Pod build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java new file mode 100644 index 0000000000..e82d1fa31a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1PodCertificateProjectionBuilder extends V1PodCertificateProjectionFluent implements VisitableBuilder{ + + V1PodCertificateProjectionFluent fluent; + + public V1PodCertificateProjectionBuilder() { + this(new V1PodCertificateProjection()); + } + + public V1PodCertificateProjectionBuilder(V1PodCertificateProjectionFluent fluent) { + this(fluent, new V1PodCertificateProjection()); + } + + public V1PodCertificateProjectionBuilder(V1PodCertificateProjection instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1PodCertificateProjectionBuilder(V1PodCertificateProjectionFluent fluent,V1PodCertificateProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PodCertificateProjection build() { + V1PodCertificateProjection buildable = new V1PodCertificateProjection(); + buildable.setCertificateChainPath(fluent.getCertificateChainPath()); + buildable.setCredentialBundlePath(fluent.getCredentialBundlePath()); + buildable.setKeyPath(fluent.getKeyPath()); + buildable.setKeyType(fluent.getKeyType()); + buildable.setMaxExpirationSeconds(fluent.getMaxExpirationSeconds()); + buildable.setSignerName(fluent.getSignerName()); + buildable.setUserAnnotations(fluent.getUserAnnotations()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java new file mode 100644 index 0000000000..cfa5a74c95 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java @@ -0,0 +1,266 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PodCertificateProjectionFluent> extends BaseFluent{ + + private String certificateChainPath; + private String credentialBundlePath; + private String keyPath; + private String keyType; + private Integer maxExpirationSeconds; + private String signerName; + private Map userAnnotations; + + public V1PodCertificateProjectionFluent() { + } + + public V1PodCertificateProjectionFluent(V1PodCertificateProjection instance) { + this.copyInstance(instance); + } + + public A addToUserAnnotations(Map map) { + if (this.userAnnotations == null && map != null) { + this.userAnnotations = new LinkedHashMap(); + } + if (map != null) { + this.userAnnotations.putAll(map); + } + return (A) this; + } + + public A addToUserAnnotations(String key,String value) { + if (this.userAnnotations == null && key != null && value != null) { + this.userAnnotations = new LinkedHashMap(); + } + if (key != null && value != null) { + this.userAnnotations.put(key, value); + } + return (A) this; + } + + protected void copyInstance(V1PodCertificateProjection instance) { + instance = instance != null ? instance : new V1PodCertificateProjection(); + if (instance != null) { + this.withCertificateChainPath(instance.getCertificateChainPath()); + this.withCredentialBundlePath(instance.getCredentialBundlePath()); + this.withKeyPath(instance.getKeyPath()); + this.withKeyType(instance.getKeyType()); + this.withMaxExpirationSeconds(instance.getMaxExpirationSeconds()); + this.withSignerName(instance.getSignerName()); + this.withUserAnnotations(instance.getUserAnnotations()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodCertificateProjectionFluent that = (V1PodCertificateProjectionFluent) o; + if (!(Objects.equals(certificateChainPath, that.certificateChainPath))) { + return false; + } + if (!(Objects.equals(credentialBundlePath, that.credentialBundlePath))) { + return false; + } + if (!(Objects.equals(keyPath, that.keyPath))) { + return false; + } + if (!(Objects.equals(keyType, that.keyType))) { + return false; + } + if (!(Objects.equals(maxExpirationSeconds, that.maxExpirationSeconds))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(userAnnotations, that.userAnnotations))) { + return false; + } + return true; + } + + public String getCertificateChainPath() { + return this.certificateChainPath; + } + + public String getCredentialBundlePath() { + return this.credentialBundlePath; + } + + public String getKeyPath() { + return this.keyPath; + } + + public String getKeyType() { + return this.keyType; + } + + public Integer getMaxExpirationSeconds() { + return this.maxExpirationSeconds; + } + + public String getSignerName() { + return this.signerName; + } + + public Map getUserAnnotations() { + return this.userAnnotations; + } + + public boolean hasCertificateChainPath() { + return this.certificateChainPath != null; + } + + public boolean hasCredentialBundlePath() { + return this.credentialBundlePath != null; + } + + public boolean hasKeyPath() { + return this.keyPath != null; + } + + public boolean hasKeyType() { + return this.keyType != null; + } + + public boolean hasMaxExpirationSeconds() { + return this.maxExpirationSeconds != null; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public boolean hasUserAnnotations() { + return this.userAnnotations != null; + } + + public int hashCode() { + return Objects.hash(certificateChainPath, credentialBundlePath, keyPath, keyType, maxExpirationSeconds, signerName, userAnnotations); + } + + public A removeFromUserAnnotations(String key) { + if (this.userAnnotations == null) { + return (A) this; + } + if (key != null && this.userAnnotations != null) { + this.userAnnotations.remove(key); + } + return (A) this; + } + + public A removeFromUserAnnotations(Map map) { + if (this.userAnnotations == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.userAnnotations != null) { + this.userAnnotations.remove(key); + } + } + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(certificateChainPath == null)) { + sb.append("certificateChainPath:"); + sb.append(certificateChainPath); + sb.append(","); + } + if (!(credentialBundlePath == null)) { + sb.append("credentialBundlePath:"); + sb.append(credentialBundlePath); + sb.append(","); + } + if (!(keyPath == null)) { + sb.append("keyPath:"); + sb.append(keyPath); + sb.append(","); + } + if (!(keyType == null)) { + sb.append("keyType:"); + sb.append(keyType); + sb.append(","); + } + if (!(maxExpirationSeconds == null)) { + sb.append("maxExpirationSeconds:"); + sb.append(maxExpirationSeconds); + sb.append(","); + } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + sb.append(","); + } + if (!(userAnnotations == null) && !(userAnnotations.isEmpty())) { + sb.append("userAnnotations:"); + sb.append(userAnnotations); + } + sb.append("}"); + return sb.toString(); + } + + public A withCertificateChainPath(String certificateChainPath) { + this.certificateChainPath = certificateChainPath; + return (A) this; + } + + public A withCredentialBundlePath(String credentialBundlePath) { + this.credentialBundlePath = credentialBundlePath; + return (A) this; + } + + public A withKeyPath(String keyPath) { + this.keyPath = keyPath; + return (A) this; + } + + public A withKeyType(String keyType) { + this.keyType = keyType; + return (A) this; + } + + public A withMaxExpirationSeconds(Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + return (A) this; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public A withUserAnnotations(Map userAnnotations) { + if (userAnnotations == null) { + this.userAnnotations = null; + } else { + this.userAnnotations = new LinkedHashMap(userAnnotations); + } + return (A) this; + } + +} \ No newline at end of file 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..d50996c110 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodConditionBuilder extends V1PodConditionFluent implements VisitableBuilder{ + + V1PodConditionFluent fluent; + public V1PodConditionBuilder() { this(new V1PodCondition()); } @@ -10,27 +14,26 @@ public V1PodConditionBuilder(V1PodConditionFluent fluent) { this(fluent, new V1PodCondition()); } - public V1PodConditionBuilder(V1PodConditionFluent fluent,V1PodCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodConditionBuilder(V1PodCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1PodConditionFluent fluent; + public V1PodConditionBuilder(V1PodConditionFluent fluent,V1PodCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodCondition build() { V1PodCondition buildable = new V1PodCondition(); 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()); return buildable; } - } \ No newline at end of file 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..5a31d1af90 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 @@ -1,149 +1,217 @@ package io.kubernetes.client.openapi.models; -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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodConditionFluent> extends BaseFluent{ - public V1PodConditionFluent() { - } - - public V1PodConditionFluent(V1PodCondition instance) { - this.copyInstance(instance); - } +public class V1PodConditionFluent> extends BaseFluent{ + private OffsetDateTime lastProbeTime; private OffsetDateTime lastTransitionTime; private String message; + private Long observedGeneration; private String reason; private String status; private String type; + + public V1PodConditionFluent() { + } + public V1PodConditionFluent(V1PodCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1PodCondition instance) { - instance = (instance != null ? instance : new V1PodCondition()); + instance = instance != null ? instance : new V1PodCondition(); if (instance != null) { - this.withLastProbeTime(instance.getLastProbeTime()); - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + 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()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodConditionFluent that = (V1PodConditionFluent) o; + if (!(Objects.equals(lastProbeTime, that.lastProbeTime))) { + return false; + } + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } public OffsetDateTime getLastProbeTime() { return this.lastProbeTime; } - public A withLastProbeTime(OffsetDateTime lastProbeTime) { - this.lastProbeTime = lastProbeTime; - return (A) this; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } - public boolean hasLastProbeTime() { - return this.lastProbeTime != null; + public String getMessage() { + return this.message; } - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; + public Long getObservedGeneration() { + return this.observedGeneration; } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public String getStatus() { + return this.status; } - public String getMessage() { - return this.message; + public String getType() { + return this.type; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public boolean hasLastProbeTime() { + return this.lastProbeTime != null; } - public boolean hasMessage() { - return this.message != null; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public String getReason() { - return this.reason; + public boolean hasMessage() { + return this.message != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastProbeTime, lastTransitionTime, message, observedGeneration, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastProbeTime == null)) { + sb.append("lastProbeTime:"); + sb.append(lastProbeTime); + sb.append(","); + } + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastProbeTime(OffsetDateTime lastProbeTime) { + this.lastProbeTime = lastProbeTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1PodConditionFluent that = (V1PodConditionFluent) 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(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 A withMessage(String message) { + this.message = message; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - 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 (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(); + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java index 14bfa78965..99a10a21a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDNSConfigBuilder extends V1PodDNSConfigFluent implements VisitableBuilder{ + + V1PodDNSConfigFluent fluent; + public V1PodDNSConfigBuilder() { this(new V1PodDNSConfig()); } @@ -10,17 +14,16 @@ public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent) { this(fluent, new V1PodDNSConfig()); } - public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent,V1PodDNSConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDNSConfigBuilder(V1PodDNSConfig instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDNSConfigFluent fluent; + public V1PodDNSConfigBuilder(V1PodDNSConfigFluent fluent,V1PodDNSConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDNSConfig build() { V1PodDNSConfig buildable = new V1PodDNSConfig(); buildable.setNameservers(fluent.getNameservers()); @@ -29,5 +32,4 @@ public V1PodDNSConfig build() { return buildable; } - } \ No newline at end of file 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..6c452b1ab6 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 @@ -1,206 +1,289 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDNSConfigFluent> extends BaseFluent{ +public class V1PodDNSConfigFluent> extends BaseFluent{ + + private List nameservers; + private ArrayList options; + private List searches; + public V1PodDNSConfigFluent() { } public V1PodDNSConfigFluent(V1PodDNSConfig instance) { this.copyInstance(instance); } - private List nameservers; - private ArrayList options; - private List searches; + + public A addAllToNameservers(Collection items) { + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } + for (String item : items) { + this.nameservers.add(item); + } + return (A) this; + } - protected void copyInstance(V1PodDNSConfig instance) { - instance = (instance != null ? instance : new V1PodDNSConfig()); - if (instance != null) { - this.withNameservers(instance.getNameservers()); - this.withOptions(instance.getOptions()); - this.withSearches(instance.getSearches()); - } + public A addAllToOptions(Collection items) { + if (this.options == null) { + this.options = new ArrayList(); + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").add(builder); + this.options.add(builder); + } + return (A) this; } - public A addToNameservers(int index,String item) { - if (this.nameservers == null) {this.nameservers = new ArrayList();} - this.nameservers.add(index, item); - return (A)this; + public A addAllToSearches(Collection items) { + if (this.searches == null) { + this.searches = new ArrayList(); + } + for (String item : items) { + this.searches.add(item); + } + return (A) this; } - public A setToNameservers(int index,String item) { - if (this.nameservers == null) {this.nameservers = new ArrayList();} - this.nameservers.set(index, item); return (A)this; + public OptionsNested addNewOption() { + return new OptionsNested(-1, null); } - public A addToNameservers(java.lang.String... items) { - if (this.nameservers == null) {this.nameservers = new ArrayList();} - for (String item : items) {this.nameservers.add(item);} return (A)this; + public OptionsNested addNewOptionLike(V1PodDNSConfigOption item) { + return new OptionsNested(-1, item); } - public A addAllToNameservers(Collection items) { - if (this.nameservers == null) {this.nameservers = new ArrayList();} - for (String item : items) {this.nameservers.add(item);} return (A)this; + public A addToNameservers(String... items) { + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } + for (String item : items) { + this.nameservers.add(item); + } + return (A) this; } - public A removeFromNameservers(java.lang.String... items) { - if (this.nameservers == null) return (A)this; - for (String item : items) { this.nameservers.remove(item);} return (A)this; + public A addToNameservers(int index,String item) { + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } + this.nameservers.add(index, item); + return (A) this; } - public A removeAllFromNameservers(Collection items) { - if (this.nameservers == null) return (A)this; - for (String item : items) { this.nameservers.remove(item);} return (A)this; + public A addToOptions(V1PodDNSConfigOption... items) { + if (this.options == null) { + this.options = new ArrayList(); + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").add(builder); + this.options.add(builder); + } + return (A) this; } - public List getNameservers() { - return this.nameservers; + 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(builder); + options.add(index, builder); + } + return (A) this; } - public String getNameserver(int index) { - return this.nameservers.get(index); + public A addToSearches(String... items) { + if (this.searches == null) { + this.searches = new ArrayList(); + } + for (String item : items) { + this.searches.add(item); + } + return (A) this; } - public String getFirstNameserver() { - return this.nameservers.get(0); + public A addToSearches(int index,String item) { + if (this.searches == null) { + this.searches = new ArrayList(); + } + this.searches.add(index, item); + return (A) this; } - public String getLastNameserver() { - return this.nameservers.get(nameservers.size() - 1); + public V1PodDNSConfigOption buildFirstOption() { + return this.options.get(0).build(); } - public String getMatchingNameserver(Predicate predicate) { - for (String item : nameservers) { + public V1PodDNSConfigOption buildLastOption() { + return this.options.get(options.size() - 1).build(); + } + + public V1PodDNSConfigOption buildMatchingOption(Predicate predicate) { + for (V1PodDNSConfigOptionBuilder item : options) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingNameserver(Predicate predicate) { - for (String item : nameservers) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1PodDNSConfigOption buildOption(int index) { + return this.options.get(index).build(); } - public A withNameservers(List nameservers) { - if (nameservers != null) { - this.nameservers = new ArrayList(); - for (String item : nameservers) { - this.addToNameservers(item); - } - } else { - this.nameservers = null; + public List buildOptions() { + return this.options != null ? build(options) : null; + } + + protected void copyInstance(V1PodDNSConfig instance) { + instance = instance != null ? instance : new V1PodDNSConfig(); + if (instance != null) { + this.withNameservers(instance.getNameservers()); + this.withOptions(instance.getOptions()); + this.withSearches(instance.getSearches()); } - return (A) this; } - public A withNameservers(java.lang.String... nameservers) { - if (this.nameservers != null) { - this.nameservers.clear(); - _visitables.remove("nameservers"); + public OptionsNested editFirstOption() { + if (options.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "options")); } - if (nameservers != null) { - for (String item : nameservers) { - this.addToNameservers(item); + return this.setNewOptionLike(0, this.buildOption(0)); + } + + public OptionsNested editLastOption() { + int index = options.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "options")); + } + return this.setNewOptionLike(index, this.buildOption(index)); + } + + public OptionsNested editMatchingOption(Predicate predicate) { + int index = -1; + for (int i = 0;i < options.size();i++) { + if (predicate.test(options.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "options")); + } + return this.setNewOptionLike(index, this.buildOption(index)); } - public boolean hasNameservers() { - return this.nameservers != null && !this.nameservers.isEmpty(); + public OptionsNested editOption(int index) { + if (options.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "options")); + } + return this.setNewOptionLike(index, this.buildOption(index)); } - 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);} - return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodDNSConfigFluent that = (V1PodDNSConfigFluent) o; + if (!(Objects.equals(nameservers, that.nameservers))) { + return false; + } + if (!(Objects.equals(options, that.options))) { + return false; + } + if (!(Objects.equals(searches, that.searches))) { + return false; + } + return true; } - 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);} - return (A)this; + public String getFirstNameserver() { + return this.nameservers.get(0); } - public A addToOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items) { - if (this.options == null) {this.options = new ArrayList();} - for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").add(builder);this.options.add(builder);} return (A)this; + public String getFirstSearch() { + return this.searches.get(0); } - public A addAllToOptions(Collection items) { - if (this.options == null) {this.options = new ArrayList();} - for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").add(builder);this.options.add(builder);} return (A)this; + public String getLastNameserver() { + return this.nameservers.get(nameservers.size() - 1); } - public A removeFromOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... items) { - if (this.options == null) return (A)this; - for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").remove(builder); this.options.remove(builder);} return (A)this; + public String getLastSearch() { + return this.searches.get(searches.size() - 1); } - public A removeAllFromOptions(Collection items) { - if (this.options == null) return (A)this; - for (V1PodDNSConfigOption item : items) {V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item);_visitables.get("options").remove(builder); this.options.remove(builder);} return (A)this; + public String getMatchingNameserver(Predicate predicate) { + for (String item : nameservers) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A removeMatchingFromOptions(Predicate predicate) { - if (options == null) return (A) this; - final Iterator each = options.iterator(); - final List visitables = _visitables.get("options"); - while (each.hasNext()) { - V1PodDNSConfigOptionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public String getMatchingSearch(Predicate predicate) { + for (String item : searches) { + if (predicate.test(item)) { + return item; + } } - } - return (A)this; + return null; } - public List buildOptions() { - return this.options != null ? build(options) : null; + public String getNameserver(int index) { + return this.nameservers.get(index); } - public V1PodDNSConfigOption buildOption(int index) { - return this.options.get(index).build(); + public List getNameservers() { + return this.nameservers; } - public V1PodDNSConfigOption buildFirstOption() { - return this.options.get(0).build(); + public String getSearch(int index) { + return this.searches.get(index); } - public V1PodDNSConfigOption buildLastOption() { - return this.options.get(options.size() - 1).build(); + public List getSearches() { + return this.searches; } - public V1PodDNSConfigOption buildMatchingOption(Predicate predicate) { - for (V1PodDNSConfigOptionBuilder item : options) { + public boolean hasMatchingNameserver(Predicate predicate) { + for (String item : nameservers) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingOption(Predicate predicate) { @@ -212,138 +295,218 @@ public boolean hasMatchingOption(Predicate predicat return false; } - public A withOptions(List options) { - if (this.options != null) { - this._visitables.get("options").clear(); - } - if (options != null) { - this.options = new ArrayList(); - for (V1PodDNSConfigOption item : options) { - this.addToOptions(item); + public boolean hasMatchingSearch(Predicate predicate) { + for (String item : searches) { + if (predicate.test(item)) { + return true; } - } else { - this.options = null; - } - return (A) this; - } - - public A withOptions(io.kubernetes.client.openapi.models.V1PodDNSConfigOption... options) { - if (this.options != null) { - this.options.clear(); - _visitables.remove("options"); - } - if (options != null) { - for (V1PodDNSConfigOption item : options) { - this.addToOptions(item); } - } - return (A) this; + return false; } - public boolean hasOptions() { - return this.options != null && !this.options.isEmpty(); + public boolean hasNameservers() { + return this.nameservers != null && !(this.nameservers.isEmpty()); } - public OptionsNested addNewOption() { - return new OptionsNested(-1, null); + public boolean hasOptions() { + return this.options != null && !(this.options.isEmpty()); } - public OptionsNested addNewOptionLike(V1PodDNSConfigOption item) { - return new OptionsNested(-1, item); + public boolean hasSearches() { + return this.searches != null && !(this.searches.isEmpty()); } - public OptionsNested setNewOptionLike(int index,V1PodDNSConfigOption item) { - return new OptionsNested(index, item); + public int hashCode() { + return Objects.hash(nameservers, options, searches); } - public OptionsNested editOption(int index) { - if (options.size() <= index) throw new RuntimeException("Can't edit options. Index exceeds size."); - return setNewOptionLike(index, buildOption(index)); + public A removeAllFromNameservers(Collection items) { + if (this.nameservers == null) { + return (A) this; + } + for (String item : items) { + this.nameservers.remove(item); + } + return (A) this; } - public OptionsNested editFirstOption() { - if (options.size() == 0) throw new RuntimeException("Can't edit first options. The list is empty."); - return setNewOptionLike(0, buildOption(0)); + public A removeAllFromOptions(Collection items) { + if (this.options == null) { + return (A) this; + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").remove(builder); + this.options.remove(builder); + } + return (A) this; } - public OptionsNested editLastOption() { - int index = options.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last options. The list is empty."); - return setNewOptionLike(index, buildOption(index)); + public A removeAllFromSearches(Collection items) { + if (this.searches == null) { + return (A) this; + } + for (String item : items) { + this.searches.remove(item); + } + return (A) this; } - public OptionsNested editMatchingOption(Predicate predicate) { - int index = -1; - for (int i=0;i();} - this.searches.add(index, item); - return (A)this; + public A removeFromOptions(V1PodDNSConfigOption... items) { + if (this.options == null) { + return (A) this; + } + for (V1PodDNSConfigOption item : items) { + V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); + _visitables.get("options").remove(builder); + this.options.remove(builder); + } + return (A) this; } - public A setToSearches(int index,String item) { - if (this.searches == null) {this.searches = new ArrayList();} - this.searches.set(index, item); return (A)this; + public A removeFromSearches(String... items) { + if (this.searches == null) { + return (A) this; + } + for (String item : items) { + this.searches.remove(item); + } + return (A) this; } - public A addToSearches(java.lang.String... items) { - if (this.searches == null) {this.searches = new ArrayList();} - for (String item : items) {this.searches.add(item);} return (A)this; + public A removeMatchingFromOptions(Predicate predicate) { + if (options == null) { + return (A) this; + } + Iterator each = options.iterator(); + List visitables = _visitables.get("options"); + while (each.hasNext()) { + V1PodDNSConfigOptionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A addAllToSearches(Collection items) { - if (this.searches == null) {this.searches = new ArrayList();} - for (String item : items) {this.searches.add(item);} return (A)this; + public OptionsNested setNewOptionLike(int index,V1PodDNSConfigOption item) { + return new OptionsNested(index, item); } - public A removeFromSearches(java.lang.String... items) { - if (this.searches == null) return (A)this; - for (String item : items) { this.searches.remove(item);} return (A)this; + public A setToNameservers(int index,String item) { + if (this.nameservers == null) { + this.nameservers = new ArrayList(); + } + this.nameservers.set(index, item); + return (A) this; } - public A removeAllFromSearches(Collection items) { - if (this.searches == null) return (A)this; - for (String item : items) { this.searches.remove(item);} 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").add(builder); + options.set(index, builder); + } + return (A) this; } - public List getSearches() { - return this.searches; + public A setToSearches(int index,String item) { + if (this.searches == null) { + this.searches = new ArrayList(); + } + this.searches.set(index, item); + return (A) this; } - public String getSearch(int index) { - return this.searches.get(index); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nameservers == null) && !(nameservers.isEmpty())) { + sb.append("nameservers:"); + sb.append(nameservers); + sb.append(","); + } + if (!(options == null) && !(options.isEmpty())) { + sb.append("options:"); + sb.append(options); + sb.append(","); + } + if (!(searches == null) && !(searches.isEmpty())) { + sb.append("searches:"); + sb.append(searches); + } + sb.append("}"); + return sb.toString(); } - public String getFirstSearch() { - return this.searches.get(0); + public A withNameservers(List nameservers) { + if (nameservers != null) { + this.nameservers = new ArrayList(); + for (String item : nameservers) { + this.addToNameservers(item); + } + } else { + this.nameservers = null; + } + return (A) this; } - public String getLastSearch() { - return this.searches.get(searches.size() - 1); + public A withNameservers(String... nameservers) { + if (this.nameservers != null) { + this.nameservers.clear(); + _visitables.remove("nameservers"); + } + if (nameservers != null) { + for (String item : nameservers) { + this.addToNameservers(item); + } + } + return (A) this; } - public String getMatchingSearch(Predicate predicate) { - for (String item : searches) { - if (predicate.test(item)) { - return item; + public A withOptions(List options) { + if (this.options != null) { + this._visitables.get("options").clear(); + } + if (options != null) { + this.options = new ArrayList(); + for (V1PodDNSConfigOption item : options) { + this.addToOptions(item); } - } - return null; + } else { + this.options = null; + } + return (A) this; } - public boolean hasMatchingSearch(Predicate predicate) { - for (String item : searches) { - if (predicate.test(item)) { - return true; - } + public A withOptions(V1PodDNSConfigOption... options) { + if (this.options != null) { + this.options.clear(); + _visitables.remove("options"); + } + if (options != null) { + for (V1PodDNSConfigOption item : options) { + this.addToOptions(item); } - return false; + } + return (A) this; } public A withSearches(List searches) { @@ -358,7 +521,7 @@ public A withSearches(List searches) { return (A) this; } - public A withSearches(java.lang.String... searches) { + public A withSearches(String... searches) { if (this.searches != null) { this.searches.clear(); _visitables.remove("searches"); @@ -370,52 +533,23 @@ public A withSearches(java.lang.String... searches) { } return (A) this; } + public class OptionsNested extends V1PodDNSConfigOptionFluent> implements Nested{ - public boolean hasSearches() { - return this.searches != null && !this.searches.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; - V1PodDNSConfigFluent that = (V1PodDNSConfigFluent) o; - if (!java.util.Objects.equals(nameservers, that.nameservers)) return false; - if (!java.util.Objects.equals(options, that.options)) return false; - if (!java.util.Objects.equals(searches, that.searches)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(nameservers, options, searches, super.hashCode()); - } + V1PodDNSConfigOptionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (nameservers != null && !nameservers.isEmpty()) { sb.append("nameservers:"); sb.append(nameservers + ","); } - if (options != null && !options.isEmpty()) { sb.append("options:"); sb.append(options + ","); } - if (searches != null && !searches.isEmpty()) { sb.append("searches:"); sb.append(searches); } - sb.append("}"); - return sb.toString(); - } - public class OptionsNested extends V1PodDNSConfigOptionFluent> implements Nested{ OptionsNested(int index,V1PodDNSConfigOption item) { this.index = index; this.builder = new V1PodDNSConfigOptionBuilder(this, item); } - V1PodDNSConfigOptionBuilder builder; - int index; - + public N and() { - return (N) V1PodDNSConfigFluent.this.setToOptions(index,builder.build()); + return (N) V1PodDNSConfigFluent.this.setToOptions(index, builder.build()); } public N endOption() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java index 079610d519..967fef21cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDNSConfigOptionBuilder extends V1PodDNSConfigOptionFluent implements VisitableBuilder{ + + V1PodDNSConfigOptionFluent fluent; + public V1PodDNSConfigOptionBuilder() { this(new V1PodDNSConfigOption()); } @@ -10,17 +14,16 @@ public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent) { this(fluent, new V1PodDNSConfigOption()); } - public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent,V1PodDNSConfigOption instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOption instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDNSConfigOptionFluent fluent; + public V1PodDNSConfigOptionBuilder(V1PodDNSConfigOptionFluent fluent,V1PodDNSConfigOption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDNSConfigOption build() { V1PodDNSConfigOption buildable = new V1PodDNSConfigOption(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1PodDNSConfigOption build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java index 529619f733..7d63ac945a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDNSConfigOptionFluent> extends BaseFluent{ +public class V1PodDNSConfigOptionFluent> extends BaseFluent{ + + private String name; + private String value; + public V1PodDNSConfigOptionFluent() { } public V1PodDNSConfigOptionFluent(V1PodDNSConfigOption instance) { this.copyInstance(instance); } - private String name; - private String value; - + protected void copyInstance(V1PodDNSConfigOption instance) { - instance = (instance != null ? instance : new V1PodDNSConfigOption()); + instance = instance != null ? instance : new V1PodDNSConfigOption(); if (instance != null) { - this.withName(instance.getName()); - this.withValue(instance.getValue()); - } + this.withName(instance.getName()); + this.withValue(instance.getValue()); + } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodDNSConfigOptionFluent that = (V1PodDNSConfigOptionFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + public boolean hasName() { + return this.name != null; } 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; - V1PodDNSConfigOptionFluent that = (V1PodDNSConfigOptionFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, value, super.hashCode()); + return Objects.hash(name, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java index 9eec3ce9d6..1ebff17449 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDisruptionBudgetBuilder extends V1PodDisruptionBudgetFluent implements VisitableBuilder{ + + V1PodDisruptionBudgetFluent fluent; + public V1PodDisruptionBudgetBuilder() { this(new V1PodDisruptionBudget()); } @@ -10,17 +14,16 @@ public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent) { this(fluent, new V1PodDisruptionBudget()); } - public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent,V1PodDisruptionBudget instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudget instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDisruptionBudgetFluent fluent; + public V1PodDisruptionBudgetBuilder(V1PodDisruptionBudgetFluent fluent,V1PodDisruptionBudget instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDisruptionBudget build() { V1PodDisruptionBudget buildable = new V1PodDisruptionBudget(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1PodDisruptionBudget build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java index 50c80eb8dc..615ea843fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetFluent> extends BaseFluent{ +public class V1PodDisruptionBudgetFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1PodDisruptionBudgetSpecBuilder spec; + private V1PodDisruptionBudgetStatusBuilder status; + public V1PodDisruptionBudgetFluent() { } public V1PodDisruptionBudgetFluent(V1PodDisruptionBudget instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1PodDisruptionBudgetSpecBuilder spec; - private V1PodDisruptionBudgetStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PodDisruptionBudgetSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1PodDisruptionBudgetStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1PodDisruptionBudget instance) { - instance = (instance != null ? instance : new V1PodDisruptionBudget()); + instance = instance != null ? instance : new V1PodDisruptionBudget(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodDisruptionBudgetSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1PodDisruptionBudgetSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PodDisruptionBudgetStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1PodDisruptionBudgetStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodDisruptionBudgetFluent that = (V1PodDisruptionBudgetFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1PodDisruptionBudgetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1PodDisruptionBudgetStatus item) { + return new StatusNested(item); } public A withSpec(V1PodDisruptionBudgetSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1PodDisruptionBudgetSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PodDisruptionBudgetSpec 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 V1PodDisruptionBudgetSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1PodDisruptionBudgetSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1PodDisruptionBudgetStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1PodDisruptionBudgetStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1PodDisruptionBudgetStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1PodDisruptionBudgetStatus 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 V1PodDisruptionBudgetStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1PodDisruptionBudgetStatus 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; - V1PodDisruptionBudgetFluent that = (V1PodDisruptionBudgetFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1PodDisruptionBudgetFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PodDisruptionBudgetSpecFluent> implements Nested{ + + V1PodDisruptionBudgetSpecBuilder builder; + SpecNested(V1PodDisruptionBudgetSpec item) { this.builder = new V1PodDisruptionBudgetSpecBuilder(this, item); } - V1PodDisruptionBudgetSpecBuilder builder; - + public N and() { return (N) V1PodDisruptionBudgetFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PodDisruptionBudgetStatusFluent> implements Nested{ + + V1PodDisruptionBudgetStatusBuilder builder; + StatusNested(V1PodDisruptionBudgetStatus item) { this.builder = new V1PodDisruptionBudgetStatusBuilder(this, item); } - V1PodDisruptionBudgetStatusBuilder builder; - + public N and() { return (N) V1PodDisruptionBudgetFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java index 979c3504e5..3702265862 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDisruptionBudgetListBuilder extends V1PodDisruptionBudgetListFluent implements VisitableBuilder{ + + V1PodDisruptionBudgetListFluent fluent; + public V1PodDisruptionBudgetListBuilder() { this(new V1PodDisruptionBudgetList()); } @@ -10,17 +14,16 @@ public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluen this(fluent, new V1PodDisruptionBudgetList()); } - public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluent,V1PodDisruptionBudgetList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetList instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDisruptionBudgetListFluent fluent; + public V1PodDisruptionBudgetListBuilder(V1PodDisruptionBudgetListFluent fluent,V1PodDisruptionBudgetList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDisruptionBudgetList build() { V1PodDisruptionBudgetList buildable = new V1PodDisruptionBudgetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1PodDisruptionBudgetList build() { return buildable; } - } \ No newline at end of file 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..9aadc37022 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetListFluent> extends BaseFluent{ +public class V1PodDisruptionBudgetListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1PodDisruptionBudgetListFluent() { } public V1PodDisruptionBudgetListFluent(V1PodDisruptionBudgetList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PodDisruptionBudgetList instance) { - instance = (instance != null ? instance : new V1PodDisruptionBudgetList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1PodDisruptionBudget item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1PodDisruptionBudget... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1PodDisruptionBudget item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1PodDisruptionBudget buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1PodDisruptionBudget buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { - if (this.items == null) return (A)this; - for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PodDisruptionBudget buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PodDisruptionBudget item : items) {V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PodDisruptionBudget buildMatchingItem(Predicate predicate) { + for (V1PodDisruptionBudgetBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1PodDisruptionBudgetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1PodDisruptionBudgetList instance) { + instance = instance != null ? instance : new V1PodDisruptionBudgetList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1PodDisruptionBudget buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1PodDisruptionBudget buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PodDisruptionBudget buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodDisruptionBudgetListFluent that = (V1PodDisruptionBudgetListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1PodDisruptionBudget buildMatchingItem(Predicate predicate) { - for (V1PodDisruptionBudgetBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PodDisruptionBudget... items) { + if (this.items == null) { + return (A) this; + } + for (V1PodDisruptionBudget item : items) { + V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PodDisruptionBudgetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PodDisruptionBudget item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... items) { + public A withItems(V1PodDisruptionBudget... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1PodDisruptionBudget... return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PodDisruptionBudget item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PodDisruptionBudget 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1PodDisruptionBudgetFluent> implements Nested{ - 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; - V1PodDisruptionBudgetListFluent that = (V1PodDisruptionBudgetListFluent) 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()); - } + V1PodDisruptionBudgetBuilder builder; + int index; - 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 V1PodDisruptionBudgetFluent> implements Nested{ ItemsNested(int index,V1PodDisruptionBudget item) { this.index = index; this.builder = new V1PodDisruptionBudgetBuilder(this, item); } - V1PodDisruptionBudgetBuilder builder; - int index; - + public N and() { - return (N) V1PodDisruptionBudgetListFluent.this.setToItems(index,builder.build()); + return (N) V1PodDisruptionBudgetListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PodDisruptionBudgetListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java index 0f9bf75e0a..0e94b7b90e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDisruptionBudgetSpecBuilder extends V1PodDisruptionBudgetSpecFluent implements VisitableBuilder{ + + V1PodDisruptionBudgetSpecFluent fluent; + public V1PodDisruptionBudgetSpecBuilder() { this(new V1PodDisruptionBudgetSpec()); } @@ -10,17 +14,16 @@ public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluen this(fluent, new V1PodDisruptionBudgetSpec()); } - public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluent,V1PodDisruptionBudgetSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDisruptionBudgetSpecFluent fluent; + public V1PodDisruptionBudgetSpecBuilder(V1PodDisruptionBudgetSpecFluent fluent,V1PodDisruptionBudgetSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDisruptionBudgetSpec build() { V1PodDisruptionBudgetSpec buildable = new V1PodDisruptionBudgetSpec(); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); @@ -30,5 +33,4 @@ public V1PodDisruptionBudgetSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java index 72d0121250..e9a24e8b01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java @@ -1,165 +1,201 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetSpecFluent> extends BaseFluent{ +public class V1PodDisruptionBudgetSpecFluent> extends BaseFluent{ + + private IntOrString maxUnavailable; + private IntOrString minAvailable; + private V1LabelSelectorBuilder selector; + private String unhealthyPodEvictionPolicy; + public V1PodDisruptionBudgetSpecFluent() { } public V1PodDisruptionBudgetSpecFluent(V1PodDisruptionBudgetSpec instance) { this.copyInstance(instance); } - private IntOrString maxUnavailable; - private IntOrString minAvailable; - private V1LabelSelectorBuilder selector; - private String unhealthyPodEvictionPolicy; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V1PodDisruptionBudgetSpec instance) { - instance = (instance != null ? instance : new V1PodDisruptionBudgetSpec()); + instance = instance != null ? instance : new V1PodDisruptionBudgetSpec(); if (instance != null) { - this.withMaxUnavailable(instance.getMaxUnavailable()); - this.withMinAvailable(instance.getMinAvailable()); - this.withSelector(instance.getSelector()); - this.withUnhealthyPodEvictionPolicy(instance.getUnhealthyPodEvictionPolicy()); - } + this.withMaxUnavailable(instance.getMaxUnavailable()); + this.withMinAvailable(instance.getMinAvailable()); + this.withSelector(instance.getSelector()); + this.withUnhealthyPodEvictionPolicy(instance.getUnhealthyPodEvictionPolicy()); + } } - public IntOrString getMaxUnavailable() { - return this.maxUnavailable; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public boolean hasMaxUnavailable() { - return this.maxUnavailable != null; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public A withNewMaxUnavailable(int value) { - return (A)withMaxUnavailable(new IntOrString(value)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodDisruptionBudgetSpecFluent that = (V1PodDisruptionBudgetSpecFluent) o; + if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { + return false; + } + if (!(Objects.equals(minAvailable, that.minAvailable))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(unhealthyPodEvictionPolicy, that.unhealthyPodEvictionPolicy))) { + return false; + } + return true; } - public A withNewMaxUnavailable(String value) { - return (A)withMaxUnavailable(new IntOrString(value)); + public IntOrString getMaxUnavailable() { + return this.maxUnavailable; } public IntOrString getMinAvailable() { return this.minAvailable; } - public A withMinAvailable(IntOrString minAvailable) { - this.minAvailable = minAvailable; - return (A) this; + public String getUnhealthyPodEvictionPolicy() { + return this.unhealthyPodEvictionPolicy; + } + + public boolean hasMaxUnavailable() { + return this.maxUnavailable != null; } public boolean hasMinAvailable() { return this.minAvailable != null; } - public A withNewMinAvailable(int value) { - return (A)withMinAvailable(new IntOrString(value)); + public boolean hasSelector() { + return this.selector != null; } - public A withNewMinAvailable(String value) { - return (A)withMinAvailable(new IntOrString(value)); + public boolean hasUnhealthyPodEvictionPolicy() { + return this.unhealthyPodEvictionPolicy != null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public int hashCode() { + return Objects.hash(maxUnavailable, minAvailable, selector, unhealthyPodEvictionPolicy); } - 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); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(maxUnavailable == null)) { + sb.append("maxUnavailable:"); + sb.append(maxUnavailable); + sb.append(","); } - return (A) this; + if (!(minAvailable == null)) { + sb.append("minAvailable:"); + sb.append(minAvailable); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(unhealthyPodEvictionPolicy == null)) { + sb.append("unhealthyPodEvictionPolicy:"); + sb.append(unhealthyPodEvictionPolicy); + } + sb.append("}"); + return sb.toString(); } - public boolean hasSelector() { - return this.selector != null; + public A withMaxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return (A) this; } - public SelectorNested withNewSelector() { - return new SelectorNested(null); + public A withMinAvailable(IntOrString minAvailable) { + this.minAvailable = minAvailable; + return (A) this; } - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + public A withNewMaxUnavailable(int value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); } - public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + public A withNewMaxUnavailable(String value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); } - public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + public A withNewMinAvailable(int value) { + return (A) this.withMinAvailable(new IntOrString(value)); } - public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + public A withNewMinAvailable(String value) { + return (A) this.withMinAvailable(new IntOrString(value)); } - public String getUnhealthyPodEvictionPolicy() { - return this.unhealthyPodEvictionPolicy; + public SelectorNested withNewSelector() { + return new SelectorNested(null); } - public A withUnhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy) { - this.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; - return (A) this; + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); } - public boolean hasUnhealthyPodEvictionPolicy() { - return this.unhealthyPodEvictionPolicy != 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 equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1PodDisruptionBudgetSpecFluent that = (V1PodDisruptionBudgetSpecFluent) o; - if (!java.util.Objects.equals(maxUnavailable, that.maxUnavailable)) return false; - if (!java.util.Objects.equals(minAvailable, that.minAvailable)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(unhealthyPodEvictionPolicy, that.unhealthyPodEvictionPolicy)) return false; - return true; + public A withUnhealthyPodEvictionPolicy(String unhealthyPodEvictionPolicy) { + this.unhealthyPodEvictionPolicy = unhealthyPodEvictionPolicy; + return (A) this; } + public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(maxUnavailable, minAvailable, selector, unhealthyPodEvictionPolicy, super.hashCode()); - } + V1LabelSelectorBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable + ","); } - if (minAvailable != null) { sb.append("minAvailable:"); sb.append(minAvailable + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (unhealthyPodEvictionPolicy != null) { sb.append("unhealthyPodEvictionPolicy:"); sb.append(unhealthyPodEvictionPolicy); } - 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) V1PodDisruptionBudgetSpecFluent.this.withSelector(builder.build()); } @@ -168,7 +204,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java index 7791cd450f..1d04d26c61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodDisruptionBudgetStatusBuilder extends V1PodDisruptionBudgetStatusFluent implements VisitableBuilder{ + + V1PodDisruptionBudgetStatusFluent fluent; + public V1PodDisruptionBudgetStatusBuilder() { this(new V1PodDisruptionBudgetStatus()); } @@ -10,17 +14,16 @@ public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent f this(fluent, new V1PodDisruptionBudgetStatus()); } - public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent fluent,V1PodDisruptionBudgetStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PodDisruptionBudgetStatusFluent fluent; + public V1PodDisruptionBudgetStatusBuilder(V1PodDisruptionBudgetStatusFluent fluent,V1PodDisruptionBudgetStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodDisruptionBudgetStatus build() { V1PodDisruptionBudgetStatus buildable = new V1PodDisruptionBudgetStatus(); buildable.setConditions(fluent.buildConditions()); @@ -33,5 +36,4 @@ public V1PodDisruptionBudgetStatus build() { return buildable; } - } \ No newline at end of file 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..7491d7c1f4 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 @@ -1,33 +1,30 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; import java.lang.Integer; -import java.time.OffsetDateTime; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodDisruptionBudgetStatusFluent> extends BaseFluent{ - public V1PodDisruptionBudgetStatusFluent() { - } - - public V1PodDisruptionBudgetStatusFluent(V1PodDisruptionBudgetStatus instance) { - this.copyInstance(instance); - } +public class V1PodDisruptionBudgetStatusFluent> extends BaseFluent{ + private ArrayList conditions; private Integer currentHealthy; private Integer desiredHealthy; @@ -35,76 +32,89 @@ public V1PodDisruptionBudgetStatusFluent(V1PodDisruptionBudgetStatus instance) { private Integer disruptionsAllowed; private Integer expectedPods; private Long observedGeneration; - - protected void copyInstance(V1PodDisruptionBudgetStatus instance) { - instance = (instance != null ? instance : new V1PodDisruptionBudgetStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withCurrentHealthy(instance.getCurrentHealthy()); - this.withDesiredHealthy(instance.getDesiredHealthy()); - this.withDisruptedPods(instance.getDisruptedPods()); - this.withDisruptionsAllowed(instance.getDisruptionsAllowed()); - this.withExpectedPods(instance.getExpectedPods()); - this.withObservedGeneration(instance.getObservedGeneration()); - } + + public V1PodDisruptionBudgetStatusFluent() { } - 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 V1PodDisruptionBudgetStatusFluent(V1PodDisruptionBudgetStatus instance) { + this.copyInstance(instance); } - - 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 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 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - 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 ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } - 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 addToConditions(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 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 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 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(); - } + public A addToDisruptedPods(Map map) { + if (this.disruptedPods == null && map != null) { + this.disruptedPods = new LinkedHashMap(); } - return (A)this; + if (map != null) { + this.disruptedPods.putAll(map); + } + return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + public A addToDisruptedPods(String key,OffsetDateTime value) { + if (this.disruptedPods == null && key != null && value != null) { + this.disruptedPods = new LinkedHashMap(); + } + if (key != null && value != null) { + this.disruptedPods.put(key, value); + } + return (A) this; } public V1Condition buildCondition(int index) { return this.conditions.get(index).build(); } + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -122,235 +132,357 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1ConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1PodDisruptionBudgetStatus instance) { + instance = instance != null ? instance : new V1PodDisruptionBudgetStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withCurrentHealthy(instance.getCurrentHealthy()); + this.withDesiredHealthy(instance.getDesiredHealthy()); + this.withDisruptedPods(instance.getDisruptedPods()); + this.withDisruptionsAllowed(instance.getDisruptionsAllowed()); + this.withExpectedPods(instance.getExpectedPods()); + this.withObservedGeneration(instance.getObservedGeneration()); + } } - 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; + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - 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); - } + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(0, this.buildCondition(0)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested addNewConditionLike(V1Condition item) { - return new ConditionsNested(-1, item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodDisruptionBudgetStatusFluent that = (V1PodDisruptionBudgetStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentHealthy, that.currentHealthy))) { + return false; + } + if (!(Objects.equals(desiredHealthy, that.desiredHealthy))) { + return false; + } + if (!(Objects.equals(disruptedPods, that.disruptedPods))) { + return false; + } + if (!(Objects.equals(disruptionsAllowed, that.disruptionsAllowed))) { + return false; + } + if (!(Objects.equals(expectedPods, that.expectedPods))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + return true; } - public ConditionsNested setNewConditionLike(int index,V1Condition item) { - return new ConditionsNested(index, item); + public Integer getCurrentHealthy() { + return this.currentHealthy; } - 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 Integer getDesiredHealthy() { + return this.desiredHealthy; } - 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 Map getDisruptedPods() { + return this.disruptedPods; } - 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 Integer getDisruptionsAllowed() { + return this.disruptionsAllowed; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i map) { - if(this.disruptedPods == null && map != null) { this.disruptedPods = new LinkedHashMap(); } - if(map != null) { this.disruptedPods.putAll(map);} return (A)this; + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A removeFromDisruptedPods(String key) { - if(this.disruptedPods == null) { return (A) this; } - if(key != null && this.disruptedPods != null) {this.disruptedPods.remove(key);} return (A)this; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } - public A removeFromDisruptedPods(Map map) { - if(this.disruptedPods == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.disruptedPods != null){this.disruptedPods.remove(key);}}} return (A)this; + public int hashCode() { + return Objects.hash(conditions, currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods, observedGeneration); } - public Map getDisruptedPods() { - return this.disruptedPods; + 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 withDisruptedPods(Map disruptedPods) { - if (disruptedPods == null) { - this.disruptedPods = null; - } else { - this.disruptedPods = new LinkedHashMap(disruptedPods); + public A removeFromConditions(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 boolean hasDisruptedPods() { - return this.disruptedPods != null; + public A removeFromDisruptedPods(String key) { + if (this.disruptedPods == null) { + return (A) this; + } + if (key != null && this.disruptedPods != null) { + this.disruptedPods.remove(key); + } + return (A) this; } - public Integer getDisruptionsAllowed() { - return this.disruptionsAllowed; + public A removeFromDisruptedPods(Map map) { + if (this.disruptedPods == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.disruptedPods != null) { + this.disruptedPods.remove(key); + } + } + } + return (A) this; } - public A withDisruptionsAllowed(Integer disruptionsAllowed) { - this.disruptionsAllowed = disruptionsAllowed; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 boolean hasDisruptionsAllowed() { - return this.disruptionsAllowed != null; + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); } - public Integer getExpectedPods() { - return this.expectedPods; + 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 withExpectedPods(Integer expectedPods) { - this.expectedPods = expectedPods; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(currentHealthy == null)) { + sb.append("currentHealthy:"); + sb.append(currentHealthy); + sb.append(","); + } + if (!(desiredHealthy == null)) { + sb.append("desiredHealthy:"); + sb.append(desiredHealthy); + sb.append(","); + } + if (!(disruptedPods == null) && !(disruptedPods.isEmpty())) { + sb.append("disruptedPods:"); + sb.append(disruptedPods); + sb.append(","); + } + if (!(disruptionsAllowed == null)) { + sb.append("disruptionsAllowed:"); + sb.append(disruptionsAllowed); + sb.append(","); + } + if (!(expectedPods == null)) { + sb.append("expectedPods:"); + sb.append(expectedPods); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + } + sb.append("}"); + return sb.toString(); + } + + 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 boolean hasExpectedPods() { - return this.expectedPods != null; + public A withConditions(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 Long getObservedGeneration() { - return this.observedGeneration; + public A withCurrentHealthy(Integer currentHealthy) { + this.currentHealthy = currentHealthy; + return (A) this; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; + public A withDesiredHealthy(Integer desiredHealthy) { + this.desiredHealthy = desiredHealthy; return (A) this; } - public boolean hasObservedGeneration() { - return this.observedGeneration != null; + public A withDisruptedPods(Map disruptedPods) { + if (disruptedPods == null) { + this.disruptedPods = null; + } else { + this.disruptedPods = new LinkedHashMap(disruptedPods); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1PodDisruptionBudgetStatusFluent that = (V1PodDisruptionBudgetStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(currentHealthy, that.currentHealthy)) return false; - if (!java.util.Objects.equals(desiredHealthy, that.desiredHealthy)) return false; - if (!java.util.Objects.equals(disruptedPods, that.disruptedPods)) return false; - if (!java.util.Objects.equals(disruptionsAllowed, that.disruptionsAllowed)) return false; - if (!java.util.Objects.equals(expectedPods, that.expectedPods)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - return true; + public A withDisruptionsAllowed(Integer disruptionsAllowed) { + this.disruptionsAllowed = disruptionsAllowed; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(conditions, currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods, observedGeneration, super.hashCode()); + public A withExpectedPods(Integer expectedPods) { + this.expectedPods = expectedPods; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (currentHealthy != null) { sb.append("currentHealthy:"); sb.append(currentHealthy + ","); } - if (desiredHealthy != null) { sb.append("desiredHealthy:"); sb.append(desiredHealthy + ","); } - if (disruptedPods != null && !disruptedPods.isEmpty()) { sb.append("disruptedPods:"); sb.append(disruptedPods + ","); } - if (disruptionsAllowed != null) { sb.append("disruptionsAllowed:"); sb.append(disruptionsAllowed + ","); } - if (expectedPods != null) { sb.append("expectedPods:"); sb.append(expectedPods + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration); } - sb.append("}"); - return sb.toString(); + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; } public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + ConditionsNested(int index,V1Condition item) { this.index = index; this.builder = new V1ConditionBuilder(this, item); } - V1ConditionBuilder builder; - int index; - + public N and() { - return (N) V1PodDisruptionBudgetStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1PodDisruptionBudgetStatusFluent.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/V1PodExtendedResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..0f7fb82ec0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1PodExtendedResourceClaimStatusBuilder extends V1PodExtendedResourceClaimStatusFluent implements VisitableBuilder{ + + V1PodExtendedResourceClaimStatusFluent fluent; + + public V1PodExtendedResourceClaimStatusBuilder() { + this(new V1PodExtendedResourceClaimStatus()); + } + + public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatusFluent fluent) { + this(fluent, new V1PodExtendedResourceClaimStatus()); + } + + public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1PodExtendedResourceClaimStatusBuilder(V1PodExtendedResourceClaimStatusFluent fluent,V1PodExtendedResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PodExtendedResourceClaimStatus build() { + V1PodExtendedResourceClaimStatus buildable = new V1PodExtendedResourceClaimStatus(); + buildable.setRequestMappings(fluent.buildRequestMappings()); + buildable.setResourceClaimName(fluent.getResourceClaimName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java new file mode 100644 index 0000000000..9d49f98b90 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java @@ -0,0 +1,320 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PodExtendedResourceClaimStatusFluent> extends BaseFluent{ + + private ArrayList requestMappings; + private String resourceClaimName; + + public V1PodExtendedResourceClaimStatusFluent() { + } + + public V1PodExtendedResourceClaimStatusFluent(V1PodExtendedResourceClaimStatus instance) { + this.copyInstance(instance); + } + + public A addAllToRequestMappings(Collection items) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList(); + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").add(builder); + this.requestMappings.add(builder); + } + return (A) this; + } + + public RequestMappingsNested addNewRequestMapping() { + return new RequestMappingsNested(-1, null); + } + + public RequestMappingsNested addNewRequestMappingLike(V1ContainerExtendedResourceRequest item) { + return new RequestMappingsNested(-1, item); + } + + public A addToRequestMappings(V1ContainerExtendedResourceRequest... items) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList(); + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").add(builder); + this.requestMappings.add(builder); + } + return (A) this; + } + + public A addToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList(); + } + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + if (index < 0 || index >= requestMappings.size()) { + _visitables.get("requestMappings").add(builder); + requestMappings.add(builder); + } else { + _visitables.get("requestMappings").add(builder); + requestMappings.add(index, builder); + } + return (A) this; + } + + public V1ContainerExtendedResourceRequest buildFirstRequestMapping() { + return this.requestMappings.get(0).build(); + } + + public V1ContainerExtendedResourceRequest buildLastRequestMapping() { + return this.requestMappings.get(requestMappings.size() - 1).build(); + } + + public V1ContainerExtendedResourceRequest buildMatchingRequestMapping(Predicate predicate) { + for (V1ContainerExtendedResourceRequestBuilder item : requestMappings) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ContainerExtendedResourceRequest buildRequestMapping(int index) { + return this.requestMappings.get(index).build(); + } + + public List buildRequestMappings() { + return this.requestMappings != null ? build(requestMappings) : null; + } + + protected void copyInstance(V1PodExtendedResourceClaimStatus instance) { + instance = instance != null ? instance : new V1PodExtendedResourceClaimStatus(); + if (instance != null) { + this.withRequestMappings(instance.getRequestMappings()); + this.withResourceClaimName(instance.getResourceClaimName()); + } + } + + public RequestMappingsNested editFirstRequestMapping() { + if (requestMappings.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requestMappings")); + } + return this.setNewRequestMappingLike(0, this.buildRequestMapping(0)); + } + + public RequestMappingsNested editLastRequestMapping() { + int index = requestMappings.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requestMappings")); + } + return this.setNewRequestMappingLike(index, this.buildRequestMapping(index)); + } + + public RequestMappingsNested editMatchingRequestMapping(Predicate predicate) { + int index = -1; + for (int i = 0;i < requestMappings.size();i++) { + if (predicate.test(requestMappings.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requestMappings")); + } + return this.setNewRequestMappingLike(index, this.buildRequestMapping(index)); + } + + public RequestMappingsNested editRequestMapping(int index) { + if (requestMappings.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requestMappings")); + } + return this.setNewRequestMappingLike(index, this.buildRequestMapping(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodExtendedResourceClaimStatusFluent that = (V1PodExtendedResourceClaimStatusFluent) o; + if (!(Objects.equals(requestMappings, that.requestMappings))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } + return true; + } + + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public boolean hasMatchingRequestMapping(Predicate predicate) { + for (V1ContainerExtendedResourceRequestBuilder item : requestMappings) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequestMappings() { + return this.requestMappings != null && !(this.requestMappings.isEmpty()); + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; + } + + public int hashCode() { + return Objects.hash(requestMappings, resourceClaimName); + } + + public A removeAllFromRequestMappings(Collection items) { + if (this.requestMappings == null) { + return (A) this; + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").remove(builder); + this.requestMappings.remove(builder); + } + return (A) this; + } + + public A removeFromRequestMappings(V1ContainerExtendedResourceRequest... items) { + if (this.requestMappings == null) { + return (A) this; + } + for (V1ContainerExtendedResourceRequest item : items) { + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + _visitables.get("requestMappings").remove(builder); + this.requestMappings.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromRequestMappings(Predicate predicate) { + if (requestMappings == null) { + return (A) this; + } + Iterator each = requestMappings.iterator(); + List visitables = _visitables.get("requestMappings"); + while (each.hasNext()) { + V1ContainerExtendedResourceRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public RequestMappingsNested setNewRequestMappingLike(int index,V1ContainerExtendedResourceRequest item) { + return new RequestMappingsNested(index, item); + } + + public A setToRequestMappings(int index,V1ContainerExtendedResourceRequest item) { + if (this.requestMappings == null) { + this.requestMappings = new ArrayList(); + } + V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); + if (index < 0 || index >= requestMappings.size()) { + _visitables.get("requestMappings").add(builder); + requestMappings.add(builder); + } else { + _visitables.get("requestMappings").add(builder); + requestMappings.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requestMappings == null) && !(requestMappings.isEmpty())) { + sb.append("requestMappings:"); + sb.append(requestMappings); + sb.append(","); + } + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); + } + sb.append("}"); + return sb.toString(); + } + + public A withRequestMappings(List requestMappings) { + if (this.requestMappings != null) { + this._visitables.get("requestMappings").clear(); + } + if (requestMappings != null) { + this.requestMappings = new ArrayList(); + for (V1ContainerExtendedResourceRequest item : requestMappings) { + this.addToRequestMappings(item); + } + } else { + this.requestMappings = null; + } + return (A) this; + } + + public A withRequestMappings(V1ContainerExtendedResourceRequest... requestMappings) { + if (this.requestMappings != null) { + this.requestMappings.clear(); + _visitables.remove("requestMappings"); + } + if (requestMappings != null) { + for (V1ContainerExtendedResourceRequest item : requestMappings) { + this.addToRequestMappings(item); + } + } + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + public class RequestMappingsNested extends V1ContainerExtendedResourceRequestFluent> implements Nested{ + + V1ContainerExtendedResourceRequestBuilder builder; + int index; + + RequestMappingsNested(int index,V1ContainerExtendedResourceRequest item) { + this.index = index; + this.builder = new V1ContainerExtendedResourceRequestBuilder(this, item); + } + + public N and() { + return (N) V1PodExtendedResourceClaimStatusFluent.this.setToRequestMappings(index, builder.build()); + } + + public N endRequestMapping() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java index 2213f4f8a1..8f920eba18 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodFailurePolicyBuilder extends V1PodFailurePolicyFluent implements VisitableBuilder{ + + V1PodFailurePolicyFluent fluent; + public V1PodFailurePolicyBuilder() { this(new V1PodFailurePolicy()); } @@ -10,22 +14,20 @@ public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent) { this(fluent, new V1PodFailurePolicy()); } - public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,V1PodFailurePolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodFailurePolicyBuilder(V1PodFailurePolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFailurePolicyFluent fluent; + public V1PodFailurePolicyBuilder(V1PodFailurePolicyFluent fluent,V1PodFailurePolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodFailurePolicy build() { V1PodFailurePolicy buildable = new V1PodFailurePolicy(); buildable.setRules(fluent.buildRules()); return buildable; } - } \ No newline at end of file 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..766f553dca 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 @@ -1,91 +1,79 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodFailurePolicyFluent> extends BaseFluent{ +public class V1PodFailurePolicyFluent> extends BaseFluent{ + + private ArrayList rules; + public V1PodFailurePolicyFluent() { } public V1PodFailurePolicyFluent(V1PodFailurePolicy instance) { this.copyInstance(instance); } - private ArrayList rules; - - protected void copyInstance(V1PodFailurePolicy instance) { - instance = (instance != null ? instance : new V1PodFailurePolicy()); - if (instance != null) { - this.withRules(instance.getRules()); - } - } - - 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);} - 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);} - return (A)this; - } - - public A addToRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(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 (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... items) { - if (this.rules == null) return (A)this; - for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public RulesNested addNewRule() { + return new RulesNested(-1, null); } - public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1PodFailurePolicyRule item : items) {V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public RulesNested addNewRuleLike(V1PodFailurePolicyRule item) { + return new RulesNested(-1, item); } - 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()) { - V1PodFailurePolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToRules(V1PodFailurePolicyRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); } - return (A)this; - } - - public List buildRules() { - return this.rules != null ? build(rules) : null; + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public V1PodFailurePolicyRule buildRule(int index) { - return this.rules.get(index).build(); + 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(builder); + rules.add(index, builder); + } + return (A) this; } public V1PodFailurePolicyRule buildFirstRule() { @@ -105,121 +93,205 @@ public V1PodFailurePolicyRule buildMatchingRule(Predicate predicate) { - for (V1PodFailurePolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1PodFailurePolicyRule buildRule(int index) { + return this.rules.get(index).build(); } - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); + public List buildRules() { + return this.rules != null ? build(rules) : null; + } + + protected void copyInstance(V1PodFailurePolicy instance) { + instance = instance != null ? instance : new V1PodFailurePolicy(); + if (instance != null) { + this.withRules(instance.getRules()); } - if (rules != null) { - this.rules = new ArrayList(); - for (V1PodFailurePolicyRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; + } + + public RulesNested editFirstRule() { + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); } - return (A) this; + return this.setNewRuleLike(0, this.buildRule(0)); } - public A withRules(io.kubernetes.client.openapi.models.V1PodFailurePolicyRule... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); } - if (rules != null) { - for (V1PodFailurePolicyRule item : rules) { - this.addToRules(item); + return this.setNewRuleLike(index, this.buildRule(index)); + } + + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public RulesNested addNewRule() { - return new RulesNested(-1, null); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodFailurePolicyFluent that = (V1PodFailurePolicyFluent) o; + if (!(Objects.equals(rules, that.rules))) { + return false; + } + return true; } - public RulesNested addNewRuleLike(V1PodFailurePolicyRule item) { - return new RulesNested(-1, item); + public boolean hasMatchingRule(Predicate predicate) { + for (V1PodFailurePolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public RulesNested setNewRuleLike(int index,V1PodFailurePolicyRule item) { - return new RulesNested(index, item); + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); } - 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 int hashCode() { + return Objects.hash(rules); } - 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 A removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } - 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 A removeFromRules(V1PodFailurePolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PodFailurePolicyRule item : items) { + V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; } - public RulesNested editMatchingRule(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1PodFailurePolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1PodFailurePolicyFluent that = (V1PodFailurePolicyFluent) o; - if (!java.util.Objects.equals(rules, that.rules)) return false; - return true; + public RulesNested setNewRuleLike(int index,V1PodFailurePolicyRule item) { + return new RulesNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(rules, super.hashCode()); + 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").add(builder); + rules.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rules != null && !rules.isEmpty()) { sb.append("rules:"); sb.append(rules); } + if (!(rules == null) && !(rules.isEmpty())) { + sb.append("rules:"); + sb.append(rules); + } sb.append("}"); return sb.toString(); } + + public A withRules(List rules) { + if (this.rules != null) { + this._visitables.get("rules").clear(); + } + if (rules != null) { + this.rules = new ArrayList(); + for (V1PodFailurePolicyRule item : rules) { + this.addToRules(item); + } + } else { + this.rules = null; + } + return (A) this; + } + + public A withRules(V1PodFailurePolicyRule... rules) { + if (this.rules != null) { + this.rules.clear(); + _visitables.remove("rules"); + } + if (rules != null) { + for (V1PodFailurePolicyRule item : rules) { + this.addToRules(item); + } + } + return (A) this; + } public class RulesNested extends V1PodFailurePolicyRuleFluent> implements Nested{ + + V1PodFailurePolicyRuleBuilder builder; + int index; + RulesNested(int index,V1PodFailurePolicyRule item) { this.index = index; this.builder = new V1PodFailurePolicyRuleBuilder(this, item); } - V1PodFailurePolicyRuleBuilder builder; - int index; - + public N and() { - return (N) V1PodFailurePolicyFluent.this.setToRules(index,builder.build()); + return (N) V1PodFailurePolicyFluent.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/V1PodFailurePolicyOnExitCodesRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java index a29df42968..9619ec22a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodFailurePolicyOnExitCodesRequirementBuilder extends V1PodFailurePolicyOnExitCodesRequirementFluent implements VisitableBuilder{ + + V1PodFailurePolicyOnExitCodesRequirementFluent fluent; + public V1PodFailurePolicyOnExitCodesRequirementBuilder() { this(new V1PodFailurePolicyOnExitCodesRequirement()); } @@ -10,17 +14,16 @@ public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitC this(fluent, new V1PodFailurePolicyOnExitCodesRequirement()); } - public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirementFluent fluent,V1PodFailurePolicyOnExitCodesRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFailurePolicyOnExitCodesRequirementFluent fluent; + public V1PodFailurePolicyOnExitCodesRequirementBuilder(V1PodFailurePolicyOnExitCodesRequirementFluent fluent,V1PodFailurePolicyOnExitCodesRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodFailurePolicyOnExitCodesRequirement build() { V1PodFailurePolicyOnExitCodesRequirement buildable = new V1PodFailurePolicyOnExitCodesRequirement(); buildable.setContainerName(fluent.getContainerName()); @@ -29,5 +32,4 @@ public V1PodFailurePolicyOnExitCodesRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java index 341ac86075..df5cca15f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java @@ -1,128 +1,209 @@ package io.kubernetes.client.openapi.models; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; 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.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodFailurePolicyOnExitCodesRequirementFluent> extends BaseFluent{ +public class V1PodFailurePolicyOnExitCodesRequirementFluent> extends BaseFluent{ + + private String containerName; + private String operator; + private List values; + public V1PodFailurePolicyOnExitCodesRequirementFluent() { } public V1PodFailurePolicyOnExitCodesRequirementFluent(V1PodFailurePolicyOnExitCodesRequirement instance) { this.copyInstance(instance); } - private String containerName; - private String operator; - private List values; + + public A addAllToValues(Collection items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (Integer item : items) { + this.values.add(item); + } + return (A) this; + } + + public A addToValues(Integer... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (Integer item : items) { + this.values.add(item); + } + return (A) this; + } + + public A addToValues(int index,Integer item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(index, item); + return (A) this; + } protected void copyInstance(V1PodFailurePolicyOnExitCodesRequirement instance) { - instance = (instance != null ? instance : new V1PodFailurePolicyOnExitCodesRequirement()); + instance = instance != null ? instance : new V1PodFailurePolicyOnExitCodesRequirement(); if (instance != null) { - this.withContainerName(instance.getContainerName()); - this.withOperator(instance.getOperator()); - this.withValues(instance.getValues()); - } + this.withContainerName(instance.getContainerName()); + this.withOperator(instance.getOperator()); + this.withValues(instance.getValues()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodFailurePolicyOnExitCodesRequirementFluent that = (V1PodFailurePolicyOnExitCodesRequirementFluent) o; + if (!(Objects.equals(containerName, that.containerName))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } public String getContainerName() { return this.containerName; } - public A withContainerName(String containerName) { - this.containerName = containerName; - return (A) this; + public Integer getFirstValue() { + return this.values.get(0); } - public boolean hasContainerName() { - return this.containerName != null; + public Integer getLastValue() { + return this.values.get(values.size() - 1); + } + + public Integer getMatchingValue(Predicate predicate) { + for (Integer item : values) { + if (predicate.test(item)) { + return item; + } + } + return null; } public String getOperator() { return this.operator; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + public Integer getValue(int index) { + return this.values.get(index); } - public boolean hasOperator() { - return this.operator != null; + public List getValues() { + return this.values; } - public A addToValues(int index,Integer item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.add(index, item); - return (A)this; + public boolean hasContainerName() { + return this.containerName != null; } - public A setToValues(int index,Integer item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + public boolean hasMatchingValue(Predicate predicate) { + for (Integer item : values) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToValues(java.lang.Integer... items) { - if (this.values == null) {this.values = new ArrayList();} - for (Integer item : items) {this.values.add(item);} return (A)this; + public boolean hasOperator() { + return this.operator != null; } - public A addAllToValues(Collection items) { - if (this.values == null) {this.values = new ArrayList();} - for (Integer item : items) {this.values.add(item);} return (A)this; + public boolean hasValues() { + return this.values != null && !(this.values.isEmpty()); } - public A removeFromValues(java.lang.Integer... items) { - if (this.values == null) return (A)this; - for (Integer item : items) { this.values.remove(item);} return (A)this; + public int hashCode() { + return Objects.hash(containerName, operator, values); } public A removeAllFromValues(Collection items) { - if (this.values == null) return (A)this; - for (Integer item : items) { this.values.remove(item);} return (A)this; - } - - public List getValues() { - return this.values; + if (this.values == null) { + return (A) this; + } + for (Integer item : items) { + this.values.remove(item); + } + return (A) this; } - public Integer getValue(int index) { - return this.values.get(index); + public A removeFromValues(Integer... items) { + if (this.values == null) { + return (A) this; + } + for (Integer item : items) { + this.values.remove(item); + } + return (A) this; } - public Integer getFirstValue() { - return this.values.get(0); + public A setToValues(int index,Integer item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public Integer getLastValue() { - return this.values.get(values.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(containerName == null)) { + sb.append("containerName:"); + sb.append(containerName); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } + sb.append("}"); + return sb.toString(); } - public Integer getMatchingValue(Predicate predicate) { - for (Integer item : values) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withContainerName(String containerName) { + this.containerName = containerName; + return (A) this; } - public boolean hasMatchingValue(Predicate predicate) { - for (Integer item : values) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withOperator(String operator) { + this.operator = operator; + return (A) this; } public A withValues(List values) { @@ -137,7 +218,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.Integer... values) { + public A withValues(Integer... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -150,34 +231,4 @@ public A withValues(java.lang.Integer... values) { 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; - V1PodFailurePolicyOnExitCodesRequirementFluent that = (V1PodFailurePolicyOnExitCodesRequirementFluent) o; - if (!java.util.Objects.equals(containerName, that.containerName)) 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(containerName, operator, values, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (containerName != null) { sb.append("containerName:"); sb.append(containerName + ","); } - 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/V1PodFailurePolicyOnPodConditionsPatternBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java index 383251c206..80b02357d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodFailurePolicyOnPodConditionsPatternBuilder extends V1PodFailurePolicyOnPodConditionsPatternFluent implements VisitableBuilder{ + + V1PodFailurePolicyOnPodConditionsPatternFluent fluent; + public V1PodFailurePolicyOnPodConditionsPatternBuilder() { this(new V1PodFailurePolicyOnPodConditionsPattern()); } @@ -10,17 +14,16 @@ public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodCo this(fluent, new V1PodFailurePolicyOnPodConditionsPattern()); } - public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPatternFluent fluent,V1PodFailurePolicyOnPodConditionsPattern instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPattern instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFailurePolicyOnPodConditionsPatternFluent fluent; + public V1PodFailurePolicyOnPodConditionsPatternBuilder(V1PodFailurePolicyOnPodConditionsPatternFluent fluent,V1PodFailurePolicyOnPodConditionsPattern instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodFailurePolicyOnPodConditionsPattern build() { V1PodFailurePolicyOnPodConditionsPattern buildable = new V1PodFailurePolicyOnPodConditionsPattern(); buildable.setStatus(fluent.getStatus()); @@ -28,5 +31,4 @@ public V1PodFailurePolicyOnPodConditionsPattern build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java index db49540166..e54f55c637 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodFailurePolicyOnPodConditionsPatternFluent> extends BaseFluent{ +public class V1PodFailurePolicyOnPodConditionsPatternFluent> extends BaseFluent{ + + private String status; + private String type; + public V1PodFailurePolicyOnPodConditionsPatternFluent() { } public V1PodFailurePolicyOnPodConditionsPatternFluent(V1PodFailurePolicyOnPodConditionsPattern instance) { this.copyInstance(instance); } - private String status; - private String type; - + protected void copyInstance(V1PodFailurePolicyOnPodConditionsPattern instance) { - instance = (instance != null ? instance : new V1PodFailurePolicyOnPodConditionsPattern()); + instance = instance != null ? instance : new V1PodFailurePolicyOnPodConditionsPattern(); if (instance != null) { - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } - public String getStatus() { - return this.status; - } - - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodFailurePolicyOnPodConditionsPatternFluent that = (V1PodFailurePolicyOnPodConditionsPatternFluent) o; + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasStatus() { - return this.status != null; + public String getStatus() { + return this.status; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasStatus() { + return this.status != null; } 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; - V1PodFailurePolicyOnPodConditionsPatternFluent that = (V1PodFailurePolicyOnPodConditionsPatternFluent) o; - 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(status, type, super.hashCode()); + return Objects.hash(status, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (status != null) { sb.append("status:"); sb.append(status + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } - + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java index ef40a89d30..bc49652cec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodFailurePolicyRuleBuilder extends V1PodFailurePolicyRuleFluent implements VisitableBuilder{ + + V1PodFailurePolicyRuleFluent fluent; + public V1PodFailurePolicyRuleBuilder() { this(new V1PodFailurePolicyRule()); } @@ -10,17 +14,16 @@ public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent) { this(fluent, new V1PodFailurePolicyRule()); } - public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent,V1PodFailurePolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRule instance) { this.fluent = this; this.copyInstance(instance); } - V1PodFailurePolicyRuleFluent fluent; + public V1PodFailurePolicyRuleBuilder(V1PodFailurePolicyRuleFluent fluent,V1PodFailurePolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodFailurePolicyRule build() { V1PodFailurePolicyRule buildable = new V1PodFailurePolicyRule(); buildable.setAction(fluent.getAction()); @@ -29,5 +32,4 @@ public V1PodFailurePolicyRule build() { return buildable; } - } \ No newline at end of file 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..9f41f0e8fa 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 @@ -1,174 +1,325 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodFailurePolicyRuleFluent> extends BaseFluent{ +public class V1PodFailurePolicyRuleFluent> extends BaseFluent{ + + private String action; + private V1PodFailurePolicyOnExitCodesRequirementBuilder onExitCodes; + private ArrayList onPodConditions; + public V1PodFailurePolicyRuleFluent() { } public V1PodFailurePolicyRuleFluent(V1PodFailurePolicyRule instance) { this.copyInstance(instance); } - private String action; - private V1PodFailurePolicyOnExitCodesRequirementBuilder onExitCodes; - private ArrayList onPodConditions; + + public A addAllToOnPodConditions(Collection items) { + if (this.onPodConditions == null) { + this.onPodConditions = new ArrayList(); + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").add(builder); + this.onPodConditions.add(builder); + } + return (A) this; + } - protected void copyInstance(V1PodFailurePolicyRule instance) { - instance = (instance != null ? instance : new V1PodFailurePolicyRule()); - if (instance != null) { - this.withAction(instance.getAction()); - this.withOnExitCodes(instance.getOnExitCodes()); - this.withOnPodConditions(instance.getOnPodConditions()); - } + public OnPodConditionsNested addNewOnPodCondition() { + return new OnPodConditionsNested(-1, null); } - public String getAction() { - return this.action; + public OnPodConditionsNested addNewOnPodConditionLike(V1PodFailurePolicyOnPodConditionsPattern item) { + return new OnPodConditionsNested(-1, item); } - public A withAction(String action) { - this.action = action; + public A addToOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) { + if (this.onPodConditions == null) { + this.onPodConditions = new ArrayList(); + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").add(builder); + this.onPodConditions.add(builder); + } return (A) this; } - public boolean hasAction() { - return this.action != null; + 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(builder); + onPodConditions.add(index, builder); + } + return (A) this; + } + + public V1PodFailurePolicyOnPodConditionsPattern buildFirstOnPodCondition() { + return this.onPodConditions.get(0).build(); + } + + public V1PodFailurePolicyOnPodConditionsPattern buildLastOnPodCondition() { + return this.onPodConditions.get(onPodConditions.size() - 1).build(); + } + + public V1PodFailurePolicyOnPodConditionsPattern buildMatchingOnPodCondition(Predicate predicate) { + for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } public V1PodFailurePolicyOnExitCodesRequirement buildOnExitCodes() { return this.onExitCodes != null ? this.onExitCodes.build() : null; } - public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { - this._visitables.remove("onExitCodes"); - if (onExitCodes != null) { - this.onExitCodes = new V1PodFailurePolicyOnExitCodesRequirementBuilder(onExitCodes); - this._visitables.get("onExitCodes").add(this.onExitCodes); - } else { - this.onExitCodes = null; - this._visitables.get("onExitCodes").remove(this.onExitCodes); + public V1PodFailurePolicyOnPodConditionsPattern buildOnPodCondition(int index) { + return this.onPodConditions.get(index).build(); + } + + public List buildOnPodConditions() { + return this.onPodConditions != null ? build(onPodConditions) : null; + } + + protected void copyInstance(V1PodFailurePolicyRule instance) { + instance = instance != null ? instance : new V1PodFailurePolicyRule(); + if (instance != null) { + this.withAction(instance.getAction()); + this.withOnExitCodes(instance.getOnExitCodes()); + this.withOnPodConditions(instance.getOnPodConditions()); } - return (A) this; } - public boolean hasOnExitCodes() { - return this.onExitCodes != null; + public OnPodConditionsNested editFirstOnPodCondition() { + if (onPodConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "onPodConditions")); + } + return this.setNewOnPodConditionLike(0, this.buildOnPodCondition(0)); } - public OnExitCodesNested withNewOnExitCodes() { - return new OnExitCodesNested(null); + public OnPodConditionsNested editLastOnPodCondition() { + int index = onPodConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "onPodConditions")); + } + return this.setNewOnPodConditionLike(index, this.buildOnPodCondition(index)); } - public OnExitCodesNested withNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { - return new OnExitCodesNested(item); + public OnPodConditionsNested editMatchingOnPodCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < onPodConditions.size();i++) { + if (predicate.test(onPodConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "onPodConditions")); + } + return this.setNewOnPodConditionLike(index, this.buildOnPodCondition(index)); } public OnExitCodesNested editOnExitCodes() { - return withNewOnExitCodesLike(java.util.Optional.ofNullable(buildOnExitCodes()).orElse(null)); + return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(null)); + } + + public OnPodConditionsNested editOnPodCondition(int index) { + if (onPodConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "onPodConditions")); + } + return this.setNewOnPodConditionLike(index, this.buildOnPodCondition(index)); } public OnExitCodesNested editOrNewOnExitCodes() { - return withNewOnExitCodesLike(java.util.Optional.ofNullable(buildOnExitCodes()).orElse(new V1PodFailurePolicyOnExitCodesRequirementBuilder().build())); + return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(new V1PodFailurePolicyOnExitCodesRequirementBuilder().build())); } public OnExitCodesNested editOrNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { - return withNewOnExitCodesLike(java.util.Optional.ofNullable(buildOnExitCodes()).orElse(item)); + return this.withNewOnExitCodesLike(Optional.ofNullable(this.buildOnExitCodes()).orElse(item)); } - 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);} - return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodFailurePolicyRuleFluent that = (V1PodFailurePolicyRuleFluent) o; + if (!(Objects.equals(action, that.action))) { + return false; + } + if (!(Objects.equals(onExitCodes, that.onExitCodes))) { + return false; + } + if (!(Objects.equals(onPodConditions, that.onPodConditions))) { + return false; + } + return true; } - 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);} - return (A)this; + public String getAction() { + return this.action; } - public A addToOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items) { - if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} - for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").add(builder);this.onPodConditions.add(builder);} return (A)this; + public boolean hasAction() { + return this.action != null; } - public A addAllToOnPodConditions(Collection items) { - if (this.onPodConditions == null) {this.onPodConditions = new ArrayList();} - for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").add(builder);this.onPodConditions.add(builder);} return (A)this; + public boolean hasMatchingOnPodCondition(Predicate predicate) { + for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A removeFromOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... items) { - if (this.onPodConditions == null) return (A)this; - for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").remove(builder); this.onPodConditions.remove(builder);} return (A)this; + public boolean hasOnExitCodes() { + return this.onExitCodes != null; + } + + public boolean hasOnPodConditions() { + return this.onPodConditions != null && !(this.onPodConditions.isEmpty()); + } + + public int hashCode() { + return Objects.hash(action, onExitCodes, onPodConditions); } public A removeAllFromOnPodConditions(Collection items) { - if (this.onPodConditions == null) return (A)this; - for (V1PodFailurePolicyOnPodConditionsPattern item : items) {V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item);_visitables.get("onPodConditions").remove(builder); this.onPodConditions.remove(builder);} return (A)this; + if (this.onPodConditions == null) { + return (A) this; + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").remove(builder); + this.onPodConditions.remove(builder); + } + return (A) this; + } + + public A removeFromOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... items) { + if (this.onPodConditions == null) { + return (A) this; + } + for (V1PodFailurePolicyOnPodConditionsPattern item : items) { + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); + _visitables.get("onPodConditions").remove(builder); + this.onPodConditions.remove(builder); + } + return (A) this; } public A removeMatchingFromOnPodConditions(Predicate predicate) { - if (onPodConditions == null) return (A) this; - final Iterator each = onPodConditions.iterator(); - final List visitables = _visitables.get("onPodConditions"); + if (onPodConditions == null) { + return (A) this; + } + Iterator each = onPodConditions.iterator(); + List visitables = _visitables.get("onPodConditions"); while (each.hasNext()) { - V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildOnPodConditions() { - return this.onPodConditions != null ? build(onPodConditions) : null; + public OnPodConditionsNested setNewOnPodConditionLike(int index,V1PodFailurePolicyOnPodConditionsPattern item) { + return new OnPodConditionsNested(index, item); } - public V1PodFailurePolicyOnPodConditionsPattern buildOnPodCondition(int index) { - return this.onPodConditions.get(index).build(); + 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").add(builder); + onPodConditions.set(index, builder); + } + return (A) this; } - public V1PodFailurePolicyOnPodConditionsPattern buildFirstOnPodCondition() { - return this.onPodConditions.get(0).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(action == null)) { + sb.append("action:"); + sb.append(action); + sb.append(","); + } + if (!(onExitCodes == null)) { + sb.append("onExitCodes:"); + sb.append(onExitCodes); + sb.append(","); + } + if (!(onPodConditions == null) && !(onPodConditions.isEmpty())) { + sb.append("onPodConditions:"); + sb.append(onPodConditions); + } + sb.append("}"); + return sb.toString(); } - public V1PodFailurePolicyOnPodConditionsPattern buildLastOnPodCondition() { - return this.onPodConditions.get(onPodConditions.size() - 1).build(); + public A withAction(String action) { + this.action = action; + return (A) this; } - public V1PodFailurePolicyOnPodConditionsPattern buildMatchingOnPodCondition(Predicate predicate) { - for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public OnExitCodesNested withNewOnExitCodes() { + return new OnExitCodesNested(null); } - public boolean hasMatchingOnPodCondition(Predicate predicate) { - for (V1PodFailurePolicyOnPodConditionsPatternBuilder item : onPodConditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public OnExitCodesNested withNewOnExitCodesLike(V1PodFailurePolicyOnExitCodesRequirement item) { + return new OnExitCodesNested(item); + } + + public A withOnExitCodes(V1PodFailurePolicyOnExitCodesRequirement onExitCodes) { + this._visitables.remove("onExitCodes"); + if (onExitCodes != null) { + this.onExitCodes = new V1PodFailurePolicyOnExitCodesRequirementBuilder(onExitCodes); + this._visitables.get("onExitCodes").add(this.onExitCodes); + } else { + this.onExitCodes = null; + this._visitables.get("onExitCodes").remove(this.onExitCodes); + } + return (A) this; } public A withOnPodConditions(List onPodConditions) { @@ -186,7 +337,7 @@ public A withOnPodConditions(List onPo return (A) this; } - public A withOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern... onPodConditions) { + public A withOnPodConditions(V1PodFailurePolicyOnPodConditionsPattern... onPodConditions) { if (this.onPodConditions != null) { this.onPodConditions.clear(); _visitables.remove("onPodConditions"); @@ -198,78 +349,14 @@ public A withOnPodConditions(io.kubernetes.client.openapi.models.V1PodFailurePol } return (A) this; } + public class OnExitCodesNested extends V1PodFailurePolicyOnExitCodesRequirementFluent> implements Nested{ - public boolean hasOnPodConditions() { - return this.onPodConditions != null && !this.onPodConditions.isEmpty(); - } - - public OnPodConditionsNested addNewOnPodCondition() { - return new OnPodConditionsNested(-1, null); - } - - public OnPodConditionsNested addNewOnPodConditionLike(V1PodFailurePolicyOnPodConditionsPattern item) { - return new OnPodConditionsNested(-1, item); - } - - public OnPodConditionsNested setNewOnPodConditionLike(int index,V1PodFailurePolicyOnPodConditionsPattern item) { - return new OnPodConditionsNested(index, item); - } - - public OnPodConditionsNested editOnPodCondition(int index) { - if (onPodConditions.size() <= index) throw new RuntimeException("Can't edit onPodConditions. Index exceeds size."); - return setNewOnPodConditionLike(index, buildOnPodCondition(index)); - } - - public OnPodConditionsNested editFirstOnPodCondition() { - if (onPodConditions.size() == 0) throw new RuntimeException("Can't edit first onPodConditions. The list is empty."); - return setNewOnPodConditionLike(0, buildOnPodCondition(0)); - } - - public OnPodConditionsNested editLastOnPodCondition() { - int index = onPodConditions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last onPodConditions. The list is empty."); - return setNewOnPodConditionLike(index, buildOnPodCondition(index)); - } - - public OnPodConditionsNested editMatchingOnPodCondition(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1PodFailurePolicyOnExitCodesRequirementFluent> implements Nested{ OnExitCodesNested(V1PodFailurePolicyOnExitCodesRequirement item) { this.builder = new V1PodFailurePolicyOnExitCodesRequirementBuilder(this, item); } - V1PodFailurePolicyOnExitCodesRequirementBuilder builder; - + public N and() { return (N) V1PodFailurePolicyRuleFluent.this.withOnExitCodes(builder.build()); } @@ -278,25 +365,24 @@ public N endOnExitCodes() { return and(); } - } public class OnPodConditionsNested extends V1PodFailurePolicyOnPodConditionsPatternFluent> implements Nested{ + + V1PodFailurePolicyOnPodConditionsPatternBuilder builder; + int index; + OnPodConditionsNested(int index,V1PodFailurePolicyOnPodConditionsPattern item) { this.index = index; this.builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(this, item); } - V1PodFailurePolicyOnPodConditionsPatternBuilder builder; - int index; - + public N and() { - return (N) V1PodFailurePolicyRuleFluent.this.setToOnPodConditions(index,builder.build()); + return (N) V1PodFailurePolicyRuleFluent.this.setToOnPodConditions(index, builder.build()); } public N endOnPodCondition() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java index 39ffa72e24..0c68f9b6a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodFluent> extends BaseFluent{ +public class V1PodFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1PodSpecBuilder spec; + private V1PodStatusBuilder status; + public V1PodFluent() { } public V1PodFluent(V1Pod instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1PodSpecBuilder spec; - private V1PodStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PodSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1PodStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1Pod instance) { - instance = (instance != null ? instance : new V1Pod()); + instance = instance != null ? instance : new V1Pod(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1PodSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PodStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1PodStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodFluent that = (V1PodFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1PodSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1PodSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1PodStatus item) { + return new StatusNested(item); } public A withSpec(V1PodSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1PodSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PodSpec 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 V1PodSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1PodSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1PodStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1PodStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1PodStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1PodStatus 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 V1PodStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1PodStatus 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; - V1PodFluent that = (V1PodFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1PodFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PodSpecFluent> implements Nested{ + + V1PodSpecBuilder builder; + SpecNested(V1PodSpec item) { this.builder = new V1PodSpecBuilder(this, item); } - V1PodSpecBuilder builder; - + public N and() { return (N) V1PodFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PodStatusFluent> implements Nested{ + + V1PodStatusBuilder builder; + StatusNested(V1PodStatus item) { this.builder = new V1PodStatusBuilder(this, item); } - V1PodStatusBuilder builder; - + public N and() { return (N) V1PodFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java index 1052ca51a4..7b15ebc92f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodIPBuilder extends V1PodIPFluent implements VisitableBuilder{ + + V1PodIPFluent fluent; + public V1PodIPBuilder() { this(new V1PodIP()); } @@ -10,22 +14,20 @@ public V1PodIPBuilder(V1PodIPFluent fluent) { this(fluent, new V1PodIP()); } - public V1PodIPBuilder(V1PodIPFluent fluent,V1PodIP instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodIPBuilder(V1PodIP instance) { this.fluent = this; this.copyInstance(instance); } - V1PodIPFluent fluent; + public V1PodIPBuilder(V1PodIPFluent fluent,V1PodIP instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodIP build() { V1PodIP buildable = new V1PodIP(); buildable.setIp(fluent.getIp()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java index 01133d1523..c02f262685 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodIPFluent> extends BaseFluent{ +public class V1PodIPFluent> extends BaseFluent{ + + private String ip; + public V1PodIPFluent() { } public V1PodIPFluent(V1PodIP instance) { this.copyInstance(instance); } - private String ip; - + protected void copyInstance(V1PodIP instance) { - instance = (instance != null ? instance : new V1PodIP()); + instance = instance != null ? instance : new V1PodIP(); if (instance != null) { - this.withIp(instance.getIp()); - } + this.withIp(instance.getIp()); + } } - public String getIp() { - return this.ip; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodIPFluent that = (V1PodIPFluent) o; + if (!(Objects.equals(ip, that.ip))) { + return false; + } + return true; } - public A withIp(String ip) { - this.ip = ip; - return (A) this; + public String getIp() { + return this.ip; } public boolean hasIp() { return this.ip != 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; - V1PodIPFluent that = (V1PodIPFluent) o; - if (!java.util.Objects.equals(ip, that.ip)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(ip, super.hashCode()); + return Objects.hash(ip); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (ip != null) { sb.append("ip:"); sb.append(ip); } + if (!(ip == null)) { + sb.append("ip:"); + sb.append(ip); + } sb.append("}"); return sb.toString(); } - + public A withIp(String ip) { + this.ip = ip; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java index a1dac3a58d..88ce5837a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodListBuilder extends V1PodListFluent implements VisitableBuilder{ + + V1PodListFluent fluent; + public V1PodListBuilder() { this(new V1PodList()); } @@ -10,17 +14,16 @@ public V1PodListBuilder(V1PodListFluent fluent) { this(fluent, new V1PodList()); } - public V1PodListBuilder(V1PodListFluent fluent,V1PodList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodListBuilder(V1PodList instance) { this.fluent = this; this.copyInstance(instance); } - V1PodListFluent fluent; + public V1PodListBuilder(V1PodListFluent fluent,V1PodList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodList build() { V1PodList buildable = new V1PodList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1PodList build() { return buildable; } - } \ No newline at end of file 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..d6e715f2e3 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodListFluent> extends BaseFluent{ +public class V1PodListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1PodListFluent() { } public V1PodListFluent(V1PodList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PodList instance) { - instance = (instance != null ? instance : new V1PodList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Pod item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Pod... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Pod item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Pod buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Pod... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Pod buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Pod... items) { - if (this.items == null) return (A)this; - for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Pod buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Pod item : items) {V1PodBuilder builder = new V1PodBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Pod buildMatchingItem(Predicate predicate) { + for (V1PodBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1PodBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1PodList instance) { + instance = instance != null ? instance : new V1PodList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Pod buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Pod buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Pod buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodListFluent that = (V1PodListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Pod buildMatchingItem(Predicate predicate) { - for (V1PodBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Pod... items) { + if (this.items == null) { + return (A) this; + } + for (V1Pod item : items) { + V1PodBuilder builder = new V1PodBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PodBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Pod item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Pod... items) { + public A withItems(V1Pod... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Pod... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Pod item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Pod 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1PodFluent> implements Nested{ - 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; - V1PodListFluent that = (V1PodListFluent) 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()); - } + V1PodBuilder builder; + int index; - 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 V1PodFluent> implements Nested{ ItemsNested(int index,V1Pod item) { this.index = index; this.builder = new V1PodBuilder(this, item); } - V1PodBuilder builder; - int index; - + public N and() { - return (N) V1PodListFluent.this.setToItems(index,builder.build()); + return (N) V1PodListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PodListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java index ce5bca133e..2b60d094b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodOSBuilder extends V1PodOSFluent implements VisitableBuilder{ + + V1PodOSFluent fluent; + public V1PodOSBuilder() { this(new V1PodOS()); } @@ -10,22 +14,20 @@ public V1PodOSBuilder(V1PodOSFluent fluent) { this(fluent, new V1PodOS()); } - public V1PodOSBuilder(V1PodOSFluent fluent,V1PodOS instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodOSBuilder(V1PodOS instance) { this.fluent = this; this.copyInstance(instance); } - V1PodOSFluent fluent; + public V1PodOSBuilder(V1PodOSFluent fluent,V1PodOS instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodOS build() { V1PodOS buildable = new V1PodOS(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java index 79c5c7a911..1f376d0446 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodOSFluent> extends BaseFluent{ +public class V1PodOSFluent> extends BaseFluent{ + + private String name; + public V1PodOSFluent() { } public V1PodOSFluent(V1PodOS instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1PodOS instance) { - instance = (instance != null ? instance : new V1PodOS()); + instance = instance != null ? instance : new V1PodOS(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } - public String getName() { - return this.name; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodOSFluent that = (V1PodOSFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getName() { + return this.name; } 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; - V1PodOSFluent that = (V1PodOSFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } 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); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java index b00d299d29..71beb519a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodReadinessGateBuilder extends V1PodReadinessGateFluent implements VisitableBuilder{ + + V1PodReadinessGateFluent fluent; + public V1PodReadinessGateBuilder() { this(new V1PodReadinessGate()); } @@ -10,22 +14,20 @@ public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent) { this(fluent, new V1PodReadinessGate()); } - public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent,V1PodReadinessGate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodReadinessGateBuilder(V1PodReadinessGate instance) { this.fluent = this; this.copyInstance(instance); } - V1PodReadinessGateFluent fluent; + public V1PodReadinessGateBuilder(V1PodReadinessGateFluent fluent,V1PodReadinessGate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodReadinessGate build() { V1PodReadinessGate buildable = new V1PodReadinessGate(); buildable.setConditionType(fluent.getConditionType()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java index ac4c56f939..cfa4a915ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodReadinessGateFluent> extends BaseFluent{ +public class V1PodReadinessGateFluent> extends BaseFluent{ + + private String conditionType; + public V1PodReadinessGateFluent() { } public V1PodReadinessGateFluent(V1PodReadinessGate instance) { this.copyInstance(instance); } - private String conditionType; - + protected void copyInstance(V1PodReadinessGate instance) { - instance = (instance != null ? instance : new V1PodReadinessGate()); + instance = instance != null ? instance : new V1PodReadinessGate(); if (instance != null) { - this.withConditionType(instance.getConditionType()); - } + this.withConditionType(instance.getConditionType()); + } } - public String getConditionType() { - return this.conditionType; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodReadinessGateFluent that = (V1PodReadinessGateFluent) o; + if (!(Objects.equals(conditionType, that.conditionType))) { + return false; + } + return true; } - public A withConditionType(String conditionType) { - this.conditionType = conditionType; - return (A) this; + public String getConditionType() { + return this.conditionType; } public boolean hasConditionType() { return this.conditionType != 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; - V1PodReadinessGateFluent that = (V1PodReadinessGateFluent) o; - if (!java.util.Objects.equals(conditionType, that.conditionType)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(conditionType, super.hashCode()); + return Objects.hash(conditionType); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (conditionType != null) { sb.append("conditionType:"); sb.append(conditionType); } + if (!(conditionType == null)) { + sb.append("conditionType:"); + sb.append(conditionType); + } sb.append("}"); return sb.toString(); } - + public A withConditionType(String conditionType) { + this.conditionType = conditionType; + return (A) this; + } + } \ No newline at end of file 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..98e0227f79 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodResourceClaimBuilder extends V1PodResourceClaimFluent implements VisitableBuilder{ + + V1PodResourceClaimFluent fluent; + public V1PodResourceClaimBuilder() { this(new V1PodResourceClaim()); } @@ -10,23 +14,22 @@ public V1PodResourceClaimBuilder(V1PodResourceClaimFluent fluent) { this(fluent, new V1PodResourceClaim()); } - public V1PodResourceClaimBuilder(V1PodResourceClaimFluent fluent,V1PodResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodResourceClaimBuilder(V1PodResourceClaim instance) { this.fluent = this; this.copyInstance(instance); } - V1PodResourceClaimFluent fluent; + public V1PodResourceClaimBuilder(V1PodResourceClaimFluent fluent,V1PodResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(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; } - } \ No newline at end of file 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..afa173a0b3 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 @@ -1,123 +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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodResourceClaimFluent> extends BaseFluent{ +public class V1PodResourceClaimFluent> extends BaseFluent{ + + private String name; + private String resourceClaimName; + private String resourceClaimTemplateName; + public V1PodResourceClaimFluent() { } public V1PodResourceClaimFluent(V1PodResourceClaim instance) { this.copyInstance(instance); } - private String name; - private V1ClaimSourceBuilder source; - + protected void copyInstance(V1PodResourceClaim instance) { - instance = (instance != null ? instance : new V1PodResourceClaim()); + instance = instance != null ? instance : new V1PodResourceClaim(); if (instance != null) { - this.withName(instance.getName()); - this.withSource(instance.getSource()); - } - } - - 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 V1ClaimSource buildSource() { - return this.source != null ? this.source.build() : null; - } - - 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); + this.withName(instance.getName()); + this.withResourceClaimName(instance.getResourceClaimName()); + this.withResourceClaimTemplateName(instance.getResourceClaimTemplateName()); } - return (A) this; } - public boolean hasSource() { - return this.source != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodResourceClaimFluent that = (V1PodResourceClaimFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } + if (!(Objects.equals(resourceClaimTemplateName, that.resourceClaimTemplateName))) { + return false; + } + return true; } - public SourceNested withNewSource() { - return new SourceNested(null); + public String getName() { + return this.name; } - public SourceNested withNewSourceLike(V1ClaimSource item) { - return new SourceNested(item); + public String getResourceClaimName() { + return this.resourceClaimName; } - public SourceNested editSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(null)); + public String getResourceClaimTemplateName() { + return this.resourceClaimTemplateName; } - public SourceNested editOrNewSource() { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(new V1ClaimSourceBuilder().build())); + public boolean hasName() { + return this.name != null; } - public SourceNested editOrNewSourceLike(V1ClaimSource item) { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(item)); + public boolean hasResourceClaimName() { + return this.resourceClaimName != 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; - V1PodResourceClaimFluent that = (V1PodResourceClaimFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(source, that.source)) return false; - return true; + public boolean hasResourceClaimTemplateName() { + return this.resourceClaimTemplateName != null; } public int hashCode() { - return java.util.Objects.hash(name, source, super.hashCode()); + return Objects.hash(name, resourceClaimName, resourceClaimTemplateName); } 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); } - sb.append("}"); - return sb.toString(); - } - public class SourceNested extends V1ClaimSourceFluent> implements Nested{ - SourceNested(V1ClaimSource item) { - this.builder = new V1ClaimSourceBuilder(this, item); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); } - V1ClaimSourceBuilder builder; - - public N and() { - return (N) V1PodResourceClaimFluent.this.withSource(builder.build()); + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); + sb.append(","); } - - public N endSource() { - return and(); + if (!(resourceClaimTemplateName == null)) { + sb.append("resourceClaimTemplateName:"); + sb.append(resourceClaimTemplateName); } - + sb.append("}"); + return sb.toString(); + } + public A withName(String name) { + this.name = name; + return (A) this; } - + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + + public A withResourceClaimTemplateName(String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java index d12e578056..333d6e5cc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodResourceClaimStatusBuilder extends V1PodResourceClaimStatusFluent implements VisitableBuilder{ + + V1PodResourceClaimStatusFluent fluent; + public V1PodResourceClaimStatusBuilder() { this(new V1PodResourceClaimStatus()); } @@ -10,17 +14,16 @@ public V1PodResourceClaimStatusBuilder(V1PodResourceClaimStatusFluent fluent) this(fluent, new V1PodResourceClaimStatus()); } - public V1PodResourceClaimStatusBuilder(V1PodResourceClaimStatusFluent fluent,V1PodResourceClaimStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodResourceClaimStatusBuilder(V1PodResourceClaimStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PodResourceClaimStatusFluent fluent; + public V1PodResourceClaimStatusBuilder(V1PodResourceClaimStatusFluent fluent,V1PodResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodResourceClaimStatus build() { V1PodResourceClaimStatus buildable = new V1PodResourceClaimStatus(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1PodResourceClaimStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java index 224f752358..0863735440 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodResourceClaimStatusFluent> extends BaseFluent{ +public class V1PodResourceClaimStatusFluent> extends BaseFluent{ + + private String name; + private String resourceClaimName; + public V1PodResourceClaimStatusFluent() { } public V1PodResourceClaimStatusFluent(V1PodResourceClaimStatus instance) { this.copyInstance(instance); } - private String name; - private String resourceClaimName; - + protected void copyInstance(V1PodResourceClaimStatus instance) { - instance = (instance != null ? instance : new V1PodResourceClaimStatus()); + instance = instance != null ? instance : new V1PodResourceClaimStatus(); if (instance != null) { - this.withName(instance.getName()); - this.withResourceClaimName(instance.getResourceClaimName()); - } + this.withName(instance.getName()); + this.withResourceClaimName(instance.getResourceClaimName()); + } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodResourceClaimStatusFluent that = (V1PodResourceClaimStatusFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public String getResourceClaimName() { return this.resourceClaimName; } - public A withResourceClaimName(String resourceClaimName) { - this.resourceClaimName = resourceClaimName; - return (A) this; + public boolean hasName() { + return this.name != null; } public boolean hasResourceClaimName() { return this.resourceClaimName != 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; - V1PodResourceClaimStatusFluent that = (V1PodResourceClaimStatusFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(resourceClaimName, that.resourceClaimName)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, resourceClaimName, super.hashCode()); + return Objects.hash(name, resourceClaimName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (resourceClaimName != null) { sb.append("resourceClaimName:"); sb.append(resourceClaimName); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java index 9ed519a22d..eb2f91058f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodSchedulingGateBuilder extends V1PodSchedulingGateFluent implements VisitableBuilder{ + + V1PodSchedulingGateFluent fluent; + public V1PodSchedulingGateBuilder() { this(new V1PodSchedulingGate()); } @@ -10,22 +14,20 @@ public V1PodSchedulingGateBuilder(V1PodSchedulingGateFluent fluent) { this(fluent, new V1PodSchedulingGate()); } - public V1PodSchedulingGateBuilder(V1PodSchedulingGateFluent fluent,V1PodSchedulingGate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodSchedulingGateBuilder(V1PodSchedulingGate instance) { this.fluent = this; this.copyInstance(instance); } - V1PodSchedulingGateFluent fluent; + public V1PodSchedulingGateBuilder(V1PodSchedulingGateFluent fluent,V1PodSchedulingGate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodSchedulingGate build() { V1PodSchedulingGate buildable = new V1PodSchedulingGate(); buildable.setName(fluent.getName()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java index cb4b1c268a..5843560c4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodSchedulingGateFluent> extends BaseFluent{ +public class V1PodSchedulingGateFluent> extends BaseFluent{ + + private String name; + public V1PodSchedulingGateFluent() { } public V1PodSchedulingGateFluent(V1PodSchedulingGate instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1PodSchedulingGate instance) { - instance = (instance != null ? instance : new V1PodSchedulingGate()); + instance = instance != null ? instance : new V1PodSchedulingGate(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } - public String getName() { - return this.name; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodSchedulingGateFluent that = (V1PodSchedulingGateFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getName() { + return this.name; } 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; - V1PodSchedulingGateFluent that = (V1PodSchedulingGateFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, super.hashCode()); + return Objects.hash(name); } 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); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ 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 bc5ea570d7..44ac62cc47 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodSecurityContextBuilder extends V1PodSecurityContextFluent implements VisitableBuilder{ + + V1PodSecurityContextFluent fluent; + public V1PodSecurityContextBuilder() { this(new V1PodSecurityContext()); } @@ -10,17 +14,16 @@ public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent) { this(fluent, new V1PodSecurityContext()); } - public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent,V1PodSecurityContext instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodSecurityContextBuilder(V1PodSecurityContext instance) { this.fluent = this; this.copyInstance(instance); } - V1PodSecurityContextFluent fluent; + public V1PodSecurityContextBuilder(V1PodSecurityContextFluent fluent,V1PodSecurityContext instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodSecurityContext build() { V1PodSecurityContext buildable = new V1PodSecurityContext(); buildable.setAppArmorProfile(fluent.buildAppArmorProfile()); @@ -29,13 +32,14 @@ public V1PodSecurityContext build() { 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; } - } \ No newline at end of file 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 fa3f3eb69d..1cd09b5f12 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 @@ -1,307 +1,706 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; import java.lang.Long; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodSecurityContextFluent> extends BaseFluent{ - public V1PodSecurityContextFluent() { - } - - public V1PodSecurityContextFluent(V1PodSecurityContext instance) { - this.copyInstance(instance); - } +public class V1PodSecurityContextFluent> extends BaseFluent{ + 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; + + public V1PodSecurityContextFluent() { + } - 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.withSeLinuxOptions(instance.getSeLinuxOptions()); - this.withSeccompProfile(instance.getSeccompProfile()); - this.withSupplementalGroups(instance.getSupplementalGroups()); - this.withSysctls(instance.getSysctls()); - this.withWindowsOptions(instance.getWindowsOptions()); - } + public V1PodSecurityContextFluent(V1PodSecurityContext instance) { + this.copyInstance(instance); + } + + 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 V1AppArmorProfile buildAppArmorProfile() { - return this.appArmorProfile != null ? this.appArmorProfile.build() : null; + public A addAllToSysctls(Collection items) { + if (this.sysctls == null) { + this.sysctls = new ArrayList(); + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").add(builder); + this.sysctls.add(builder); + } + return (A) this; } - public A withAppArmorProfile(V1AppArmorProfile appArmorProfile) { - this._visitables.remove("appArmorProfile"); - if (appArmorProfile != null) { - this.appArmorProfile = new V1AppArmorProfileBuilder(appArmorProfile); - this._visitables.get("appArmorProfile").add(this.appArmorProfile); + public SysctlsNested addNewSysctl() { + return new SysctlsNested(-1, null); + } + + public SysctlsNested addNewSysctlLike(V1Sysctl item) { + return new SysctlsNested(-1, item); + } + + public A addToSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + this.supplementalGroups = new ArrayList(); + } + for (Long item : items) { + this.supplementalGroups.add(item); + } + return (A) this; + } + + 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 addToSysctls(V1Sysctl... items) { + if (this.sysctls == null) { + this.sysctls = new ArrayList(); + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").add(builder); + this.sysctls.add(builder); + } + return (A) this; + } + + 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 { - this.appArmorProfile = null; - this._visitables.get("appArmorProfile").remove(this.appArmorProfile); + _visitables.get("sysctls").add(builder); + sysctls.add(index, builder); } return (A) this; } - public boolean hasAppArmorProfile() { - return this.appArmorProfile != null; + public V1AppArmorProfile buildAppArmorProfile() { + return this.appArmorProfile != null ? this.appArmorProfile.build() : null; } - public AppArmorProfileNested withNewAppArmorProfile() { - return new AppArmorProfileNested(null); + public V1Sysctl buildFirstSysctl() { + return this.sysctls.get(0).build(); } - public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { - return new AppArmorProfileNested(item); + public V1Sysctl buildLastSysctl() { + return this.sysctls.get(sysctls.size() - 1).build(); + } + + public V1Sysctl buildMatchingSysctl(Predicate predicate) { + for (V1SysctlBuilder item : sysctls) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1SELinuxOptions buildSeLinuxOptions() { + return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; + } + + public V1SeccompProfile buildSeccompProfile() { + return this.seccompProfile != null ? this.seccompProfile.build() : null; + } + + public V1Sysctl buildSysctl(int index) { + return this.sysctls.get(index).build(); + } + + public List buildSysctls() { + return this.sysctls != null ? build(sysctls) : null; + } + + public V1WindowsSecurityContextOptions buildWindowsOptions() { + return this.windowsOptions != null ? this.windowsOptions.build() : null; + } + + 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 AppArmorProfileNested editAppArmorProfile() { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(null)); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(null)); + } + + public SysctlsNested editFirstSysctl() { + if (sysctls.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sysctls")); + } + return this.setNewSysctlLike(0, this.buildSysctl(0)); + } + + public SysctlsNested editLastSysctl() { + int index = sysctls.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sysctls")); + } + return this.setNewSysctlLike(index, this.buildSysctl(index)); + } + + public SysctlsNested editMatchingSysctl(Predicate predicate) { + int index = -1; + for (int i = 0;i < sysctls.size();i++) { + if (predicate.test(sysctls.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sysctls")); + } + return this.setNewSysctlLike(index, this.buildSysctl(index)); } public AppArmorProfileNested editOrNewAppArmorProfile() { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); } public AppArmorProfileNested editOrNewAppArmorProfileLike(V1AppArmorProfile item) { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(item)); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(item)); } - public Long getFsGroup() { - return this.fsGroup; + public SeLinuxOptionsNested editOrNewSeLinuxOptions() { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); } - public A withFsGroup(Long fsGroup) { - this.fsGroup = fsGroup; - return (A) this; + public SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(item)); } - public boolean hasFsGroup() { - return this.fsGroup != null; + public SeccompProfileNested editOrNewSeccompProfile() { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); + } + + public SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(item)); + } + + public WindowsOptionsNested editOrNewWindowsOptions() { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); + } + + public WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(item)); + } + + public SeLinuxOptionsNested editSeLinuxOptions() { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(null)); + } + + public SeccompProfileNested editSeccompProfile() { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(null)); + } + + public SysctlsNested editSysctl(int index) { + if (sysctls.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sysctls")); + } + return this.setNewSysctlLike(index, this.buildSysctl(index)); + } + + public WindowsOptionsNested editWindowsOptions() { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodSecurityContextFluent that = (V1PodSecurityContextFluent) o; + if (!(Objects.equals(appArmorProfile, that.appArmorProfile))) { + return false; + } + if (!(Objects.equals(fsGroup, that.fsGroup))) { + return false; + } + if (!(Objects.equals(fsGroupChangePolicy, that.fsGroupChangePolicy))) { + return false; + } + if (!(Objects.equals(runAsGroup, that.runAsGroup))) { + return false; + } + if (!(Objects.equals(runAsNonRoot, that.runAsNonRoot))) { + return false; + } + if (!(Objects.equals(runAsUser, that.runAsUser))) { + return false; + } + if (!(Objects.equals(seLinuxChangePolicy, that.seLinuxChangePolicy))) { + return false; + } + if (!(Objects.equals(seLinuxOptions, that.seLinuxOptions))) { + return false; + } + if (!(Objects.equals(seccompProfile, that.seccompProfile))) { + return false; + } + if (!(Objects.equals(supplementalGroups, that.supplementalGroups))) { + return false; + } + if (!(Objects.equals(supplementalGroupsPolicy, that.supplementalGroupsPolicy))) { + return false; + } + if (!(Objects.equals(sysctls, that.sysctls))) { + return false; + } + if (!(Objects.equals(windowsOptions, that.windowsOptions))) { + return false; + } + return true; + } + + public Long getFirstSupplementalGroup() { + return this.supplementalGroups.get(0); + } + + public Long getFsGroup() { + return this.fsGroup; } public String getFsGroupChangePolicy() { return this.fsGroupChangePolicy; } - public A withFsGroupChangePolicy(String fsGroupChangePolicy) { - this.fsGroupChangePolicy = fsGroupChangePolicy; - return (A) this; + public Long getLastSupplementalGroup() { + return this.supplementalGroups.get(supplementalGroups.size() - 1); } - public boolean hasFsGroupChangePolicy() { - return this.fsGroupChangePolicy != null; + public Long getMatchingSupplementalGroup(Predicate predicate) { + for (Long item : supplementalGroups) { + if (predicate.test(item)) { + return item; + } + } + return null; } public Long getRunAsGroup() { return this.runAsGroup; } - public A withRunAsGroup(Long runAsGroup) { - this.runAsGroup = runAsGroup; - return (A) this; + public Boolean getRunAsNonRoot() { + return this.runAsNonRoot; } - public boolean hasRunAsGroup() { - return this.runAsGroup != null; + public Long getRunAsUser() { + return this.runAsUser; } - public Boolean getRunAsNonRoot() { - return this.runAsNonRoot; + public String getSeLinuxChangePolicy() { + return this.seLinuxChangePolicy; } - public A withRunAsNonRoot(Boolean runAsNonRoot) { - this.runAsNonRoot = runAsNonRoot; - return (A) this; + public Long getSupplementalGroup(int index) { + return this.supplementalGroups.get(index); } - public boolean hasRunAsNonRoot() { - return this.runAsNonRoot != null; + public List getSupplementalGroups() { + return this.supplementalGroups; } - public Long getRunAsUser() { - return this.runAsUser; + public String getSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy; } - public A withRunAsUser(Long runAsUser) { - this.runAsUser = runAsUser; - return (A) this; + public boolean hasAppArmorProfile() { + return this.appArmorProfile != null; } - public boolean hasRunAsUser() { - return this.runAsUser != null; + public boolean hasFsGroup() { + return this.fsGroup != null; } - public V1SELinuxOptions buildSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; + public boolean hasFsGroupChangePolicy() { + return this.fsGroupChangePolicy != null; } - public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { - this._visitables.remove("seLinuxOptions"); - if (seLinuxOptions != null) { - this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); - this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); - } else { - this.seLinuxOptions = null; - this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); - } - return (A) this; + public boolean hasMatchingSupplementalGroup(Predicate predicate) { + for (Long item : supplementalGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSysctl(Predicate predicate) { + for (V1SysctlBuilder item : sysctls) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRunAsGroup() { + return this.runAsGroup != null; + } + + public boolean hasRunAsNonRoot() { + return this.runAsNonRoot != null; + } + + public boolean hasRunAsUser() { + return this.runAsUser != null; + } + + public boolean hasSeLinuxChangePolicy() { + return this.seLinuxChangePolicy != null; } public boolean hasSeLinuxOptions() { return this.seLinuxOptions != null; } - public SeLinuxOptionsNested withNewSeLinuxOptions() { - return new SeLinuxOptionsNested(null); + public boolean hasSeccompProfile() { + return this.seccompProfile != null; } - public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return new SeLinuxOptionsNested(item); + public boolean hasSupplementalGroups() { + return this.supplementalGroups != null && !(this.supplementalGroups.isEmpty()); } - public SeLinuxOptionsNested editSeLinuxOptions() { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(null)); + public boolean hasSupplementalGroupsPolicy() { + return this.supplementalGroupsPolicy != null; } - public SeLinuxOptionsNested editOrNewSeLinuxOptions() { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); + public boolean hasSysctls() { + return this.sysctls != null && !(this.sysctls.isEmpty()); } - public SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(item)); + public boolean hasWindowsOptions() { + return this.windowsOptions != null; } - public V1SeccompProfile buildSeccompProfile() { - return this.seccompProfile != null ? this.seccompProfile.build() : null; + public int hashCode() { + return Objects.hash(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxChangePolicy, seLinuxOptions, seccompProfile, supplementalGroups, supplementalGroupsPolicy, sysctls, windowsOptions); } - public A withSeccompProfile(V1SeccompProfile seccompProfile) { - this._visitables.remove("seccompProfile"); - if (seccompProfile != null) { - this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); - this._visitables.get("seccompProfile").add(this.seccompProfile); + public A removeAllFromSupplementalGroups(Collection items) { + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(item); + } + return (A) this; + } + + public A removeAllFromSysctls(Collection items) { + if (this.sysctls == null) { + return (A) this; + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").remove(builder); + this.sysctls.remove(builder); + } + return (A) this; + } + + public A removeFromSupplementalGroups(Long... items) { + if (this.supplementalGroups == null) { + return (A) this; + } + for (Long item : items) { + this.supplementalGroups.remove(item); + } + return (A) this; + } + + public A removeFromSysctls(V1Sysctl... items) { + if (this.sysctls == null) { + return (A) this; + } + for (V1Sysctl item : items) { + V1SysctlBuilder builder = new V1SysctlBuilder(item); + _visitables.get("sysctls").remove(builder); + this.sysctls.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSysctls(Predicate predicate) { + if (sysctls == null) { + return (A) this; + } + Iterator each = sysctls.iterator(); + List visitables = _visitables.get("sysctls"); + while (each.hasNext()) { + V1SysctlBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SysctlsNested setNewSysctlLike(int index,V1Sysctl item) { + return new SysctlsNested(index, item); + } + + 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 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 { - this.seccompProfile = null; - this._visitables.get("seccompProfile").remove(this.seccompProfile); + _visitables.get("sysctls").add(builder); + sysctls.set(index, builder); } return (A) this; } - public boolean hasSeccompProfile() { - return this.seccompProfile != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(appArmorProfile == null)) { + sb.append("appArmorProfile:"); + sb.append(appArmorProfile); + sb.append(","); + } + if (!(fsGroup == null)) { + sb.append("fsGroup:"); + sb.append(fsGroup); + sb.append(","); + } + if (!(fsGroupChangePolicy == null)) { + sb.append("fsGroupChangePolicy:"); + sb.append(fsGroupChangePolicy); + sb.append(","); + } + if (!(runAsGroup == null)) { + sb.append("runAsGroup:"); + sb.append(runAsGroup); + sb.append(","); + } + if (!(runAsNonRoot == null)) { + sb.append("runAsNonRoot:"); + sb.append(runAsNonRoot); + sb.append(","); + } + if (!(runAsUser == null)) { + sb.append("runAsUser:"); + sb.append(runAsUser); + sb.append(","); + } + if (!(seLinuxChangePolicy == null)) { + sb.append("seLinuxChangePolicy:"); + sb.append(seLinuxChangePolicy); + sb.append(","); + } + if (!(seLinuxOptions == null)) { + sb.append("seLinuxOptions:"); + sb.append(seLinuxOptions); + sb.append(","); + } + if (!(seccompProfile == null)) { + sb.append("seccompProfile:"); + sb.append(seccompProfile); + sb.append(","); + } + if (!(supplementalGroups == null) && !(supplementalGroups.isEmpty())) { + sb.append("supplementalGroups:"); + sb.append(supplementalGroups); + sb.append(","); + } + if (!(supplementalGroupsPolicy == null)) { + sb.append("supplementalGroupsPolicy:"); + sb.append(supplementalGroupsPolicy); + sb.append(","); + } + if (!(sysctls == null) && !(sysctls.isEmpty())) { + sb.append("sysctls:"); + sb.append(sysctls); + sb.append(","); + } + if (!(windowsOptions == null)) { + sb.append("windowsOptions:"); + sb.append(windowsOptions); + } + sb.append("}"); + return sb.toString(); } - public SeccompProfileNested withNewSeccompProfile() { - return new SeccompProfileNested(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 A withFsGroup(Long fsGroup) { + this.fsGroup = fsGroup; + return (A) this; } - public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { - return new SeccompProfileNested(item); + public A withFsGroupChangePolicy(String fsGroupChangePolicy) { + this.fsGroupChangePolicy = fsGroupChangePolicy; + return (A) this; } - public SeccompProfileNested editSeccompProfile() { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(null)); + public AppArmorProfileNested withNewAppArmorProfile() { + return new AppArmorProfileNested(null); } - public SeccompProfileNested editOrNewSeccompProfile() { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); + public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { + return new AppArmorProfileNested(item); } - public SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(item)); + public SeLinuxOptionsNested withNewSeLinuxOptions() { + return new SeLinuxOptionsNested(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 SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { + return new SeLinuxOptionsNested(item); } - public A setToSupplementalGroups(int index,Long item) { - if (this.supplementalGroups == null) {this.supplementalGroups = new ArrayList();} - this.supplementalGroups.set(index, item); return (A)this; + public SeccompProfileNested withNewSeccompProfile() { + return new SeccompProfileNested(null); } - 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 SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { + return new SeccompProfileNested(item); } - 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 WindowsOptionsNested withNewWindowsOptions() { + return new WindowsOptionsNested(null); } - 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 WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { + return new WindowsOptionsNested(item); } - public A removeAllFromSupplementalGroups(Collection items) { - if (this.supplementalGroups == null) return (A)this; - for (Long item : items) { this.supplementalGroups.remove(item);} return (A)this; + public A withRunAsGroup(Long runAsGroup) { + this.runAsGroup = runAsGroup; + return (A) this; } - public List getSupplementalGroups() { - return this.supplementalGroups; + public A withRunAsNonRoot() { + return withRunAsNonRoot(true); } - public Long getSupplementalGroup(int index) { - return this.supplementalGroups.get(index); + public A withRunAsNonRoot(Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; + return (A) this; } - public Long getFirstSupplementalGroup() { - return this.supplementalGroups.get(0); + public A withRunAsUser(Long runAsUser) { + this.runAsUser = runAsUser; + return (A) this; } - public Long getLastSupplementalGroup() { - return this.supplementalGroups.get(supplementalGroups.size() - 1); + public A withSeLinuxChangePolicy(String seLinuxChangePolicy) { + this.seLinuxChangePolicy = seLinuxChangePolicy; + return (A) this; } - public Long getMatchingSupplementalGroup(Predicate predicate) { - for (Long item : supplementalGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { + this._visitables.remove("seLinuxOptions"); + if (seLinuxOptions != null) { + this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); + this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); + } else { + this.seLinuxOptions = null; + this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); + } + return (A) this; } - public boolean hasMatchingSupplementalGroup(Predicate predicate) { - for (Long item : supplementalGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withSeccompProfile(V1SeccompProfile seccompProfile) { + this._visitables.remove("seccompProfile"); + if (seccompProfile != null) { + this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); + this._visitables.get("seccompProfile").add(this.seccompProfile); + } else { + this.seccompProfile = null; + this._visitables.get("seccompProfile").remove(this.seccompProfile); + } + return (A) this; } public A withSupplementalGroups(List supplementalGroups) { @@ -316,7 +715,7 @@ public A withSupplementalGroups(List supplementalGroups) { return (A) this; } - public A withSupplementalGroups(java.lang.Long... supplementalGroups) { + public A withSupplementalGroups(Long... supplementalGroups) { if (this.supplementalGroups != null) { this.supplementalGroups.clear(); _visitables.remove("supplementalGroups"); @@ -329,90 +728,9 @@ public A withSupplementalGroups(java.lang.Long... supplementalGroups) { return (A) this; } - public boolean hasSupplementalGroups() { - return this.supplementalGroups != null && !this.supplementalGroups.isEmpty(); - } - - 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);} - 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);} - return (A)this; - } - - public A addToSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items) { - if (this.sysctls == null) {this.sysctls = new ArrayList();} - for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").add(builder);this.sysctls.add(builder);} return (A)this; - } - - public A addAllToSysctls(Collection items) { - if (this.sysctls == null) {this.sysctls = new ArrayList();} - for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").add(builder);this.sysctls.add(builder);} return (A)this; - } - - public A removeFromSysctls(io.kubernetes.client.openapi.models.V1Sysctl... items) { - if (this.sysctls == null) return (A)this; - for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").remove(builder); this.sysctls.remove(builder);} return (A)this; - } - - public A removeAllFromSysctls(Collection items) { - if (this.sysctls == null) return (A)this; - for (V1Sysctl item : items) {V1SysctlBuilder builder = new V1SysctlBuilder(item);_visitables.get("sysctls").remove(builder); this.sysctls.remove(builder);} return (A)this; - } - - public A removeMatchingFromSysctls(Predicate predicate) { - if (sysctls == null) return (A) this; - final Iterator each = sysctls.iterator(); - final List visitables = _visitables.get("sysctls"); - while (each.hasNext()) { - V1SysctlBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildSysctls() { - return this.sysctls != null ? build(sysctls) : null; - } - - public V1Sysctl buildSysctl(int index) { - return this.sysctls.get(index).build(); - } - - public V1Sysctl buildFirstSysctl() { - return this.sysctls.get(0).build(); - } - - public V1Sysctl buildLastSysctl() { - return this.sysctls.get(sysctls.size() - 1).build(); - } - - public V1Sysctl buildMatchingSysctl(Predicate predicate) { - for (V1SysctlBuilder item : sysctls) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingSysctl(Predicate predicate) { - for (V1SysctlBuilder item : sysctls) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withSupplementalGroupsPolicy(String supplementalGroupsPolicy) { + this.supplementalGroupsPolicy = supplementalGroupsPolicy; + return (A) this; } public A withSysctls(List sysctls) { @@ -430,7 +748,7 @@ public A withSysctls(List sysctls) { return (A) this; } - public A withSysctls(io.kubernetes.client.openapi.models.V1Sysctl... sysctls) { + public A withSysctls(V1Sysctl... sysctls) { if (this.sysctls != null) { this.sysctls.clear(); _visitables.remove("sysctls"); @@ -443,51 +761,6 @@ public A withSysctls(io.kubernetes.client.openapi.models.V1Sysctl... sysctls) { return (A) this; } - public boolean hasSysctls() { - return this.sysctls != null && !this.sysctls.isEmpty(); - } - - public SysctlsNested addNewSysctl() { - return new SysctlsNested(-1, null); - } - - public SysctlsNested addNewSysctlLike(V1Sysctl item) { - return new SysctlsNested(-1, item); - } - - public SysctlsNested setNewSysctlLike(int index,V1Sysctl item) { - return new SysctlsNested(index, item); - } - - public SysctlsNested editSysctl(int index) { - if (sysctls.size() <= index) throw new RuntimeException("Can't edit sysctls. Index exceeds size."); - return setNewSysctlLike(index, buildSysctl(index)); - } - - public SysctlsNested editFirstSysctl() { - if (sysctls.size() == 0) throw new RuntimeException("Can't edit first sysctls. The list is empty."); - return setNewSysctlLike(0, buildSysctl(0)); - } - - public SysctlsNested editLastSysctl() { - int index = sysctls.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last sysctls. The list is empty."); - return setNewSysctlLike(index, buildSysctl(index)); - } - - public SysctlsNested editMatchingSysctl(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1AppArmorProfileFluent> implements Nested{ - public boolean hasWindowsOptions() { - return this.windowsOptions != null; - } - - public WindowsOptionsNested withNewWindowsOptions() { - return new WindowsOptionsNested(null); - } - - public WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return new WindowsOptionsNested(item); - } - - public WindowsOptionsNested editWindowsOptions() { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(null)); - } - - public WindowsOptionsNested editOrNewWindowsOptions() { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); - } - - public WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).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; - 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(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(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(appArmorProfile, fsGroup, fsGroupChangePolicy, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, supplementalGroups, 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 (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 (sysctls != null && !sysctls.isEmpty()) { sb.append("sysctls:"); sb.append(sysctls + ","); } - if (windowsOptions != null) { sb.append("windowsOptions:"); sb.append(windowsOptions); } - sb.append("}"); - return sb.toString(); - } + V1AppArmorProfileBuilder builder; - 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()); } @@ -582,14 +788,15 @@ public N endAppArmorProfile() { return and(); } - } public class SeLinuxOptionsNested extends V1SELinuxOptionsFluent> implements Nested{ + + V1SELinuxOptionsBuilder builder; + SeLinuxOptionsNested(V1SELinuxOptions item) { this.builder = new V1SELinuxOptionsBuilder(this, item); } - V1SELinuxOptionsBuilder builder; - + public N and() { return (N) V1PodSecurityContextFluent.this.withSeLinuxOptions(builder.build()); } @@ -598,14 +805,15 @@ public N endSeLinuxOptions() { return and(); } - } public class SeccompProfileNested extends V1SeccompProfileFluent> implements Nested{ + + V1SeccompProfileBuilder builder; + SeccompProfileNested(V1SeccompProfile item) { this.builder = new V1SeccompProfileBuilder(this, item); } - V1SeccompProfileBuilder builder; - + public N and() { return (N) V1PodSecurityContextFluent.this.withSeccompProfile(builder.build()); } @@ -614,32 +822,34 @@ public N endSeccompProfile() { return and(); } - } public class SysctlsNested extends V1SysctlFluent> implements Nested{ + + V1SysctlBuilder builder; + int index; + SysctlsNested(int index,V1Sysctl item) { this.index = index; this.builder = new V1SysctlBuilder(this, item); } - V1SysctlBuilder builder; - int index; - + public N and() { - return (N) V1PodSecurityContextFluent.this.setToSysctls(index,builder.build()); + return (N) V1PodSecurityContextFluent.this.setToSysctls(index, builder.build()); } public N endSysctl() { return and(); } - } public class WindowsOptionsNested extends V1WindowsSecurityContextOptionsFluent> implements Nested{ + + V1WindowsSecurityContextOptionsBuilder builder; + WindowsOptionsNested(V1WindowsSecurityContextOptions item) { this.builder = new V1WindowsSecurityContextOptionsBuilder(this, item); } - V1WindowsSecurityContextOptionsBuilder builder; - + public N and() { return (N) V1PodSecurityContextFluent.this.withWindowsOptions(builder.build()); } @@ -648,7 +858,5 @@ public N endWindowsOptions() { return and(); } - } - } \ No newline at end of file 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..1be86f8742 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodSpecBuilder extends V1PodSpecFluent implements VisitableBuilder{ + + V1PodSpecFluent fluent; + public V1PodSpecBuilder() { this(new V1PodSpec()); } @@ -10,17 +14,16 @@ public V1PodSpecBuilder(V1PodSpecFluent fluent) { this(fluent, new V1PodSpec()); } - public V1PodSpecBuilder(V1PodSpecFluent fluent,V1PodSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodSpecBuilder(V1PodSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PodSpecFluent fluent; + public V1PodSpecBuilder(V1PodSpecFluent fluent,V1PodSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodSpec build() { V1PodSpec buildable = new V1PodSpec(); buildable.setActiveDeadlineSeconds(fluent.getActiveDeadlineSeconds()); @@ -37,6 +40,7 @@ public V1PodSpec build() { buildable.setHostPID(fluent.getHostPID()); buildable.setHostUsers(fluent.getHostUsers()); buildable.setHostname(fluent.getHostname()); + buildable.setHostnameOverride(fluent.getHostnameOverride()); buildable.setImagePullSecrets(fluent.buildImagePullSecrets()); buildable.setInitContainers(fluent.buildInitContainers()); buildable.setNodeName(fluent.getNodeName()); @@ -48,6 +52,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()); @@ -62,8 +67,8 @@ public V1PodSpec build() { buildable.setTolerations(fluent.buildTolerations()); buildable.setTopologySpreadConstraints(fluent.buildTopologySpreadConstraints()); buildable.setVolumes(fluent.buildVolumes()); + buildable.setWorkloadRef(fluent.buildWorkloadRef()); return buildable; } - } \ No newline at end of file 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..8734a8a87d 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 @@ -1,34 +1,32 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.util.ArrayList; -import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.fluent.BaseFluent; -import java.util.List; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; +import java.lang.Integer; import java.lang.Long; -import java.util.Collection; import java.lang.Object; -import java.util.Map; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; -import io.kubernetes.client.custom.Quantity; -import java.lang.Integer; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodSpecFluent> extends BaseFluent{ - public V1PodSpecFluent() { - } - - public V1PodSpecFluent(V1PodSpec instance) { - this.copyInstance(instance); - } +public class V1PodSpecFluent> extends BaseFluent{ + private Long activeDeadlineSeconds; private V1AffinityBuilder affinity; private Boolean automountServiceAccountToken; @@ -43,6 +41,7 @@ public V1PodSpecFluent(V1PodSpec instance) { private Boolean hostPID; private Boolean hostUsers; private String hostname; + private String hostnameOverride; private ArrayList imagePullSecrets; private ArrayList initContainers; private String nodeName; @@ -54,6 +53,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; @@ -68,2162 +68,3362 @@ public V1PodSpecFluent(V1PodSpec instance) { private ArrayList tolerations; private ArrayList topologySpreadConstraints; private ArrayList volumes; - - protected void copyInstance(V1PodSpec instance) { - instance = (instance != null ? instance : new V1PodSpec()); - if (instance != null) { - this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); - this.withAffinity(instance.getAffinity()); - this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); - this.withContainers(instance.getContainers()); - this.withDnsConfig(instance.getDnsConfig()); - this.withDnsPolicy(instance.getDnsPolicy()); - this.withEnableServiceLinks(instance.getEnableServiceLinks()); - this.withEphemeralContainers(instance.getEphemeralContainers()); - this.withHostAliases(instance.getHostAliases()); - this.withHostIPC(instance.getHostIPC()); - this.withHostNetwork(instance.getHostNetwork()); - this.withHostPID(instance.getHostPID()); - this.withHostUsers(instance.getHostUsers()); - this.withHostname(instance.getHostname()); - this.withImagePullSecrets(instance.getImagePullSecrets()); - this.withInitContainers(instance.getInitContainers()); - this.withNodeName(instance.getNodeName()); - this.withNodeSelector(instance.getNodeSelector()); - this.withOs(instance.getOs()); - this.withOverhead(instance.getOverhead()); - this.withPreemptionPolicy(instance.getPreemptionPolicy()); - this.withPriority(instance.getPriority()); - this.withPriorityClassName(instance.getPriorityClassName()); - this.withReadinessGates(instance.getReadinessGates()); - this.withResourceClaims(instance.getResourceClaims()); - this.withRestartPolicy(instance.getRestartPolicy()); - this.withRuntimeClassName(instance.getRuntimeClassName()); - this.withSchedulerName(instance.getSchedulerName()); - this.withSchedulingGates(instance.getSchedulingGates()); - this.withSecurityContext(instance.getSecurityContext()); - this.withServiceAccount(instance.getServiceAccount()); - this.withServiceAccountName(instance.getServiceAccountName()); - this.withSetHostnameAsFQDN(instance.getSetHostnameAsFQDN()); - this.withShareProcessNamespace(instance.getShareProcessNamespace()); - this.withSubdomain(instance.getSubdomain()); - this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); - this.withTolerations(instance.getTolerations()); - this.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); - this.withVolumes(instance.getVolumes()); - } + private V1WorkloadReferenceBuilder workloadRef; + + public V1PodSpecFluent() { } - public Long getActiveDeadlineSeconds() { - return this.activeDeadlineSeconds; + public V1PodSpecFluent(V1PodSpec instance) { + this.copyInstance(instance); } - - public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { - this.activeDeadlineSeconds = activeDeadlineSeconds; + + public A addAllToContainers(Collection items) { + if (this.containers == null) { + this.containers = new ArrayList(); + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").add(builder); + this.containers.add(builder); + } return (A) this; } - public boolean hasActiveDeadlineSeconds() { - return this.activeDeadlineSeconds != null; - } - - public V1Affinity buildAffinity() { - return this.affinity != null ? this.affinity.build() : null; + public A addAllToEphemeralContainers(Collection items) { + if (this.ephemeralContainers == null) { + this.ephemeralContainers = new ArrayList(); + } + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").add(builder); + this.ephemeralContainers.add(builder); + } + return (A) this; } - public A withAffinity(V1Affinity affinity) { - this._visitables.remove("affinity"); - if (affinity != null) { - this.affinity = new V1AffinityBuilder(affinity); - this._visitables.get("affinity").add(this.affinity); - } else { - this.affinity = null; - this._visitables.get("affinity").remove(this.affinity); + public A addAllToHostAliases(Collection items) { + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); + } + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").add(builder); + this.hostAliases.add(builder); } return (A) this; } - public boolean hasAffinity() { - return this.affinity != null; + public A addAllToImagePullSecrets(Collection items) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); + } + return (A) this; } - public AffinityNested withNewAffinity() { - return new AffinityNested(null); + public A addAllToInitContainers(Collection items) { + if (this.initContainers == null) { + this.initContainers = new ArrayList(); + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").add(builder); + this.initContainers.add(builder); + } + return (A) this; } - public AffinityNested withNewAffinityLike(V1Affinity item) { - return new AffinityNested(item); + public A addAllToReadinessGates(Collection items) { + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); + } + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").add(builder); + this.readinessGates.add(builder); + } + return (A) this; } - public AffinityNested editAffinity() { - return withNewAffinityLike(java.util.Optional.ofNullable(buildAffinity()).orElse(null)); + public A addAllToResourceClaims(Collection items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; } - public AffinityNested editOrNewAffinity() { - return withNewAffinityLike(java.util.Optional.ofNullable(buildAffinity()).orElse(new V1AffinityBuilder().build())); + public A addAllToSchedulingGates(Collection items) { + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").add(builder); + this.schedulingGates.add(builder); + } + return (A) this; } - public AffinityNested editOrNewAffinityLike(V1Affinity item) { - return withNewAffinityLike(java.util.Optional.ofNullable(buildAffinity()).orElse(item)); + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public Boolean getAutomountServiceAccountToken() { - return this.automountServiceAccountToken; + public A addAllToTopologySpreadConstraints(Collection items) { + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); + } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.add(builder); + } + return (A) this; } - public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { - this.automountServiceAccountToken = automountServiceAccountToken; + public A addAllToVolumes(Collection items) { + if (this.volumes == null) { + this.volumes = new ArrayList(); + } + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").add(builder); + this.volumes.add(builder); + } return (A) this; } - public boolean hasAutomountServiceAccountToken() { - return this.automountServiceAccountToken != null; + public ContainersNested addNewContainer() { + return new ContainersNested(-1, null); } - 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);} - return (A)this; + public ContainersNested addNewContainerLike(V1Container item) { + return new ContainersNested(-1, item); } - 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);} - return (A)this; + public EphemeralContainersNested addNewEphemeralContainer() { + return new EphemeralContainersNested(-1, null); } - public A addToContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.containers == null) {this.containers = new ArrayList();} - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").add(builder);this.containers.add(builder);} return (A)this; + public EphemeralContainersNested addNewEphemeralContainerLike(V1EphemeralContainer item) { + return new EphemeralContainersNested(-1, item); } - public A addAllToContainers(Collection items) { - if (this.containers == null) {this.containers = new ArrayList();} - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").add(builder);this.containers.add(builder);} return (A)this; + public HostAliasesNested addNewHostAlias() { + return new HostAliasesNested(-1, null); } - public A removeFromContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.containers == null) return (A)this; - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").remove(builder); this.containers.remove(builder);} return (A)this; + public HostAliasesNested addNewHostAliasLike(V1HostAlias item) { + return new HostAliasesNested(-1, item); } - public A removeAllFromContainers(Collection items) { - if (this.containers == null) return (A)this; - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("containers").remove(builder); this.containers.remove(builder);} return (A)this; + public ImagePullSecretsNested addNewImagePullSecret() { + return new ImagePullSecretsNested(-1, null); } - public A removeMatchingFromContainers(Predicate predicate) { - if (containers == null) return (A) this; - final Iterator each = containers.iterator(); - final List visitables = _visitables.get("containers"); - while (each.hasNext()) { - V1ContainerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { + return new ImagePullSecretsNested(-1, item); } - public List buildContainers() { - return this.containers != null ? build(containers) : null; + public InitContainersNested addNewInitContainer() { + return new InitContainersNested(-1, null); } - public V1Container buildContainer(int index) { - return this.containers.get(index).build(); + public InitContainersNested addNewInitContainerLike(V1Container item) { + return new InitContainersNested(-1, item); } - public V1Container buildFirstContainer() { - return this.containers.get(0).build(); + public ReadinessGatesNested addNewReadinessGate() { + return new ReadinessGatesNested(-1, null); } - public V1Container buildLastContainer() { - return this.containers.get(containers.size() - 1).build(); + public ReadinessGatesNested addNewReadinessGateLike(V1PodReadinessGate item) { + return new ReadinessGatesNested(-1, item); } - public V1Container buildMatchingContainer(Predicate predicate) { - for (V1ContainerBuilder item : containers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ResourceClaimsNested addNewResourceClaim() { + return new ResourceClaimsNested(-1, null); } - public boolean hasMatchingContainer(Predicate predicate) { - for (V1ContainerBuilder item : containers) { - if (predicate.test(item)) { - return true; - } - } - return false; + public ResourceClaimsNested addNewResourceClaimLike(V1PodResourceClaim item) { + return new ResourceClaimsNested(-1, item); } - public A withContainers(List containers) { - if (this.containers != null) { - this._visitables.get("containers").clear(); - } - if (containers != null) { - this.containers = new ArrayList(); - for (V1Container item : containers) { - this.addToContainers(item); - } - } else { - this.containers = null; - } - return (A) this; + public SchedulingGatesNested addNewSchedulingGate() { + return new SchedulingGatesNested(-1, null); } - public A withContainers(io.kubernetes.client.openapi.models.V1Container... containers) { - if (this.containers != null) { - this.containers.clear(); - _visitables.remove("containers"); - } - if (containers != null) { - for (V1Container item : containers) { - this.addToContainers(item); - } - } - return (A) this; + public SchedulingGatesNested addNewSchedulingGateLike(V1PodSchedulingGate item) { + return new SchedulingGatesNested(-1, item); } - public boolean hasContainers() { - return this.containers != null && !this.containers.isEmpty(); + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public ContainersNested addNewContainer() { - return new ContainersNested(-1, null); + public TolerationsNested addNewTolerationLike(V1Toleration item) { + return new TolerationsNested(-1, item); } - public ContainersNested addNewContainerLike(V1Container item) { - return new ContainersNested(-1, item); + public TopologySpreadConstraintsNested addNewTopologySpreadConstraint() { + return new TopologySpreadConstraintsNested(-1, null); } - public ContainersNested setNewContainerLike(int index,V1Container item) { - return new ContainersNested(index, item); + public TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike(V1TopologySpreadConstraint item) { + return new TopologySpreadConstraintsNested(-1, item); } - public ContainersNested editContainer(int index) { - if (containers.size() <= index) throw new RuntimeException("Can't edit containers. Index exceeds size."); - return setNewContainerLike(index, buildContainer(index)); + public VolumesNested addNewVolume() { + return new VolumesNested(-1, null); } - public ContainersNested editFirstContainer() { - if (containers.size() == 0) throw new RuntimeException("Can't edit first containers. The list is empty."); - return setNewContainerLike(0, buildContainer(0)); + public VolumesNested addNewVolumeLike(V1Volume item) { + return new VolumesNested(-1, item); } - public ContainersNested editLastContainer() { - int index = containers.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last containers. The list is empty."); - return setNewContainerLike(index, buildContainer(index)); + public A addToContainers(V1Container... items) { + if (this.containers == null) { + this.containers = new ArrayList(); + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").add(builder); + this.containers.add(builder); + } + return (A) this; } - public ContainersNested editMatchingContainer(Predicate predicate) { - int index = -1; - for (int i=0;i= containers.size()) { + _visitables.get("containers").add(builder); + containers.add(builder); + } else { + _visitables.get("containers").add(builder); + containers.add(index, builder); + } + return (A) this; } - public V1PodDNSConfig buildDnsConfig() { - return this.dnsConfig != null ? this.dnsConfig.build() : null; + public A addToEphemeralContainers(V1EphemeralContainer... items) { + if (this.ephemeralContainers == null) { + this.ephemeralContainers = new ArrayList(); + } + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").add(builder); + this.ephemeralContainers.add(builder); + } + return (A) this; } - public A withDnsConfig(V1PodDNSConfig dnsConfig) { - this._visitables.remove("dnsConfig"); - if (dnsConfig != null) { - this.dnsConfig = new V1PodDNSConfigBuilder(dnsConfig); - this._visitables.get("dnsConfig").add(this.dnsConfig); + 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 { - this.dnsConfig = null; - this._visitables.get("dnsConfig").remove(this.dnsConfig); + _visitables.get("ephemeralContainers").add(builder); + ephemeralContainers.add(index, builder); } return (A) this; } - public boolean hasDnsConfig() { - return this.dnsConfig != null; - } - - public DnsConfigNested withNewDnsConfig() { - return new DnsConfigNested(null); + public A addToHostAliases(V1HostAlias... items) { + if (this.hostAliases == null) { + this.hostAliases = new ArrayList(); + } + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").add(builder); + this.hostAliases.add(builder); + } + return (A) this; } - public DnsConfigNested withNewDnsConfigLike(V1PodDNSConfig item) { - return new DnsConfigNested(item); - } - - public DnsConfigNested editDnsConfig() { - return withNewDnsConfigLike(java.util.Optional.ofNullable(buildDnsConfig()).orElse(null)); - } - - public DnsConfigNested editOrNewDnsConfig() { - return withNewDnsConfigLike(java.util.Optional.ofNullable(buildDnsConfig()).orElse(new V1PodDNSConfigBuilder().build())); - } - - public DnsConfigNested editOrNewDnsConfigLike(V1PodDNSConfig item) { - return withNewDnsConfigLike(java.util.Optional.ofNullable(buildDnsConfig()).orElse(item)); - } - - public String getDnsPolicy() { - return this.dnsPolicy; + public A addToHostAliases(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").add(builder); + hostAliases.add(index, builder); + } + return (A) this; } - public A withDnsPolicy(String dnsPolicy) { - this.dnsPolicy = dnsPolicy; + public A addToImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); + } return (A) this; } - public boolean hasDnsPolicy() { - return this.dnsPolicy != null; + 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(builder); + imagePullSecrets.add(index, builder); + } + return (A) this; } - public Boolean getEnableServiceLinks() { - return this.enableServiceLinks; + public A addToInitContainers(V1Container... items) { + if (this.initContainers == null) { + this.initContainers = new ArrayList(); + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").add(builder); + this.initContainers.add(builder); + } + return (A) this; } - public A withEnableServiceLinks(Boolean enableServiceLinks) { - this.enableServiceLinks = enableServiceLinks; + public A addToInitContainers(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").add(builder); + initContainers.add(index, builder); + } return (A) this; } - public boolean hasEnableServiceLinks() { - return this.enableServiceLinks != null; + public A addToNodeSelector(Map map) { + if (this.nodeSelector == null && map != null) { + this.nodeSelector = new LinkedHashMap(); + } + if (map != null) { + this.nodeSelector.putAll(map); + } + return (A) this; } - 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);} - return (A)this; + public A addToNodeSelector(String key,String value) { + if (this.nodeSelector == null && key != null && value != null) { + this.nodeSelector = new LinkedHashMap(); + } + if (key != null && value != null) { + this.nodeSelector.put(key, value); + } + 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);} - return (A)this; + public A addToOverhead(Map map) { + if (this.overhead == null && map != null) { + this.overhead = new LinkedHashMap(); + } + if (map != null) { + this.overhead.putAll(map); + } + return (A) this; } - public A addToEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { - if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} - for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").add(builder);this.ephemeralContainers.add(builder);} return (A)this; + public A addToOverhead(String key,Quantity value) { + if (this.overhead == null && key != null && value != null) { + this.overhead = new LinkedHashMap(); + } + if (key != null && value != null) { + this.overhead.put(key, value); + } + return (A) this; } - public A addAllToEphemeralContainers(Collection items) { - if (this.ephemeralContainers == null) {this.ephemeralContainers = new ArrayList();} - for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").add(builder);this.ephemeralContainers.add(builder);} return (A)this; + public A addToReadinessGates(V1PodReadinessGate... items) { + if (this.readinessGates == null) { + this.readinessGates = new ArrayList(); + } + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").add(builder); + this.readinessGates.add(builder); + } + return (A) this; } - public A removeFromEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... items) { - if (this.ephemeralContainers == null) return (A)this; - for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").remove(builder); this.ephemeralContainers.remove(builder);} return (A)this; + 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(builder); + readinessGates.add(index, builder); + } + return (A) this; } - public A removeAllFromEphemeralContainers(Collection items) { - if (this.ephemeralContainers == null) return (A)this; - for (V1EphemeralContainer item : items) {V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item);_visitables.get("ephemeralContainers").remove(builder); this.ephemeralContainers.remove(builder);} return (A)this; + public A addToResourceClaims(V1PodResourceClaim... items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; } - public A removeMatchingFromEphemeralContainers(Predicate predicate) { - if (ephemeralContainers == null) return (A) this; - final Iterator each = ephemeralContainers.iterator(); - final List visitables = _visitables.get("ephemeralContainers"); - while (each.hasNext()) { - V1EphemeralContainerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToResourceClaims(int index,V1PodResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); } - return (A)this; + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + 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 List buildEphemeralContainers() { - return this.ephemeralContainers != null ? build(ephemeralContainers) : null; + public A addToSchedulingGates(V1PodSchedulingGate... items) { + if (this.schedulingGates == null) { + this.schedulingGates = new ArrayList(); + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").add(builder); + this.schedulingGates.add(builder); + } + return (A) this; } - public V1EphemeralContainer buildEphemeralContainer(int index) { - return this.ephemeralContainers.get(index).build(); + 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(builder); + schedulingGates.add(index, builder); + } + return (A) this; } - public V1EphemeralContainer buildFirstEphemeralContainer() { - return this.ephemeralContainers.get(0).build(); + public A addToTolerations(V1Toleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public V1EphemeralContainer buildLastEphemeralContainer() { - return this.ephemeralContainers.get(ephemeralContainers.size() - 1).build(); + 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(builder); + tolerations.add(index, builder); + } + return (A) this; } - public V1EphemeralContainer buildMatchingEphemeralContainer(Predicate predicate) { - for (V1EphemeralContainerBuilder item : ephemeralContainers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A addToTopologySpreadConstraints(V1TopologySpreadConstraint... items) { + if (this.topologySpreadConstraints == null) { + this.topologySpreadConstraints = new ArrayList(); + } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.add(builder); + } + return (A) this; } - public boolean hasMatchingEphemeralContainer(Predicate predicate) { - for (V1EphemeralContainerBuilder item : ephemeralContainers) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToTopologySpreadConstraints(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").add(builder); + topologySpreadConstraints.add(index, builder); + } + return (A) this; } - public A withEphemeralContainers(List ephemeralContainers) { - if (this.ephemeralContainers != null) { - this._visitables.get("ephemeralContainers").clear(); + public A addToVolumes(V1Volume... items) { + if (this.volumes == null) { + this.volumes = new ArrayList(); } - if (ephemeralContainers != null) { - this.ephemeralContainers = new ArrayList(); - for (V1EphemeralContainer item : ephemeralContainers) { - this.addToEphemeralContainers(item); - } - } else { - this.ephemeralContainers = null; + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").add(builder); + this.volumes.add(builder); } return (A) this; } - public A withEphemeralContainers(io.kubernetes.client.openapi.models.V1EphemeralContainer... ephemeralContainers) { - if (this.ephemeralContainers != null) { - this.ephemeralContainers.clear(); - _visitables.remove("ephemeralContainers"); + public A addToVolumes(int index,V1Volume item) { + if (this.volumes == null) { + this.volumes = new ArrayList(); } - if (ephemeralContainers != null) { - for (V1EphemeralContainer item : ephemeralContainers) { - this.addToEphemeralContainers(item); - } + V1VolumeBuilder builder = new V1VolumeBuilder(item); + 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 boolean hasEphemeralContainers() { - return this.ephemeralContainers != null && !this.ephemeralContainers.isEmpty(); + public V1Affinity buildAffinity() { + return this.affinity != null ? this.affinity.build() : null; } - public EphemeralContainersNested addNewEphemeralContainer() { - return new EphemeralContainersNested(-1, null); + public V1Container buildContainer(int index) { + return this.containers.get(index).build(); } - public EphemeralContainersNested addNewEphemeralContainerLike(V1EphemeralContainer item) { - return new EphemeralContainersNested(-1, item); + public List buildContainers() { + return this.containers != null ? build(containers) : null; } - public EphemeralContainersNested setNewEphemeralContainerLike(int index,V1EphemeralContainer item) { - return new EphemeralContainersNested(index, item); + public V1PodDNSConfig buildDnsConfig() { + return this.dnsConfig != null ? this.dnsConfig.build() : null; } - public EphemeralContainersNested editEphemeralContainer(int index) { - if (ephemeralContainers.size() <= index) throw new RuntimeException("Can't edit ephemeralContainers. Index exceeds size."); - return setNewEphemeralContainerLike(index, buildEphemeralContainer(index)); + public V1EphemeralContainer buildEphemeralContainer(int index) { + return this.ephemeralContainers.get(index).build(); } - public EphemeralContainersNested editFirstEphemeralContainer() { - if (ephemeralContainers.size() == 0) throw new RuntimeException("Can't edit first ephemeralContainers. The list is empty."); - return setNewEphemeralContainerLike(0, buildEphemeralContainer(0)); + public List buildEphemeralContainers() { + return this.ephemeralContainers != null ? build(ephemeralContainers) : null; } - public EphemeralContainersNested editLastEphemeralContainer() { - int index = ephemeralContainers.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ephemeralContainers. The list is empty."); - return setNewEphemeralContainerLike(index, buildEphemeralContainer(index)); + public V1Container buildFirstContainer() { + return this.containers.get(0).build(); } - public EphemeralContainersNested editMatchingEphemeralContainer(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public V1HostAlias buildFirstHostAlias() { + return this.hostAliases.get(0).build(); } - 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);} - return (A)this; + public V1LocalObjectReference buildFirstImagePullSecret() { + return this.imagePullSecrets.get(0).build(); } - public A addToHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items) { - if (this.hostAliases == null) {this.hostAliases = new ArrayList();} - for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").add(builder);this.hostAliases.add(builder);} return (A)this; + public V1Container buildFirstInitContainer() { + return this.initContainers.get(0).build(); } - public A addAllToHostAliases(Collection items) { - if (this.hostAliases == null) {this.hostAliases = new ArrayList();} - for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").add(builder);this.hostAliases.add(builder);} return (A)this; + public V1PodReadinessGate buildFirstReadinessGate() { + return this.readinessGates.get(0).build(); } - public A removeFromHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... items) { - if (this.hostAliases == null) return (A)this; - for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").remove(builder); this.hostAliases.remove(builder);} return (A)this; + public V1PodResourceClaim buildFirstResourceClaim() { + return this.resourceClaims.get(0).build(); } - public A removeAllFromHostAliases(Collection items) { - if (this.hostAliases == null) return (A)this; - for (V1HostAlias item : items) {V1HostAliasBuilder builder = new V1HostAliasBuilder(item);_visitables.get("hostAliases").remove(builder); this.hostAliases.remove(builder);} return (A)this; + public V1PodSchedulingGate buildFirstSchedulingGate() { + return this.schedulingGates.get(0).build(); } - public A removeMatchingFromHostAliases(Predicate predicate) { - if (hostAliases == null) return (A) this; - final Iterator each = hostAliases.iterator(); - final List visitables = _visitables.get("hostAliases"); - while (each.hasNext()) { - V1HostAliasBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1Toleration buildFirstToleration() { + return this.tolerations.get(0).build(); } - public List buildHostAliases() { - return this.hostAliases != null ? build(hostAliases) : null; + public V1TopologySpreadConstraint buildFirstTopologySpreadConstraint() { + return this.topologySpreadConstraints.get(0).build(); + } + + public V1Volume buildFirstVolume() { + return this.volumes.get(0).build(); } public V1HostAlias buildHostAlias(int index) { return this.hostAliases.get(index).build(); } - public V1HostAlias buildFirstHostAlias() { - return this.hostAliases.get(0).build(); + public List buildHostAliases() { + return this.hostAliases != null ? build(hostAliases) : null; } - public V1HostAlias buildLastHostAlias() { - return this.hostAliases.get(hostAliases.size() - 1).build(); + public V1LocalObjectReference buildImagePullSecret(int index) { + return this.imagePullSecrets.get(index).build(); } - public V1HostAlias buildMatchingHostAlias(Predicate predicate) { - for (V1HostAliasBuilder item : hostAliases) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public List buildImagePullSecrets() { + return this.imagePullSecrets != null ? build(imagePullSecrets) : null; } - public boolean hasMatchingHostAlias(Predicate predicate) { - for (V1HostAliasBuilder item : hostAliases) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1Container buildInitContainer(int index) { + return this.initContainers.get(index).build(); } - public A withHostAliases(List hostAliases) { - if (this.hostAliases != null) { - this._visitables.get("hostAliases").clear(); - } - if (hostAliases != null) { - this.hostAliases = new ArrayList(); - for (V1HostAlias item : hostAliases) { - this.addToHostAliases(item); - } - } else { - this.hostAliases = null; - } - return (A) this; + public List buildInitContainers() { + return this.initContainers != null ? build(initContainers) : null; } - public A withHostAliases(io.kubernetes.client.openapi.models.V1HostAlias... hostAliases) { - if (this.hostAliases != null) { - this.hostAliases.clear(); - _visitables.remove("hostAliases"); - } - if (hostAliases != null) { - for (V1HostAlias item : hostAliases) { - this.addToHostAliases(item); - } - } - return (A) this; + public V1Container buildLastContainer() { + return this.containers.get(containers.size() - 1).build(); } - public boolean hasHostAliases() { - return this.hostAliases != null && !this.hostAliases.isEmpty(); + public V1EphemeralContainer buildLastEphemeralContainer() { + return this.ephemeralContainers.get(ephemeralContainers.size() - 1).build(); } - public HostAliasesNested addNewHostAlias() { - return new HostAliasesNested(-1, null); + public V1HostAlias buildLastHostAlias() { + return this.hostAliases.get(hostAliases.size() - 1).build(); } - public HostAliasesNested addNewHostAliasLike(V1HostAlias item) { - return new HostAliasesNested(-1, item); + public V1LocalObjectReference buildLastImagePullSecret() { + return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); } - public HostAliasesNested setNewHostAliasLike(int index,V1HostAlias item) { - return new HostAliasesNested(index, item); + public V1Container buildLastInitContainer() { + return this.initContainers.get(initContainers.size() - 1).build(); } - public HostAliasesNested editHostAlias(int index) { - if (hostAliases.size() <= index) throw new RuntimeException("Can't edit hostAliases. Index exceeds size."); - return setNewHostAliasLike(index, buildHostAlias(index)); + public V1PodReadinessGate buildLastReadinessGate() { + return this.readinessGates.get(readinessGates.size() - 1).build(); } - public HostAliasesNested editFirstHostAlias() { - if (hostAliases.size() == 0) throw new RuntimeException("Can't edit first hostAliases. The list is empty."); - return setNewHostAliasLike(0, buildHostAlias(0)); + public V1PodResourceClaim buildLastResourceClaim() { + return this.resourceClaims.get(resourceClaims.size() - 1).build(); } - public HostAliasesNested editLastHostAlias() { - int index = hostAliases.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last hostAliases. The list is empty."); - return setNewHostAliasLike(index, buildHostAlias(index)); + public V1PodSchedulingGate buildLastSchedulingGate() { + return this.schedulingGates.get(schedulingGates.size() - 1).build(); } - public HostAliasesNested editMatchingHostAlias(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1ContainerBuilder item : containers) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public Boolean getHostNetwork() { - return this.hostNetwork; + public V1EphemeralContainer buildMatchingEphemeralContainer(Predicate predicate) { + for (V1EphemeralContainerBuilder item : ephemeralContainers) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withHostNetwork(Boolean hostNetwork) { - this.hostNetwork = hostNetwork; - return (A) this; + public V1HostAlias buildMatchingHostAlias(Predicate predicate) { + for (V1HostAliasBuilder item : hostAliases) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasHostNetwork() { - return this.hostNetwork != null; + public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { + for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public Boolean getHostPID() { - return this.hostPID; + public V1Container buildMatchingInitContainer(Predicate predicate) { + for (V1ContainerBuilder item : initContainers) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withHostPID(Boolean hostPID) { - this.hostPID = hostPID; - return (A) this; + public V1PodReadinessGate buildMatchingReadinessGate(Predicate predicate) { + for (V1PodReadinessGateBuilder item : readinessGates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasHostPID() { - return this.hostPID != null; + public V1PodResourceClaim buildMatchingResourceClaim(Predicate predicate) { + for (V1PodResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public Boolean getHostUsers() { - return this.hostUsers; + public V1PodSchedulingGate buildMatchingSchedulingGate(Predicate predicate) { + for (V1PodSchedulingGateBuilder item : schedulingGates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withHostUsers(Boolean hostUsers) { - this.hostUsers = hostUsers; - return (A) this; + public V1Toleration buildMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public boolean hasHostUsers() { - return this.hostUsers != null; + public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint(Predicate predicate) { + for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public String getHostname() { - return this.hostname; + public V1Volume buildMatchingVolume(Predicate predicate) { + for (V1VolumeBuilder item : volumes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A withHostname(String hostname) { - this.hostname = hostname; - return (A) this; + public V1PodOS buildOs() { + return this.os != null ? this.os.build() : null; } - public boolean hasHostname() { - return this.hostname != null; + public V1PodReadinessGate buildReadinessGate(int index) { + return this.readinessGates.get(index).build(); } - 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);} - return (A)this; + public List buildReadinessGates() { + return this.readinessGates != null ? build(readinessGates) : null; } - 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);} - return (A)this; + public V1PodResourceClaim buildResourceClaim(int index) { + return this.resourceClaims.get(index).build(); } - public A addToImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; + public List buildResourceClaims() { + return this.resourceClaims != null ? build(resourceClaims) : null; } - public A addAllToImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; + public V1ResourceRequirements buildResources() { + return this.resources != null ? this.resources.build() : null; } - public A removeFromImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) return (A)this; - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder); this.imagePullSecrets.remove(builder);} return (A)this; + public V1PodSchedulingGate buildSchedulingGate(int index) { + return this.schedulingGates.get(index).build(); } - public A removeAllFromImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) return (A)this; - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder); this.imagePullSecrets.remove(builder);} return (A)this; + public List buildSchedulingGates() { + return this.schedulingGates != null ? build(schedulingGates) : null; } - public A removeMatchingFromImagePullSecrets(Predicate predicate) { - if (imagePullSecrets == null) return (A) this; - final Iterator each = imagePullSecrets.iterator(); - final List visitables = _visitables.get("imagePullSecrets"); - while (each.hasNext()) { - V1LocalObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1PodSecurityContext buildSecurityContext() { + return this.securityContext != null ? this.securityContext.build() : null; } - public List buildImagePullSecrets() { - return this.imagePullSecrets != null ? build(imagePullSecrets) : null; + public V1Toleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public V1LocalObjectReference buildImagePullSecret(int index) { - return this.imagePullSecrets.get(index).build(); + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public V1LocalObjectReference buildFirstImagePullSecret() { - return this.imagePullSecrets.get(0).build(); + public V1TopologySpreadConstraint buildTopologySpreadConstraint(int index) { + return this.topologySpreadConstraints.get(index).build(); } - public V1LocalObjectReference buildLastImagePullSecret() { - return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); + public List buildTopologySpreadConstraints() { + return this.topologySpreadConstraints != null ? build(topologySpreadConstraints) : null; } - public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { - for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public V1Volume buildVolume(int index) { + return this.volumes.get(index).build(); } - public boolean hasMatchingImagePullSecret(Predicate predicate) { - for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { - if (predicate.test(item)) { - return true; - } - } - return false; + public List buildVolumes() { + return this.volumes != null ? build(volumes) : null; } - public A withImagePullSecrets(List imagePullSecrets) { - if (this.imagePullSecrets != null) { - this._visitables.get("imagePullSecrets").clear(); - } - if (imagePullSecrets != null) { - this.imagePullSecrets = new ArrayList(); - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); - } - } else { - this.imagePullSecrets = null; - } - return (A) this; + public V1WorkloadReference buildWorkloadRef() { + return this.workloadRef != null ? this.workloadRef.build() : null; } - public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets) { - if (this.imagePullSecrets != null) { - this.imagePullSecrets.clear(); - _visitables.remove("imagePullSecrets"); - } - if (imagePullSecrets != null) { - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); - } + protected void copyInstance(V1PodSpec instance) { + instance = instance != null ? instance : new V1PodSpec(); + if (instance != null) { + this.withActiveDeadlineSeconds(instance.getActiveDeadlineSeconds()); + this.withAffinity(instance.getAffinity()); + this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); + this.withContainers(instance.getContainers()); + this.withDnsConfig(instance.getDnsConfig()); + this.withDnsPolicy(instance.getDnsPolicy()); + this.withEnableServiceLinks(instance.getEnableServiceLinks()); + this.withEphemeralContainers(instance.getEphemeralContainers()); + this.withHostAliases(instance.getHostAliases()); + this.withHostIPC(instance.getHostIPC()); + this.withHostNetwork(instance.getHostNetwork()); + this.withHostPID(instance.getHostPID()); + this.withHostUsers(instance.getHostUsers()); + this.withHostname(instance.getHostname()); + this.withHostnameOverride(instance.getHostnameOverride()); + this.withImagePullSecrets(instance.getImagePullSecrets()); + this.withInitContainers(instance.getInitContainers()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withOs(instance.getOs()); + this.withOverhead(instance.getOverhead()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withPriority(instance.getPriority()); + 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()); + this.withSchedulingGates(instance.getSchedulingGates()); + this.withSecurityContext(instance.getSecurityContext()); + this.withServiceAccount(instance.getServiceAccount()); + this.withServiceAccountName(instance.getServiceAccountName()); + this.withSetHostnameAsFQDN(instance.getSetHostnameAsFQDN()); + this.withShareProcessNamespace(instance.getShareProcessNamespace()); + this.withSubdomain(instance.getSubdomain()); + this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); + this.withTolerations(instance.getTolerations()); + this.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); + this.withVolumes(instance.getVolumes()); + this.withWorkloadRef(instance.getWorkloadRef()); } - return (A) this; } - public boolean hasImagePullSecrets() { - return this.imagePullSecrets != null && !this.imagePullSecrets.isEmpty(); + public AffinityNested editAffinity() { + return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(null)); } - public ImagePullSecretsNested addNewImagePullSecret() { - return new ImagePullSecretsNested(-1, null); + public ContainersNested editContainer(int index) { + if (containers.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "containers")); + } + return this.setNewContainerLike(index, this.buildContainer(index)); } - public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { - return new ImagePullSecretsNested(-1, item); + public DnsConfigNested editDnsConfig() { + return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(null)); } - public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { - return new ImagePullSecretsNested(index, item); - } - - public ImagePullSecretsNested editImagePullSecret(int index) { - if (imagePullSecrets.size() <= index) throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); - return setNewImagePullSecretLike(index, buildImagePullSecret(index)); + public EphemeralContainersNested editEphemeralContainer(int index) { + if (ephemeralContainers.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ephemeralContainers")); + } + return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); } - public ImagePullSecretsNested editFirstImagePullSecret() { - if (imagePullSecrets.size() == 0) throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); - return setNewImagePullSecretLike(0, buildImagePullSecret(0)); + public ContainersNested editFirstContainer() { + if (containers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "containers")); + } + return this.setNewContainerLike(0, this.buildContainer(0)); } - public ImagePullSecretsNested editLastImagePullSecret() { - int index = imagePullSecrets.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last imagePullSecrets. The list is empty."); - return setNewImagePullSecretLike(index, buildImagePullSecret(index)); + public EphemeralContainersNested editFirstEphemeralContainer() { + if (ephemeralContainers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ephemeralContainers")); + } + return this.setNewEphemeralContainerLike(0, this.buildEphemeralContainer(0)); } - public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { - int index = -1; - for (int i=0;i editFirstHostAlias() { + if (hostAliases.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "hostAliases")); + } + return this.setNewHostAliasLike(0, this.buildHostAlias(0)); } - public A addToInitContainers(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").add(index, builder); initContainers.add(index, builder);} - return (A)this; + public ImagePullSecretsNested editFirstImagePullSecret() { + if (imagePullSecrets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(0, this.buildImagePullSecret(0)); } - 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);} - return (A)this; + public InitContainersNested editFirstInitContainer() { + if (initContainers.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "initContainers")); + } + return this.setNewInitContainerLike(0, this.buildInitContainer(0)); } - public A addToInitContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.initContainers == null) {this.initContainers = new ArrayList();} - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").add(builder);this.initContainers.add(builder);} return (A)this; + public ReadinessGatesNested editFirstReadinessGate() { + if (readinessGates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "readinessGates")); + } + return this.setNewReadinessGateLike(0, this.buildReadinessGate(0)); } - public A addAllToInitContainers(Collection items) { - if (this.initContainers == null) {this.initContainers = new ArrayList();} - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").add(builder);this.initContainers.add(builder);} return (A)this; + public ResourceClaimsNested editFirstResourceClaim() { + if (resourceClaims.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(0, this.buildResourceClaim(0)); } - public A removeFromInitContainers(io.kubernetes.client.openapi.models.V1Container... items) { - if (this.initContainers == null) return (A)this; - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").remove(builder); this.initContainers.remove(builder);} return (A)this; + public SchedulingGatesNested editFirstSchedulingGate() { + if (schedulingGates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "schedulingGates")); + } + return this.setNewSchedulingGateLike(0, this.buildSchedulingGate(0)); } - public A removeAllFromInitContainers(Collection items) { - if (this.initContainers == null) return (A)this; - for (V1Container item : items) {V1ContainerBuilder builder = new V1ContainerBuilder(item);_visitables.get("initContainers").remove(builder); this.initContainers.remove(builder);} return (A)this; + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); } - public A removeMatchingFromInitContainers(Predicate predicate) { - if (initContainers == null) return (A) this; - final Iterator each = initContainers.iterator(); - final List visitables = _visitables.get("initContainers"); - while (each.hasNext()) { - V1ContainerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public TopologySpreadConstraintsNested editFirstTopologySpreadConstraint() { + if (topologySpreadConstraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "topologySpreadConstraints")); } - return (A)this; + return this.setNewTopologySpreadConstraintLike(0, this.buildTopologySpreadConstraint(0)); } - public List buildInitContainers() { - return this.initContainers != null ? build(initContainers) : null; + public VolumesNested editFirstVolume() { + if (volumes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumes")); + } + return this.setNewVolumeLike(0, this.buildVolume(0)); } - public V1Container buildInitContainer(int index) { - return this.initContainers.get(index).build(); + public HostAliasesNested editHostAlias(int index) { + if (hostAliases.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "hostAliases")); + } + return this.setNewHostAliasLike(index, this.buildHostAlias(index)); } - public V1Container buildFirstInitContainer() { - return this.initContainers.get(0).build(); + public ImagePullSecretsNested editImagePullSecret(int index) { + if (imagePullSecrets.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } - public V1Container buildLastInitContainer() { - return this.initContainers.get(initContainers.size() - 1).build(); + public InitContainersNested editInitContainer(int index) { + if (initContainers.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "initContainers")); + } + return this.setNewInitContainerLike(index, this.buildInitContainer(index)); } - public V1Container buildMatchingInitContainer(Predicate predicate) { - for (V1ContainerBuilder item : initContainers) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ContainersNested editLastContainer() { + int index = containers.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "containers")); + } + return this.setNewContainerLike(index, this.buildContainer(index)); } - public boolean hasMatchingInitContainer(Predicate predicate) { - for (V1ContainerBuilder item : initContainers) { - if (predicate.test(item)) { - return true; - } - } - return false; + public EphemeralContainersNested editLastEphemeralContainer() { + int index = ephemeralContainers.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ephemeralContainers")); + } + return this.setNewEphemeralContainerLike(index, this.buildEphemeralContainer(index)); } - public A withInitContainers(List initContainers) { - if (this.initContainers != null) { - this._visitables.get("initContainers").clear(); - } - if (initContainers != null) { - this.initContainers = new ArrayList(); - for (V1Container item : initContainers) { - this.addToInitContainers(item); - } - } else { - this.initContainers = null; + public HostAliasesNested editLastHostAlias() { + int index = hostAliases.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "hostAliases")); } - return (A) this; + return this.setNewHostAliasLike(index, this.buildHostAlias(index)); } - public A withInitContainers(io.kubernetes.client.openapi.models.V1Container... initContainers) { - if (this.initContainers != null) { - this.initContainers.clear(); - _visitables.remove("initContainers"); + public ImagePullSecretsNested editLastImagePullSecret() { + int index = imagePullSecrets.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "imagePullSecrets")); } - if (initContainers != null) { - for (V1Container item : initContainers) { - this.addToInitContainers(item); - } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); + } + + public InitContainersNested editLastInitContainer() { + int index = initContainers.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "initContainers")); } - return (A) this; + return this.setNewInitContainerLike(index, this.buildInitContainer(index)); } - public boolean hasInitContainers() { - return this.initContainers != null && !this.initContainers.isEmpty(); + public ReadinessGatesNested editLastReadinessGate() { + int index = readinessGates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "readinessGates")); + } + return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); } - public InitContainersNested addNewInitContainer() { - return new InitContainersNested(-1, null); + public ResourceClaimsNested editLastResourceClaim() { + int index = resourceClaims.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); } - public InitContainersNested addNewInitContainerLike(V1Container item) { - return new InitContainersNested(-1, item); + public SchedulingGatesNested editLastSchedulingGate() { + int index = schedulingGates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "schedulingGates")); + } + return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); } - public InitContainersNested setNewInitContainerLike(int index,V1Container item) { - return new InitContainersNested(index, item); + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public InitContainersNested editInitContainer(int index) { - if (initContainers.size() <= index) throw new RuntimeException("Can't edit initContainers. Index exceeds size."); - return setNewInitContainerLike(index, buildInitContainer(index)); + public TopologySpreadConstraintsNested editLastTopologySpreadConstraint() { + int index = topologySpreadConstraints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "topologySpreadConstraints")); + } + return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); } - public InitContainersNested editFirstInitContainer() { - if (initContainers.size() == 0) throw new RuntimeException("Can't edit first initContainers. The list is empty."); - return setNewInitContainerLike(0, buildInitContainer(0)); + public VolumesNested editLastVolume() { + int index = volumes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumes")); + } + return this.setNewVolumeLike(index, this.buildVolume(index)); } - public InitContainersNested editLastInitContainer() { - int index = initContainers.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last initContainers. The list is empty."); - return setNewInitContainerLike(index, buildInitContainer(index)); + public ContainersNested editMatchingContainer(Predicate predicate) { + int index = -1; + for (int i = 0;i < containers.size();i++) { + if (predicate.test(containers.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "containers")); + } + return this.setNewContainerLike(index, this.buildContainer(index)); } - public InitContainersNested editMatchingInitContainer(Predicate predicate) { + public EphemeralContainersNested editMatchingEphemeralContainer(Predicate predicate) { int index = -1; - for (int i=0;i editMatchingHostAlias(Predicate predicate) { + int index = -1; + for (int i = 0;i < hostAliases.size();i++) { + if (predicate.test(hostAliases.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "hostAliases")); + } + return this.setNewHostAliasLike(index, this.buildHostAlias(index)); } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { + int index = -1; + for (int i = 0;i < imagePullSecrets.size();i++) { + if (predicate.test(imagePullSecrets.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } - public boolean hasNodeName() { - return this.nodeName != null; + public InitContainersNested editMatchingInitContainer(Predicate predicate) { + int index = -1; + for (int i = 0;i < initContainers.size();i++) { + if (predicate.test(initContainers.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "initContainers")); + } + return this.setNewInitContainerLike(index, this.buildInitContainer(index)); } - public A addToNodeSelector(String key,String value) { - if(this.nodeSelector == null && key != null && value != null) { this.nodeSelector = new LinkedHashMap(); } - if(key != null && value != null) {this.nodeSelector.put(key, value);} return (A)this; + public ReadinessGatesNested editMatchingReadinessGate(Predicate predicate) { + int index = -1; + for (int i = 0;i < readinessGates.size();i++) { + if (predicate.test(readinessGates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "readinessGates")); + } + return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); } - public A addToNodeSelector(Map map) { - if(this.nodeSelector == null && map != null) { this.nodeSelector = new LinkedHashMap(); } - if(map != null) { this.nodeSelector.putAll(map);} return (A)this; + public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaims.size();i++) { + if (predicate.test(resourceClaims.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); } - public A removeFromNodeSelector(String key) { - if(this.nodeSelector == null) { return (A) this; } - if(key != null && this.nodeSelector != null) {this.nodeSelector.remove(key);} return (A)this; + public SchedulingGatesNested editMatchingSchedulingGate(Predicate predicate) { + int index = -1; + for (int i = 0;i < schedulingGates.size();i++) { + if (predicate.test(schedulingGates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "schedulingGates")); + } + return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); } - public A removeFromNodeSelector(Map map) { - if(this.nodeSelector == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.nodeSelector != null){this.nodeSelector.remove(key);}}} return (A)this; + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public Map getNodeSelector() { - return this.nodeSelector; + public TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint(Predicate predicate) { + int index = -1; + for (int i = 0;i < topologySpreadConstraints.size();i++) { + if (predicate.test(topologySpreadConstraints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "topologySpreadConstraints")); + } + return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); } - public A withNodeSelector(Map nodeSelector) { - if (nodeSelector == null) { - this.nodeSelector = null; - } else { - this.nodeSelector = new LinkedHashMap(nodeSelector); + public VolumesNested editMatchingVolume(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumes.size();i++) { + if (predicate.test(volumes.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumes")); + } + return this.setNewVolumeLike(index, this.buildVolume(index)); } - public boolean hasNodeSelector() { - return this.nodeSelector != null; + public AffinityNested editOrNewAffinity() { + return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(new V1AffinityBuilder().build())); } - public V1PodOS buildOs() { - return this.os != null ? this.os.build() : null; + public AffinityNested editOrNewAffinityLike(V1Affinity item) { + return this.withNewAffinityLike(Optional.ofNullable(this.buildAffinity()).orElse(item)); } - public A withOs(V1PodOS os) { - this._visitables.remove("os"); - if (os != null) { - this.os = new V1PodOSBuilder(os); - this._visitables.get("os").add(this.os); - } else { - this.os = null; - this._visitables.get("os").remove(this.os); - } - return (A) this; + public DnsConfigNested editOrNewDnsConfig() { + return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(new V1PodDNSConfigBuilder().build())); } - public boolean hasOs() { - return this.os != null; + public DnsConfigNested editOrNewDnsConfigLike(V1PodDNSConfig item) { + return this.withNewDnsConfigLike(Optional.ofNullable(this.buildDnsConfig()).orElse(item)); } - public OsNested withNewOs() { - return new OsNested(null); + public OsNested editOrNewOs() { + return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(new V1PodOSBuilder().build())); } - public OsNested withNewOsLike(V1PodOS item) { - return new OsNested(item); + public OsNested editOrNewOsLike(V1PodOS item) { + return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(item)); } - public OsNested editOs() { - return withNewOsLike(java.util.Optional.ofNullable(buildOs()).orElse(null)); + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } - public OsNested editOrNewOs() { - return withNewOsLike(java.util.Optional.ofNullable(buildOs()).orElse(new V1PodOSBuilder().build())); + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public OsNested editOrNewOsLike(V1PodOS item) { - return withNewOsLike(java.util.Optional.ofNullable(buildOs()).orElse(item)); + public SecurityContextNested editOrNewSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1PodSecurityContextBuilder().build())); } - public A addToOverhead(String key,Quantity value) { - if(this.overhead == null && key != null && value != null) { this.overhead = new LinkedHashMap(); } - if(key != null && value != null) {this.overhead.put(key, value);} return (A)this; + public SecurityContextNested editOrNewSecurityContextLike(V1PodSecurityContext item) { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } - public A addToOverhead(Map map) { - if(this.overhead == null && map != null) { this.overhead = new LinkedHashMap(); } - if(map != null) { this.overhead.putAll(map);} return (A)this; + public WorkloadRefNested editOrNewWorkloadRef() { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(new V1WorkloadReferenceBuilder().build())); } - public A removeFromOverhead(String key) { - if(this.overhead == null) { return (A) this; } - if(key != null && this.overhead != null) {this.overhead.remove(key);} return (A)this; + public WorkloadRefNested editOrNewWorkloadRefLike(V1WorkloadReference item) { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(item)); } - public A removeFromOverhead(Map map) { - if(this.overhead == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.overhead != null){this.overhead.remove(key);}}} return (A)this; + public OsNested editOs() { + return this.withNewOsLike(Optional.ofNullable(this.buildOs()).orElse(null)); } - public Map getOverhead() { - return this.overhead; + public ReadinessGatesNested editReadinessGate(int index) { + if (readinessGates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "readinessGates")); + } + return this.setNewReadinessGateLike(index, this.buildReadinessGate(index)); } - public A withOverhead(Map overhead) { - if (overhead == null) { - this.overhead = null; - } else { - this.overhead = new LinkedHashMap(overhead); + public ResourceClaimsNested editResourceClaim(int index) { + if (resourceClaims.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); } - return (A) this; + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); } - public boolean hasOverhead() { - return this.overhead != null; + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } - public String getPreemptionPolicy() { - return this.preemptionPolicy; + public SchedulingGatesNested editSchedulingGate(int index) { + if (schedulingGates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "schedulingGates")); + } + return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); } - public A withPreemptionPolicy(String preemptionPolicy) { - this.preemptionPolicy = preemptionPolicy; - return (A) this; + public SecurityContextNested editSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } - public boolean hasPreemptionPolicy() { - return this.preemptionPolicy != null; + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public Integer getPriority() { - return this.priority; + public TopologySpreadConstraintsNested editTopologySpreadConstraint(int index) { + if (topologySpreadConstraints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "topologySpreadConstraints")); + } + return this.setNewTopologySpreadConstraintLike(index, this.buildTopologySpreadConstraint(index)); } - public A withPriority(Integer priority) { - this.priority = priority; - return (A) this; + public VolumesNested editVolume(int index) { + if (volumes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumes")); + } + return this.setNewVolumeLike(index, this.buildVolume(index)); } - public boolean hasPriority() { - return this.priority != null; + public WorkloadRefNested editWorkloadRef() { + return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodSpecFluent that = (V1PodSpecFluent) o; + if (!(Objects.equals(activeDeadlineSeconds, that.activeDeadlineSeconds))) { + return false; + } + if (!(Objects.equals(affinity, that.affinity))) { + return false; + } + if (!(Objects.equals(automountServiceAccountToken, that.automountServiceAccountToken))) { + return false; + } + if (!(Objects.equals(containers, that.containers))) { + return false; + } + if (!(Objects.equals(dnsConfig, that.dnsConfig))) { + return false; + } + if (!(Objects.equals(dnsPolicy, that.dnsPolicy))) { + return false; + } + if (!(Objects.equals(enableServiceLinks, that.enableServiceLinks))) { + return false; + } + if (!(Objects.equals(ephemeralContainers, that.ephemeralContainers))) { + return false; + } + if (!(Objects.equals(hostAliases, that.hostAliases))) { + return false; + } + if (!(Objects.equals(hostIPC, that.hostIPC))) { + return false; + } + if (!(Objects.equals(hostNetwork, that.hostNetwork))) { + return false; + } + if (!(Objects.equals(hostPID, that.hostPID))) { + return false; + } + if (!(Objects.equals(hostUsers, that.hostUsers))) { + return false; + } + if (!(Objects.equals(hostname, that.hostname))) { + return false; + } + if (!(Objects.equals(hostnameOverride, that.hostnameOverride))) { + return false; + } + if (!(Objects.equals(imagePullSecrets, that.imagePullSecrets))) { + return false; + } + if (!(Objects.equals(initContainers, that.initContainers))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(os, that.os))) { + return false; + } + if (!(Objects.equals(overhead, that.overhead))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(priorityClassName, that.priorityClassName))) { + return false; + } + if (!(Objects.equals(readinessGates, that.readinessGates))) { + return false; + } + if (!(Objects.equals(resourceClaims, that.resourceClaims))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(restartPolicy, that.restartPolicy))) { + return false; + } + if (!(Objects.equals(runtimeClassName, that.runtimeClassName))) { + return false; + } + if (!(Objects.equals(schedulerName, that.schedulerName))) { + return false; + } + if (!(Objects.equals(schedulingGates, that.schedulingGates))) { + return false; + } + if (!(Objects.equals(securityContext, that.securityContext))) { + return false; + } + if (!(Objects.equals(serviceAccount, that.serviceAccount))) { + return false; + } + if (!(Objects.equals(serviceAccountName, that.serviceAccountName))) { + return false; + } + if (!(Objects.equals(setHostnameAsFQDN, that.setHostnameAsFQDN))) { + return false; + } + if (!(Objects.equals(shareProcessNamespace, that.shareProcessNamespace))) { + return false; + } + if (!(Objects.equals(subdomain, that.subdomain))) { + return false; + } + if (!(Objects.equals(terminationGracePeriodSeconds, that.terminationGracePeriodSeconds))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + if (!(Objects.equals(topologySpreadConstraints, that.topologySpreadConstraints))) { + return false; + } + if (!(Objects.equals(volumes, that.volumes))) { + return false; + } + if (!(Objects.equals(workloadRef, that.workloadRef))) { + return false; + } + return true; + } + + public Long getActiveDeadlineSeconds() { + return this.activeDeadlineSeconds; + } + + public Boolean getAutomountServiceAccountToken() { + return this.automountServiceAccountToken; + } + + public String getDnsPolicy() { + return this.dnsPolicy; + } + + public Boolean getEnableServiceLinks() { + return this.enableServiceLinks; + } + + public Boolean getHostIPC() { + return this.hostIPC; + } + + public Boolean getHostNetwork() { + return this.hostNetwork; + } + + public Boolean getHostPID() { + return this.hostPID; + } + + public Boolean getHostUsers() { + return this.hostUsers; + } + + public String getHostname() { + return this.hostname; + } + + public String getHostnameOverride() { + return this.hostnameOverride; + } + + public String getNodeName() { + return this.nodeName; + } + + public Map getNodeSelector() { + return this.nodeSelector; + } + + public Map getOverhead() { + return this.overhead; + } + + public String getPreemptionPolicy() { + return this.preemptionPolicy; + } + + public Integer getPriority() { + return this.priority; } public String getPriorityClassName() { return this.priorityClassName; } - public A withPriorityClassName(String priorityClassName) { - this.priorityClassName = priorityClassName; - return (A) this; + public String getRestartPolicy() { + return this.restartPolicy; } - public boolean hasPriorityClassName() { - return this.priorityClassName != null; + public String getRuntimeClassName() { + return this.runtimeClassName; } - 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);} - return (A)this; + public String getSchedulerName() { + return this.schedulerName; } - 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);} - return (A)this; + public String getServiceAccount() { + return this.serviceAccount; + } + + public String getServiceAccountName() { + return this.serviceAccountName; } - public A addToReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items) { - if (this.readinessGates == null) {this.readinessGates = new ArrayList();} - for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").add(builder);this.readinessGates.add(builder);} return (A)this; + public Boolean getSetHostnameAsFQDN() { + return this.setHostnameAsFQDN; } - public A addAllToReadinessGates(Collection items) { - if (this.readinessGates == null) {this.readinessGates = new ArrayList();} - for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").add(builder);this.readinessGates.add(builder);} return (A)this; + public Boolean getShareProcessNamespace() { + return this.shareProcessNamespace; + } + + public String getSubdomain() { + return this.subdomain; + } + + public Long getTerminationGracePeriodSeconds() { + return this.terminationGracePeriodSeconds; + } + + public boolean hasActiveDeadlineSeconds() { + return this.activeDeadlineSeconds != null; + } + + public boolean hasAffinity() { + return this.affinity != null; + } + + public boolean hasAutomountServiceAccountToken() { + return this.automountServiceAccountToken != null; + } + + public boolean hasContainers() { + return this.containers != null && !(this.containers.isEmpty()); + } + + public boolean hasDnsConfig() { + return this.dnsConfig != null; + } + + public boolean hasDnsPolicy() { + return this.dnsPolicy != null; + } + + public boolean hasEnableServiceLinks() { + return this.enableServiceLinks != null; + } + + public boolean hasEphemeralContainers() { + return this.ephemeralContainers != null && !(this.ephemeralContainers.isEmpty()); + } + + public boolean hasHostAliases() { + return this.hostAliases != null && !(this.hostAliases.isEmpty()); + } + + public boolean hasHostIPC() { + return this.hostIPC != null; + } + + public boolean hasHostNetwork() { + return this.hostNetwork != null; + } + + public boolean hasHostPID() { + return this.hostPID != null; + } + + public boolean hasHostUsers() { + return this.hostUsers != null; + } + + public boolean hasHostname() { + return this.hostname != null; + } + + public boolean hasHostnameOverride() { + return this.hostnameOverride != null; + } + + public boolean hasImagePullSecrets() { + return this.imagePullSecrets != null && !(this.imagePullSecrets.isEmpty()); + } + + public boolean hasInitContainers() { + return this.initContainers != null && !(this.initContainers.isEmpty()); + } + + public boolean hasMatchingContainer(Predicate predicate) { + for (V1ContainerBuilder item : containers) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingEphemeralContainer(Predicate predicate) { + for (V1EphemeralContainerBuilder item : ephemeralContainers) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingHostAlias(Predicate predicate) { + for (V1HostAliasBuilder item : hostAliases) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingImagePullSecret(Predicate predicate) { + for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingInitContainer(Predicate predicate) { + for (V1ContainerBuilder item : initContainers) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingReadinessGate(Predicate predicate) { + for (V1PodReadinessGateBuilder item : readinessGates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResourceClaim(Predicate predicate) { + for (V1PodResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSchedulingGate(Predicate predicate) { + for (V1PodSchedulingGateBuilder item : schedulingGates) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A removeFromReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... items) { - if (this.readinessGates == null) return (A)this; - for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").remove(builder); this.readinessGates.remove(builder);} return (A)this; + public boolean hasMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A removeAllFromReadinessGates(Collection items) { - if (this.readinessGates == null) return (A)this; - for (V1PodReadinessGate item : items) {V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item);_visitables.get("readinessGates").remove(builder); this.readinessGates.remove(builder);} return (A)this; + public boolean hasMatchingTopologySpreadConstraint(Predicate predicate) { + for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A removeMatchingFromReadinessGates(Predicate predicate) { - if (readinessGates == null) return (A) this; - final Iterator each = readinessGates.iterator(); - final List visitables = _visitables.get("readinessGates"); - while (each.hasNext()) { - V1PodReadinessGateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public boolean hasMatchingVolume(Predicate predicate) { + for (V1VolumeBuilder item : volumes) { + if (predicate.test(item)) { + return true; + } } - } - return (A)this; + return false; } - public List buildReadinessGates() { - return this.readinessGates != null ? build(readinessGates) : null; + public boolean hasNodeName() { + return this.nodeName != null; } - public V1PodReadinessGate buildReadinessGate(int index) { - return this.readinessGates.get(index).build(); + public boolean hasNodeSelector() { + return this.nodeSelector != null; } - public V1PodReadinessGate buildFirstReadinessGate() { - return this.readinessGates.get(0).build(); + public boolean hasOs() { + return this.os != null; } - public V1PodReadinessGate buildLastReadinessGate() { - return this.readinessGates.get(readinessGates.size() - 1).build(); + public boolean hasOverhead() { + return this.overhead != null; } - public V1PodReadinessGate buildMatchingReadinessGate(Predicate predicate) { - for (V1PodReadinessGateBuilder item : readinessGates) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; } - public boolean hasMatchingReadinessGate(Predicate predicate) { - for (V1PodReadinessGateBuilder item : readinessGates) { - if (predicate.test(item)) { - return true; - } - } - return false; + public boolean hasPriority() { + return this.priority != null; } - public A withReadinessGates(List readinessGates) { - if (this.readinessGates != null) { - this._visitables.get("readinessGates").clear(); - } - if (readinessGates != null) { - this.readinessGates = new ArrayList(); - for (V1PodReadinessGate item : readinessGates) { - this.addToReadinessGates(item); - } - } else { - this.readinessGates = null; - } - return (A) this; + public boolean hasPriorityClassName() { + return this.priorityClassName != null; } - public A withReadinessGates(io.kubernetes.client.openapi.models.V1PodReadinessGate... readinessGates) { - if (this.readinessGates != null) { - this.readinessGates.clear(); - _visitables.remove("readinessGates"); - } - if (readinessGates != null) { - for (V1PodReadinessGate item : readinessGates) { - this.addToReadinessGates(item); - } - } - return (A) this; + public boolean hasReadinessGates() { + return this.readinessGates != null && !(this.readinessGates.isEmpty()); } - public boolean hasReadinessGates() { - return this.readinessGates != null && !this.readinessGates.isEmpty(); + public boolean hasResourceClaims() { + return this.resourceClaims != null && !(this.resourceClaims.isEmpty()); } - public ReadinessGatesNested addNewReadinessGate() { - return new ReadinessGatesNested(-1, null); + public boolean hasResources() { + return this.resources != null; } - public ReadinessGatesNested addNewReadinessGateLike(V1PodReadinessGate item) { - return new ReadinessGatesNested(-1, item); + public boolean hasRestartPolicy() { + return this.restartPolicy != null; } - public ReadinessGatesNested setNewReadinessGateLike(int index,V1PodReadinessGate item) { - return new ReadinessGatesNested(index, item); + public boolean hasRuntimeClassName() { + return this.runtimeClassName != null; } - public ReadinessGatesNested editReadinessGate(int index) { - if (readinessGates.size() <= index) throw new RuntimeException("Can't edit readinessGates. Index exceeds size."); - return setNewReadinessGateLike(index, buildReadinessGate(index)); + public boolean hasSchedulerName() { + return this.schedulerName != null; } - public ReadinessGatesNested editFirstReadinessGate() { - if (readinessGates.size() == 0) throw new RuntimeException("Can't edit first readinessGates. The list is empty."); - return setNewReadinessGateLike(0, buildReadinessGate(0)); + public boolean hasSchedulingGates() { + return this.schedulingGates != null && !(this.schedulingGates.isEmpty()); } - public ReadinessGatesNested editLastReadinessGate() { - int index = readinessGates.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last readinessGates. The list is empty."); - return setNewReadinessGateLike(index, buildReadinessGate(index)); + public boolean hasSecurityContext() { + return this.securityContext != null; } - public ReadinessGatesNested editMatchingReadinessGate(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public boolean hasServiceAccountName() { + return this.serviceAccountName != null; } - 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);} - return (A)this; + public boolean hasSetHostnameAsFQDN() { + return this.setHostnameAsFQDN != null; } - public A addToResourceClaims(io.kubernetes.client.openapi.models.V1PodResourceClaim... items) { - if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} - for (V1PodResourceClaim item : items) {V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item);_visitables.get("resourceClaims").add(builder);this.resourceClaims.add(builder);} return (A)this; + public boolean hasShareProcessNamespace() { + return this.shareProcessNamespace != null; } - public A addAllToResourceClaims(Collection items) { - if (this.resourceClaims == null) {this.resourceClaims = new ArrayList();} - for (V1PodResourceClaim item : items) {V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item);_visitables.get("resourceClaims").add(builder);this.resourceClaims.add(builder);} return (A)this; + public boolean hasSubdomain() { + return this.subdomain != null; } - public A removeFromResourceClaims(io.kubernetes.client.openapi.models.V1PodResourceClaim... items) { - if (this.resourceClaims == null) return (A)this; - for (V1PodResourceClaim item : items) {V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item);_visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder);} return (A)this; + public boolean hasTerminationGracePeriodSeconds() { + return this.terminationGracePeriodSeconds != null; } - public A removeAllFromResourceClaims(Collection items) { - if (this.resourceClaims == null) return (A)this; - for (V1PodResourceClaim item : items) {V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item);_visitables.get("resourceClaims").remove(builder); this.resourceClaims.remove(builder);} return (A)this; + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); } - 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()) { - V1PodResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public boolean hasTopologySpreadConstraints() { + return this.topologySpreadConstraints != null && !(this.topologySpreadConstraints.isEmpty()); } - public List buildResourceClaims() { - return this.resourceClaims != null ? build(resourceClaims) : null; + public boolean hasVolumes() { + return this.volumes != null && !(this.volumes.isEmpty()); } - public V1PodResourceClaim buildResourceClaim(int index) { - return this.resourceClaims.get(index).build(); + public boolean hasWorkloadRef() { + return this.workloadRef != null; } - public V1PodResourceClaim buildFirstResourceClaim() { - return this.resourceClaims.get(0).build(); + public int hashCode() { + return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, 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, workloadRef); } - public V1PodResourceClaim buildLastResourceClaim() { - return this.resourceClaims.get(resourceClaims.size() - 1).build(); + public A removeAllFromContainers(Collection items) { + if (this.containers == null) { + return (A) this; + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").remove(builder); + this.containers.remove(builder); + } + return (A) this; } - public V1PodResourceClaim buildMatchingResourceClaim(Predicate predicate) { - for (V1PodResourceClaimBuilder item : resourceClaims) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A removeAllFromEphemeralContainers(Collection items) { + if (this.ephemeralContainers == null) { + return (A) this; + } + for (V1EphemeralContainer item : items) { + V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); + _visitables.get("ephemeralContainers").remove(builder); + this.ephemeralContainers.remove(builder); + } + return (A) this; } - public boolean hasMatchingResourceClaim(Predicate predicate) { - for (V1PodResourceClaimBuilder item : resourceClaims) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A removeAllFromHostAliases(Collection items) { + if (this.hostAliases == null) { + return (A) this; + } + for (V1HostAlias item : items) { + V1HostAliasBuilder builder = new V1HostAliasBuilder(item); + _visitables.get("hostAliases").remove(builder); + this.hostAliases.remove(builder); + } + return (A) this; } - public A withResourceClaims(List resourceClaims) { - if (this.resourceClaims != null) { - this._visitables.get("resourceClaims").clear(); + public A removeAllFromImagePullSecrets(Collection items) { + if (this.imagePullSecrets == null) { + return (A) this; } - if (resourceClaims != null) { - this.resourceClaims = new ArrayList(); - for (V1PodResourceClaim item : resourceClaims) { - this.addToResourceClaims(item); - } - } else { - this.resourceClaims = null; + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); } return (A) this; } - public A withResourceClaims(io.kubernetes.client.openapi.models.V1PodResourceClaim... resourceClaims) { - if (this.resourceClaims != null) { - this.resourceClaims.clear(); - _visitables.remove("resourceClaims"); + public A removeAllFromInitContainers(Collection items) { + if (this.initContainers == null) { + return (A) this; } - if (resourceClaims != null) { - for (V1PodResourceClaim item : resourceClaims) { - this.addToResourceClaims(item); - } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("initContainers").remove(builder); + this.initContainers.remove(builder); } return (A) this; } - public boolean hasResourceClaims() { - return this.resourceClaims != null && !this.resourceClaims.isEmpty(); + public A removeAllFromReadinessGates(Collection items) { + if (this.readinessGates == null) { + return (A) this; + } + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").remove(builder); + this.readinessGates.remove(builder); + } + return (A) this; } - public ResourceClaimsNested addNewResourceClaim() { - return new ResourceClaimsNested(-1, null); + public A removeAllFromResourceClaims(Collection items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; } - public ResourceClaimsNested addNewResourceClaimLike(V1PodResourceClaim item) { - return new ResourceClaimsNested(-1, item); + public A removeAllFromSchedulingGates(Collection items) { + if (this.schedulingGates == null) { + return (A) this; + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").remove(builder); + this.schedulingGates.remove(builder); + } + return (A) this; } - public ResourceClaimsNested setNewResourceClaimLike(int index,V1PodResourceClaim item) { - return new ResourceClaimsNested(index, item); + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } - 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 A removeAllFromTopologySpreadConstraints(Collection items) { + if (this.topologySpreadConstraints == null) { + return (A) this; + } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").remove(builder); + this.topologySpreadConstraints.remove(builder); + } + return (A) this; } - 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 A removeAllFromVolumes(Collection items) { + if (this.volumes == null) { + return (A) this; + } + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").remove(builder); + this.volumes.remove(builder); + } + return (A) this; } - 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 A removeFromContainers(V1Container... items) { + if (this.containers == null) { + return (A) this; + } + for (V1Container item : items) { + V1ContainerBuilder builder = new V1ContainerBuilder(item); + _visitables.get("containers").remove(builder); + this.containers.remove(builder); + } + return (A) this; } - public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { - int index = -1; - for (int i=0;i map) { + if (this.nodeSelector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.nodeSelector != null) { + this.nodeSelector.remove(key); + } + } + } return (A) this; } - public boolean hasRuntimeClassName() { - return this.runtimeClassName != null; + public A removeFromOverhead(String key) { + if (this.overhead == null) { + return (A) this; + } + if (key != null && this.overhead != null) { + this.overhead.remove(key); + } + return (A) this; } - public String getSchedulerName() { - return this.schedulerName; + public A removeFromOverhead(Map map) { + if (this.overhead == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.overhead != null) { + this.overhead.remove(key); + } + } + } + return (A) this; } - public A withSchedulerName(String schedulerName) { - this.schedulerName = schedulerName; + public A removeFromReadinessGates(V1PodReadinessGate... items) { + if (this.readinessGates == null) { + return (A) this; + } + for (V1PodReadinessGate item : items) { + V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); + _visitables.get("readinessGates").remove(builder); + this.readinessGates.remove(builder); + } return (A) this; } - public boolean hasSchedulerName() { - return this.schedulerName != null; + public A removeFromResourceClaims(V1PodResourceClaim... items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1PodResourceClaim item : items) { + V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; } - 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);} - return (A)this; + public A removeFromSchedulingGates(V1PodSchedulingGate... items) { + if (this.schedulingGates == null) { + return (A) this; + } + for (V1PodSchedulingGate item : items) { + V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); + _visitables.get("schedulingGates").remove(builder); + this.schedulingGates.remove(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);} - return (A)this; + public A removeFromTolerations(V1Toleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } - public A addToSchedulingGates(io.kubernetes.client.openapi.models.V1PodSchedulingGate... items) { - if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} - for (V1PodSchedulingGate item : items) {V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item);_visitables.get("schedulingGates").add(builder);this.schedulingGates.add(builder);} return (A)this; + public A removeFromTopologySpreadConstraints(V1TopologySpreadConstraint... items) { + if (this.topologySpreadConstraints == null) { + return (A) this; + } + for (V1TopologySpreadConstraint item : items) { + V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); + _visitables.get("topologySpreadConstraints").remove(builder); + this.topologySpreadConstraints.remove(builder); + } + return (A) this; } - public A addAllToSchedulingGates(Collection items) { - if (this.schedulingGates == null) {this.schedulingGates = new ArrayList();} - for (V1PodSchedulingGate item : items) {V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item);_visitables.get("schedulingGates").add(builder);this.schedulingGates.add(builder);} return (A)this; + public A removeFromVolumes(V1Volume... items) { + if (this.volumes == null) { + return (A) this; + } + for (V1Volume item : items) { + V1VolumeBuilder builder = new V1VolumeBuilder(item); + _visitables.get("volumes").remove(builder); + this.volumes.remove(builder); + } + return (A) this; } - public A removeFromSchedulingGates(io.kubernetes.client.openapi.models.V1PodSchedulingGate... items) { - if (this.schedulingGates == null) return (A)this; - for (V1PodSchedulingGate item : items) {V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item);_visitables.get("schedulingGates").remove(builder); this.schedulingGates.remove(builder);} return (A)this; + public A removeMatchingFromContainers(Predicate predicate) { + if (containers == null) { + return (A) this; + } + Iterator each = containers.iterator(); + List visitables = _visitables.get("containers"); + while (each.hasNext()) { + V1ContainerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A removeAllFromSchedulingGates(Collection items) { - if (this.schedulingGates == null) return (A)this; - for (V1PodSchedulingGate item : items) {V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item);_visitables.get("schedulingGates").remove(builder); this.schedulingGates.remove(builder);} return (A)this; + public A removeMatchingFromEphemeralContainers(Predicate predicate) { + if (ephemeralContainers == null) { + return (A) this; + } + Iterator each = ephemeralContainers.iterator(); + List visitables = _visitables.get("ephemeralContainers"); + while (each.hasNext()) { + V1EphemeralContainerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A removeMatchingFromSchedulingGates(Predicate predicate) { - if (schedulingGates == null) return (A) this; - final Iterator each = schedulingGates.iterator(); - final List visitables = _visitables.get("schedulingGates"); + public A removeMatchingFromHostAliases(Predicate predicate) { + if (hostAliases == null) { + return (A) this; + } + Iterator each = hostAliases.iterator(); + List visitables = _visitables.get("hostAliases"); while (each.hasNext()) { - V1PodSchedulingGateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1HostAliasBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildSchedulingGates() { - return this.schedulingGates != null ? build(schedulingGates) : null; + public A removeMatchingFromImagePullSecrets(Predicate predicate) { + if (imagePullSecrets == null) { + return (A) this; + } + Iterator each = imagePullSecrets.iterator(); + List visitables = _visitables.get("imagePullSecrets"); + while (each.hasNext()) { + V1LocalObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1PodSchedulingGate buildSchedulingGate(int index) { - return this.schedulingGates.get(index).build(); + public A removeMatchingFromInitContainers(Predicate predicate) { + if (initContainers == null) { + return (A) this; + } + Iterator each = initContainers.iterator(); + List visitables = _visitables.get("initContainers"); + while (each.hasNext()) { + V1ContainerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1PodSchedulingGate buildFirstSchedulingGate() { - return this.schedulingGates.get(0).build(); + public A removeMatchingFromReadinessGates(Predicate predicate) { + if (readinessGates == null) { + return (A) this; + } + Iterator each = readinessGates.iterator(); + List visitables = _visitables.get("readinessGates"); + while (each.hasNext()) { + V1PodReadinessGateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1PodSchedulingGate buildLastSchedulingGate() { - return this.schedulingGates.get(schedulingGates.size() - 1).build(); + public A removeMatchingFromResourceClaims(Predicate predicate) { + if (resourceClaims == null) { + return (A) this; + } + Iterator each = resourceClaims.iterator(); + List visitables = _visitables.get("resourceClaims"); + while (each.hasNext()) { + V1PodResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public V1PodSchedulingGate buildMatchingSchedulingGate(Predicate predicate) { - for (V1PodSchedulingGateBuilder item : schedulingGates) { - if (predicate.test(item)) { - return item.build(); + public A removeMatchingFromSchedulingGates(Predicate predicate) { + if (schedulingGates == null) { + return (A) this; + } + Iterator each = schedulingGates.iterator(); + List visitables = _visitables.get("schedulingGates"); + while (each.hasNext()) { + V1PodSchedulingGateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return null; + } + return (A) this; } - public boolean hasMatchingSchedulingGate(Predicate predicate) { - for (V1PodSchedulingGateBuilder item : schedulingGates) { - if (predicate.test(item)) { - return true; + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1TolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } - return false; + } + return (A) this; } - public A withSchedulingGates(List schedulingGates) { - if (this.schedulingGates != null) { - this._visitables.get("schedulingGates").clear(); + public A removeMatchingFromTopologySpreadConstraints(Predicate predicate) { + if (topologySpreadConstraints == null) { + return (A) this; } - if (schedulingGates != null) { - this.schedulingGates = new ArrayList(); - for (V1PodSchedulingGate item : schedulingGates) { - this.addToSchedulingGates(item); + Iterator each = topologySpreadConstraints.iterator(); + List visitables = _visitables.get("topologySpreadConstraints"); + while (each.hasNext()) { + V1TopologySpreadConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); } - } else { - this.schedulingGates = null; } return (A) this; } - public A withSchedulingGates(io.kubernetes.client.openapi.models.V1PodSchedulingGate... schedulingGates) { - if (this.schedulingGates != null) { - this.schedulingGates.clear(); - _visitables.remove("schedulingGates"); + public A removeMatchingFromVolumes(Predicate predicate) { + if (volumes == null) { + return (A) this; } - if (schedulingGates != null) { - for (V1PodSchedulingGate item : schedulingGates) { - this.addToSchedulingGates(item); - } + Iterator each = volumes.iterator(); + List visitables = _visitables.get("volumes"); + while (each.hasNext()) { + V1VolumeBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } return (A) this; } - public boolean hasSchedulingGates() { - return this.schedulingGates != null && !this.schedulingGates.isEmpty(); + public ContainersNested setNewContainerLike(int index,V1Container item) { + return new ContainersNested(index, item); } - public SchedulingGatesNested addNewSchedulingGate() { - return new SchedulingGatesNested(-1, null); + public EphemeralContainersNested setNewEphemeralContainerLike(int index,V1EphemeralContainer item) { + return new EphemeralContainersNested(index, item); } - public SchedulingGatesNested addNewSchedulingGateLike(V1PodSchedulingGate item) { - return new SchedulingGatesNested(-1, item); + public HostAliasesNested setNewHostAliasLike(int index,V1HostAlias item) { + return new HostAliasesNested(index, item); + } + + public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { + return new ImagePullSecretsNested(index, item); + } + + public InitContainersNested setNewInitContainerLike(int index,V1Container item) { + return new InitContainersNested(index, item); + } + + public ReadinessGatesNested setNewReadinessGateLike(int index,V1PodReadinessGate item) { + return new ReadinessGatesNested(index, item); + } + + public ResourceClaimsNested setNewResourceClaimLike(int index,V1PodResourceClaim item) { + return new ResourceClaimsNested(index, item); } public SchedulingGatesNested setNewSchedulingGateLike(int index,V1PodSchedulingGate item) { return new SchedulingGatesNested(index, item); } - public SchedulingGatesNested editSchedulingGate(int index) { - if (schedulingGates.size() <= index) throw new RuntimeException("Can't edit schedulingGates. Index exceeds size."); - return setNewSchedulingGateLike(index, buildSchedulingGate(index)); + public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { + return new TolerationsNested(index, item); } - public SchedulingGatesNested editFirstSchedulingGate() { - if (schedulingGates.size() == 0) throw new RuntimeException("Can't edit first schedulingGates. The list is empty."); - return setNewSchedulingGateLike(0, buildSchedulingGate(0)); + public TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike(int index,V1TopologySpreadConstraint item) { + return new TopologySpreadConstraintsNested(index, item); } - public SchedulingGatesNested editLastSchedulingGate() { - int index = schedulingGates.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last schedulingGates. The list is empty."); - return setNewSchedulingGateLike(index, buildSchedulingGate(index)); + public VolumesNested setNewVolumeLike(int index,V1Volume item) { + return new VolumesNested(index, item); } - public SchedulingGatesNested editMatchingSchedulingGate(Predicate predicate) { - int index = -1; - for (int i=0;i= containers.size()) { + _visitables.get("containers").add(builder); + containers.add(builder); + } else { + _visitables.get("containers").add(builder); + containers.set(index, builder); + } + return (A) this; } - public V1PodSecurityContext buildSecurityContext() { - return this.securityContext != null ? this.securityContext.build() : null; + 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").add(builder); + ephemeralContainers.set(index, builder); + } + return (A) this; } - public A withSecurityContext(V1PodSecurityContext securityContext) { - this._visitables.remove("securityContext"); - if (securityContext != null) { - this.securityContext = new V1PodSecurityContextBuilder(securityContext); - this._visitables.get("securityContext").add(this.securityContext); + 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 { - this.securityContext = null; - this._visitables.get("securityContext").remove(this.securityContext); + _visitables.get("hostAliases").add(builder); + hostAliases.set(index, builder); } return (A) this; } - public boolean hasSecurityContext() { - return this.securityContext != null; + 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").add(builder); + imagePullSecrets.set(index, builder); + } + return (A) this; } - public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + 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").add(builder); + initContainers.set(index, builder); + } + return (A) this; } - public SecurityContextNested withNewSecurityContextLike(V1PodSecurityContext item) { - return new SecurityContextNested(item); + 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").add(builder); + readinessGates.set(index, builder); + } + return (A) this; } - public SecurityContextNested editSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(null)); + 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").add(builder); + resourceClaims.set(index, builder); + } + return (A) this; } - public SecurityContextNested editOrNewSecurityContext() { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(new V1PodSecurityContextBuilder().build())); + 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").add(builder); + schedulingGates.set(index, builder); + } + return (A) this; } - public SecurityContextNested editOrNewSecurityContextLike(V1PodSecurityContext item) { - return withNewSecurityContextLike(java.util.Optional.ofNullable(buildSecurityContext()).orElse(item)); + 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").add(builder); + tolerations.set(index, builder); + } + return (A) this; } - public String getServiceAccount() { - return this.serviceAccount; + 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").add(builder); + topologySpreadConstraints.set(index, builder); + } + return (A) this; } - public A withServiceAccount(String serviceAccount) { - this.serviceAccount = serviceAccount; + 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").add(builder); + volumes.set(index, builder); + } return (A) this; } - public boolean hasServiceAccount() { - return this.serviceAccount != null; - } - - public String getServiceAccountName() { - return this.serviceAccountName; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(activeDeadlineSeconds == null)) { + sb.append("activeDeadlineSeconds:"); + sb.append(activeDeadlineSeconds); + sb.append(","); + } + if (!(affinity == null)) { + sb.append("affinity:"); + sb.append(affinity); + sb.append(","); + } + if (!(automountServiceAccountToken == null)) { + sb.append("automountServiceAccountToken:"); + sb.append(automountServiceAccountToken); + sb.append(","); + } + if (!(containers == null) && !(containers.isEmpty())) { + sb.append("containers:"); + sb.append(containers); + sb.append(","); + } + if (!(dnsConfig == null)) { + sb.append("dnsConfig:"); + sb.append(dnsConfig); + sb.append(","); + } + if (!(dnsPolicy == null)) { + sb.append("dnsPolicy:"); + sb.append(dnsPolicy); + sb.append(","); + } + if (!(enableServiceLinks == null)) { + sb.append("enableServiceLinks:"); + sb.append(enableServiceLinks); + sb.append(","); + } + if (!(ephemeralContainers == null) && !(ephemeralContainers.isEmpty())) { + sb.append("ephemeralContainers:"); + sb.append(ephemeralContainers); + sb.append(","); + } + if (!(hostAliases == null) && !(hostAliases.isEmpty())) { + sb.append("hostAliases:"); + sb.append(hostAliases); + sb.append(","); + } + if (!(hostIPC == null)) { + sb.append("hostIPC:"); + sb.append(hostIPC); + sb.append(","); + } + if (!(hostNetwork == null)) { + sb.append("hostNetwork:"); + sb.append(hostNetwork); + sb.append(","); + } + if (!(hostPID == null)) { + sb.append("hostPID:"); + sb.append(hostPID); + sb.append(","); + } + if (!(hostUsers == null)) { + sb.append("hostUsers:"); + sb.append(hostUsers); + sb.append(","); + } + if (!(hostname == null)) { + sb.append("hostname:"); + sb.append(hostname); + sb.append(","); + } + if (!(hostnameOverride == null)) { + sb.append("hostnameOverride:"); + sb.append(hostnameOverride); + sb.append(","); + } + if (!(imagePullSecrets == null) && !(imagePullSecrets.isEmpty())) { + sb.append("imagePullSecrets:"); + sb.append(imagePullSecrets); + sb.append(","); + } + if (!(initContainers == null) && !(initContainers.isEmpty())) { + sb.append("initContainers:"); + sb.append(initContainers); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeSelector == null) && !(nodeSelector.isEmpty())) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(os == null)) { + sb.append("os:"); + sb.append(os); + sb.append(","); + } + if (!(overhead == null) && !(overhead.isEmpty())) { + sb.append("overhead:"); + sb.append(overhead); + sb.append(","); + } + if (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(priorityClassName == null)) { + sb.append("priorityClassName:"); + sb.append(priorityClassName); + sb.append(","); + } + if (!(readinessGates == null) && !(readinessGates.isEmpty())) { + sb.append("readinessGates:"); + sb.append(readinessGates); + sb.append(","); + } + if (!(resourceClaims == null) && !(resourceClaims.isEmpty())) { + sb.append("resourceClaims:"); + sb.append(resourceClaims); + sb.append(","); + } + if (!(resources == null)) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(restartPolicy == null)) { + sb.append("restartPolicy:"); + sb.append(restartPolicy); + sb.append(","); + } + if (!(runtimeClassName == null)) { + sb.append("runtimeClassName:"); + sb.append(runtimeClassName); + sb.append(","); + } + if (!(schedulerName == null)) { + sb.append("schedulerName:"); + sb.append(schedulerName); + sb.append(","); + } + if (!(schedulingGates == null) && !(schedulingGates.isEmpty())) { + sb.append("schedulingGates:"); + sb.append(schedulingGates); + sb.append(","); + } + if (!(securityContext == null)) { + sb.append("securityContext:"); + sb.append(securityContext); + sb.append(","); + } + if (!(serviceAccount == null)) { + sb.append("serviceAccount:"); + sb.append(serviceAccount); + sb.append(","); + } + if (!(serviceAccountName == null)) { + sb.append("serviceAccountName:"); + sb.append(serviceAccountName); + sb.append(","); + } + if (!(setHostnameAsFQDN == null)) { + sb.append("setHostnameAsFQDN:"); + sb.append(setHostnameAsFQDN); + sb.append(","); + } + if (!(shareProcessNamespace == null)) { + sb.append("shareProcessNamespace:"); + sb.append(shareProcessNamespace); + sb.append(","); + } + if (!(subdomain == null)) { + sb.append("subdomain:"); + sb.append(subdomain); + sb.append(","); + } + if (!(terminationGracePeriodSeconds == null)) { + sb.append("terminationGracePeriodSeconds:"); + sb.append(terminationGracePeriodSeconds); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + sb.append(","); + } + if (!(topologySpreadConstraints == null) && !(topologySpreadConstraints.isEmpty())) { + sb.append("topologySpreadConstraints:"); + sb.append(topologySpreadConstraints); + sb.append(","); + } + if (!(volumes == null) && !(volumes.isEmpty())) { + sb.append("volumes:"); + sb.append(volumes); + sb.append(","); + } + if (!(workloadRef == null)) { + sb.append("workloadRef:"); + sb.append(workloadRef); + } + sb.append("}"); + return sb.toString(); } - public A withServiceAccountName(String serviceAccountName) { - this.serviceAccountName = serviceAccountName; + public A withActiveDeadlineSeconds(Long activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; return (A) this; } - public boolean hasServiceAccountName() { - return this.serviceAccountName != null; + public A withAffinity(V1Affinity affinity) { + this._visitables.remove("affinity"); + if (affinity != null) { + this.affinity = new V1AffinityBuilder(affinity); + this._visitables.get("affinity").add(this.affinity); + } else { + this.affinity = null; + this._visitables.get("affinity").remove(this.affinity); + } + return (A) this; } - public Boolean getSetHostnameAsFQDN() { - return this.setHostnameAsFQDN; + public A withAutomountServiceAccountToken() { + return withAutomountServiceAccountToken(true); } - public A withSetHostnameAsFQDN(Boolean setHostnameAsFQDN) { - this.setHostnameAsFQDN = setHostnameAsFQDN; + public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { + this.automountServiceAccountToken = automountServiceAccountToken; return (A) this; } - public boolean hasSetHostnameAsFQDN() { - return this.setHostnameAsFQDN != null; + public A withContainers(List containers) { + if (this.containers != null) { + this._visitables.get("containers").clear(); + } + if (containers != null) { + this.containers = new ArrayList(); + for (V1Container item : containers) { + this.addToContainers(item); + } + } else { + this.containers = null; + } + return (A) this; } - public Boolean getShareProcessNamespace() { - return this.shareProcessNamespace; + public A withContainers(V1Container... containers) { + if (this.containers != null) { + this.containers.clear(); + _visitables.remove("containers"); + } + if (containers != null) { + for (V1Container item : containers) { + this.addToContainers(item); + } + } + return (A) this; } - public A withShareProcessNamespace(Boolean shareProcessNamespace) { - this.shareProcessNamespace = shareProcessNamespace; + public A withDnsConfig(V1PodDNSConfig dnsConfig) { + this._visitables.remove("dnsConfig"); + if (dnsConfig != null) { + this.dnsConfig = new V1PodDNSConfigBuilder(dnsConfig); + this._visitables.get("dnsConfig").add(this.dnsConfig); + } else { + this.dnsConfig = null; + this._visitables.get("dnsConfig").remove(this.dnsConfig); + } return (A) this; } - public boolean hasShareProcessNamespace() { - return this.shareProcessNamespace != null; + public A withDnsPolicy(String dnsPolicy) { + this.dnsPolicy = dnsPolicy; + return (A) this; } - public String getSubdomain() { - return this.subdomain; + public A withEnableServiceLinks() { + return withEnableServiceLinks(true); } - public A withSubdomain(String subdomain) { - this.subdomain = subdomain; + public A withEnableServiceLinks(Boolean enableServiceLinks) { + this.enableServiceLinks = enableServiceLinks; return (A) this; } - public boolean hasSubdomain() { - return this.subdomain != null; - } - - public Long getTerminationGracePeriodSeconds() { - return this.terminationGracePeriodSeconds; + public A withEphemeralContainers(List ephemeralContainers) { + if (this.ephemeralContainers != null) { + this._visitables.get("ephemeralContainers").clear(); + } + if (ephemeralContainers != null) { + this.ephemeralContainers = new ArrayList(); + for (V1EphemeralContainer item : ephemeralContainers) { + this.addToEphemeralContainers(item); + } + } else { + this.ephemeralContainers = null; + } + return (A) this; } - public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { - this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + public A withEphemeralContainers(V1EphemeralContainer... ephemeralContainers) { + if (this.ephemeralContainers != null) { + this.ephemeralContainers.clear(); + _visitables.remove("ephemeralContainers"); + } + if (ephemeralContainers != null) { + for (V1EphemeralContainer item : ephemeralContainers) { + this.addToEphemeralContainers(item); + } + } return (A) this; } - public boolean hasTerminationGracePeriodSeconds() { - return this.terminationGracePeriodSeconds != null; + public A withHostAliases(List hostAliases) { + if (this.hostAliases != null) { + this._visitables.get("hostAliases").clear(); + } + if (hostAliases != null) { + this.hostAliases = new ArrayList(); + for (V1HostAlias item : hostAliases) { + this.addToHostAliases(item); + } + } else { + this.hostAliases = null; + } + return (A) this; } - 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);} - return (A)this; + public A withHostAliases(V1HostAlias... hostAliases) { + if (this.hostAliases != null) { + this.hostAliases.clear(); + _visitables.remove("hostAliases"); + } + if (hostAliases != null) { + for (V1HostAlias item : hostAliases) { + this.addToHostAliases(item); + } + } + 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);} - return (A)this; + public A withHostIPC() { + return withHostIPC(true); } - public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A withHostIPC(Boolean hostIPC) { + this.hostIPC = hostIPC; + return (A) this; } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public A withHostNetwork() { + return withHostNetwork(true); } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) return (A)this; - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A withHostNetwork(Boolean hostNetwork) { + this.hostNetwork = hostNetwork; + return (A) this; } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public A withHostPID() { + return withHostPID(true); } - 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()) { - V1TolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public A withHostPID(Boolean hostPID) { + this.hostPID = hostPID; + return (A) this; } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; + public A withHostUsers() { + return withHostUsers(true); } - public V1Toleration buildToleration(int index) { - return this.tolerations.get(index).build(); + public A withHostUsers(Boolean hostUsers) { + this.hostUsers = hostUsers; + return (A) this; } - public V1Toleration buildFirstToleration() { - return this.tolerations.get(0).build(); + public A withHostname(String hostname) { + this.hostname = hostname; + return (A) this; } - public V1Toleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); + public A withHostnameOverride(String hostnameOverride) { + this.hostnameOverride = hostnameOverride; + return (A) this; } - public V1Toleration buildMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); + public A withImagePullSecrets(List imagePullSecrets) { + if (this.imagePullSecrets != null) { + this._visitables.get("imagePullSecrets").clear(); + } + if (imagePullSecrets != null) { + this.imagePullSecrets = new ArrayList(); + for (V1LocalObjectReference item : imagePullSecrets) { + this.addToImagePullSecrets(item); } - } - return null; + } else { + this.imagePullSecrets = null; + } + return (A) this; } - public boolean hasMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return true; - } + public A withImagePullSecrets(V1LocalObjectReference... imagePullSecrets) { + if (this.imagePullSecrets != null) { + this.imagePullSecrets.clear(); + _visitables.remove("imagePullSecrets"); + } + if (imagePullSecrets != null) { + for (V1LocalObjectReference item : imagePullSecrets) { + this.addToImagePullSecrets(item); } - return false; + } + return (A) this; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public A withInitContainers(List initContainers) { + if (this.initContainers != null) { + this._visitables.get("initContainers").clear(); } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1Toleration item : tolerations) { - this.addToTolerations(item); + if (initContainers != null) { + this.initContainers = new ArrayList(); + for (V1Container item : initContainers) { + this.addToInitContainers(item); } } else { - this.tolerations = null; + this.initContainers = null; } return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A withInitContainers(V1Container... initContainers) { + if (this.initContainers != null) { + this.initContainers.clear(); + _visitables.remove("initContainers"); } - if (tolerations != null) { - for (V1Toleration item : tolerations) { - this.addToTolerations(item); + if (initContainers != null) { + for (V1Container item : initContainers) { + this.addToInitContainers(item); } } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + public AffinityNested withNewAffinity() { + return new AffinityNested(null); } - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public AffinityNested withNewAffinityLike(V1Affinity item) { + return new AffinityNested(item); } - public TolerationsNested addNewTolerationLike(V1Toleration item) { - return new TolerationsNested(-1, item); + public DnsConfigNested withNewDnsConfig() { + return new DnsConfigNested(null); } - public TolerationsNested setNewTolerationLike(int index,V1Toleration item) { - return new TolerationsNested(index, item); + public DnsConfigNested withNewDnsConfigLike(V1PodDNSConfig item) { + return new DnsConfigNested(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 OsNested withNewOs() { + return new OsNested(null); } - 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 OsNested withNewOsLike(V1PodOS item) { + return new OsNested(item); } - 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 ResourcesNested withNewResources() { + return new ResourcesNested(null); } - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i=0;i withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); } - public A addToTopologySpreadConstraints(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").add(index, builder); topologySpreadConstraints.add(index, builder);} - return (A)this; + public SecurityContextNested withNewSecurityContext() { + return new SecurityContextNested(null); } - 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);} - return (A)this; + public SecurityContextNested withNewSecurityContextLike(V1PodSecurityContext item) { + return new SecurityContextNested(item); } - public A addToTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { - if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} - for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").add(builder);this.topologySpreadConstraints.add(builder);} return (A)this; + public WorkloadRefNested withNewWorkloadRef() { + return new WorkloadRefNested(null); } - public A addAllToTopologySpreadConstraints(Collection items) { - if (this.topologySpreadConstraints == null) {this.topologySpreadConstraints = new ArrayList();} - for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").add(builder);this.topologySpreadConstraints.add(builder);} return (A)this; + public WorkloadRefNested withNewWorkloadRefLike(V1WorkloadReference item) { + return new WorkloadRefNested(item); } - public A removeFromTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... items) { - if (this.topologySpreadConstraints == null) return (A)this; - for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").remove(builder); this.topologySpreadConstraints.remove(builder);} return (A)this; + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; } - public A removeAllFromTopologySpreadConstraints(Collection items) { - if (this.topologySpreadConstraints == null) return (A)this; - for (V1TopologySpreadConstraint item : items) {V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item);_visitables.get("topologySpreadConstraints").remove(builder); this.topologySpreadConstraints.remove(builder);} return (A)this; + public A withNodeSelector(Map nodeSelector) { + if (nodeSelector == null) { + this.nodeSelector = null; + } else { + this.nodeSelector = new LinkedHashMap(nodeSelector); + } + return (A) this; } - public A removeMatchingFromTopologySpreadConstraints(Predicate predicate) { - if (topologySpreadConstraints == null) return (A) this; - final Iterator each = topologySpreadConstraints.iterator(); - final List visitables = _visitables.get("topologySpreadConstraints"); - while (each.hasNext()) { - V1TopologySpreadConstraintBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A withOs(V1PodOS os) { + this._visitables.remove("os"); + if (os != null) { + this.os = new V1PodOSBuilder(os); + this._visitables.get("os").add(this.os); + } else { + this.os = null; + this._visitables.get("os").remove(this.os); } - return (A)this; + return (A) this; } - public List buildTopologySpreadConstraints() { - return this.topologySpreadConstraints != null ? build(topologySpreadConstraints) : null; + public A withOverhead(Map overhead) { + if (overhead == null) { + this.overhead = null; + } else { + this.overhead = new LinkedHashMap(overhead); + } + return (A) this; } - public V1TopologySpreadConstraint buildTopologySpreadConstraint(int index) { - return this.topologySpreadConstraints.get(index).build(); + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; } - public V1TopologySpreadConstraint buildFirstTopologySpreadConstraint() { - return this.topologySpreadConstraints.get(0).build(); + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; } - public V1TopologySpreadConstraint buildLastTopologySpreadConstraint() { - return this.topologySpreadConstraints.get(topologySpreadConstraints.size() - 1).build(); + public A withPriorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; + return (A) this; } - public V1TopologySpreadConstraint buildMatchingTopologySpreadConstraint(Predicate predicate) { - for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { - if (predicate.test(item)) { - return item.build(); + public A withReadinessGates(List readinessGates) { + if (this.readinessGates != null) { + this._visitables.get("readinessGates").clear(); + } + if (readinessGates != null) { + this.readinessGates = new ArrayList(); + for (V1PodReadinessGate item : readinessGates) { + this.addToReadinessGates(item); } - } - return null; + } else { + this.readinessGates = null; + } + return (A) this; } - public boolean hasMatchingTopologySpreadConstraint(Predicate predicate) { - for (V1TopologySpreadConstraintBuilder item : topologySpreadConstraints) { - if (predicate.test(item)) { - return true; - } + public A withReadinessGates(V1PodReadinessGate... readinessGates) { + if (this.readinessGates != null) { + this.readinessGates.clear(); + _visitables.remove("readinessGates"); + } + if (readinessGates != null) { + for (V1PodReadinessGate item : readinessGates) { + this.addToReadinessGates(item); } - return false; + } + return (A) this; } - public A withTopologySpreadConstraints(List topologySpreadConstraints) { - if (this.topologySpreadConstraints != null) { - this._visitables.get("topologySpreadConstraints").clear(); + public A withResourceClaims(List resourceClaims) { + if (this.resourceClaims != null) { + this._visitables.get("resourceClaims").clear(); } - if (topologySpreadConstraints != null) { - this.topologySpreadConstraints = new ArrayList(); - for (V1TopologySpreadConstraint item : topologySpreadConstraints) { - this.addToTopologySpreadConstraints(item); + if (resourceClaims != null) { + this.resourceClaims = new ArrayList(); + for (V1PodResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); } } else { - this.topologySpreadConstraints = null; + this.resourceClaims = null; } return (A) this; } - public A withTopologySpreadConstraints(io.kubernetes.client.openapi.models.V1TopologySpreadConstraint... topologySpreadConstraints) { - if (this.topologySpreadConstraints != null) { - this.topologySpreadConstraints.clear(); - _visitables.remove("topologySpreadConstraints"); + public A withResourceClaims(V1PodResourceClaim... resourceClaims) { + if (this.resourceClaims != null) { + this.resourceClaims.clear(); + _visitables.remove("resourceClaims"); } - if (topologySpreadConstraints != null) { - for (V1TopologySpreadConstraint item : topologySpreadConstraints) { - this.addToTopologySpreadConstraints(item); + if (resourceClaims != null) { + for (V1PodResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); } } return (A) this; } - public boolean hasTopologySpreadConstraints() { - return this.topologySpreadConstraints != null && !this.topologySpreadConstraints.isEmpty(); - } - - public TopologySpreadConstraintsNested addNewTopologySpreadConstraint() { - return new TopologySpreadConstraintsNested(-1, null); - } - - public TopologySpreadConstraintsNested addNewTopologySpreadConstraintLike(V1TopologySpreadConstraint item) { - return new TopologySpreadConstraintsNested(-1, item); + public A withResources(V1ResourceRequirements resources) { + this._visitables.remove("resources"); + if (resources != null) { + this.resources = new V1ResourceRequirementsBuilder(resources); + this._visitables.get("resources").add(this.resources); + } else { + this.resources = null; + this._visitables.get("resources").remove(this.resources); + } + return (A) this; } - public TopologySpreadConstraintsNested setNewTopologySpreadConstraintLike(int index,V1TopologySpreadConstraint item) { - return new TopologySpreadConstraintsNested(index, item); + public A withRestartPolicy(String restartPolicy) { + this.restartPolicy = restartPolicy; + return (A) this; } - public TopologySpreadConstraintsNested editTopologySpreadConstraint(int index) { - if (topologySpreadConstraints.size() <= index) throw new RuntimeException("Can't edit topologySpreadConstraints. Index exceeds size."); - return setNewTopologySpreadConstraintLike(index, buildTopologySpreadConstraint(index)); + public A withRuntimeClassName(String runtimeClassName) { + this.runtimeClassName = runtimeClassName; + return (A) this; } - public TopologySpreadConstraintsNested editFirstTopologySpreadConstraint() { - if (topologySpreadConstraints.size() == 0) throw new RuntimeException("Can't edit first topologySpreadConstraints. The list is empty."); - return setNewTopologySpreadConstraintLike(0, buildTopologySpreadConstraint(0)); + public A withSchedulerName(String schedulerName) { + this.schedulerName = schedulerName; + return (A) this; } - public TopologySpreadConstraintsNested editLastTopologySpreadConstraint() { - int index = topologySpreadConstraints.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last topologySpreadConstraints. The list is empty."); - return setNewTopologySpreadConstraintLike(index, buildTopologySpreadConstraint(index)); + public A withSchedulingGates(List schedulingGates) { + if (this.schedulingGates != null) { + this._visitables.get("schedulingGates").clear(); + } + if (schedulingGates != null) { + this.schedulingGates = new ArrayList(); + for (V1PodSchedulingGate item : schedulingGates) { + this.addToSchedulingGates(item); + } + } else { + this.schedulingGates = null; + } + return (A) this; } - public TopologySpreadConstraintsNested editMatchingTopologySpreadConstraint(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public A withSecurityContext(V1PodSecurityContext securityContext) { + this._visitables.remove("securityContext"); + if (securityContext != null) { + this.securityContext = new V1PodSecurityContextBuilder(securityContext); + this._visitables.get("securityContext").add(this.securityContext); + } else { + this.securityContext = null; + this._visitables.get("securityContext").remove(this.securityContext); + } + 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);} - return (A)this; + public A withServiceAccount(String serviceAccount) { + this.serviceAccount = serviceAccount; + return (A) this; } - public A addToVolumes(io.kubernetes.client.openapi.models.V1Volume... items) { - if (this.volumes == null) {this.volumes = new ArrayList();} - for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").add(builder);this.volumes.add(builder);} return (A)this; + public A withServiceAccountName(String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + return (A) this; } - public A addAllToVolumes(Collection items) { - if (this.volumes == null) {this.volumes = new ArrayList();} - for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").add(builder);this.volumes.add(builder);} return (A)this; + public A withSetHostnameAsFQDN() { + return withSetHostnameAsFQDN(true); } - public A removeFromVolumes(io.kubernetes.client.openapi.models.V1Volume... items) { - if (this.volumes == null) return (A)this; - for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").remove(builder); this.volumes.remove(builder);} return (A)this; + public A withSetHostnameAsFQDN(Boolean setHostnameAsFQDN) { + this.setHostnameAsFQDN = setHostnameAsFQDN; + return (A) this; } - public A removeAllFromVolumes(Collection items) { - if (this.volumes == null) return (A)this; - for (V1Volume item : items) {V1VolumeBuilder builder = new V1VolumeBuilder(item);_visitables.get("volumes").remove(builder); this.volumes.remove(builder);} return (A)this; + public A withShareProcessNamespace() { + return withShareProcessNamespace(true); } - public A removeMatchingFromVolumes(Predicate predicate) { - if (volumes == null) return (A) this; - final Iterator each = volumes.iterator(); - final List visitables = _visitables.get("volumes"); - while (each.hasNext()) { - V1VolumeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public A withShareProcessNamespace(Boolean shareProcessNamespace) { + this.shareProcessNamespace = shareProcessNamespace; + return (A) this; } - public List buildVolumes() { - return this.volumes != null ? build(volumes) : null; + public A withSubdomain(String subdomain) { + this.subdomain = subdomain; + return (A) this; } - public V1Volume buildVolume(int index) { - return this.volumes.get(index).build(); + public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + return (A) this; } - public V1Volume buildFirstVolume() { - return this.volumes.get(0).build(); + public A withTolerations(List tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1Toleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; } - public V1Volume buildLastVolume() { - return this.volumes.get(volumes.size() - 1).build(); + public A withTolerations(V1Toleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1Toleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; } - public V1Volume buildMatchingVolume(Predicate predicate) { - for (V1VolumeBuilder item : volumes) { - if (predicate.test(item)) { - return item.build(); + public A withTopologySpreadConstraints(List topologySpreadConstraints) { + if (this.topologySpreadConstraints != null) { + this._visitables.get("topologySpreadConstraints").clear(); + } + if (topologySpreadConstraints != null) { + this.topologySpreadConstraints = new ArrayList(); + for (V1TopologySpreadConstraint item : topologySpreadConstraints) { + this.addToTopologySpreadConstraints(item); } - } - return null; + } else { + this.topologySpreadConstraints = null; + } + return (A) this; } - public boolean hasMatchingVolume(Predicate predicate) { - for (V1VolumeBuilder item : volumes) { - if (predicate.test(item)) { - return true; - } + public A withTopologySpreadConstraints(V1TopologySpreadConstraint... topologySpreadConstraints) { + if (this.topologySpreadConstraints != null) { + this.topologySpreadConstraints.clear(); + _visitables.remove("topologySpreadConstraints"); + } + if (topologySpreadConstraints != null) { + for (V1TopologySpreadConstraint item : topologySpreadConstraints) { + this.addToTopologySpreadConstraints(item); } - return false; + } + return (A) this; } public A withVolumes(List volumes) { @@ -2241,7 +3441,7 @@ public A withVolumes(List volumes) { return (A) this; } - public A withVolumes(io.kubernetes.client.openapi.models.V1Volume... volumes) { + public A withVolumes(V1Volume... volumes) { if (this.volumes != null) { this.volumes.clear(); _visitables.remove("volumes"); @@ -2254,181 +3454,25 @@ public A withVolumes(io.kubernetes.client.openapi.models.V1Volume... volumes) { return (A) this; } - public boolean hasVolumes() { - return this.volumes != null && !this.volumes.isEmpty(); - } - - public VolumesNested addNewVolume() { - return new VolumesNested(-1, null); - } - - public VolumesNested addNewVolumeLike(V1Volume item) { - return new VolumesNested(-1, item); - } - - public VolumesNested setNewVolumeLike(int index,V1Volume item) { - return new VolumesNested(index, item); - } - - public VolumesNested editVolume(int index) { - if (volumes.size() <= index) throw new RuntimeException("Can't edit volumes. Index exceeds size."); - return setNewVolumeLike(index, buildVolume(index)); - } - - public VolumesNested editFirstVolume() { - if (volumes.size() == 0) throw new RuntimeException("Can't edit first volumes. The list is empty."); - return setNewVolumeLike(0, buildVolume(0)); - } - - public VolumesNested editLastVolume() { - int index = volumes.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumes. The list is empty."); - return setNewVolumeLike(index, buildVolume(index)); - } - - public VolumesNested editMatchingVolume(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1AffinityFluent> implements Nested{ - public A withSetHostnameAsFQDN() { - return withSetHostnameAsFQDN(true); - } + V1AffinityBuilder builder; - public A withShareProcessNamespace() { - return withShareProcessNamespace(true); - } - public class AffinityNested extends V1AffinityFluent> implements Nested{ AffinityNested(V1Affinity item) { this.builder = new V1AffinityBuilder(this, item); } - V1AffinityBuilder builder; - + public N and() { return (N) V1PodSpecFluent.this.withAffinity(builder.build()); } @@ -2437,32 +3481,34 @@ public N endAffinity() { return and(); } - } public class ContainersNested extends V1ContainerFluent> implements Nested{ + + V1ContainerBuilder builder; + int index; + ContainersNested(int index,V1Container item) { this.index = index; this.builder = new V1ContainerBuilder(this, item); } - V1ContainerBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToContainers(index,builder.build()); + return (N) V1PodSpecFluent.this.setToContainers(index, builder.build()); } public N endContainer() { return and(); } - } public class DnsConfigNested extends V1PodDNSConfigFluent> implements Nested{ + + V1PodDNSConfigBuilder builder; + DnsConfigNested(V1PodDNSConfig item) { this.builder = new V1PodDNSConfigBuilder(this, item); } - V1PodDNSConfigBuilder builder; - + public N and() { return (N) V1PodSpecFluent.this.withDnsConfig(builder.build()); } @@ -2471,86 +3517,91 @@ public N endDnsConfig() { return and(); } - } public class EphemeralContainersNested extends V1EphemeralContainerFluent> implements Nested{ + + V1EphemeralContainerBuilder builder; + int index; + EphemeralContainersNested(int index,V1EphemeralContainer item) { this.index = index; this.builder = new V1EphemeralContainerBuilder(this, item); } - V1EphemeralContainerBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToEphemeralContainers(index,builder.build()); + return (N) V1PodSpecFluent.this.setToEphemeralContainers(index, builder.build()); } public N endEphemeralContainer() { return and(); } - } public class HostAliasesNested extends V1HostAliasFluent> implements Nested{ + + V1HostAliasBuilder builder; + int index; + HostAliasesNested(int index,V1HostAlias item) { this.index = index; this.builder = new V1HostAliasBuilder(this, item); } - V1HostAliasBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToHostAliases(index,builder.build()); + return (N) V1PodSpecFluent.this.setToHostAliases(index, builder.build()); } public N endHostAlias() { return and(); } - } public class ImagePullSecretsNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + int index; + ImagePullSecretsNested(int index,V1LocalObjectReference item) { this.index = index; this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToImagePullSecrets(index,builder.build()); + return (N) V1PodSpecFluent.this.setToImagePullSecrets(index, builder.build()); } public N endImagePullSecret() { return and(); } - } public class InitContainersNested extends V1ContainerFluent> implements Nested{ + + V1ContainerBuilder builder; + int index; + InitContainersNested(int index,V1Container item) { this.index = index; this.builder = new V1ContainerBuilder(this, item); } - V1ContainerBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToInitContainers(index,builder.build()); + return (N) V1PodSpecFluent.this.setToInitContainers(index, builder.build()); } public N endInitContainer() { return and(); } - } public class OsNested extends V1PodOSFluent> implements Nested{ + + V1PodOSBuilder builder; + OsNested(V1PodOS item) { this.builder = new V1PodOSBuilder(this, item); } - V1PodOSBuilder builder; - + public N and() { return (N) V1PodSpecFluent.this.withOs(builder.build()); } @@ -2559,68 +3610,89 @@ public N endOs() { return and(); } - } public class ReadinessGatesNested extends V1PodReadinessGateFluent> implements Nested{ + + V1PodReadinessGateBuilder builder; + int index; + ReadinessGatesNested(int index,V1PodReadinessGate item) { this.index = index; this.builder = new V1PodReadinessGateBuilder(this, item); } - V1PodReadinessGateBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToReadinessGates(index,builder.build()); + return (N) V1PodSpecFluent.this.setToReadinessGates(index, builder.build()); } public N endReadinessGate() { return and(); } - } public class ResourceClaimsNested extends V1PodResourceClaimFluent> implements Nested{ + + V1PodResourceClaimBuilder builder; + int index; + ResourceClaimsNested(int index,V1PodResourceClaim item) { this.index = index; this.builder = new V1PodResourceClaimBuilder(this, item); } - V1PodResourceClaimBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToResourceClaims(index,builder.build()); + return (N) V1PodSpecFluent.this.setToResourceClaims(index, builder.build()); } public N endResourceClaim() { return and(); } + } + public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + + V1ResourceRequirementsBuilder builder; + + ResourcesNested(V1ResourceRequirements item) { + this.builder = new V1ResourceRequirementsBuilder(this, item); + } + public N and() { + return (N) V1PodSpecFluent.this.withResources(builder.build()); + } + + public N endResources() { + return and(); + } + } public class SchedulingGatesNested extends V1PodSchedulingGateFluent> implements Nested{ + + V1PodSchedulingGateBuilder builder; + int index; + SchedulingGatesNested(int index,V1PodSchedulingGate item) { this.index = index; this.builder = new V1PodSchedulingGateBuilder(this, item); } - V1PodSchedulingGateBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToSchedulingGates(index,builder.build()); + return (N) V1PodSpecFluent.this.setToSchedulingGates(index, builder.build()); } public N endSchedulingGate() { return and(); } - } public class SecurityContextNested extends V1PodSecurityContextFluent> implements Nested{ + + V1PodSecurityContextBuilder builder; + SecurityContextNested(V1PodSecurityContext item) { this.builder = new V1PodSecurityContextBuilder(this, item); } - V1PodSecurityContextBuilder builder; - + public N and() { return (N) V1PodSpecFluent.this.withSecurityContext(builder.build()); } @@ -2629,61 +3701,79 @@ public N endSecurityContext() { return and(); } - } public class TolerationsNested extends V1TolerationFluent> implements Nested{ + + V1TolerationBuilder builder; + int index; + TolerationsNested(int index,V1Toleration item) { this.index = index; this.builder = new V1TolerationBuilder(this, item); } - V1TolerationBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToTolerations(index,builder.build()); + return (N) V1PodSpecFluent.this.setToTolerations(index, builder.build()); } public N endToleration() { return and(); } - } public class TopologySpreadConstraintsNested extends V1TopologySpreadConstraintFluent> implements Nested{ + + V1TopologySpreadConstraintBuilder builder; + int index; + TopologySpreadConstraintsNested(int index,V1TopologySpreadConstraint item) { this.index = index; this.builder = new V1TopologySpreadConstraintBuilder(this, item); } - V1TopologySpreadConstraintBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToTopologySpreadConstraints(index,builder.build()); + return (N) V1PodSpecFluent.this.setToTopologySpreadConstraints(index, builder.build()); } public N endTopologySpreadConstraint() { return and(); } - } public class VolumesNested extends V1VolumeFluent> implements Nested{ + + V1VolumeBuilder builder; + int index; + VolumesNested(int index,V1Volume item) { this.index = index; this.builder = new V1VolumeBuilder(this, item); } - V1VolumeBuilder builder; - int index; - + public N and() { - return (N) V1PodSpecFluent.this.setToVolumes(index,builder.build()); + return (N) V1PodSpecFluent.this.setToVolumes(index, builder.build()); } public N endVolume() { return and(); } + } + public class WorkloadRefNested extends V1WorkloadReferenceFluent> implements Nested{ + + V1WorkloadReferenceBuilder builder; + + WorkloadRefNested(V1WorkloadReference item) { + this.builder = new V1WorkloadReferenceBuilder(this, item); + } + public N and() { + return (N) V1PodSpecFluent.this.withWorkloadRef(builder.build()); + } + + public N endWorkloadRef() { + return and(); + } + } - } \ No newline at end of file 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..b3b2acc5d8 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodStatusBuilder extends V1PodStatusFluent implements VisitableBuilder{ + + V1PodStatusFluent fluent; + public V1PodStatusBuilder() { this(new V1PodStatus()); } @@ -10,27 +14,29 @@ public V1PodStatusBuilder(V1PodStatusFluent fluent) { this(fluent, new V1PodStatus()); } - public V1PodStatusBuilder(V1PodStatusFluent fluent,V1PodStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodStatusBuilder(V1PodStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PodStatusFluent fluent; + public V1PodStatusBuilder(V1PodStatusFluent fluent,V1PodStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodStatus build() { V1PodStatus buildable = new V1PodStatus(); + buildable.setAllocatedResources(fluent.getAllocatedResources()); buildable.setConditions(fluent.buildConditions()); buildable.setContainerStatuses(fluent.buildContainerStatuses()); buildable.setEphemeralContainerStatuses(fluent.buildEphemeralContainerStatuses()); + buildable.setExtendedResourceClaimStatus(fluent.buildExtendedResourceClaimStatus()); buildable.setHostIP(fluent.getHostIP()); buildable.setHostIPs(fluent.buildHostIPs()); 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()); @@ -38,9 +44,9 @@ public V1PodStatus build() { buildable.setReason(fluent.getReason()); buildable.setResize(fluent.getResize()); buildable.setResourceClaimStatuses(fluent.buildResourceClaimStatuses()); + buildable.setResources(fluent.buildResources()); buildable.setStartTime(fluent.getStartTime()); return buildable; } - } \ No newline at end of file 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..2d5e01983c 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 @@ -1,37 +1,42 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; 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.StringBuilder; +import java.lang.SuppressWarnings; import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodStatusFluent> extends BaseFluent{ - public V1PodStatusFluent() { - } - - public V1PodStatusFluent(V1PodStatus instance) { - this.copyInstance(instance); - } +public class V1PodStatusFluent> extends BaseFluent{ + + private Map allocatedResources; private ArrayList conditions; private ArrayList containerStatuses; private ArrayList ephemeralContainerStatuses; + private V1PodExtendedResourceClaimStatusBuilder extendedResourceClaimStatus; private String hostIP; private ArrayList hostIPs; private ArrayList initContainerStatuses; private String message; private String nominatedNodeName; + private Long observedGeneration; private String phase; private String podIP; private ArrayList podIPs; @@ -39,142 +44,98 @@ public V1PodStatusFluent(V1PodStatus instance) { private String reason; private String resize; private ArrayList resourceClaimStatuses; + private V1ResourceRequirementsBuilder resources; private OffsetDateTime startTime; - - protected void copyInstance(V1PodStatus instance) { - instance = (instance != null ? instance : new V1PodStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withContainerStatuses(instance.getContainerStatuses()); - this.withEphemeralContainerStatuses(instance.getEphemeralContainerStatuses()); - this.withHostIP(instance.getHostIP()); - this.withHostIPs(instance.getHostIPs()); - this.withInitContainerStatuses(instance.getInitContainerStatuses()); - this.withMessage(instance.getMessage()); - this.withNominatedNodeName(instance.getNominatedNodeName()); - this.withPhase(instance.getPhase()); - this.withPodIP(instance.getPodIP()); - this.withPodIPs(instance.getPodIPs()); - this.withQosClass(instance.getQosClass()); - this.withReason(instance.getReason()); - this.withResize(instance.getResize()); - this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); - this.withStartTime(instance.getStartTime()); - } - } - - 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);} - 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);} - return (A)this; + + public V1PodStatusFluent() { } - public A addToConditions(io.kubernetes.client.openapi.models.V1PodCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1PodCondition item : items) {V1PodConditionBuilder builder = new V1PodConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public V1PodStatusFluent(V1PodStatus instance) { + this.copyInstance(instance); } - + public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1PodCondition item : items) {V1PodConditionBuilder builder = new V1PodConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1PodCondition... items) { - if (this.conditions == null) return (A)this; - for (V1PodCondition item : items) {V1PodConditionBuilder builder = new V1PodConditionBuilder(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 (V1PodCondition item : items) {V1PodConditionBuilder builder = new V1PodConditionBuilder(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()) { - V1PodConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + if (this.conditions == null) { + this.conditions = new ArrayList(); } - return (A)this; - } - - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; - } - - public V1PodCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - - public V1PodCondition buildFirstCondition() { - return this.conditions.get(0).build(); + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public V1PodCondition buildLastCondition() { - return this.conditions.get(conditions.size() - 1).build(); + public A addAllToContainerStatuses(Collection items) { + if (this.containerStatuses == null) { + this.containerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").add(builder); + this.containerStatuses.add(builder); + } + return (A) this; } - public V1PodCondition buildMatchingCondition(Predicate predicate) { - for (V1PodConditionBuilder item : conditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A addAllToEphemeralContainerStatuses(Collection items) { + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.add(builder); + } + return (A) this; } - public boolean hasMatchingCondition(Predicate predicate) { - for (V1PodConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addAllToHostIPs(Collection items) { + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); + } + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").add(builder); + this.hostIPs.add(builder); + } + return (A) this; } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); + public A addAllToInitContainerStatuses(Collection items) { + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1PodCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.add(builder); } return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1PodCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); + public A addAllToPodIPs(Collection items) { + if (this.podIPs == null) { + this.podIPs = new ArrayList(); } - if (conditions != null) { - for (V1PodCondition item : conditions) { - this.addToConditions(item); - } + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").add(builder); + this.podIPs.add(builder); } return (A) this; } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public A addAllToResourceClaimStatuses(Collection items) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } + return (A) this; } public ConditionsNested addNewCondition() { @@ -185,412 +146,388 @@ public ConditionsNested addNewConditionLike(V1PodCondition item) { return new ConditionsNested(-1, item); } - public ConditionsNested setNewConditionLike(int index,V1PodCondition item) { - return new ConditionsNested(index, item); + public ContainerStatusesNested addNewContainerStatus() { + return new ContainerStatusesNested(-1, null); } - 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 ContainerStatusesNested addNewContainerStatusLike(V1ContainerStatus item) { + return new ContainerStatusesNested(-1, item); } - 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 EphemeralContainerStatusesNested addNewEphemeralContainerStatus() { + return new EphemeralContainerStatusesNested(-1, null); } - 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 EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike(V1ContainerStatus item) { + return new EphemeralContainerStatusesNested(-1, item); } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i addNewHostIP() { + return new HostIPsNested(-1, null); } - public A addToContainerStatuses(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").add(index, builder); containerStatuses.add(index, builder);} - return (A)this; + public HostIPsNested addNewHostIPLike(V1HostIP item) { + return new HostIPsNested(-1, item); } - 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);} - return (A)this; + public InitContainerStatusesNested addNewInitContainerStatus() { + return new InitContainerStatusesNested(-1, null); } - public A addToContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").add(builder);this.containerStatuses.add(builder);} return (A)this; + public InitContainerStatusesNested addNewInitContainerStatusLike(V1ContainerStatus item) { + return new InitContainerStatusesNested(-1, item); } - public A addAllToContainerStatuses(Collection items) { - if (this.containerStatuses == null) {this.containerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").add(builder);this.containerStatuses.add(builder);} return (A)this; + public PodIPsNested addNewPodIP() { + return new PodIPsNested(-1, null); } - public A removeFromContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.containerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").remove(builder); this.containerStatuses.remove(builder);} return (A)this; + public PodIPsNested addNewPodIPLike(V1PodIP item) { + return new PodIPsNested(-1, item); } - public A removeAllFromContainerStatuses(Collection items) { - if (this.containerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("containerStatuses").remove(builder); this.containerStatuses.remove(builder);} return (A)this; + public ResourceClaimStatusesNested addNewResourceClaimStatus() { + return new ResourceClaimStatusesNested(-1, null); } - public A removeMatchingFromContainerStatuses(Predicate predicate) { - if (containerStatuses == null) return (A) this; - final Iterator each = containerStatuses.iterator(); - final List visitables = _visitables.get("containerStatuses"); - while (each.hasNext()) { - V1ContainerStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public ResourceClaimStatusesNested addNewResourceClaimStatusLike(V1PodResourceClaimStatus item) { + return new ResourceClaimStatusesNested(-1, item); + } + + public A addToAllocatedResources(Map map) { + if (this.allocatedResources == null && map != null) { + this.allocatedResources = new LinkedHashMap(); } - return (A)this; + if (map != null) { + this.allocatedResources.putAll(map); + } + return (A) this; } - public List buildContainerStatuses() { - return this.containerStatuses != null ? build(containerStatuses) : null; + public A addToAllocatedResources(String key,Quantity value) { + if (this.allocatedResources == null && key != null && value != null) { + this.allocatedResources = new LinkedHashMap(); + } + if (key != null && value != null) { + this.allocatedResources.put(key, value); + } + return (A) this; } - public V1ContainerStatus buildContainerStatus(int index) { - return this.containerStatuses.get(index).build(); + public A addToConditions(V1PodCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public V1ContainerStatus buildFirstContainerStatus() { - return this.containerStatuses.get(0).build(); + 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(builder); + conditions.add(index, builder); + } + return (A) this; } - public V1ContainerStatus buildLastContainerStatus() { - return this.containerStatuses.get(containerStatuses.size() - 1).build(); + public A addToContainerStatuses(V1ContainerStatus... items) { + if (this.containerStatuses == null) { + this.containerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").add(builder); + this.containerStatuses.add(builder); + } + return (A) this; } - public V1ContainerStatus buildMatchingContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : containerStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A addToContainerStatuses(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").add(builder); + containerStatuses.add(index, builder); + } + return (A) this; } - public boolean hasMatchingContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : containerStatuses) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToEphemeralContainerStatuses(V1ContainerStatus... items) { + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.add(builder); + } + return (A) this; } - public A withContainerStatuses(List containerStatuses) { - if (this.containerStatuses != null) { - this._visitables.get("containerStatuses").clear(); + public A addToEphemeralContainerStatuses(int index,V1ContainerStatus item) { + if (this.ephemeralContainerStatuses == null) { + this.ephemeralContainerStatuses = new ArrayList(); } - if (containerStatuses != null) { - this.containerStatuses = new ArrayList(); - for (V1ContainerStatus item : containerStatuses) { - this.addToContainerStatuses(item); - } + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + if (index < 0 || index >= ephemeralContainerStatuses.size()) { + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(builder); } else { - this.containerStatuses = null; + _visitables.get("ephemeralContainerStatuses").add(builder); + ephemeralContainerStatuses.add(index, builder); } return (A) this; } - public A withContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... containerStatuses) { - if (this.containerStatuses != null) { - this.containerStatuses.clear(); - _visitables.remove("containerStatuses"); + public A addToHostIPs(V1HostIP... items) { + if (this.hostIPs == null) { + this.hostIPs = new ArrayList(); } - if (containerStatuses != null) { - for (V1ContainerStatus item : containerStatuses) { - this.addToContainerStatuses(item); - } + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").add(builder); + this.hostIPs.add(builder); } return (A) this; } - public boolean hasContainerStatuses() { - return this.containerStatuses != null && !this.containerStatuses.isEmpty(); + 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(builder); + hostIPs.add(index, builder); + } + return (A) this; } - public ContainerStatusesNested addNewContainerStatus() { - return new ContainerStatusesNested(-1, null); + public A addToInitContainerStatuses(V1ContainerStatus... items) { + if (this.initContainerStatuses == null) { + this.initContainerStatuses = new ArrayList(); + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.add(builder); + } + return (A) this; } - public ContainerStatusesNested addNewContainerStatusLike(V1ContainerStatus item) { - return new ContainerStatusesNested(-1, item); + 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(builder); + initContainerStatuses.add(index, builder); + } + return (A) this; } - public ContainerStatusesNested setNewContainerStatusLike(int index,V1ContainerStatus item) { - return new ContainerStatusesNested(index, item); + public A addToPodIPs(V1PodIP... items) { + if (this.podIPs == null) { + this.podIPs = new ArrayList(); + } + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").add(builder); + this.podIPs.add(builder); + } + return (A) this; } - public ContainerStatusesNested editContainerStatus(int index) { - if (containerStatuses.size() <= index) throw new RuntimeException("Can't edit containerStatuses. Index exceeds size."); - return setNewContainerStatusLike(index, buildContainerStatus(index)); + 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(builder); + podIPs.add(index, builder); + } + return (A) this; } - public ContainerStatusesNested editFirstContainerStatus() { - if (containerStatuses.size() == 0) throw new RuntimeException("Can't edit first containerStatuses. The list is empty."); - return setNewContainerStatusLike(0, buildContainerStatus(0)); - } - - public ContainerStatusesNested editLastContainerStatus() { - int index = containerStatuses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last containerStatuses. The list is empty."); - return setNewContainerStatusLike(index, buildContainerStatus(index)); - } - - public ContainerStatusesNested editMatchingContainerStatus(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - 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);} - return (A)this; - } - - public A addToEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").add(builder);this.ephemeralContainerStatuses.add(builder);} return (A)this; + public A addToResourceClaimStatuses(V1PodResourceClaimStatus... items) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } + return (A) this; } - public A addAllToEphemeralContainerStatuses(Collection items) { - if (this.ephemeralContainerStatuses == null) {this.ephemeralContainerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").add(builder);this.ephemeralContainerStatuses.add(builder);} return (A)this; + 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(builder); + resourceClaimStatuses.add(index, builder); + } + return (A) this; } - public A removeFromEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.ephemeralContainerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").remove(builder); this.ephemeralContainerStatuses.remove(builder);} return (A)this; + public V1PodCondition buildCondition(int index) { + return this.conditions.get(index).build(); } - public A removeAllFromEphemeralContainerStatuses(Collection items) { - if (this.ephemeralContainerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("ephemeralContainerStatuses").remove(builder); this.ephemeralContainerStatuses.remove(builder);} return (A)this; + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; } - public A removeMatchingFromEphemeralContainerStatuses(Predicate predicate) { - if (ephemeralContainerStatuses == null) return (A) this; - final Iterator each = ephemeralContainerStatuses.iterator(); - final List visitables = _visitables.get("ephemeralContainerStatuses"); - while (each.hasNext()) { - V1ContainerStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1ContainerStatus buildContainerStatus(int index) { + return this.containerStatuses.get(index).build(); } - public List buildEphemeralContainerStatuses() { - return this.ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null; + public List buildContainerStatuses() { + return this.containerStatuses != null ? build(containerStatuses) : null; } public V1ContainerStatus buildEphemeralContainerStatus(int index) { return this.ephemeralContainerStatuses.get(index).build(); } - public V1ContainerStatus buildFirstEphemeralContainerStatus() { - return this.ephemeralContainerStatuses.get(0).build(); - } - - public V1ContainerStatus buildLastEphemeralContainerStatus() { - return this.ephemeralContainerStatuses.get(ephemeralContainerStatuses.size() - 1).build(); - } - - public V1ContainerStatus buildMatchingEphemeralContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingEphemeralContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { - if (predicate.test(item)) { - return true; - } - } - return false; + public List buildEphemeralContainerStatuses() { + return this.ephemeralContainerStatuses != null ? build(ephemeralContainerStatuses) : null; } - public A withEphemeralContainerStatuses(List ephemeralContainerStatuses) { - if (this.ephemeralContainerStatuses != null) { - this._visitables.get("ephemeralContainerStatuses").clear(); - } - if (ephemeralContainerStatuses != null) { - this.ephemeralContainerStatuses = new ArrayList(); - for (V1ContainerStatus item : ephemeralContainerStatuses) { - this.addToEphemeralContainerStatuses(item); - } - } else { - this.ephemeralContainerStatuses = null; - } - return (A) this; + public V1PodExtendedResourceClaimStatus buildExtendedResourceClaimStatus() { + return this.extendedResourceClaimStatus != null ? this.extendedResourceClaimStatus.build() : null; } - public A withEphemeralContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... ephemeralContainerStatuses) { - if (this.ephemeralContainerStatuses != null) { - this.ephemeralContainerStatuses.clear(); - _visitables.remove("ephemeralContainerStatuses"); - } - if (ephemeralContainerStatuses != null) { - for (V1ContainerStatus item : ephemeralContainerStatuses) { - this.addToEphemeralContainerStatuses(item); - } - } - return (A) this; + public V1PodCondition buildFirstCondition() { + return this.conditions.get(0).build(); } - public boolean hasEphemeralContainerStatuses() { - return this.ephemeralContainerStatuses != null && !this.ephemeralContainerStatuses.isEmpty(); + public V1ContainerStatus buildFirstContainerStatus() { + return this.containerStatuses.get(0).build(); } - public EphemeralContainerStatusesNested addNewEphemeralContainerStatus() { - return new EphemeralContainerStatusesNested(-1, null); + public V1ContainerStatus buildFirstEphemeralContainerStatus() { + return this.ephemeralContainerStatuses.get(0).build(); } - public EphemeralContainerStatusesNested addNewEphemeralContainerStatusLike(V1ContainerStatus item) { - return new EphemeralContainerStatusesNested(-1, item); + public V1HostIP buildFirstHostIP() { + return this.hostIPs.get(0).build(); } - public EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike(int index,V1ContainerStatus item) { - return new EphemeralContainerStatusesNested(index, item); + public V1ContainerStatus buildFirstInitContainerStatus() { + return this.initContainerStatuses.get(0).build(); } - public EphemeralContainerStatusesNested editEphemeralContainerStatus(int index) { - if (ephemeralContainerStatuses.size() <= index) throw new RuntimeException("Can't edit ephemeralContainerStatuses. Index exceeds size."); - return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index)); + public V1PodIP buildFirstPodIP() { + return this.podIPs.get(0).build(); } - public EphemeralContainerStatusesNested editFirstEphemeralContainerStatus() { - if (ephemeralContainerStatuses.size() == 0) throw new RuntimeException("Can't edit first ephemeralContainerStatuses. The list is empty."); - return setNewEphemeralContainerStatusLike(0, buildEphemeralContainerStatus(0)); + public V1PodResourceClaimStatus buildFirstResourceClaimStatus() { + return this.resourceClaimStatuses.get(0).build(); } - public EphemeralContainerStatusesNested editLastEphemeralContainerStatus() { - int index = ephemeralContainerStatuses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ephemeralContainerStatuses. The list is empty."); - return setNewEphemeralContainerStatusLike(index, buildEphemeralContainerStatus(index)); + public V1HostIP buildHostIP(int index) { + return this.hostIPs.get(index).build(); } - public EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus(Predicate predicate) { - int index = -1; - for (int i=0;i buildHostIPs() { + return this.hostIPs != null ? build(hostIPs) : null; } - public String getHostIP() { - return this.hostIP; + public V1ContainerStatus buildInitContainerStatus(int index) { + return this.initContainerStatuses.get(index).build(); } - public A withHostIP(String hostIP) { - this.hostIP = hostIP; - return (A) this; + public List buildInitContainerStatuses() { + return this.initContainerStatuses != null ? build(initContainerStatuses) : null; } - public boolean hasHostIP() { - return this.hostIP != null; + public V1PodCondition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); } - 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);} - return (A)this; + public V1ContainerStatus buildLastContainerStatus() { + return this.containerStatuses.get(containerStatuses.size() - 1).build(); } - 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);} - return (A)this; + public V1ContainerStatus buildLastEphemeralContainerStatus() { + return this.ephemeralContainerStatuses.get(ephemeralContainerStatuses.size() - 1).build(); } - public A addToHostIPs(io.kubernetes.client.openapi.models.V1HostIP... items) { - if (this.hostIPs == null) {this.hostIPs = new ArrayList();} - for (V1HostIP item : items) {V1HostIPBuilder builder = new V1HostIPBuilder(item);_visitables.get("hostIPs").add(builder);this.hostIPs.add(builder);} return (A)this; + public V1HostIP buildLastHostIP() { + return this.hostIPs.get(hostIPs.size() - 1).build(); } - public A addAllToHostIPs(Collection items) { - if (this.hostIPs == null) {this.hostIPs = new ArrayList();} - for (V1HostIP item : items) {V1HostIPBuilder builder = new V1HostIPBuilder(item);_visitables.get("hostIPs").add(builder);this.hostIPs.add(builder);} return (A)this; + public V1ContainerStatus buildLastInitContainerStatus() { + return this.initContainerStatuses.get(initContainerStatuses.size() - 1).build(); } - public A removeFromHostIPs(io.kubernetes.client.openapi.models.V1HostIP... items) { - if (this.hostIPs == null) return (A)this; - for (V1HostIP item : items) {V1HostIPBuilder builder = new V1HostIPBuilder(item);_visitables.get("hostIPs").remove(builder); this.hostIPs.remove(builder);} return (A)this; + public V1PodIP buildLastPodIP() { + return this.podIPs.get(podIPs.size() - 1).build(); } - public A removeAllFromHostIPs(Collection items) { - if (this.hostIPs == null) return (A)this; - for (V1HostIP item : items) {V1HostIPBuilder builder = new V1HostIPBuilder(item);_visitables.get("hostIPs").remove(builder); this.hostIPs.remove(builder);} return (A)this; + public V1PodResourceClaimStatus buildLastResourceClaimStatus() { + return this.resourceClaimStatuses.get(resourceClaimStatuses.size() - 1).build(); } - public A removeMatchingFromHostIPs(Predicate predicate) { - if (hostIPs == null) return (A) this; - final Iterator each = hostIPs.iterator(); - final List visitables = _visitables.get("hostIPs"); - while (each.hasNext()) { - V1HostIPBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1PodCondition buildMatchingCondition(Predicate predicate) { + for (V1PodConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A)this; - } - - public List buildHostIPs() { - return this.hostIPs != null ? build(hostIPs) : null; - } - - public V1HostIP buildHostIP(int index) { - return this.hostIPs.get(index).build(); + return null; } - public V1HostIP buildFirstHostIP() { - return this.hostIPs.get(0).build(); + public V1ContainerStatus buildMatchingContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : containerStatuses) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public V1HostIP buildLastHostIP() { - return this.hostIPs.get(hostIPs.size() - 1).build(); + public V1ContainerStatus buildMatchingEphemeralContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } public V1HostIP buildMatchingHostIP(Predicate predicate) { @@ -602,367 +539,1368 @@ public V1HostIP buildMatchingHostIP(Predicate predicate) { return null; } - public boolean hasMatchingHostIP(Predicate predicate) { - for (V1HostIPBuilder item : hostIPs) { + public V1ContainerStatus buildMatchingInitContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : initContainerStatuses) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withHostIPs(List hostIPs) { - if (this.hostIPs != null) { - this._visitables.get("hostIPs").clear(); - } - if (hostIPs != null) { - this.hostIPs = new ArrayList(); - for (V1HostIP item : hostIPs) { - this.addToHostIPs(item); + public V1PodIP buildMatchingPodIP(Predicate predicate) { + for (V1PodIPBuilder item : podIPs) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.hostIPs = null; - } - return (A) this; + } + return null; } - public A withHostIPs(io.kubernetes.client.openapi.models.V1HostIP... hostIPs) { - if (this.hostIPs != null) { - this.hostIPs.clear(); - _visitables.remove("hostIPs"); - } - if (hostIPs != null) { - for (V1HostIP item : hostIPs) { - this.addToHostIPs(item); + public V1PodResourceClaimStatus buildMatchingResourceClaimStatus(Predicate predicate) { + for (V1PodResourceClaimStatusBuilder item : resourceClaimStatuses) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A) this; + return null; } - public boolean hasHostIPs() { - return this.hostIPs != null && !this.hostIPs.isEmpty(); + public V1PodIP buildPodIP(int index) { + return this.podIPs.get(index).build(); } - public HostIPsNested addNewHostIP() { - return new HostIPsNested(-1, null); + public List buildPodIPs() { + return this.podIPs != null ? build(podIPs) : null; } - public HostIPsNested addNewHostIPLike(V1HostIP item) { - return new HostIPsNested(-1, item); + public V1PodResourceClaimStatus buildResourceClaimStatus(int index) { + return this.resourceClaimStatuses.get(index).build(); } - public HostIPsNested setNewHostIPLike(int index,V1HostIP item) { - return new HostIPsNested(index, item); + public List buildResourceClaimStatuses() { + return this.resourceClaimStatuses != null ? build(resourceClaimStatuses) : null; } - public HostIPsNested editHostIP(int index) { - if (hostIPs.size() <= index) throw new RuntimeException("Can't edit hostIPs. Index exceeds size."); - return setNewHostIPLike(index, buildHostIP(index)); + public V1ResourceRequirements buildResources() { + return this.resources != null ? this.resources.build() : null; } - public HostIPsNested editFirstHostIP() { - if (hostIPs.size() == 0) throw new RuntimeException("Can't edit first hostIPs. The list is empty."); - return setNewHostIPLike(0, buildHostIP(0)); + protected void copyInstance(V1PodStatus instance) { + instance = instance != null ? instance : new V1PodStatus(); + if (instance != null) { + this.withAllocatedResources(instance.getAllocatedResources()); + this.withConditions(instance.getConditions()); + this.withContainerStatuses(instance.getContainerStatuses()); + this.withEphemeralContainerStatuses(instance.getEphemeralContainerStatuses()); + this.withExtendedResourceClaimStatus(instance.getExtendedResourceClaimStatus()); + this.withHostIP(instance.getHostIP()); + this.withHostIPs(instance.getHostIPs()); + 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()); + this.withQosClass(instance.getQosClass()); + this.withReason(instance.getReason()); + this.withResize(instance.getResize()); + this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); + this.withResources(instance.getResources()); + this.withStartTime(instance.getStartTime()); + } } - public HostIPsNested editLastHostIP() { - int index = hostIPs.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last hostIPs. The list is empty."); - return setNewHostIPLike(index, buildHostIP(index)); + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public HostIPsNested editMatchingHostIP(Predicate predicate) { - int index = -1; - for (int i=0;i editContainerStatus(int index) { + if (containerStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "containerStatuses")); + } + return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); } - 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);} - return (A)this; + public EphemeralContainerStatusesNested editEphemeralContainerStatus(int index) { + if (ephemeralContainerStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ephemeralContainerStatuses")); + } + return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); } - 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);} - return (A)this; + public ExtendedResourceClaimStatusNested editExtendedResourceClaimStatus() { + return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(null)); } - public A addToInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").add(builder);this.initContainerStatuses.add(builder);} return (A)this; + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); } - public A addAllToInitContainerStatuses(Collection items) { - if (this.initContainerStatuses == null) {this.initContainerStatuses = new ArrayList();} - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").add(builder);this.initContainerStatuses.add(builder);} return (A)this; + public ContainerStatusesNested editFirstContainerStatus() { + if (containerStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "containerStatuses")); + } + return this.setNewContainerStatusLike(0, this.buildContainerStatus(0)); } - public A removeFromInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... items) { - if (this.initContainerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").remove(builder); this.initContainerStatuses.remove(builder);} return (A)this; + public EphemeralContainerStatusesNested editFirstEphemeralContainerStatus() { + if (ephemeralContainerStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ephemeralContainerStatuses")); + } + return this.setNewEphemeralContainerStatusLike(0, this.buildEphemeralContainerStatus(0)); } - public A removeAllFromInitContainerStatuses(Collection items) { - if (this.initContainerStatuses == null) return (A)this; - for (V1ContainerStatus item : items) {V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item);_visitables.get("initContainerStatuses").remove(builder); this.initContainerStatuses.remove(builder);} return (A)this; + public HostIPsNested editFirstHostIP() { + if (hostIPs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "hostIPs")); + } + return this.setNewHostIPLike(0, this.buildHostIP(0)); } - public A removeMatchingFromInitContainerStatuses(Predicate predicate) { - if (initContainerStatuses == null) return (A) this; - final Iterator each = initContainerStatuses.iterator(); - final List visitables = _visitables.get("initContainerStatuses"); - while (each.hasNext()) { - V1ContainerStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public InitContainerStatusesNested editFirstInitContainerStatus() { + if (initContainerStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "initContainerStatuses")); } - return (A)this; + return this.setNewInitContainerStatusLike(0, this.buildInitContainerStatus(0)); } - public List buildInitContainerStatuses() { - return this.initContainerStatuses != null ? build(initContainerStatuses) : null; + public PodIPsNested editFirstPodIP() { + if (podIPs.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podIPs")); + } + return this.setNewPodIPLike(0, this.buildPodIP(0)); } - public V1ContainerStatus buildInitContainerStatus(int index) { - return this.initContainerStatuses.get(index).build(); + public ResourceClaimStatusesNested editFirstResourceClaimStatus() { + if (resourceClaimStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(0, this.buildResourceClaimStatus(0)); } - public V1ContainerStatus buildFirstInitContainerStatus() { - return this.initContainerStatuses.get(0).build(); + public HostIPsNested editHostIP(int index) { + if (hostIPs.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "hostIPs")); + } + return this.setNewHostIPLike(index, this.buildHostIP(index)); } - public V1ContainerStatus buildLastInitContainerStatus() { - return this.initContainerStatuses.get(initContainerStatuses.size() - 1).build(); + public InitContainerStatusesNested editInitContainerStatus(int index) { + if (initContainerStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "initContainerStatuses")); + } + return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); } - public V1ContainerStatus buildMatchingInitContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : initContainerStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public boolean hasMatchingInitContainerStatus(Predicate predicate) { - for (V1ContainerStatusBuilder item : initContainerStatuses) { - if (predicate.test(item)) { - return true; - } - } - return false; + public ContainerStatusesNested editLastContainerStatus() { + int index = containerStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "containerStatuses")); + } + return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); } - public A withInitContainerStatuses(List initContainerStatuses) { - if (this.initContainerStatuses != null) { - this._visitables.get("initContainerStatuses").clear(); - } - if (initContainerStatuses != null) { - this.initContainerStatuses = new ArrayList(); - for (V1ContainerStatus item : initContainerStatuses) { - this.addToInitContainerStatuses(item); - } - } else { - this.initContainerStatuses = null; + public EphemeralContainerStatusesNested editLastEphemeralContainerStatus() { + int index = ephemeralContainerStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ephemeralContainerStatuses")); } - return (A) this; + return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); } - public A withInitContainerStatuses(io.kubernetes.client.openapi.models.V1ContainerStatus... initContainerStatuses) { - if (this.initContainerStatuses != null) { - this.initContainerStatuses.clear(); - _visitables.remove("initContainerStatuses"); - } - if (initContainerStatuses != null) { - for (V1ContainerStatus item : initContainerStatuses) { - this.addToInitContainerStatuses(item); - } + public HostIPsNested editLastHostIP() { + int index = hostIPs.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "hostIPs")); } - return (A) this; + return this.setNewHostIPLike(index, this.buildHostIP(index)); } - public boolean hasInitContainerStatuses() { - return this.initContainerStatuses != null && !this.initContainerStatuses.isEmpty(); + public InitContainerStatusesNested editLastInitContainerStatus() { + int index = initContainerStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "initContainerStatuses")); + } + return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); } - public InitContainerStatusesNested addNewInitContainerStatus() { - return new InitContainerStatusesNested(-1, null); + public PodIPsNested editLastPodIP() { + int index = podIPs.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podIPs")); + } + return this.setNewPodIPLike(index, this.buildPodIP(index)); } - public InitContainerStatusesNested addNewInitContainerStatusLike(V1ContainerStatus item) { - return new InitContainerStatusesNested(-1, item); + public ResourceClaimStatusesNested editLastResourceClaimStatus() { + int index = resourceClaimStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } - public InitContainerStatusesNested setNewInitContainerStatusLike(int index,V1ContainerStatus item) { - return new InitContainerStatusesNested(index, item); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public InitContainerStatusesNested editInitContainerStatus(int index) { - if (initContainerStatuses.size() <= index) throw new RuntimeException("Can't edit initContainerStatuses. Index exceeds size."); - return setNewInitContainerStatusLike(index, buildInitContainerStatus(index)); + public ContainerStatusesNested editMatchingContainerStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < containerStatuses.size();i++) { + if (predicate.test(containerStatuses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "containerStatuses")); + } + return this.setNewContainerStatusLike(index, this.buildContainerStatus(index)); } - public InitContainerStatusesNested editFirstInitContainerStatus() { - if (initContainerStatuses.size() == 0) throw new RuntimeException("Can't edit first initContainerStatuses. The list is empty."); - return setNewInitContainerStatusLike(0, buildInitContainerStatus(0)); + public EphemeralContainerStatusesNested editMatchingEphemeralContainerStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < ephemeralContainerStatuses.size();i++) { + if (predicate.test(ephemeralContainerStatuses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ephemeralContainerStatuses")); + } + return this.setNewEphemeralContainerStatusLike(index, this.buildEphemeralContainerStatus(index)); } - public InitContainerStatusesNested editLastInitContainerStatus() { - int index = initContainerStatuses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last initContainerStatuses. The list is empty."); - return setNewInitContainerStatusLike(index, buildInitContainerStatus(index)); + public HostIPsNested editMatchingHostIP(Predicate predicate) { + int index = -1; + for (int i = 0;i < hostIPs.size();i++) { + if (predicate.test(hostIPs.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "hostIPs")); + } + return this.setNewHostIPLike(index, this.buildHostIP(index)); } public InitContainerStatusesNested editMatchingInitContainerStatus(Predicate predicate) { int index = -1; - for (int i=0;i editMatchingPodIP(Predicate predicate) { + int index = -1; + for (int i = 0;i < podIPs.size();i++) { + if (predicate.test(podIPs.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podIPs")); + } + return this.setNewPodIPLike(index, this.buildPodIP(index)); } - public A withMessage(String message) { - this.message = message; - return (A) this; + public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaimStatuses.size();i++) { + if (predicate.test(resourceClaimStatuses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } - public boolean hasMessage() { - return this.message != null; + public ExtendedResourceClaimStatusNested editOrNewExtendedResourceClaimStatus() { + return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(new V1PodExtendedResourceClaimStatusBuilder().build())); } - public String getNominatedNodeName() { - return this.nominatedNodeName; + public ExtendedResourceClaimStatusNested editOrNewExtendedResourceClaimStatusLike(V1PodExtendedResourceClaimStatus item) { + return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(item)); } - public A withNominatedNodeName(String nominatedNodeName) { - this.nominatedNodeName = nominatedNodeName; - return (A) this; + public ResourcesNested editOrNewResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(new V1ResourceRequirementsBuilder().build())); } - public boolean hasNominatedNodeName() { - return this.nominatedNodeName != null; + public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public String getPhase() { - return this.phase; + public PodIPsNested editPodIP(int index) { + if (podIPs.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podIPs")); + } + return this.setNewPodIPLike(index, this.buildPodIP(index)); } - public A withPhase(String phase) { - this.phase = phase; - return (A) this; + public ResourceClaimStatusesNested editResourceClaimStatus(int index) { + if (resourceClaimStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } - public boolean hasPhase() { - return this.phase != null; + public ResourcesNested editResources() { + return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(null)); } - public String getPodIP() { - return this.podIP; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodStatusFluent that = (V1PodStatusFluent) o; + if (!(Objects.equals(allocatedResources, that.allocatedResources))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(containerStatuses, that.containerStatuses))) { + return false; + } + if (!(Objects.equals(ephemeralContainerStatuses, that.ephemeralContainerStatuses))) { + return false; + } + if (!(Objects.equals(extendedResourceClaimStatus, that.extendedResourceClaimStatus))) { + return false; + } + if (!(Objects.equals(hostIP, that.hostIP))) { + return false; + } + if (!(Objects.equals(hostIPs, that.hostIPs))) { + return false; + } + if (!(Objects.equals(initContainerStatuses, that.initContainerStatuses))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(nominatedNodeName, that.nominatedNodeName))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(phase, that.phase))) { + return false; + } + if (!(Objects.equals(podIP, that.podIP))) { + return false; + } + if (!(Objects.equals(podIPs, that.podIPs))) { + return false; + } + if (!(Objects.equals(qosClass, that.qosClass))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(resize, that.resize))) { + return false; + } + if (!(Objects.equals(resourceClaimStatuses, that.resourceClaimStatuses))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(startTime, that.startTime))) { + return false; + } + return true; } - public A withPodIP(String podIP) { - this.podIP = podIP; - return (A) this; + public Map getAllocatedResources() { + return this.allocatedResources; } - public boolean hasPodIP() { - return this.podIP != null; + public String getHostIP() { + return this.hostIP; } - 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);} - return (A)this; + public String getMessage() { + return this.message; } - 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);} - return (A)this; + public String getNominatedNodeName() { + return this.nominatedNodeName; } - public A addToPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items) { - if (this.podIPs == null) {this.podIPs = new ArrayList();} - for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").add(builder);this.podIPs.add(builder);} return (A)this; + public Long getObservedGeneration() { + return this.observedGeneration; } - public A addAllToPodIPs(Collection items) { - if (this.podIPs == null) {this.podIPs = new ArrayList();} - for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").add(builder);this.podIPs.add(builder);} return (A)this; + public String getPhase() { + return this.phase; } - public A removeFromPodIPs(io.kubernetes.client.openapi.models.V1PodIP... items) { - if (this.podIPs == null) return (A)this; - for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").remove(builder); this.podIPs.remove(builder);} return (A)this; + public String getPodIP() { + return this.podIP; } - public A removeAllFromPodIPs(Collection items) { - if (this.podIPs == null) return (A)this; - for (V1PodIP item : items) {V1PodIPBuilder builder = new V1PodIPBuilder(item);_visitables.get("podIPs").remove(builder); this.podIPs.remove(builder);} return (A)this; + public String getQosClass() { + return this.qosClass; } - public A removeMatchingFromPodIPs(Predicate predicate) { - if (podIPs == null) return (A) this; - final Iterator each = podIPs.iterator(); - final List visitables = _visitables.get("podIPs"); - while (each.hasNext()) { - V1PodIPBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public String getReason() { + return this.reason; } - public List buildPodIPs() { - return this.podIPs != null ? build(podIPs) : null; + public String getResize() { + return this.resize; } - public V1PodIP buildPodIP(int index) { - return this.podIPs.get(index).build(); + public OffsetDateTime getStartTime() { + return this.startTime; } - public V1PodIP buildFirstPodIP() { - return this.podIPs.get(0).build(); + public boolean hasAllocatedResources() { + return this.allocatedResources != null; } - public V1PodIP buildLastPodIP() { - return this.podIPs.get(podIPs.size() - 1).build(); + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - public V1PodIP buildMatchingPodIP(Predicate predicate) { - for (V1PodIPBuilder item : podIPs) { + public boolean hasContainerStatuses() { + return this.containerStatuses != null && !(this.containerStatuses.isEmpty()); + } + + public boolean hasEphemeralContainerStatuses() { + return this.ephemeralContainerStatuses != null && !(this.ephemeralContainerStatuses.isEmpty()); + } + + public boolean hasExtendedResourceClaimStatus() { + return this.extendedResourceClaimStatus != null; + } + + public boolean hasHostIP() { + return this.hostIP != null; + } + + public boolean hasHostIPs() { + return this.hostIPs != null && !(this.hostIPs.isEmpty()); + } + + public boolean hasInitContainerStatuses() { + return this.initContainerStatuses != null && !(this.initContainerStatuses.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1PodConditionBuilder item : conditions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; + } + + public boolean hasMatchingContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : containerStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingEphemeralContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : ephemeralContainerStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingHostIP(Predicate predicate) { + for (V1HostIPBuilder item : hostIPs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingInitContainerStatus(Predicate predicate) { + for (V1ContainerStatusBuilder item : initContainerStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPodIP(Predicate predicate) { + for (V1PodIPBuilder item : podIPs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResourceClaimStatus(Predicate predicate) { + for (V1PodResourceClaimStatusBuilder item : resourceClaimStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMessage() { + return this.message != null; + } + + public boolean hasNominatedNodeName() { + return this.nominatedNodeName != null; + } + + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public boolean hasPhase() { + return this.phase != null; + } + + public boolean hasPodIP() { + return this.podIP != null; + } + + public boolean hasPodIPs() { + return this.podIPs != null && !(this.podIPs.isEmpty()); + } + + public boolean hasQosClass() { + return this.qosClass != null; + } + + public boolean hasReason() { + return this.reason != null; + } + + public boolean hasResize() { + return this.resize != null; + } + + public boolean hasResourceClaimStatuses() { + return this.resourceClaimStatuses != null && !(this.resourceClaimStatuses.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null; + } + + public boolean hasStartTime() { + return this.startTime != null; + } + + public int hashCode() { + return Objects.hash(allocatedResources, conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, resources, startTime); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeAllFromContainerStatuses(Collection items) { + if (this.containerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").remove(builder); + this.containerStatuses.remove(builder); + } + return (A) this; + } + + public A removeAllFromEphemeralContainerStatuses(Collection items) { + if (this.ephemeralContainerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").remove(builder); + this.ephemeralContainerStatuses.remove(builder); + } + return (A) this; + } + + public A removeAllFromHostIPs(Collection items) { + if (this.hostIPs == null) { + return (A) this; + } + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").remove(builder); + this.hostIPs.remove(builder); + } + return (A) this; + } + + public A removeAllFromInitContainerStatuses(Collection items) { + if (this.initContainerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").remove(builder); + this.initContainerStatuses.remove(builder); + } + return (A) this; + } + + public A removeAllFromPodIPs(Collection items) { + if (this.podIPs == null) { + return (A) this; + } + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").remove(builder); + this.podIPs.remove(builder); + } + return (A) this; + } + + public A removeAllFromResourceClaimStatuses(Collection items) { + if (this.resourceClaimStatuses == null) { + return (A) this; + } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); + } + return (A) this; + } + + public A removeFromAllocatedResources(String key) { + if (this.allocatedResources == null) { + return (A) this; + } + if (key != null && this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + return (A) this; + } + + public A removeFromAllocatedResources(Map map) { + if (this.allocatedResources == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.allocatedResources != null) { + this.allocatedResources.remove(key); + } + } + } + return (A) this; + } + + public A removeFromConditions(V1PodCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1PodCondition item : items) { + V1PodConditionBuilder builder = new V1PodConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromContainerStatuses(V1ContainerStatus... items) { + if (this.containerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("containerStatuses").remove(builder); + this.containerStatuses.remove(builder); + } + return (A) this; + } + + public A removeFromEphemeralContainerStatuses(V1ContainerStatus... items) { + if (this.ephemeralContainerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("ephemeralContainerStatuses").remove(builder); + this.ephemeralContainerStatuses.remove(builder); + } + return (A) this; + } + + public A removeFromHostIPs(V1HostIP... items) { + if (this.hostIPs == null) { + return (A) this; + } + for (V1HostIP item : items) { + V1HostIPBuilder builder = new V1HostIPBuilder(item); + _visitables.get("hostIPs").remove(builder); + this.hostIPs.remove(builder); + } + return (A) this; + } + + public A removeFromInitContainerStatuses(V1ContainerStatus... items) { + if (this.initContainerStatuses == null) { + return (A) this; + } + for (V1ContainerStatus item : items) { + V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); + _visitables.get("initContainerStatuses").remove(builder); + this.initContainerStatuses.remove(builder); + } + return (A) this; + } + + public A removeFromPodIPs(V1PodIP... items) { + if (this.podIPs == null) { + return (A) this; + } + for (V1PodIP item : items) { + V1PodIPBuilder builder = new V1PodIPBuilder(item); + _visitables.get("podIPs").remove(builder); + this.podIPs.remove(builder); + } + return (A) this; + } + + public A removeFromResourceClaimStatuses(V1PodResourceClaimStatus... items) { + if (this.resourceClaimStatuses == null) { + return (A) this; + } + for (V1PodResourceClaimStatus item : items) { + V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1PodConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromContainerStatuses(Predicate predicate) { + if (containerStatuses == null) { + return (A) this; + } + Iterator each = containerStatuses.iterator(); + List visitables = _visitables.get("containerStatuses"); + while (each.hasNext()) { + V1ContainerStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromEphemeralContainerStatuses(Predicate predicate) { + if (ephemeralContainerStatuses == null) { + return (A) this; + } + Iterator each = ephemeralContainerStatuses.iterator(); + List visitables = _visitables.get("ephemeralContainerStatuses"); + while (each.hasNext()) { + V1ContainerStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromHostIPs(Predicate predicate) { + if (hostIPs == null) { + return (A) this; + } + Iterator each = hostIPs.iterator(); + List visitables = _visitables.get("hostIPs"); + while (each.hasNext()) { + V1HostIPBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromInitContainerStatuses(Predicate predicate) { + if (initContainerStatuses == null) { + return (A) this; + } + Iterator each = initContainerStatuses.iterator(); + List visitables = _visitables.get("initContainerStatuses"); + while (each.hasNext()) { + V1ContainerStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromPodIPs(Predicate predicate) { + if (podIPs == null) { + return (A) this; + } + Iterator each = podIPs.iterator(); + List visitables = _visitables.get("podIPs"); + while (each.hasNext()) { + V1PodIPBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { + if (resourceClaimStatuses == null) { + return (A) this; + } + Iterator each = resourceClaimStatuses.iterator(); + List visitables = _visitables.get("resourceClaimStatuses"); + while (each.hasNext()) { + V1PodResourceClaimStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1PodCondition item) { + return new ConditionsNested(index, item); + } + + public ContainerStatusesNested setNewContainerStatusLike(int index,V1ContainerStatus item) { + return new ContainerStatusesNested(index, item); + } + + public EphemeralContainerStatusesNested setNewEphemeralContainerStatusLike(int index,V1ContainerStatus item) { + return new EphemeralContainerStatusesNested(index, item); + } + + public HostIPsNested setNewHostIPLike(int index,V1HostIP item) { + return new HostIPsNested(index, item); + } + + public InitContainerStatusesNested setNewInitContainerStatusLike(int index,V1ContainerStatus item) { + return new InitContainerStatusesNested(index, item); + } + + public PodIPsNested setNewPodIPLike(int index,V1PodIP item) { + return new PodIPsNested(index, item); + } + + public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1PodResourceClaimStatus item) { + return new ResourceClaimStatusesNested(index, item); + } + + 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").add(builder); + conditions.set(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").add(builder); + containerStatuses.set(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").add(builder); + ephemeralContainerStatuses.set(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").add(builder); + hostIPs.set(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").add(builder); + initContainerStatuses.set(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").add(builder); + podIPs.set(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").add(builder); + resourceClaimStatuses.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocatedResources == null) && !(allocatedResources.isEmpty())) { + sb.append("allocatedResources:"); + sb.append(allocatedResources); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(containerStatuses == null) && !(containerStatuses.isEmpty())) { + sb.append("containerStatuses:"); + sb.append(containerStatuses); + sb.append(","); + } + if (!(ephemeralContainerStatuses == null) && !(ephemeralContainerStatuses.isEmpty())) { + sb.append("ephemeralContainerStatuses:"); + sb.append(ephemeralContainerStatuses); + sb.append(","); + } + if (!(extendedResourceClaimStatus == null)) { + sb.append("extendedResourceClaimStatus:"); + sb.append(extendedResourceClaimStatus); + sb.append(","); + } + if (!(hostIP == null)) { + sb.append("hostIP:"); + sb.append(hostIP); + sb.append(","); + } + if (!(hostIPs == null) && !(hostIPs.isEmpty())) { + sb.append("hostIPs:"); + sb.append(hostIPs); + sb.append(","); + } + if (!(initContainerStatuses == null) && !(initContainerStatuses.isEmpty())) { + sb.append("initContainerStatuses:"); + sb.append(initContainerStatuses); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(nominatedNodeName == null)) { + sb.append("nominatedNodeName:"); + sb.append(nominatedNodeName); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(phase == null)) { + sb.append("phase:"); + sb.append(phase); + sb.append(","); + } + if (!(podIP == null)) { + sb.append("podIP:"); + sb.append(podIP); + sb.append(","); + } + if (!(podIPs == null) && !(podIPs.isEmpty())) { + sb.append("podIPs:"); + sb.append(podIPs); + sb.append(","); + } + if (!(qosClass == null)) { + sb.append("qosClass:"); + sb.append(qosClass); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(resize == null)) { + sb.append("resize:"); + sb.append(resize); + sb.append(","); + } + if (!(resourceClaimStatuses == null) && !(resourceClaimStatuses.isEmpty())) { + sb.append("resourceClaimStatuses:"); + sb.append(resourceClaimStatuses); + sb.append(","); + } + if (!(resources == null)) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(startTime == null)) { + sb.append("startTime:"); + sb.append(startTime); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocatedResources(Map allocatedResources) { + if (allocatedResources == null) { + this.allocatedResources = null; + } else { + this.allocatedResources = new LinkedHashMap(allocatedResources); + } + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1PodCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1PodCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1PodCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withContainerStatuses(List containerStatuses) { + if (this.containerStatuses != null) { + this._visitables.get("containerStatuses").clear(); + } + if (containerStatuses != null) { + this.containerStatuses = new ArrayList(); + for (V1ContainerStatus item : containerStatuses) { + this.addToContainerStatuses(item); + } + } else { + this.containerStatuses = null; + } + return (A) this; + } + + public A withContainerStatuses(V1ContainerStatus... containerStatuses) { + if (this.containerStatuses != null) { + this.containerStatuses.clear(); + _visitables.remove("containerStatuses"); + } + if (containerStatuses != null) { + for (V1ContainerStatus item : containerStatuses) { + this.addToContainerStatuses(item); + } + } + return (A) this; + } + + public A withEphemeralContainerStatuses(List ephemeralContainerStatuses) { + if (this.ephemeralContainerStatuses != null) { + this._visitables.get("ephemeralContainerStatuses").clear(); + } + if (ephemeralContainerStatuses != null) { + this.ephemeralContainerStatuses = new ArrayList(); + for (V1ContainerStatus item : ephemeralContainerStatuses) { + this.addToEphemeralContainerStatuses(item); + } + } else { + this.ephemeralContainerStatuses = null; + } + return (A) this; + } + + public A withEphemeralContainerStatuses(V1ContainerStatus... ephemeralContainerStatuses) { + if (this.ephemeralContainerStatuses != null) { + this.ephemeralContainerStatuses.clear(); + _visitables.remove("ephemeralContainerStatuses"); + } + if (ephemeralContainerStatuses != null) { + for (V1ContainerStatus item : ephemeralContainerStatuses) { + this.addToEphemeralContainerStatuses(item); + } + } + return (A) this; + } + + public A withExtendedResourceClaimStatus(V1PodExtendedResourceClaimStatus extendedResourceClaimStatus) { + this._visitables.remove("extendedResourceClaimStatus"); + if (extendedResourceClaimStatus != null) { + this.extendedResourceClaimStatus = new V1PodExtendedResourceClaimStatusBuilder(extendedResourceClaimStatus); + this._visitables.get("extendedResourceClaimStatus").add(this.extendedResourceClaimStatus); + } else { + this.extendedResourceClaimStatus = null; + this._visitables.get("extendedResourceClaimStatus").remove(this.extendedResourceClaimStatus); + } + return (A) this; + } + + public A withHostIP(String hostIP) { + this.hostIP = hostIP; + return (A) this; + } + + public A withHostIPs(List hostIPs) { + if (this.hostIPs != null) { + this._visitables.get("hostIPs").clear(); + } + if (hostIPs != null) { + this.hostIPs = new ArrayList(); + for (V1HostIP item : hostIPs) { + this.addToHostIPs(item); + } + } else { + this.hostIPs = null; + } + return (A) this; + } + + public A withHostIPs(V1HostIP... hostIPs) { + if (this.hostIPs != null) { + this.hostIPs.clear(); + _visitables.remove("hostIPs"); + } + if (hostIPs != null) { + for (V1HostIP item : hostIPs) { + this.addToHostIPs(item); + } + } + return (A) this; + } + + public A withInitContainerStatuses(List initContainerStatuses) { + if (this.initContainerStatuses != null) { + this._visitables.get("initContainerStatuses").clear(); + } + if (initContainerStatuses != null) { + this.initContainerStatuses = new ArrayList(); + for (V1ContainerStatus item : initContainerStatuses) { + this.addToInitContainerStatuses(item); + } + } else { + this.initContainerStatuses = null; + } + return (A) this; + } + + public A withInitContainerStatuses(V1ContainerStatus... initContainerStatuses) { + if (this.initContainerStatuses != null) { + this.initContainerStatuses.clear(); + _visitables.remove("initContainerStatuses"); + } + if (initContainerStatuses != null) { + for (V1ContainerStatus item : initContainerStatuses) { + this.addToInitContainerStatuses(item); + } + } + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public ExtendedResourceClaimStatusNested withNewExtendedResourceClaimStatus() { + return new ExtendedResourceClaimStatusNested(null); + } + + public ExtendedResourceClaimStatusNested withNewExtendedResourceClaimStatusLike(V1PodExtendedResourceClaimStatus item) { + return new ExtendedResourceClaimStatusNested(item); + } + + public ResourcesNested withNewResources() { + return new ResourcesNested(null); + } + + public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { + return new ResourcesNested(item); + } + + public A withNominatedNodeName(String nominatedNodeName) { + this.nominatedNodeName = nominatedNodeName; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withPhase(String phase) { + this.phase = phase; + return (A) this; } - public boolean hasMatchingPodIP(Predicate predicate) { - for (V1PodIPBuilder item : podIPs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withPodIP(String podIP) { + this.podIP = podIP; + return (A) this; } public A withPodIPs(List podIPs) { @@ -980,7 +1918,7 @@ public A withPodIPs(List podIPs) { return (A) this; } - public A withPodIPs(io.kubernetes.client.openapi.models.V1PodIP... podIPs) { + public A withPodIPs(V1PodIP... podIPs) { if (this.podIPs != null) { this.podIPs.clear(); _visitables.remove("podIPs"); @@ -993,168 +1931,21 @@ public A withPodIPs(io.kubernetes.client.openapi.models.V1PodIP... podIPs) { return (A) this; } - public boolean hasPodIPs() { - return this.podIPs != null && !this.podIPs.isEmpty(); - } - - public PodIPsNested addNewPodIP() { - return new PodIPsNested(-1, null); - } - - public PodIPsNested addNewPodIPLike(V1PodIP item) { - return new PodIPsNested(-1, item); - } - - public PodIPsNested setNewPodIPLike(int index,V1PodIP item) { - return new PodIPsNested(index, item); - } - - public PodIPsNested editPodIP(int index) { - if (podIPs.size() <= index) throw new RuntimeException("Can't edit podIPs. Index exceeds size."); - return setNewPodIPLike(index, buildPodIP(index)); - } - - public PodIPsNested editFirstPodIP() { - if (podIPs.size() == 0) throw new RuntimeException("Can't edit first podIPs. The list is empty."); - return setNewPodIPLike(0, buildPodIP(0)); - } - - public PodIPsNested editLastPodIP() { - int index = podIPs.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last podIPs. The list is empty."); - return setNewPodIPLike(index, buildPodIP(index)); - } - - public PodIPsNested editMatchingPodIP(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - 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);} - return (A)this; - } - - public A addToResourceClaimStatuses(io.kubernetes.client.openapi.models.V1PodResourceClaimStatus... items) { - if (this.resourceClaimStatuses == null) {this.resourceClaimStatuses = new ArrayList();} - for (V1PodResourceClaimStatus item : items) {V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item);_visitables.get("resourceClaimStatuses").add(builder);this.resourceClaimStatuses.add(builder);} return (A)this; - } - - public A addAllToResourceClaimStatuses(Collection items) { - if (this.resourceClaimStatuses == null) {this.resourceClaimStatuses = new ArrayList();} - for (V1PodResourceClaimStatus item : items) {V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item);_visitables.get("resourceClaimStatuses").add(builder);this.resourceClaimStatuses.add(builder);} return (A)this; - } - - public A removeFromResourceClaimStatuses(io.kubernetes.client.openapi.models.V1PodResourceClaimStatus... items) { - if (this.resourceClaimStatuses == null) return (A)this; - for (V1PodResourceClaimStatus item : items) {V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item);_visitables.get("resourceClaimStatuses").remove(builder); this.resourceClaimStatuses.remove(builder);} return (A)this; - } - - public A removeAllFromResourceClaimStatuses(Collection items) { - if (this.resourceClaimStatuses == null) return (A)this; - for (V1PodResourceClaimStatus item : items) {V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item);_visitables.get("resourceClaimStatuses").remove(builder); this.resourceClaimStatuses.remove(builder);} return (A)this; - } - - public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { - if (resourceClaimStatuses == null) return (A) this; - final Iterator each = resourceClaimStatuses.iterator(); - final List visitables = _visitables.get("resourceClaimStatuses"); - while (each.hasNext()) { - V1PodResourceClaimStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildResourceClaimStatuses() { - return this.resourceClaimStatuses != null ? build(resourceClaimStatuses) : null; - } - - public V1PodResourceClaimStatus buildResourceClaimStatus(int index) { - return this.resourceClaimStatuses.get(index).build(); - } - - public V1PodResourceClaimStatus buildFirstResourceClaimStatus() { - return this.resourceClaimStatuses.get(0).build(); - } - - public V1PodResourceClaimStatus buildLastResourceClaimStatus() { - return this.resourceClaimStatuses.get(resourceClaimStatuses.size() - 1).build(); - } - - public V1PodResourceClaimStatus buildMatchingResourceClaimStatus(Predicate predicate) { - for (V1PodResourceClaimStatusBuilder item : resourceClaimStatuses) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingResourceClaimStatus(Predicate predicate) { - for (V1PodResourceClaimStatusBuilder item : resourceClaimStatuses) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - public A withResourceClaimStatuses(List resourceClaimStatuses) { if (this.resourceClaimStatuses != null) { this._visitables.get("resourceClaimStatuses").clear(); @@ -1170,7 +1961,7 @@ public A withResourceClaimStatuses(List resourceClaimS return (A) this; } - public A withResourceClaimStatuses(io.kubernetes.client.openapi.models.V1PodResourceClaimStatus... resourceClaimStatuses) { + public A withResourceClaimStatuses(V1PodResourceClaimStatus... resourceClaimStatuses) { if (this.resourceClaimStatuses != null) { this.resourceClaimStatuses.clear(); _visitables.remove("resourceClaimStatuses"); @@ -1183,235 +1974,187 @@ public A withResourceClaimStatuses(io.kubernetes.client.openapi.models.V1PodReso return (A) this; } - public boolean hasResourceClaimStatuses() { - return this.resourceClaimStatuses != null && !this.resourceClaimStatuses.isEmpty(); - } - - public ResourceClaimStatusesNested addNewResourceClaimStatus() { - return new ResourceClaimStatusesNested(-1, null); - } - - public ResourceClaimStatusesNested addNewResourceClaimStatusLike(V1PodResourceClaimStatus item) { - return new ResourceClaimStatusesNested(-1, item); - } - - public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1PodResourceClaimStatus item) { - return new ResourceClaimStatusesNested(index, item); - } - - public ResourceClaimStatusesNested editResourceClaimStatus(int index) { - if (resourceClaimStatuses.size() <= index) throw new RuntimeException("Can't edit resourceClaimStatuses. Index exceeds size."); - return setNewResourceClaimStatusLike(index, buildResourceClaimStatus(index)); - } - - public ResourceClaimStatusesNested editFirstResourceClaimStatus() { - if (resourceClaimStatuses.size() == 0) throw new RuntimeException("Can't edit first resourceClaimStatuses. The list is empty."); - return setNewResourceClaimStatusLike(0, buildResourceClaimStatus(0)); - } - - public ResourceClaimStatusesNested editLastResourceClaimStatus() { - int index = resourceClaimStatuses.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last resourceClaimStatuses. The list is empty."); - return setNewResourceClaimStatusLike(index, buildResourceClaimStatus(index)); - } - - public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1PodConditionFluent> implements Nested{ - public boolean hasStartTime() { - return this.startTime != 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; - V1PodStatusFluent that = (V1PodStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(containerStatuses, that.containerStatuses)) return false; - if (!java.util.Objects.equals(ephemeralContainerStatuses, that.ephemeralContainerStatuses)) return false; - if (!java.util.Objects.equals(hostIP, that.hostIP)) return false; - if (!java.util.Objects.equals(hostIPs, that.hostIPs)) return false; - 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(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; - if (!java.util.Objects.equals(qosClass, that.qosClass)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(resize, that.resize)) return false; - if (!java.util.Objects.equals(resourceClaimStatuses, that.resourceClaimStatuses)) return false; - if (!java.util.Objects.equals(startTime, that.startTime)) return false; - return true; - } - - 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()); - } + V1PodConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (containerStatuses != null && !containerStatuses.isEmpty()) { sb.append("containerStatuses:"); sb.append(containerStatuses + ","); } - if (ephemeralContainerStatuses != null && !ephemeralContainerStatuses.isEmpty()) { sb.append("ephemeralContainerStatuses:"); sb.append(ephemeralContainerStatuses + ","); } - if (hostIP != null) { sb.append("hostIP:"); sb.append(hostIP + ","); } - if (hostIPs != null && !hostIPs.isEmpty()) { sb.append("hostIPs:"); sb.append(hostIPs + ","); } - 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 (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 + ","); } - if (qosClass != null) { sb.append("qosClass:"); sb.append(qosClass + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (resize != null) { sb.append("resize:"); sb.append(resize + ","); } - if (resourceClaimStatuses != null && !resourceClaimStatuses.isEmpty()) { sb.append("resourceClaimStatuses:"); sb.append(resourceClaimStatuses + ","); } - if (startTime != null) { sb.append("startTime:"); sb.append(startTime); } - sb.append("}"); - return sb.toString(); - } - public class ConditionsNested extends V1PodConditionFluent> implements Nested{ ConditionsNested(int index,V1PodCondition item) { this.index = index; this.builder = new V1PodConditionBuilder(this, item); } - V1PodConditionBuilder builder; - int index; - + public N and() { - return (N) V1PodStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1PodStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { return and(); } - } public class ContainerStatusesNested extends V1ContainerStatusFluent> implements Nested{ + + V1ContainerStatusBuilder builder; + int index; + ContainerStatusesNested(int index,V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } - V1ContainerStatusBuilder builder; - int index; - + public N and() { - return (N) V1PodStatusFluent.this.setToContainerStatuses(index,builder.build()); + return (N) V1PodStatusFluent.this.setToContainerStatuses(index, builder.build()); } public N endContainerStatus() { return and(); } - } public class EphemeralContainerStatusesNested extends V1ContainerStatusFluent> implements Nested{ + + V1ContainerStatusBuilder builder; + int index; + EphemeralContainerStatusesNested(int index,V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } - V1ContainerStatusBuilder builder; - int index; - + public N and() { - return (N) V1PodStatusFluent.this.setToEphemeralContainerStatuses(index,builder.build()); + return (N) V1PodStatusFluent.this.setToEphemeralContainerStatuses(index, builder.build()); } public N endEphemeralContainerStatus() { return and(); } + } + public class ExtendedResourceClaimStatusNested extends V1PodExtendedResourceClaimStatusFluent> implements Nested{ + + V1PodExtendedResourceClaimStatusBuilder builder; + + ExtendedResourceClaimStatusNested(V1PodExtendedResourceClaimStatus item) { + this.builder = new V1PodExtendedResourceClaimStatusBuilder(this, item); + } + public N and() { + return (N) V1PodStatusFluent.this.withExtendedResourceClaimStatus(builder.build()); + } + + public N endExtendedResourceClaimStatus() { + return and(); + } + } public class HostIPsNested extends V1HostIPFluent> implements Nested{ + + V1HostIPBuilder builder; + int index; + HostIPsNested(int index,V1HostIP item) { this.index = index; this.builder = new V1HostIPBuilder(this, item); } - V1HostIPBuilder builder; - int index; - + public N and() { - return (N) V1PodStatusFluent.this.setToHostIPs(index,builder.build()); + return (N) V1PodStatusFluent.this.setToHostIPs(index, builder.build()); } public N endHostIP() { return and(); } - } public class InitContainerStatusesNested extends V1ContainerStatusFluent> implements Nested{ + + V1ContainerStatusBuilder builder; + int index; + InitContainerStatusesNested(int index,V1ContainerStatus item) { this.index = index; this.builder = new V1ContainerStatusBuilder(this, item); } - V1ContainerStatusBuilder builder; - int index; - + public N and() { - return (N) V1PodStatusFluent.this.setToInitContainerStatuses(index,builder.build()); + return (N) V1PodStatusFluent.this.setToInitContainerStatuses(index, builder.build()); } public N endInitContainerStatus() { return and(); } - } public class PodIPsNested extends V1PodIPFluent> implements Nested{ + + V1PodIPBuilder builder; + int index; + PodIPsNested(int index,V1PodIP item) { this.index = index; this.builder = new V1PodIPBuilder(this, item); } - V1PodIPBuilder builder; - int index; - + public N and() { - return (N) V1PodStatusFluent.this.setToPodIPs(index,builder.build()); + return (N) V1PodStatusFluent.this.setToPodIPs(index, builder.build()); } public N endPodIP() { return and(); } - } public class ResourceClaimStatusesNested extends V1PodResourceClaimStatusFluent> implements Nested{ + + V1PodResourceClaimStatusBuilder builder; + int index; + ResourceClaimStatusesNested(int index,V1PodResourceClaimStatus item) { this.index = index; this.builder = new V1PodResourceClaimStatusBuilder(this, item); } - V1PodResourceClaimStatusBuilder builder; - int index; - + public N and() { - return (N) V1PodStatusFluent.this.setToResourceClaimStatuses(index,builder.build()); + return (N) V1PodStatusFluent.this.setToResourceClaimStatuses(index, builder.build()); } public N endResourceClaimStatus() { return and(); } + } + public class ResourcesNested extends V1ResourceRequirementsFluent> implements Nested{ + + V1ResourceRequirementsBuilder builder; + + ResourcesNested(V1ResourceRequirements item) { + this.builder = new V1ResourceRequirementsBuilder(this, item); + } + public N and() { + return (N) V1PodStatusFluent.this.withResources(builder.build()); + } + + public N endResources() { + return and(); + } + } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java index 9a5220ce02..e2e5eab158 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodTemplateBuilder extends V1PodTemplateFluent implements VisitableBuilder{ + + V1PodTemplateFluent fluent; + public V1PodTemplateBuilder() { this(new V1PodTemplate()); } @@ -10,17 +14,16 @@ public V1PodTemplateBuilder(V1PodTemplateFluent fluent) { this(fluent, new V1PodTemplate()); } - public V1PodTemplateBuilder(V1PodTemplateFluent fluent,V1PodTemplate instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodTemplateBuilder(V1PodTemplate instance) { this.fluent = this; this.copyInstance(instance); } - V1PodTemplateFluent fluent; + public V1PodTemplateBuilder(V1PodTemplateFluent fluent,V1PodTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodTemplate build() { V1PodTemplate buildable = new V1PodTemplate(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1PodTemplate build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java index 7086c50d70..4796836d80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodTemplateFluent> extends BaseFluent{ +public class V1PodTemplateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1PodTemplateSpecBuilder template; + public V1PodTemplateFluent() { } public V1PodTemplateFluent(V1PodTemplate instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1PodTemplateSpecBuilder template; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; + } protected void copyInstance(V1PodTemplate instance) { - instance = (instance != null ? instance : new V1PodTemplate()); + instance = instance != null ? instance : new V1PodTemplate(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withTemplate(instance.getTemplate()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withTemplate(instance.getTemplate()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + } + + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); + } + + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodTemplateFluent that = (V1PodTemplateFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasTemplate() { + return this.template != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, template); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 TemplateNested withNewTemplate() { + return new TemplateNested(null); } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); } public A withTemplate(V1PodTemplateSpec template) { @@ -113,63 +198,14 @@ public A withTemplate(V1PodTemplateSpec template) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasTemplate() { - return this.template != null; - } - - public TemplateNested withNewTemplate() { - return new TemplateNested(null); - } - - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); - } - - public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); - } - - public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); - } - - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).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; - V1PodTemplateFluent that = (V1PodTemplateFluent) 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(template, that.template)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, metadata, template, super.hashCode()); - } + V1ObjectMetaBuilder builder; - 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 (template != null) { sb.append("template:"); sb.append(template); } - 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) V1PodTemplateFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1PodTemplateFluent.this.withTemplate(builder.build()); } @@ -194,7 +231,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java index 305a5fdc36..def8a74173 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodTemplateListBuilder extends V1PodTemplateListFluent implements VisitableBuilder{ + + V1PodTemplateListFluent fluent; + public V1PodTemplateListBuilder() { this(new V1PodTemplateList()); } @@ -10,17 +14,16 @@ public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent) { this(fluent, new V1PodTemplateList()); } - public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent,V1PodTemplateList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodTemplateListBuilder(V1PodTemplateList instance) { this.fluent = this; this.copyInstance(instance); } - V1PodTemplateListFluent fluent; + public V1PodTemplateListBuilder(V1PodTemplateListFluent fluent,V1PodTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodTemplateList build() { V1PodTemplateList buildable = new V1PodTemplateList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1PodTemplateList build() { return buildable; } - } \ No newline at end of file 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..a3d4469e7b 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodTemplateListFluent> extends BaseFluent{ +public class V1PodTemplateListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1PodTemplateListFluent() { } public V1PodTemplateListFluent(V1PodTemplateList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PodTemplateList instance) { - instance = (instance != null ? instance : new V1PodTemplateList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1PodTemplate item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1PodTemplate... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1PodTemplate item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1PodTemplate buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1PodTemplate buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { - if (this.items == null) return (A)this; - for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PodTemplate buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PodTemplate item : items) {V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PodTemplate buildMatchingItem(Predicate predicate) { + for (V1PodTemplateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1PodTemplateBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1PodTemplateList instance) { + instance = instance != null ? instance : new V1PodTemplateList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1PodTemplate buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1PodTemplate buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PodTemplate buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodTemplateListFluent that = (V1PodTemplateListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1PodTemplate buildMatchingItem(Predicate predicate) { - for (V1PodTemplateBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PodTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1PodTemplate item : items) { + V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PodTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PodTemplate item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { + public A withItems(V1PodTemplate... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1PodTemplate... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PodTemplate item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PodTemplate 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1PodTemplateFluent> implements Nested{ - 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; - V1PodTemplateListFluent that = (V1PodTemplateListFluent) 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()); - } + V1PodTemplateBuilder builder; + int index; - 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 V1PodTemplateFluent> implements Nested{ ItemsNested(int index,V1PodTemplate item) { this.index = index; this.builder = new V1PodTemplateBuilder(this, item); } - V1PodTemplateBuilder builder; - int index; - + public N and() { - return (N) V1PodTemplateListFluent.this.setToItems(index,builder.build()); + return (N) V1PodTemplateListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PodTemplateListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java index c208cabaad..f48a746e60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PodTemplateSpecBuilder extends V1PodTemplateSpecFluent implements VisitableBuilder{ + + V1PodTemplateSpecFluent fluent; + public V1PodTemplateSpecBuilder() { this(new V1PodTemplateSpec()); } @@ -10,17 +14,16 @@ public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent) { this(fluent, new V1PodTemplateSpec()); } - public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent,V1PodTemplateSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PodTemplateSpecBuilder(V1PodTemplateSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1PodTemplateSpecFluent fluent; + public V1PodTemplateSpecBuilder(V1PodTemplateSpecFluent fluent,V1PodTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PodTemplateSpec build() { V1PodTemplateSpec buildable = new V1PodTemplateSpec(); buildable.setMetadata(fluent.buildMetadata()); @@ -28,5 +31,4 @@ public V1PodTemplateSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java index 8a08b05c1c..d52b6631a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java @@ -1,35 +1,116 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PodTemplateSpecFluent> extends BaseFluent{ +public class V1PodTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1PodSpecBuilder spec; + public V1PodTemplateSpecFluent() { } public V1PodTemplateSpecFluent(V1PodTemplateSpec instance) { this.copyInstance(instance); } - private V1ObjectMetaBuilder metadata; - private V1PodSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PodSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1PodTemplateSpec instance) { - instance = (instance != null ? instance : new V1PodTemplateSpec()); + instance = instance != null ? instance : new V1PodTemplateSpec(); if (instance != null) { - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PodSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1PodSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodTemplateSpecFluent that = (V1PodTemplateSpecFluent) o; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); } public A withMetadata(V1ObjectMeta metadata) { @@ -44,10 +125,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -56,20 +133,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1PodSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1PodSpec item) { + return new SpecNested(item); } public A withSpec(V1PodSpec spec) { @@ -83,59 +152,14 @@ public A withSpec(V1PodSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1PodSpec 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 V1PodSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1PodSpec 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; - V1PodTemplateSpecFluent that = (V1PodTemplateSpecFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1PodTemplateSpecFluent.this.withMetadata(builder.build()); } @@ -144,14 +168,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PodSpecFluent> implements Nested{ + + V1PodSpecBuilder builder; + SpecNested(V1PodSpec item) { this.builder = new V1PodSpecBuilder(this, item); } - V1PodSpecBuilder builder; - + public N and() { return (N) V1PodTemplateSpecFluent.this.withSpec(builder.build()); } @@ -160,7 +185,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java index cc3d026fe7..821e4dda02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PolicyRuleBuilder extends V1PolicyRuleFluent implements VisitableBuilder{ + + V1PolicyRuleFluent fluent; + public V1PolicyRuleBuilder() { this(new V1PolicyRule()); } @@ -10,17 +14,16 @@ public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent) { this(fluent, new V1PolicyRule()); } - public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent,V1PolicyRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PolicyRuleBuilder(V1PolicyRule instance) { this.fluent = this; this.copyInstance(instance); } - V1PolicyRuleFluent fluent; + public V1PolicyRuleBuilder(V1PolicyRuleFluent fluent,V1PolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PolicyRule build() { V1PolicyRule buildable = new V1PolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -31,5 +34,4 @@ public V1PolicyRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java index f281402550..f4f08ae2b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java @@ -1,89 +1,263 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PolicyRuleFluent> extends BaseFluent{ +public class V1PolicyRuleFluent> extends BaseFluent{ + + private List apiGroups; + private List nonResourceURLs; + private List resourceNames; + private List resources; + private List verbs; + public V1PolicyRuleFluent() { } public V1PolicyRuleFluent(V1PolicyRule instance) { this.copyInstance(instance); } - private List apiGroups; - private List nonResourceURLs; - private List resourceNames; - private List resources; - private List verbs; + + public A addAllToApiGroups(Collection items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; + } - protected void copyInstance(V1PolicyRule instance) { - instance = (instance != null ? instance : new V1PolicyRule()); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withNonResourceURLs(instance.getNonResourceURLs()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); - } + 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 addAllToResourceNames(Collection items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.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 addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + 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 addToNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + for (String item : items) { + this.nonResourceURLs.add(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 addToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.add(index, 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 addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.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 addToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.add(index, 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 A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public List getApiGroups() { - return this.apiGroups; + 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 addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; + } + + protected void copyInstance(V1PolicyRule instance) { + instance = instance != null ? instance : new V1PolicyRule(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withNonResourceURLs(instance.getNonResourceURLs()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withVerbs(instance.getVerbs()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PolicyRuleFluent that = (V1PolicyRuleFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(nonResourceURLs, that.nonResourceURLs))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } public String getApiGroup(int index) { return this.apiGroups.get(index); } + public List getApiGroups() { + return this.apiGroups; + } + public String getFirstApiGroup() { return this.apiGroups.get(0); } + public String getFirstNonResourceURL() { + return this.nonResourceURLs.get(0); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getFirstResourceName() { + return this.resourceNames.get(0); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } + public String getLastNonResourceURL() { + return this.nonResourceURLs.get(nonResourceURLs.size() - 1); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + public String getMatchingApiGroup(Predicate predicate) { for (String item : apiGroups) { if (predicate.test(item)) { @@ -93,13 +267,312 @@ public String getMatchingApiGroup(Predicate predicate) { return null; } - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + public String getMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getNonResourceURL(int index) { + return this.nonResourceURLs.get(index); + } + + public List getNonResourceURLs() { + return this.nonResourceURLs; + } + + public String getResource(int index) { + return this.resources.get(index); + } + + public String getResourceName(int index) { + return this.resourceNames.get(index); + } + + public List getResourceNames() { + return this.resourceNames; + } + + public List getResources() { + return this.resources; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public List getVerbs() { + return this.verbs; + } + + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); + } + + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingNonResourceURL(Predicate predicate) { + for (String item : nonResourceURLs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNonResourceURLs() { + return this.nonResourceURLs != null && !(this.nonResourceURLs.isEmpty()); + } + + public boolean hasResourceNames() { + return this.resourceNames != null && !(this.resourceNames.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.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 A removeAllFromResourceNames(Collection items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.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 A removeAllFromVerbs(Collection items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; + } + + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; + } + + public A removeFromNonResourceURLs(String... items) { + if (this.nonResourceURLs == null) { + return (A) this; + } + for (String item : items) { + this.nonResourceURLs.remove(item); + } + return (A) this; + } + + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; + } + + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; + } + + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(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 setToNonResourceURLs(int index,String item) { + if (this.nonResourceURLs == null) { + this.nonResourceURLs = new ArrayList(); + } + this.nonResourceURLs.set(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 setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(nonResourceURLs == null) && !(nonResourceURLs.isEmpty())) { + sb.append("nonResourceURLs:"); + sb.append(nonResourceURLs); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); } public A withApiGroups(List apiGroups) { @@ -114,7 +587,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -127,75 +600,6 @@ public A withApiGroups(java.lang.String... apiGroups) { return (A) this; } - public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.isEmpty(); - } - - 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(); @@ -208,7 +612,7 @@ public A withNonResourceURLs(List nonResourceURLs) { return (A) this; } - public A withNonResourceURLs(java.lang.String... nonResourceURLs) { + public A withNonResourceURLs(String... nonResourceURLs) { if (this.nonResourceURLs != null) { this.nonResourceURLs.clear(); _visitables.remove("nonResourceURLs"); @@ -221,75 +625,6 @@ public A withNonResourceURLs(java.lang.String... nonResourceURLs) { return (A) this; } - public boolean hasNonResourceURLs() { - return this.nonResourceURLs != null && !this.nonResourceURLs.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(); @@ -302,7 +637,7 @@ public A withResourceNames(List resourceNames) { return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { + public A withResourceNames(String... resourceNames) { if (this.resourceNames != null) { this.resourceNames.clear(); _visitables.remove("resourceNames"); @@ -315,75 +650,6 @@ public A withResourceNames(java.lang.String... resourceNames) { 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(); @@ -396,7 +662,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -409,75 +675,6 @@ public A withResources(java.lang.String... resources) { 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(); @@ -490,7 +687,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -503,38 +700,4 @@ public A withVerbs(java.lang.String... verbs) { 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; - V1PolicyRuleFluent that = (V1PolicyRuleFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) return false; - if (!java.util.Objects.equals(nonResourceURLs, that.nonResourceURLs)) 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(verbs, that.verbs)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiGroups, nonResourceURLs, resourceNames, 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 (nonResourceURLs != null && !nonResourceURLs.isEmpty()) { sb.append("nonResourceURLs:"); sb.append(nonResourceURLs + ","); } - if (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } - 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(); - } - - } \ No newline at end of file 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 index b980ed4341..dc71c4c639 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PolicyRulesWithSubjectsBuilder extends V1PolicyRulesWithSubjectsFluent implements VisitableBuilder{ + + V1PolicyRulesWithSubjectsFluent fluent; + public V1PolicyRulesWithSubjectsBuilder() { this(new V1PolicyRulesWithSubjects()); } @@ -10,17 +14,16 @@ public V1PolicyRulesWithSubjectsBuilder(V1PolicyRulesWithSubjectsFluent fluen 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 V1PolicyRulesWithSubjectsBuilder(V1PolicyRulesWithSubjectsFluent fluent,V1PolicyRulesWithSubjects instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PolicyRulesWithSubjects build() { V1PolicyRulesWithSubjects buildable = new V1PolicyRulesWithSubjects(); buildable.setNonResourceRules(fluent.buildNonResourceRules()); @@ -29,5 +32,4 @@ public V1PolicyRulesWithSubjects build() { 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 index 655a528960..4767524517 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java @@ -1,105 +1,201 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PolicyRulesWithSubjectsFluent> extends BaseFluent{ +public class V1PolicyRulesWithSubjectsFluent> extends BaseFluent{ + + private ArrayList nonResourceRules; + private ArrayList resourceRules; + private ArrayList subjects; + public V1PolicyRulesWithSubjectsFluent() { } public V1PolicyRulesWithSubjectsFluent(V1PolicyRulesWithSubjects instance) { this.copyInstance(instance); } - private ArrayList nonResourceRules; - private ArrayList resourceRules; - private ArrayList subjects; + + 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; + } - 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 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 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(index, builder); nonResourceRules.add(index, 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 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").set(index, builder); nonResourceRules.set(index, builder);} - return (A)this; + public NonResourceRulesNested addNewNonResourceRule() { + return new NonResourceRulesNested(-1, null); } - 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 NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourcePolicyRule item) { + return new NonResourceRulesNested(-1, item); } - 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 ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); } - 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 ResourceRulesNested addNewResourceRuleLike(V1ResourcePolicyRule item) { + return new ResourceRulesNested(-1, item); } - 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 SubjectsNested addNewSubject() { + return new SubjectsNested(-1, null); } - 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(); - } + public SubjectsNested addNewSubjectLike(FlowcontrolV1Subject item) { + return new SubjectsNested(-1, item); + } + + public A addToNonResourceRules(V1NonResourcePolicyRule... items) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); } - return (A)this; + for (V1NonResourcePolicyRule item : items) { + V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); + _visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); + } + return (A) this; } - public List buildNonResourceRules() { - return this.nonResourceRules != null ? build(nonResourceRules) : null; + 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 V1NonResourcePolicyRule buildNonResourceRule(int index) { - return this.nonResourceRules.get(index).build(); + public A addToResourceRules(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 addToResourceRules(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.add(index, builder); + } + return (A) this; + } + + public A addToSubjects(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 addToSubjects(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.add(index, builder); + } + return (A) this; } public V1NonResourcePolicyRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } + public V1ResourcePolicyRule buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + + public FlowcontrolV1Subject buildFirstSubject() { + return this.subjects.get(0).build(); + } + public V1NonResourcePolicyRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } + public V1ResourcePolicyRule buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + + public FlowcontrolV1Subject buildLastSubject() { + return this.subjects.get(subjects.size() - 1).build(); + } + public V1NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate) { for (V1NonResourcePolicyRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { @@ -109,155 +205,195 @@ public V1NonResourcePolicyRule buildMatchingNonResourceRule(Predicate predicate) { - for (V1NonResourcePolicyRuleBuilder item : nonResourceRules) { + public V1ResourcePolicyRule buildMatchingResourceRule(Predicate predicate) { + for (V1ResourcePolicyRuleBuilder item : resourceRules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - 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); + public FlowcontrolV1Subject buildMatchingSubject(Predicate predicate) { + for (FlowcontrolV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.nonResourceRules = null; - } - return (A) this; + } + return null; } - 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 V1NonResourcePolicyRule buildNonResourceRule(int index) { + return this.nonResourceRules.get(index).build(); } - public boolean hasNonResourceRules() { - return this.nonResourceRules != null && !this.nonResourceRules.isEmpty(); + public List buildNonResourceRules() { + return this.nonResourceRules != null ? build(nonResourceRules) : null; } - public NonResourceRulesNested addNewNonResourceRule() { - return new NonResourceRulesNested(-1, null); + public V1ResourcePolicyRule buildResourceRule(int index) { + return this.resourceRules.get(index).build(); } - public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourcePolicyRule item) { - return new NonResourceRulesNested(-1, item); + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; } - public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourcePolicyRule item) { - return new NonResourceRulesNested(index, item); + public FlowcontrolV1Subject buildSubject(int index) { + return this.subjects.get(index).build(); } - 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 List buildSubjects() { + return this.subjects != null ? build(subjects) : null; } - public NonResourceRulesNested editFirstNonResourceRule() { - if (nonResourceRules.size() == 0) throw new RuntimeException("Can't edit first nonResourceRules. The list is empty."); - return setNewNonResourceRuleLike(0, buildNonResourceRule(0)); + 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 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 editFirstNonResourceRule() { + if (nonResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(0, this.buildNonResourceRule(0)); } - public NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { - int index = -1; - for (int i=0;i editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); } - public A addToResourceRules(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(index, builder); resourceRules.add(index, builder);} - return (A)this; + public SubjectsNested editFirstSubject() { + if (subjects.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(0, this.buildSubject(0)); } - 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").set(index, builder); resourceRules.set(index, builder);} - return (A)this; + public NonResourceRulesNested editLastNonResourceRule() { + int index = nonResourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } - 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 ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - 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 SubjectsNested editLastSubject() { + int index = subjects.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } - 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 NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < nonResourceRules.size();i++) { + if (predicate.test(nonResourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } - 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 ResourceRulesNested editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - 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(); + public SubjectsNested editMatchingSubject(Predicate predicate) { + int index = -1; + for (int i = 0;i < subjects.size();i++) { + if (predicate.test(subjects.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } - public List buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; + public NonResourceRulesNested editNonResourceRule(int index) { + if (nonResourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } - public V1ResourcePolicyRule buildResourceRule(int index) { - return this.resourceRules.get(index).build(); + public ResourceRulesNested editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public V1ResourcePolicyRule buildFirstResourceRule() { - return this.resourceRules.get(0).build(); + public SubjectsNested editSubject(int index) { + if (subjects.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } - public V1ResourcePolicyRule buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PolicyRulesWithSubjectsFluent that = (V1PolicyRulesWithSubjectsFluent) o; + if (!(Objects.equals(nonResourceRules, that.nonResourceRules))) { + return false; + } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; + } + if (!(Objects.equals(subjects, that.subjects))) { + return false; + } + return true; } - public V1ResourcePolicyRule buildMatchingResourceRule(Predicate predicate) { - for (V1ResourcePolicyRuleBuilder item : resourceRules) { + public boolean hasMatchingNonResourceRule(Predicate predicate) { + for (V1NonResourcePolicyRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingResourceRule(Predicate predicate) { @@ -269,155 +405,283 @@ public boolean hasMatchingResourceRule(Predicate pr 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); + public boolean hasMatchingSubject(Predicate predicate) { + for (FlowcontrolV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return true; } - } else { - this.resourceRules = null; - } - return (A) this; + } + return false; } - 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 hasNonResourceRules() { + return this.nonResourceRules != null && !(this.nonResourceRules.isEmpty()); } public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); + public boolean hasSubjects() { + return this.subjects != null && !(this.subjects.isEmpty()); } - public ResourceRulesNested addNewResourceRuleLike(V1ResourcePolicyRule item) { - return new ResourceRulesNested(-1, item); + public int hashCode() { + return Objects.hash(nonResourceRules, resourceRules, subjects); } - public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourcePolicyRule item) { - return new ResourceRulesNested(index, item); + 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 ResourceRulesNested editResourceRule(int index) { - if (resourceRules.size() <= index) throw new RuntimeException("Can't edit resourceRules. Index exceeds size."); - return setNewResourceRuleLike(index, buildResourceRule(index)); + 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 ResourceRulesNested editFirstResourceRule() { - if (resourceRules.size() == 0) throw new RuntimeException("Can't edit first resourceRules. The list is empty."); - return setNewResourceRuleLike(0, buildResourceRule(0)); + 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 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 A removeFromNonResourceRules(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 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(index, builder); subjects.add(index, builder);} - return (A)this; + public A removeFromSubjects(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 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").set(index, builder); subjects.set(index, builder);} - return (A)this; + public A removeMatchingFromNonResourceRules(Predicate predicate) { + if (nonResourceRules == null) { + return (A) this; + } + Iterator each = nonResourceRules.iterator(); + 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 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 removeMatchingFromResourceRules(Predicate predicate) { + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + 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 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 removeMatchingFromSubjects(Predicate predicate) { + if (subjects == null) { + return (A) this; + } + Iterator each = subjects.iterator(); + 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 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 NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourcePolicyRule item) { + return new NonResourceRulesNested(index, item); } - 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 ResourceRulesNested setNewResourceRuleLike(int index,V1ResourcePolicyRule item) { + return new ResourceRulesNested(index, item); } - 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 SubjectsNested setNewSubjectLike(int index,FlowcontrolV1Subject item) { + return new SubjectsNested(index, item); } - public List buildSubjects() { - return this.subjects != null ? build(subjects) : null; + 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 FlowcontrolV1Subject buildSubject(int index) { - return this.subjects.get(index).build(); + 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 FlowcontrolV1Subject buildFirstSubject() { - return this.subjects.get(0).build(); + 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 FlowcontrolV1Subject buildLastSubject() { - return this.subjects.get(subjects.size() - 1).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nonResourceRules == null) && !(nonResourceRules.isEmpty())) { + sb.append("nonResourceRules:"); + sb.append(nonResourceRules); + sb.append(","); + } + if (!(resourceRules == null) && !(resourceRules.isEmpty())) { + sb.append("resourceRules:"); + sb.append(resourceRules); + sb.append(","); + } + if (!(subjects == null) && !(subjects.isEmpty())) { + sb.append("subjects:"); + sb.append(subjects); + } + sb.append("}"); + return sb.toString(); } - public FlowcontrolV1Subject buildMatchingSubject(Predicate predicate) { - for (FlowcontrolV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); + 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(V1NonResourcePolicyRule... nonResourceRules) { + if (this.nonResourceRules != null) { + this.nonResourceRules.clear(); + _visitables.remove("nonResourceRules"); + } + if (nonResourceRules != null) { + for (V1NonResourcePolicyRule item : nonResourceRules) { + this.addToNonResourceRules(item); } - return null; + } + return (A) this; } - public boolean hasMatchingSubject(Predicate predicate) { - for (FlowcontrolV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; + 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(V1ResourcePolicyRule... resourceRules) { + if (this.resourceRules != null) { + this.resourceRules.clear(); + _visitables.remove("resourceRules"); + } + if (resourceRules != null) { + for (V1ResourcePolicyRule item : resourceRules) { + this.addToResourceRules(item); } - return false; + } + return (A) this; } public A withSubjects(List subjects) { @@ -435,7 +699,7 @@ public A withSubjects(List subjects) { return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.FlowcontrolV1Subject... subjects) { + public A withSubjects(FlowcontrolV1Subject... subjects) { if (this.subjects != null) { this.subjects.clear(); _visitables.remove("subjects"); @@ -447,125 +711,61 @@ public A withSubjects(io.kubernetes.client.openapi.models.FlowcontrolV1Subject.. } return (A) this; } + public class NonResourceRulesNested extends V1NonResourcePolicyRuleFluent> implements Nested{ - 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()); + return (N) V1PolicyRulesWithSubjectsFluent.this.setToNonResourceRules(index, builder.build()); } public N endNonResourceRule() { return and(); } - } public class ResourceRulesNested extends V1ResourcePolicyRuleFluent> implements Nested{ + + V1ResourcePolicyRuleBuilder builder; + int index; + 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()); + return (N) V1PolicyRulesWithSubjectsFluent.this.setToResourceRules(index, builder.build()); } public N endResourceRule() { return and(); } - } public class SubjectsNested extends FlowcontrolV1SubjectFluent> implements Nested{ + + FlowcontrolV1SubjectBuilder builder; + int index; + 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()); + 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/V1PortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java index 41a76b1960..01d8cf5987 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PortStatusBuilder extends V1PortStatusFluent implements VisitableBuilder{ + + V1PortStatusFluent fluent; + public V1PortStatusBuilder() { this(new V1PortStatus()); } @@ -10,17 +14,16 @@ public V1PortStatusBuilder(V1PortStatusFluent fluent) { this(fluent, new V1PortStatus()); } - public V1PortStatusBuilder(V1PortStatusFluent fluent,V1PortStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PortStatusBuilder(V1PortStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1PortStatusFluent fluent; + public V1PortStatusBuilder(V1PortStatusFluent fluent,V1PortStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PortStatus build() { V1PortStatus buildable = new V1PortStatus(); buildable.setError(fluent.getError()); @@ -29,5 +32,4 @@ public V1PortStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java index fb24c8be92..17884354bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java @@ -1,98 +1,124 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PortStatusFluent> extends BaseFluent{ +public class V1PortStatusFluent> extends BaseFluent{ + + private String error; + private Integer port; + private String protocol; + public V1PortStatusFluent() { } public V1PortStatusFluent(V1PortStatus instance) { this.copyInstance(instance); } - private String error; - private Integer port; - private String protocol; - + protected void copyInstance(V1PortStatus instance) { - instance = (instance != null ? instance : new V1PortStatus()); + instance = instance != null ? instance : new V1PortStatus(); if (instance != null) { - this.withError(instance.getError()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - } - } - - public String getError() { - return this.error; + this.withError(instance.getError()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + } } - public A withError(String error) { - this.error = error; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PortStatusFluent that = (V1PortStatusFluent) o; + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } + return true; } - public boolean hasError() { - return this.error != null; + public String getError() { + return this.error; } public Integer getPort() { return this.port; } - public A withPort(Integer port) { - this.port = port; - return (A) this; - } - - public boolean hasPort() { - return this.port != null; - } - public String getProtocol() { return this.protocol; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + public boolean hasError() { + return this.error != null; } - public boolean hasProtocol() { - return this.protocol != null; + public boolean hasPort() { + return this.port != 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; - V1PortStatusFluent that = (V1PortStatusFluent) o; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; - return true; + public boolean hasProtocol() { + return this.protocol != null; } public int hashCode() { - return java.util.Objects.hash(error, port, protocol, super.hashCode()); + return Objects.hash(error, port, protocol); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol); } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + } sb.append("}"); return sb.toString(); } - + public A withError(String error) { + this.error = error; + return (A) this; + } + + public A withPort(Integer port) { + this.port = port; + return (A) this; + } + + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java index 77c3db9fd8..2739fc10fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PortworxVolumeSourceBuilder extends V1PortworxVolumeSourceFluent implements VisitableBuilder{ + + V1PortworxVolumeSourceFluent fluent; + public V1PortworxVolumeSourceBuilder() { this(new V1PortworxVolumeSource()); } @@ -10,17 +14,16 @@ public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent) { this(fluent, new V1PortworxVolumeSource()); } - public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent,V1PortworxVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1PortworxVolumeSourceFluent fluent; + public V1PortworxVolumeSourceBuilder(V1PortworxVolumeSourceFluent fluent,V1PortworxVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PortworxVolumeSource build() { V1PortworxVolumeSource buildable = new V1PortworxVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -29,5 +32,4 @@ public V1PortworxVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java index 70ac442b30..ba878cd220 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java @@ -1,102 +1,128 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PortworxVolumeSourceFluent> extends BaseFluent{ +public class V1PortworxVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private String volumeID; + public V1PortworxVolumeSourceFluent() { } public V1PortworxVolumeSourceFluent(V1PortworxVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private String volumeID; - + protected void copyInstance(V1PortworxVolumeSource instance) { - instance = (instance != null ? instance : new V1PortworxVolumeSource()); + instance = instance != null ? instance : new V1PortworxVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withVolumeID(instance.getVolumeID()); - } - } - - public String getFsType() { - return this.fsType; + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withVolumeID(instance.getVolumeID()); + } } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PortworxVolumeSourceFluent that = (V1PortworxVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(volumeID, that.volumeID))) { + return false; + } + return true; } - public boolean hasFsType() { - return this.fsType != null; + public String getFsType() { + return this.fsType; } 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 getVolumeID() { return this.volumeID; } - public A withVolumeID(String volumeID) { - this.volumeID = volumeID; - return (A) this; + public boolean hasFsType() { + return this.fsType != null; } - public boolean hasVolumeID() { - return this.volumeID != null; + public boolean hasReadOnly() { + return this.readOnly != 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; - V1PortworxVolumeSourceFluent that = (V1PortworxVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(volumeID, that.volumeID)) return false; - return true; + public boolean hasVolumeID() { + return this.volumeID != null; } public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, volumeID, super.hashCode()); + return Objects.hash(fsType, readOnly, volumeID); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (volumeID != null) { sb.append("volumeID:"); sb.append(volumeID); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(volumeID == null)) { + sb.append("volumeID:"); + sb.append(volumeID); + } sb.append("}"); return sb.toString(); } + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withVolumeID(String volumeID) { + this.volumeID = volumeID; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java index 4dc7ff1453..b84dc9db62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PreconditionsBuilder extends V1PreconditionsFluent implements VisitableBuilder{ + + V1PreconditionsFluent fluent; + public V1PreconditionsBuilder() { this(new V1Preconditions()); } @@ -10,17 +14,16 @@ public V1PreconditionsBuilder(V1PreconditionsFluent fluent) { this(fluent, new V1Preconditions()); } - public V1PreconditionsBuilder(V1PreconditionsFluent fluent,V1Preconditions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PreconditionsBuilder(V1Preconditions instance) { this.fluent = this; this.copyInstance(instance); } - V1PreconditionsFluent fluent; + public V1PreconditionsBuilder(V1PreconditionsFluent fluent,V1Preconditions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Preconditions build() { V1Preconditions buildable = new V1Preconditions(); buildable.setResourceVersion(fluent.getResourceVersion()); @@ -28,5 +31,4 @@ public V1Preconditions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java index 7749540073..d59150143e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PreconditionsFluent> extends BaseFluent{ +public class V1PreconditionsFluent> extends BaseFluent{ + + private String resourceVersion; + private String uid; + public V1PreconditionsFluent() { } public V1PreconditionsFluent(V1Preconditions instance) { this.copyInstance(instance); } - private String resourceVersion; - private String uid; - + protected void copyInstance(V1Preconditions instance) { - instance = (instance != null ? instance : new V1Preconditions()); + instance = instance != null ? instance : new V1Preconditions(); if (instance != null) { - this.withResourceVersion(instance.getResourceVersion()); - this.withUid(instance.getUid()); - } + this.withResourceVersion(instance.getResourceVersion()); + this.withUid(instance.getUid()); + } } - public String getResourceVersion() { - return this.resourceVersion; - } - - public A withResourceVersion(String resourceVersion) { - this.resourceVersion = resourceVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PreconditionsFluent that = (V1PreconditionsFluent) o; + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public boolean hasResourceVersion() { - return this.resourceVersion != null; + public String getResourceVersion() { + return this.resourceVersion; } public String getUid() { return this.uid; } - public A withUid(String uid) { - this.uid = uid; - return (A) this; + public boolean hasResourceVersion() { + return this.resourceVersion != null; } 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; - V1PreconditionsFluent that = (V1PreconditionsFluent) o; - if (!java.util.Objects.equals(resourceVersion, that.resourceVersion)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(resourceVersion, uid, super.hashCode()); + return Objects.hash(resourceVersion, uid); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (resourceVersion != null) { sb.append("resourceVersion:"); sb.append(resourceVersion + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } sb.append("}"); return sb.toString(); } - + public A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java index 1e060fe8cc..fbf0c20dee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PreferredSchedulingTermBuilder extends V1PreferredSchedulingTermFluent implements VisitableBuilder{ + + V1PreferredSchedulingTermFluent fluent; + public V1PreferredSchedulingTermBuilder() { this(new V1PreferredSchedulingTerm()); } @@ -10,17 +14,16 @@ public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluen this(fluent, new V1PreferredSchedulingTerm()); } - public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluent,V1PreferredSchedulingTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1PreferredSchedulingTermFluent fluent; + public V1PreferredSchedulingTermBuilder(V1PreferredSchedulingTermFluent fluent,V1PreferredSchedulingTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PreferredSchedulingTerm build() { V1PreferredSchedulingTerm buildable = new V1PreferredSchedulingTerm(); buildable.setPreference(fluent.buildPreference()); @@ -28,5 +31,4 @@ public V1PreferredSchedulingTerm build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java index c58150f25a..cc026e093f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java @@ -1,115 +1,139 @@ 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.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PreferredSchedulingTermFluent> extends BaseFluent{ +public class V1PreferredSchedulingTermFluent> extends BaseFluent{ + + private V1NodeSelectorTermBuilder preference; + private Integer weight; + public V1PreferredSchedulingTermFluent() { } public V1PreferredSchedulingTermFluent(V1PreferredSchedulingTerm instance) { this.copyInstance(instance); } - private V1NodeSelectorTermBuilder preference; - private Integer weight; - - protected void copyInstance(V1PreferredSchedulingTerm instance) { - instance = (instance != null ? instance : new V1PreferredSchedulingTerm()); - if (instance != null) { - this.withPreference(instance.getPreference()); - this.withWeight(instance.getWeight()); - } - } - + public V1NodeSelectorTerm buildPreference() { return this.preference != null ? this.preference.build() : null; } - public A withPreference(V1NodeSelectorTerm preference) { - this._visitables.remove("preference"); - if (preference != null) { - this.preference = new V1NodeSelectorTermBuilder(preference); - this._visitables.get("preference").add(this.preference); - } else { - this.preference = null; - this._visitables.get("preference").remove(this.preference); + protected void copyInstance(V1PreferredSchedulingTerm instance) { + instance = instance != null ? instance : new V1PreferredSchedulingTerm(); + if (instance != null) { + this.withPreference(instance.getPreference()); + this.withWeight(instance.getWeight()); } - return (A) this; - } - - public boolean hasPreference() { - return this.preference != null; } - public PreferenceNested withNewPreference() { - return new PreferenceNested(null); + public PreferenceNested editOrNewPreference() { + return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(new V1NodeSelectorTermBuilder().build())); } - public PreferenceNested withNewPreferenceLike(V1NodeSelectorTerm item) { - return new PreferenceNested(item); + public PreferenceNested editOrNewPreferenceLike(V1NodeSelectorTerm item) { + return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(item)); } public PreferenceNested editPreference() { - return withNewPreferenceLike(java.util.Optional.ofNullable(buildPreference()).orElse(null)); - } - - public PreferenceNested editOrNewPreference() { - return withNewPreferenceLike(java.util.Optional.ofNullable(buildPreference()).orElse(new V1NodeSelectorTermBuilder().build())); + return this.withNewPreferenceLike(Optional.ofNullable(this.buildPreference()).orElse(null)); } - public PreferenceNested editOrNewPreferenceLike(V1NodeSelectorTerm item) { - return withNewPreferenceLike(java.util.Optional.ofNullable(buildPreference()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PreferredSchedulingTermFluent that = (V1PreferredSchedulingTermFluent) o; + if (!(Objects.equals(preference, that.preference))) { + return false; + } + if (!(Objects.equals(weight, that.weight))) { + return false; + } + return true; } public Integer getWeight() { return this.weight; } - public A withWeight(Integer weight) { - this.weight = weight; - return (A) this; + public boolean hasPreference() { + return this.preference != null; } public boolean hasWeight() { return this.weight != 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; - V1PreferredSchedulingTermFluent that = (V1PreferredSchedulingTermFluent) o; - if (!java.util.Objects.equals(preference, that.preference)) return false; - if (!java.util.Objects.equals(weight, that.weight)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(preference, weight, super.hashCode()); + return Objects.hash(preference, weight); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (preference != null) { sb.append("preference:"); sb.append(preference + ","); } - if (weight != null) { sb.append("weight:"); sb.append(weight); } + if (!(preference == null)) { + sb.append("preference:"); + sb.append(preference); + sb.append(","); + } + if (!(weight == null)) { + sb.append("weight:"); + sb.append(weight); + } sb.append("}"); return sb.toString(); } + + public PreferenceNested withNewPreference() { + return new PreferenceNested(null); + } + + public PreferenceNested withNewPreferenceLike(V1NodeSelectorTerm item) { + return new PreferenceNested(item); + } + + public A withPreference(V1NodeSelectorTerm preference) { + this._visitables.remove("preference"); + if (preference != null) { + this.preference = new V1NodeSelectorTermBuilder(preference); + this._visitables.get("preference").add(this.preference); + } else { + this.preference = null; + this._visitables.get("preference").remove(this.preference); + } + return (A) this; + } + + public A withWeight(Integer weight) { + this.weight = weight; + return (A) this; + } public class PreferenceNested extends V1NodeSelectorTermFluent> implements Nested{ + + V1NodeSelectorTermBuilder builder; + PreferenceNested(V1NodeSelectorTerm item) { this.builder = new V1NodeSelectorTermBuilder(this, item); } - V1NodeSelectorTermBuilder builder; - + public N and() { return (N) V1PreferredSchedulingTermFluent.this.withPreference(builder.build()); } @@ -118,7 +142,5 @@ public N endPreference() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java index f22f6cb9b0..da74b11aad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityClassBuilder extends V1PriorityClassFluent implements VisitableBuilder{ + + V1PriorityClassFluent fluent; + public V1PriorityClassBuilder() { this(new V1PriorityClass()); } @@ -10,17 +14,16 @@ public V1PriorityClassBuilder(V1PriorityClassFluent fluent) { this(fluent, new V1PriorityClass()); } - public V1PriorityClassBuilder(V1PriorityClassFluent fluent,V1PriorityClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityClassBuilder(V1PriorityClass instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityClassFluent fluent; + public V1PriorityClassBuilder(V1PriorityClassFluent fluent,V1PriorityClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityClass build() { V1PriorityClass buildable = new V1PriorityClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +36,4 @@ public V1PriorityClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java index 2d0d87de06..eef31e2bbd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java @@ -1,24 +1,22 @@ 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.String; +import java.lang.Boolean; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; -import java.lang.Boolean; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityClassFluent> extends BaseFluent{ - public V1PriorityClassFluent() { - } - - public V1PriorityClassFluent(V1PriorityClass instance) { - this.copyInstance(instance); - } +public class V1PriorityClassFluent> extends BaseFluent{ + private String apiVersion; private String description; private Boolean globalDefault; @@ -26,180 +24,236 @@ public V1PriorityClassFluent(V1PriorityClass instance) { private V1ObjectMetaBuilder metadata; private String preemptionPolicy; private Integer value; + + public V1PriorityClassFluent() { + } + + public V1PriorityClassFluent(V1PriorityClass instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1PriorityClass instance) { - instance = (instance != null ? instance : new V1PriorityClass()); + instance = instance != null ? instance : new V1PriorityClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDescription(instance.getDescription()); - this.withGlobalDefault(instance.getGlobalDefault()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withPreemptionPolicy(instance.getPreemptionPolicy()); - this.withValue(instance.getValue()); - } + this.withApiVersion(instance.getApiVersion()); + this.withDescription(instance.getDescription()); + this.withGlobalDefault(instance.getGlobalDefault()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withPreemptionPolicy(instance.getPreemptionPolicy()); + this.withValue(instance.getValue()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public String getDescription() { - return this.description; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PriorityClassFluent that = (V1PriorityClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(description, that.description))) { + return false; + } + if (!(Objects.equals(globalDefault, that.globalDefault))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(preemptionPolicy, that.preemptionPolicy))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; } - public A withDescription(String description) { - this.description = description; - return (A) this; + public String getApiVersion() { + return this.apiVersion; } - public boolean hasDescription() { - return this.description != null; + public String getDescription() { + return this.description; } public Boolean getGlobalDefault() { return this.globalDefault; } - public A withGlobalDefault(Boolean globalDefault) { - this.globalDefault = globalDefault; - return (A) this; + public String getKind() { + return this.kind; } - public boolean hasGlobalDefault() { - return this.globalDefault != null; + public String getPreemptionPolicy() { + return this.preemptionPolicy; } - public String getKind() { - return this.kind; + public Integer getValue() { + return this.value; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } - public boolean hasKind() { - return this.kind != null; + public boolean hasDescription() { + return this.description != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasGlobalDefault() { + return this.globalDefault != 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 hasKind() { + return this.kind != null; } public boolean hasMetadata() { return this.metadata != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); - } - - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public boolean hasPreemptionPolicy() { + return this.preemptionPolicy != null; } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public boolean hasValue() { + return this.value != null; } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public int hashCode() { + return Objects.hash(apiVersion, description, globalDefault, kind, metadata, preemptionPolicy, value); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(description == null)) { + sb.append("description:"); + sb.append(description); + sb.append(","); + } + if (!(globalDefault == null)) { + sb.append("globalDefault:"); + sb.append(globalDefault); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(preemptionPolicy == null)) { + sb.append("preemptionPolicy:"); + sb.append(preemptionPolicy); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); } - public String getPreemptionPolicy() { - return this.preemptionPolicy; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public A withPreemptionPolicy(String preemptionPolicy) { - this.preemptionPolicy = preemptionPolicy; + public A withDescription(String description) { + this.description = description; return (A) this; } - public boolean hasPreemptionPolicy() { - return this.preemptionPolicy != null; + public A withGlobalDefault() { + return withGlobalDefault(true); } - public Integer getValue() { - return this.value; + public A withGlobalDefault(Boolean globalDefault) { + this.globalDefault = globalDefault; + return (A) this; } - public A withValue(Integer value) { - this.value = value; + public A withKind(String kind) { + this.kind = kind; return (A) this; } - public boolean hasValue() { - return this.value != 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 equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1PriorityClassFluent that = (V1PriorityClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(description, that.description)) return false; - if (!java.util.Objects.equals(globalDefault, that.globalDefault)) 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(preemptionPolicy, that.preemptionPolicy)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - return true; + public MetadataNested withNewMetadata() { + return new MetadataNested(null); } - public int hashCode() { - return java.util.Objects.hash(apiVersion, description, globalDefault, kind, metadata, preemptionPolicy, value, super.hashCode()); + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (description != null) { sb.append("description:"); sb.append(description + ","); } - if (globalDefault != null) { sb.append("globalDefault:"); sb.append(globalDefault + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (preemptionPolicy != null) { sb.append("preemptionPolicy:"); sb.append(preemptionPolicy + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } - sb.append("}"); - return sb.toString(); + public A withPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + return (A) this; } - public A withGlobalDefault() { - return withGlobalDefault(true); + public A withValue(Integer value) { + this.value = value; + return (A) this; } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1PriorityClassFluent.this.withMetadata(builder.build()); } @@ -208,7 +262,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java index f346dfb609..698f80b359 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityClassListBuilder extends V1PriorityClassListFluent implements VisitableBuilder{ + + V1PriorityClassListFluent fluent; + public V1PriorityClassListBuilder() { this(new V1PriorityClassList()); } @@ -10,17 +14,16 @@ public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent) { this(fluent, new V1PriorityClassList()); } - public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent,V1PriorityClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1PriorityClassListBuilder(V1PriorityClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1PriorityClassListFluent fluent; + public V1PriorityClassListBuilder(V1PriorityClassListFluent fluent,V1PriorityClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityClassList build() { V1PriorityClassList buildable = new V1PriorityClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1PriorityClassList build() { return buildable; } - } \ 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..76b0c2c5bd 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityClassListFluent> extends BaseFluent{ +public class V1PriorityClassListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1PriorityClassListFluent() { } public V1PriorityClassListFluent(V1PriorityClassList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1PriorityClassList instance) { - instance = (instance != null ? instance : new V1PriorityClassList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1PriorityClass item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1PriorityClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1PriorityClass item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1PriorityClass buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1PriorityClass buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { - if (this.items == null) return (A)this; - for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PriorityClass buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1PriorityClass item : items) {V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1PriorityClass buildMatchingItem(Predicate predicate) { + for (V1PriorityClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1PriorityClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1PriorityClassList instance) { + instance = instance != null ? instance : new V1PriorityClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1PriorityClass buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1PriorityClass buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PriorityClass buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PriorityClassListFluent that = (V1PriorityClassListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1PriorityClass buildMatchingItem(Predicate predicate) { - for (V1PriorityClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1PriorityClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1PriorityClass item : items) { + V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1PriorityClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1PriorityClass item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) { + public A withItems(V1PriorityClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1PriorityClass... items) return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1PriorityClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1PriorityClass 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1PriorityClassFluent> implements Nested{ - 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; - V1PriorityClassListFluent that = (V1PriorityClassListFluent) 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()); - } + V1PriorityClassBuilder builder; + int index; - 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 V1PriorityClassFluent> implements Nested{ ItemsNested(int index,V1PriorityClass item) { this.index = index; this.builder = new V1PriorityClassBuilder(this, item); } - V1PriorityClassBuilder builder; - int index; - + public N and() { - return (N) V1PriorityClassListFluent.this.setToItems(index,builder.build()); + return (N) V1PriorityClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PriorityClassListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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 index 263e15afce..cc11e72e16 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationBuilder extends V1PriorityLevelConfigurationFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationFluent fluent; + public V1PriorityLevelConfigurationBuilder() { this(new V1PriorityLevelConfiguration()); } @@ -10,17 +14,16 @@ public V1PriorityLevelConfigurationBuilder(V1PriorityLevelConfigurationFluent 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 V1PriorityLevelConfigurationBuilder(V1PriorityLevelConfigurationFluent fluent,V1PriorityLevelConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfiguration build() { V1PriorityLevelConfiguration buildable = new V1PriorityLevelConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1PriorityLevelConfiguration build() { 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 index 076f5482dc..c30e3de0ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationConditionBuilder extends V1PriorityLevelConfigurationConditionFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationConditionFluent fluent; + public V1PriorityLevelConfigurationConditionBuilder() { this(new V1PriorityLevelConfigurationCondition()); } @@ -10,17 +14,16 @@ public V1PriorityLevelConfigurationConditionBuilder(V1PriorityLevelConfiguration 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 V1PriorityLevelConfigurationConditionBuilder(V1PriorityLevelConfigurationConditionFluent fluent,V1PriorityLevelConfigurationCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfigurationCondition build() { V1PriorityLevelConfigurationCondition buildable = new V1PriorityLevelConfigurationCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -31,5 +34,4 @@ public V1PriorityLevelConfigurationCondition build() { 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 index 29727c2b97..b90849822d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java @@ -1,132 +1,170 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationConditionFluent> extends BaseFluent{ - public V1PriorityLevelConfigurationConditionFluent() { - } - - public V1PriorityLevelConfigurationConditionFluent(V1PriorityLevelConfigurationCondition instance) { - this.copyInstance(instance); - } +public class V1PriorityLevelConfigurationConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1PriorityLevelConfigurationConditionFluent() { + } + public V1PriorityLevelConfigurationConditionFluent(V1PriorityLevelConfigurationCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1PriorityLevelConfigurationCondition instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfigurationCondition()); + 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()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PriorityLevelConfigurationConditionFluent that = (V1PriorityLevelConfigurationConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getStatus() { + return this.status; } - public String getReason() { - return this.reason; + public String getType() { + return this.type; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - 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 A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withStatus(String status) { + this.status = status; + return (A) this; } - 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(); + public A withType(String type) { + this.type = type; + return (A) this; } - } \ 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 index 4b478d81bb..855d884cbf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1PriorityLevelConfigurationSpecBuilder spec; + private V1PriorityLevelConfigurationStatusBuilder status; + public V1PriorityLevelConfigurationFluent() { } public V1PriorityLevelConfigurationFluent(V1PriorityLevelConfiguration instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1PriorityLevelConfigurationSpecBuilder spec; - private V1PriorityLevelConfigurationStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1PriorityLevelConfigurationSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1PriorityLevelConfigurationStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1PriorityLevelConfiguration instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfiguration()); + 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()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1PriorityLevelConfigurationSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1PriorityLevelConfigurationSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1PriorityLevelConfigurationStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1PriorityLevelConfigurationStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PriorityLevelConfigurationFluent that = (V1PriorityLevelConfigurationFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1PriorityLevelConfigurationSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1PriorityLevelConfigurationSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1PriorityLevelConfigurationStatus item) { + return new StatusNested(item); } public A withSpec(V1PriorityLevelConfigurationSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1PriorityLevelConfigurationSpec 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) { @@ -155,65 +248,14 @@ public A withStatus(V1PriorityLevelConfigurationStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - 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()); - } + V1ObjectMetaBuilder builder; - 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()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1PriorityLevelConfigurationSpecFluent> implements Nested{ + + V1PriorityLevelConfigurationSpecBuilder builder; + SpecNested(V1PriorityLevelConfigurationSpec item) { this.builder = new V1PriorityLevelConfigurationSpecBuilder(this, item); } - V1PriorityLevelConfigurationSpecBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1PriorityLevelConfigurationStatusFluent> implements Nested{ + + V1PriorityLevelConfigurationStatusBuilder builder; + StatusNested(V1PriorityLevelConfigurationStatus item) { this.builder = new V1PriorityLevelConfigurationStatusBuilder(this, item); } - V1PriorityLevelConfigurationStatusBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ 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 index 62d1f1ce04..63c00f4379 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationListBuilder extends V1PriorityLevelConfigurationListFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationListFluent fluent; + public V1PriorityLevelConfigurationListBuilder() { this(new V1PriorityLevelConfigurationList()); } @@ -10,17 +14,16 @@ public V1PriorityLevelConfigurationListBuilder(V1PriorityLevelConfigurationListF 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 V1PriorityLevelConfigurationListBuilder(V1PriorityLevelConfigurationListFluent fluent,V1PriorityLevelConfigurationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfigurationList build() { V1PriorityLevelConfigurationList buildable = new V1PriorityLevelConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1PriorityLevelConfigurationList build() { 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 index 2561e9a9f0..199f612e5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationListFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + 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 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 String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1PriorityLevelConfiguration item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(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 addToItems(int index,V1PriorityLevelConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} + 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(index, builder); items.add(index, builder);} - return (A)this; + 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").set(index, builder); items.set(index, builder);} - return (A)this; + public V1PriorityLevelConfiguration buildFirstItem() { + return this.items.get(0).build(); } - 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 V1PriorityLevelConfiguration buildItem(int index) { + return this.items.get(index).build(); } - 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 List buildItems() { + return this.items != null ? build(items) : null; } - 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 V1PriorityLevelConfiguration buildLastItem() { + return this.items.get(items.size() - 1).build(); } - 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 V1PriorityLevelConfiguration buildMatchingItem(Predicate predicate) { + for (V1PriorityLevelConfigurationBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1PriorityLevelConfiguration buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1PriorityLevelConfiguration buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1PriorityLevelConfiguration buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PriorityLevelConfigurationListFluent that = (V1PriorityLevelConfigurationListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1PriorityLevelConfiguration buildMatchingItem(Predicate predicate) { - for (V1PriorityLevelConfigurationBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate pr return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1PriorityLevelConfiguration item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1PriorityLevelConfiguration... items) { + public A withItems(V1PriorityLevelConfiguration... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1PriorityLevelConfigurat 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1PriorityLevelConfigurationFluent> implements Nested{ - 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()); - } + V1PriorityLevelConfigurationBuilder builder; + int index; - 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()); + return (N) V1PriorityLevelConfigurationListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ 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 index 6391dff9f3..dda9d7338e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationReferenceBuilder extends V1PriorityLevelConfigurationReferenceFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationReferenceFluent fluent; + public V1PriorityLevelConfigurationReferenceBuilder() { this(new V1PriorityLevelConfigurationReference()); } @@ -10,22 +14,20 @@ public V1PriorityLevelConfigurationReferenceBuilder(V1PriorityLevelConfiguration 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 V1PriorityLevelConfigurationReferenceBuilder(V1PriorityLevelConfigurationReferenceFluent fluent,V1PriorityLevelConfigurationReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index 4425474dc4..95f3367060 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationReferenceFluent> extends BaseFluent{ + + private String name; + public V1PriorityLevelConfigurationReferenceFluent() { } public V1PriorityLevelConfigurationReferenceFluent(V1PriorityLevelConfigurationReference instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1PriorityLevelConfigurationReference instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfigurationReference()); + instance = instance != null ? instance : new V1PriorityLevelConfigurationReference(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } - public String getName() { - return this.name; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PriorityLevelConfigurationReferenceFluent that = (V1PriorityLevelConfigurationReferenceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getName() { + return this.name; } 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()); + return Objects.hash(name); } 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); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ 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 index 1e7b626fb9..06071e271c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationSpecBuilder extends V1PriorityLevelConfigurationSpecFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationSpecFluent fluent; + public V1PriorityLevelConfigurationSpecBuilder() { this(new V1PriorityLevelConfigurationSpec()); } @@ -10,17 +14,16 @@ public V1PriorityLevelConfigurationSpecBuilder(V1PriorityLevelConfigurationSpecF 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 V1PriorityLevelConfigurationSpecBuilder(V1PriorityLevelConfigurationSpecFluent fluent,V1PriorityLevelConfigurationSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1PriorityLevelConfigurationSpec build() { V1PriorityLevelConfigurationSpec buildable = new V1PriorityLevelConfigurationSpec(); buildable.setExempt(fluent.buildExempt()); @@ -29,5 +32,4 @@ public V1PriorityLevelConfigurationSpec build() { 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 index a1cf2e5210..7f111b3360 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java @@ -1,77 +1,146 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationSpecFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationSpecFluent> extends BaseFluent{ + + private V1ExemptPriorityLevelConfigurationBuilder exempt; + private V1LimitedPriorityLevelConfigurationBuilder limited; + private String type; + public V1PriorityLevelConfigurationSpecFluent() { } public V1PriorityLevelConfigurationSpecFluent(V1PriorityLevelConfigurationSpec instance) { this.copyInstance(instance); } - private V1ExemptPriorityLevelConfigurationBuilder exempt; - private V1LimitedPriorityLevelConfigurationBuilder limited; - private String type; + + public V1ExemptPriorityLevelConfiguration buildExempt() { + return this.exempt != null ? this.exempt.build() : null; + } + + public V1LimitedPriorityLevelConfiguration buildLimited() { + return this.limited != null ? this.limited.build() : null; + } protected void copyInstance(V1PriorityLevelConfigurationSpec instance) { - instance = (instance != null ? instance : new V1PriorityLevelConfigurationSpec()); + instance = instance != null ? instance : new V1PriorityLevelConfigurationSpec(); if (instance != null) { - this.withExempt(instance.getExempt()); - this.withLimited(instance.getLimited()); - this.withType(instance.getType()); - } + this.withExempt(instance.getExempt()); + this.withLimited(instance.getLimited()); + this.withType(instance.getType()); + } } - public V1ExemptPriorityLevelConfiguration buildExempt() { - return this.exempt != null ? this.exempt.build() : null; + public ExemptNested editExempt() { + return this.withNewExemptLike(Optional.ofNullable(this.buildExempt()).orElse(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); + public LimitedNested editLimited() { + return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(null)); + } + + public ExemptNested editOrNewExempt() { + return this.withNewExemptLike(Optional.ofNullable(this.buildExempt()).orElse(new V1ExemptPriorityLevelConfigurationBuilder().build())); + } + + public ExemptNested editOrNewExemptLike(V1ExemptPriorityLevelConfiguration item) { + return this.withNewExemptLike(Optional.ofNullable(this.buildExempt()).orElse(item)); + } + + public LimitedNested editOrNewLimited() { + return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(new V1LimitedPriorityLevelConfigurationBuilder().build())); + } + + public LimitedNested editOrNewLimitedLike(V1LimitedPriorityLevelConfiguration item) { + return this.withNewLimitedLike(Optional.ofNullable(this.buildLimited()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PriorityLevelConfigurationSpecFluent that = (V1PriorityLevelConfigurationSpecFluent) o; + if (!(Objects.equals(exempt, that.exempt))) { + return false; + } + if (!(Objects.equals(limited, that.limited))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasExempt() { - return this.exempt != null; + public String getType() { + return this.type; } - public ExemptNested withNewExempt() { - return new ExemptNested(null); + public boolean hasExempt() { + return this.exempt != null; } - public ExemptNested withNewExemptLike(V1ExemptPriorityLevelConfiguration item) { - return new ExemptNested(item); + public boolean hasLimited() { + return this.limited != null; } - public ExemptNested editExempt() { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(null)); + public boolean hasType() { + return this.type != null; } - public ExemptNested editOrNewExempt() { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(new V1ExemptPriorityLevelConfigurationBuilder().build())); + public int hashCode() { + return Objects.hash(exempt, limited, type); } - public ExemptNested editOrNewExemptLike(V1ExemptPriorityLevelConfiguration item) { - return withNewExemptLike(java.util.Optional.ofNullable(buildExempt()).orElse(item)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(exempt == null)) { + sb.append("exempt:"); + sb.append(exempt); + sb.append(","); + } + if (!(limited == null)) { + sb.append("limited:"); + sb.append(limited); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public V1LimitedPriorityLevelConfiguration buildLimited() { - return this.limited != null ? this.limited.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 A withLimited(V1LimitedPriorityLevelConfiguration limited) { @@ -86,8 +155,12 @@ public A withLimited(V1LimitedPriorityLevelConfiguration limited) { return (A) this; } - public boolean hasLimited() { - return this.limited != null; + public ExemptNested withNewExempt() { + return new ExemptNested(null); + } + + public ExemptNested withNewExemptLike(V1ExemptPriorityLevelConfiguration item) { + return new ExemptNested(item); } public LimitedNested withNewLimited() { @@ -98,61 +171,18 @@ public LimitedNested withNewLimitedLike(V1LimitedPriorityLevelConfiguration i 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 class ExemptNested extends V1ExemptPriorityLevelConfigurationFluent> implements Nested{ - 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()); - } + V1ExemptPriorityLevelConfigurationBuilder builder; - 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()); } @@ -161,14 +191,15 @@ public N endExempt() { return and(); } - } public class LimitedNested extends V1LimitedPriorityLevelConfigurationFluent> implements Nested{ + + V1LimitedPriorityLevelConfigurationBuilder builder; + LimitedNested(V1LimitedPriorityLevelConfiguration item) { this.builder = new V1LimitedPriorityLevelConfigurationBuilder(this, item); } - V1LimitedPriorityLevelConfigurationBuilder builder; - + public N and() { return (N) V1PriorityLevelConfigurationSpecFluent.this.withLimited(builder.build()); } @@ -177,7 +208,5 @@ 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 index 33ddf57bb2..f66cee74e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1PriorityLevelConfigurationStatusBuilder extends V1PriorityLevelConfigurationStatusFluent implements VisitableBuilder{ + + V1PriorityLevelConfigurationStatusFluent fluent; + public V1PriorityLevelConfigurationStatusBuilder() { this(new V1PriorityLevelConfigurationStatus()); } @@ -10,22 +14,20 @@ public V1PriorityLevelConfigurationStatusBuilder(V1PriorityLevelConfigurationSta 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 V1PriorityLevelConfigurationStatusBuilder(V1PriorityLevelConfigurationStatusFluent fluent,V1PriorityLevelConfigurationStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index 7464eebd17..b0ca19a7e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java @@ -1,93 +1,89 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1PriorityLevelConfigurationStatusFluent> extends BaseFluent{ +public class V1PriorityLevelConfigurationStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + 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(index, 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").set(index, 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; + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - 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 ConditionsNested addNewConditionLike(V1PriorityLevelConfigurationCondition item) { + return new ConditionsNested(-1, item); } - 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(); - } + public A addToConditions(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; + return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + 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 V1PriorityLevelConfigurationCondition buildCondition(int index) { return this.conditions.get(index).build(); } + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + public V1PriorityLevelConfigurationCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -105,6 +101,70 @@ public V1PriorityLevelConfigurationCondition buildMatchingCondition(Predicate editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PriorityLevelConfigurationStatusFluent that = (V1PriorityLevelConfigurationStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + public boolean hasMatchingCondition(Predicate predicate) { for (V1PriorityLevelConfigurationConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -114,6 +174,80 @@ public boolean hasMatchingCondition(Predicate 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1PriorityLevelConfigurationCondition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + } + sb.append("}"); + return sb.toString(); + } + public A withConditions(List conditions) { if (this.conditions != null) { this._visitables.get("conditions").clear(); @@ -129,7 +263,7 @@ public A withConditions(List conditions) return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1PriorityLevelConfigurationCondition... conditions) { + public A withConditions(V1PriorityLevelConfigurationCondition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -141,85 +275,23 @@ public A withConditions(io.kubernetes.client.openapi.models.V1PriorityLevelConfi } return (A) this; } + public class ConditionsNested extends V1PriorityLevelConfigurationConditionFluent> implements Nested{ - 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()); + 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/V1ProbeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java index cfdb3f23d3..a72c8f530a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ProbeBuilder extends V1ProbeFluent implements VisitableBuilder{ + + V1ProbeFluent fluent; + public V1ProbeBuilder() { this(new V1Probe()); } @@ -10,17 +14,16 @@ public V1ProbeBuilder(V1ProbeFluent fluent) { this(fluent, new V1Probe()); } - public V1ProbeBuilder(V1ProbeFluent fluent,V1Probe instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ProbeBuilder(V1Probe instance) { this.fluent = this; this.copyInstance(instance); } - V1ProbeFluent fluent; + public V1ProbeBuilder(V1ProbeFluent fluent,V1Probe instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Probe build() { V1Probe buildable = new V1Probe(); buildable.setExec(fluent.buildExec()); @@ -36,5 +39,4 @@ public V1Probe build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java index 76048edeec..c5c36077ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java @@ -1,24 +1,22 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Integer; import java.lang.Long; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ProbeFluent> extends BaseFluent{ - public V1ProbeFluent() { - } - - public V1ProbeFluent(V1Probe instance) { - this.copyInstance(instance); - } +public class V1ProbeFluent> extends BaseFluent{ + private V1ExecActionBuilder exec; private Integer failureThreshold; private V1GRPCActionBuilder grpc; @@ -29,305 +27,379 @@ public V1ProbeFluent(V1Probe instance) { private V1TCPSocketActionBuilder tcpSocket; private Long terminationGracePeriodSeconds; private Integer timeoutSeconds; - - protected void copyInstance(V1Probe instance) { - instance = (instance != null ? instance : new V1Probe()); - if (instance != null) { - this.withExec(instance.getExec()); - this.withFailureThreshold(instance.getFailureThreshold()); - this.withGrpc(instance.getGrpc()); - this.withHttpGet(instance.getHttpGet()); - this.withInitialDelaySeconds(instance.getInitialDelaySeconds()); - this.withPeriodSeconds(instance.getPeriodSeconds()); - this.withSuccessThreshold(instance.getSuccessThreshold()); - this.withTcpSocket(instance.getTcpSocket()); - this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + + public V1ProbeFluent() { } + public V1ProbeFluent(V1Probe instance) { + this.copyInstance(instance); + } + public V1ExecAction buildExec() { return this.exec != null ? this.exec.build() : null; } - public A withExec(V1ExecAction exec) { - this._visitables.remove("exec"); - if (exec != null) { - this.exec = new V1ExecActionBuilder(exec); - this._visitables.get("exec").add(this.exec); - } else { - this.exec = null; - this._visitables.get("exec").remove(this.exec); - } - return (A) this; + public V1GRPCAction buildGrpc() { + return this.grpc != null ? this.grpc.build() : null; } - public boolean hasExec() { - return this.exec != null; + public V1HTTPGetAction buildHttpGet() { + return this.httpGet != null ? this.httpGet.build() : null; } - public ExecNested withNewExec() { - return new ExecNested(null); + public V1TCPSocketAction buildTcpSocket() { + return this.tcpSocket != null ? this.tcpSocket.build() : null; } - public ExecNested withNewExecLike(V1ExecAction item) { - return new ExecNested(item); + protected void copyInstance(V1Probe instance) { + instance = instance != null ? instance : new V1Probe(); + if (instance != null) { + this.withExec(instance.getExec()); + this.withFailureThreshold(instance.getFailureThreshold()); + this.withGrpc(instance.getGrpc()); + this.withHttpGet(instance.getHttpGet()); + this.withInitialDelaySeconds(instance.getInitialDelaySeconds()); + this.withPeriodSeconds(instance.getPeriodSeconds()); + this.withSuccessThreshold(instance.getSuccessThreshold()); + this.withTcpSocket(instance.getTcpSocket()); + this.withTerminationGracePeriodSeconds(instance.getTerminationGracePeriodSeconds()); + this.withTimeoutSeconds(instance.getTimeoutSeconds()); + } } public ExecNested editExec() { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(null)); + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(null)); + } + + public GrpcNested editGrpc() { + return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(null)); + } + + public HttpGetNested editHttpGet() { + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(null)); } public ExecNested editOrNewExec() { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(new V1ExecActionBuilder().build())); + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(new V1ExecActionBuilder().build())); } public ExecNested editOrNewExecLike(V1ExecAction item) { - return withNewExecLike(java.util.Optional.ofNullable(buildExec()).orElse(item)); + return this.withNewExecLike(Optional.ofNullable(this.buildExec()).orElse(item)); } - public Integer getFailureThreshold() { - return this.failureThreshold; + public GrpcNested editOrNewGrpc() { + return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(new V1GRPCActionBuilder().build())); } - public A withFailureThreshold(Integer failureThreshold) { - this.failureThreshold = failureThreshold; - return (A) this; + public GrpcNested editOrNewGrpcLike(V1GRPCAction item) { + return this.withNewGrpcLike(Optional.ofNullable(this.buildGrpc()).orElse(item)); } - public boolean hasFailureThreshold() { - return this.failureThreshold != null; + public HttpGetNested editOrNewHttpGet() { + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); } - public V1GRPCAction buildGrpc() { - return this.grpc != null ? this.grpc.build() : null; + public HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { + return this.withNewHttpGetLike(Optional.ofNullable(this.buildHttpGet()).orElse(item)); } - public A withGrpc(V1GRPCAction grpc) { - this._visitables.remove("grpc"); - if (grpc != null) { - this.grpc = new V1GRPCActionBuilder(grpc); - this._visitables.get("grpc").add(this.grpc); - } else { - this.grpc = null; - this._visitables.get("grpc").remove(this.grpc); - } - return (A) this; + public TcpSocketNested editOrNewTcpSocket() { + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); } - public boolean hasGrpc() { - return this.grpc != null; + public TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(item)); } - public GrpcNested withNewGrpc() { - return new GrpcNested(null); + public TcpSocketNested editTcpSocket() { + return this.withNewTcpSocketLike(Optional.ofNullable(this.buildTcpSocket()).orElse(null)); } - public GrpcNested withNewGrpcLike(V1GRPCAction item) { - return new GrpcNested(item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ProbeFluent that = (V1ProbeFluent) o; + if (!(Objects.equals(exec, that.exec))) { + return false; + } + if (!(Objects.equals(failureThreshold, that.failureThreshold))) { + return false; + } + if (!(Objects.equals(grpc, that.grpc))) { + return false; + } + if (!(Objects.equals(httpGet, that.httpGet))) { + return false; + } + if (!(Objects.equals(initialDelaySeconds, that.initialDelaySeconds))) { + return false; + } + if (!(Objects.equals(periodSeconds, that.periodSeconds))) { + return false; + } + if (!(Objects.equals(successThreshold, that.successThreshold))) { + return false; + } + if (!(Objects.equals(tcpSocket, that.tcpSocket))) { + return false; + } + if (!(Objects.equals(terminationGracePeriodSeconds, that.terminationGracePeriodSeconds))) { + return false; + } + if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { + return false; + } + return true; } - public GrpcNested editGrpc() { - return withNewGrpcLike(java.util.Optional.ofNullable(buildGrpc()).orElse(null)); + public Integer getFailureThreshold() { + return this.failureThreshold; } - public GrpcNested editOrNewGrpc() { - return withNewGrpcLike(java.util.Optional.ofNullable(buildGrpc()).orElse(new V1GRPCActionBuilder().build())); + public Integer getInitialDelaySeconds() { + return this.initialDelaySeconds; } - public GrpcNested editOrNewGrpcLike(V1GRPCAction item) { - return withNewGrpcLike(java.util.Optional.ofNullable(buildGrpc()).orElse(item)); + public Integer getPeriodSeconds() { + return this.periodSeconds; } - public V1HTTPGetAction buildHttpGet() { - return this.httpGet != null ? this.httpGet.build() : null; + public Integer getSuccessThreshold() { + return this.successThreshold; } - public A withHttpGet(V1HTTPGetAction httpGet) { - this._visitables.remove("httpGet"); - if (httpGet != null) { - this.httpGet = new V1HTTPGetActionBuilder(httpGet); - this._visitables.get("httpGet").add(this.httpGet); - } else { - this.httpGet = null; - this._visitables.get("httpGet").remove(this.httpGet); - } - return (A) this; + public Long getTerminationGracePeriodSeconds() { + return this.terminationGracePeriodSeconds; } - public boolean hasHttpGet() { - return this.httpGet != null; + public Integer getTimeoutSeconds() { + return this.timeoutSeconds; } - public HttpGetNested withNewHttpGet() { - return new HttpGetNested(null); + public boolean hasExec() { + return this.exec != null; } - public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { - return new HttpGetNested(item); + public boolean hasFailureThreshold() { + return this.failureThreshold != null; } - public HttpGetNested editHttpGet() { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(null)); + public boolean hasGrpc() { + return this.grpc != null; } - public HttpGetNested editOrNewHttpGet() { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(new V1HTTPGetActionBuilder().build())); + public boolean hasHttpGet() { + return this.httpGet != null; } - public HttpGetNested editOrNewHttpGetLike(V1HTTPGetAction item) { - return withNewHttpGetLike(java.util.Optional.ofNullable(buildHttpGet()).orElse(item)); + public boolean hasInitialDelaySeconds() { + return this.initialDelaySeconds != null; } - public Integer getInitialDelaySeconds() { - return this.initialDelaySeconds; + public boolean hasPeriodSeconds() { + return this.periodSeconds != null; } - public A withInitialDelaySeconds(Integer initialDelaySeconds) { - this.initialDelaySeconds = initialDelaySeconds; - return (A) this; + public boolean hasSuccessThreshold() { + return this.successThreshold != null; } - public boolean hasInitialDelaySeconds() { - return this.initialDelaySeconds != null; + public boolean hasTcpSocket() { + return this.tcpSocket != null; } - public Integer getPeriodSeconds() { - return this.periodSeconds; + public boolean hasTerminationGracePeriodSeconds() { + return this.terminationGracePeriodSeconds != null; } - public A withPeriodSeconds(Integer periodSeconds) { - this.periodSeconds = periodSeconds; - return (A) this; + public boolean hasTimeoutSeconds() { + return this.timeoutSeconds != null; } - public boolean hasPeriodSeconds() { - return this.periodSeconds != null; + public int hashCode() { + return Objects.hash(exec, failureThreshold, grpc, httpGet, initialDelaySeconds, periodSeconds, successThreshold, tcpSocket, terminationGracePeriodSeconds, timeoutSeconds); } - public Integer getSuccessThreshold() { - return this.successThreshold; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(exec == null)) { + sb.append("exec:"); + sb.append(exec); + sb.append(","); + } + if (!(failureThreshold == null)) { + sb.append("failureThreshold:"); + sb.append(failureThreshold); + sb.append(","); + } + if (!(grpc == null)) { + sb.append("grpc:"); + sb.append(grpc); + sb.append(","); + } + if (!(httpGet == null)) { + sb.append("httpGet:"); + sb.append(httpGet); + sb.append(","); + } + if (!(initialDelaySeconds == null)) { + sb.append("initialDelaySeconds:"); + sb.append(initialDelaySeconds); + sb.append(","); + } + if (!(periodSeconds == null)) { + sb.append("periodSeconds:"); + sb.append(periodSeconds); + sb.append(","); + } + if (!(successThreshold == null)) { + sb.append("successThreshold:"); + sb.append(successThreshold); + sb.append(","); + } + if (!(tcpSocket == null)) { + sb.append("tcpSocket:"); + sb.append(tcpSocket); + sb.append(","); + } + if (!(terminationGracePeriodSeconds == null)) { + sb.append("terminationGracePeriodSeconds:"); + sb.append(terminationGracePeriodSeconds); + sb.append(","); + } + if (!(timeoutSeconds == null)) { + sb.append("timeoutSeconds:"); + sb.append(timeoutSeconds); + } + sb.append("}"); + return sb.toString(); } - public A withSuccessThreshold(Integer successThreshold) { - this.successThreshold = successThreshold; + public A withExec(V1ExecAction exec) { + this._visitables.remove("exec"); + if (exec != null) { + this.exec = new V1ExecActionBuilder(exec); + this._visitables.get("exec").add(this.exec); + } else { + this.exec = null; + this._visitables.get("exec").remove(this.exec); + } return (A) this; } - public boolean hasSuccessThreshold() { - return this.successThreshold != null; - } - - public V1TCPSocketAction buildTcpSocket() { - return this.tcpSocket != null ? this.tcpSocket.build() : null; + public A withFailureThreshold(Integer failureThreshold) { + this.failureThreshold = failureThreshold; + return (A) this; } - public A withTcpSocket(V1TCPSocketAction tcpSocket) { - this._visitables.remove("tcpSocket"); - if (tcpSocket != null) { - this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); - this._visitables.get("tcpSocket").add(this.tcpSocket); + public A withGrpc(V1GRPCAction grpc) { + this._visitables.remove("grpc"); + if (grpc != null) { + this.grpc = new V1GRPCActionBuilder(grpc); + this._visitables.get("grpc").add(this.grpc); } else { - this.tcpSocket = null; - this._visitables.get("tcpSocket").remove(this.tcpSocket); + this.grpc = null; + this._visitables.get("grpc").remove(this.grpc); } return (A) this; } - public boolean hasTcpSocket() { - return this.tcpSocket != null; + public A withHttpGet(V1HTTPGetAction httpGet) { + this._visitables.remove("httpGet"); + if (httpGet != null) { + this.httpGet = new V1HTTPGetActionBuilder(httpGet); + this._visitables.get("httpGet").add(this.httpGet); + } else { + this.httpGet = null; + this._visitables.get("httpGet").remove(this.httpGet); + } + return (A) this; } - public TcpSocketNested withNewTcpSocket() { - return new TcpSocketNested(null); + public A withInitialDelaySeconds(Integer initialDelaySeconds) { + this.initialDelaySeconds = initialDelaySeconds; + return (A) this; } - public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { - return new TcpSocketNested(item); + public ExecNested withNewExec() { + return new ExecNested(null); } - public TcpSocketNested editTcpSocket() { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(null)); + public ExecNested withNewExecLike(V1ExecAction item) { + return new ExecNested(item); } - public TcpSocketNested editOrNewTcpSocket() { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(new V1TCPSocketActionBuilder().build())); + public GrpcNested withNewGrpc() { + return new GrpcNested(null); } - public TcpSocketNested editOrNewTcpSocketLike(V1TCPSocketAction item) { - return withNewTcpSocketLike(java.util.Optional.ofNullable(buildTcpSocket()).orElse(item)); + public GrpcNested withNewGrpcLike(V1GRPCAction item) { + return new GrpcNested(item); } - public Long getTerminationGracePeriodSeconds() { - return this.terminationGracePeriodSeconds; + public HttpGetNested withNewHttpGet() { + return new HttpGetNested(null); } - public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { - this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; - return (A) this; + public HttpGetNested withNewHttpGetLike(V1HTTPGetAction item) { + return new HttpGetNested(item); } - public boolean hasTerminationGracePeriodSeconds() { - return this.terminationGracePeriodSeconds != null; + public TcpSocketNested withNewTcpSocket() { + return new TcpSocketNested(null); } - public Integer getTimeoutSeconds() { - return this.timeoutSeconds; + public TcpSocketNested withNewTcpSocketLike(V1TCPSocketAction item) { + return new TcpSocketNested(item); } - public A withTimeoutSeconds(Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public A withPeriodSeconds(Integer periodSeconds) { + this.periodSeconds = periodSeconds; return (A) this; } - public boolean hasTimeoutSeconds() { - return this.timeoutSeconds != null; + public A withSuccessThreshold(Integer successThreshold) { + this.successThreshold = successThreshold; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ProbeFluent that = (V1ProbeFluent) o; - if (!java.util.Objects.equals(exec, that.exec)) return false; - if (!java.util.Objects.equals(failureThreshold, that.failureThreshold)) return false; - if (!java.util.Objects.equals(grpc, that.grpc)) return false; - if (!java.util.Objects.equals(httpGet, that.httpGet)) return false; - if (!java.util.Objects.equals(initialDelaySeconds, that.initialDelaySeconds)) return false; - if (!java.util.Objects.equals(periodSeconds, that.periodSeconds)) return false; - if (!java.util.Objects.equals(successThreshold, that.successThreshold)) return false; - if (!java.util.Objects.equals(tcpSocket, that.tcpSocket)) return false; - if (!java.util.Objects.equals(terminationGracePeriodSeconds, that.terminationGracePeriodSeconds)) return false; - if (!java.util.Objects.equals(timeoutSeconds, that.timeoutSeconds)) return false; - return true; + public A withTcpSocket(V1TCPSocketAction tcpSocket) { + this._visitables.remove("tcpSocket"); + if (tcpSocket != null) { + this.tcpSocket = new V1TCPSocketActionBuilder(tcpSocket); + this._visitables.get("tcpSocket").add(this.tcpSocket); + } else { + this.tcpSocket = null; + this._visitables.get("tcpSocket").remove(this.tcpSocket); + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(exec, failureThreshold, grpc, httpGet, initialDelaySeconds, periodSeconds, successThreshold, tcpSocket, terminationGracePeriodSeconds, timeoutSeconds, super.hashCode()); + public A withTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (exec != null) { sb.append("exec:"); sb.append(exec + ","); } - if (failureThreshold != null) { sb.append("failureThreshold:"); sb.append(failureThreshold + ","); } - if (grpc != null) { sb.append("grpc:"); sb.append(grpc + ","); } - if (httpGet != null) { sb.append("httpGet:"); sb.append(httpGet + ","); } - if (initialDelaySeconds != null) { sb.append("initialDelaySeconds:"); sb.append(initialDelaySeconds + ","); } - if (periodSeconds != null) { sb.append("periodSeconds:"); sb.append(periodSeconds + ","); } - if (successThreshold != null) { sb.append("successThreshold:"); sb.append(successThreshold + ","); } - if (tcpSocket != null) { sb.append("tcpSocket:"); sb.append(tcpSocket + ","); } - if (terminationGracePeriodSeconds != null) { sb.append("terminationGracePeriodSeconds:"); sb.append(terminationGracePeriodSeconds + ","); } - if (timeoutSeconds != null) { sb.append("timeoutSeconds:"); sb.append(timeoutSeconds); } - sb.append("}"); - return sb.toString(); + public A withTimeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return (A) this; } public class ExecNested extends V1ExecActionFluent> implements Nested{ + + V1ExecActionBuilder builder; + ExecNested(V1ExecAction item) { this.builder = new V1ExecActionBuilder(this, item); } - V1ExecActionBuilder builder; - + public N and() { return (N) V1ProbeFluent.this.withExec(builder.build()); } @@ -336,14 +408,15 @@ public N endExec() { return and(); } - } public class GrpcNested extends V1GRPCActionFluent> implements Nested{ + + V1GRPCActionBuilder builder; + GrpcNested(V1GRPCAction item) { this.builder = new V1GRPCActionBuilder(this, item); } - V1GRPCActionBuilder builder; - + public N and() { return (N) V1ProbeFluent.this.withGrpc(builder.build()); } @@ -352,14 +425,15 @@ public N endGrpc() { return and(); } - } public class HttpGetNested extends V1HTTPGetActionFluent> implements Nested{ + + V1HTTPGetActionBuilder builder; + HttpGetNested(V1HTTPGetAction item) { this.builder = new V1HTTPGetActionBuilder(this, item); } - V1HTTPGetActionBuilder builder; - + public N and() { return (N) V1ProbeFluent.this.withHttpGet(builder.build()); } @@ -368,14 +442,15 @@ public N endHttpGet() { return and(); } - } public class TcpSocketNested extends V1TCPSocketActionFluent> implements Nested{ + + V1TCPSocketActionBuilder builder; + TcpSocketNested(V1TCPSocketAction item) { this.builder = new V1TCPSocketActionBuilder(this, item); } - V1TCPSocketActionBuilder builder; - + public N and() { return (N) V1ProbeFluent.this.withTcpSocket(builder.build()); } @@ -384,7 +459,5 @@ public N endTcpSocket() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java index 57d5a3cc42..71df96fd21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ProjectedVolumeSourceBuilder extends V1ProjectedVolumeSourceFluent implements VisitableBuilder{ + + V1ProjectedVolumeSourceFluent fluent; + public V1ProjectedVolumeSourceBuilder() { this(new V1ProjectedVolumeSource()); } @@ -10,17 +14,16 @@ public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent) { this(fluent, new V1ProjectedVolumeSource()); } - public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent,V1ProjectedVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ProjectedVolumeSourceFluent fluent; + public V1ProjectedVolumeSourceBuilder(V1ProjectedVolumeSourceFluent fluent,V1ProjectedVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ProjectedVolumeSource build() { V1ProjectedVolumeSource buildable = new V1ProjectedVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -28,5 +31,4 @@ public V1ProjectedVolumeSource build() { return buildable; } - } \ 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..85fad6396f 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 @@ -1,124 +1,178 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ProjectedVolumeSourceFluent> extends BaseFluent{ +public class V1ProjectedVolumeSourceFluent> extends BaseFluent{ + + private Integer defaultMode; + private ArrayList sources; + public V1ProjectedVolumeSourceFluent() { } public V1ProjectedVolumeSourceFluent(V1ProjectedVolumeSource instance) { this.copyInstance(instance); } - private Integer defaultMode; - private ArrayList sources; - - protected void copyInstance(V1ProjectedVolumeSource instance) { - instance = (instance != null ? instance : new V1ProjectedVolumeSource()); - if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withSources(instance.getSources()); - } + + public A addAllToSources(Collection items) { + if (this.sources == null) { + this.sources = new ArrayList(); + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").add(builder); + this.sources.add(builder); + } + return (A) this; } - public Integer getDefaultMode() { - return this.defaultMode; + public SourcesNested addNewSource() { + return new SourcesNested(-1, null); } - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; - return (A) this; + public SourcesNested addNewSourceLike(V1VolumeProjection item) { + return new SourcesNested(-1, item); } - public boolean hasDefaultMode() { - return this.defaultMode != null; + public A addToSources(V1VolumeProjection... items) { + if (this.sources == null) { + this.sources = new ArrayList(); + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").add(builder); + this.sources.add(builder); + } + return (A) this; } public A addToSources(int index,V1VolumeProjection item) { - if (this.sources == null) {this.sources = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1VolumeProjection buildFirstSource() { + return this.sources.get(0).build(); } - public A addToSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items) { - if (this.sources == null) {this.sources = new ArrayList();} - for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").add(builder);this.sources.add(builder);} return (A)this; + public V1VolumeProjection buildLastSource() { + return this.sources.get(sources.size() - 1).build(); } - public A addAllToSources(Collection items) { - if (this.sources == null) {this.sources = new ArrayList();} - for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").add(builder);this.sources.add(builder);} return (A)this; + public V1VolumeProjection buildMatchingSource(Predicate predicate) { + for (V1VolumeProjectionBuilder item : sources) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A removeFromSources(io.kubernetes.client.openapi.models.V1VolumeProjection... items) { - if (this.sources == null) return (A)this; - for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").remove(builder); this.sources.remove(builder);} return (A)this; + public V1VolumeProjection buildSource(int index) { + return this.sources.get(index).build(); } - public A removeAllFromSources(Collection items) { - if (this.sources == null) return (A)this; - for (V1VolumeProjection item : items) {V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item);_visitables.get("sources").remove(builder); this.sources.remove(builder);} return (A)this; + public List buildSources() { + return this.sources != null ? build(sources) : null; } - public A removeMatchingFromSources(Predicate predicate) { - if (sources == null) return (A) this; - final Iterator each = sources.iterator(); - final List visitables = _visitables.get("sources"); - while (each.hasNext()) { - V1VolumeProjectionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + protected void copyInstance(V1ProjectedVolumeSource instance) { + instance = instance != null ? instance : new V1ProjectedVolumeSource(); + if (instance != null) { + this.withDefaultMode(instance.getDefaultMode()); + this.withSources(instance.getSources()); } - return (A)this; } - public List buildSources() { - return this.sources != null ? build(sources) : null; + public SourcesNested editFirstSource() { + if (sources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sources")); + } + return this.setNewSourceLike(0, this.buildSource(0)); } - public V1VolumeProjection buildSource(int index) { - return this.sources.get(index).build(); + public SourcesNested editLastSource() { + int index = sources.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sources")); + } + return this.setNewSourceLike(index, this.buildSource(index)); } - public V1VolumeProjection buildFirstSource() { - return this.sources.get(0).build(); + public SourcesNested editMatchingSource(Predicate predicate) { + int index = -1; + for (int i = 0;i < sources.size();i++) { + if (predicate.test(sources.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sources")); + } + return this.setNewSourceLike(index, this.buildSource(index)); } - public V1VolumeProjection buildLastSource() { - return this.sources.get(sources.size() - 1).build(); + public SourcesNested editSource(int index) { + if (sources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sources")); + } + return this.setNewSourceLike(index, this.buildSource(index)); } - public V1VolumeProjection buildMatchingSource(Predicate predicate) { - for (V1VolumeProjectionBuilder item : sources) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ProjectedVolumeSourceFluent that = (V1ProjectedVolumeSourceFluent) o; + if (!(Objects.equals(defaultMode, that.defaultMode))) { + return false; + } + if (!(Objects.equals(sources, that.sources))) { + return false; + } + return true; + } + + public Integer getDefaultMode() { + return this.defaultMode; + } + + public boolean hasDefaultMode() { + return this.defaultMode != null; } public boolean hasMatchingSource(Predicate predicate) { @@ -130,6 +184,94 @@ public boolean hasMatchingSource(Predicate predicate) return false; } + public boolean hasSources() { + return this.sources != null && !(this.sources.isEmpty()); + } + + public int hashCode() { + return Objects.hash(defaultMode, sources); + } + + public A removeAllFromSources(Collection items) { + if (this.sources == null) { + return (A) this; + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").remove(builder); + this.sources.remove(builder); + } + return (A) this; + } + + public A removeFromSources(V1VolumeProjection... items) { + if (this.sources == null) { + return (A) this; + } + for (V1VolumeProjection item : items) { + V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); + _visitables.get("sources").remove(builder); + this.sources.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromSources(Predicate predicate) { + if (sources == null) { + return (A) this; + } + Iterator each = sources.iterator(); + List visitables = _visitables.get("sources"); + while (each.hasNext()) { + V1VolumeProjectionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SourcesNested setNewSourceLike(int index,V1VolumeProjection item) { + return new SourcesNested(index, item); + } + + 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").add(builder); + sources.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(defaultMode == null)) { + sb.append("defaultMode:"); + sb.append(defaultMode); + sb.append(","); + } + if (!(sources == null) && !(sources.isEmpty())) { + sb.append("sources:"); + sb.append(sources); + } + sb.append("}"); + return sb.toString(); + } + + public A withDefaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; + return (A) this; + } + public A withSources(List sources) { if (this.sources != null) { this._visitables.get("sources").clear(); @@ -145,7 +287,7 @@ public A withSources(List sources) { return (A) this; } - public A withSources(io.kubernetes.client.openapi.models.V1VolumeProjection... sources) { + public A withSources(V1VolumeProjection... sources) { if (this.sources != null) { this.sources.clear(); _visitables.remove("sources"); @@ -157,87 +299,23 @@ public A withSources(io.kubernetes.client.openapi.models.V1VolumeProjection... s } return (A) this; } + public class SourcesNested extends V1VolumeProjectionFluent> implements Nested{ - public boolean hasSources() { - return this.sources != null && !this.sources.isEmpty(); - } - - public SourcesNested addNewSource() { - return new SourcesNested(-1, null); - } - - public SourcesNested addNewSourceLike(V1VolumeProjection item) { - return new SourcesNested(-1, item); - } - - public SourcesNested setNewSourceLike(int index,V1VolumeProjection item) { - return new SourcesNested(index, item); - } - - public SourcesNested editSource(int index) { - if (sources.size() <= index) throw new RuntimeException("Can't edit sources. Index exceeds size."); - return setNewSourceLike(index, buildSource(index)); - } - - public SourcesNested editFirstSource() { - if (sources.size() == 0) throw new RuntimeException("Can't edit first sources. The list is empty."); - return setNewSourceLike(0, buildSource(0)); - } - - public SourcesNested editLastSource() { - int index = sources.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last sources. The list is empty."); - return setNewSourceLike(index, buildSource(index)); - } - - public SourcesNested editMatchingSource(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1VolumeProjectionFluent> implements Nested{ SourcesNested(int index,V1VolumeProjection item) { this.index = index; this.builder = new V1VolumeProjectionBuilder(this, item); } - V1VolumeProjectionBuilder builder; - int index; - + public N and() { - return (N) V1ProjectedVolumeSourceFluent.this.setToSources(index,builder.build()); + return (N) V1ProjectedVolumeSourceFluent.this.setToSources(index, 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/V1QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java index 13b6520682..d8f30e02c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1QueuingConfigurationBuilder extends V1QueuingConfigurationFluent implements VisitableBuilder{ + + V1QueuingConfigurationFluent fluent; + public V1QueuingConfigurationBuilder() { this(new V1QueuingConfiguration()); } @@ -10,17 +14,16 @@ 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 V1QueuingConfigurationBuilder(V1QueuingConfigurationFluent fluent,V1QueuingConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1QueuingConfiguration build() { V1QueuingConfiguration buildable = new V1QueuingConfiguration(); buildable.setHandSize(fluent.getHandSize()); @@ -29,5 +32,4 @@ public V1QueuingConfiguration build() { 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 index a4113e0279..57bd1c6fb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java @@ -1,98 +1,124 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1QueuingConfigurationFluent> extends BaseFluent{ +public class V1QueuingConfigurationFluent> extends BaseFluent{ + + private Integer handSize; + private Integer queueLengthLimit; + private Integer queues; + 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()); + 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; + this.withHandSize(instance.getHandSize()); + this.withQueueLengthLimit(instance.getQueueLengthLimit()); + this.withQueues(instance.getQueues()); + } } - public A withHandSize(Integer handSize) { - this.handSize = handSize; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1QueuingConfigurationFluent that = (V1QueuingConfigurationFluent) o; + if (!(Objects.equals(handSize, that.handSize))) { + return false; + } + if (!(Objects.equals(queueLengthLimit, that.queueLengthLimit))) { + return false; + } + if (!(Objects.equals(queues, that.queues))) { + return false; + } + return true; } - public boolean hasHandSize() { - return this.handSize != null; + public Integer getHandSize() { + return this.handSize; } 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 hasHandSize() { + return this.handSize != null; } - public boolean hasQueues() { - return this.queues != null; + public boolean hasQueueLengthLimit() { + return this.queueLengthLimit != 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 boolean hasQueues() { + return this.queues != null; } public int hashCode() { - return java.util.Objects.hash(handSize, queueLengthLimit, queues, super.hashCode()); + return Objects.hash(handSize, queueLengthLimit, queues); } 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); } + if (!(handSize == null)) { + sb.append("handSize:"); + sb.append(handSize); + sb.append(","); + } + if (!(queueLengthLimit == null)) { + sb.append("queueLengthLimit:"); + sb.append(queueLengthLimit); + sb.append(","); + } + if (!(queues == null)) { + sb.append("queues:"); + sb.append(queues); + } sb.append("}"); return sb.toString(); } - + public A withHandSize(Integer handSize) { + this.handSize = handSize; + return (A) this; + } + + public A withQueueLengthLimit(Integer queueLengthLimit) { + this.queueLengthLimit = queueLengthLimit; + return (A) this; + } + + public A withQueues(Integer queues) { + this.queues = queues; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java index cde2a5765b..3ec5f337cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1QuobyteVolumeSourceBuilder extends V1QuobyteVolumeSourceFluent implements VisitableBuilder{ + + V1QuobyteVolumeSourceFluent fluent; + public V1QuobyteVolumeSourceBuilder() { this(new V1QuobyteVolumeSource()); } @@ -10,17 +14,16 @@ public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent) { this(fluent, new V1QuobyteVolumeSource()); } - public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent,V1QuobyteVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1QuobyteVolumeSourceFluent fluent; + public V1QuobyteVolumeSourceBuilder(V1QuobyteVolumeSourceFluent fluent,V1QuobyteVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1QuobyteVolumeSource build() { V1QuobyteVolumeSource buildable = new V1QuobyteVolumeSource(); buildable.setGroup(fluent.getGroup()); @@ -32,5 +35,4 @@ public V1QuobyteVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java index ffe6a32619..27c60cd1e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java @@ -1,153 +1,197 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1QuobyteVolumeSourceFluent> extends BaseFluent{ - public V1QuobyteVolumeSourceFluent() { - } - - public V1QuobyteVolumeSourceFluent(V1QuobyteVolumeSource instance) { - this.copyInstance(instance); - } +public class V1QuobyteVolumeSourceFluent> extends BaseFluent{ + private String group; private Boolean readOnly; private String registry; private String tenant; private String user; private String volume; + + public V1QuobyteVolumeSourceFluent() { + } + public V1QuobyteVolumeSourceFluent(V1QuobyteVolumeSource instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1QuobyteVolumeSource instance) { - instance = (instance != null ? instance : new V1QuobyteVolumeSource()); + instance = instance != null ? instance : new V1QuobyteVolumeSource(); if (instance != null) { - this.withGroup(instance.getGroup()); - this.withReadOnly(instance.getReadOnly()); - this.withRegistry(instance.getRegistry()); - this.withTenant(instance.getTenant()); - this.withUser(instance.getUser()); - this.withVolume(instance.getVolume()); - } - } - - public String getGroup() { - return this.group; + this.withGroup(instance.getGroup()); + this.withReadOnly(instance.getReadOnly()); + this.withRegistry(instance.getRegistry()); + this.withTenant(instance.getTenant()); + this.withUser(instance.getUser()); + this.withVolume(instance.getVolume()); + } } - public A withGroup(String group) { - this.group = group; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1QuobyteVolumeSourceFluent that = (V1QuobyteVolumeSourceFluent) o; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(registry, that.registry))) { + return false; + } + if (!(Objects.equals(tenant, that.tenant))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + if (!(Objects.equals(volume, that.volume))) { + return false; + } + return true; } - public boolean hasGroup() { - return this.group != null; + public String getGroup() { + return this.group; } 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 getRegistry() { return this.registry; } - public A withRegistry(String registry) { - this.registry = registry; - return (A) this; - } - - public boolean hasRegistry() { - return this.registry != null; - } - public String getTenant() { return this.tenant; } - public A withTenant(String tenant) { - this.tenant = tenant; - return (A) this; + public String getUser() { + return this.user; } - public boolean hasTenant() { - return this.tenant != null; + public String getVolume() { + return this.volume; } - public String getUser() { - return this.user; + public boolean hasGroup() { + return this.group != null; } - public A withUser(String user) { - this.user = user; - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } - public boolean hasUser() { - return this.user != null; + public boolean hasRegistry() { + return this.registry != null; } - public String getVolume() { - return this.volume; + public boolean hasTenant() { + return this.tenant != null; } - public A withVolume(String volume) { - this.volume = volume; - return (A) this; + public boolean hasUser() { + return this.user != null; } public boolean hasVolume() { return this.volume != 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; - V1QuobyteVolumeSourceFluent that = (V1QuobyteVolumeSourceFluent) o; - if (!java.util.Objects.equals(group, that.group)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(registry, that.registry)) return false; - if (!java.util.Objects.equals(tenant, that.tenant)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - if (!java.util.Objects.equals(volume, that.volume)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(group, readOnly, registry, tenant, user, volume, super.hashCode()); + return Objects.hash(group, readOnly, registry, tenant, user, volume); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (registry != null) { sb.append("registry:"); sb.append(registry + ","); } - if (tenant != null) { sb.append("tenant:"); sb.append(tenant + ","); } - if (user != null) { sb.append("user:"); sb.append(user + ","); } - if (volume != null) { sb.append("volume:"); sb.append(volume); } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(registry == null)) { + sb.append("registry:"); + sb.append(registry); + sb.append(","); + } + if (!(tenant == null)) { + sb.append("tenant:"); + sb.append(tenant); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + sb.append(","); + } + if (!(volume == null)) { + sb.append("volume:"); + sb.append(volume); + } sb.append("}"); return sb.toString(); } + public A withGroup(String group) { + this.group = group; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withRegistry(String registry) { + this.registry = registry; + return (A) this; + } + + public A withTenant(String tenant) { + this.tenant = tenant; + return (A) this; + } + + public A withUser(String user) { + this.user = user; + return (A) this; + } + + public A withVolume(String volume) { + this.volume = volume; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java index efb72113fa..2491d451bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RBDPersistentVolumeSourceBuilder extends V1RBDPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1RBDPersistentVolumeSourceFluent fluent; + public V1RBDPersistentVolumeSourceBuilder() { this(new V1RBDPersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent f this(fluent, new V1RBDPersistentVolumeSource()); } - public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent fluent,V1RBDPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1RBDPersistentVolumeSourceFluent fluent; + public V1RBDPersistentVolumeSourceBuilder(V1RBDPersistentVolumeSourceFluent fluent,V1RBDPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RBDPersistentVolumeSource build() { V1RBDPersistentVolumeSource buildable = new V1RBDPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -34,5 +37,4 @@ public V1RBDPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java index 2c4f855fd1..55264ddab0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java @@ -1,27 +1,25 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RBDPersistentVolumeSourceFluent> extends BaseFluent{ - public V1RBDPersistentVolumeSourceFluent() { - } - - public V1RBDPersistentVolumeSourceFluent(V1RBDPersistentVolumeSource instance) { - this.copyInstance(instance); - } +public class V1RBDPersistentVolumeSourceFluent> extends BaseFluent{ + private String fsType; private String image; private String keyring; @@ -30,114 +28,169 @@ public V1RBDPersistentVolumeSourceFluent(V1RBDPersistentVolumeSource instance) { private Boolean readOnly; private V1SecretReferenceBuilder secretRef; private String user; + + public V1RBDPersistentVolumeSourceFluent() { + } - protected void copyInstance(V1RBDPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1RBDPersistentVolumeSource()); - if (instance != null) { - this.withFsType(instance.getFsType()); - this.withImage(instance.getImage()); - this.withKeyring(instance.getKeyring()); - this.withMonitors(instance.getMonitors()); - this.withPool(instance.getPool()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + public V1RBDPersistentVolumeSourceFluent(V1RBDPersistentVolumeSource instance) { + this.copyInstance(instance); + } + + public A addAllToMonitors(Collection items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public String getFsType() { - return this.fsType; + public A addToMonitors(String... items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A withFsType(String fsType) { - this.fsType = fsType; + public A addToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.add(index, item); return (A) this; } - public boolean hasFsType() { - return this.fsType != null; + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public String getImage() { - return this.image; + protected void copyInstance(V1RBDPersistentVolumeSource instance) { + instance = instance != null ? instance : new V1RBDPersistentVolumeSource(); + if (instance != null) { + this.withFsType(instance.getFsType()); + this.withImage(instance.getImage()); + this.withKeyring(instance.getKeyring()); + this.withMonitors(instance.getMonitors()); + this.withPool(instance.getPool()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); + } } - public A withImage(String image) { - this.image = image; - return (A) this; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public boolean hasImage() { - return this.image != null; + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public String getKeyring() { - return this.keyring; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public A withKeyring(String keyring) { - this.keyring = keyring; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RBDPersistentVolumeSourceFluent that = (V1RBDPersistentVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(keyring, that.keyring))) { + return false; + } + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } - public boolean hasKeyring() { - return this.keyring != null; + public String getFirstMonitor() { + return this.monitors.get(0); } - public A addToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.add(index, item); - return (A)this; + public String getFsType() { + return this.fsType; } - public A setToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.set(index, item); return (A)this; + public String getImage() { + return this.image; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public String getKeyring() { + return this.keyring; } - public A addAllToMonitors(Collection items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public String getLastMonitor() { + return this.monitors.get(monitors.size() - 1); } - public A removeFromMonitors(java.lang.String... items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public String getMatchingMonitor(Predicate predicate) { + for (String item : monitors) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public String getMonitor(int index) { + return this.monitors.get(index); } public List getMonitors() { return this.monitors; } - public String getMonitor(int index) { - return this.monitors.get(index); + public String getPool() { + return this.pool; } - public String getFirstMonitor() { - return this.monitors.get(0); + public Boolean getReadOnly() { + return this.readOnly; } - public String getLastMonitor() { - return this.monitors.get(monitors.size() - 1); + public String getUser() { + return this.user; } - public String getMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return item; - } - } - return null; + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasImage() { + return this.image != null; + } + + public boolean hasKeyring() { + return this.keyring != null; } public boolean hasMatchingMonitor(Predicate predicate) { @@ -149,6 +202,119 @@ public boolean hasMatchingMonitor(Predicate predicate) { return false; } + public boolean hasMonitors() { + return this.monitors != null && !(this.monitors.isEmpty()); + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + + public boolean hasUser() { + return this.user != null; + } + + public int hashCode() { + return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); + } + + public A removeAllFromMonitors(Collection items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; + } + + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; + } + + public A setToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(keyring == null)) { + sb.append("keyring:"); + sb.append(keyring); + sb.append(","); + } + if (!(monitors == null) && !(monitors.isEmpty())) { + sb.append("monitors:"); + sb.append(monitors); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } + sb.append("}"); + return sb.toString(); + } + + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withImage(String image) { + this.image = image; + return (A) this; + } + + public A withKeyring(String keyring) { + this.keyring = keyring; + return (A) this; + } + public A withMonitors(List monitors) { if (monitors != null) { this.monitors = new ArrayList(); @@ -161,7 +327,7 @@ public A withMonitors(List monitors) { return (A) this; } - public A withMonitors(java.lang.String... monitors) { + public A withMonitors(String... monitors) { if (this.monitors != null) { this.monitors.clear(); _visitables.remove("monitors"); @@ -174,12 +340,12 @@ public A withMonitors(java.lang.String... monitors) { return (A) this; } - public boolean hasMonitors() { - return this.monitors != null && !this.monitors.isEmpty(); + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public String getPool() { - return this.pool; + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); } public A withPool(String pool) { @@ -187,12 +353,8 @@ public A withPool(String pool) { return (A) this; } - public boolean hasPool() { - return this.pool != null; - } - - public Boolean getReadOnly() { - return this.readOnly; + public A withReadOnly() { + return withReadOnly(true); } public A withReadOnly(Boolean readOnly) { @@ -200,14 +362,6 @@ public A withReadOnly(Boolean readOnly) { return (A) this; } - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - public A withSecretRef(V1SecretReference secretRef) { this._visitables.remove("secretRef"); if (secretRef != null) { @@ -220,87 +374,18 @@ public A withSecretRef(V1SecretReference secretRef) { return (A) this; } - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); - } - - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); - } - - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); - } - - public String getUser() { - return this.user; - } - public A withUser(String user) { this.user = user; return (A) this; } + public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ - public boolean hasUser() { - return this.user != 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; - V1RBDPersistentVolumeSourceFluent that = (V1RBDPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(image, that.image)) return false; - if (!java.util.Objects.equals(keyring, that.keyring)) return false; - if (!java.util.Objects.equals(monitors, that.monitors)) return false; - if (!java.util.Objects.equals(pool, that.pool)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (image != null) { sb.append("image:"); sb.append(image + ","); } - if (keyring != null) { sb.append("keyring:"); sb.append(keyring + ","); } - if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } - if (pool != null) { sb.append("pool:"); sb.append(pool + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } - sb.append("}"); - return sb.toString(); - } + V1SecretReferenceBuilder builder; - public A withReadOnly() { - return withReadOnly(true); - } - public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1RBDPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -309,7 +394,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java index ee1ee86af3..3ff10a5095 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RBDVolumeSourceBuilder extends V1RBDVolumeSourceFluent implements VisitableBuilder{ + + V1RBDVolumeSourceFluent fluent; + public V1RBDVolumeSourceBuilder() { this(new V1RBDVolumeSource()); } @@ -10,17 +14,16 @@ public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent) { this(fluent, new V1RBDVolumeSource()); } - public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent,V1RBDVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RBDVolumeSourceBuilder(V1RBDVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1RBDVolumeSourceFluent fluent; + public V1RBDVolumeSourceBuilder(V1RBDVolumeSourceFluent fluent,V1RBDVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RBDVolumeSource build() { V1RBDVolumeSource buildable = new V1RBDVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -34,5 +37,4 @@ public V1RBDVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java index 29183804af..1225fae522 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java @@ -1,27 +1,25 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RBDVolumeSourceFluent> extends BaseFluent{ - public V1RBDVolumeSourceFluent() { - } - - public V1RBDVolumeSourceFluent(V1RBDVolumeSource instance) { - this.copyInstance(instance); - } +public class V1RBDVolumeSourceFluent> extends BaseFluent{ + private String fsType; private String image; private String keyring; @@ -30,114 +28,169 @@ public V1RBDVolumeSourceFluent(V1RBDVolumeSource instance) { private Boolean readOnly; private V1LocalObjectReferenceBuilder secretRef; private String user; + + public V1RBDVolumeSourceFluent() { + } - protected void copyInstance(V1RBDVolumeSource instance) { - instance = (instance != null ? instance : new V1RBDVolumeSource()); - if (instance != null) { - this.withFsType(instance.getFsType()); - this.withImage(instance.getImage()); - this.withKeyring(instance.getKeyring()); - this.withMonitors(instance.getMonitors()); - this.withPool(instance.getPool()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withUser(instance.getUser()); - } + public V1RBDVolumeSourceFluent(V1RBDVolumeSource instance) { + this.copyInstance(instance); + } + + public A addAllToMonitors(Collection items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public String getFsType() { - return this.fsType; + public A addToMonitors(String... items) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + for (String item : items) { + this.monitors.add(item); + } + return (A) this; } - public A withFsType(String fsType) { - this.fsType = fsType; + public A addToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.add(index, item); return (A) this; } - public boolean hasFsType() { - return this.fsType != null; + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; } - public String getImage() { - return this.image; + protected void copyInstance(V1RBDVolumeSource instance) { + instance = instance != null ? instance : new V1RBDVolumeSource(); + if (instance != null) { + this.withFsType(instance.getFsType()); + this.withImage(instance.getImage()); + this.withKeyring(instance.getKeyring()); + this.withMonitors(instance.getMonitors()); + this.withPool(instance.getPool()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withUser(instance.getUser()); + } } - public A withImage(String image) { - this.image = image; - return (A) this; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public boolean hasImage() { - return this.image != null; + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public String getKeyring() { - return this.keyring; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public A withKeyring(String keyring) { - this.keyring = keyring; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RBDVolumeSourceFluent that = (V1RBDVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(keyring, that.keyring))) { + return false; + } + if (!(Objects.equals(monitors, that.monitors))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } - public boolean hasKeyring() { - return this.keyring != null; + public String getFirstMonitor() { + return this.monitors.get(0); } - public A addToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.add(index, item); - return (A)this; + public String getFsType() { + return this.fsType; } - public A setToMonitors(int index,String item) { - if (this.monitors == null) {this.monitors = new ArrayList();} - this.monitors.set(index, item); return (A)this; + public String getImage() { + return this.image; } - public A addToMonitors(java.lang.String... items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public String getKeyring() { + return this.keyring; } - public A addAllToMonitors(Collection items) { - if (this.monitors == null) {this.monitors = new ArrayList();} - for (String item : items) {this.monitors.add(item);} return (A)this; + public String getLastMonitor() { + return this.monitors.get(monitors.size() - 1); } - public A removeFromMonitors(java.lang.String... items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public String getMatchingMonitor(Predicate predicate) { + for (String item : monitors) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A removeAllFromMonitors(Collection items) { - if (this.monitors == null) return (A)this; - for (String item : items) { this.monitors.remove(item);} return (A)this; + public String getMonitor(int index) { + return this.monitors.get(index); } public List getMonitors() { return this.monitors; } - public String getMonitor(int index) { - return this.monitors.get(index); + public String getPool() { + return this.pool; } - public String getFirstMonitor() { - return this.monitors.get(0); + public Boolean getReadOnly() { + return this.readOnly; } - public String getLastMonitor() { - return this.monitors.get(monitors.size() - 1); + public String getUser() { + return this.user; } - public String getMatchingMonitor(Predicate predicate) { - for (String item : monitors) { - if (predicate.test(item)) { - return item; - } - } - return null; + public boolean hasFsType() { + return this.fsType != null; + } + + public boolean hasImage() { + return this.image != null; + } + + public boolean hasKeyring() { + return this.keyring != null; } public boolean hasMatchingMonitor(Predicate predicate) { @@ -149,6 +202,119 @@ public boolean hasMatchingMonitor(Predicate predicate) { return false; } + public boolean hasMonitors() { + return this.monitors != null && !(this.monitors.isEmpty()); + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasReadOnly() { + return this.readOnly != null; + } + + public boolean hasSecretRef() { + return this.secretRef != null; + } + + public boolean hasUser() { + return this.user != null; + } + + public int hashCode() { + return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); + } + + public A removeAllFromMonitors(Collection items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; + } + + public A removeFromMonitors(String... items) { + if (this.monitors == null) { + return (A) this; + } + for (String item : items) { + this.monitors.remove(item); + } + return (A) this; + } + + public A setToMonitors(int index,String item) { + if (this.monitors == null) { + this.monitors = new ArrayList(); + } + this.monitors.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(keyring == null)) { + sb.append("keyring:"); + sb.append(keyring); + sb.append(","); + } + if (!(monitors == null) && !(monitors.isEmpty())) { + sb.append("monitors:"); + sb.append(monitors); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } + sb.append("}"); + return sb.toString(); + } + + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withImage(String image) { + this.image = image; + return (A) this; + } + + public A withKeyring(String keyring) { + this.keyring = keyring; + return (A) this; + } + public A withMonitors(List monitors) { if (monitors != null) { this.monitors = new ArrayList(); @@ -161,7 +327,7 @@ public A withMonitors(List monitors) { return (A) this; } - public A withMonitors(java.lang.String... monitors) { + public A withMonitors(String... monitors) { if (this.monitors != null) { this.monitors.clear(); _visitables.remove("monitors"); @@ -174,12 +340,12 @@ public A withMonitors(java.lang.String... monitors) { return (A) this; } - public boolean hasMonitors() { - return this.monitors != null && !this.monitors.isEmpty(); + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public String getPool() { - return this.pool; + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); } public A withPool(String pool) { @@ -187,12 +353,8 @@ public A withPool(String pool) { return (A) this; } - public boolean hasPool() { - return this.pool != null; - } - - public Boolean getReadOnly() { - return this.readOnly; + public A withReadOnly() { + return withReadOnly(true); } public A withReadOnly(Boolean readOnly) { @@ -200,14 +362,6 @@ public A withReadOnly(Boolean readOnly) { return (A) this; } - public boolean hasReadOnly() { - return this.readOnly != null; - } - - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; - } - public A withSecretRef(V1LocalObjectReference secretRef) { this._visitables.remove("secretRef"); if (secretRef != null) { @@ -220,87 +374,18 @@ public A withSecretRef(V1LocalObjectReference secretRef) { return (A) this; } - public boolean hasSecretRef() { - return this.secretRef != null; - } - - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); - } - - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); - } - - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); - } - - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); - } - - public String getUser() { - return this.user; - } - public A withUser(String user) { this.user = user; return (A) this; } + public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ - public boolean hasUser() { - return this.user != 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; - V1RBDVolumeSourceFluent that = (V1RBDVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(image, that.image)) return false; - if (!java.util.Objects.equals(keyring, that.keyring)) return false; - if (!java.util.Objects.equals(monitors, that.monitors)) return false; - if (!java.util.Objects.equals(pool, that.pool)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (image != null) { sb.append("image:"); sb.append(image + ","); } - if (keyring != null) { sb.append("keyring:"); sb.append(keyring + ","); } - if (monitors != null && !monitors.isEmpty()) { sb.append("monitors:"); sb.append(monitors + ","); } - if (pool != null) { sb.append("pool:"); sb.append(pool + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } - sb.append("}"); - return sb.toString(); - } + V1LocalObjectReferenceBuilder builder; - public A withReadOnly() { - return withReadOnly(true); - } - public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1RBDVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -309,7 +394,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java index 914dc1069f..4545cdab78 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetBuilder extends V1ReplicaSetFluent implements VisitableBuilder{ + + V1ReplicaSetFluent fluent; + public V1ReplicaSetBuilder() { this(new V1ReplicaSet()); } @@ -10,17 +14,16 @@ public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent) { this(fluent, new V1ReplicaSet()); } - public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent,V1ReplicaSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetBuilder(V1ReplicaSet instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetFluent fluent; + public V1ReplicaSetBuilder(V1ReplicaSetFluent fluent,V1ReplicaSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSet build() { V1ReplicaSet buildable = new V1ReplicaSet(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1ReplicaSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java index 557dd1cd1b..ab06c86f50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetConditionBuilder extends V1ReplicaSetConditionFluent implements VisitableBuilder{ + + V1ReplicaSetConditionFluent fluent; + public V1ReplicaSetConditionBuilder() { this(new V1ReplicaSetCondition()); } @@ -10,17 +14,16 @@ public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent) { this(fluent, new V1ReplicaSetCondition()); } - public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent,V1ReplicaSetCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetConditionBuilder(V1ReplicaSetCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetConditionFluent fluent; + public V1ReplicaSetConditionBuilder(V1ReplicaSetConditionFluent fluent,V1ReplicaSetCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSetCondition build() { V1ReplicaSetCondition buildable = new V1ReplicaSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -31,5 +34,4 @@ public V1ReplicaSetCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java index e9b9983e4e..35826c333d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java @@ -1,132 +1,170 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetConditionFluent> extends BaseFluent{ - public V1ReplicaSetConditionFluent() { - } - - public V1ReplicaSetConditionFluent(V1ReplicaSetCondition instance) { - this.copyInstance(instance); - } +public class V1ReplicaSetConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1ReplicaSetConditionFluent() { + } + public V1ReplicaSetConditionFluent(V1ReplicaSetCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ReplicaSetCondition instance) { - instance = (instance != null ? instance : new V1ReplicaSetCondition()); + instance = instance != null ? instance : new V1ReplicaSetCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicaSetConditionFluent that = (V1ReplicaSetConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getStatus() { + return this.status; } - public String getReason() { - return this.reason; + public String getType() { + return this.type; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ReplicaSetConditionFluent that = (V1ReplicaSetConditionFluent) 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 A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withStatus(String status) { + this.status = status; + return (A) this; } - 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(); + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java index db0d20c54d..7f6004b5be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetFluent> extends BaseFluent{ +public class V1ReplicaSetFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ReplicaSetSpecBuilder spec; + private V1ReplicaSetStatusBuilder status; + public V1ReplicaSetFluent() { } public V1ReplicaSetFluent(V1ReplicaSet instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ReplicaSetSpecBuilder spec; - private V1ReplicaSetStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ReplicaSetSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1ReplicaSetStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1ReplicaSet instance) { - instance = (instance != null ? instance : new V1ReplicaSet()); + instance = instance != null ? instance : new V1ReplicaSet(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ReplicaSetSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ReplicaSetSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ReplicaSetStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ReplicaSetStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicaSetFluent that = (V1ReplicaSetFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1ReplicaSetSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1ReplicaSetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1ReplicaSetStatus item) { + return new StatusNested(item); } public A withSpec(V1ReplicaSetSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1ReplicaSetSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ReplicaSetSpec 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 V1ReplicaSetSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1ReplicaSetSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1ReplicaSetStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1ReplicaSetStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1ReplicaSetStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1ReplicaSetStatus 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 V1ReplicaSetStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ReplicaSetStatus 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; - V1ReplicaSetFluent that = (V1ReplicaSetFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1ReplicaSetFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ReplicaSetSpecFluent> implements Nested{ + + V1ReplicaSetSpecBuilder builder; + SpecNested(V1ReplicaSetSpec item) { this.builder = new V1ReplicaSetSpecBuilder(this, item); } - V1ReplicaSetSpecBuilder builder; - + public N and() { return (N) V1ReplicaSetFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ReplicaSetStatusFluent> implements Nested{ + + V1ReplicaSetStatusBuilder builder; + StatusNested(V1ReplicaSetStatus item) { this.builder = new V1ReplicaSetStatusBuilder(this, item); } - V1ReplicaSetStatusBuilder builder; - + public N and() { return (N) V1ReplicaSetFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java index bcad626162..70d57dfbf1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetListBuilder extends V1ReplicaSetListFluent implements VisitableBuilder{ + + V1ReplicaSetListFluent fluent; + public V1ReplicaSetListBuilder() { this(new V1ReplicaSetList()); } @@ -10,17 +14,16 @@ public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent) { this(fluent, new V1ReplicaSetList()); } - public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent,V1ReplicaSetList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetListBuilder(V1ReplicaSetList instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetListFluent fluent; + public V1ReplicaSetListBuilder(V1ReplicaSetListFluent fluent,V1ReplicaSetList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSetList build() { V1ReplicaSetList buildable = new V1ReplicaSetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ReplicaSetList build() { return buildable; } - } \ 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..bea981a252 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetListFluent> extends BaseFluent{ +public class V1ReplicaSetListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ReplicaSetListFluent() { } public V1ReplicaSetListFluent(V1ReplicaSetList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ReplicaSetList instance) { - instance = (instance != null ? instance : new V1ReplicaSetList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ReplicaSet item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ReplicaSet... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ReplicaSet item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ReplicaSet buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ReplicaSet buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { - if (this.items == null) return (A)this; - for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ReplicaSet buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ReplicaSet item : items) {V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ReplicaSet buildMatchingItem(Predicate predicate) { + for (V1ReplicaSetBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ReplicaSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ReplicaSetList instance) { + instance = instance != null ? instance : new V1ReplicaSetList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ReplicaSet buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ReplicaSet buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ReplicaSet buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicaSetListFluent that = (V1ReplicaSetListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ReplicaSet buildMatchingItem(Predicate predicate) { - for (V1ReplicaSetBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ReplicaSet... items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicaSet item : items) { + V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ReplicaSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ReplicaSet item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { + public A withItems(V1ReplicaSet... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ReplicaSet... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ReplicaSet item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ReplicaSet 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ReplicaSetFluent> implements Nested{ - 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; - V1ReplicaSetListFluent that = (V1ReplicaSetListFluent) 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()); - } + V1ReplicaSetBuilder builder; + int index; - 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 V1ReplicaSetFluent> implements Nested{ ItemsNested(int index,V1ReplicaSet item) { this.index = index; this.builder = new V1ReplicaSetBuilder(this, item); } - V1ReplicaSetBuilder builder; - int index; - + public N and() { - return (N) V1ReplicaSetListFluent.this.setToItems(index,builder.build()); + return (N) V1ReplicaSetListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ReplicaSetListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java index 12ce345128..dafdfb76f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetSpecBuilder extends V1ReplicaSetSpecFluent implements VisitableBuilder{ + + V1ReplicaSetSpecFluent fluent; + public V1ReplicaSetSpecBuilder() { this(new V1ReplicaSetSpec()); } @@ -10,17 +14,16 @@ public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent) { this(fluent, new V1ReplicaSetSpec()); } - public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent,V1ReplicaSetSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetSpecBuilder(V1ReplicaSetSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetSpecFluent fluent; + public V1ReplicaSetSpecBuilder(V1ReplicaSetSpecFluent fluent,V1ReplicaSetSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSetSpec build() { V1ReplicaSetSpec buildable = new V1ReplicaSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -30,5 +33,4 @@ public V1ReplicaSetSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java index 0378338d4b..60004c5b3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java @@ -1,82 +1,158 @@ 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.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetSpecFluent> extends BaseFluent{ +public class V1ReplicaSetSpecFluent> extends BaseFluent{ + + private Integer minReadySeconds; + private Integer replicas; + private V1LabelSelectorBuilder selector; + private V1PodTemplateSpecBuilder template; + public V1ReplicaSetSpecFluent() { } public V1ReplicaSetSpecFluent(V1ReplicaSetSpec instance) { this.copyInstance(instance); } - private Integer minReadySeconds; - private Integer replicas; - private V1LabelSelectorBuilder selector; - private V1PodTemplateSpecBuilder template; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } + + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; + } protected void copyInstance(V1ReplicaSetSpec instance) { - instance = (instance != null ? instance : new V1ReplicaSetSpec()); + instance = instance != null ? instance : new V1ReplicaSetSpec(); if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withReplicas(instance.getReplicas()); - this.withSelector(instance.getSelector()); - this.withTemplate(instance.getTemplate()); - } + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withReplicas(instance.getReplicas()); + this.withSelector(instance.getSelector()); + this.withTemplate(instance.getTemplate()); + } } - public Integer getMinReadySeconds() { - return this.minReadySeconds; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + } + + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); + } + + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + } + + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicaSetSpecFluent that = (V1ReplicaSetSpecFluent) o; + if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + return true; + } + + public Integer getMinReadySeconds() { + return this.minReadySeconds; } public Integer getReplicas() { return this.replicas; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; } public boolean hasReplicas() { return this.replicas != null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public boolean hasSelector() { + return this.selector != 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); + public boolean hasTemplate() { + return this.template != null; + } + + public int hashCode() { + return Objects.hash(minReadySeconds, replicas, selector, template); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minReadySeconds == null)) { + sb.append("minReadySeconds:"); + sb.append(minReadySeconds); + sb.append(","); } - return (A) this; + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + } + sb.append("}"); + return sb.toString(); } - public boolean hasSelector() { - return this.selector != null; + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; } public SelectorNested withNewSelector() { @@ -87,20 +163,29 @@ public SelectorNested withNewSelectorLike(V1LabelSelector item) { return new SelectorNested(item); } - public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + public TemplateNested withNewTemplate() { + return new TemplateNested(null); } - public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); } - public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; } - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.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 A withTemplate(V1PodTemplateSpec template) { @@ -114,63 +199,14 @@ public A withTemplate(V1PodTemplateSpec template) { } return (A) this; } + public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ - public boolean hasTemplate() { - return this.template != null; - } - - public TemplateNested withNewTemplate() { - return new TemplateNested(null); - } - - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); - } - - public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); - } - - public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); - } - - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).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; - V1ReplicaSetSpecFluent that = (V1ReplicaSetSpecFluent) o; - if (!java.util.Objects.equals(minReadySeconds, that.minReadySeconds)) return false; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(minReadySeconds, replicas, selector, template, super.hashCode()); - } + V1LabelSelectorBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } - if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector + ","); } - if (template != null) { sb.append("template:"); sb.append(template); } - 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) V1ReplicaSetSpecFluent.this.withSelector(builder.build()); } @@ -179,14 +215,15 @@ public N endSelector() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1ReplicaSetSpecFluent.this.withTemplate(builder.build()); } @@ -195,7 +232,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file 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..85728671a2 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicaSetStatusBuilder extends V1ReplicaSetStatusFluent implements VisitableBuilder{ + + V1ReplicaSetStatusFluent fluent; + public V1ReplicaSetStatusBuilder() { this(new V1ReplicaSetStatus()); } @@ -10,17 +14,16 @@ public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent) { this(fluent, new V1ReplicaSetStatus()); } - public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,V1ReplicaSetStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicaSetStatusBuilder(V1ReplicaSetStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicaSetStatusFluent fluent; + public V1ReplicaSetStatusBuilder(V1ReplicaSetStatusFluent fluent,V1ReplicaSetStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicaSetStatus build() { V1ReplicaSetStatus buildable = new V1ReplicaSetStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -29,8 +32,8 @@ public V1ReplicaSetStatus build() { buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setReadyReplicas(fluent.getReadyReplicas()); buildable.setReplicas(fluent.getReplicas()); + buildable.setTerminatingReplicas(fluent.getTerminatingReplicas()); return buildable; } - } \ No newline at end of file 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..2c5c3862a6 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 @@ -1,118 +1,97 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicaSetStatusFluent> extends BaseFluent{ - public V1ReplicaSetStatusFluent() { - } - - public V1ReplicaSetStatusFluent(V1ReplicaSetStatus instance) { - this.copyInstance(instance); - } +public class V1ReplicaSetStatusFluent> extends BaseFluent{ + private Integer availableReplicas; private ArrayList conditions; private Integer fullyLabeledReplicas; private Long observedGeneration; private Integer readyReplicas; private Integer replicas; - - protected void copyInstance(V1ReplicaSetStatus instance) { - instance = (instance != null ? instance : new V1ReplicaSetStatus()); - if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withConditions(instance.getConditions()); - this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - } + private Integer terminatingReplicas; + + public V1ReplicaSetStatusFluent() { } - public Integer getAvailableReplicas() { - return this.availableReplicas; + public V1ReplicaSetStatusFluent(V1ReplicaSetStatus instance) { + this.copyInstance(instance); } - - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasAvailableReplicas() { - return this.availableReplicas != null; - } - - 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);} - 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);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public ConditionsNested addNewConditionLike(V1ReplicaSetCondition item) { + return new ConditionsNested(-1, item); } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... items) { - if (this.conditions == null) return (A)this; - for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A addToConditions(V1ReplicaSetCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1ReplicaSetCondition item : items) {V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + 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(builder); + conditions.add(index, 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()) { - V1ReplicaSetConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1ReplicaSetCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1ReplicaSetCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1ReplicaSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -130,183 +109,329 @@ public V1ReplicaSetCondition buildMatchingCondition(Predicate predicate) { - for (V1ReplicaSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1ReplicaSetStatus instance) { + instance = instance != null ? instance : new V1ReplicaSetStatus(); + if (instance != null) { + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withConditions(instance.getConditions()); + this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + this.withTerminatingReplicas(instance.getTerminatingReplicas()); + } } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1ReplicaSetCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A withConditions(io.kubernetes.client.openapi.models.V1ReplicaSetCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - if (conditions != null) { - for (V1ReplicaSetCondition item : conditions) { - this.addToConditions(item); - } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicaSetStatusFluent that = (V1ReplicaSetStatusFluent) o; + if (!(Objects.equals(availableReplicas, that.availableReplicas))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(fullyLabeledReplicas, that.fullyLabeledReplicas))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(readyReplicas, that.readyReplicas))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(terminatingReplicas, that.terminatingReplicas))) { + return false; + } + return true; } - public ConditionsNested addNewConditionLike(V1ReplicaSetCondition item) { - return new ConditionsNested(-1, item); + public Integer getAvailableReplicas() { + return this.availableReplicas; } - public ConditionsNested setNewConditionLike(int index,V1ReplicaSetCondition item) { - return new ConditionsNested(index, item); + public Integer getFullyLabeledReplicas() { + return this.fullyLabeledReplicas; } - 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 Long getObservedGeneration() { + return this.observedGeneration; } - 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 Integer getReadyReplicas() { + return this.readyReplicas; } - 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 Integer getReplicas() { + return this.replicas; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1ReplicaSetConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasObservedGeneration() { return this.observedGeneration != null; } - public Integer getReadyReplicas() { - return this.readyReplicas; + public boolean hasReadyReplicas() { + return this.readyReplicas != null; } - public A withReadyReplicas(Integer readyReplicas) { - this.readyReplicas = readyReplicas; - return (A) this; + public boolean hasReplicas() { + return this.replicas != null; } - public boolean hasReadyReplicas() { - return this.readyReplicas != null; + public boolean hasTerminatingReplicas() { + return this.terminatingReplicas != null; } - public Integer getReplicas() { - return this.replicas; + public int hashCode() { + return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, terminatingReplicas); } - public A withReplicas(Integer replicas) { - this.replicas = replicas; + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasReplicas() { - return this.replicas != null; + public A removeFromConditions(V1ReplicaSetCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ReplicaSetCondition item : items) { + V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ReplicaSetStatusFluent that = (V1ReplicaSetStatusFluent) o; - if (!java.util.Objects.equals(availableReplicas, that.availableReplicas)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(fullyLabeledReplicas, that.fullyLabeledReplicas)) return false; - 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; - return true; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ReplicaSetConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, super.hashCode()); + public ConditionsNested setNewConditionLike(int index,V1ReplicaSetCondition item) { + return new ConditionsNested(index, item); + } + + 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").add(builder); + conditions.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (availableReplicas != null) { sb.append("availableReplicas:"); sb.append(availableReplicas + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - 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 (!(availableReplicas == null)) { + sb.append("availableReplicas:"); + sb.append(availableReplicas); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(fullyLabeledReplicas == null)) { + sb.append("fullyLabeledReplicas:"); + sb.append(fullyLabeledReplicas); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(readyReplicas == null)) { + sb.append("readyReplicas:"); + sb.append(readyReplicas); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(terminatingReplicas == null)) { + sb.append("terminatingReplicas:"); + sb.append(terminatingReplicas); + } sb.append("}"); return sb.toString(); } + + public A withAvailableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1ReplicaSetCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1ReplicaSetCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1ReplicaSetCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withFullyLabeledReplicas(Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReadyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; + return (A) this; + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withTerminatingReplicas(Integer terminatingReplicas) { + this.terminatingReplicas = terminatingReplicas; + return (A) this; + } public class ConditionsNested extends V1ReplicaSetConditionFluent> implements Nested{ + + V1ReplicaSetConditionBuilder builder; + int index; + ConditionsNested(int index,V1ReplicaSetCondition item) { this.index = index; this.builder = new V1ReplicaSetConditionBuilder(this, item); } - V1ReplicaSetConditionBuilder builder; - int index; - + public N and() { - return (N) V1ReplicaSetStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1ReplicaSetStatusFluent.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/V1ReplicationControllerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java index 7e1ede7a06..d96cb766c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicationControllerBuilder extends V1ReplicationControllerFluent implements VisitableBuilder{ + + V1ReplicationControllerFluent fluent; + public V1ReplicationControllerBuilder() { this(new V1ReplicationController()); } @@ -10,17 +14,16 @@ public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent) { this(fluent, new V1ReplicationController()); } - public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent,V1ReplicationController instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerBuilder(V1ReplicationController instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerFluent fluent; + public V1ReplicationControllerBuilder(V1ReplicationControllerFluent fluent,V1ReplicationController instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationController build() { V1ReplicationController buildable = new V1ReplicationController(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1ReplicationController build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java index 695b4c53be..03935dbc25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicationControllerConditionBuilder extends V1ReplicationControllerConditionFluent implements VisitableBuilder{ + + V1ReplicationControllerConditionFluent fluent; + public V1ReplicationControllerConditionBuilder() { this(new V1ReplicationControllerCondition()); } @@ -10,17 +14,16 @@ public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionF this(fluent, new V1ReplicationControllerCondition()); } - public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionFluent fluent,V1ReplicationControllerCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerConditionBuilder(V1ReplicationControllerCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerConditionFluent fluent; + public V1ReplicationControllerConditionBuilder(V1ReplicationControllerConditionFluent fluent,V1ReplicationControllerCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationControllerCondition build() { V1ReplicationControllerCondition buildable = new V1ReplicationControllerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -31,5 +34,4 @@ public V1ReplicationControllerCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java index 61ba63c8ef..5e65bf9401 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java @@ -1,132 +1,170 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerConditionFluent> extends BaseFluent{ - public V1ReplicationControllerConditionFluent() { - } - - public V1ReplicationControllerConditionFluent(V1ReplicationControllerCondition instance) { - this.copyInstance(instance); - } +public class V1ReplicationControllerConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1ReplicationControllerConditionFluent() { + } + public V1ReplicationControllerConditionFluent(V1ReplicationControllerCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ReplicationControllerCondition instance) { - instance = (instance != null ? instance : new V1ReplicationControllerCondition()); + instance = instance != null ? instance : new V1ReplicationControllerCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicationControllerConditionFluent that = (V1ReplicationControllerConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getStatus() { + return this.status; } - public String getReason() { - return this.reason; + public String getType() { + return this.type; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ReplicationControllerConditionFluent that = (V1ReplicationControllerConditionFluent) 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 A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withStatus(String status) { + this.status = status; + return (A) this; } - 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(); + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java index 2edb82c971..3bcfb3e7b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerFluent> extends BaseFluent{ +public class V1ReplicationControllerFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ReplicationControllerSpecBuilder spec; + private V1ReplicationControllerStatusBuilder status; + public V1ReplicationControllerFluent() { } public V1ReplicationControllerFluent(V1ReplicationController instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ReplicationControllerSpecBuilder spec; - private V1ReplicationControllerStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ReplicationControllerSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1ReplicationControllerStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1ReplicationController instance) { - instance = (instance != null ? instance : new V1ReplicationController()); + instance = instance != null ? instance : new V1ReplicationController(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ReplicationControllerSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ReplicationControllerSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ReplicationControllerStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ReplicationControllerStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicationControllerFluent that = (V1ReplicationControllerFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1ReplicationControllerSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1ReplicationControllerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1ReplicationControllerStatus item) { + return new StatusNested(item); } public A withSpec(V1ReplicationControllerSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1ReplicationControllerSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ReplicationControllerSpec 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 V1ReplicationControllerSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1ReplicationControllerSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1ReplicationControllerStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1ReplicationControllerStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1ReplicationControllerStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1ReplicationControllerStatus 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 V1ReplicationControllerStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ReplicationControllerStatus 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; - V1ReplicationControllerFluent that = (V1ReplicationControllerFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1ReplicationControllerFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ReplicationControllerSpecFluent> implements Nested{ + + V1ReplicationControllerSpecBuilder builder; + SpecNested(V1ReplicationControllerSpec item) { this.builder = new V1ReplicationControllerSpecBuilder(this, item); } - V1ReplicationControllerSpecBuilder builder; - + public N and() { return (N) V1ReplicationControllerFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ReplicationControllerStatusFluent> implements Nested{ + + V1ReplicationControllerStatusBuilder builder; + StatusNested(V1ReplicationControllerStatus item) { this.builder = new V1ReplicationControllerStatusBuilder(this, item); } - V1ReplicationControllerStatusBuilder builder; - + public N and() { return (N) V1ReplicationControllerFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java index 14561809eb..a153a6c1a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicationControllerListBuilder extends V1ReplicationControllerListFluent implements VisitableBuilder{ + + V1ReplicationControllerListFluent fluent; + public V1ReplicationControllerListBuilder() { this(new V1ReplicationControllerList()); } @@ -10,17 +14,16 @@ public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent f this(fluent, new V1ReplicationControllerList()); } - public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent fluent,V1ReplicationControllerList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerListBuilder(V1ReplicationControllerList instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerListFluent fluent; + public V1ReplicationControllerListBuilder(V1ReplicationControllerListFluent fluent,V1ReplicationControllerList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationControllerList build() { V1ReplicationControllerList buildable = new V1ReplicationControllerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ReplicationControllerList build() { return buildable; } - } \ No newline at end of file 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..bcfa985021 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerListFluent> extends BaseFluent{ +public class V1ReplicationControllerListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ReplicationControllerListFluent() { } public V1ReplicationControllerListFluent(V1ReplicationControllerList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ReplicationControllerList instance) { - instance = (instance != null ? instance : new V1ReplicationControllerList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ReplicationController item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ReplicationController... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ReplicationController item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ReplicationController buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ReplicationController buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { - if (this.items == null) return (A)this; - for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ReplicationController buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ReplicationController item : items) {V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ReplicationController buildMatchingItem(Predicate predicate) { + for (V1ReplicationControllerBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ReplicationControllerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ReplicationControllerList instance) { + instance = instance != null ? instance : new V1ReplicationControllerList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ReplicationController buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ReplicationController buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ReplicationController buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicationControllerListFluent that = (V1ReplicationControllerListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ReplicationController buildMatchingItem(Predicate predicate) { - for (V1ReplicationControllerBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predica return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ReplicationController... items) { + if (this.items == null) { + return (A) this; + } + for (V1ReplicationController item : items) { + V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ReplicationControllerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ReplicationController item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ReplicationController... items) { + public A withItems(V1ReplicationController... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ReplicationController.. return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ReplicationController item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ReplicationController 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ReplicationControllerFluent> implements Nested{ - 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; - V1ReplicationControllerListFluent that = (V1ReplicationControllerListFluent) 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()); - } + V1ReplicationControllerBuilder builder; + int index; - 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 V1ReplicationControllerFluent> implements Nested{ ItemsNested(int index,V1ReplicationController item) { this.index = index; this.builder = new V1ReplicationControllerBuilder(this, item); } - V1ReplicationControllerBuilder builder; - int index; - + public N and() { - return (N) V1ReplicationControllerListFluent.this.setToItems(index,builder.build()); + return (N) V1ReplicationControllerListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ReplicationControllerListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java index 45f050cb55..32c48f090a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicationControllerSpecBuilder extends V1ReplicationControllerSpecFluent implements VisitableBuilder{ + + V1ReplicationControllerSpecFluent fluent; + public V1ReplicationControllerSpecBuilder() { this(new V1ReplicationControllerSpec()); } @@ -10,17 +14,16 @@ public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent f this(fluent, new V1ReplicationControllerSpec()); } - public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent fluent,V1ReplicationControllerSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerSpecFluent fluent; + public V1ReplicationControllerSpecBuilder(V1ReplicationControllerSpecFluent fluent,V1ReplicationControllerSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationControllerSpec build() { V1ReplicationControllerSpec buildable = new V1ReplicationControllerSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -30,5 +33,4 @@ public V1ReplicationControllerSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java index f4fdf01072..87e1db18ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java @@ -1,88 +1,205 @@ 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.String; -import java.util.LinkedHashMap; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerSpecFluent> extends BaseFluent{ +public class V1ReplicationControllerSpecFluent> extends BaseFluent{ + + private Integer minReadySeconds; + private Integer replicas; + private Map selector; + private V1PodTemplateSpecBuilder template; + public V1ReplicationControllerSpecFluent() { } public V1ReplicationControllerSpecFluent(V1ReplicationControllerSpec instance) { this.copyInstance(instance); } - private Integer minReadySeconds; - private Integer replicas; - private Map selector; - private V1PodTemplateSpecBuilder template; + + public A addToSelector(Map map) { + if (this.selector == null && map != null) { + this.selector = new LinkedHashMap(); + } + if (map != null) { + this.selector.putAll(map); + } + return (A) this; + } + + public A addToSelector(String key,String value) { + if (this.selector == null && key != null && value != null) { + this.selector = new LinkedHashMap(); + } + if (key != null && value != null) { + this.selector.put(key, value); + } + return (A) this; + } + + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; + } protected void copyInstance(V1ReplicationControllerSpec instance) { - instance = (instance != null ? instance : new V1ReplicationControllerSpec()); + instance = instance != null ? instance : new V1ReplicationControllerSpec(); if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withReplicas(instance.getReplicas()); - this.withSelector(instance.getSelector()); - this.withTemplate(instance.getTemplate()); - } + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withReplicas(instance.getReplicas()); + this.withSelector(instance.getSelector()); + this.withTemplate(instance.getTemplate()); + } } - public Integer getMinReadySeconds() { - return this.minReadySeconds; + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; - return (A) this; + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); } - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicationControllerSpecFluent that = (V1ReplicationControllerSpecFluent) o; + if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + return true; + } + + public Integer getMinReadySeconds() { + return this.minReadySeconds; } public Integer getReplicas() { return this.replicas; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + public Map getSelector() { + return this.selector; + } + + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; } public boolean hasReplicas() { return this.replicas != null; } - public A addToSelector(String key,String value) { - if(this.selector == null && key != null && value != null) { this.selector = new LinkedHashMap(); } - if(key != null && value != null) {this.selector.put(key, value);} return (A)this; + public boolean hasSelector() { + return this.selector != null; } - public A addToSelector(Map map) { - if(this.selector == null && map != null) { this.selector = new LinkedHashMap(); } - if(map != null) { this.selector.putAll(map);} return (A)this; + public boolean hasTemplate() { + return this.template != null; + } + + public int hashCode() { + return Objects.hash(minReadySeconds, replicas, selector, template); } public A removeFromSelector(String key) { - if(this.selector == null) { return (A) this; } - if(key != null && this.selector != null) {this.selector.remove(key);} return (A)this; + if (this.selector == null) { + return (A) this; + } + if (key != null && this.selector != null) { + this.selector.remove(key); + } + return (A) this; } public A removeFromSelector(Map map) { - if(this.selector == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.selector != null){this.selector.remove(key);}}} return (A)this; + if (this.selector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.selector != null) { + this.selector.remove(key); + } + } + } + return (A) this; } - public Map getSelector() { - return this.selector; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minReadySeconds == null)) { + sb.append("minReadySeconds:"); + sb.append(minReadySeconds); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(selector == null) && !(selector.isEmpty())) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + } + sb.append("}"); + return sb.toString(); + } + + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; + } + + public TemplateNested withNewTemplate() { + return new TemplateNested(null); + } + + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; } public A withSelector(Map selector) { @@ -94,14 +211,6 @@ public A withSelector(Map selector) { return (A) this; } - public boolean hasSelector() { - return this.selector != null; - } - - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; - } - public A withTemplate(V1PodTemplateSpec template) { this._visitables.remove("template"); if (template != null) { @@ -113,63 +222,14 @@ public A withTemplate(V1PodTemplateSpec template) { } return (A) this; } + public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ - public boolean hasTemplate() { - return this.template != null; - } - - public TemplateNested withNewTemplate() { - return new TemplateNested(null); - } - - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); - } - - public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); - } - - public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); - } - - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).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; - V1ReplicationControllerSpecFluent that = (V1ReplicationControllerSpecFluent) o; - if (!java.util.Objects.equals(minReadySeconds, that.minReadySeconds)) return false; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - if (!java.util.Objects.equals(template, that.template)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(minReadySeconds, replicas, selector, template, super.hashCode()); - } + V1PodTemplateSpecBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (minReadySeconds != null) { sb.append("minReadySeconds:"); sb.append(minReadySeconds + ","); } - if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } - if (selector != null && !selector.isEmpty()) { sb.append("selector:"); sb.append(selector + ","); } - if (template != null) { sb.append("template:"); sb.append(template); } - sb.append("}"); - return sb.toString(); - } - public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1ReplicationControllerSpecFluent.this.withTemplate(builder.build()); } @@ -178,7 +238,5 @@ public N endTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java index 6f65403aa2..9e48a17d35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ReplicationControllerStatusBuilder extends V1ReplicationControllerStatusFluent implements VisitableBuilder{ + + V1ReplicationControllerStatusFluent fluent; + public V1ReplicationControllerStatusBuilder() { this(new V1ReplicationControllerStatus()); } @@ -10,17 +14,16 @@ public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent< this(fluent, new V1ReplicationControllerStatus()); } - public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent fluent,V1ReplicationControllerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ReplicationControllerStatusFluent fluent; + public V1ReplicationControllerStatusBuilder(V1ReplicationControllerStatusFluent fluent,V1ReplicationControllerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ReplicationControllerStatus build() { V1ReplicationControllerStatus buildable = new V1ReplicationControllerStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -32,5 +35,4 @@ public V1ReplicationControllerStatus build() { return buildable; } - } \ No newline at end of file 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..2c7e2c611e 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 @@ -1,118 +1,96 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ReplicationControllerStatusFluent> extends BaseFluent{ - public V1ReplicationControllerStatusFluent() { - } - - public V1ReplicationControllerStatusFluent(V1ReplicationControllerStatus instance) { - this.copyInstance(instance); - } +public class V1ReplicationControllerStatusFluent> extends BaseFluent{ + private Integer availableReplicas; private ArrayList conditions; private Integer fullyLabeledReplicas; private Long observedGeneration; private Integer readyReplicas; private Integer replicas; - - protected void copyInstance(V1ReplicationControllerStatus instance) { - instance = (instance != null ? instance : new V1ReplicationControllerStatus()); - if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withConditions(instance.getConditions()); - this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - } + + public V1ReplicationControllerStatusFluent() { } - public Integer getAvailableReplicas() { - return this.availableReplicas; + public V1ReplicationControllerStatusFluent(V1ReplicationControllerStatus instance) { + this.copyInstance(instance); } - - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasAvailableReplicas() { - return this.availableReplicas != null; - } - - 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);} - 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);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public ConditionsNested addNewConditionLike(V1ReplicationControllerCondition item) { + return new ConditionsNested(-1, item); } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... items) { - if (this.conditions == null) return (A)this; - for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A addToConditions(V1ReplicationControllerCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1ReplicationControllerCondition item : items) {V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + 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(builder); + conditions.add(index, 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()) { - V1ReplicationControllerConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1ReplicationControllerCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1ReplicationControllerCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1ReplicationControllerCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -130,183 +108,307 @@ public V1ReplicationControllerCondition buildMatchingCondition(Predicate predicate) { - for (V1ReplicationControllerConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1ReplicationControllerStatus instance) { + instance = instance != null ? instance : new V1ReplicationControllerStatus(); + if (instance != null) { + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withConditions(instance.getConditions()); + this.withFullyLabeledReplicas(instance.getFullyLabeledReplicas()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + } } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1ReplicationControllerCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A withConditions(io.kubernetes.client.openapi.models.V1ReplicationControllerCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V1ReplicationControllerCondition item : conditions) { - this.addToConditions(item); - } + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(0, this.buildCondition(0)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested addNewConditionLike(V1ReplicationControllerCondition item) { - return new ConditionsNested(-1, item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ReplicationControllerStatusFluent that = (V1ReplicationControllerStatusFluent) o; + if (!(Objects.equals(availableReplicas, that.availableReplicas))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(fullyLabeledReplicas, that.fullyLabeledReplicas))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(readyReplicas, that.readyReplicas))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + return true; } - public ConditionsNested setNewConditionLike(int index,V1ReplicationControllerCondition item) { - return new ConditionsNested(index, item); + public Integer getAvailableReplicas() { + return this.availableReplicas; } - 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 Integer getFullyLabeledReplicas() { + return this.fullyLabeledReplicas; } - 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 Long getObservedGeneration() { + return this.observedGeneration; } - 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 Integer getReadyReplicas() { + return this.readyReplicas; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1ReplicationControllerConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasObservedGeneration() { return this.observedGeneration != null; } - public Integer getReadyReplicas() { - return this.readyReplicas; + public boolean hasReadyReplicas() { + return this.readyReplicas != null; } - public A withReadyReplicas(Integer readyReplicas) { - this.readyReplicas = readyReplicas; - return (A) this; + public boolean hasReplicas() { + return this.replicas != null; } - public boolean hasReadyReplicas() { - return this.readyReplicas != null; + public int hashCode() { + return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); } - public Integer getReplicas() { - return this.replicas; + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; + public A removeFromConditions(V1ReplicationControllerCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1ReplicationControllerCondition item : items) { + V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasReplicas() { - return this.replicas != null; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1ReplicationControllerConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ReplicationControllerStatusFluent that = (V1ReplicationControllerStatusFluent) o; - if (!java.util.Objects.equals(availableReplicas, that.availableReplicas)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(fullyLabeledReplicas, that.fullyLabeledReplicas)) return false; - 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; - return true; + public ConditionsNested setNewConditionLike(int index,V1ReplicationControllerCondition item) { + return new ConditionsNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas, super.hashCode()); + 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").add(builder); + conditions.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (availableReplicas != null) { sb.append("availableReplicas:"); sb.append(availableReplicas + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - 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 (!(availableReplicas == null)) { + sb.append("availableReplicas:"); + sb.append(availableReplicas); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(fullyLabeledReplicas == null)) { + sb.append("fullyLabeledReplicas:"); + sb.append(fullyLabeledReplicas); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(readyReplicas == null)) { + sb.append("readyReplicas:"); + sb.append(readyReplicas); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + } sb.append("}"); return sb.toString(); } + + public A withAvailableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1ReplicationControllerCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1ReplicationControllerCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1ReplicationControllerCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withFullyLabeledReplicas(Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; + return (A) this; + } + + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; + } + + public A withReadyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; + return (A) this; + } + + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } public class ConditionsNested extends V1ReplicationControllerConditionFluent> implements Nested{ + + V1ReplicationControllerConditionBuilder builder; + int index; + ConditionsNested(int index,V1ReplicationControllerCondition item) { this.index = index; this.builder = new V1ReplicationControllerConditionBuilder(this, item); } - V1ReplicationControllerConditionBuilder builder; - int index; - + public N and() { - return (N) V1ReplicationControllerStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1ReplicationControllerStatusFluent.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/V1ResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java index 340563355a..2f4e3422f8 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceAttributesBuilder extends V1ResourceAttributesFluent implements VisitableBuilder{ + + V1ResourceAttributesFluent fluent; + public V1ResourceAttributesBuilder() { this(new V1ResourceAttributes()); } @@ -10,20 +14,21 @@ public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent) { this(fluent, new V1ResourceAttributes()); } - public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent,V1ResourceAttributes instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceAttributesBuilder(V1ResourceAttributes instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceAttributesFluent fluent; + public V1ResourceAttributesBuilder(V1ResourceAttributesFluent fluent,V1ResourceAttributes instance) { + this.fluent = fluent; + fluent.copyInstance(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()); @@ -33,5 +38,4 @@ public V1ResourceAttributes build() { return buildable; } - } \ No newline at end of file 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..1dfca7ba7c 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,165 +1,350 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceAttributesFluent> extends BaseFluent{ - public V1ResourceAttributesFluent() { - } - - public V1ResourceAttributesFluent(V1ResourceAttributes instance) { - this.copyInstance(instance); - } +public class V1ResourceAttributesFluent> extends BaseFluent{ + + private V1FieldSelectorAttributesBuilder fieldSelector; private String group; + private V1LabelSelectorAttributesBuilder labelSelector; private String name; private String namespace; private String resource; private String subresource; private String verb; private String version; + + public V1ResourceAttributesFluent() { + } + + public V1ResourceAttributesFluent(V1ResourceAttributes instance) { + this.copyInstance(instance); + } + + public V1FieldSelectorAttributes buildFieldSelector() { + return this.fieldSelector != null ? this.fieldSelector.build() : null; + } + + public V1LabelSelectorAttributes buildLabelSelector() { + return this.labelSelector != null ? this.labelSelector.build() : null; + } protected void copyInstance(V1ResourceAttributes instance) { - instance = (instance != null ? instance : new V1ResourceAttributes()); + instance = instance != null ? instance : new V1ResourceAttributes(); if (instance != null) { - this.withGroup(instance.getGroup()); - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withResource(instance.getResource()); - this.withSubresource(instance.getSubresource()); - this.withVerb(instance.getVerb()); - this.withVersion(instance.getVersion()); - } + this.withFieldSelector(instance.getFieldSelector()); + this.withGroup(instance.getGroup()); + this.withLabelSelector(instance.getLabelSelector()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withResource(instance.getResource()); + this.withSubresource(instance.getSubresource()); + this.withVerb(instance.getVerb()); + this.withVersion(instance.getVersion()); + } } - public String getGroup() { - return this.group; + public FieldSelectorNested editFieldSelector() { + return this.withNewFieldSelectorLike(Optional.ofNullable(this.buildFieldSelector()).orElse(null)); } - public A withGroup(String group) { - this.group = group; - return (A) this; + public LabelSelectorNested editLabelSelector() { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } - public boolean hasGroup() { - return this.group != null; + public FieldSelectorNested editOrNewFieldSelector() { + return this.withNewFieldSelectorLike(Optional.ofNullable(this.buildFieldSelector()).orElse(new V1FieldSelectorAttributesBuilder().build())); } - public String getName() { - return this.name; + public FieldSelectorNested editOrNewFieldSelectorLike(V1FieldSelectorAttributes item) { + return this.withNewFieldSelectorLike(Optional.ofNullable(this.buildFieldSelector()).orElse(item)); } - public A withName(String name) { - this.name = name; - return (A) this; + public LabelSelectorNested editOrNewLabelSelector() { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorAttributesBuilder().build())); } - public boolean hasName() { - return this.name != null; + public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelectorAttributes item) { + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(item)); } - public String getNamespace() { - return this.namespace; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceAttributesFluent that = (V1ResourceAttributesFluent) o; + if (!(Objects.equals(fieldSelector, that.fieldSelector))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(subresource, that.subresource))) { + return false; + } + if (!(Objects.equals(verb, that.verb))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public String getGroup() { + return this.group; } - public boolean hasNamespace() { - return this.namespace != null; + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; } public String getResource() { return this.resource; } - public A withResource(String resource) { - this.resource = resource; - return (A) this; + public String getSubresource() { + return this.subresource; } - public boolean hasResource() { - return this.resource != null; + public String getVerb() { + return this.verb; } - public String getSubresource() { - return this.subresource; + public String getVersion() { + return this.version; } - public A withSubresource(String subresource) { - this.subresource = subresource; - return (A) this; + public boolean hasFieldSelector() { + return this.fieldSelector != null; } - public boolean hasSubresource() { - return this.subresource != null; + public boolean hasGroup() { + return this.group != null; } - public String getVerb() { - return this.verb; + public boolean hasLabelSelector() { + return this.labelSelector != null; } - public A withVerb(String verb) { - this.verb = verb; - return (A) this; + public boolean hasName() { + return this.name != null; } - public boolean hasVerb() { - return this.verb != null; + public boolean hasNamespace() { + return this.namespace != null; } - public String getVersion() { - return this.version; + public boolean hasResource() { + return this.resource != null; } - public A withVersion(String version) { - this.version = version; - return (A) this; + public boolean hasSubresource() { + return this.subresource != null; } - public boolean hasVersion() { - return this.version != null; + public boolean hasVerb() { + return this.verb != 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; - V1ResourceAttributesFluent that = (V1ResourceAttributesFluent) 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(subresource, that.subresource)) return false; - if (!java.util.Objects.equals(verb, that.verb)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; - return true; + public boolean hasVersion() { + return this.version != null; } public int hashCode() { - return java.util.Objects.hash(group, name, namespace, resource, subresource, verb, version, super.hashCode()); + return Objects.hash(fieldSelector, group, labelSelector, name, namespace, resource, subresource, verb, version); } 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 (subresource != null) { sb.append("subresource:"); sb.append(subresource + ","); } - if (verb != null) { sb.append("verb:"); sb.append(verb + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } + if (!(fieldSelector == null)) { + sb.append("fieldSelector:"); + sb.append(fieldSelector); + sb.append(","); + } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(labelSelector == null)) { + sb.append("labelSelector:"); + sb.append(labelSelector); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(subresource == null)) { + sb.append("subresource:"); + sb.append(subresource); + sb.append(","); + } + if (!(verb == null)) { + sb.append("verb:"); + sb.append(verb); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } sb.append("}"); return sb.toString(); } - + 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 A withGroup(String group) { + this.group = group; + return (A) this; + } + + 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 A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public FieldSelectorNested withNewFieldSelector() { + return new FieldSelectorNested(null); + } + + public FieldSelectorNested withNewFieldSelectorLike(V1FieldSelectorAttributes item) { + return new FieldSelectorNested(item); + } + + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); + } + + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelectorAttributes item) { + return new LabelSelectorNested(item); + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withSubresource(String subresource) { + this.subresource = subresource; + return (A) this; + } + + public A withVerb(String verb) { + this.verb = verb; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + public class FieldSelectorNested extends V1FieldSelectorAttributesFluent> implements Nested{ + + V1FieldSelectorAttributesBuilder builder; + + FieldSelectorNested(V1FieldSelectorAttributes item) { + this.builder = new V1FieldSelectorAttributesBuilder(this, item); + } + + public N and() { + return (N) V1ResourceAttributesFluent.this.withFieldSelector(builder.build()); + } + + public N endFieldSelector() { + return and(); + } + + } + public class LabelSelectorNested extends V1LabelSelectorAttributesFluent> implements Nested{ + + V1LabelSelectorAttributesBuilder builder; + + LabelSelectorNested(V1LabelSelectorAttributes item) { + this.builder = new V1LabelSelectorAttributesBuilder(this, item); + } + + 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 deleted file mode 100644 index 02b63a681f..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1ResourceClaimBuilder extends V1ResourceClaimFluent implements VisitableBuilder{ - public V1ResourceClaimBuilder() { - this(new V1ResourceClaim()); - } - - public V1ResourceClaimBuilder(V1ResourceClaimFluent fluent) { - this(fluent, new V1ResourceClaim()); - } - - public V1ResourceClaimBuilder(V1ResourceClaimFluent fluent,V1ResourceClaim instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1ResourceClaimBuilder(V1ResourceClaim instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1ResourceClaimFluent fluent; - - public V1ResourceClaim build() { - V1ResourceClaim buildable = new V1ResourceClaim(); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java new file mode 100644 index 0000000000..f921d03471 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimConsumerReferenceBuilder extends V1ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + + V1ResourceClaimConsumerReferenceFluent fluent; + + public V1ResourceClaimConsumerReferenceBuilder() { + this(new V1ResourceClaimConsumerReference()); + } + + public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReferenceFluent fluent) { + this(fluent, new V1ResourceClaimConsumerReference()); + } + + public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceClaimConsumerReferenceBuilder(V1ResourceClaimConsumerReferenceFluent fluent,V1ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimConsumerReference build() { + V1ResourceClaimConsumerReference buildable = new V1ResourceClaimConsumerReference(); + 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/V1ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java new file mode 100644 index 0000000000..00e70d306b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java @@ -0,0 +1,146 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String name; + private String resource; + private String uid; + + public V1ResourceClaimConsumerReferenceFluent() { + } + + public V1ResourceClaimConsumerReferenceFluent(V1ResourceClaimConsumerReference instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1ResourceClaimConsumerReference instance) { + instance = instance != null ? instance : new V1ResourceClaimConsumerReference(); + if (instance != null) { + this.withApiGroup(instance.getApiGroup()); + this.withName(instance.getName()); + this.withResource(instance.getResource()); + this.withUid(instance.getUid()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimConsumerReferenceFluent that = (V1ResourceClaimConsumerReferenceFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; + } + + public String getApiGroup() { + return this.apiGroup; + } + + public String getName() { + return this.name; + } + + public String getResource() { + return this.resource; + } + + public String getUid() { + return this.uid; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasUid() { + return this.uid != null; + } + + public int hashCode() { + return Objects.hash(apiGroup, name, resource, uid); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + +} \ No newline at end of file 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 deleted file mode 100644 index 5dd8b62463..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimFluent.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 V1ResourceClaimFluent> extends BaseFluent{ - public V1ResourceClaimFluent() { - } - - public V1ResourceClaimFluent(V1ResourceClaim instance) { - this.copyInstance(instance); - } - private String name; - - protected void copyInstance(V1ResourceClaim instance) { - instance = (instance != null ? instance : new V1ResourceClaim()); - 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; - V1ResourceClaimFluent that = (V1ResourceClaimFluent) 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/V1ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java new file mode 100644 index 0000000000..d48dca573a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimListBuilder extends V1ResourceClaimListFluent implements VisitableBuilder{ + + V1ResourceClaimListFluent fluent; + + public V1ResourceClaimListBuilder() { + this(new V1ResourceClaimList()); + } + + public V1ResourceClaimListBuilder(V1ResourceClaimListFluent fluent) { + this(fluent, new V1ResourceClaimList()); + } + + public V1ResourceClaimListBuilder(V1ResourceClaimList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceClaimListBuilder(V1ResourceClaimListFluent fluent,V1ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimList build() { + V1ResourceClaimList buildable = new V1ResourceClaimList(); + 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/V1ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java new file mode 100644 index 0000000000..106612a91e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1ResourceClaimListFluent() { + } + + public V1ResourceClaimListFluent(V1ResourceClaimList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(ResourceV1ResourceClaim item) { + return new ItemsNested(-1, item); + } + + public A addToItems(ResourceV1ResourceClaim... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,ResourceV1ResourceClaim item) { + if (this.items == null) { + this.items = new ArrayList(); + } + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(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 ResourceV1ResourceClaim buildFirstItem() { + return this.items.get(0).build(); + } + + public ResourceV1ResourceClaim buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public ResourceV1ResourceClaim buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public ResourceV1ResourceClaim buildMatchingItem(Predicate predicate) { + for (ResourceV1ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ResourceClaimList instance) { + instance = instance != null ? instance : new V1ResourceClaimList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimListFluent that = (V1ResourceClaimListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (ResourceV1ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(ResourceV1ResourceClaim... items) { + if (this.items == null) { + return (A) this; + } + for (ResourceV1ResourceClaim item : items) { + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + ResourceV1ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,ResourceV1ResourceClaim item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,ResourceV1ResourceClaim item) { + if (this.items == null) { + this.items = new ArrayList(); + } + ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (ResourceV1ResourceClaim item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(ResourceV1ResourceClaim... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (ResourceV1ResourceClaim item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends ResourceV1ResourceClaimFluent> implements Nested{ + + ResourceV1ResourceClaimBuilder builder; + int index; + + ItemsNested(int index,ResourceV1ResourceClaim item) { + this.index = index; + this.builder = new ResourceV1ResourceClaimBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimListFluent.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/V1ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java new file mode 100644 index 0000000000..999e7f5f55 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimSpecBuilder extends V1ResourceClaimSpecFluent implements VisitableBuilder{ + + V1ResourceClaimSpecFluent fluent; + + public V1ResourceClaimSpecBuilder() { + this(new V1ResourceClaimSpec()); + } + + public V1ResourceClaimSpecBuilder(V1ResourceClaimSpecFluent fluent) { + this(fluent, new V1ResourceClaimSpec()); + } + + public V1ResourceClaimSpecBuilder(V1ResourceClaimSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceClaimSpecBuilder(V1ResourceClaimSpecFluent fluent,V1ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimSpec build() { + V1ResourceClaimSpec buildable = new V1ResourceClaimSpec(); + buildable.setDevices(fluent.buildDevices()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java new file mode 100644 index 0000000000..e4dd4227ca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimSpecFluent> extends BaseFluent{ + + private V1DeviceClaimBuilder devices; + + public V1ResourceClaimSpecFluent() { + } + + public V1ResourceClaimSpecFluent(V1ResourceClaimSpec instance) { + this.copyInstance(instance); + } + + public V1DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + protected void copyInstance(V1ResourceClaimSpec instance) { + instance = instance != null ? instance : new V1ResourceClaimSpec(); + if (instance != null) { + this.withDevices(instance.getDevices()); + } + } + + public DevicesNested editDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1DeviceClaimBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1DeviceClaim item) { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimSpecFluent that = (V1ResourceClaimSpecFluent) o; + if (!(Objects.equals(devices, that.devices))) { + return false; + } + return true; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public int hashCode() { + return Objects.hash(devices); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + } + sb.append("}"); + return sb.toString(); + } + + public A withDevices(V1DeviceClaim devices) { + this._visitables.remove("devices"); + if (devices != null) { + this.devices = new V1DeviceClaimBuilder(devices); + this._visitables.get("devices").add(this.devices); + } else { + this.devices = null; + this._visitables.get("devices").remove(this.devices); + } + return (A) this; + } + + public DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1DeviceClaim item) { + return new DevicesNested(item); + } + public class DevicesNested extends V1DeviceClaimFluent> implements Nested{ + + V1DeviceClaimBuilder builder; + + DevicesNested(V1DeviceClaim item) { + this.builder = new V1DeviceClaimBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimSpecFluent.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/V1ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..fe51c7f80f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimStatusBuilder extends V1ResourceClaimStatusFluent implements VisitableBuilder{ + + V1ResourceClaimStatusFluent fluent; + + public V1ResourceClaimStatusBuilder() { + this(new V1ResourceClaimStatus()); + } + + public V1ResourceClaimStatusBuilder(V1ResourceClaimStatusFluent fluent) { + this(fluent, new V1ResourceClaimStatus()); + } + + public V1ResourceClaimStatusBuilder(V1ResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceClaimStatusBuilder(V1ResourceClaimStatusFluent fluent,V1ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimStatus build() { + V1ResourceClaimStatus buildable = new V1ResourceClaimStatus(); + 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/V1ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java new file mode 100644 index 0000000000..146396d82c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java @@ -0,0 +1,602 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimStatusFluent> extends BaseFluent{ + + private V1AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + + public V1ResourceClaimStatusFluent() { + } + + public V1ResourceClaimStatusFluent(V1ResourceClaimStatus instance) { + this.copyInstance(instance); + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; + } + + public A addAllToReservedFor(Collection items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); + } + + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); + } + + public ReservedForNested addNewReservedForLike(V1ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); + } + + public A addToDevices(V1AllocatedDeviceStatus... items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; + } + + public A addToDevices(int index,V1AllocatedDeviceStatus item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(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 addToReservedFor(V1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); + } + return (A) this; + } + + public A addToReservedFor(int index,V1ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(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 V1AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; + } + + public V1AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1AllocatedDeviceStatus buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + + public V1AllocatedDeviceStatus buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + + public V1AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { + for (V1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; + } + + public V1ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); + } + + protected void copyInstance(V1ResourceClaimStatus instance) { + instance = instance != null ? instance : new V1ResourceClaimStatus(); + if (instance != null) { + this.withAllocation(instance.getAllocation()); + this.withDevices(instance.getDevices()); + this.withReservedFor(instance.getReservedFor()); + } + } + + public AllocationNested editAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); + } + + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(0, this.buildReservedFor(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < devices.size();i++) { + if (predicate.test(devices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public ReservedForNested editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i = 0;i < reservedFor.size();i++) { + if (predicate.test(reservedFor.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public AllocationNested editOrNewAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1AllocationResult item) { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimStatusFluent that = (V1ResourceClaimStatusFluent) o; + if (!(Objects.equals(allocation, that.allocation))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(reservedFor, that.reservedFor))) { + return false; + } + return true; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !(this.reservedFor.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocation, devices, reservedFor); + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; + } + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; + } + + public A removeAllFromReservedFor(Collection items) { + if (this.reservedFor == null) { + return (A) this; + } + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); + } + return (A) this; + } + + public A removeFromDevices(V1AllocatedDeviceStatus... items) { + if (this.devices == null) { + return (A) this; + } + for (V1AllocatedDeviceStatus item : items) { + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; + } + + public A removeFromReservedFor(V1ResourceClaimConsumerReference... items) { + if (this.reservedFor == null) { + return (A) this; + } + for (V1ResourceClaimConsumerReference item : items) { + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); + _visitables.get("reservedFor").remove(builder); + this.reservedFor.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1AllocatedDeviceStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromReservedFor(Predicate predicate) { + if (reservedFor == null) { + return (A) this; + } + Iterator each = reservedFor.iterator(); + List visitables = _visitables.get("reservedFor"); + while (each.hasNext()) { + V1ResourceClaimConsumerReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public DevicesNested setNewDeviceLike(int index,V1AllocatedDeviceStatus item) { + return new DevicesNested(index, item); + } + + public ReservedForNested setNewReservedForLike(int index,V1ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); + } + + public A setToDevices(int index,V1AllocatedDeviceStatus item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(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 setToReservedFor(int index,V1ResourceClaimConsumerReference item) { + if (this.reservedFor == null) { + this.reservedFor = new ArrayList(); + } + V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocation == null)) { + sb.append("allocation:"); + sb.append(allocation); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(reservedFor == null) && !(reservedFor.isEmpty())) { + sb.append("reservedFor:"); + sb.append(reservedFor); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocation(V1AllocationResult allocation) { + this._visitables.remove("allocation"); + if (allocation != null) { + this.allocation = new V1AllocationResultBuilder(allocation); + this._visitables.get("allocation").add(this.allocation); + } else { + this.allocation = null; + this._visitables.get("allocation").remove(this.allocation); + } + return (A) this; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1AllocatedDeviceStatus... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1AllocatedDeviceStatus item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1AllocationResult item) { + return new AllocationNested(item); + } + + public A withReservedFor(List reservedFor) { + if (this.reservedFor != null) { + this._visitables.get("reservedFor").clear(); + } + if (reservedFor != null) { + this.reservedFor = new ArrayList(); + for (V1ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } else { + this.reservedFor = null; + } + return (A) this; + } + + public A withReservedFor(V1ResourceClaimConsumerReference... reservedFor) { + if (this.reservedFor != null) { + this.reservedFor.clear(); + _visitables.remove("reservedFor"); + } + if (reservedFor != null) { + for (V1ResourceClaimConsumerReference item : reservedFor) { + this.addToReservedFor(item); + } + } + return (A) this; + } + public class AllocationNested extends V1AllocationResultFluent> implements Nested{ + + V1AllocationResultBuilder builder; + + AllocationNested(V1AllocationResult item) { + this.builder = new V1AllocationResultBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimStatusFluent.this.withAllocation(builder.build()); + } + + public N endAllocation() { + return and(); + } + + } + public class DevicesNested extends V1AllocatedDeviceStatusFluent> implements Nested{ + + V1AllocatedDeviceStatusBuilder builder; + int index; + + DevicesNested(int index,V1AllocatedDeviceStatus item) { + this.index = index; + this.builder = new V1AllocatedDeviceStatusBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimStatusFluent.this.setToDevices(index, builder.build()); + } + + public N endDevice() { + return and(); + } + + } + public class ReservedForNested extends V1ResourceClaimConsumerReferenceFluent> implements Nested{ + + V1ResourceClaimConsumerReferenceBuilder builder; + int index; + + ReservedForNested(int index,V1ResourceClaimConsumerReference item) { + this.index = index; + this.builder = new V1ResourceClaimConsumerReferenceBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimStatusFluent.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/V1ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java new file mode 100644 index 0000000000..1357e4d437 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimTemplateBuilder extends V1ResourceClaimTemplateFluent implements VisitableBuilder{ + + V1ResourceClaimTemplateFluent fluent; + + public V1ResourceClaimTemplateBuilder() { + this(new V1ResourceClaimTemplate()); + } + + public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplateFluent fluent) { + this(fluent, new V1ResourceClaimTemplate()); + } + + public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceClaimTemplateBuilder(V1ResourceClaimTemplateFluent fluent,V1ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimTemplate build() { + V1ResourceClaimTemplate buildable = new V1ResourceClaimTemplate(); + 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/V1ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java new file mode 100644 index 0000000000..baa3b27b77 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimTemplateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ResourceClaimTemplateSpecBuilder spec; + + public V1ResourceClaimTemplateFluent() { + } + + public V1ResourceClaimTemplateFluent(V1ResourceClaimTemplate instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1ResourceClaimTemplate instance) { + instance = instance != null ? instance : new V1ResourceClaimTemplate(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceClaimTemplateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ResourceClaimTemplateSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimTemplateFluent that = (V1ResourceClaimTemplateFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1ResourceClaimTemplateSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ResourceClaimTemplateSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimTemplateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1ResourceClaimTemplateSpecFluent> implements Nested{ + + V1ResourceClaimTemplateSpecBuilder builder; + + SpecNested(V1ResourceClaimTemplateSpec item) { + this.builder = new V1ResourceClaimTemplateSpecBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimTemplateFluent.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/V1ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java new file mode 100644 index 0000000000..3cfef8191d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimTemplateListBuilder extends V1ResourceClaimTemplateListFluent implements VisitableBuilder{ + + V1ResourceClaimTemplateListFluent fluent; + + public V1ResourceClaimTemplateListBuilder() { + this(new V1ResourceClaimTemplateList()); + } + + public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateListFluent fluent) { + this(fluent, new V1ResourceClaimTemplateList()); + } + + public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceClaimTemplateListBuilder(V1ResourceClaimTemplateListFluent fluent,V1ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimTemplateList build() { + V1ResourceClaimTemplateList buildable = new V1ResourceClaimTemplateList(); + 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/V1ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java new file mode 100644 index 0000000000..8e6951139d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimTemplateListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1ResourceClaimTemplateListFluent() { + } + + public V1ResourceClaimTemplateListFluent(V1ResourceClaimTemplateList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ResourceClaimTemplate item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1ResourceClaimTemplate... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1ResourceClaimTemplate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(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 V1ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ResourceClaimTemplate buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1ResourceClaimTemplate buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1ResourceClaimTemplate buildMatchingItem(Predicate predicate) { + for (V1ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ResourceClaimTemplateList instance) { + instance = instance != null ? instance : new V1ResourceClaimTemplateList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimTemplateListFluent that = (V1ResourceClaimTemplateListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ResourceClaimTemplate... items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceClaimTemplate item : items) { + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ResourceClaimTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ResourceClaimTemplate item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ResourceClaimTemplate... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ResourceClaimTemplate item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1ResourceClaimTemplateFluent> implements Nested{ + + V1ResourceClaimTemplateBuilder builder; + int index; + + ItemsNested(int index,V1ResourceClaimTemplate item) { + this.index = index; + this.builder = new V1ResourceClaimTemplateBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimTemplateListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimTemplateListFluent.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/V1ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java new file mode 100644 index 0000000000..0cf17a12fb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceClaimTemplateSpecBuilder extends V1ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + + V1ResourceClaimTemplateSpecFluent fluent; + + public V1ResourceClaimTemplateSpecBuilder() { + this(new V1ResourceClaimTemplateSpec()); + } + + public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpecFluent fluent) { + this(fluent, new V1ResourceClaimTemplateSpec()); + } + + public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceClaimTemplateSpecBuilder(V1ResourceClaimTemplateSpecFluent fluent,V1ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceClaimTemplateSpec build() { + V1ResourceClaimTemplateSpec buildable = new V1ResourceClaimTemplateSpec(); + 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/V1ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java new file mode 100644 index 0000000000..423cdee750 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java @@ -0,0 +1,189 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceClaimTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1ResourceClaimSpecBuilder spec; + + public V1ResourceClaimTemplateSpecFluent() { + } + + public V1ResourceClaimTemplateSpecFluent(V1ResourceClaimTemplateSpec instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1ResourceClaimTemplateSpec instance) { + instance = instance != null ? instance : new V1ResourceClaimTemplateSpec(); + if (instance != null) { + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ResourceClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceClaimTemplateSpecFluent that = (V1ResourceClaimTemplateSpecFluent) o; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ResourceClaimSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1ResourceClaimSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ResourceClaimSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1ResourceClaimSpecFluent> implements Nested{ + + V1ResourceClaimSpecBuilder builder; + + SpecNested(V1ResourceClaimSpec item) { + this.builder = new V1ResourceClaimSpecBuilder(this, item); + } + + public N and() { + return (N) V1ResourceClaimTemplateSpecFluent.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/V1ResourceFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java index 5c6974e022..08dbf3a2ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceFieldSelectorBuilder extends V1ResourceFieldSelectorFluent implements VisitableBuilder{ + + V1ResourceFieldSelectorFluent fluent; + public V1ResourceFieldSelectorBuilder() { this(new V1ResourceFieldSelector()); } @@ -10,17 +14,16 @@ public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent) { this(fluent, new V1ResourceFieldSelector()); } - public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent,V1ResourceFieldSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceFieldSelectorFluent fluent; + public V1ResourceFieldSelectorBuilder(V1ResourceFieldSelectorFluent fluent,V1ResourceFieldSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceFieldSelector build() { V1ResourceFieldSelector buildable = new V1ResourceFieldSelector(); buildable.setContainerName(fluent.getContainerName()); @@ -29,5 +32,4 @@ public V1ResourceFieldSelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java index 50333e3877..fb0707804f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java @@ -1,102 +1,128 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceFieldSelectorFluent> extends BaseFluent{ +public class V1ResourceFieldSelectorFluent> extends BaseFluent{ + + private String containerName; + private Quantity divisor; + private String resource; + public V1ResourceFieldSelectorFluent() { } public V1ResourceFieldSelectorFluent(V1ResourceFieldSelector instance) { this.copyInstance(instance); } - private String containerName; - private Quantity divisor; - private String resource; - + protected void copyInstance(V1ResourceFieldSelector instance) { - instance = (instance != null ? instance : new V1ResourceFieldSelector()); + instance = instance != null ? instance : new V1ResourceFieldSelector(); if (instance != null) { - this.withContainerName(instance.getContainerName()); - this.withDivisor(instance.getDivisor()); - this.withResource(instance.getResource()); - } + this.withContainerName(instance.getContainerName()); + this.withDivisor(instance.getDivisor()); + this.withResource(instance.getResource()); + } } - public String getContainerName() { - return this.containerName; - } - - public A withContainerName(String containerName) { - this.containerName = containerName; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceFieldSelectorFluent that = (V1ResourceFieldSelectorFluent) o; + if (!(Objects.equals(containerName, that.containerName))) { + return false; + } + if (!(Objects.equals(divisor, that.divisor))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + return true; } - public boolean hasContainerName() { - return this.containerName != null; + public String getContainerName() { + return this.containerName; } public Quantity getDivisor() { return this.divisor; } - public A withDivisor(Quantity divisor) { - this.divisor = divisor; - return (A) this; - } - - public boolean hasDivisor() { - return this.divisor != null; - } - - public A withNewDivisor(String value) { - return (A)withDivisor(new Quantity(value)); - } - public String getResource() { return this.resource; } - public A withResource(String resource) { - this.resource = resource; - return (A) this; + public boolean hasContainerName() { + return this.containerName != null; } - public boolean hasResource() { - return this.resource != null; + public boolean hasDivisor() { + return this.divisor != 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; - V1ResourceFieldSelectorFluent that = (V1ResourceFieldSelectorFluent) o; - if (!java.util.Objects.equals(containerName, that.containerName)) return false; - if (!java.util.Objects.equals(divisor, that.divisor)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - return true; + public boolean hasResource() { + return this.resource != null; } public int hashCode() { - return java.util.Objects.hash(containerName, divisor, resource, super.hashCode()); + return Objects.hash(containerName, divisor, resource); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (containerName != null) { sb.append("containerName:"); sb.append(containerName + ","); } - if (divisor != null) { sb.append("divisor:"); sb.append(divisor + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource); } + if (!(containerName == null)) { + sb.append("containerName:"); + sb.append(containerName); + sb.append(","); + } + if (!(divisor == null)) { + sb.append("divisor:"); + sb.append(divisor); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } sb.append("}"); return sb.toString(); } - + public A withContainerName(String containerName) { + this.containerName = containerName; + return (A) this; + } + + public A withDivisor(Quantity divisor) { + this.divisor = divisor; + return (A) this; + } + + public A withNewDivisor(String value) { + return (A) this.withDivisor(new Quantity(value)); + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + } \ No newline at end of file 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..f10659e516 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceHealthBuilder extends V1ResourceHealthFluent implements VisitableBuilder{ + + V1ResourceHealthFluent fluent; + + public V1ResourceHealthBuilder() { + this(new V1ResourceHealth()); + } + + public V1ResourceHealthBuilder(V1ResourceHealthFluent fluent) { + this(fluent, new V1ResourceHealth()); + } + + public V1ResourceHealthBuilder(V1ResourceHealth instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceHealthBuilder(V1ResourceHealthFluent fluent,V1ResourceHealth instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..c7f28eaf1d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java @@ -0,0 +1,100 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceHealthFluent> extends BaseFluent{ + + private String health; + private String resourceID; + + public V1ResourceHealthFluent() { + } + + public V1ResourceHealthFluent(V1ResourceHealth instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1ResourceHealth instance) { + instance = instance != null ? instance : new V1ResourceHealth(); + if (instance != null) { + this.withHealth(instance.getHealth()); + this.withResourceID(instance.getResourceID()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceHealthFluent that = (V1ResourceHealthFluent) o; + if (!(Objects.equals(health, that.health))) { + return false; + } + if (!(Objects.equals(resourceID, that.resourceID))) { + return false; + } + return true; + } + + public String getHealth() { + return this.health; + } + + public String getResourceID() { + return this.resourceID; + } + + public boolean hasHealth() { + return this.health != null; + } + + public boolean hasResourceID() { + return this.resourceID != null; + } + + public int hashCode() { + return Objects.hash(health, resourceID); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(health == null)) { + sb.append("health:"); + sb.append(health); + sb.append(","); + } + if (!(resourceID == null)) { + sb.append("resourceID:"); + sb.append(resourceID); + } + sb.append("}"); + return sb.toString(); + } + + public A withHealth(String health) { + this.health = health; + return (A) this; + } + + public A withResourceID(String resourceID) { + this.resourceID = resourceID; + return (A) this; + } + +} \ 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 index a92476853c..cd5a7c5eba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourcePolicyRuleBuilder extends V1ResourcePolicyRuleFluent implements VisitableBuilder{ + + V1ResourcePolicyRuleFluent fluent; + public V1ResourcePolicyRuleBuilder() { this(new V1ResourcePolicyRule()); } @@ -10,17 +14,16 @@ 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 V1ResourcePolicyRuleBuilder(V1ResourcePolicyRuleFluent fluent,V1ResourcePolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourcePolicyRule build() { V1ResourcePolicyRule buildable = new V1ResourcePolicyRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -31,5 +34,4 @@ public V1ResourcePolicyRule build() { 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 index 4d775d8be6..188e04282d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java @@ -1,199 +1,234 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; 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.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourcePolicyRuleFluent> extends BaseFluent{ - public V1ResourcePolicyRuleFluent() { - } - - public V1ResourcePolicyRuleFluent(V1ResourcePolicyRule instance) { - this.copyInstance(instance); - } +public class V1ResourcePolicyRuleFluent> extends BaseFluent{ + 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 V1ResourcePolicyRuleFluent() { } - 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 V1ResourcePolicyRuleFluent(V1ResourcePolicyRule instance) { + this.copyInstance(instance); } - + public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + 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 addAllToNamespaces(Collection items) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + for (String item : items) { + this.namespaces.add(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 A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public List getApiGroups() { - return this.apiGroups; + 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 String getApiGroup(int index) { - return this.apiGroups.get(index); + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } - public String getFirstApiGroup() { - return this.apiGroups.get(0); + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.add(index, item); + return (A) this; } - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); + public A addToNamespaces(String... items) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + for (String item : items) { + this.namespaces.add(item); + } + return (A) this; } - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return 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 boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; } - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; + 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 withApiGroups(java.lang.String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } + for (String item : items) { + this.verbs.add(item); } return (A) this; } - public boolean hasApiGroups() { - return this.apiGroups != null && !this.apiGroups.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 Boolean getClusterScope() { - return this.clusterScope; + 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 withClusterScope(Boolean clusterScope) { - this.clusterScope = clusterScope; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourcePolicyRuleFluent that = (V1ResourcePolicyRuleFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(clusterScope, that.clusterScope))) { + return false; + } + if (!(Objects.equals(namespaces, that.namespaces))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } - public boolean hasClusterScope() { - return this.clusterScope != null; + public String getApiGroup(int index) { + return this.apiGroups.get(index); } - public A addToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - this.namespaces.add(index, item); - return (A)this; + public List getApiGroups() { + return this.apiGroups; } - public A setToNamespaces(int index,String item) { - if (this.namespaces == null) {this.namespaces = new ArrayList();} - this.namespaces.set(index, item); return (A)this; + public Boolean getClusterScope() { + return this.clusterScope; } - 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 String getFirstApiGroup() { + return this.apiGroups.get(0); } - 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 String getFirstNamespace() { + return this.namespaces.get(0); } - 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 String getFirstResource() { + return this.resources.get(0); } - public A removeAllFromNamespaces(Collection items) { - if (this.namespaces == null) return (A)this; - for (String item : items) { this.namespaces.remove(item);} return (A)this; + public String getFirstVerb() { + return this.verbs.get(0); } - public List getNamespaces() { - return this.namespaces; + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); } - public String getNamespace(int index) { - return this.namespaces.get(index); + public String getLastNamespace() { + return this.namespaces.get(namespaces.size() - 1); } - public String getFirstNamespace() { - return this.namespaces.get(0); + public String getLastResource() { + return this.resources.get(resources.size() - 1); } - public String getLastNamespace() { - return this.namespaces.get(namespaces.size() - 1); + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); } - public String getMatchingNamespace(Predicate predicate) { - for (String item : namespaces) { + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return item; } @@ -201,98 +236,81 @@ public String getMatchingNamespace(Predicate predicate) { return null; } - public boolean hasMatchingNamespace(Predicate predicate) { + public String getMatchingNamespace(Predicate predicate) { for (String item : namespaces) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withNamespaces(List namespaces) { - if (namespaces != null) { - this.namespaces = new ArrayList(); - for (String item : namespaces) { - this.addToNamespaces(item); + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return 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(); + return null; } - public A addToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.add(index, item); - return (A)this; + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public A setToResources(int index,String item) { - if (this.resources == null) {this.resources = new ArrayList();} - this.resources.set(index, item); return (A)this; + public String getNamespace(int index) { + return this.namespaces.get(index); } - 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 List getNamespaces() { + return this.namespaces; } - 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 String getResource(int index) { + return this.resources.get(index); } - 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 List getResources() { + return this.resources; } - public A removeAllFromResources(Collection items) { - if (this.resources == null) return (A)this; - for (String item : items) { this.resources.remove(item);} return (A)this; + public String getVerb(int index) { + return this.verbs.get(index); } - public List getResources() { - return this.resources; + public List getVerbs() { + return this.verbs; } - public String getResource(int index) { - return this.resources.get(index); + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } - public String getFirstResource() { - return this.resources.get(0); + public boolean hasClusterScope() { + return this.clusterScope != null; } - public String getLastResource() { - return this.resources.get(resources.size() - 1); + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { + public boolean hasMatchingNamespace(Predicate predicate) { + for (String item : namespaces) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingResource(Predicate predicate) { @@ -304,98 +322,256 @@ public boolean hasMatchingResource(Predicate predicate) { return false; } - public A withResources(List resources) { - if (resources != null) { - this.resources = new ArrayList(); - for (String item : resources) { - this.addToResources(item); + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; } - } else { - this.resources = null; + } + return false; + } + + public boolean hasNamespaces() { + return this.namespaces != null && !(this.namespaces.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiGroups, clusterScope, namespaces, resources, verbs); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); } return (A) this; } - public A withResources(java.lang.String... resources) { - if (this.resources != null) { - this.resources.clear(); - _visitables.remove("resources"); + public A removeAllFromNamespaces(Collection items) { + if (this.namespaces == null) { + return (A) this; } - if (resources != null) { - for (String item : resources) { - this.addToResources(item); - } + for (String item : items) { + this.namespaces.remove(item); } return (A) this; } - public boolean hasResources() { - return this.resources != null && !this.resources.isEmpty(); + public A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } - 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 removeAllFromVerbs(Collection items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(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 removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(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 removeFromNamespaces(String... items) { + if (this.namespaces == null) { + return (A) this; + } + for (String item : items) { + this.namespaces.remove(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 removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(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 removeFromVerbs(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 A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public List getVerbs() { - return this.verbs; + public A setToNamespaces(int index,String item) { + if (this.namespaces == null) { + this.namespaces = new ArrayList(); + } + this.namespaces.set(index, item); + return (A) this; } - public String getVerb(int index) { - return this.verbs.get(index); + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public String getFirstVerb() { - return this.verbs.get(0); + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public String getLastVerb() { - return this.verbs.get(verbs.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(clusterScope == null)) { + sb.append("clusterScope:"); + sb.append(clusterScope); + sb.append(","); + } + if (!(namespaces == null) && !(namespaces.isEmpty())) { + sb.append("namespaces:"); + sb.append(namespaces); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return item; + 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(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); } - return null; + } + return (A) this; } - public boolean hasMatchingVerb(Predicate predicate) { - for (String item : verbs) { - if (predicate.test(item)) { - return true; + public A withClusterScope() { + return withClusterScope(true); + } + + public A withClusterScope(Boolean clusterScope) { + this.clusterScope = clusterScope; + return (A) this; + } + + 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(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 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(String... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (String item : resources) { + this.addToResources(item); } - return false; + } + return (A) this; } public A withVerbs(List verbs) { @@ -410,7 +586,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -423,42 +599,4 @@ public A withVerbs(java.lang.String... verbs) { 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/V1ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java new file mode 100644 index 0000000000..3291157b78 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourcePoolBuilder extends V1ResourcePoolFluent implements VisitableBuilder{ + + V1ResourcePoolFluent fluent; + + public V1ResourcePoolBuilder() { + this(new V1ResourcePool()); + } + + public V1ResourcePoolBuilder(V1ResourcePoolFluent fluent) { + this(fluent, new V1ResourcePool()); + } + + public V1ResourcePoolBuilder(V1ResourcePool instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourcePoolBuilder(V1ResourcePoolFluent fluent,V1ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourcePool build() { + V1ResourcePool buildable = new V1ResourcePool(); + 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/V1ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java new file mode 100644 index 0000000000..c506d2f6da --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java @@ -0,0 +1,124 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourcePoolFluent> extends BaseFluent{ + + private Long generation; + private String name; + private Long resourceSliceCount; + + public V1ResourcePoolFluent() { + } + + public V1ResourcePoolFluent(V1ResourcePool instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1ResourcePool instance) { + instance = instance != null ? instance : new V1ResourcePool(); + if (instance != null) { + this.withGeneration(instance.getGeneration()); + this.withName(instance.getName()); + this.withResourceSliceCount(instance.getResourceSliceCount()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourcePoolFluent that = (V1ResourcePoolFluent) o; + if (!(Objects.equals(generation, that.generation))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceSliceCount, that.resourceSliceCount))) { + return false; + } + return true; + } + + public Long getGeneration() { + return this.generation; + } + + public String getName() { + return this.name; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + + public int hashCode() { + return Objects.hash(generation, name, resourceSliceCount); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(generation == null)) { + sb.append("generation:"); + sb.append(generation); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceSliceCount == null)) { + sb.append("resourceSliceCount:"); + sb.append(resourceSliceCount); + } + sb.append("}"); + return sb.toString(); + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java index 5b506c9caa..31f87740f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceQuotaBuilder extends V1ResourceQuotaFluent implements VisitableBuilder{ + + V1ResourceQuotaFluent fluent; + public V1ResourceQuotaBuilder() { this(new V1ResourceQuota()); } @@ -10,17 +14,16 @@ public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent) { this(fluent, new V1ResourceQuota()); } - public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent,V1ResourceQuota instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceQuotaBuilder(V1ResourceQuota instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceQuotaFluent fluent; + public V1ResourceQuotaBuilder(V1ResourceQuotaFluent fluent,V1ResourceQuota instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceQuota build() { V1ResourceQuota buildable = new V1ResourceQuota(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1ResourceQuota build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java index c9e52a58eb..0a4d596c26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceQuotaFluent> extends BaseFluent{ +public class V1ResourceQuotaFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ResourceQuotaSpecBuilder spec; + private V1ResourceQuotaStatusBuilder status; + public V1ResourceQuotaFluent() { } public V1ResourceQuotaFluent(V1ResourceQuota instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ResourceQuotaSpecBuilder spec; - private V1ResourceQuotaStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ResourceQuotaSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1ResourceQuotaStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1ResourceQuota instance) { - instance = (instance != null ? instance : new V1ResourceQuota()); + instance = instance != null ? instance : new V1ResourceQuota(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceQuotaSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ResourceQuotaSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ResourceQuotaStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ResourceQuotaStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceQuotaFluent that = (V1ResourceQuotaFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1ResourceQuotaSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1ResourceQuotaSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1ResourceQuotaStatus item) { + return new StatusNested(item); } public A withSpec(V1ResourceQuotaSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1ResourceQuotaSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ResourceQuotaSpec 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 V1ResourceQuotaSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1ResourceQuotaSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1ResourceQuotaStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1ResourceQuotaStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1ResourceQuotaStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1ResourceQuotaStatus 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 V1ResourceQuotaStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ResourceQuotaStatus 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; - V1ResourceQuotaFluent that = (V1ResourceQuotaFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1ResourceQuotaFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ResourceQuotaSpecFluent> implements Nested{ + + V1ResourceQuotaSpecBuilder builder; + SpecNested(V1ResourceQuotaSpec item) { this.builder = new V1ResourceQuotaSpecBuilder(this, item); } - V1ResourceQuotaSpecBuilder builder; - + public N and() { return (N) V1ResourceQuotaFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ResourceQuotaStatusFluent> implements Nested{ + + V1ResourceQuotaStatusBuilder builder; + StatusNested(V1ResourceQuotaStatus item) { this.builder = new V1ResourceQuotaStatusBuilder(this, item); } - V1ResourceQuotaStatusBuilder builder; - + public N and() { return (N) V1ResourceQuotaFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java index 8cd33f5f94..0c9cb53174 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceQuotaListBuilder extends V1ResourceQuotaListFluent implements VisitableBuilder{ + + V1ResourceQuotaListFluent fluent; + public V1ResourceQuotaListBuilder() { this(new V1ResourceQuotaList()); } @@ -10,17 +14,16 @@ public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent) { this(fluent, new V1ResourceQuotaList()); } - public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent,V1ResourceQuotaList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceQuotaListBuilder(V1ResourceQuotaList instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceQuotaListFluent fluent; + public V1ResourceQuotaListBuilder(V1ResourceQuotaListFluent fluent,V1ResourceQuotaList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceQuotaList build() { V1ResourceQuotaList buildable = new V1ResourceQuotaList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ResourceQuotaList build() { return buildable; } - } \ 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..0b164f3f2a 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceQuotaListFluent> extends BaseFluent{ +public class V1ResourceQuotaListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ResourceQuotaListFluent() { } public V1ResourceQuotaListFluent(V1ResourceQuotaList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ResourceQuotaList instance) { - instance = (instance != null ? instance : new V1ResourceQuotaList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ResourceQuota item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ResourceQuota... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ResourceQuota item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ResourceQuota buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ResourceQuota buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { - if (this.items == null) return (A)this; - for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ResourceQuota buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ResourceQuota item : items) {V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ResourceQuota buildMatchingItem(Predicate predicate) { + for (V1ResourceQuotaBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ResourceQuotaBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ResourceQuotaList instance) { + instance = instance != null ? instance : new V1ResourceQuotaList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ResourceQuota buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ResourceQuota buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ResourceQuota buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceQuotaListFluent that = (V1ResourceQuotaListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ResourceQuota buildMatchingItem(Predicate predicate) { - for (V1ResourceQuotaBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ResourceQuota... items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceQuota item : items) { + V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ResourceQuotaBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ResourceQuota item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) { + public A withItems(V1ResourceQuota... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ResourceQuota... items) return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ResourceQuota item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ResourceQuota 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ResourceQuotaFluent> implements Nested{ - 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; - V1ResourceQuotaListFluent that = (V1ResourceQuotaListFluent) 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()); - } + V1ResourceQuotaBuilder builder; + int index; - 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 V1ResourceQuotaFluent> implements Nested{ ItemsNested(int index,V1ResourceQuota item) { this.index = index; this.builder = new V1ResourceQuotaBuilder(this, item); } - V1ResourceQuotaBuilder builder; - int index; - + public N and() { - return (N) V1ResourceQuotaListFluent.this.setToItems(index,builder.build()); + return (N) V1ResourceQuotaListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ResourceQuotaListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java index fed27b2673..c9f32e0f99 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceQuotaSpecBuilder extends V1ResourceQuotaSpecFluent implements VisitableBuilder{ + + V1ResourceQuotaSpecFluent fluent; + public V1ResourceQuotaSpecBuilder() { this(new V1ResourceQuotaSpec()); } @@ -10,17 +14,16 @@ public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent) { this(fluent, new V1ResourceQuotaSpec()); } - public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent,V1ResourceQuotaSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceQuotaSpecFluent fluent; + public V1ResourceQuotaSpecBuilder(V1ResourceQuotaSpecFluent fluent,V1ResourceQuotaSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceQuotaSpec build() { V1ResourceQuotaSpec buildable = new V1ResourceQuotaSpec(); buildable.setHard(fluent.getHard()); @@ -29,5 +32,4 @@ public V1ResourceQuotaSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java index 89bd38d08b..099b180721 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java @@ -1,182 +1,288 @@ package io.kubernetes.client.openapi.models; -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.Collection; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceQuotaSpecFluent> extends BaseFluent{ +public class V1ResourceQuotaSpecFluent> extends BaseFluent{ + + private Map hard; + private V1ScopeSelectorBuilder scopeSelector; + private List scopes; + public V1ResourceQuotaSpecFluent() { } public V1ResourceQuotaSpecFluent(V1ResourceQuotaSpec instance) { this.copyInstance(instance); } - private Map hard; - private V1ScopeSelectorBuilder scopeSelector; - private List scopes; + + public A addAllToScopes(Collection items) { + if (this.scopes == null) { + this.scopes = new ArrayList(); + } + for (String item : items) { + this.scopes.add(item); + } + return (A) this; + } - protected void copyInstance(V1ResourceQuotaSpec instance) { - instance = (instance != null ? instance : new V1ResourceQuotaSpec()); - if (instance != null) { - this.withHard(instance.getHard()); - this.withScopeSelector(instance.getScopeSelector()); - this.withScopes(instance.getScopes()); - } + public A addToHard(Map map) { + if (this.hard == null && map != null) { + this.hard = new LinkedHashMap(); + } + if (map != null) { + this.hard.putAll(map); + } + return (A) this; } public A addToHard(String key,Quantity value) { - if(this.hard == null && key != null && value != null) { this.hard = new LinkedHashMap(); } - if(key != null && value != null) {this.hard.put(key, value);} return (A)this; + if (this.hard == null && key != null && value != null) { + this.hard = new LinkedHashMap(); + } + if (key != null && value != null) { + this.hard.put(key, value); + } + return (A) this; } - public A addToHard(Map map) { - if(this.hard == null && map != null) { this.hard = new LinkedHashMap(); } - if(map != null) { this.hard.putAll(map);} return (A)this; + public A addToScopes(String... items) { + if (this.scopes == null) { + this.scopes = new ArrayList(); + } + for (String item : items) { + this.scopes.add(item); + } + return (A) this; } - public A removeFromHard(String key) { - if(this.hard == null) { return (A) this; } - if(key != null && this.hard != null) {this.hard.remove(key);} return (A)this; + public A addToScopes(int index,String item) { + if (this.scopes == null) { + this.scopes = new ArrayList(); + } + this.scopes.add(index, item); + return (A) this; } - public A removeFromHard(Map map) { - if(this.hard == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.hard != null){this.hard.remove(key);}}} return (A)this; + public V1ScopeSelector buildScopeSelector() { + return this.scopeSelector != null ? this.scopeSelector.build() : null; } - public Map getHard() { - return this.hard; + protected void copyInstance(V1ResourceQuotaSpec instance) { + instance = instance != null ? instance : new V1ResourceQuotaSpec(); + if (instance != null) { + this.withHard(instance.getHard()); + this.withScopeSelector(instance.getScopeSelector()); + this.withScopes(instance.getScopes()); + } } - public A withHard(Map hard) { - if (hard == null) { - this.hard = null; - } else { - this.hard = new LinkedHashMap(hard); - } - return (A) this; + public ScopeSelectorNested editOrNewScopeSelector() { + return this.withNewScopeSelectorLike(Optional.ofNullable(this.buildScopeSelector()).orElse(new V1ScopeSelectorBuilder().build())); } - public boolean hasHard() { - return this.hard != null; + public ScopeSelectorNested editOrNewScopeSelectorLike(V1ScopeSelector item) { + return this.withNewScopeSelectorLike(Optional.ofNullable(this.buildScopeSelector()).orElse(item)); } - public V1ScopeSelector buildScopeSelector() { - return this.scopeSelector != null ? this.scopeSelector.build() : null; + public ScopeSelectorNested editScopeSelector() { + return this.withNewScopeSelectorLike(Optional.ofNullable(this.buildScopeSelector()).orElse(null)); } - public A withScopeSelector(V1ScopeSelector scopeSelector) { - this._visitables.remove("scopeSelector"); - if (scopeSelector != null) { - this.scopeSelector = new V1ScopeSelectorBuilder(scopeSelector); - this._visitables.get("scopeSelector").add(this.scopeSelector); - } else { - this.scopeSelector = null; - this._visitables.get("scopeSelector").remove(this.scopeSelector); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceQuotaSpecFluent that = (V1ResourceQuotaSpecFluent) o; + if (!(Objects.equals(hard, that.hard))) { + return false; + } + if (!(Objects.equals(scopeSelector, that.scopeSelector))) { + return false; + } + if (!(Objects.equals(scopes, that.scopes))) { + return false; + } + return true; } - public boolean hasScopeSelector() { - return this.scopeSelector != null; + public String getFirstScope() { + return this.scopes.get(0); } - public ScopeSelectorNested withNewScopeSelector() { - return new ScopeSelectorNested(null); + public Map getHard() { + return this.hard; } - public ScopeSelectorNested withNewScopeSelectorLike(V1ScopeSelector item) { - return new ScopeSelectorNested(item); + public String getLastScope() { + return this.scopes.get(scopes.size() - 1); } - public ScopeSelectorNested editScopeSelector() { - return withNewScopeSelectorLike(java.util.Optional.ofNullable(buildScopeSelector()).orElse(null)); + public String getMatchingScope(Predicate predicate) { + for (String item : scopes) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public ScopeSelectorNested editOrNewScopeSelector() { - return withNewScopeSelectorLike(java.util.Optional.ofNullable(buildScopeSelector()).orElse(new V1ScopeSelectorBuilder().build())); + public String getScope(int index) { + return this.scopes.get(index); } - public ScopeSelectorNested editOrNewScopeSelectorLike(V1ScopeSelector item) { - return withNewScopeSelectorLike(java.util.Optional.ofNullable(buildScopeSelector()).orElse(item)); + public List getScopes() { + return this.scopes; } - public A addToScopes(int index,String item) { - if (this.scopes == null) {this.scopes = new ArrayList();} - this.scopes.add(index, item); - return (A)this; + public boolean hasHard() { + return this.hard != null; } - public A setToScopes(int index,String item) { - if (this.scopes == null) {this.scopes = new ArrayList();} - this.scopes.set(index, item); return (A)this; + public boolean hasMatchingScope(Predicate predicate) { + for (String item : scopes) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToScopes(java.lang.String... items) { - if (this.scopes == null) {this.scopes = new ArrayList();} - for (String item : items) {this.scopes.add(item);} return (A)this; + public boolean hasScopeSelector() { + return this.scopeSelector != null; } - public A addAllToScopes(Collection items) { - if (this.scopes == null) {this.scopes = new ArrayList();} - for (String item : items) {this.scopes.add(item);} return (A)this; + public boolean hasScopes() { + return this.scopes != null && !(this.scopes.isEmpty()); } - public A removeFromScopes(java.lang.String... items) { - if (this.scopes == null) return (A)this; - for (String item : items) { this.scopes.remove(item);} return (A)this; + public int hashCode() { + return Objects.hash(hard, scopeSelector, scopes); } public A removeAllFromScopes(Collection items) { - if (this.scopes == null) return (A)this; - for (String item : items) { this.scopes.remove(item);} return (A)this; + if (this.scopes == null) { + return (A) this; + } + for (String item : items) { + this.scopes.remove(item); + } + return (A) this; } - public List getScopes() { - return this.scopes; + public A removeFromHard(String key) { + if (this.hard == null) { + return (A) this; + } + if (key != null && this.hard != null) { + this.hard.remove(key); + } + return (A) this; } - public String getScope(int index) { - return this.scopes.get(index); + public A removeFromHard(Map map) { + if (this.hard == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.hard != null) { + this.hard.remove(key); + } + } + } + return (A) this; } - public String getFirstScope() { - return this.scopes.get(0); + public A removeFromScopes(String... items) { + if (this.scopes == null) { + return (A) this; + } + for (String item : items) { + this.scopes.remove(item); + } + return (A) this; } - public String getLastScope() { - return this.scopes.get(scopes.size() - 1); + public A setToScopes(int index,String item) { + if (this.scopes == null) { + this.scopes = new ArrayList(); + } + this.scopes.set(index, item); + return (A) this; } - public String getMatchingScope(Predicate predicate) { - for (String item : scopes) { - if (predicate.test(item)) { - return item; - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hard == null) && !(hard.isEmpty())) { + sb.append("hard:"); + sb.append(hard); + sb.append(","); + } + if (!(scopeSelector == null)) { + sb.append("scopeSelector:"); + sb.append(scopeSelector); + sb.append(","); + } + if (!(scopes == null) && !(scopes.isEmpty())) { + sb.append("scopes:"); + sb.append(scopes); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingScope(Predicate predicate) { - for (String item : scopes) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withHard(Map hard) { + if (hard == null) { + this.hard = null; + } else { + this.hard = new LinkedHashMap(hard); + } + return (A) this; + } + + public ScopeSelectorNested withNewScopeSelector() { + return new ScopeSelectorNested(null); + } + + public ScopeSelectorNested withNewScopeSelectorLike(V1ScopeSelector item) { + return new ScopeSelectorNested(item); + } + + public A withScopeSelector(V1ScopeSelector scopeSelector) { + this._visitables.remove("scopeSelector"); + if (scopeSelector != null) { + this.scopeSelector = new V1ScopeSelectorBuilder(scopeSelector); + this._visitables.get("scopeSelector").add(this.scopeSelector); + } else { + this.scopeSelector = null; + this._visitables.get("scopeSelector").remove(this.scopeSelector); + } + return (A) this; } public A withScopes(List scopes) { @@ -191,7 +297,7 @@ public A withScopes(List scopes) { return (A) this; } - public A withScopes(java.lang.String... scopes) { + public A withScopes(String... scopes) { if (this.scopes != null) { this.scopes.clear(); _visitables.remove("scopes"); @@ -203,41 +309,14 @@ public A withScopes(java.lang.String... scopes) { } return (A) this; } + public class ScopeSelectorNested extends V1ScopeSelectorFluent> implements Nested{ - public boolean hasScopes() { - return this.scopes != null && !this.scopes.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; - V1ResourceQuotaSpecFluent that = (V1ResourceQuotaSpecFluent) o; - if (!java.util.Objects.equals(hard, that.hard)) return false; - if (!java.util.Objects.equals(scopeSelector, that.scopeSelector)) return false; - if (!java.util.Objects.equals(scopes, that.scopes)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(hard, scopeSelector, scopes, super.hashCode()); - } + V1ScopeSelectorBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (hard != null && !hard.isEmpty()) { sb.append("hard:"); sb.append(hard + ","); } - if (scopeSelector != null) { sb.append("scopeSelector:"); sb.append(scopeSelector + ","); } - if (scopes != null && !scopes.isEmpty()) { sb.append("scopes:"); sb.append(scopes); } - sb.append("}"); - return sb.toString(); - } - public class ScopeSelectorNested extends V1ScopeSelectorFluent> implements Nested{ ScopeSelectorNested(V1ScopeSelector item) { this.builder = new V1ScopeSelectorBuilder(this, item); } - V1ScopeSelectorBuilder builder; - + public N and() { return (N) V1ResourceQuotaSpecFluent.this.withScopeSelector(builder.build()); } @@ -246,7 +325,5 @@ public N endScopeSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java index 300a780578..ef4a90c439 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceQuotaStatusBuilder extends V1ResourceQuotaStatusFluent implements VisitableBuilder{ + + V1ResourceQuotaStatusFluent fluent; + public V1ResourceQuotaStatusBuilder() { this(new V1ResourceQuotaStatus()); } @@ -10,17 +14,16 @@ public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent) { this(fluent, new V1ResourceQuotaStatus()); } - public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent,V1ResourceQuotaStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceQuotaStatusFluent fluent; + public V1ResourceQuotaStatusBuilder(V1ResourceQuotaStatusFluent fluent,V1ResourceQuotaStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceQuotaStatus build() { V1ResourceQuotaStatus buildable = new V1ResourceQuotaStatus(); buildable.setHard(fluent.getHard()); @@ -28,5 +31,4 @@ public V1ResourceQuotaStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java index 29f673841e..316116ae77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java @@ -1,131 +1,199 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceQuotaStatusFluent> extends BaseFluent{ +public class V1ResourceQuotaStatusFluent> extends BaseFluent{ + + private Map hard; + private Map used; + public V1ResourceQuotaStatusFluent() { } public V1ResourceQuotaStatusFluent(V1ResourceQuotaStatus instance) { this.copyInstance(instance); } - private Map hard; - private Map used; - - protected void copyInstance(V1ResourceQuotaStatus instance) { - instance = (instance != null ? instance : new V1ResourceQuotaStatus()); - if (instance != null) { - this.withHard(instance.getHard()); - this.withUsed(instance.getUsed()); - } + + public A addToHard(Map map) { + if (this.hard == null && map != null) { + this.hard = new LinkedHashMap(); + } + if (map != null) { + this.hard.putAll(map); + } + return (A) this; } public A addToHard(String key,Quantity value) { - if(this.hard == null && key != null && value != null) { this.hard = new LinkedHashMap(); } - if(key != null && value != null) {this.hard.put(key, value);} return (A)this; + if (this.hard == null && key != null && value != null) { + this.hard = new LinkedHashMap(); + } + if (key != null && value != null) { + this.hard.put(key, value); + } + return (A) this; } - public A addToHard(Map map) { - if(this.hard == null && map != null) { this.hard = new LinkedHashMap(); } - if(map != null) { this.hard.putAll(map);} return (A)this; + public A addToUsed(Map map) { + if (this.used == null && map != null) { + this.used = new LinkedHashMap(); + } + if (map != null) { + this.used.putAll(map); + } + return (A) this; } - public A removeFromHard(String key) { - if(this.hard == null) { return (A) this; } - if(key != null && this.hard != null) {this.hard.remove(key);} return (A)this; + public A addToUsed(String key,Quantity value) { + if (this.used == null && key != null && value != null) { + this.used = new LinkedHashMap(); + } + if (key != null && value != null) { + this.used.put(key, value); + } + return (A) this; } - public A removeFromHard(Map map) { - if(this.hard == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.hard != null){this.hard.remove(key);}}} return (A)this; + protected void copyInstance(V1ResourceQuotaStatus instance) { + instance = instance != null ? instance : new V1ResourceQuotaStatus(); + if (instance != null) { + this.withHard(instance.getHard()); + this.withUsed(instance.getUsed()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceQuotaStatusFluent that = (V1ResourceQuotaStatusFluent) o; + if (!(Objects.equals(hard, that.hard))) { + return false; + } + if (!(Objects.equals(used, that.used))) { + return false; + } + return true; } public Map getHard() { return this.hard; } - public A withHard(Map hard) { - if (hard == null) { - this.hard = null; - } else { - this.hard = new LinkedHashMap(hard); - } - return (A) this; + public Map getUsed() { + return this.used; } public boolean hasHard() { return this.hard != null; } - public A addToUsed(String key,Quantity value) { - if(this.used == null && key != null && value != null) { this.used = new LinkedHashMap(); } - if(key != null && value != null) {this.used.put(key, value);} return (A)this; - } - - public A addToUsed(Map map) { - if(this.used == null && map != null) { this.used = new LinkedHashMap(); } - if(map != null) { this.used.putAll(map);} return (A)this; - } - - public A removeFromUsed(String key) { - if(this.used == null) { return (A) this; } - if(key != null && this.used != null) {this.used.remove(key);} return (A)this; - } - - public A removeFromUsed(Map map) { - if(this.used == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.used != null){this.used.remove(key);}}} return (A)this; + public boolean hasUsed() { + return this.used != null; } - public Map getUsed() { - return this.used; + public int hashCode() { + return Objects.hash(hard, used); } - public A withUsed(Map used) { - if (used == null) { - this.used = null; - } else { - this.used = new LinkedHashMap(used); + public A removeFromHard(String key) { + if (this.hard == null) { + return (A) this; + } + if (key != null && this.hard != null) { + this.hard.remove(key); } return (A) this; } - public boolean hasUsed() { - return this.used != null; + public A removeFromHard(Map map) { + if (this.hard == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.hard != null) { + this.hard.remove(key); + } + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ResourceQuotaStatusFluent that = (V1ResourceQuotaStatusFluent) o; - if (!java.util.Objects.equals(hard, that.hard)) return false; - if (!java.util.Objects.equals(used, that.used)) return false; - return true; + public A removeFromUsed(String key) { + if (this.used == null) { + return (A) this; + } + if (key != null && this.used != null) { + this.used.remove(key); + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(hard, used, super.hashCode()); + public A removeFromUsed(Map map) { + if (this.used == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.used != null) { + this.used.remove(key); + } + } + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (hard != null && !hard.isEmpty()) { sb.append("hard:"); sb.append(hard + ","); } - if (used != null && !used.isEmpty()) { sb.append("used:"); sb.append(used); } + if (!(hard == null) && !(hard.isEmpty())) { + sb.append("hard:"); + sb.append(hard); + sb.append(","); + } + if (!(used == null) && !(used.isEmpty())) { + sb.append("used:"); + sb.append(used); + } sb.append("}"); return sb.toString(); } - + public A withHard(Map hard) { + if (hard == null) { + this.hard = null; + } else { + this.hard = new LinkedHashMap(hard); + } + return (A) this; + } + + public A withUsed(Map used) { + if (used == null) { + this.used = null; + } else { + this.used = new LinkedHashMap(used); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java index ac2778937a..d30a5056b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceRequirementsBuilder extends V1ResourceRequirementsFluent implements VisitableBuilder{ + + V1ResourceRequirementsFluent fluent; + public V1ResourceRequirementsBuilder() { this(new V1ResourceRequirements()); } @@ -10,17 +14,16 @@ public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent) { this(fluent, new V1ResourceRequirements()); } - public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent,V1ResourceRequirements instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceRequirementsBuilder(V1ResourceRequirements instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceRequirementsFluent fluent; + public V1ResourceRequirementsBuilder(V1ResourceRequirementsFluent fluent,V1ResourceRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceRequirements build() { V1ResourceRequirements buildable = new V1ResourceRequirements(); buildable.setClaims(fluent.buildClaims()); @@ -29,5 +32,4 @@ public V1ResourceRequirements build() { return buildable; } - } \ No newline at end of file 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..fa361f4cbc 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 @@ -1,110 +1,144 @@ 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 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.Collection; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceRequirementsFluent> extends BaseFluent{ +public class V1ResourceRequirementsFluent> extends BaseFluent{ + + private ArrayList claims; + private Map limits; + private Map requests; + public V1ResourceRequirementsFluent() { } public V1ResourceRequirementsFluent(V1ResourceRequirements instance) { this.copyInstance(instance); } - private ArrayList claims; - private Map limits; - private Map requests; - - protected void copyInstance(V1ResourceRequirements instance) { - instance = (instance != null ? instance : new V1ResourceRequirements()); - if (instance != null) { - this.withClaims(instance.getClaims()); - this.withLimits(instance.getLimits()); - this.withRequests(instance.getRequests()); - } + + public A addAllToClaims(Collection items) { + if (this.claims == null) { + this.claims = new ArrayList(); + } + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").add(builder); + this.claims.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public ClaimsNested addNewClaim() { + return new ClaimsNested(-1, null); } - 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);} - return (A)this; + public ClaimsNested addNewClaimLike(CoreV1ResourceClaim item) { + return new ClaimsNested(-1, item); } - public A addToClaims(io.kubernetes.client.openapi.models.V1ResourceClaim... items) { - if (this.claims == null) {this.claims = new ArrayList();} - for (V1ResourceClaim item : items) {V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item);_visitables.get("claims").add(builder);this.claims.add(builder);} return (A)this; + public A addToClaims(CoreV1ResourceClaim... items) { + if (this.claims == null) { + this.claims = new ArrayList(); + } + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").add(builder); + this.claims.add(builder); + } + return (A) this; } - public A addAllToClaims(Collection items) { - if (this.claims == null) {this.claims = new ArrayList();} - for (V1ResourceClaim item : items) {V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item);_visitables.get("claims").add(builder);this.claims.add(builder);} return (A)this; + public A addToClaims(int index,CoreV1ResourceClaim item) { + if (this.claims == null) { + this.claims = new ArrayList(); + } + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + 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 removeFromClaims(io.kubernetes.client.openapi.models.V1ResourceClaim... items) { - if (this.claims == null) return (A)this; - for (V1ResourceClaim item : items) {V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item);_visitables.get("claims").remove(builder); this.claims.remove(builder);} 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 removeAllFromClaims(Collection items) { - if (this.claims == null) return (A)this; - for (V1ResourceClaim item : items) {V1ResourceClaimBuilder builder = new V1ResourceClaimBuilder(item);_visitables.get("claims").remove(builder); this.claims.remove(builder);} return (A)this; + 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 removeMatchingFromClaims(Predicate predicate) { - if (claims == null) return (A) this; - final Iterator each = claims.iterator(); - final List visitables = _visitables.get("claims"); - while (each.hasNext()) { - V1ResourceClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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; + return (A) this; } - public List buildClaims() { - return this.claims != null ? build(claims) : 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 V1ResourceClaim buildClaim(int index) { + public CoreV1ResourceClaim buildClaim(int index) { return this.claims.get(index).build(); } - public V1ResourceClaim buildFirstClaim() { + public List buildClaims() { + return this.claims != null ? build(claims) : null; + } + + public CoreV1ResourceClaim buildFirstClaim() { return this.claims.get(0).build(); } - public V1ResourceClaim buildLastClaim() { + public CoreV1ResourceClaim buildLastClaim() { return this.claims.get(claims.size() - 1).build(); } - public V1ResourceClaim buildMatchingClaim(Predicate predicate) { - for (V1ResourceClaimBuilder item : claims) { + public CoreV1ResourceClaim buildMatchingClaim(Predicate predicate) { + for (CoreV1ResourceClaimBuilder item : claims) { if (predicate.test(item)) { return item.build(); } @@ -112,143 +146,270 @@ public V1ResourceClaim buildMatchingClaim(Predicate pred return null; } - public boolean hasMatchingClaim(Predicate predicate) { - for (V1ResourceClaimBuilder item : claims) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1ResourceRequirements instance) { + instance = instance != null ? instance : new V1ResourceRequirements(); + if (instance != null) { + this.withClaims(instance.getClaims()); + this.withLimits(instance.getLimits()); + this.withRequests(instance.getRequests()); + } } - public A withClaims(List claims) { - if (this.claims != null) { - this._visitables.get("claims").clear(); + public ClaimsNested editClaim(int index) { + if (claims.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "claims")); } - if (claims != null) { - this.claims = new ArrayList(); - for (V1ResourceClaim item : claims) { - this.addToClaims(item); - } - } else { - this.claims = null; + return this.setNewClaimLike(index, this.buildClaim(index)); + } + + public ClaimsNested editFirstClaim() { + if (claims.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "claims")); } - return (A) this; + return this.setNewClaimLike(0, this.buildClaim(0)); } - public A withClaims(io.kubernetes.client.openapi.models.V1ResourceClaim... claims) { - if (this.claims != null) { - this.claims.clear(); - _visitables.remove("claims"); + public ClaimsNested editLastClaim() { + int index = claims.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "claims")); } - if (claims != null) { - for (V1ResourceClaim item : claims) { - this.addToClaims(item); + return this.setNewClaimLike(index, this.buildClaim(index)); + } + + public ClaimsNested editMatchingClaim(Predicate predicate) { + int index = -1; + for (int i = 0;i < claims.size();i++) { + if (predicate.test(claims.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "claims")); + } + return this.setNewClaimLike(index, this.buildClaim(index)); } - public boolean hasClaims() { - return this.claims != null && !this.claims.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceRequirementsFluent that = (V1ResourceRequirementsFluent) o; + if (!(Objects.equals(claims, that.claims))) { + return false; + } + if (!(Objects.equals(limits, that.limits))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; } - public ClaimsNested addNewClaim() { - return new ClaimsNested(-1, null); + public Map getLimits() { + return this.limits; } - public ClaimsNested addNewClaimLike(V1ResourceClaim item) { - return new ClaimsNested(-1, item); + public Map getRequests() { + return this.requests; } - public ClaimsNested setNewClaimLike(int index,V1ResourceClaim item) { - return new ClaimsNested(index, item); + public boolean hasClaims() { + return this.claims != null && !(this.claims.isEmpty()); } - public ClaimsNested editClaim(int index) { - if (claims.size() <= index) throw new RuntimeException("Can't edit claims. Index exceeds size."); - return setNewClaimLike(index, buildClaim(index)); + public boolean hasLimits() { + return this.limits != null; } - public ClaimsNested editFirstClaim() { - if (claims.size() == 0) throw new RuntimeException("Can't edit first claims. The list is empty."); - return setNewClaimLike(0, buildClaim(0)); + public boolean hasMatchingClaim(Predicate predicate) { + for (CoreV1ResourceClaimBuilder item : claims) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public ClaimsNested editLastClaim() { - int index = claims.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last claims. The list is empty."); - return setNewClaimLike(index, buildClaim(index)); + public boolean hasRequests() { + return this.requests != null; } - public ClaimsNested editMatchingClaim(Predicate predicate) { - int index = -1; - for (int i=0;i items) { + if (this.claims == null) { + return (A) this; + } + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").remove(builder); + this.claims.remove(builder); + } + 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 removeFromClaims(CoreV1ResourceClaim... items) { + if (this.claims == null) { + return (A) this; + } + for (CoreV1ResourceClaim item : items) { + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + _visitables.get("claims").remove(builder); + this.claims.remove(builder); + } + 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; + 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; + 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 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 withLimits(Map limits) { - if (limits == null) { - this.limits = null; - } else { - this.limits = new LinkedHashMap(limits); + 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 boolean hasLimits() { - return this.limits != null; + public A removeMatchingFromClaims(Predicate predicate) { + if (claims == null) { + return (A) this; + } + Iterator each = claims.iterator(); + List visitables = _visitables.get("claims"); + while (each.hasNext()) { + CoreV1ResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - 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 ClaimsNested setNewClaimLike(int index,CoreV1ResourceClaim item) { + return new ClaimsNested(index, item); } - 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 setToClaims(int index,CoreV1ResourceClaim item) { + if (this.claims == null) { + this.claims = new ArrayList(); + } + CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); + 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; } - 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(claims == null) && !(claims.isEmpty())) { + sb.append("claims:"); + sb.append(claims); + sb.append(","); + } + if (!(limits == null) && !(limits.isEmpty())) { + sb.append("limits:"); + sb.append(limits); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); } - 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 A withClaims(List claims) { + if (this.claims != null) { + this._visitables.get("claims").clear(); + } + if (claims != null) { + this.claims = new ArrayList(); + for (CoreV1ResourceClaim item : claims) { + this.addToClaims(item); + } + } else { + this.claims = null; + } + return (A) this; } - public Map getRequests() { - return this.requests; + public A withClaims(CoreV1ResourceClaim... claims) { + if (this.claims != null) { + this.claims.clear(); + _visitables.remove("claims"); + } + if (claims != null) { + for (CoreV1ResourceClaim item : claims) { + this.addToClaims(item); + } + } + return (A) this; + } + + public A withLimits(Map limits) { + if (limits == null) { + this.limits = null; + } else { + this.limits = new LinkedHashMap(limits); + } + return (A) this; } public A withRequests(Map requests) { @@ -259,52 +420,23 @@ public A withRequests(Map requests) { } return (A) this; } + public class ClaimsNested extends CoreV1ResourceClaimFluent> implements Nested{ - 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; - V1ResourceRequirementsFluent that = (V1ResourceRequirementsFluent) o; - if (!java.util.Objects.equals(claims, that.claims)) return false; - 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(claims, limits, requests, super.hashCode()); - } + CoreV1ResourceClaimBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (claims != null && !claims.isEmpty()) { sb.append("claims:"); sb.append(claims + ","); } - 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(); - } - public class ClaimsNested extends V1ResourceClaimFluent> implements Nested{ - ClaimsNested(int index,V1ResourceClaim item) { + ClaimsNested(int index,CoreV1ResourceClaim item) { this.index = index; - this.builder = new V1ResourceClaimBuilder(this, item); + this.builder = new CoreV1ResourceClaimBuilder(this, item); } - V1ResourceClaimBuilder builder; - int index; - + public N and() { - return (N) V1ResourceRequirementsFluent.this.setToClaims(index,builder.build()); + return (N) V1ResourceRequirementsFluent.this.setToClaims(index, builder.build()); } public N endClaim() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java index 3c8a999f6c..66d806f284 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ResourceRuleBuilder extends V1ResourceRuleFluent implements VisitableBuilder{ + + V1ResourceRuleFluent fluent; + public V1ResourceRuleBuilder() { this(new V1ResourceRule()); } @@ -10,17 +14,16 @@ public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent) { this(fluent, new V1ResourceRule()); } - public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent,V1ResourceRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ResourceRuleBuilder(V1ResourceRule instance) { this.fluent = this; this.copyInstance(instance); } - V1ResourceRuleFluent fluent; + public V1ResourceRuleBuilder(V1ResourceRuleFluent fluent,V1ResourceRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ResourceRule build() { V1ResourceRule buildable = new V1ResourceRule(); buildable.setApiGroups(fluent.getApiGroups()); @@ -30,5 +33,4 @@ public V1ResourceRule build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java index fa3711d9af..99cdb77397 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java @@ -1,87 +1,222 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ResourceRuleFluent> extends BaseFluent{ +public class V1ResourceRuleFluent> extends BaseFluent{ + + private List apiGroups; + private List resourceNames; + private List resources; + private List verbs; + public V1ResourceRuleFluent() { } public V1ResourceRuleFluent(V1ResourceRule instance) { this.copyInstance(instance); } - private List apiGroups; - private List resourceNames; - private List resources; - private List verbs; + + public A addAllToApiGroups(Collection items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; + } - protected void copyInstance(V1ResourceRule instance) { - instance = (instance != null ? instance : new V1ResourceRule()); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withResourceNames(instance.getResourceNames()); - this.withResources(instance.getResources()); - this.withVerbs(instance.getVerbs()); - } + 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 addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.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 addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + 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 addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(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 addToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.add(index, 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 addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.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 addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.add(index, 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 A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; } - public List getApiGroups() { - return this.apiGroups; + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; + } + + protected void copyInstance(V1ResourceRule instance) { + instance = instance != null ? instance : new V1ResourceRule(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withResourceNames(instance.getResourceNames()); + this.withResources(instance.getResources()); + this.withVerbs(instance.getVerbs()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceRuleFluent that = (V1ResourceRuleFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; } public String getApiGroup(int index) { return this.apiGroups.get(index); } + public List getApiGroups() { + return this.apiGroups; + } + public String getFirstApiGroup() { return this.apiGroups.get(0); } + public String getFirstResource() { + return this.resources.get(0); + } + + public String getFirstResourceName() { + return this.resourceNames.get(0); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + public String getMatchingApiGroup(Predicate predicate) { for (String item : apiGroups) { if (predicate.test(item)) { @@ -91,98 +226,77 @@ public String getMatchingApiGroup(Predicate predicate) { return null; } - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return 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 addToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - this.resourceNames.add(index, item); - return (A)this; + return null; } - public A setToResourceNames(int index,String item) { - if (this.resourceNames == null) {this.resourceNames = new ArrayList();} - this.resourceNames.set(index, item); return (A)this; + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; } - 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 String getResource(int index) { + return this.resources.get(index); } - 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 String getResourceName(int index) { + return this.resourceNames.get(index); } - 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 List getResourceNames() { + return this.resourceNames; } - 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 getResources() { + return this.resources; } - public List getResourceNames() { - return this.resourceNames; + public String getVerb(int index) { + return this.verbs.get(index); } - public String getResourceName(int index) { - return this.resourceNames.get(index); + public List getVerbs() { + return this.verbs; } - public String getFirstResourceName() { - return this.resourceNames.get(0); + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } - public String getLastResourceName() { - return this.resourceNames.get(resourceNames.size() - 1); + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getMatchingResourceName(Predicate predicate) { - for (String item : resourceNames) { + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingResourceName(Predicate predicate) { @@ -194,98 +308,217 @@ public boolean hasMatchingResourceName(Predicate predicate) { return false; } - public A withResourceNames(List resourceNames) { - if (resourceNames != null) { - this.resourceNames = new ArrayList(); - for (String item : resourceNames) { - this.addToResourceNames(item); + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; } - } else { - this.resourceNames = null; + } + return false; + } + + public boolean hasResourceNames() { + return this.resourceNames != null && !(this.resourceNames.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiGroups, resourceNames, resources, verbs); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); } return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { - if (this.resourceNames != null) { - this.resourceNames.clear(); - _visitables.remove("resourceNames"); + public A removeAllFromResourceNames(Collection items) { + if (this.resourceNames == null) { + return (A) this; } - if (resourceNames != null) { - for (String item : resourceNames) { - this.addToResourceNames(item); - } + for (String item : items) { + this.resourceNames.remove(item); } return (A) this; } - public boolean hasResourceNames() { - return this.resourceNames != null && !this.resourceNames.isEmpty(); + public A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; } - 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 removeAllFromVerbs(Collection items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(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 removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(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 removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(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(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(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 removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.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 A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public List getResources() { - return this.resources; + public A setToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(index, item); + return (A) this; } - public String getResource(int index) { - return this.resources.get(index); + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public String getFirstResource() { - return this.resources.get(0); + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; } - public String getLastResource() { - return this.resources.get(resources.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; + 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(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); } - return null; + } + return (A) this; } - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; + 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(String... resourceNames) { + if (this.resourceNames != null) { + this.resourceNames.clear(); + _visitables.remove("resourceNames"); + } + if (resourceNames != null) { + for (String item : resourceNames) { + this.addToResourceNames(item); } - return false; + } + return (A) this; } public A withResources(List resources) { @@ -300,7 +533,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -313,75 +546,6 @@ public A withResources(java.lang.String... resources) { 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(); @@ -394,7 +558,7 @@ public A withVerbs(List verbs) { return (A) this; } - public A withVerbs(java.lang.String... verbs) { + public A withVerbs(String... verbs) { if (this.verbs != null) { this.verbs.clear(); _visitables.remove("verbs"); @@ -407,36 +571,4 @@ public A withVerbs(java.lang.String... verbs) { 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; - V1ResourceRuleFluent that = (V1ResourceRuleFluent) o; - if (!java.util.Objects.equals(apiGroups, that.apiGroups)) 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(verbs, that.verbs)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiGroups, resourceNames, 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 (resourceNames != null && !resourceNames.isEmpty()) { sb.append("resourceNames:"); sb.append(resourceNames + ","); } - 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(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java new file mode 100644 index 0000000000..df7c304f68 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceSliceBuilder extends V1ResourceSliceFluent implements VisitableBuilder{ + + V1ResourceSliceFluent fluent; + + public V1ResourceSliceBuilder() { + this(new V1ResourceSlice()); + } + + public V1ResourceSliceBuilder(V1ResourceSliceFluent fluent) { + this(fluent, new V1ResourceSlice()); + } + + public V1ResourceSliceBuilder(V1ResourceSlice instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceSliceBuilder(V1ResourceSliceFluent fluent,V1ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceSlice build() { + V1ResourceSlice buildable = new V1ResourceSlice(); + 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/V1ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java new file mode 100644 index 0000000000..9f95e13891 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceSliceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ResourceSliceSpecBuilder spec; + + public V1ResourceSliceFluent() { + } + + public V1ResourceSliceFluent(V1ResourceSlice instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1ResourceSlice instance) { + instance = instance != null ? instance : new V1ResourceSlice(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ResourceSliceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ResourceSliceSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceSliceFluent that = (V1ResourceSliceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ResourceSliceSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1ResourceSliceSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1ResourceSliceSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1ResourceSliceFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1ResourceSliceSpecFluent> implements Nested{ + + V1ResourceSliceSpecBuilder builder; + + SpecNested(V1ResourceSliceSpec item) { + this.builder = new V1ResourceSliceSpecBuilder(this, item); + } + + public N and() { + return (N) V1ResourceSliceFluent.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/V1ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java new file mode 100644 index 0000000000..06535278b5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceSliceListBuilder extends V1ResourceSliceListFluent implements VisitableBuilder{ + + V1ResourceSliceListFluent fluent; + + public V1ResourceSliceListBuilder() { + this(new V1ResourceSliceList()); + } + + public V1ResourceSliceListBuilder(V1ResourceSliceListFluent fluent) { + this(fluent, new V1ResourceSliceList()); + } + + public V1ResourceSliceListBuilder(V1ResourceSliceList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceSliceListBuilder(V1ResourceSliceListFluent fluent,V1ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceSliceList build() { + V1ResourceSliceList buildable = new V1ResourceSliceList(); + 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/V1ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java new file mode 100644 index 0000000000..561bb6bcad --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceSliceListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1ResourceSliceListFluent() { + } + + public V1ResourceSliceListFluent(V1ResourceSliceList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ResourceSlice item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1ResourceSlice... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1ResourceSlice item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(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 V1ResourceSlice buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ResourceSlice buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1ResourceSlice buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1ResourceSlice buildMatchingItem(Predicate predicate) { + for (V1ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ResourceSliceList instance) { + instance = instance != null ? instance : new V1ResourceSliceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceSliceListFluent that = (V1ResourceSliceListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ResourceSlice... items) { + if (this.items == null) { + return (A) this; + } + for (V1ResourceSlice item : items) { + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ResourceSliceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ResourceSlice item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1ResourceSlice item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1ResourceSlice item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1ResourceSlice... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1ResourceSlice item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1ResourceSliceFluent> implements Nested{ + + V1ResourceSliceBuilder builder; + int index; + + ItemsNested(int index,V1ResourceSlice item) { + this.index = index; + this.builder = new V1ResourceSliceBuilder(this, item); + } + + public N and() { + return (N) V1ResourceSliceListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1ResourceSliceListFluent.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/V1ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java new file mode 100644 index 0000000000..bf137f2189 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java @@ -0,0 +1,40 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceSliceSpecBuilder extends V1ResourceSliceSpecFluent implements VisitableBuilder{ + + V1ResourceSliceSpecFluent fluent; + + public V1ResourceSliceSpecBuilder() { + this(new V1ResourceSliceSpec()); + } + + public V1ResourceSliceSpecBuilder(V1ResourceSliceSpecFluent fluent) { + this(fluent, new V1ResourceSliceSpec()); + } + + public V1ResourceSliceSpecBuilder(V1ResourceSliceSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceSliceSpecBuilder(V1ResourceSliceSpecFluent fluent,V1ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ResourceSliceSpec build() { + V1ResourceSliceSpec buildable = new V1ResourceSliceSpec(); + 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/V1ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java new file mode 100644 index 0000000000..8309d59a78 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java @@ -0,0 +1,770 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceSliceSpecFluent> extends BaseFluent{ + + private Boolean allNodes; + private ArrayList devices; + private String driver; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; + private V1ResourcePoolBuilder pool; + private ArrayList sharedCounters; + + public V1ResourceSliceSpecFluent() { + } + + public V1ResourceSliceSpecFluent(V1ResourceSliceSpec instance) { + this.copyInstance(instance); + } + + public A addAllToDevices(Collection items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; + } + + public A addAllToSharedCounters(Collection items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); + } + return (A) this; + } + + public DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1Device item) { + return new DevicesNested(-1, item); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public A addToDevices(V1Device... items) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").add(builder); + this.devices.add(builder); + } + return (A) this; + } + + public A addToDevices(int index,V1Device item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1DeviceBuilder builder = new V1DeviceBuilder(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 addToSharedCounters(V1CounterSet... items) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); + } + return (A) this; + } + + public A addToSharedCounters(int index,V1CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + V1CounterSetBuilder builder = new V1CounterSetBuilder(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 V1Device buildDevice(int index) { + return this.devices.get(index).build(); + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1Device buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1Device buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1Device buildMatchingDevice(Predicate predicate) { + for (V1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public V1ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; + } + + public V1CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + protected void copyInstance(V1ResourceSliceSpec instance) { + instance = instance != null ? instance : new V1ResourceSliceSpec(); + 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 DevicesNested editDevice(int index) { + if (devices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < devices.size();i++) { + if (predicate.test(devices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < sharedCounters.size();i++) { + if (predicate.test(sharedCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public PoolNested editOrNewPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1ResourcePoolBuilder().build())); + } + + public PoolNested editOrNewPoolLike(V1ResourcePool item) { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); + } + + public PoolNested editPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); + } + + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceSliceSpecFluent that = (V1ResourceSliceSpecFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(sharedCounters, that.sharedCounters))) { + return false; + } + return true; + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public String getDriver() { + return this.driver; + } + + public String getNodeName() { + return this.nodeName; + } + + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + } + + public A removeAllFromDevices(Collection items) { + if (this.devices == null) { + return (A) this; + } + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; + } + + public A removeAllFromSharedCounters(Collection items) { + if (this.sharedCounters == null) { + return (A) this; + } + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); + } + return (A) this; + } + + public A removeFromDevices(V1Device... items) { + if (this.devices == null) { + return (A) this; + } + for (V1Device item : items) { + V1DeviceBuilder builder = new V1DeviceBuilder(item); + _visitables.get("devices").remove(builder); + this.devices.remove(builder); + } + return (A) this; + } + + public A removeFromSharedCounters(V1CounterSet... items) { + if (this.sharedCounters == null) { + return (A) this; + } + for (V1CounterSet item : items) { + V1CounterSetBuilder builder = new V1CounterSetBuilder(item); + _visitables.get("sharedCounters").remove(builder); + this.sharedCounters.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + List visitables = _visitables.get("devices"); + while (each.hasNext()) { + V1DeviceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) { + return (A) this; + } + Iterator each = sharedCounters.iterator(); + List visitables = _visitables.get("sharedCounters"); + while (each.hasNext()) { + V1CounterSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public DevicesNested setNewDeviceLike(int index,V1Device item) { + return new DevicesNested(index, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1CounterSet item) { + return new SharedCountersNested(index, item); + } + + public A setToDevices(int index,V1Device item) { + if (this.devices == null) { + this.devices = new ArrayList(); + } + V1DeviceBuilder builder = new V1DeviceBuilder(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 setToSharedCounters(int index,V1CounterSet item) { + if (this.sharedCounters == null) { + this.sharedCounters = new ArrayList(); + } + V1CounterSetBuilder builder = new V1CounterSetBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allNodes == null)) { + sb.append("allNodes:"); + sb.append(allNodes); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(perDeviceNodeSelection == null)) { + sb.append("perDeviceNodeSelection:"); + sb.append(perDeviceNodeSelection); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(sharedCounters == null) && !(sharedCounters.isEmpty())) { + sb.append("sharedCounters:"); + sb.append(sharedCounters); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllNodes() { + return withAllNodes(true); + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public A withDevices(List devices) { + if (this.devices != null) { + this._visitables.get("devices").clear(); + } + if (devices != null) { + this.devices = new ArrayList(); + for (V1Device item : devices) { + this.addToDevices(item); + } + } else { + this.devices = null; + } + return (A) this; + } + + public A withDevices(V1Device... devices) { + if (this.devices != null) { + this.devices.clear(); + _visitables.remove("devices"); + } + if (devices != null) { + for (V1Device item : devices) { + this.addToDevices(item); + } + } + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1ResourcePool item) { + return new PoolNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + 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 A withPerDeviceNodeSelection() { + return withPerDeviceNodeSelection(true); + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + public A withPool(V1ResourcePool pool) { + this._visitables.remove("pool"); + if (pool != null) { + this.pool = new V1ResourcePoolBuilder(pool); + this._visitables.get("pool").add(this.pool); + } else { + this.pool = null; + this._visitables.get("pool").remove(this.pool); + } + return (A) this; + } + + public A withSharedCounters(List sharedCounters) { + if (this.sharedCounters != null) { + this._visitables.get("sharedCounters").clear(); + } + if (sharedCounters != null) { + this.sharedCounters = new ArrayList(); + for (V1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } else { + this.sharedCounters = null; + } + return (A) this; + } + + public A withSharedCounters(V1CounterSet... sharedCounters) { + if (this.sharedCounters != null) { + this.sharedCounters.clear(); + _visitables.remove("sharedCounters"); + } + if (sharedCounters != null) { + for (V1CounterSet item : sharedCounters) { + this.addToSharedCounters(item); + } + } + return (A) this; + } + public class DevicesNested extends V1DeviceFluent> implements Nested{ + + V1DeviceBuilder builder; + int index; + + DevicesNested(int index,V1Device item) { + this.index = index; + this.builder = new V1DeviceBuilder(this, item); + } + + public N and() { + return (N) V1ResourceSliceSpecFluent.this.setToDevices(index, builder.build()); + } + + public N endDevice() { + return and(); + } + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + public N and() { + return (N) V1ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + } + public class PoolNested extends V1ResourcePoolFluent> implements Nested{ + + V1ResourcePoolBuilder builder; + + PoolNested(V1ResourcePool item) { + this.builder = new V1ResourcePoolBuilder(this, item); + } + + public N and() { + return (N) V1ResourceSliceSpecFluent.this.withPool(builder.build()); + } + + public N endPool() { + return and(); + } + + } + public class SharedCountersNested extends V1CounterSetFluent> implements Nested{ + + V1CounterSetBuilder builder; + int index; + + SharedCountersNested(int index,V1CounterSet item) { + this.index = index; + this.builder = new V1CounterSetBuilder(this, item); + } + + public N and() { + return (N) V1ResourceSliceSpecFluent.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/V1ResourceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java new file mode 100644 index 0000000000..006ab6d5f4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ResourceStatusBuilder extends V1ResourceStatusFluent implements VisitableBuilder{ + + V1ResourceStatusFluent fluent; + + public V1ResourceStatusBuilder() { + this(new V1ResourceStatus()); + } + + public V1ResourceStatusBuilder(V1ResourceStatusFluent fluent) { + this(fluent, new V1ResourceStatus()); + } + + public V1ResourceStatusBuilder(V1ResourceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ResourceStatusBuilder(V1ResourceStatusFluent fluent,V1ResourceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..3fec70cbeb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java @@ -0,0 +1,320 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ResourceStatusFluent> extends BaseFluent{ + + private String name; + private ArrayList resources; + + public V1ResourceStatusFluent() { + } + + public V1ResourceStatusFluent(V1ResourceStatus instance) { + this.copyInstance(instance); + } + + 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 ResourcesNested addNewResource() { + return new ResourcesNested(-1, null); + } + + public ResourcesNested addNewResourceLike(V1ResourceHealth item) { + return new ResourcesNested(-1, item); + } + + public A addToResources(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 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 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 V1ResourceHealth buildResource(int index) { + return this.resources.get(index).build(); + } + + public List buildResources() { + return this.resources != null ? build(resources) : null; + } + + protected void copyInstance(V1ResourceStatus instance) { + instance = instance != null ? instance : new V1ResourceStatus(); + if (instance != null) { + this.withName(instance.getName()); + this.withResources(instance.getResources()); + } + } + + public ResourcesNested editFirstResource() { + if (resources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(0, this.buildResource(0)); + } + + public ResourcesNested editLastResource() { + int index = resources.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + + public ResourcesNested editMatchingResource(Predicate predicate) { + int index = -1; + for (int i = 0;i < resources.size();i++) { + if (predicate.test(resources.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + + public ResourcesNested editResource(int index) { + if (resources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ResourceStatusFluent that = (V1ResourceStatusFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (V1ResourceHealthBuilder item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public int hashCode() { + return Objects.hash(name, resources); + } + + 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 removeFromResources(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 removeMatchingFromResources(Predicate predicate) { + if (resources == null) { + return (A) this; + } + Iterator each = resources.iterator(); + 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 ResourcesNested setNewResourceLike(int index,V1ResourceHealth item) { + return new ResourcesNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + 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(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 class ResourcesNested extends V1ResourceHealthFluent> implements Nested{ + + V1ResourceHealthBuilder builder; + int index; + + ResourcesNested(int index,V1ResourceHealth item) { + this.index = index; + this.builder = new V1ResourceHealthBuilder(this, item); + } + + 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/V1RoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java index b4f177350e..7428374262 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RoleBindingBuilder extends V1RoleBindingFluent implements VisitableBuilder{ + + V1RoleBindingFluent fluent; + public V1RoleBindingBuilder() { this(new V1RoleBinding()); } @@ -10,17 +14,16 @@ public V1RoleBindingBuilder(V1RoleBindingFluent fluent) { this(fluent, new V1RoleBinding()); } - public V1RoleBindingBuilder(V1RoleBindingFluent fluent,V1RoleBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleBindingBuilder(V1RoleBinding instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleBindingFluent fluent; + public V1RoleBindingBuilder(V1RoleBindingFluent fluent,V1RoleBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RoleBinding build() { V1RoleBinding buildable = new V1RoleBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1RoleBinding build() { return buildable; } - } \ 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 6549c38c50..73ae01a0eb 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 @@ -1,231 +1,398 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RoleBindingFluent> extends BaseFluent{ +public class V1RoleBindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1RoleRefBuilder roleRef; + private ArrayList subjects; + public V1RoleBindingFluent() { } public V1RoleBindingFluent(V1RoleBinding instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1RoleRefBuilder roleRef; - private ArrayList subjects; + + 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; + } - protected void copyInstance(V1RoleBinding instance) { - instance = (instance != null ? instance : new V1RoleBinding()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRoleRef(instance.getRoleRef()); - this.withSubjects(instance.getSubjects()); - } + public SubjectsNested addNewSubject() { + return new SubjectsNested(-1, null); } - public String getApiVersion() { - return this.apiVersion; + public SubjectsNested addNewSubjectLike(RbacV1Subject item) { + return new SubjectsNested(-1, item); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + public A addToSubjects(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 boolean hasApiVersion() { - return this.apiVersion != null; + 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 String getKind() { - return this.kind; + public RbacV1Subject buildFirstSubject() { + return this.subjects.get(0).build(); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public RbacV1Subject buildLastSubject() { + return this.subjects.get(subjects.size() - 1).build(); } - public boolean hasKind() { - return this.kind != null; + public RbacV1Subject buildMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return item.build(); + } + } + return 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); + public V1RoleRef buildRoleRef() { + return this.roleRef != null ? this.roleRef.build() : null; + } + + public RbacV1Subject buildSubject(int index) { + return this.subjects.get(index).build(); + } + + public List buildSubjects() { + return this.subjects != null ? build(subjects) : null; + } + + protected void copyInstance(V1RoleBinding instance) { + instance = instance != null ? instance : new V1RoleBinding(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRoleRef(instance.getRoleRef()); + this.withSubjects(instance.getSubjects()); } - return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; + public SubjectsNested editFirstSubject() { + if (subjects.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(0, this.buildSubject(0)); } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public SubjectsNested editLastSubject() { + int index = subjects.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public SubjectsNested editMatchingSubject(Predicate predicate) { + int index = -1; + for (int i = 0;i < subjects.size();i++) { + if (predicate.test(subjects.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1RoleRef buildRoleRef() { - return this.roleRef != null ? this.roleRef.build() : null; + public RoleRefNested editOrNewRoleRef() { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(new V1RoleRefBuilder().build())); } - public A withRoleRef(V1RoleRef roleRef) { - this._visitables.remove("roleRef"); - if (roleRef != null) { - this.roleRef = new V1RoleRefBuilder(roleRef); - this._visitables.get("roleRef").add(this.roleRef); - } else { - this.roleRef = null; - this._visitables.get("roleRef").remove(this.roleRef); - } - return (A) this; + public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(item)); } - public boolean hasRoleRef() { - return this.roleRef != null; + public RoleRefNested editRoleRef() { + return this.withNewRoleRefLike(Optional.ofNullable(this.buildRoleRef()).orElse(null)); } - public RoleRefNested withNewRoleRef() { - return new RoleRefNested(null); + public SubjectsNested editSubject(int index) { + if (subjects.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subjects")); + } + return this.setNewSubjectLike(index, this.buildSubject(index)); } - public RoleRefNested withNewRoleRefLike(V1RoleRef item) { - return new RoleRefNested(item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RoleBindingFluent that = (V1RoleBindingFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(roleRef, that.roleRef))) { + return false; + } + if (!(Objects.equals(subjects, that.subjects))) { + return false; + } + return true; } - public RoleRefNested editRoleRef() { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(null)); + public String getApiVersion() { + return this.apiVersion; } - public RoleRefNested editOrNewRoleRef() { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(new V1RoleRefBuilder().build())); + public String getKind() { + return this.kind; } - public RoleRefNested editOrNewRoleRefLike(V1RoleRef item) { - return withNewRoleRefLike(java.util.Optional.ofNullable(buildRoleRef()).orElse(item)); + public boolean hasApiVersion() { + return this.apiVersion != null; } - 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(index, builder); subjects.add(index, builder);} - return (A)this; + public boolean hasKind() { + return this.kind != null; } - 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").set(index, builder); subjects.set(index, builder);} - return (A)this; + public boolean hasMatchingSubject(Predicate predicate) { + for (RbacV1SubjectBuilder item : subjects) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 boolean hasMetadata() { + return this.metadata != null; } - 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 boolean hasRoleRef() { + return this.roleRef != null; } - public A removeFromSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... items) { - if (this.subjects == null) 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 boolean hasSubjects() { + return this.subjects != null && !(this.subjects.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); } public A removeAllFromSubjects(Collection items) { - if (this.subjects == null) return (A)this; - for (RbacV1Subject item : items) {RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item);_visitables.get("subjects").remove(builder); this.subjects.remove(builder);} return (A)this; + if (this.subjects == null) { + 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 removeFromSubjects(RbacV1Subject... items) { + if (this.subjects == null) { + 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) { - if (subjects == null) return (A) this; - final Iterator each = subjects.iterator(); - final List visitables = _visitables.get("subjects"); + if (subjects == null) { + return (A) this; + } + Iterator each = subjects.iterator(); + List visitables = _visitables.get("subjects"); while (each.hasNext()) { - RbacV1SubjectBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + RbacV1SubjectBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildSubjects() { - return this.subjects != null ? build(subjects) : null; + public SubjectsNested setNewSubjectLike(int index,RbacV1Subject item) { + return new SubjectsNested(index, item); } - public RbacV1Subject buildSubject(int index) { - return this.subjects.get(index).build(); + 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 RbacV1Subject buildFirstSubject() { - return this.subjects.get(0).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(roleRef == null)) { + sb.append("roleRef:"); + sb.append(roleRef); + sb.append(","); + } + if (!(subjects == null) && !(subjects.isEmpty())) { + sb.append("subjects:"); + sb.append(subjects); + } + sb.append("}"); + return sb.toString(); } - public RbacV1Subject buildLastSubject() { - return this.subjects.get(subjects.size() - 1).build(); + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public RbacV1Subject buildMatchingSubject(Predicate predicate) { - for (RbacV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public boolean hasMatchingSubject(Predicate predicate) { - for (RbacV1SubjectBuilder item : subjects) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public RoleRefNested withNewRoleRef() { + return new RoleRefNested(null); + } + + public RoleRefNested withNewRoleRefLike(V1RoleRef item) { + return new RoleRefNested(item); + } + + public A withRoleRef(V1RoleRef roleRef) { + this._visitables.remove("roleRef"); + if (roleRef != null) { + this.roleRef = new V1RoleRefBuilder(roleRef); + this._visitables.get("roleRef").add(this.roleRef); + } else { + this.roleRef = null; + this._visitables.get("roleRef").remove(this.roleRef); + } + return (A) this; } public A withSubjects(List subjects) { @@ -243,7 +410,7 @@ public A withSubjects(List subjects) { return (A) this; } - public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subjects) { + public A withSubjects(RbacV1Subject... subjects) { if (this.subjects != null) { this.subjects.clear(); _visitables.remove("subjects"); @@ -255,82 +422,14 @@ public A withSubjects(io.kubernetes.client.openapi.models.RbacV1Subject... subje } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSubjects() { - return this.subjects != null && !this.subjects.isEmpty(); - } - - public SubjectsNested addNewSubject() { - return new SubjectsNested(-1, null); - } - - public SubjectsNested addNewSubjectLike(RbacV1Subject item) { - return new SubjectsNested(-1, item); - } - - public SubjectsNested setNewSubjectLike(int index,RbacV1Subject 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 V1ObjectMetaFluent> implements Nested{ MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1RoleBindingFluent.this.withMetadata(builder.build()); } @@ -339,14 +438,15 @@ public N endMetadata() { return and(); } - } public class RoleRefNested extends V1RoleRefFluent> implements Nested{ + + V1RoleRefBuilder builder; + RoleRefNested(V1RoleRef item) { this.builder = new V1RoleRefBuilder(this, item); } - V1RoleRefBuilder builder; - + public N and() { return (N) V1RoleBindingFluent.this.withRoleRef(builder.build()); } @@ -355,25 +455,24 @@ public N endRoleRef() { return and(); } - } public class SubjectsNested extends RbacV1SubjectFluent> implements Nested{ + + RbacV1SubjectBuilder builder; + int index; + SubjectsNested(int index,RbacV1Subject item) { this.index = index; this.builder = new RbacV1SubjectBuilder(this, item); } - RbacV1SubjectBuilder builder; - int index; - + public N and() { - return (N) V1RoleBindingFluent.this.setToSubjects(index,builder.build()); + return (N) V1RoleBindingFluent.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/V1RoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java index 4b97be5863..15eecadc54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RoleBindingListBuilder extends V1RoleBindingListFluent implements VisitableBuilder{ + + V1RoleBindingListFluent fluent; + public V1RoleBindingListBuilder() { this(new V1RoleBindingList()); } @@ -10,17 +14,16 @@ public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent) { this(fluent, new V1RoleBindingList()); } - public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent,V1RoleBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleBindingListBuilder(V1RoleBindingList instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleBindingListFluent fluent; + public V1RoleBindingListBuilder(V1RoleBindingListFluent fluent,V1RoleBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RoleBindingList build() { V1RoleBindingList buildable = new V1RoleBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1RoleBindingList build() { return buildable; } - } \ No newline at end of file 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..ce19e746ff 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RoleBindingListFluent> extends BaseFluent{ +public class V1RoleBindingListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1RoleBindingListFluent() { } public V1RoleBindingListFluent(V1RoleBindingList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1RoleBindingList instance) { - instance = (instance != null ? instance : new V1RoleBindingList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1RoleBinding item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1RoleBinding... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1RoleBinding item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1RoleBinding buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1RoleBinding buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { - if (this.items == null) return (A)this; - for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1RoleBinding buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1RoleBinding item : items) {V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1RoleBinding buildMatchingItem(Predicate predicate) { + for (V1RoleBindingBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1RoleBindingBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1RoleBindingList instance) { + instance = instance != null ? instance : new V1RoleBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1RoleBinding buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1RoleBinding buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1RoleBinding buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RoleBindingListFluent that = (V1RoleBindingListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1RoleBinding buildMatchingItem(Predicate predicate) { - for (V1RoleBindingBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1RoleBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1RoleBinding item : items) { + V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1RoleBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1RoleBinding item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { + public A withItems(V1RoleBinding... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1RoleBinding... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1RoleBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1RoleBinding 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1RoleBindingFluent> implements Nested{ - 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; - V1RoleBindingListFluent that = (V1RoleBindingListFluent) 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()); - } + V1RoleBindingBuilder builder; + int index; - 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 V1RoleBindingFluent> implements Nested{ ItemsNested(int index,V1RoleBinding item) { this.index = index; this.builder = new V1RoleBindingBuilder(this, item); } - V1RoleBindingBuilder builder; - int index; - + public N and() { - return (N) V1RoleBindingListFluent.this.setToItems(index,builder.build()); + return (N) V1RoleBindingListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1RoleBindingListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java index 8e3c62cc16..189c82fd90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RoleBuilder extends V1RoleFluent implements VisitableBuilder{ + + V1RoleFluent fluent; + public V1RoleBuilder() { this(new V1Role()); } @@ -10,17 +14,16 @@ public V1RoleBuilder(V1RoleFluent fluent) { this(fluent, new V1Role()); } - public V1RoleBuilder(V1RoleFluent fluent,V1Role instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleBuilder(V1Role instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleFluent fluent; + public V1RoleBuilder(V1RoleFluent fluent,V1Role instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Role build() { V1Role buildable = new V1Role(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1Role build() { return buildable; } - } \ No newline at end of file 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..4e668bf838 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 @@ -1,189 +1,348 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RoleFluent> extends BaseFluent{ +public class V1RoleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private ArrayList rules; + public V1RoleFluent() { } public V1RoleFluent(V1Role instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private ArrayList rules; + + public A addAllToRules(Collection items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; + } - protected void copyInstance(V1Role instance) { - instance = (instance != null ? instance : new V1Role()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withRules(instance.getRules()); - } + public RulesNested addNewRule() { + return new RulesNested(-1, null); } - public String getApiVersion() { - return this.apiVersion; + public RulesNested addNewRuleLike(V1PolicyRule item) { + return new RulesNested(-1, item); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + public A addToRules(V1PolicyRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; + 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(builder); + rules.add(index, builder); + } + return (A) this; } - public String getKind() { - return this.kind; + public V1PolicyRule buildFirstRule() { + return this.rules.get(0).build(); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public V1PolicyRule buildLastRule() { + return this.rules.get(rules.size() - 1).build(); } - public boolean hasKind() { - return this.kind != null; + public V1PolicyRule buildMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return item.build(); + } + } + return 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); + public V1PolicyRule buildRule(int index) { + return this.rules.get(index).build(); + } + + public List buildRules() { + return this.rules != null ? build(rules) : null; + } + + protected void copyInstance(V1Role instance) { + instance = instance != null ? instance : new V1Role(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withRules(instance.getRules()); } - return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; + public RulesNested editFirstRule() { + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(0, this.buildRule(0)); } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(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);} - return (A)this; + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - 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);} - return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RoleFluent that = (V1RoleFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(rules, that.rules))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } - public A addToRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public String getKind() { + return this.kind; } - public A addAllToRules(Collection items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingRule(Predicate predicate) { + for (V1PolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); } - public A removeFromRules(io.kubernetes.client.openapi.models.V1PolicyRule... items) { - if (this.rules == null) return (A)this; - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, rules); } public A removeAllFromRules(Collection items) { - if (this.rules == null) return (A)this; - for (V1PolicyRule item : items) {V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item);_visitables.get("rules").remove(builder); this.rules.remove(builder);} return (A)this; + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeFromRules(V1PolicyRule... items) { + if (this.rules == null) { + return (A) this; + } + for (V1PolicyRule item : items) { + V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(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"); + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); while (each.hasNext()) { - V1PolicyRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1PolicyRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildRules() { - return this.rules != null ? build(rules) : null; + public RulesNested setNewRuleLike(int index,V1PolicyRule item) { + return new RulesNested(index, item); } - public V1PolicyRule buildRule(int index) { - return this.rules.get(index).build(); + 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").add(builder); + rules.set(index, builder); + } + return (A) this; } - public V1PolicyRule buildFirstRule() { - return this.rules.get(0).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(rules == null) && !(rules.isEmpty())) { + sb.append("rules:"); + sb.append(rules); + } + sb.append("}"); + return sb.toString(); } - public V1PolicyRule buildLastRule() { - return this.rules.get(rules.size() - 1).build(); + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public V1PolicyRule buildMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public boolean hasMatchingRule(Predicate predicate) { - for (V1PolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } public A withRules(List rules) { @@ -201,7 +360,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { + public A withRules(V1PolicyRule... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -213,80 +372,14 @@ public A withRules(io.kubernetes.client.openapi.models.V1PolicyRule... rules) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); - } - - public RulesNested addNewRule() { - return new RulesNested(-1, null); - } - - public RulesNested addNewRuleLike(V1PolicyRule item) { - return new RulesNested(-1, item); - } - - public RulesNested setNewRuleLike(int index,V1PolicyRule 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 V1ObjectMetaFluent> implements Nested{ MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1RoleFluent.this.withMetadata(builder.build()); } @@ -295,25 +388,24 @@ public N endMetadata() { return and(); } - } public class RulesNested extends V1PolicyRuleFluent> implements Nested{ + + V1PolicyRuleBuilder builder; + int index; + RulesNested(int index,V1PolicyRule item) { this.index = index; this.builder = new V1PolicyRuleBuilder(this, item); } - V1PolicyRuleBuilder builder; - int index; - + public N and() { - return (N) V1RoleFluent.this.setToRules(index,builder.build()); + return (N) V1RoleFluent.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/V1RoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java index f6691cfde0..3763ca76fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RoleListBuilder extends V1RoleListFluent implements VisitableBuilder{ + + V1RoleListFluent fluent; + public V1RoleListBuilder() { this(new V1RoleList()); } @@ -10,17 +14,16 @@ public V1RoleListBuilder(V1RoleListFluent fluent) { this(fluent, new V1RoleList()); } - public V1RoleListBuilder(V1RoleListFluent fluent,V1RoleList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleListBuilder(V1RoleList instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleListFluent fluent; + public V1RoleListBuilder(V1RoleListFluent fluent,V1RoleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RoleList build() { V1RoleList buildable = new V1RoleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1RoleList build() { return buildable; } - } \ No newline at end of file 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..aeb3bfbda2 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RoleListFluent> extends BaseFluent{ +public class V1RoleListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1RoleListFluent() { } public V1RoleListFluent(V1RoleList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1RoleList instance) { - instance = (instance != null ? instance : new V1RoleList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Role item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Role... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Role item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Role buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Role... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Role buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Role... items) { - if (this.items == null) return (A)this; - for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Role buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Role item : items) {V1RoleBuilder builder = new V1RoleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Role buildMatchingItem(Predicate predicate) { + for (V1RoleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1RoleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1RoleList instance) { + instance = instance != null ? instance : new V1RoleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Role buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Role buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Role buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RoleListFluent that = (V1RoleListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Role buildMatchingItem(Predicate predicate) { - for (V1RoleBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Role... items) { + if (this.items == null) { + return (A) this; + } + for (V1Role item : items) { + V1RoleBuilder builder = new V1RoleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1RoleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Role item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Role... items) { + public A withItems(V1Role... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Role... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Role item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Role 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1RoleFluent> implements Nested{ - 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; - V1RoleListFluent that = (V1RoleListFluent) 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()); - } + V1RoleBuilder builder; + int index; - 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 V1RoleFluent> implements Nested{ ItemsNested(int index,V1Role item) { this.index = index; this.builder = new V1RoleBuilder(this, item); } - V1RoleBuilder builder; - int index; - + public N and() { - return (N) V1RoleListFluent.this.setToItems(index,builder.build()); + return (N) V1RoleListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1RoleListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java index bf87789b64..815024ad4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RoleRefBuilder extends V1RoleRefFluent implements VisitableBuilder{ + + V1RoleRefFluent fluent; + public V1RoleRefBuilder() { this(new V1RoleRef()); } @@ -10,17 +14,16 @@ public V1RoleRefBuilder(V1RoleRefFluent fluent) { this(fluent, new V1RoleRef()); } - public V1RoleRefBuilder(V1RoleRefFluent fluent,V1RoleRef instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RoleRefBuilder(V1RoleRef instance) { this.fluent = this; this.copyInstance(instance); } - V1RoleRefFluent fluent; + public V1RoleRefBuilder(V1RoleRefFluent fluent,V1RoleRef instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RoleRef build() { V1RoleRef buildable = new V1RoleRef(); buildable.setApiGroup(fluent.getApiGroup()); @@ -29,5 +32,4 @@ public V1RoleRef build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java index bd8b0737c4..bd1ffb5f9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java @@ -1,97 +1,123 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RoleRefFluent> extends BaseFluent{ +public class V1RoleRefFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + public V1RoleRefFluent() { } public V1RoleRefFluent(V1RoleRef instance) { this.copyInstance(instance); } - private String apiGroup; - private String kind; - private String name; - + protected void copyInstance(V1RoleRef instance) { - instance = (instance != null ? instance : new V1RoleRef()); + instance = instance != null ? instance : new V1RoleRef(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - } - } - - public String getApiGroup() { - return this.apiGroup; + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } } - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RoleRefFluent that = (V1RoleRefFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasApiGroup() { - return this.apiGroup != null; + public String getApiGroup() { + return this.apiGroup; } 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 hasApiGroup() { + return this.apiGroup != null; } - public boolean hasName() { - return this.name != null; + 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; - V1RoleRefFluent that = (V1RoleRefFluent) 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 boolean hasName() { + return this.name != null; } public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, super.hashCode()); + return Objects.hash(apiGroup, kind, name); } 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 (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java index 6f1cb211f0..3551d30c0e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RollingUpdateDaemonSetBuilder extends V1RollingUpdateDaemonSetFluent implements VisitableBuilder{ + + V1RollingUpdateDaemonSetFluent fluent; + public V1RollingUpdateDaemonSetBuilder() { this(new V1RollingUpdateDaemonSet()); } @@ -10,17 +14,16 @@ public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent) this(fluent, new V1RollingUpdateDaemonSet()); } - public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent,V1RollingUpdateDaemonSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSet instance) { this.fluent = this; this.copyInstance(instance); } - V1RollingUpdateDaemonSetFluent fluent; + public V1RollingUpdateDaemonSetBuilder(V1RollingUpdateDaemonSetFluent fluent,V1RollingUpdateDaemonSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RollingUpdateDaemonSet build() { V1RollingUpdateDaemonSet buildable = new V1RollingUpdateDaemonSet(); buildable.setMaxSurge(fluent.getMaxSurge()); @@ -28,5 +31,4 @@ public V1RollingUpdateDaemonSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java index 2c071af1f5..06253f92c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java @@ -1,97 +1,117 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RollingUpdateDaemonSetFluent> extends BaseFluent{ +public class V1RollingUpdateDaemonSetFluent> extends BaseFluent{ + + private IntOrString maxSurge; + private IntOrString maxUnavailable; + public V1RollingUpdateDaemonSetFluent() { } public V1RollingUpdateDaemonSetFluent(V1RollingUpdateDaemonSet instance) { this.copyInstance(instance); } - private IntOrString maxSurge; - private IntOrString maxUnavailable; - + protected void copyInstance(V1RollingUpdateDaemonSet instance) { - instance = (instance != null ? instance : new V1RollingUpdateDaemonSet()); + instance = instance != null ? instance : new V1RollingUpdateDaemonSet(); if (instance != null) { - this.withMaxSurge(instance.getMaxSurge()); - this.withMaxUnavailable(instance.getMaxUnavailable()); - } + this.withMaxSurge(instance.getMaxSurge()); + this.withMaxUnavailable(instance.getMaxUnavailable()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RollingUpdateDaemonSetFluent that = (V1RollingUpdateDaemonSetFluent) o; + if (!(Objects.equals(maxSurge, that.maxSurge))) { + return false; + } + if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { + return false; + } + return true; } public IntOrString getMaxSurge() { return this.maxSurge; } - public A withMaxSurge(IntOrString maxSurge) { - this.maxSurge = maxSurge; - return (A) this; + public IntOrString getMaxUnavailable() { + return this.maxUnavailable; } public boolean hasMaxSurge() { return this.maxSurge != null; } - public A withNewMaxSurge(int value) { - return (A)withMaxSurge(new IntOrString(value)); + public boolean hasMaxUnavailable() { + return this.maxUnavailable != null; } - public A withNewMaxSurge(String value) { - return (A)withMaxSurge(new IntOrString(value)); + public int hashCode() { + return Objects.hash(maxSurge, maxUnavailable); } - public IntOrString getMaxUnavailable() { - return this.maxUnavailable; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(maxSurge == null)) { + sb.append("maxSurge:"); + sb.append(maxSurge); + sb.append(","); + } + if (!(maxUnavailable == null)) { + sb.append("maxUnavailable:"); + sb.append(maxUnavailable); + } + sb.append("}"); + return sb.toString(); } - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; + public A withMaxSurge(IntOrString maxSurge) { + this.maxSurge = maxSurge; return (A) this; } - public boolean hasMaxUnavailable() { - return this.maxUnavailable != null; - } - - public A withNewMaxUnavailable(int value) { - return (A)withMaxUnavailable(new IntOrString(value)); + public A withMaxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return (A) this; } - public A withNewMaxUnavailable(String value) { - return (A)withMaxUnavailable(new IntOrString(value)); + public A withNewMaxSurge(int value) { + return (A) this.withMaxSurge(new IntOrString(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; - V1RollingUpdateDaemonSetFluent that = (V1RollingUpdateDaemonSetFluent) o; - if (!java.util.Objects.equals(maxSurge, that.maxSurge)) return false; - if (!java.util.Objects.equals(maxUnavailable, that.maxUnavailable)) return false; - return true; + public A withNewMaxSurge(String value) { + return (A) this.withMaxSurge(new IntOrString(value)); } - public int hashCode() { - return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); + public A withNewMaxUnavailable(int value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (maxSurge != null) { sb.append("maxSurge:"); sb.append(maxSurge + ","); } - if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable); } - sb.append("}"); - return sb.toString(); + public A withNewMaxUnavailable(String value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java index 14e05d6d99..1d5d959758 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RollingUpdateDeploymentBuilder extends V1RollingUpdateDeploymentFluent implements VisitableBuilder{ + + V1RollingUpdateDeploymentFluent fluent; + public V1RollingUpdateDeploymentBuilder() { this(new V1RollingUpdateDeployment()); } @@ -10,17 +14,16 @@ public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluen this(fluent, new V1RollingUpdateDeployment()); } - public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluent,V1RollingUpdateDeployment instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeployment instance) { this.fluent = this; this.copyInstance(instance); } - V1RollingUpdateDeploymentFluent fluent; + public V1RollingUpdateDeploymentBuilder(V1RollingUpdateDeploymentFluent fluent,V1RollingUpdateDeployment instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RollingUpdateDeployment build() { V1RollingUpdateDeployment buildable = new V1RollingUpdateDeployment(); buildable.setMaxSurge(fluent.getMaxSurge()); @@ -28,5 +31,4 @@ public V1RollingUpdateDeployment build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java index 82cbfbbe84..75bd614476 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java @@ -1,97 +1,117 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RollingUpdateDeploymentFluent> extends BaseFluent{ +public class V1RollingUpdateDeploymentFluent> extends BaseFluent{ + + private IntOrString maxSurge; + private IntOrString maxUnavailable; + public V1RollingUpdateDeploymentFluent() { } public V1RollingUpdateDeploymentFluent(V1RollingUpdateDeployment instance) { this.copyInstance(instance); } - private IntOrString maxSurge; - private IntOrString maxUnavailable; - + protected void copyInstance(V1RollingUpdateDeployment instance) { - instance = (instance != null ? instance : new V1RollingUpdateDeployment()); + instance = instance != null ? instance : new V1RollingUpdateDeployment(); if (instance != null) { - this.withMaxSurge(instance.getMaxSurge()); - this.withMaxUnavailable(instance.getMaxUnavailable()); - } + this.withMaxSurge(instance.getMaxSurge()); + this.withMaxUnavailable(instance.getMaxUnavailable()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RollingUpdateDeploymentFluent that = (V1RollingUpdateDeploymentFluent) o; + if (!(Objects.equals(maxSurge, that.maxSurge))) { + return false; + } + if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { + return false; + } + return true; } public IntOrString getMaxSurge() { return this.maxSurge; } - public A withMaxSurge(IntOrString maxSurge) { - this.maxSurge = maxSurge; - return (A) this; + public IntOrString getMaxUnavailable() { + return this.maxUnavailable; } public boolean hasMaxSurge() { return this.maxSurge != null; } - public A withNewMaxSurge(int value) { - return (A)withMaxSurge(new IntOrString(value)); + public boolean hasMaxUnavailable() { + return this.maxUnavailable != null; } - public A withNewMaxSurge(String value) { - return (A)withMaxSurge(new IntOrString(value)); + public int hashCode() { + return Objects.hash(maxSurge, maxUnavailable); } - public IntOrString getMaxUnavailable() { - return this.maxUnavailable; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(maxSurge == null)) { + sb.append("maxSurge:"); + sb.append(maxSurge); + sb.append(","); + } + if (!(maxUnavailable == null)) { + sb.append("maxUnavailable:"); + sb.append(maxUnavailable); + } + sb.append("}"); + return sb.toString(); } - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; + public A withMaxSurge(IntOrString maxSurge) { + this.maxSurge = maxSurge; return (A) this; } - public boolean hasMaxUnavailable() { - return this.maxUnavailable != null; - } - - public A withNewMaxUnavailable(int value) { - return (A)withMaxUnavailable(new IntOrString(value)); + public A withMaxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; + return (A) this; } - public A withNewMaxUnavailable(String value) { - return (A)withMaxUnavailable(new IntOrString(value)); + public A withNewMaxSurge(int value) { + return (A) this.withMaxSurge(new IntOrString(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; - V1RollingUpdateDeploymentFluent that = (V1RollingUpdateDeploymentFluent) o; - if (!java.util.Objects.equals(maxSurge, that.maxSurge)) return false; - if (!java.util.Objects.equals(maxUnavailable, that.maxUnavailable)) return false; - return true; + public A withNewMaxSurge(String value) { + return (A) this.withMaxSurge(new IntOrString(value)); } - public int hashCode() { - return java.util.Objects.hash(maxSurge, maxUnavailable, super.hashCode()); + public A withNewMaxUnavailable(int value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (maxSurge != null) { sb.append("maxSurge:"); sb.append(maxSurge + ","); } - if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable); } - sb.append("}"); - return sb.toString(); + public A withNewMaxUnavailable(String value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java index dd1f6a065b..03a6b47410 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RollingUpdateStatefulSetStrategyBuilder extends V1RollingUpdateStatefulSetStrategyFluent implements VisitableBuilder{ + + V1RollingUpdateStatefulSetStrategyFluent fluent; + public V1RollingUpdateStatefulSetStrategyBuilder() { this(new V1RollingUpdateStatefulSetStrategy()); } @@ -10,17 +14,16 @@ public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrat this(fluent, new V1RollingUpdateStatefulSetStrategy()); } - public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,V1RollingUpdateStatefulSetStrategy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategy instance) { this.fluent = this; this.copyInstance(instance); } - V1RollingUpdateStatefulSetStrategyFluent fluent; + public V1RollingUpdateStatefulSetStrategyBuilder(V1RollingUpdateStatefulSetStrategyFluent fluent,V1RollingUpdateStatefulSetStrategy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RollingUpdateStatefulSetStrategy build() { V1RollingUpdateStatefulSetStrategy buildable = new V1RollingUpdateStatefulSetStrategy(); buildable.setMaxUnavailable(fluent.getMaxUnavailable()); @@ -28,5 +31,4 @@ public V1RollingUpdateStatefulSetStrategy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java index ce8d066ff8..336375fabe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java @@ -1,90 +1,110 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RollingUpdateStatefulSetStrategyFluent> extends BaseFluent{ +public class V1RollingUpdateStatefulSetStrategyFluent> extends BaseFluent{ + + private IntOrString maxUnavailable; + private Integer partition; + public V1RollingUpdateStatefulSetStrategyFluent() { } public V1RollingUpdateStatefulSetStrategyFluent(V1RollingUpdateStatefulSetStrategy instance) { this.copyInstance(instance); } - private IntOrString maxUnavailable; - private Integer partition; - + protected void copyInstance(V1RollingUpdateStatefulSetStrategy instance) { - instance = (instance != null ? instance : new V1RollingUpdateStatefulSetStrategy()); + instance = instance != null ? instance : new V1RollingUpdateStatefulSetStrategy(); if (instance != null) { - this.withMaxUnavailable(instance.getMaxUnavailable()); - this.withPartition(instance.getPartition()); - } + this.withMaxUnavailable(instance.getMaxUnavailable()); + this.withPartition(instance.getPartition()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RollingUpdateStatefulSetStrategyFluent that = (V1RollingUpdateStatefulSetStrategyFluent) o; + if (!(Objects.equals(maxUnavailable, that.maxUnavailable))) { + return false; + } + if (!(Objects.equals(partition, that.partition))) { + return false; + } + return true; } public IntOrString getMaxUnavailable() { return this.maxUnavailable; } - public A withMaxUnavailable(IntOrString maxUnavailable) { - this.maxUnavailable = maxUnavailable; - return (A) this; + public Integer getPartition() { + return this.partition; } public boolean hasMaxUnavailable() { return this.maxUnavailable != null; } - public A withNewMaxUnavailable(int value) { - return (A)withMaxUnavailable(new IntOrString(value)); + public boolean hasPartition() { + return this.partition != null; } - public A withNewMaxUnavailable(String value) { - return (A)withMaxUnavailable(new IntOrString(value)); + public int hashCode() { + return Objects.hash(maxUnavailable, partition); } - public Integer getPartition() { - return this.partition; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(maxUnavailable == null)) { + sb.append("maxUnavailable:"); + sb.append(maxUnavailable); + sb.append(","); + } + if (!(partition == null)) { + sb.append("partition:"); + sb.append(partition); + } + sb.append("}"); + return sb.toString(); } - public A withPartition(Integer partition) { - this.partition = partition; + public A withMaxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; return (A) this; } - public boolean hasPartition() { - return this.partition != 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; - V1RollingUpdateStatefulSetStrategyFluent that = (V1RollingUpdateStatefulSetStrategyFluent) o; - if (!java.util.Objects.equals(maxUnavailable, that.maxUnavailable)) return false; - if (!java.util.Objects.equals(partition, that.partition)) return false; - return true; + public A withNewMaxUnavailable(int value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); } - public int hashCode() { - return java.util.Objects.hash(maxUnavailable, partition, super.hashCode()); + public A withNewMaxUnavailable(String value) { + return (A) this.withMaxUnavailable(new IntOrString(value)); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (maxUnavailable != null) { sb.append("maxUnavailable:"); sb.append(maxUnavailable + ","); } - if (partition != null) { sb.append("partition:"); sb.append(partition); } - sb.append("}"); - return sb.toString(); + public A withPartition(Integer partition) { + this.partition = partition; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java index c0d8b6b5ee..17f6563884 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RuleWithOperationsBuilder extends V1RuleWithOperationsFluent implements VisitableBuilder{ + + V1RuleWithOperationsFluent fluent; + public V1RuleWithOperationsBuilder() { this(new V1RuleWithOperations()); } @@ -10,17 +14,16 @@ public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent) { this(fluent, new V1RuleWithOperations()); } - public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent,V1RuleWithOperations instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RuleWithOperationsBuilder(V1RuleWithOperations instance) { this.fluent = this; this.copyInstance(instance); } - V1RuleWithOperationsFluent fluent; + public V1RuleWithOperationsBuilder(V1RuleWithOperationsFluent fluent,V1RuleWithOperations instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RuleWithOperations build() { V1RuleWithOperations buildable = new V1RuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); @@ -31,5 +34,4 @@ public V1RuleWithOperations build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java index 39fcea9908..ff55896834 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java @@ -1,185 +1,237 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RuleWithOperationsFluent> extends BaseFluent{ - public V1RuleWithOperationsFluent() { - } - - public V1RuleWithOperationsFluent(V1RuleWithOperations instance) { - this.copyInstance(instance); - } +public class V1RuleWithOperationsFluent> extends BaseFluent{ + private List apiGroups; private List apiVersions; private List operations; private List resources; private String scope; - - protected void copyInstance(V1RuleWithOperations instance) { - instance = (instance != null ? instance : new V1RuleWithOperations()); - if (instance != null) { - this.withApiGroups(instance.getApiGroups()); - this.withApiVersions(instance.getApiVersions()); - this.withOperations(instance.getOperations()); - 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 V1RuleWithOperationsFluent() { } - 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 V1RuleWithOperationsFluent(V1RuleWithOperations instance) { + this.copyInstance(instance); } - + public A addAllToApiGroups(Collection items) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} - for (String item : items) {this.apiGroups.add(item);} return (A)this; + 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 addAllToApiVersions(Collection items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(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 A addAllToOperations(Collection items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } - public List getApiGroups() { - return this.apiGroups; + 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 String getApiGroup(int index) { - return this.apiGroups.get(index); + public A addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } - public String getFirstApiGroup() { - return this.apiGroups.get(0); + public A addToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.add(index, item); + return (A) this; } - public String getLastApiGroup() { - return this.apiGroups.get(apiGroups.size() - 1); + public A addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(item); + } + return (A) this; } - public String getMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A addToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.add(index, item); + return (A) this; } - public boolean hasMatchingApiGroup(Predicate predicate) { - for (String item : apiGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.add(item); + } + return (A) this; } - public A withApiGroups(List apiGroups) { - if (apiGroups != null) { - this.apiGroups = new ArrayList(); - for (String item : apiGroups) { - this.addToApiGroups(item); - } - } else { - this.apiGroups = null; + 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 withApiGroups(java.lang.String... apiGroups) { - if (this.apiGroups != null) { - this.apiGroups.clear(); - _visitables.remove("apiGroups"); + public A addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); } - if (apiGroups != null) { - for (String item : apiGroups) { - this.addToApiGroups(item); - } + for (String item : items) { + this.resources.add(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 addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.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; + protected void copyInstance(V1RuleWithOperations instance) { + instance = instance != null ? instance : new V1RuleWithOperations(); + if (instance != null) { + this.withApiGroups(instance.getApiGroups()); + this.withApiVersions(instance.getApiVersions()); + this.withOperations(instance.getOperations()); + this.withResources(instance.getResources()); + this.withScope(instance.getScope()); + } } - 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RuleWithOperationsFluent that = (V1RuleWithOperationsFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + return true; } - 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 String getApiGroup(int index) { + return this.apiGroups.get(index); } - 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 List getApiGroups() { + return this.apiGroups; } - public A removeAllFromApiVersions(Collection items) { - if (this.apiVersions == null) return (A)this; - for (String item : items) { this.apiVersions.remove(item);} return (A)this; + public String getApiVersion(int index) { + return this.apiVersions.get(index); } public List getApiVersions() { return this.apiVersions; } - public String getApiVersion(int index) { - return this.apiVersions.get(index); + public String getFirstApiGroup() { + return this.apiGroups.get(0); } public String getFirstApiVersion() { return this.apiVersions.get(0); } + public String getFirstOperation() { + return this.operations.get(0); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getLastApiGroup() { + return this.apiGroups.get(apiGroups.size() - 1); + } + public String getLastApiVersion() { return this.apiVersions.get(apiVersions.size() - 1); } - public String getMatchingApiVersion(Predicate predicate) { - for (String item : apiVersions) { + public String getLastOperation() { + return this.operations.get(operations.size() - 1); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { if (predicate.test(item)) { return item; } @@ -187,98 +239,77 @@ public String getMatchingApiVersion(Predicate predicate) { return null; } - public boolean hasMatchingApiVersion(Predicate predicate) { + public String getMatchingApiVersion(Predicate predicate) { for (String item : apiVersions) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withApiVersions(List apiVersions) { - if (apiVersions != null) { - this.apiVersions = new ArrayList(); - for (String item : apiVersions) { - this.addToApiVersions(item); + public String getMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return 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; + return null; } - public A setToOperations(int index,String item) { - if (this.operations == null) {this.operations = new ArrayList();} - this.operations.set(index, item); return (A)this; + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; + } + } + return null; } - 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 String getOperation(int index) { + return this.operations.get(index); } - 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 List getOperations() { + return this.operations; } - 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 String getResource(int index) { + return this.resources.get(index); } - 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 getResources() { + return this.resources; } - public List getOperations() { - return this.operations; + public String getScope() { + return this.scope; } - public String getOperation(int index) { - return this.operations.get(index); + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); } - public String getFirstOperation() { - return this.operations.get(0); + public boolean hasApiVersions() { + return this.apiVersions != null && !(this.apiVersions.isEmpty()); } - public String getLastOperation() { - return this.operations.get(operations.size() - 1); + public boolean hasMatchingApiGroup(Predicate predicate) { + for (String item : apiGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public String getMatchingOperation(Predicate predicate) { - for (String item : operations) { + public boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { if (predicate.test(item)) { - return item; + return true; } } - return null; + return false; } public boolean hasMatchingOperation(Predicate predicate) { @@ -290,98 +321,247 @@ public boolean hasMatchingOperation(Predicate predicate) { return false; } - public A withOperations(List operations) { - if (operations != null) { - this.operations = new ArrayList(); - for (String item : operations) { - this.addToOperations(item); + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; } - } else { - this.operations = null; + } + return false; + } + + public boolean hasOperations() { + return this.operations != null && !(this.operations.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public boolean hasScope() { + return this.scope != null; + } + + public int hashCode() { + return Objects.hash(apiGroups, apiVersions, operations, resources, scope); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); } return (A) this; } - public A withOperations(java.lang.String... operations) { - if (this.operations != null) { - this.operations.clear(); - _visitables.remove("operations"); + public A removeAllFromApiVersions(Collection items) { + if (this.apiVersions == null) { + return (A) this; } - if (operations != null) { - for (String item : operations) { - this.addToOperations(item); - } + for (String item : items) { + this.apiVersions.remove(item); } return (A) this; } - public boolean hasOperations() { - return this.operations != null && !this.operations.isEmpty(); + public A removeAllFromOperations(Collection items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; } - 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 removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(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 removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(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 removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(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 removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(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 removeFromResources(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 A setToApiGroups(int index,String item) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + this.apiGroups.set(index, item); + return (A) this; } - public List getResources() { - return this.resources; + public A setToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(index, item); + return (A) this; } - public String getResource(int index) { - return this.resources.get(index); + public A setToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.set(index, item); + return (A) this; } - public String getFirstResource() { - return this.resources.get(0); + public A setToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.set(index, item); + return (A) this; } - public String getLastResource() { - return this.resources.get(resources.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(apiVersions == null) && !(apiVersions.isEmpty())) { + sb.append("apiVersions:"); + sb.append(apiVersions); + sb.append(","); + } + if (!(operations == null) && !(operations.isEmpty())) { + sb.append("operations:"); + sb.append(operations); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return item; + 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(String... apiGroups) { + if (this.apiGroups != null) { + this.apiGroups.clear(); + _visitables.remove("apiGroups"); + } + if (apiGroups != null) { + for (String item : apiGroups) { + this.addToApiGroups(item); } - return null; + } + return (A) this; } - public boolean hasMatchingResource(Predicate predicate) { - for (String item : resources) { - if (predicate.test(item)) { - return true; + 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(String... apiVersions) { + if (this.apiVersions != null) { + this.apiVersions.clear(); + _visitables.remove("apiVersions"); + } + if (apiVersions != null) { + for (String item : apiVersions) { + this.addToApiVersions(item); } - return false; + } + return (A) this; + } + + 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(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 A withResources(List resources) { @@ -396,7 +576,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -409,51 +589,9 @@ public A withResources(java.lang.String... resources) { 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; - V1RuleWithOperationsFluent that = (V1RuleWithOperationsFluent) 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(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, 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 (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/V1RuntimeClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java index 4a6e60709a..7787bbb9f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RuntimeClassBuilder extends V1RuntimeClassFluent implements VisitableBuilder{ + + V1RuntimeClassFluent fluent; + public V1RuntimeClassBuilder() { this(new V1RuntimeClass()); } @@ -10,17 +14,16 @@ public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent) { this(fluent, new V1RuntimeClass()); } - public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent,V1RuntimeClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RuntimeClassBuilder(V1RuntimeClass instance) { this.fluent = this; this.copyInstance(instance); } - V1RuntimeClassFluent fluent; + public V1RuntimeClassBuilder(V1RuntimeClassFluent fluent,V1RuntimeClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RuntimeClass build() { V1RuntimeClass buildable = new V1RuntimeClass(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +35,4 @@ public V1RuntimeClass build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java index 1c607dbad4..714c727c9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java @@ -1,82 +1,215 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RuntimeClassFluent> extends BaseFluent{ - public V1RuntimeClassFluent() { - } - - public V1RuntimeClassFluent(V1RuntimeClass instance) { - this.copyInstance(instance); - } +public class V1RuntimeClassFluent> extends BaseFluent{ + private String apiVersion; private String handler; private String kind; private V1ObjectMetaBuilder metadata; private V1OverheadBuilder overhead; private V1SchedulingBuilder scheduling; + + public V1RuntimeClassFluent() { + } + + public V1RuntimeClassFluent(V1RuntimeClass instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1Overhead buildOverhead() { + return this.overhead != null ? this.overhead.build() : null; + } + + public V1Scheduling buildScheduling() { + return this.scheduling != null ? this.scheduling.build() : null; + } protected void copyInstance(V1RuntimeClass instance) { - instance = (instance != null ? instance : new V1RuntimeClass()); + instance = instance != null ? instance : new V1RuntimeClass(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withHandler(instance.getHandler()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withOverhead(instance.getOverhead()); - this.withScheduling(instance.getScheduling()); - } + this.withApiVersion(instance.getApiVersion()); + this.withHandler(instance.getHandler()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withOverhead(instance.getOverhead()); + this.withScheduling(instance.getScheduling()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public OverheadNested editOrNewOverhead() { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(new V1OverheadBuilder().build())); + } + + public OverheadNested editOrNewOverheadLike(V1Overhead item) { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(item)); + } + + public SchedulingNested editOrNewScheduling() { + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(new V1SchedulingBuilder().build())); + } + + public SchedulingNested editOrNewSchedulingLike(V1Scheduling item) { + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(item)); + } + + public OverheadNested editOverhead() { + return this.withNewOverheadLike(Optional.ofNullable(this.buildOverhead()).orElse(null)); + } + + public SchedulingNested editScheduling() { + return this.withNewSchedulingLike(Optional.ofNullable(this.buildScheduling()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RuntimeClassFluent that = (V1RuntimeClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(handler, that.handler))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(overhead, that.overhead))) { + return false; + } + if (!(Objects.equals(scheduling, that.scheduling))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getHandler() { return this.handler; } - public A withHandler(String handler) { - this.handler = handler; - return (A) this; + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasHandler() { return this.handler != null; } - public String getKind() { - return this.kind; + public boolean hasKind() { + return this.kind != null; } - public A withKind(String kind) { - this.kind = kind; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasOverhead() { + return this.overhead != null; + } + + public boolean hasScheduling() { + return this.scheduling != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, handler, kind, metadata, overhead, scheduling); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(handler == null)) { + sb.append("handler:"); + sb.append(handler); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(overhead == null)) { + sb.append("overhead:"); + sb.append(overhead); + sb.append(","); + } + if (!(scheduling == null)) { + sb.append("scheduling:"); + sb.append(scheduling); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; return (A) this; } - public boolean hasKind() { - return this.kind != null; + public A withHandler(String handler) { + this.handler = handler; + return (A) this; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -91,10 +224,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -103,20 +232,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public OverheadNested withNewOverhead() { + return new OverheadNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public OverheadNested withNewOverheadLike(V1Overhead item) { + return new OverheadNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public SchedulingNested withNewScheduling() { + return new SchedulingNested(null); } - public V1Overhead buildOverhead() { - return this.overhead != null ? this.overhead.build() : null; + public SchedulingNested withNewSchedulingLike(V1Scheduling item) { + return new SchedulingNested(item); } public A withOverhead(V1Overhead overhead) { @@ -131,34 +260,6 @@ public A withOverhead(V1Overhead overhead) { return (A) this; } - public boolean hasOverhead() { - return this.overhead != null; - } - - public OverheadNested withNewOverhead() { - return new OverheadNested(null); - } - - public OverheadNested withNewOverheadLike(V1Overhead item) { - return new OverheadNested(item); - } - - public OverheadNested editOverhead() { - return withNewOverheadLike(java.util.Optional.ofNullable(buildOverhead()).orElse(null)); - } - - public OverheadNested editOrNewOverhead() { - return withNewOverheadLike(java.util.Optional.ofNullable(buildOverhead()).orElse(new V1OverheadBuilder().build())); - } - - public OverheadNested editOrNewOverheadLike(V1Overhead item) { - return withNewOverheadLike(java.util.Optional.ofNullable(buildOverhead()).orElse(item)); - } - - public V1Scheduling buildScheduling() { - return this.scheduling != null ? this.scheduling.build() : null; - } - public A withScheduling(V1Scheduling scheduling) { this._visitables.remove("scheduling"); if (scheduling != null) { @@ -170,67 +271,14 @@ public A withScheduling(V1Scheduling scheduling) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasScheduling() { - return this.scheduling != null; - } - - public SchedulingNested withNewScheduling() { - return new SchedulingNested(null); - } - - public SchedulingNested withNewSchedulingLike(V1Scheduling item) { - return new SchedulingNested(item); - } - - public SchedulingNested editScheduling() { - return withNewSchedulingLike(java.util.Optional.ofNullable(buildScheduling()).orElse(null)); - } - - public SchedulingNested editOrNewScheduling() { - return withNewSchedulingLike(java.util.Optional.ofNullable(buildScheduling()).orElse(new V1SchedulingBuilder().build())); - } - - public SchedulingNested editOrNewSchedulingLike(V1Scheduling item) { - return withNewSchedulingLike(java.util.Optional.ofNullable(buildScheduling()).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; - V1RuntimeClassFluent that = (V1RuntimeClassFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(handler, that.handler)) 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(overhead, that.overhead)) return false; - if (!java.util.Objects.equals(scheduling, that.scheduling)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, handler, kind, metadata, overhead, scheduling, super.hashCode()); - } + V1ObjectMetaBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (handler != null) { sb.append("handler:"); sb.append(handler + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (overhead != null) { sb.append("overhead:"); sb.append(overhead + ","); } - if (scheduling != null) { sb.append("scheduling:"); sb.append(scheduling); } - 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) V1RuntimeClassFluent.this.withMetadata(builder.build()); } @@ -239,14 +287,15 @@ public N endMetadata() { return and(); } - } public class OverheadNested extends V1OverheadFluent> implements Nested{ + + V1OverheadBuilder builder; + OverheadNested(V1Overhead item) { this.builder = new V1OverheadBuilder(this, item); } - V1OverheadBuilder builder; - + public N and() { return (N) V1RuntimeClassFluent.this.withOverhead(builder.build()); } @@ -255,14 +304,15 @@ public N endOverhead() { return and(); } - } public class SchedulingNested extends V1SchedulingFluent> implements Nested{ + + V1SchedulingBuilder builder; + SchedulingNested(V1Scheduling item) { this.builder = new V1SchedulingBuilder(this, item); } - V1SchedulingBuilder builder; - + public N and() { return (N) V1RuntimeClassFluent.this.withScheduling(builder.build()); } @@ -271,7 +321,5 @@ public N endScheduling() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java index 8486bb68ef..ae5492eae7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1RuntimeClassListBuilder extends V1RuntimeClassListFluent implements VisitableBuilder{ + + V1RuntimeClassListFluent fluent; + public V1RuntimeClassListBuilder() { this(new V1RuntimeClassList()); } @@ -10,17 +14,16 @@ public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent) { this(fluent, new V1RuntimeClassList()); } - public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent,V1RuntimeClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1RuntimeClassListBuilder(V1RuntimeClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1RuntimeClassListFluent fluent; + public V1RuntimeClassListBuilder(V1RuntimeClassListFluent fluent,V1RuntimeClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1RuntimeClassList build() { V1RuntimeClassList buildable = new V1RuntimeClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1RuntimeClassList build() { return buildable; } - } \ No newline at end of file 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..2f9d7dc401 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1RuntimeClassListFluent> extends BaseFluent{ +public class V1RuntimeClassListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1RuntimeClassListFluent() { } public V1RuntimeClassListFluent(V1RuntimeClassList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1RuntimeClassList instance) { - instance = (instance != null ? instance : new V1RuntimeClassList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1RuntimeClass item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1RuntimeClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1RuntimeClass item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1RuntimeClass buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1RuntimeClass buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { - if (this.items == null) return (A)this; - for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1RuntimeClass buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1RuntimeClass item : items) {V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1RuntimeClass buildMatchingItem(Predicate predicate) { + for (V1RuntimeClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1RuntimeClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1RuntimeClassList instance) { + instance = instance != null ? instance : new V1RuntimeClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1RuntimeClass buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1RuntimeClass buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1RuntimeClass buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1RuntimeClassListFluent that = (V1RuntimeClassListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1RuntimeClass buildMatchingItem(Predicate predicate) { - for (V1RuntimeClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1RuntimeClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1RuntimeClass item : items) { + V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1RuntimeClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1RuntimeClass item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) { + public A withItems(V1RuntimeClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1RuntimeClass... items) return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1RuntimeClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1RuntimeClass 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1RuntimeClassFluent> implements Nested{ - 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; - V1RuntimeClassListFluent that = (V1RuntimeClassListFluent) 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()); - } + V1RuntimeClassBuilder builder; + int index; - 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 V1RuntimeClassFluent> implements Nested{ ItemsNested(int index,V1RuntimeClass item) { this.index = index; this.builder = new V1RuntimeClassBuilder(this, item); } - V1RuntimeClassBuilder builder; - int index; - + public N and() { - return (N) V1RuntimeClassListFluent.this.setToItems(index,builder.build()); + return (N) V1RuntimeClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1RuntimeClassListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java index 87dede1097..6536b6ebce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SELinuxOptionsBuilder extends V1SELinuxOptionsFluent implements VisitableBuilder{ + + V1SELinuxOptionsFluent fluent; + public V1SELinuxOptionsBuilder() { this(new V1SELinuxOptions()); } @@ -10,17 +14,16 @@ public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent) { this(fluent, new V1SELinuxOptions()); } - public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent,V1SELinuxOptions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SELinuxOptionsBuilder(V1SELinuxOptions instance) { this.fluent = this; this.copyInstance(instance); } - V1SELinuxOptionsFluent fluent; + public V1SELinuxOptionsBuilder(V1SELinuxOptionsFluent fluent,V1SELinuxOptions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SELinuxOptions build() { V1SELinuxOptions buildable = new V1SELinuxOptions(); buildable.setLevel(fluent.getLevel()); @@ -30,5 +33,4 @@ public V1SELinuxOptions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java index 1283c5736c..8a74f60b7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java @@ -1,114 +1,146 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SELinuxOptionsFluent> extends BaseFluent{ +public class V1SELinuxOptionsFluent> extends BaseFluent{ + + private String level; + private String role; + private String type; + private String user; + public V1SELinuxOptionsFluent() { } public V1SELinuxOptionsFluent(V1SELinuxOptions instance) { this.copyInstance(instance); } - private String level; - private String role; - private String type; - private String user; - + protected void copyInstance(V1SELinuxOptions instance) { - instance = (instance != null ? instance : new V1SELinuxOptions()); + instance = instance != null ? instance : new V1SELinuxOptions(); if (instance != null) { - this.withLevel(instance.getLevel()); - this.withRole(instance.getRole()); - this.withType(instance.getType()); - this.withUser(instance.getUser()); - } - } - - public String getLevel() { - return this.level; + this.withLevel(instance.getLevel()); + this.withRole(instance.getRole()); + this.withType(instance.getType()); + this.withUser(instance.getUser()); + } } - public A withLevel(String level) { - this.level = level; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SELinuxOptionsFluent that = (V1SELinuxOptionsFluent) o; + if (!(Objects.equals(level, that.level))) { + return false; + } + if (!(Objects.equals(role, that.role))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } - public boolean hasLevel() { - return this.level != null; + public String getLevel() { + return this.level; } public String getRole() { return this.role; } - public A withRole(String role) { - this.role = role; - return (A) this; - } - - public boolean hasRole() { - return this.role != null; - } - public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public String getUser() { + return this.user; } - public boolean hasType() { - return this.type != null; + public boolean hasLevel() { + return this.level != null; } - public String getUser() { - return this.user; + public boolean hasRole() { + return this.role != null; } - public A withUser(String user) { - this.user = user; - return (A) this; + public boolean hasType() { + return this.type != null; } public boolean hasUser() { return this.user != 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; - V1SELinuxOptionsFluent that = (V1SELinuxOptionsFluent) o; - if (!java.util.Objects.equals(level, that.level)) return false; - if (!java.util.Objects.equals(role, that.role)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(level, role, type, user, super.hashCode()); + return Objects.hash(level, role, type, user); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (level != null) { sb.append("level:"); sb.append(level + ","); } - if (role != null) { sb.append("role:"); sb.append(role + ","); } - if (type != null) { sb.append("type:"); sb.append(type + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } + if (!(level == null)) { + sb.append("level:"); + sb.append(level); + sb.append(","); + } + if (!(role == null)) { + sb.append("role:"); + sb.append(role); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } sb.append("}"); return sb.toString(); } - + public A withLevel(String level) { + this.level = level; + return (A) this; + } + + public A withRole(String role) { + this.role = role; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public A withUser(String user) { + this.user = user; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java index a4657fcd2b..1de0f4dd65 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleBuilder extends V1ScaleFluent implements VisitableBuilder{ + + V1ScaleFluent fluent; + public V1ScaleBuilder() { this(new V1Scale()); } @@ -10,17 +14,16 @@ public V1ScaleBuilder(V1ScaleFluent fluent) { this(fluent, new V1Scale()); } - public V1ScaleBuilder(V1ScaleFluent fluent,V1Scale instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleBuilder(V1Scale instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleFluent fluent; + public V1ScaleBuilder(V1ScaleFluent fluent,V1Scale instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Scale build() { V1Scale buildable = new V1Scale(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1Scale build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java index 2ecd469dc4..288b0702a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleFluent> extends BaseFluent{ +public class V1ScaleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ScaleSpecBuilder spec; + private V1ScaleStatusBuilder status; + public V1ScaleFluent() { } public V1ScaleFluent(V1Scale instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ScaleSpecBuilder spec; - private V1ScaleStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ScaleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1ScaleStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1Scale instance) { - instance = (instance != null ? instance : new V1Scale()); + instance = instance != null ? instance : new V1Scale(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ScaleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ScaleSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ScaleStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ScaleStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ScaleFluent that = (V1ScaleFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1ScaleSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1ScaleSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1ScaleStatus item) { + return new StatusNested(item); } public A withSpec(V1ScaleSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1ScaleSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ScaleSpec 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 V1ScaleSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1ScaleSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1ScaleStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1ScaleStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1ScaleStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1ScaleStatus 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 V1ScaleStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ScaleStatus 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; - V1ScaleFluent that = (V1ScaleFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1ScaleFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ScaleSpecFluent> implements Nested{ + + V1ScaleSpecBuilder builder; + SpecNested(V1ScaleSpec item) { this.builder = new V1ScaleSpecBuilder(this, item); } - V1ScaleSpecBuilder builder; - + public N and() { return (N) V1ScaleFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ScaleStatusFluent> implements Nested{ + + V1ScaleStatusBuilder builder; + StatusNested(V1ScaleStatus item) { this.builder = new V1ScaleStatusBuilder(this, item); } - V1ScaleStatusBuilder builder; - + public N and() { return (N) V1ScaleFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java index c4c41cc940..d76203a04f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleIOPersistentVolumeSourceBuilder extends V1ScaleIOPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1ScaleIOPersistentVolumeSourceFluent fluent; + public V1ScaleIOPersistentVolumeSourceBuilder() { this(new V1ScaleIOPersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFlu this(fluent, new V1ScaleIOPersistentVolumeSource()); } - public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFluent fluent,V1ScaleIOPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleIOPersistentVolumeSourceFluent fluent; + public V1ScaleIOPersistentVolumeSourceBuilder(V1ScaleIOPersistentVolumeSourceFluent fluent,V1ScaleIOPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScaleIOPersistentVolumeSource build() { V1ScaleIOPersistentVolumeSource buildable = new V1ScaleIOPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -36,5 +39,4 @@ public V1ScaleIOPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java index f38035752e..324a808fb4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java @@ -1,23 +1,21 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleIOPersistentVolumeSourceFluent> extends BaseFluent{ - public V1ScaleIOPersistentVolumeSourceFluent() { - } - - public V1ScaleIOPersistentVolumeSourceFluent(V1ScaleIOPersistentVolumeSource instance) { - this.copyInstance(instance); - } +public class V1ScaleIOPersistentVolumeSourceFluent> extends BaseFluent{ + private String fsType; private String gateway; private String protectionDomain; @@ -28,232 +26,306 @@ public V1ScaleIOPersistentVolumeSourceFluent(V1ScaleIOPersistentVolumeSource ins private String storagePool; private String system; private String volumeName; + + public V1ScaleIOPersistentVolumeSourceFluent() { + } + + public V1ScaleIOPersistentVolumeSourceFluent(V1ScaleIOPersistentVolumeSource instance) { + this.copyInstance(instance); + } + + public V1SecretReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1ScaleIOPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1ScaleIOPersistentVolumeSource()); + instance = instance != null ? instance : new V1ScaleIOPersistentVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withGateway(instance.getGateway()); - this.withProtectionDomain(instance.getProtectionDomain()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withSslEnabled(instance.getSslEnabled()); - this.withStorageMode(instance.getStorageMode()); - this.withStoragePool(instance.getStoragePool()); - this.withSystem(instance.getSystem()); - this.withVolumeName(instance.getVolumeName()); - } + this.withFsType(instance.getFsType()); + this.withGateway(instance.getGateway()); + this.withProtectionDomain(instance.getProtectionDomain()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withSslEnabled(instance.getSslEnabled()); + this.withStorageMode(instance.getStorageMode()); + this.withStoragePool(instance.getStoragePool()); + this.withSystem(instance.getSystem()); + this.withVolumeName(instance.getVolumeName()); + } } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public String getGateway() { - return this.gateway; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ScaleIOPersistentVolumeSourceFluent that = (V1ScaleIOPersistentVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(gateway, that.gateway))) { + return false; + } + if (!(Objects.equals(protectionDomain, that.protectionDomain))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(sslEnabled, that.sslEnabled))) { + return false; + } + if (!(Objects.equals(storageMode, that.storageMode))) { + return false; + } + if (!(Objects.equals(storagePool, that.storagePool))) { + return false; + } + if (!(Objects.equals(system, that.system))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + return true; } - public A withGateway(String gateway) { - this.gateway = gateway; - return (A) this; + public String getFsType() { + return this.fsType; } - public boolean hasGateway() { - return this.gateway != null; + public String getGateway() { + return this.gateway; } public String getProtectionDomain() { return this.protectionDomain; } - public A withProtectionDomain(String protectionDomain) { - this.protectionDomain = protectionDomain; - return (A) this; - } - - public boolean hasProtectionDomain() { - return this.protectionDomain != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public Boolean getSslEnabled() { + return this.sslEnabled; } - public boolean hasReadOnly() { - return this.readOnly != null; + public String getStorageMode() { + return this.storageMode; } - public V1SecretReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public String getStoragePool() { + return this.storagePool; } - public A withSecretRef(V1SecretReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1SecretReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public String getSystem() { + return this.system; } - public boolean hasSecretRef() { - return this.secretRef != null; + public String getVolumeName() { + return this.volumeName; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public boolean hasFsType() { + return this.fsType != null; } - public SecretRefNested withNewSecretRefLike(V1SecretReference item) { - return new SecretRefNested(item); + public boolean hasGateway() { + return this.gateway != null; } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + public boolean hasProtectionDomain() { + return this.protectionDomain != null; } - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1SecretReferenceBuilder().build())); + public boolean hasReadOnly() { + return this.readOnly != null; } - public SecretRefNested editOrNewSecretRefLike(V1SecretReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public boolean hasSecretRef() { + return this.secretRef != null; } - public Boolean getSslEnabled() { - return this.sslEnabled; + public boolean hasSslEnabled() { + return this.sslEnabled != null; } - public A withSslEnabled(Boolean sslEnabled) { - this.sslEnabled = sslEnabled; - return (A) this; + public boolean hasStorageMode() { + return this.storageMode != null; } - public boolean hasSslEnabled() { - return this.sslEnabled != null; + public boolean hasStoragePool() { + return this.storagePool != null; } - public String getStorageMode() { - return this.storageMode; + public boolean hasSystem() { + return this.system != null; } - public A withStorageMode(String storageMode) { - this.storageMode = storageMode; - return (A) this; + public boolean hasVolumeName() { + return this.volumeName != null; } - public boolean hasStorageMode() { - return this.storageMode != null; + public int hashCode() { + return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); } - public String getStoragePool() { - return this.storagePool; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(gateway == null)) { + sb.append("gateway:"); + sb.append(gateway); + sb.append(","); + } + if (!(protectionDomain == null)) { + sb.append("protectionDomain:"); + sb.append(protectionDomain); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(sslEnabled == null)) { + sb.append("sslEnabled:"); + sb.append(sslEnabled); + sb.append(","); + } + if (!(storageMode == null)) { + sb.append("storageMode:"); + sb.append(storageMode); + sb.append(","); + } + if (!(storagePool == null)) { + sb.append("storagePool:"); + sb.append(storagePool); + sb.append(","); + } + if (!(system == null)) { + sb.append("system:"); + sb.append(system); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + } + sb.append("}"); + return sb.toString(); } - public A withStoragePool(String storagePool) { - this.storagePool = storagePool; + public A withFsType(String fsType) { + this.fsType = fsType; return (A) this; } - public boolean hasStoragePool() { - return this.storagePool != null; + public A withGateway(String gateway) { + this.gateway = gateway; + return (A) this; } - public String getSystem() { - return this.system; + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public A withSystem(String system) { - this.system = system; + public SecretRefNested withNewSecretRefLike(V1SecretReference item) { + return new SecretRefNested(item); + } + + public A withProtectionDomain(String protectionDomain) { + this.protectionDomain = protectionDomain; return (A) this; } - public boolean hasSystem() { - return this.system != null; + public A withReadOnly() { + return withReadOnly(true); } - public String getVolumeName() { - return this.volumeName; + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; + public A withSecretRef(V1SecretReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1SecretReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } return (A) this; } - public boolean hasVolumeName() { - return this.volumeName != null; + public A withSslEnabled() { + return withSslEnabled(true); } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ScaleIOPersistentVolumeSourceFluent that = (V1ScaleIOPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(gateway, that.gateway)) return false; - if (!java.util.Objects.equals(protectionDomain, that.protectionDomain)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(sslEnabled, that.sslEnabled)) return false; - if (!java.util.Objects.equals(storageMode, that.storageMode)) return false; - if (!java.util.Objects.equals(storagePool, that.storagePool)) return false; - if (!java.util.Objects.equals(system, that.system)) return false; - if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; - return true; + public A withSslEnabled(Boolean sslEnabled) { + this.sslEnabled = sslEnabled; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName, super.hashCode()); + public A withStorageMode(String storageMode) { + this.storageMode = storageMode; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (gateway != null) { sb.append("gateway:"); sb.append(gateway + ","); } - if (protectionDomain != null) { sb.append("protectionDomain:"); sb.append(protectionDomain + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (sslEnabled != null) { sb.append("sslEnabled:"); sb.append(sslEnabled + ","); } - if (storageMode != null) { sb.append("storageMode:"); sb.append(storageMode + ","); } - if (storagePool != null) { sb.append("storagePool:"); sb.append(storagePool + ","); } - if (system != null) { sb.append("system:"); sb.append(system + ","); } - if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName); } - sb.append("}"); - return sb.toString(); + public A withStoragePool(String storagePool) { + this.storagePool = storagePool; + return (A) this; } - public A withReadOnly() { - return withReadOnly(true); + public A withSystem(String system) { + this.system = system; + return (A) this; } - public A withSslEnabled() { - return withSslEnabled(true); + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; } public class SecretRefNested extends V1SecretReferenceFluent> implements Nested{ + + V1SecretReferenceBuilder builder; + SecretRefNested(V1SecretReference item) { this.builder = new V1SecretReferenceBuilder(this, item); } - V1SecretReferenceBuilder builder; - + public N and() { return (N) V1ScaleIOPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -262,7 +334,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java index 1470252a33..d77c026ae0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleIOVolumeSourceBuilder extends V1ScaleIOVolumeSourceFluent implements VisitableBuilder{ + + V1ScaleIOVolumeSourceFluent fluent; + public V1ScaleIOVolumeSourceBuilder() { this(new V1ScaleIOVolumeSource()); } @@ -10,17 +14,16 @@ public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent) { this(fluent, new V1ScaleIOVolumeSource()); } - public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent,V1ScaleIOVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleIOVolumeSourceFluent fluent; + public V1ScaleIOVolumeSourceBuilder(V1ScaleIOVolumeSourceFluent fluent,V1ScaleIOVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScaleIOVolumeSource build() { V1ScaleIOVolumeSource buildable = new V1ScaleIOVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -36,5 +39,4 @@ public V1ScaleIOVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java index 5090f4378b..fe69008a3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java @@ -1,23 +1,21 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleIOVolumeSourceFluent> extends BaseFluent{ - public V1ScaleIOVolumeSourceFluent() { - } - - public V1ScaleIOVolumeSourceFluent(V1ScaleIOVolumeSource instance) { - this.copyInstance(instance); - } +public class V1ScaleIOVolumeSourceFluent> extends BaseFluent{ + private String fsType; private String gateway; private String protectionDomain; @@ -28,232 +26,306 @@ public V1ScaleIOVolumeSourceFluent(V1ScaleIOVolumeSource instance) { private String storagePool; private String system; private String volumeName; + + public V1ScaleIOVolumeSourceFluent() { + } + + public V1ScaleIOVolumeSourceFluent(V1ScaleIOVolumeSource instance) { + this.copyInstance(instance); + } + + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1ScaleIOVolumeSource instance) { - instance = (instance != null ? instance : new V1ScaleIOVolumeSource()); + instance = instance != null ? instance : new V1ScaleIOVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withGateway(instance.getGateway()); - this.withProtectionDomain(instance.getProtectionDomain()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withSslEnabled(instance.getSslEnabled()); - this.withStorageMode(instance.getStorageMode()); - this.withStoragePool(instance.getStoragePool()); - this.withSystem(instance.getSystem()); - this.withVolumeName(instance.getVolumeName()); - } + this.withFsType(instance.getFsType()); + this.withGateway(instance.getGateway()); + this.withProtectionDomain(instance.getProtectionDomain()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withSslEnabled(instance.getSslEnabled()); + this.withStorageMode(instance.getStorageMode()); + this.withStoragePool(instance.getStoragePool()); + this.withSystem(instance.getSystem()); + this.withVolumeName(instance.getVolumeName()); + } } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); } - public String getGateway() { - return this.gateway; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ScaleIOVolumeSourceFluent that = (V1ScaleIOVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(gateway, that.gateway))) { + return false; + } + if (!(Objects.equals(protectionDomain, that.protectionDomain))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(sslEnabled, that.sslEnabled))) { + return false; + } + if (!(Objects.equals(storageMode, that.storageMode))) { + return false; + } + if (!(Objects.equals(storagePool, that.storagePool))) { + return false; + } + if (!(Objects.equals(system, that.system))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + return true; } - public A withGateway(String gateway) { - this.gateway = gateway; - return (A) this; + public String getFsType() { + return this.fsType; } - public boolean hasGateway() { - return this.gateway != null; + public String getGateway() { + return this.gateway; } public String getProtectionDomain() { return this.protectionDomain; } - public A withProtectionDomain(String protectionDomain) { - this.protectionDomain = protectionDomain; - return (A) this; - } - - public boolean hasProtectionDomain() { - return this.protectionDomain != null; - } - public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public Boolean getSslEnabled() { + return this.sslEnabled; } - public boolean hasReadOnly() { - return this.readOnly != null; + public String getStorageMode() { + return this.storageMode; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public String getStoragePool() { + return this.storagePool; } - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public String getSystem() { + return this.system; } - public boolean hasSecretRef() { - return this.secretRef != null; + public String getVolumeName() { + return this.volumeName; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); + public boolean hasFsType() { + return this.fsType != null; } - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + public boolean hasGateway() { + return this.gateway != null; } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + public boolean hasProtectionDomain() { + return this.protectionDomain != null; } - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public boolean hasReadOnly() { + return this.readOnly != null; } - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public boolean hasSecretRef() { + return this.secretRef != null; } - public Boolean getSslEnabled() { - return this.sslEnabled; + public boolean hasSslEnabled() { + return this.sslEnabled != null; } - public A withSslEnabled(Boolean sslEnabled) { - this.sslEnabled = sslEnabled; - return (A) this; + public boolean hasStorageMode() { + return this.storageMode != null; } - public boolean hasSslEnabled() { - return this.sslEnabled != null; + public boolean hasStoragePool() { + return this.storagePool != null; } - public String getStorageMode() { - return this.storageMode; + public boolean hasSystem() { + return this.system != null; } - public A withStorageMode(String storageMode) { - this.storageMode = storageMode; - return (A) this; + public boolean hasVolumeName() { + return this.volumeName != null; } - public boolean hasStorageMode() { - return this.storageMode != null; + public int hashCode() { + return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); } - public String getStoragePool() { - return this.storagePool; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(gateway == null)) { + sb.append("gateway:"); + sb.append(gateway); + sb.append(","); + } + if (!(protectionDomain == null)) { + sb.append("protectionDomain:"); + sb.append(protectionDomain); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(sslEnabled == null)) { + sb.append("sslEnabled:"); + sb.append(sslEnabled); + sb.append(","); + } + if (!(storageMode == null)) { + sb.append("storageMode:"); + sb.append(storageMode); + sb.append(","); + } + if (!(storagePool == null)) { + sb.append("storagePool:"); + sb.append(storagePool); + sb.append(","); + } + if (!(system == null)) { + sb.append("system:"); + sb.append(system); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + } + sb.append("}"); + return sb.toString(); } - public A withStoragePool(String storagePool) { - this.storagePool = storagePool; + public A withFsType(String fsType) { + this.fsType = fsType; return (A) this; } - public boolean hasStoragePool() { - return this.storagePool != null; + public A withGateway(String gateway) { + this.gateway = gateway; + return (A) this; } - public String getSystem() { - return this.system; + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public A withSystem(String system) { - this.system = system; + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); + } + + public A withProtectionDomain(String protectionDomain) { + this.protectionDomain = protectionDomain; return (A) this; } - public boolean hasSystem() { - return this.system != null; + public A withReadOnly() { + return withReadOnly(true); } - public String getVolumeName() { - return this.volumeName; + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } return (A) this; } - public boolean hasVolumeName() { - return this.volumeName != null; + public A withSslEnabled() { + return withSslEnabled(true); } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1ScaleIOVolumeSourceFluent that = (V1ScaleIOVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(gateway, that.gateway)) return false; - if (!java.util.Objects.equals(protectionDomain, that.protectionDomain)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(sslEnabled, that.sslEnabled)) return false; - if (!java.util.Objects.equals(storageMode, that.storageMode)) return false; - if (!java.util.Objects.equals(storagePool, that.storagePool)) return false; - if (!java.util.Objects.equals(system, that.system)) return false; - if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; - return true; + public A withSslEnabled(Boolean sslEnabled) { + this.sslEnabled = sslEnabled; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName, super.hashCode()); + public A withStorageMode(String storageMode) { + this.storageMode = storageMode; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (gateway != null) { sb.append("gateway:"); sb.append(gateway + ","); } - if (protectionDomain != null) { sb.append("protectionDomain:"); sb.append(protectionDomain + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (sslEnabled != null) { sb.append("sslEnabled:"); sb.append(sslEnabled + ","); } - if (storageMode != null) { sb.append("storageMode:"); sb.append(storageMode + ","); } - if (storagePool != null) { sb.append("storagePool:"); sb.append(storagePool + ","); } - if (system != null) { sb.append("system:"); sb.append(system + ","); } - if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName); } - sb.append("}"); - return sb.toString(); + public A withStoragePool(String storagePool) { + this.storagePool = storagePool; + return (A) this; } - public A withReadOnly() { - return withReadOnly(true); + public A withSystem(String system) { + this.system = system; + return (A) this; } - public A withSslEnabled() { - return withSslEnabled(true); + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; } public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ + + V1LocalObjectReferenceBuilder builder; + SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1ScaleIOVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -262,7 +334,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java index c75525f37c..91b9af2f66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleSpecBuilder extends V1ScaleSpecFluent implements VisitableBuilder{ + + V1ScaleSpecFluent fluent; + public V1ScaleSpecBuilder() { this(new V1ScaleSpec()); } @@ -10,22 +14,20 @@ public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent) { this(fluent, new V1ScaleSpec()); } - public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent,V1ScaleSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleSpecBuilder(V1ScaleSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleSpecFluent fluent; + public V1ScaleSpecBuilder(V1ScaleSpecFluent fluent,V1ScaleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScaleSpec build() { V1ScaleSpec buildable = new V1ScaleSpec(); buildable.setReplicas(fluent.getReplicas()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java index 568a508398..6441d67287 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java @@ -1,64 +1,78 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleSpecFluent> extends BaseFluent{ +public class V1ScaleSpecFluent> extends BaseFluent{ + + private Integer replicas; + public V1ScaleSpecFluent() { } public V1ScaleSpecFluent(V1ScaleSpec instance) { this.copyInstance(instance); } - private Integer replicas; - + protected void copyInstance(V1ScaleSpec instance) { - instance = (instance != null ? instance : new V1ScaleSpec()); + instance = instance != null ? instance : new V1ScaleSpec(); if (instance != null) { - this.withReplicas(instance.getReplicas()); - } + this.withReplicas(instance.getReplicas()); + } } - public Integer getReplicas() { - return this.replicas; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ScaleSpecFluent that = (V1ScaleSpecFluent) o; + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + return true; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + public Integer getReplicas() { + return this.replicas; } public boolean hasReplicas() { return this.replicas != 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; - V1ScaleSpecFluent that = (V1ScaleSpecFluent) o; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(replicas, super.hashCode()); + return Objects.hash(replicas); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (replicas != null) { sb.append("replicas:"); sb.append(replicas); } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + } sb.append("}"); return sb.toString(); } - + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java index a2ba69563d..8356b194e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScaleStatusBuilder extends V1ScaleStatusFluent implements VisitableBuilder{ + + V1ScaleStatusFluent fluent; + public V1ScaleStatusBuilder() { this(new V1ScaleStatus()); } @@ -10,17 +14,16 @@ public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent) { this(fluent, new V1ScaleStatus()); } - public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent,V1ScaleStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScaleStatusBuilder(V1ScaleStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ScaleStatusFluent fluent; + public V1ScaleStatusBuilder(V1ScaleStatusFluent fluent,V1ScaleStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScaleStatus build() { V1ScaleStatus buildable = new V1ScaleStatus(); buildable.setReplicas(fluent.getReplicas()); @@ -28,5 +31,4 @@ public V1ScaleStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java index 9673b528e3..ff8dbbde84 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java @@ -1,81 +1,101 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ScaleStatusFluent> extends BaseFluent{ +public class V1ScaleStatusFluent> extends BaseFluent{ + + private Integer replicas; + private String selector; + public V1ScaleStatusFluent() { } public V1ScaleStatusFluent(V1ScaleStatus instance) { this.copyInstance(instance); } - private Integer replicas; - private String selector; - + protected void copyInstance(V1ScaleStatus instance) { - instance = (instance != null ? instance : new V1ScaleStatus()); + instance = instance != null ? instance : new V1ScaleStatus(); if (instance != null) { - this.withReplicas(instance.getReplicas()); - this.withSelector(instance.getSelector()); - } + this.withReplicas(instance.getReplicas()); + this.withSelector(instance.getSelector()); + } } - public Integer getReplicas() { - return this.replicas; - } - - public A withReplicas(Integer replicas) { - this.replicas = replicas; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ScaleStatusFluent that = (V1ScaleStatusFluent) o; + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + return true; } - public boolean hasReplicas() { - return this.replicas != null; + public Integer getReplicas() { + return this.replicas; } public String getSelector() { return this.selector; } - public A withSelector(String selector) { - this.selector = selector; - return (A) this; + public boolean hasReplicas() { + return this.replicas != null; } public boolean hasSelector() { return this.selector != 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; - V1ScaleStatusFluent that = (V1ScaleStatusFluent) o; - if (!java.util.Objects.equals(replicas, that.replicas)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(replicas, selector, super.hashCode()); + return Objects.hash(replicas, selector); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (replicas != null) { sb.append("replicas:"); sb.append(replicas + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector); } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } sb.append("}"); return sb.toString(); } - + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withSelector(String selector) { + this.selector = selector; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java index 272bb268c5..f6afe07145 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SchedulingBuilder extends V1SchedulingFluent implements VisitableBuilder{ + + V1SchedulingFluent fluent; + public V1SchedulingBuilder() { this(new V1Scheduling()); } @@ -10,17 +14,16 @@ public V1SchedulingBuilder(V1SchedulingFluent fluent) { this(fluent, new V1Scheduling()); } - public V1SchedulingBuilder(V1SchedulingFluent fluent,V1Scheduling instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SchedulingBuilder(V1Scheduling instance) { this.fluent = this; this.copyInstance(instance); } - V1SchedulingFluent fluent; + public V1SchedulingBuilder(V1SchedulingFluent fluent,V1Scheduling instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Scheduling build() { V1Scheduling buildable = new V1Scheduling(); buildable.setNodeSelector(fluent.getNodeSelector()); @@ -28,5 +31,4 @@ public V1Scheduling build() { return buildable; } - } \ No newline at end of file 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..565a79c509 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 @@ -1,149 +1,195 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; 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.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SchedulingFluent> extends BaseFluent{ +public class V1SchedulingFluent> extends BaseFluent{ + + private Map nodeSelector; + private ArrayList tolerations; + public V1SchedulingFluent() { } public V1SchedulingFluent(V1Scheduling instance) { this.copyInstance(instance); } - private Map nodeSelector; - private ArrayList tolerations; - - protected void copyInstance(V1Scheduling instance) { - instance = (instance != null ? instance : new V1Scheduling()); - if (instance != null) { - this.withNodeSelector(instance.getNodeSelector()); - this.withTolerations(instance.getTolerations()); - } + + public A addAllToTolerations(Collection items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A addToNodeSelector(String key,String value) { - if(this.nodeSelector == null && key != null && value != null) { this.nodeSelector = new LinkedHashMap(); } - if(key != null && value != null) {this.nodeSelector.put(key, value);} return (A)this; + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); } - public A addToNodeSelector(Map map) { - if(this.nodeSelector == null && map != null) { this.nodeSelector = new LinkedHashMap(); } - if(map != null) { this.nodeSelector.putAll(map);} return (A)this; + public TolerationsNested addNewTolerationLike(V1Toleration item) { + return new TolerationsNested(-1, item); } - public A removeFromNodeSelector(String key) { - if(this.nodeSelector == null) { return (A) this; } - if(key != null && this.nodeSelector != null) {this.nodeSelector.remove(key);} return (A)this; + public A addToNodeSelector(Map map) { + if (this.nodeSelector == null && map != null) { + this.nodeSelector = new LinkedHashMap(); + } + if (map != null) { + this.nodeSelector.putAll(map); + } + return (A) this; } - public A removeFromNodeSelector(Map map) { - if(this.nodeSelector == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.nodeSelector != null){this.nodeSelector.remove(key);}}} return (A)this; + public A addToNodeSelector(String key,String value) { + if (this.nodeSelector == null && key != null && value != null) { + this.nodeSelector = new LinkedHashMap(); + } + if (key != null && value != null) { + this.nodeSelector.put(key, value); + } + return (A) this; } - public Map getNodeSelector() { - return this.nodeSelector; + public A addToTolerations(V1Toleration... items) { + if (this.tolerations == null) { + this.tolerations = new ArrayList(); + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").add(builder); + this.tolerations.add(builder); + } + return (A) this; } - public A withNodeSelector(Map nodeSelector) { - if (nodeSelector == null) { - this.nodeSelector = null; + 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 { - this.nodeSelector = new LinkedHashMap(nodeSelector); + _visitables.get("tolerations").add(builder); + tolerations.add(index, builder); } return (A) this; } - public boolean hasNodeSelector() { - return this.nodeSelector != null; - } - - 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);} - return (A)this; + public V1Toleration buildFirstToleration() { + return this.tolerations.get(0).build(); } - 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);} - return (A)this; + public V1Toleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); } - public A addToTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public V1Toleration buildMatchingToleration(Predicate predicate) { + for (V1TolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public A addAllToTolerations(Collection items) { - if (this.tolerations == null) {this.tolerations = new ArrayList();} - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").add(builder);this.tolerations.add(builder);} return (A)this; + public V1Toleration buildToleration(int index) { + return this.tolerations.get(index).build(); } - public A removeFromTolerations(io.kubernetes.client.openapi.models.V1Toleration... items) { - if (this.tolerations == null) return (A)this; - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; } - public A removeAllFromTolerations(Collection items) { - if (this.tolerations == null) return (A)this; - for (V1Toleration item : items) {V1TolerationBuilder builder = new V1TolerationBuilder(item);_visitables.get("tolerations").remove(builder); this.tolerations.remove(builder);} return (A)this; + protected void copyInstance(V1Scheduling instance) { + instance = instance != null ? instance : new V1Scheduling(); + if (instance != null) { + this.withNodeSelector(instance.getNodeSelector()); + this.withTolerations(instance.getTolerations()); + } } - 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()) { - V1TolerationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); } - return (A)this; + return this.setNewTolerationLike(0, this.buildToleration(0)); } - public List buildTolerations() { - return this.tolerations != null ? build(tolerations) : null; + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public V1Toleration buildToleration(int index) { - return this.tolerations.get(index).build(); + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public V1Toleration buildFirstToleration() { - return this.tolerations.get(0).build(); + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); } - public V1Toleration buildLastToleration() { - return this.tolerations.get(tolerations.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SchedulingFluent that = (V1SchedulingFluent) o; + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; } - public V1Toleration buildMatchingToleration(Predicate predicate) { - for (V1TolerationBuilder item : tolerations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public Map getNodeSelector() { + return this.nodeSelector; } public boolean hasMatchingToleration(Predicate predicate) { @@ -155,114 +201,170 @@ public boolean hasMatchingToleration(Predicate predicate) { return false; } - public A withTolerations(List tolerations) { - if (this.tolerations != null) { - this._visitables.get("tolerations").clear(); + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(nodeSelector, tolerations); + } + + public A removeAllFromTolerations(Collection items) { + if (this.tolerations == null) { + return (A) this; } - if (tolerations != null) { - this.tolerations = new ArrayList(); - for (V1Toleration item : tolerations) { - this.addToTolerations(item); - } - } else { - this.tolerations = null; + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); } return (A) this; } - public A withTolerations(io.kubernetes.client.openapi.models.V1Toleration... tolerations) { - if (this.tolerations != null) { - this.tolerations.clear(); - _visitables.remove("tolerations"); + public A removeFromNodeSelector(String key) { + if (this.nodeSelector == null) { + return (A) this; } - if (tolerations != null) { - for (V1Toleration item : tolerations) { - this.addToTolerations(item); - } + if (key != null && this.nodeSelector != null) { + this.nodeSelector.remove(key); } return (A) this; } - public boolean hasTolerations() { - return this.tolerations != null && !this.tolerations.isEmpty(); + public A removeFromNodeSelector(Map map) { + if (this.nodeSelector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.nodeSelector != null) { + this.nodeSelector.remove(key); + } + } + } + return (A) this; } - public TolerationsNested addNewToleration() { - return new TolerationsNested(-1, null); + public A removeFromTolerations(V1Toleration... items) { + if (this.tolerations == null) { + return (A) this; + } + for (V1Toleration item : items) { + V1TolerationBuilder builder = new V1TolerationBuilder(item); + _visitables.get("tolerations").remove(builder); + this.tolerations.remove(builder); + } + return (A) this; } - public TolerationsNested addNewTolerationLike(V1Toleration item) { - return new TolerationsNested(-1, item); + public A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + List visitables = _visitables.get("tolerations"); + while (each.hasNext()) { + V1TolerationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public TolerationsNested setNewTolerationLike(int index,V1Toleration 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 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").add(builder); + tolerations.set(index, builder); + } + return (A) this; } - 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nodeSelector == null) && !(nodeSelector.isEmpty())) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); } - 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 A withNodeSelector(Map nodeSelector) { + if (nodeSelector == null) { + this.nodeSelector = null; + } else { + this.nodeSelector = new LinkedHashMap(nodeSelector); + } + return (A) this; } - public TolerationsNested editMatchingToleration(Predicate predicate) { - int index = -1; - for (int i=0;i tolerations) { + if (this.tolerations != null) { + this._visitables.get("tolerations").clear(); + } + if (tolerations != null) { + this.tolerations = new ArrayList(); + for (V1Toleration item : tolerations) { + this.addToTolerations(item); + } + } else { + this.tolerations = null; + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1SchedulingFluent that = (V1SchedulingFluent) o; - if (!java.util.Objects.equals(nodeSelector, that.nodeSelector)) return false; - if (!java.util.Objects.equals(tolerations, that.tolerations)) return false; - return true; + public A withTolerations(V1Toleration... tolerations) { + if (this.tolerations != null) { + this.tolerations.clear(); + _visitables.remove("tolerations"); + } + if (tolerations != null) { + for (V1Toleration item : tolerations) { + this.addToTolerations(item); + } + } + return (A) this; } + public class TolerationsNested extends V1TolerationFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(nodeSelector, tolerations, super.hashCode()); - } + V1TolerationBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (nodeSelector != null && !nodeSelector.isEmpty()) { sb.append("nodeSelector:"); sb.append(nodeSelector + ","); } - if (tolerations != null && !tolerations.isEmpty()) { sb.append("tolerations:"); sb.append(tolerations); } - sb.append("}"); - return sb.toString(); - } - public class TolerationsNested extends V1TolerationFluent> implements Nested{ TolerationsNested(int index,V1Toleration item) { this.index = index; this.builder = new V1TolerationBuilder(this, item); } - V1TolerationBuilder builder; - int index; - + public N and() { - return (N) V1SchedulingFluent.this.setToTolerations(index,builder.build()); + return (N) V1SchedulingFluent.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/V1ScopeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java index 4518cdf27c..c152c55185 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScopeSelectorBuilder extends V1ScopeSelectorFluent implements VisitableBuilder{ + + V1ScopeSelectorFluent fluent; + public V1ScopeSelectorBuilder() { this(new V1ScopeSelector()); } @@ -10,22 +14,20 @@ public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent) { this(fluent, new V1ScopeSelector()); } - public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent,V1ScopeSelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScopeSelectorBuilder(V1ScopeSelector instance) { this.fluent = this; this.copyInstance(instance); } - V1ScopeSelectorFluent fluent; + public V1ScopeSelectorBuilder(V1ScopeSelectorFluent fluent,V1ScopeSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScopeSelector build() { V1ScopeSelector buildable = new V1ScopeSelector(); buildable.setMatchExpressions(fluent.buildMatchExpressions()); return buildable; } - } \ No newline at end of file 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..6eba874c1a 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 @@ -1,108 +1,168 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ScopeSelectorFluent> extends BaseFluent{ +public class V1ScopeSelectorFluent> extends BaseFluent{ + + private ArrayList matchExpressions; + public V1ScopeSelectorFluent() { } public V1ScopeSelectorFluent(V1ScopeSelector instance) { this.copyInstance(instance); } - private ArrayList matchExpressions; + + public A addAllToMatchExpressions(Collection items) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; + } - protected void copyInstance(V1ScopeSelector instance) { - instance = (instance != null ? instance : new V1ScopeSelector()); - if (instance != null) { - this.withMatchExpressions(instance.getMatchExpressions()); - } + public MatchExpressionsNested addNewMatchExpression() { + return new MatchExpressionsNested(-1, null); } - 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);} - return (A)this; + public MatchExpressionsNested addNewMatchExpressionLike(V1ScopedResourceSelectorRequirement item) { + return new MatchExpressionsNested(-1, item); } - public A setToMatchExpressions(int index,V1ScopedResourceSelectorRequirement item) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} + public A addToMatchExpressions(V1ScopedResourceSelectorRequirement... items) { + if (this.matchExpressions == null) { + this.matchExpressions = new ArrayList(); + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); + } + return (A) this; + } + + 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").set(index, builder); matchExpressions.set(index, builder);} - return (A)this; + 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 addToMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + public V1ScopedResourceSelectorRequirement buildFirstMatchExpression() { + return this.matchExpressions.get(0).build(); } - public A addAllToMatchExpressions(Collection items) { - if (this.matchExpressions == null) {this.matchExpressions = new ArrayList();} - for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").add(builder);this.matchExpressions.add(builder);} return (A)this; + public V1ScopedResourceSelectorRequirement buildLastMatchExpression() { + return this.matchExpressions.get(matchExpressions.size() - 1).build(); } - public A removeFromMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... items) { - if (this.matchExpressions == null) return (A)this; - for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + public V1ScopedResourceSelectorRequirement buildMatchExpression(int index) { + return this.matchExpressions.get(index).build(); } - public A removeAllFromMatchExpressions(Collection items) { - if (this.matchExpressions == null) return (A)this; - for (V1ScopedResourceSelectorRequirement item : items) {V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item);_visitables.get("matchExpressions").remove(builder); this.matchExpressions.remove(builder);} return (A)this; + public List buildMatchExpressions() { + return this.matchExpressions != null ? build(matchExpressions) : null; } - public A removeMatchingFromMatchExpressions(Predicate predicate) { - if (matchExpressions == null) return (A) this; - final Iterator each = matchExpressions.iterator(); - final List visitables = _visitables.get("matchExpressions"); - while (each.hasNext()) { - V1ScopedResourceSelectorRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { + for (V1ScopedResourceSelectorRequirementBuilder item : matchExpressions) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A)this; + return null; } - public List buildMatchExpressions() { - return this.matchExpressions != null ? build(matchExpressions) : null; + protected void copyInstance(V1ScopeSelector instance) { + instance = instance != null ? instance : new V1ScopeSelector(); + if (instance != null) { + this.withMatchExpressions(instance.getMatchExpressions()); + } } - public V1ScopedResourceSelectorRequirement buildMatchExpression(int index) { - return this.matchExpressions.get(index).build(); + public MatchExpressionsNested editFirstMatchExpression() { + if (matchExpressions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(0, this.buildMatchExpression(0)); } - public V1ScopedResourceSelectorRequirement buildFirstMatchExpression() { - return this.matchExpressions.get(0).build(); + public MatchExpressionsNested editLastMatchExpression() { + int index = matchExpressions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public V1ScopedResourceSelectorRequirement buildLastMatchExpression() { - return this.matchExpressions.get(matchExpressions.size() - 1).build(); + public MatchExpressionsNested editMatchExpression(int index) { + if (matchExpressions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); } - public V1ScopedResourceSelectorRequirement buildMatchingMatchExpression(Predicate predicate) { - for (V1ScopedResourceSelectorRequirementBuilder item : matchExpressions) { - if (predicate.test(item)) { - return item.build(); - } + public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchExpressions.size();i++) { + if (predicate.test(matchExpressions.get(i))) { + index = i; + break; } - return null; + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchExpressions")); + } + return this.setNewMatchExpressionLike(index, this.buildMatchExpression(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ScopeSelectorFluent that = (V1ScopeSelectorFluent) o; + if (!(Objects.equals(matchExpressions, that.matchExpressions))) { + return false; + } + return true; + } + + public boolean hasMatchExpressions() { + return this.matchExpressions != null && !(this.matchExpressions.isEmpty()); } public boolean hasMatchingMatchExpression(Predicate predicate) { @@ -114,6 +174,80 @@ public boolean hasMatchingMatchExpression(Predicate items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; + } + + public A removeFromMatchExpressions(V1ScopedResourceSelectorRequirement... items) { + if (this.matchExpressions == null) { + return (A) this; + } + for (V1ScopedResourceSelectorRequirement item : items) { + V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); + _visitables.get("matchExpressions").remove(builder); + this.matchExpressions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchExpressions(Predicate predicate) { + if (matchExpressions == null) { + return (A) this; + } + Iterator each = matchExpressions.iterator(); + List visitables = _visitables.get("matchExpressions"); + while (each.hasNext()) { + V1ScopedResourceSelectorRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MatchExpressionsNested setNewMatchExpressionLike(int index,V1ScopedResourceSelectorRequirement item) { + return new MatchExpressionsNested(index, item); + } + + 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").add(builder); + matchExpressions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchExpressions == null) && !(matchExpressions.isEmpty())) { + sb.append("matchExpressions:"); + sb.append(matchExpressions); + } + sb.append("}"); + return sb.toString(); + } + public A withMatchExpressions(List matchExpressions) { if (this.matchExpressions != null) { this._visitables.get("matchExpressions").clear(); @@ -129,7 +263,7 @@ public A withMatchExpressions(List matchExp return (A) this; } - public A withMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResourceSelectorRequirement... matchExpressions) { + public A withMatchExpressions(V1ScopedResourceSelectorRequirement... matchExpressions) { if (this.matchExpressions != null) { this.matchExpressions.clear(); _visitables.remove("matchExpressions"); @@ -141,85 +275,23 @@ public A withMatchExpressions(io.kubernetes.client.openapi.models.V1ScopedResour } return (A) this; } + public class MatchExpressionsNested extends V1ScopedResourceSelectorRequirementFluent> implements Nested{ - public boolean hasMatchExpressions() { - return this.matchExpressions != null && !this.matchExpressions.isEmpty(); - } - - public MatchExpressionsNested addNewMatchExpression() { - return new MatchExpressionsNested(-1, null); - } - - public MatchExpressionsNested addNewMatchExpressionLike(V1ScopedResourceSelectorRequirement item) { - return new MatchExpressionsNested(-1, item); - } - - public MatchExpressionsNested setNewMatchExpressionLike(int index,V1ScopedResourceSelectorRequirement item) { - return new MatchExpressionsNested(index, item); - } - - public MatchExpressionsNested editMatchExpression(int index) { - if (matchExpressions.size() <= index) throw new RuntimeException("Can't edit matchExpressions. Index exceeds size."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); - } - - public MatchExpressionsNested editFirstMatchExpression() { - if (matchExpressions.size() == 0) throw new RuntimeException("Can't edit first matchExpressions. The list is empty."); - return setNewMatchExpressionLike(0, buildMatchExpression(0)); - } - - public MatchExpressionsNested editLastMatchExpression() { - int index = matchExpressions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchExpressions. The list is empty."); - return setNewMatchExpressionLike(index, buildMatchExpression(index)); - } - - public MatchExpressionsNested editMatchingMatchExpression(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1ScopedResourceSelectorRequirementFluent> implements Nested{ MatchExpressionsNested(int index,V1ScopedResourceSelectorRequirement item) { this.index = index; this.builder = new V1ScopedResourceSelectorRequirementBuilder(this, item); } - V1ScopedResourceSelectorRequirementBuilder builder; - int index; - + public N and() { - return (N) V1ScopeSelectorFluent.this.setToMatchExpressions(index,builder.build()); + return (N) V1ScopeSelectorFluent.this.setToMatchExpressions(index, builder.build()); } public N endMatchExpression() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java index 636acba0e3..4bcae72157 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ScopedResourceSelectorRequirementBuilder extends V1ScopedResourceSelectorRequirementFluent implements VisitableBuilder{ + + V1ScopedResourceSelectorRequirementFluent fluent; + public V1ScopedResourceSelectorRequirementBuilder() { this(new V1ScopedResourceSelectorRequirement()); } @@ -10,17 +14,16 @@ public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequir this(fluent, new V1ScopedResourceSelectorRequirement()); } - public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirementFluent fluent,V1ScopedResourceSelectorRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1ScopedResourceSelectorRequirementFluent fluent; + public V1ScopedResourceSelectorRequirementBuilder(V1ScopedResourceSelectorRequirementFluent fluent,V1ScopedResourceSelectorRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ScopedResourceSelectorRequirement build() { V1ScopedResourceSelectorRequirement buildable = new V1ScopedResourceSelectorRequirement(); buildable.setOperator(fluent.getOperator()); @@ -29,5 +32,4 @@ public V1ScopedResourceSelectorRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java index d3be316153..3e35bd8243 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java @@ -1,127 +1,208 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ScopedResourceSelectorRequirementFluent> extends BaseFluent{ +public class V1ScopedResourceSelectorRequirementFluent> extends BaseFluent{ + + private String operator; + private String scopeName; + private List values; + public V1ScopedResourceSelectorRequirementFluent() { } public V1ScopedResourceSelectorRequirementFluent(V1ScopedResourceSelectorRequirement instance) { this.copyInstance(instance); } - private String operator; - private String scopeName; - private List values; + + 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 addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; + } + + public A addToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.add(index, item); + return (A) this; + } protected void copyInstance(V1ScopedResourceSelectorRequirement instance) { - instance = (instance != null ? instance : new V1ScopedResourceSelectorRequirement()); + instance = instance != null ? instance : new V1ScopedResourceSelectorRequirement(); if (instance != null) { - this.withOperator(instance.getOperator()); - this.withScopeName(instance.getScopeName()); - this.withValues(instance.getValues()); - } + this.withOperator(instance.getOperator()); + this.withScopeName(instance.getScopeName()); + this.withValues(instance.getValues()); + } } - public String getOperator() { - return this.operator; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ScopedResourceSelectorRequirementFluent that = (V1ScopedResourceSelectorRequirementFluent) o; + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(scopeName, that.scopeName))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + public String getFirstValue() { + return this.values.get(0); } - public boolean hasOperator() { - return this.operator != null; + 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 String getOperator() { + return this.operator; } public String getScopeName() { return this.scopeName; } - public A withScopeName(String scopeName) { - this.scopeName = scopeName; - return (A) this; + public String getValue(int index) { + return this.values.get(index); } - public boolean hasScopeName() { - return this.scopeName != null; + public List getValues() { + return this.values; } - public A addToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.add(index, item); - return (A)this; + public boolean hasMatchingValue(Predicate predicate) { + for (String item : values) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A setToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} - this.values.set(index, item); return (A)this; + public boolean hasOperator() { + return this.operator != null; } - 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 boolean hasScopeName() { + return this.scopeName != null; } - 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 boolean hasValues() { + return this.values != null && !(this.values.isEmpty()); } - 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 int hashCode() { + return Objects.hash(operator, scopeName, values); } 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; + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } - public String getValue(int index) { - return this.values.get(index); + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; } - public String getFirstValue() { - return this.values.get(0); + public A setToValues(int index,String item) { + if (this.values == null) { + this.values = new ArrayList(); + } + this.values.set(index, item); + return (A) this; } - public String getLastValue() { - return this.values.get(values.size() - 1); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(scopeName == null)) { + sb.append("scopeName:"); + sb.append(scopeName); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } + sb.append("}"); + return sb.toString(); } - public String getMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withOperator(String operator) { + this.operator = operator; + return (A) this; } - public boolean hasMatchingValue(Predicate predicate) { - for (String item : values) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withScopeName(String scopeName) { + this.scopeName = scopeName; + return (A) this; } public A withValues(List values) { @@ -136,7 +217,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.String... values) { + public A withValues(String... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -149,34 +230,4 @@ public A withValues(java.lang.String... values) { 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; - V1ScopedResourceSelectorRequirementFluent that = (V1ScopedResourceSelectorRequirementFluent) o; - if (!java.util.Objects.equals(operator, that.operator)) return false; - if (!java.util.Objects.equals(scopeName, that.scopeName)) return false; - if (!java.util.Objects.equals(values, that.values)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(operator, scopeName, values, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (operator != null) { sb.append("operator:"); sb.append(operator + ","); } - if (scopeName != null) { sb.append("scopeName:"); sb.append(scopeName + ","); } - 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/V1SeccompProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java index 8c0c4c45c7..1b38225212 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SeccompProfileBuilder extends V1SeccompProfileFluent implements VisitableBuilder{ + + V1SeccompProfileFluent fluent; + public V1SeccompProfileBuilder() { this(new V1SeccompProfile()); } @@ -10,17 +14,16 @@ public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent) { this(fluent, new V1SeccompProfile()); } - public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent,V1SeccompProfile instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SeccompProfileBuilder(V1SeccompProfile instance) { this.fluent = this; this.copyInstance(instance); } - V1SeccompProfileFluent fluent; + public V1SeccompProfileBuilder(V1SeccompProfileFluent fluent,V1SeccompProfile instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SeccompProfile build() { V1SeccompProfile buildable = new V1SeccompProfile(); buildable.setLocalhostProfile(fluent.getLocalhostProfile()); @@ -28,5 +31,4 @@ public V1SeccompProfile build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java index f9fb598e79..fc4211f3ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SeccompProfileFluent> extends BaseFluent{ +public class V1SeccompProfileFluent> extends BaseFluent{ + + private String localhostProfile; + private String type; + public V1SeccompProfileFluent() { } public V1SeccompProfileFluent(V1SeccompProfile instance) { this.copyInstance(instance); } - private String localhostProfile; - private String type; - + protected void copyInstance(V1SeccompProfile instance) { - instance = (instance != null ? instance : new V1SeccompProfile()); + instance = instance != null ? instance : new V1SeccompProfile(); if (instance != null) { - this.withLocalhostProfile(instance.getLocalhostProfile()); - this.withType(instance.getType()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SeccompProfileFluent that = (V1SeccompProfileFluent) o; + if (!(Objects.equals(localhostProfile, that.localhostProfile))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLocalhostProfile() { - return this.localhostProfile != null; + public String getLocalhostProfile() { + return this.localhostProfile; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasLocalhostProfile() { + return this.localhostProfile != null; } 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; - V1SeccompProfileFluent that = (V1SeccompProfileFluent) 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()); + return Objects.hash(localhostProfile, type); } 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); } + if (!(localhostProfile == null)) { + sb.append("localhostProfile:"); + sb.append(localhostProfile); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } - + public A withLocalhostProfile(String localhostProfile) { + this.localhostProfile = localhostProfile; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java index 8f98f08706..26cc7d0cd4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretBuilder extends V1SecretFluent implements VisitableBuilder{ + + V1SecretFluent fluent; + public V1SecretBuilder() { this(new V1Secret()); } @@ -10,17 +14,16 @@ public V1SecretBuilder(V1SecretFluent fluent) { this(fluent, new V1Secret()); } - public V1SecretBuilder(V1SecretFluent fluent,V1Secret instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretBuilder(V1Secret instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretFluent fluent; + public V1SecretBuilder(V1SecretFluent fluent,V1Secret instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Secret build() { V1Secret buildable = new V1Secret(); buildable.setApiVersion(fluent.getApiVersion()); @@ -33,5 +36,4 @@ public V1Secret build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java index ae9b0f077b..e9848a76dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretEnvSourceBuilder extends V1SecretEnvSourceFluent implements VisitableBuilder{ + + V1SecretEnvSourceFluent fluent; + public V1SecretEnvSourceBuilder() { this(new V1SecretEnvSource()); } @@ -10,17 +14,16 @@ public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent) { this(fluent, new V1SecretEnvSource()); } - public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent,V1SecretEnvSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretEnvSourceBuilder(V1SecretEnvSource instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretEnvSourceFluent fluent; + public V1SecretEnvSourceBuilder(V1SecretEnvSourceFluent fluent,V1SecretEnvSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretEnvSource build() { V1SecretEnvSource buildable = new V1SecretEnvSource(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1SecretEnvSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java index fa654d662e..0d73882e06 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java @@ -1,85 +1,105 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecretEnvSourceFluent> extends BaseFluent{ +public class V1SecretEnvSourceFluent> extends BaseFluent{ + + private String name; + private Boolean optional; + public V1SecretEnvSourceFluent() { } public V1SecretEnvSourceFluent(V1SecretEnvSource instance) { this.copyInstance(instance); } - private String name; - private Boolean optional; - + protected void copyInstance(V1SecretEnvSource instance) { - instance = (instance != null ? instance : new V1SecretEnvSource()); + instance = instance != null ? instance : new V1SecretEnvSource(); if (instance != null) { - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SecretEnvSourceFluent that = (V1SecretEnvSourceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public Boolean getOptional() { return this.optional; } - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; + public boolean hasName() { + return this.name != null; } public boolean hasOptional() { return this.optional != 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; - V1SecretEnvSourceFluent that = (V1SecretEnvSourceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, optional, super.hashCode()); + return Objects.hash(name, optional); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } sb.append("}"); return sb.toString(); } + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } - + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java index bbc32a9618..e7f5a818db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java @@ -1,25 +1,23 @@ 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.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecretFluent> extends BaseFluent{ - public V1SecretFluent() { - } - - public V1SecretFluent(V1Secret instance) { - this.copyInstance(instance); - } +public class V1SecretFluent> extends BaseFluent{ + private String apiVersion; private Map data; private Boolean immutable; @@ -27,228 +25,332 @@ public V1SecretFluent(V1Secret instance) { private V1ObjectMetaBuilder metadata; private Map stringData; private String type; - - protected void copyInstance(V1Secret instance) { - instance = (instance != null ? instance : new V1Secret()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withData(instance.getData()); - this.withImmutable(instance.getImmutable()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withStringData(instance.getStringData()); - this.withType(instance.getType()); - } + + public V1SecretFluent() { } - public String getApiVersion() { - return this.apiVersion; + public V1SecretFluent(V1Secret instance) { + this.copyInstance(instance); + } + + public A addToData(Map map) { + if (this.data == null && map != null) { + this.data = new LinkedHashMap(); + } + if (map != null) { + this.data.putAll(map); + } + return (A) this; } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + public A addToData(String key,byte[] value) { + if (this.data == null && key != null && value != null) { + this.data = new LinkedHashMap(); + } + if (key != null && value != null) { + this.data.put(key, value); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToStringData(Map map) { + if (this.stringData == null && map != null) { + this.stringData = new LinkedHashMap(); + } + if (map != null) { + this.stringData.putAll(map); + } + return (A) this; } - public A addToData(String key,byte[] value) { - if(this.data == null && key != null && value != null) { this.data = new LinkedHashMap(); } - if(key != null && value != null) {this.data.put(key, value);} return (A)this; + public A addToStringData(String key,String value) { + if (this.stringData == null && key != null && value != null) { + this.stringData = new LinkedHashMap(); + } + if (key != null && value != null) { + this.stringData.put(key, value); + } + return (A) this; } - public A addToData(Map map) { - if(this.data == null && map != null) { this.data = new LinkedHashMap(); } - if(map != null) { this.data.putAll(map);} return (A)this; + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A removeFromData(String key) { - if(this.data == null) { return (A) this; } - if(key != null && this.data != null) {this.data.remove(key);} return (A)this; + protected void copyInstance(V1Secret instance) { + instance = instance != null ? instance : new V1Secret(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withData(instance.getData()); + this.withImmutable(instance.getImmutable()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withStringData(instance.getStringData()); + this.withType(instance.getType()); + } } - public A removeFromData(Map map) { - if(this.data == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.data != null){this.data.remove(key);}}} return (A)this; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public Map getData() { - return this.data; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public A withData(Map data) { - if (data == null) { - this.data = null; - } else { - this.data = new LinkedHashMap(data); - } - return (A) this; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public boolean hasData() { - return this.data != null; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SecretFluent that = (V1SecretFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(immutable, that.immutable))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(stringData, that.stringData))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public Boolean getImmutable() { - return this.immutable; + public String getApiVersion() { + return this.apiVersion; } - public A withImmutable(Boolean immutable) { - this.immutable = immutable; - return (A) this; + public Map getData() { + return this.data; } - public boolean hasImmutable() { - return this.immutable != null; + public Boolean getImmutable() { + return this.immutable; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public Map getStringData() { + return this.stringData; } - public boolean hasKind() { - return this.kind != null; + public String getType() { + return this.type; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasApiVersion() { + return this.apiVersion != 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 hasData() { + return this.data != null; } - public boolean hasMetadata() { - return this.metadata != null; + public boolean hasImmutable() { + return this.immutable != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public boolean hasKind() { + return this.kind != null; } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public boolean hasMetadata() { + return this.metadata != null; } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public boolean hasStringData() { + return this.stringData != null; } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public boolean hasType() { + return this.type != null; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public int hashCode() { + return Objects.hash(apiVersion, data, immutable, kind, metadata, stringData, type); } - public A addToStringData(String key,String value) { - if(this.stringData == null && key != null && value != null) { this.stringData = new LinkedHashMap(); } - if(key != null && value != null) {this.stringData.put(key, value);} return (A)this; + public A removeFromData(String key) { + if (this.data == null) { + return (A) this; + } + if (key != null && this.data != null) { + this.data.remove(key); + } + return (A) this; } - public A addToStringData(Map map) { - if(this.stringData == null && map != null) { this.stringData = new LinkedHashMap(); } - if(map != null) { this.stringData.putAll(map);} return (A)this; + public A removeFromData(Map map) { + if (this.data == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.data != null) { + this.data.remove(key); + } + } + } + return (A) this; } public A removeFromStringData(String key) { - if(this.stringData == null) { return (A) this; } - if(key != null && this.stringData != null) {this.stringData.remove(key);} return (A)this; + if (this.stringData == null) { + return (A) this; + } + if (key != null && this.stringData != null) { + this.stringData.remove(key); + } + return (A) this; } public A removeFromStringData(Map map) { - if(this.stringData == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.stringData != null){this.stringData.remove(key);}}} return (A)this; + if (this.stringData == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.stringData != null) { + this.stringData.remove(key); + } + } + } + return (A) this; } - public Map getStringData() { - return this.stringData; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(data == null) && !(data.isEmpty())) { + sb.append("data:"); + sb.append(data); + sb.append(","); + } + if (!(immutable == null)) { + sb.append("immutable:"); + sb.append(immutable); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(stringData == null) && !(stringData.isEmpty())) { + sb.append("stringData:"); + sb.append(stringData); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withStringData(Map stringData) { - if (stringData == null) { - this.stringData = null; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withData(Map data) { + if (data == null) { + this.data = null; } else { - this.stringData = new LinkedHashMap(stringData); + this.data = new LinkedHashMap(data); } return (A) this; } - public boolean hasStringData() { - return this.stringData != null; + public A withImmutable() { + return withImmutable(true); } - public String getType() { - return this.type; + public A withImmutable(Boolean immutable) { + this.immutable = immutable; + return (A) this; } - public A withType(String type) { - this.type = type; + public A withKind(String kind) { + this.kind = kind; return (A) this; } - public boolean hasType() { - return this.type != 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 equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1SecretFluent that = (V1SecretFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(immutable, that.immutable)) 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(stringData, that.stringData)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; + public MetadataNested withNewMetadata() { + return new MetadataNested(null); } - public int hashCode() { - return java.util.Objects.hash(apiVersion, data, immutable, kind, metadata, stringData, type, super.hashCode()); + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (data != null && !data.isEmpty()) { sb.append("data:"); sb.append(data + ","); } - if (immutable != null) { sb.append("immutable:"); sb.append(immutable + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (stringData != null && !stringData.isEmpty()) { sb.append("stringData:"); sb.append(stringData + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); + public A withStringData(Map stringData) { + if (stringData == null) { + this.stringData = null; + } else { + this.stringData = new LinkedHashMap(stringData); + } + return (A) this; } - public A withImmutable() { - return withImmutable(true); + public A withType(String type) { + this.type = type; + return (A) this; } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1SecretFluent.this.withMetadata(builder.build()); } @@ -257,7 +359,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java index 43376f6c85..f96be5241d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretKeySelectorBuilder extends V1SecretKeySelectorFluent implements VisitableBuilder{ + + V1SecretKeySelectorFluent fluent; + public V1SecretKeySelectorBuilder() { this(new V1SecretKeySelector()); } @@ -10,17 +14,16 @@ public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent) { this(fluent, new V1SecretKeySelector()); } - public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent,V1SecretKeySelector instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretKeySelectorBuilder(V1SecretKeySelector instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretKeySelectorFluent fluent; + public V1SecretKeySelectorBuilder(V1SecretKeySelectorFluent fluent,V1SecretKeySelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretKeySelector build() { V1SecretKeySelector buildable = new V1SecretKeySelector(); buildable.setKey(fluent.getKey()); @@ -29,5 +32,4 @@ public V1SecretKeySelector build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java index 3eebc027a8..c3242d5192 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java @@ -1,102 +1,128 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecretKeySelectorFluent> extends BaseFluent{ +public class V1SecretKeySelectorFluent> extends BaseFluent{ + + private String key; + private String name; + private Boolean optional; + public V1SecretKeySelectorFluent() { } public V1SecretKeySelectorFluent(V1SecretKeySelector instance) { this.copyInstance(instance); } - private String key; - private String name; - private Boolean optional; - + protected void copyInstance(V1SecretKeySelector instance) { - instance = (instance != null ? instance : new V1SecretKeySelector()); + instance = instance != null ? instance : new V1SecretKeySelector(); if (instance != null) { - this.withKey(instance.getKey()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } - } - - public String getKey() { - return this.key; + this.withKey(instance.getKey()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } - public A withKey(String key) { - this.key = key; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SecretKeySelectorFluent that = (V1SecretKeySelectorFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + return true; } - public boolean hasKey() { - return this.key != null; + public String getKey() { + return this.key; } 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 hasKey() { + return this.key != null; } - public boolean hasOptional() { - return this.optional != null; + 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; - V1SecretKeySelectorFluent that = (V1SecretKeySelectorFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; - return true; + public boolean hasOptional() { + return this.optional != null; } public int hashCode() { - return java.util.Objects.hash(key, name, optional, super.hashCode()); + return Objects.hash(key, name, optional); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } sb.append("}"); return sb.toString(); } + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withOptional() { return withOptional(true); } - + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java index c0c9a311ec..5b51638140 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretListBuilder extends V1SecretListFluent implements VisitableBuilder{ + + V1SecretListFluent fluent; + public V1SecretListBuilder() { this(new V1SecretList()); } @@ -10,17 +14,16 @@ public V1SecretListBuilder(V1SecretListFluent fluent) { this(fluent, new V1SecretList()); } - public V1SecretListBuilder(V1SecretListFluent fluent,V1SecretList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretListBuilder(V1SecretList instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretListFluent fluent; + public V1SecretListBuilder(V1SecretListFluent fluent,V1SecretList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretList build() { V1SecretList buildable = new V1SecretList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1SecretList build() { return buildable; } - } \ No newline at end of file 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..8e51249d05 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecretListFluent> extends BaseFluent{ +public class V1SecretListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1SecretListFluent() { } public V1SecretListFluent(V1SecretList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1SecretList instance) { - instance = (instance != null ? instance : new V1SecretList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Secret item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Secret... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Secret item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Secret buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Secret... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Secret buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Secret... items) { - if (this.items == null) return (A)this; - for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Secret buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Secret item : items) {V1SecretBuilder builder = new V1SecretBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Secret buildMatchingItem(Predicate predicate) { + for (V1SecretBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1SecretBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1SecretList instance) { + instance = instance != null ? instance : new V1SecretList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Secret buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Secret buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Secret buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SecretListFluent that = (V1SecretListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Secret buildMatchingItem(Predicate predicate) { - for (V1SecretBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Secret... items) { + if (this.items == null) { + return (A) this; + } + for (V1Secret item : items) { + V1SecretBuilder builder = new V1SecretBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1SecretBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Secret item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Secret... items) { + public A withItems(V1Secret... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Secret... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Secret item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Secret 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1SecretFluent> implements Nested{ - 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; - V1SecretListFluent that = (V1SecretListFluent) 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()); - } + V1SecretBuilder builder; + int index; - 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 V1SecretFluent> implements Nested{ ItemsNested(int index,V1Secret item) { this.index = index; this.builder = new V1SecretBuilder(this, item); } - V1SecretBuilder builder; - int index; - + public N and() { - return (N) V1SecretListFluent.this.setToItems(index,builder.build()); + return (N) V1SecretListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1SecretListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java index 1ca9cf51a8..44d291cca7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretProjectionBuilder extends V1SecretProjectionFluent implements VisitableBuilder{ + + V1SecretProjectionFluent fluent; + public V1SecretProjectionBuilder() { this(new V1SecretProjection()); } @@ -10,17 +14,16 @@ public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent) { this(fluent, new V1SecretProjection()); } - public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent,V1SecretProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretProjectionBuilder(V1SecretProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretProjectionFluent fluent; + public V1SecretProjectionBuilder(V1SecretProjectionFluent fluent,V1SecretProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretProjection build() { V1SecretProjection buildable = new V1SecretProjection(); buildable.setItems(fluent.buildItems()); @@ -29,5 +32,4 @@ public V1SecretProjection build() { return buildable; } - } \ No newline at end of file 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..98b003ee18 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 @@ -1,100 +1,94 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecretProjectionFluent> extends BaseFluent{ - public V1SecretProjectionFluent() { - } - - public V1SecretProjectionFluent(V1SecretProjection instance) { - this.copyInstance(instance); - } +public class V1SecretProjectionFluent> extends BaseFluent{ + private ArrayList items; private String name; private Boolean optional; - - protected void copyInstance(V1SecretProjection instance) { - instance = (instance != null ? instance : new V1SecretProjection()); - if (instance != null) { - this.withItems(instance.getItems()); - this.withName(instance.getName()); - this.withOptional(instance.getOptional()); - } - } - - 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);} - return (A)this; + + public V1SecretProjectionFluent() { } - 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);} - return (A)this; + public V1SecretProjectionFluent(V1SecretProjection instance) { + this.copyInstance(instance); } - - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(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 (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(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 (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public ItemsNested addNewItemLike(V1KeyToPath item) { + return new ItemsNested(-1, item); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A addToItems(V1KeyToPath... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(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()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + items.add(index, builder); } - return (A)this; + return (A) this; } - public List buildItems() { - return this.items != null ? build(items) : null; + public V1KeyToPath buildFirstItem() { + return this.items.get(0).build(); } public V1KeyToPath buildItem(int index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1KeyToPath buildLastItem() { @@ -110,155 +104,245 @@ public V1KeyToPath buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1SecretProjection instance) { + instance = instance != null ? instance : new V1SecretProjection(); + if (instance != null) { + this.withItems(instance.getItems()); + this.withName(instance.getName()); + this.withOptional(instance.getOptional()); + } } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } - return (A) this; + return this.setNewItemLike(index, this.buildItem(index)); } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SecretProjectionFluent that = (V1SecretProjectionFluent) o; + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + return true; } - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + public String getName() { + return this.name; } - public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); + public Boolean getOptional() { + return this.optional; } - public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); } - 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 boolean hasMatchingItem(Predicate predicate) { + for (V1KeyToPathBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 boolean hasName() { + return this.name != null; } - 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 boolean hasOptional() { + return this.optional != null; } - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } - public A withName(String name) { - this.name = name; + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } return (A) this; } - public boolean hasName() { - return this.name != null; + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public Boolean getOptional() { - return this.optional; + public ItemsNested setNewItemLike(int index,V1KeyToPath item) { + return new ItemsNested(index, item); } - public A withOptional(Boolean optional) { - this.optional = optional; + 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").add(builder); + items.set(index, builder); + } return (A) this; } - public boolean hasOptional() { - return this.optional != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + } + sb.append("}"); + return sb.toString(); } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1SecretProjectionFluent that = (V1SecretProjectionFluent) o; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; - return true; + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(items, name, optional, super.hashCode()); + public A withItems(V1KeyToPath... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional); } - sb.append("}"); - return sb.toString(); + public A withName(String name) { + this.name = name; + return (A) this; } public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } public class ItemsNested extends V1KeyToPathFluent> implements Nested{ + + V1KeyToPathBuilder builder; + int index; + ItemsNested(int index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - V1KeyToPathBuilder builder; - int index; - + public N and() { - return (N) V1SecretProjectionFluent.this.setToItems(index,builder.build()); + return (N) V1SecretProjectionFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java index 78013ec9bd..35adf0f0ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretReferenceBuilder extends V1SecretReferenceFluent implements VisitableBuilder{ + + V1SecretReferenceFluent fluent; + public V1SecretReferenceBuilder() { this(new V1SecretReference()); } @@ -10,17 +14,16 @@ public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent) { this(fluent, new V1SecretReference()); } - public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent,V1SecretReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretReferenceBuilder(V1SecretReference instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretReferenceFluent fluent; + public V1SecretReferenceBuilder(V1SecretReferenceFluent fluent,V1SecretReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretReference build() { V1SecretReference buildable = new V1SecretReference(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1SecretReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java index 799a9a6d2e..f34deaaf80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecretReferenceFluent> extends BaseFluent{ +public class V1SecretReferenceFluent> extends BaseFluent{ + + private String name; + private String namespace; + public V1SecretReferenceFluent() { } public V1SecretReferenceFluent(V1SecretReference instance) { this.copyInstance(instance); } - private String name; - private String namespace; - + protected void copyInstance(V1SecretReference instance) { - instance = (instance != null ? instance : new V1SecretReference()); + instance = instance != null ? instance : new V1SecretReference(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SecretReferenceFluent that = (V1SecretReferenceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public boolean hasName() { + return this.name != null; } 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; - V1SecretReferenceFluent that = (V1SecretReferenceFluent) 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()); + return Objects.hash(name, namespace); } 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 (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java index a294cad4e3..c218abb9bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecretVolumeSourceBuilder extends V1SecretVolumeSourceFluent implements VisitableBuilder{ + + V1SecretVolumeSourceFluent fluent; + public V1SecretVolumeSourceBuilder() { this(new V1SecretVolumeSource()); } @@ -10,17 +14,16 @@ public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent) { this(fluent, new V1SecretVolumeSource()); } - public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent,V1SecretVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecretVolumeSourceBuilder(V1SecretVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1SecretVolumeSourceFluent fluent; + public V1SecretVolumeSourceBuilder(V1SecretVolumeSourceFluent fluent,V1SecretVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecretVolumeSource build() { V1SecretVolumeSource buildable = new V1SecretVolumeSource(); buildable.setDefaultMode(fluent.getDefaultMode()); @@ -30,5 +33,4 @@ public V1SecretVolumeSource build() { return buildable; } - } \ No newline at end of file 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..d627dad7d1 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 @@ -1,116 +1,96 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; +import java.lang.Boolean; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecretVolumeSourceFluent> extends BaseFluent{ - public V1SecretVolumeSourceFluent() { - } - - public V1SecretVolumeSourceFluent(V1SecretVolumeSource instance) { - this.copyInstance(instance); - } +public class V1SecretVolumeSourceFluent> extends BaseFluent{ + private Integer defaultMode; private ArrayList items; private Boolean optional; private String secretName; - - protected void copyInstance(V1SecretVolumeSource instance) { - instance = (instance != null ? instance : new V1SecretVolumeSource()); - if (instance != null) { - this.withDefaultMode(instance.getDefaultMode()); - this.withItems(instance.getItems()); - this.withOptional(instance.getOptional()); - this.withSecretName(instance.getSecretName()); - } + + public V1SecretVolumeSourceFluent() { } - public Integer getDefaultMode() { - return this.defaultMode; + public V1SecretVolumeSourceFluent(V1SecretVolumeSource instance) { + this.copyInstance(instance); } - - public A withDefaultMode(Integer defaultMode) { - this.defaultMode = defaultMode; + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } return (A) this; } - public boolean hasDefaultMode() { - return this.defaultMode != null; - } - - 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);} - 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);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(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 (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A removeFromItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public ItemsNested addNewItemLike(V1KeyToPath item) { + return new ItemsNested(-1, item); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1KeyToPath item : items) {V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public A addToItems(V1KeyToPath... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").add(builder); + this.items.add(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()) { - V1KeyToPathBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToItems(int index,V1KeyToPath item) { + if (this.items == null) { + this.items = new ArrayList(); } - return (A)this; + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(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 List buildItems() { - return this.items != null ? build(items) : null; + public V1KeyToPath buildFirstItem() { + return this.items.get(0).build(); } public V1KeyToPath buildItem(int index) { return this.items.get(index).build(); } - public V1KeyToPath buildFirstItem() { - return this.items.get(0).build(); + public List buildItems() { + return this.items != null ? build(items) : null; } public V1KeyToPath buildLastItem() { @@ -126,157 +106,267 @@ public V1KeyToPath buildMatchingItem(Predicate predicate) { return null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1KeyToPathBuilder item : items) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1SecretVolumeSource instance) { + instance = instance != null ? instance : new V1SecretVolumeSource(); + if (instance != null) { + this.withDefaultMode(instance.getDefaultMode()); + this.withItems(instance.getItems()); + this.withOptional(instance.getOptional()); + this.withSecretName(instance.getSecretName()); + } } - public A withItems(List items) { - if (this.items != null) { - this._visitables.get("items").clear(); - } - if (items != null) { - this.items = new ArrayList(); - for (V1KeyToPath item : items) { - this.addToItems(item); - } - } else { - this.items = null; + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); } - return (A) this; + return this.setNewItemLike(0, this.buildItem(0)); } - public A withItems(io.kubernetes.client.openapi.models.V1KeyToPath... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); } - if (items != null) { - for (V1KeyToPath item : items) { - this.addToItems(item); - } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); } - return (A) this; + return this.setNewItemLike(index, this.buildItem(index)); } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SecretVolumeSourceFluent that = (V1SecretVolumeSourceFluent) o; + if (!(Objects.equals(defaultMode, that.defaultMode))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(optional, that.optional))) { + return false; + } + if (!(Objects.equals(secretName, that.secretName))) { + return false; + } + return true; } - public ItemsNested addNewItemLike(V1KeyToPath item) { - return new ItemsNested(-1, item); + public Integer getDefaultMode() { + return this.defaultMode; } - public ItemsNested setNewItemLike(int index,V1KeyToPath item) { - return new ItemsNested(index, item); + public Boolean getOptional() { + return this.optional; } - 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 String getSecretName() { + return this.secretName; } - 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 boolean hasDefaultMode() { + return this.defaultMode != null; } - 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 boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); } - public ItemsNested editMatchingItem(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1KeyToPathBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public Boolean getOptional() { - return this.optional; + public boolean hasOptional() { + return this.optional != null; } - public A withOptional(Boolean optional) { - this.optional = optional; - return (A) this; + public boolean hasSecretName() { + return this.secretName != null; } - public boolean hasOptional() { - return this.optional != null; + public int hashCode() { + return Objects.hash(defaultMode, items, optional, secretName); } - public String getSecretName() { - return this.secretName; + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; } - public A withSecretName(String secretName) { - this.secretName = secretName; + public A removeFromItems(V1KeyToPath... items) { + if (this.items == null) { + return (A) this; + } + for (V1KeyToPath item : items) { + V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } return (A) this; } - public boolean hasSecretName() { - return this.secretName != null; + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1KeyToPathBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1SecretVolumeSourceFluent that = (V1SecretVolumeSourceFluent) o; - if (!java.util.Objects.equals(defaultMode, that.defaultMode)) return false; - if (!java.util.Objects.equals(items, that.items)) return false; - if (!java.util.Objects.equals(optional, that.optional)) return false; - if (!java.util.Objects.equals(secretName, that.secretName)) return false; - return true; + public ItemsNested setNewItemLike(int index,V1KeyToPath item) { + return new ItemsNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(defaultMode, items, optional, secretName, super.hashCode()); + 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").add(builder); + items.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (defaultMode != null) { sb.append("defaultMode:"); sb.append(defaultMode + ","); } - if (items != null && !items.isEmpty()) { sb.append("items:"); sb.append(items + ","); } - if (optional != null) { sb.append("optional:"); sb.append(optional + ","); } - if (secretName != null) { sb.append("secretName:"); sb.append(secretName); } + if (!(defaultMode == null)) { + sb.append("defaultMode:"); + sb.append(defaultMode); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(optional == null)) { + sb.append("optional:"); + sb.append(optional); + sb.append(","); + } + if (!(secretName == null)) { + sb.append("secretName:"); + sb.append(secretName); + } sb.append("}"); return sb.toString(); } + public A withDefaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1KeyToPath... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1KeyToPath item : items) { + this.addToItems(item); + } + } + return (A) this; + } + public A withOptional() { return withOptional(true); } + + public A withOptional(Boolean optional) { + this.optional = optional; + return (A) this; + } + + public A withSecretName(String secretName) { + this.secretName = secretName; + return (A) this; + } public class ItemsNested extends V1KeyToPathFluent> implements Nested{ + + V1KeyToPathBuilder builder; + int index; + ItemsNested(int index,V1KeyToPath item) { this.index = index; this.builder = new V1KeyToPathBuilder(this, item); } - V1KeyToPathBuilder builder; - int index; - + public N and() { - return (N) V1SecretVolumeSourceFluent.this.setToItems(index,builder.build()); + return (N) V1SecretVolumeSourceFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } - } \ No newline at end of file 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 48ec988e0d..4438d9a611 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SecurityContextBuilder extends V1SecurityContextFluent implements VisitableBuilder{ + + V1SecurityContextFluent fluent; + public V1SecurityContextBuilder() { this(new V1SecurityContext()); } @@ -10,17 +14,16 @@ public V1SecurityContextBuilder(V1SecurityContextFluent fluent) { this(fluent, new V1SecurityContext()); } - public V1SecurityContextBuilder(V1SecurityContextFluent fluent,V1SecurityContext instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SecurityContextBuilder(V1SecurityContext instance) { this.fluent = this; this.copyInstance(instance); } - V1SecurityContextFluent fluent; + public V1SecurityContextBuilder(V1SecurityContextFluent fluent,V1SecurityContext instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SecurityContext build() { V1SecurityContext buildable = new V1SecurityContext(); buildable.setAllowPrivilegeEscalation(fluent.getAllowPrivilegeEscalation()); @@ -38,5 +41,4 @@ public V1SecurityContext build() { return buildable; } - } \ No newline at end of file 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 20ca3ef8f9..b99c1cf5ba 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 @@ -1,24 +1,22 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; import java.lang.Long; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SecurityContextFluent> extends BaseFluent{ - public V1SecurityContextFluent() { - } - - public V1SecurityContextFluent(V1SecurityContext instance) { - this.copyInstance(instance); - } +public class V1SecurityContextFluent> extends BaseFluent{ + private Boolean allowPrivilegeEscalation; private V1AppArmorProfileBuilder appArmorProfile; private V1CapabilitiesBuilder capabilities; @@ -31,294 +29,371 @@ public V1SecurityContextFluent(V1SecurityContext instance) { private V1SELinuxOptionsBuilder seLinuxOptions; private V1SeccompProfileBuilder seccompProfile; private V1WindowsSecurityContextOptionsBuilder windowsOptions; - - 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()); - this.withReadOnlyRootFilesystem(instance.getReadOnlyRootFilesystem()); - this.withRunAsGroup(instance.getRunAsGroup()); - this.withRunAsNonRoot(instance.getRunAsNonRoot()); - this.withRunAsUser(instance.getRunAsUser()); - this.withSeLinuxOptions(instance.getSeLinuxOptions()); - this.withSeccompProfile(instance.getSeccompProfile()); - this.withWindowsOptions(instance.getWindowsOptions()); - } + + public V1SecurityContextFluent() { } - public Boolean getAllowPrivilegeEscalation() { - return this.allowPrivilegeEscalation; + public V1SecurityContextFluent(V1SecurityContext instance) { + this.copyInstance(instance); } - - public A withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { - this.allowPrivilegeEscalation = allowPrivilegeEscalation; - return (A) this; + + public V1AppArmorProfile buildAppArmorProfile() { + return this.appArmorProfile != null ? this.appArmorProfile.build() : null; } - public boolean hasAllowPrivilegeEscalation() { - return this.allowPrivilegeEscalation != null; + public V1Capabilities buildCapabilities() { + return this.capabilities != null ? this.capabilities.build() : null; } - public V1AppArmorProfile buildAppArmorProfile() { - return this.appArmorProfile != null ? this.appArmorProfile.build() : null; + public V1SELinuxOptions buildSeLinuxOptions() { + return this.seLinuxOptions != null ? this.seLinuxOptions.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 V1SeccompProfile buildSeccompProfile() { + return this.seccompProfile != null ? this.seccompProfile.build() : null; } - public boolean hasAppArmorProfile() { - return this.appArmorProfile != null; + public V1WindowsSecurityContextOptions buildWindowsOptions() { + return this.windowsOptions != null ? this.windowsOptions.build() : null; } - public AppArmorProfileNested withNewAppArmorProfile() { - return new AppArmorProfileNested(null); + 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()); + this.withReadOnlyRootFilesystem(instance.getReadOnlyRootFilesystem()); + this.withRunAsGroup(instance.getRunAsGroup()); + this.withRunAsNonRoot(instance.getRunAsNonRoot()); + this.withRunAsUser(instance.getRunAsUser()); + this.withSeLinuxOptions(instance.getSeLinuxOptions()); + this.withSeccompProfile(instance.getSeccompProfile()); + this.withWindowsOptions(instance.getWindowsOptions()); + } } - public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { - return new AppArmorProfileNested(item); + public AppArmorProfileNested editAppArmorProfile() { + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(null)); } - public AppArmorProfileNested editAppArmorProfile() { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(null)); + public CapabilitiesNested editCapabilities() { + return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(null)); } public AppArmorProfileNested editOrNewAppArmorProfile() { - return withNewAppArmorProfileLike(java.util.Optional.ofNullable(buildAppArmorProfile()).orElse(new V1AppArmorProfileBuilder().build())); + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.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; + return this.withNewAppArmorProfileLike(Optional.ofNullable(this.buildAppArmorProfile()).orElse(item)); } - public A withCapabilities(V1Capabilities capabilities) { - this._visitables.remove("capabilities"); - if (capabilities != null) { - this.capabilities = new V1CapabilitiesBuilder(capabilities); - this._visitables.get("capabilities").add(this.capabilities); - } else { - this.capabilities = null; - this._visitables.get("capabilities").remove(this.capabilities); - } - return (A) this; + public CapabilitiesNested editOrNewCapabilities() { + return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(new V1CapabilitiesBuilder().build())); } - public boolean hasCapabilities() { - return this.capabilities != null; + public CapabilitiesNested editOrNewCapabilitiesLike(V1Capabilities item) { + return this.withNewCapabilitiesLike(Optional.ofNullable(this.buildCapabilities()).orElse(item)); } - public CapabilitiesNested withNewCapabilities() { - return new CapabilitiesNested(null); + public SeLinuxOptionsNested editOrNewSeLinuxOptions() { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); } - public CapabilitiesNested withNewCapabilitiesLike(V1Capabilities item) { - return new CapabilitiesNested(item); + public SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(item)); } - public CapabilitiesNested editCapabilities() { - return withNewCapabilitiesLike(java.util.Optional.ofNullable(buildCapabilities()).orElse(null)); + public SeccompProfileNested editOrNewSeccompProfile() { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); } - public CapabilitiesNested editOrNewCapabilities() { - return withNewCapabilitiesLike(java.util.Optional.ofNullable(buildCapabilities()).orElse(new V1CapabilitiesBuilder().build())); + public SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(item)); } - public CapabilitiesNested editOrNewCapabilitiesLike(V1Capabilities item) { - return withNewCapabilitiesLike(java.util.Optional.ofNullable(buildCapabilities()).orElse(item)); + public WindowsOptionsNested editOrNewWindowsOptions() { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); } - public Boolean getPrivileged() { - return this.privileged; + public WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(item)); } - public A withPrivileged(Boolean privileged) { - this.privileged = privileged; - return (A) this; + public SeLinuxOptionsNested editSeLinuxOptions() { + return this.withNewSeLinuxOptionsLike(Optional.ofNullable(this.buildSeLinuxOptions()).orElse(null)); } - public boolean hasPrivileged() { - return this.privileged != null; + public SeccompProfileNested editSeccompProfile() { + return this.withNewSeccompProfileLike(Optional.ofNullable(this.buildSeccompProfile()).orElse(null)); } - public String getProcMount() { - return this.procMount; + public WindowsOptionsNested editWindowsOptions() { + return this.withNewWindowsOptionsLike(Optional.ofNullable(this.buildWindowsOptions()).orElse(null)); } - public A withProcMount(String procMount) { - this.procMount = procMount; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SecurityContextFluent that = (V1SecurityContextFluent) o; + if (!(Objects.equals(allowPrivilegeEscalation, that.allowPrivilegeEscalation))) { + return false; + } + if (!(Objects.equals(appArmorProfile, that.appArmorProfile))) { + return false; + } + if (!(Objects.equals(capabilities, that.capabilities))) { + return false; + } + if (!(Objects.equals(privileged, that.privileged))) { + return false; + } + if (!(Objects.equals(procMount, that.procMount))) { + return false; + } + if (!(Objects.equals(readOnlyRootFilesystem, that.readOnlyRootFilesystem))) { + return false; + } + if (!(Objects.equals(runAsGroup, that.runAsGroup))) { + return false; + } + if (!(Objects.equals(runAsNonRoot, that.runAsNonRoot))) { + return false; + } + if (!(Objects.equals(runAsUser, that.runAsUser))) { + return false; + } + if (!(Objects.equals(seLinuxOptions, that.seLinuxOptions))) { + return false; + } + if (!(Objects.equals(seccompProfile, that.seccompProfile))) { + return false; + } + if (!(Objects.equals(windowsOptions, that.windowsOptions))) { + return false; + } + return true; } - public boolean hasProcMount() { - return this.procMount != null; + public Boolean getAllowPrivilegeEscalation() { + return this.allowPrivilegeEscalation; } - public Boolean getReadOnlyRootFilesystem() { - return this.readOnlyRootFilesystem; + public Boolean getPrivileged() { + return this.privileged; } - public A withReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { - this.readOnlyRootFilesystem = readOnlyRootFilesystem; - return (A) this; + public String getProcMount() { + return this.procMount; } - public boolean hasReadOnlyRootFilesystem() { - return this.readOnlyRootFilesystem != null; + public Boolean getReadOnlyRootFilesystem() { + return this.readOnlyRootFilesystem; } public Long getRunAsGroup() { return this.runAsGroup; } - public A withRunAsGroup(Long runAsGroup) { - this.runAsGroup = runAsGroup; - return (A) this; + public Boolean getRunAsNonRoot() { + return this.runAsNonRoot; } - public boolean hasRunAsGroup() { - return this.runAsGroup != null; + public Long getRunAsUser() { + return this.runAsUser; } - public Boolean getRunAsNonRoot() { - return this.runAsNonRoot; + public boolean hasAllowPrivilegeEscalation() { + return this.allowPrivilegeEscalation != null; } - public A withRunAsNonRoot(Boolean runAsNonRoot) { - this.runAsNonRoot = runAsNonRoot; - return (A) this; + public boolean hasAppArmorProfile() { + return this.appArmorProfile != null; } - public boolean hasRunAsNonRoot() { - return this.runAsNonRoot != null; + public boolean hasCapabilities() { + return this.capabilities != null; } - public Long getRunAsUser() { - return this.runAsUser; + public boolean hasPrivileged() { + return this.privileged != null; } - public A withRunAsUser(Long runAsUser) { - this.runAsUser = runAsUser; - return (A) this; + public boolean hasProcMount() { + return this.procMount != null; } - public boolean hasRunAsUser() { - return this.runAsUser != null; + public boolean hasReadOnlyRootFilesystem() { + return this.readOnlyRootFilesystem != null; } - public V1SELinuxOptions buildSeLinuxOptions() { - return this.seLinuxOptions != null ? this.seLinuxOptions.build() : null; + public boolean hasRunAsGroup() { + return this.runAsGroup != null; } - public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { - this._visitables.remove("seLinuxOptions"); - if (seLinuxOptions != null) { - this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); - this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); - } else { - this.seLinuxOptions = null; - this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); - } - return (A) this; + public boolean hasRunAsNonRoot() { + return this.runAsNonRoot != null; + } + + public boolean hasRunAsUser() { + return this.runAsUser != null; } public boolean hasSeLinuxOptions() { return this.seLinuxOptions != null; } - public SeLinuxOptionsNested withNewSeLinuxOptions() { - return new SeLinuxOptionsNested(null); + public boolean hasSeccompProfile() { + return this.seccompProfile != null; } - public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return new SeLinuxOptionsNested(item); + public boolean hasWindowsOptions() { + return this.windowsOptions != null; } - public SeLinuxOptionsNested editSeLinuxOptions() { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(null)); + public int hashCode() { + return Objects.hash(allowPrivilegeEscalation, appArmorProfile, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions); } - public SeLinuxOptionsNested editOrNewSeLinuxOptions() { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(new V1SELinuxOptionsBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allowPrivilegeEscalation == null)) { + sb.append("allowPrivilegeEscalation:"); + sb.append(allowPrivilegeEscalation); + sb.append(","); + } + if (!(appArmorProfile == null)) { + sb.append("appArmorProfile:"); + sb.append(appArmorProfile); + sb.append(","); + } + if (!(capabilities == null)) { + sb.append("capabilities:"); + sb.append(capabilities); + sb.append(","); + } + if (!(privileged == null)) { + sb.append("privileged:"); + sb.append(privileged); + sb.append(","); + } + if (!(procMount == null)) { + sb.append("procMount:"); + sb.append(procMount); + sb.append(","); + } + if (!(readOnlyRootFilesystem == null)) { + sb.append("readOnlyRootFilesystem:"); + sb.append(readOnlyRootFilesystem); + sb.append(","); + } + if (!(runAsGroup == null)) { + sb.append("runAsGroup:"); + sb.append(runAsGroup); + sb.append(","); + } + if (!(runAsNonRoot == null)) { + sb.append("runAsNonRoot:"); + sb.append(runAsNonRoot); + sb.append(","); + } + if (!(runAsUser == null)) { + sb.append("runAsUser:"); + sb.append(runAsUser); + sb.append(","); + } + if (!(seLinuxOptions == null)) { + sb.append("seLinuxOptions:"); + sb.append(seLinuxOptions); + sb.append(","); + } + if (!(seccompProfile == null)) { + sb.append("seccompProfile:"); + sb.append(seccompProfile); + sb.append(","); + } + if (!(windowsOptions == null)) { + sb.append("windowsOptions:"); + sb.append(windowsOptions); + } + sb.append("}"); + return sb.toString(); } - public SeLinuxOptionsNested editOrNewSeLinuxOptionsLike(V1SELinuxOptions item) { - return withNewSeLinuxOptionsLike(java.util.Optional.ofNullable(buildSeLinuxOptions()).orElse(item)); + public A withAllowPrivilegeEscalation() { + return withAllowPrivilegeEscalation(true); } - public V1SeccompProfile buildSeccompProfile() { - return this.seccompProfile != null ? this.seccompProfile.build() : null; + public A withAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; + return (A) this; } - public A withSeccompProfile(V1SeccompProfile seccompProfile) { - this._visitables.remove("seccompProfile"); - if (seccompProfile != null) { - this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); - this._visitables.get("seccompProfile").add(this.seccompProfile); + 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.seccompProfile = null; - this._visitables.get("seccompProfile").remove(this.seccompProfile); + this.appArmorProfile = null; + this._visitables.get("appArmorProfile").remove(this.appArmorProfile); } return (A) this; } - public boolean hasSeccompProfile() { - return this.seccompProfile != null; + public A withCapabilities(V1Capabilities capabilities) { + this._visitables.remove("capabilities"); + if (capabilities != null) { + this.capabilities = new V1CapabilitiesBuilder(capabilities); + this._visitables.get("capabilities").add(this.capabilities); + } else { + this.capabilities = null; + this._visitables.get("capabilities").remove(this.capabilities); + } + return (A) this; } - public SeccompProfileNested withNewSeccompProfile() { - return new SeccompProfileNested(null); + public AppArmorProfileNested withNewAppArmorProfile() { + return new AppArmorProfileNested(null); } - public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { - return new SeccompProfileNested(item); + public AppArmorProfileNested withNewAppArmorProfileLike(V1AppArmorProfile item) { + return new AppArmorProfileNested(item); } - public SeccompProfileNested editSeccompProfile() { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(null)); + public CapabilitiesNested withNewCapabilities() { + return new CapabilitiesNested(null); } - public SeccompProfileNested editOrNewSeccompProfile() { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(new V1SeccompProfileBuilder().build())); + public CapabilitiesNested withNewCapabilitiesLike(V1Capabilities item) { + return new CapabilitiesNested(item); } - public SeccompProfileNested editOrNewSeccompProfileLike(V1SeccompProfile item) { - return withNewSeccompProfileLike(java.util.Optional.ofNullable(buildSeccompProfile()).orElse(item)); + public SeLinuxOptionsNested withNewSeLinuxOptions() { + return new SeLinuxOptionsNested(null); } - public V1WindowsSecurityContextOptions buildWindowsOptions() { - return this.windowsOptions != null ? this.windowsOptions.build() : null; + public SeLinuxOptionsNested withNewSeLinuxOptionsLike(V1SELinuxOptions item) { + return new SeLinuxOptionsNested(item); } - public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { - this._visitables.remove("windowsOptions"); - if (windowsOptions != null) { - this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); - this._visitables.get("windowsOptions").add(this.windowsOptions); - } else { - this.windowsOptions = null; - this._visitables.get("windowsOptions").remove(this.windowsOptions); - } - return (A) this; + public SeccompProfileNested withNewSeccompProfile() { + return new SeccompProfileNested(null); } - public boolean hasWindowsOptions() { - return this.windowsOptions != null; + public SeccompProfileNested withNewSeccompProfileLike(V1SeccompProfile item) { + return new SeccompProfileNested(item); } public WindowsOptionsNested withNewWindowsOptions() { @@ -329,82 +404,91 @@ public WindowsOptionsNested withNewWindowsOptionsLike(V1WindowsSecurityContex return new WindowsOptionsNested(item); } - public WindowsOptionsNested editWindowsOptions() { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(null)); + public A withPrivileged() { + return withPrivileged(true); } - public WindowsOptionsNested editOrNewWindowsOptions() { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(new V1WindowsSecurityContextOptionsBuilder().build())); + public A withPrivileged(Boolean privileged) { + this.privileged = privileged; + return (A) this; } - public WindowsOptionsNested editOrNewWindowsOptionsLike(V1WindowsSecurityContextOptions item) { - return withNewWindowsOptionsLike(java.util.Optional.ofNullable(buildWindowsOptions()).orElse(item)); + public A withProcMount(String procMount) { + this.procMount = procMount; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - 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; - if (!java.util.Objects.equals(readOnlyRootFilesystem, that.readOnlyRootFilesystem)) 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(seLinuxOptions, that.seLinuxOptions)) return false; - if (!java.util.Objects.equals(seccompProfile, that.seccompProfile)) return false; - if (!java.util.Objects.equals(windowsOptions, that.windowsOptions)) return false; - return true; + public A withReadOnlyRootFilesystem() { + return withReadOnlyRootFilesystem(true); } - public int hashCode() { - return java.util.Objects.hash(allowPrivilegeEscalation, appArmorProfile, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, seccompProfile, windowsOptions, super.hashCode()); + public A withReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; + return (A) this; } - 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 + ","); } - if (readOnlyRootFilesystem != null) { sb.append("readOnlyRootFilesystem:"); sb.append(readOnlyRootFilesystem + ","); } - 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 (seLinuxOptions != null) { sb.append("seLinuxOptions:"); sb.append(seLinuxOptions + ","); } - if (seccompProfile != null) { sb.append("seccompProfile:"); sb.append(seccompProfile + ","); } - if (windowsOptions != null) { sb.append("windowsOptions:"); sb.append(windowsOptions); } - sb.append("}"); - return sb.toString(); + public A withRunAsGroup(Long runAsGroup) { + this.runAsGroup = runAsGroup; + return (A) this; } - public A withAllowPrivilegeEscalation() { - return withAllowPrivilegeEscalation(true); + public A withRunAsNonRoot() { + return withRunAsNonRoot(true); } - public A withPrivileged() { - return withPrivileged(true); + public A withRunAsNonRoot(Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; + return (A) this; } - public A withReadOnlyRootFilesystem() { - return withReadOnlyRootFilesystem(true); + public A withRunAsUser(Long runAsUser) { + this.runAsUser = runAsUser; + return (A) this; } - public A withRunAsNonRoot() { - return withRunAsNonRoot(true); + public A withSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { + this._visitables.remove("seLinuxOptions"); + if (seLinuxOptions != null) { + this.seLinuxOptions = new V1SELinuxOptionsBuilder(seLinuxOptions); + this._visitables.get("seLinuxOptions").add(this.seLinuxOptions); + } else { + this.seLinuxOptions = null; + this._visitables.get("seLinuxOptions").remove(this.seLinuxOptions); + } + return (A) this; + } + + public A withSeccompProfile(V1SeccompProfile seccompProfile) { + this._visitables.remove("seccompProfile"); + if (seccompProfile != null) { + this.seccompProfile = new V1SeccompProfileBuilder(seccompProfile); + this._visitables.get("seccompProfile").add(this.seccompProfile); + } else { + this.seccompProfile = null; + this._visitables.get("seccompProfile").remove(this.seccompProfile); + } + return (A) this; + } + + public A withWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + this._visitables.remove("windowsOptions"); + if (windowsOptions != null) { + this.windowsOptions = new V1WindowsSecurityContextOptionsBuilder(windowsOptions); + this._visitables.get("windowsOptions").add(this.windowsOptions); + } else { + this.windowsOptions = null; + this._visitables.get("windowsOptions").remove(this.windowsOptions); + } + return (A) this; } public class AppArmorProfileNested extends V1AppArmorProfileFluent> implements Nested{ + + V1AppArmorProfileBuilder builder; + AppArmorProfileNested(V1AppArmorProfile item) { this.builder = new V1AppArmorProfileBuilder(this, item); } - V1AppArmorProfileBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withAppArmorProfile(builder.build()); } @@ -413,14 +497,15 @@ public N endAppArmorProfile() { return and(); } - } public class CapabilitiesNested extends V1CapabilitiesFluent> implements Nested{ + + V1CapabilitiesBuilder builder; + CapabilitiesNested(V1Capabilities item) { this.builder = new V1CapabilitiesBuilder(this, item); } - V1CapabilitiesBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withCapabilities(builder.build()); } @@ -429,14 +514,15 @@ public N endCapabilities() { return and(); } - } public class SeLinuxOptionsNested extends V1SELinuxOptionsFluent> implements Nested{ + + V1SELinuxOptionsBuilder builder; + SeLinuxOptionsNested(V1SELinuxOptions item) { this.builder = new V1SELinuxOptionsBuilder(this, item); } - V1SELinuxOptionsBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withSeLinuxOptions(builder.build()); } @@ -445,14 +531,15 @@ public N endSeLinuxOptions() { return and(); } - } public class SeccompProfileNested extends V1SeccompProfileFluent> implements Nested{ + + V1SeccompProfileBuilder builder; + SeccompProfileNested(V1SeccompProfile item) { this.builder = new V1SeccompProfileBuilder(this, item); } - V1SeccompProfileBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withSeccompProfile(builder.build()); } @@ -461,14 +548,15 @@ public N endSeccompProfile() { return and(); } - } public class WindowsOptionsNested extends V1WindowsSecurityContextOptionsFluent> implements Nested{ + + V1WindowsSecurityContextOptionsBuilder builder; + WindowsOptionsNested(V1WindowsSecurityContextOptions item) { this.builder = new V1WindowsSecurityContextOptionsBuilder(this, item); } - V1WindowsSecurityContextOptionsBuilder builder; - + public N and() { return (N) V1SecurityContextFluent.this.withWindowsOptions(builder.build()); } @@ -477,7 +565,5 @@ public N endWindowsOptions() { return and(); } - } - } \ No newline at end of file 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 index 1e1054e464..a856e6ed47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelectableFieldBuilder extends V1SelectableFieldFluent implements VisitableBuilder{ + + V1SelectableFieldFluent fluent; + public V1SelectableFieldBuilder() { this(new V1SelectableField()); } @@ -10,22 +14,20 @@ 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 V1SelectableFieldBuilder(V1SelectableFieldFluent fluent,V1SelectableField instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index 2d75916ecd..bc2062518b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelectableFieldFluent> extends BaseFluent{ +public class V1SelectableFieldFluent> extends BaseFluent{ + + private String jsonPath; + public V1SelectableFieldFluent() { } public V1SelectableFieldFluent(V1SelectableField instance) { this.copyInstance(instance); } - private String jsonPath; - + protected void copyInstance(V1SelectableField instance) { - instance = (instance != null ? instance : new V1SelectableField()); + instance = instance != null ? instance : new V1SelectableField(); if (instance != null) { - this.withJsonPath(instance.getJsonPath()); - } + this.withJsonPath(instance.getJsonPath()); + } } - public String getJsonPath() { - return this.jsonPath; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SelectableFieldFluent that = (V1SelectableFieldFluent) o; + if (!(Objects.equals(jsonPath, that.jsonPath))) { + return false; + } + return true; } - public A withJsonPath(String jsonPath) { - this.jsonPath = jsonPath; - return (A) this; + public String getJsonPath() { + return this.jsonPath; } 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()); + return Objects.hash(jsonPath); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (jsonPath != null) { sb.append("jsonPath:"); sb.append(jsonPath); } + if (!(jsonPath == null)) { + sb.append("jsonPath:"); + sb.append(jsonPath); + } sb.append("}"); return sb.toString(); } - + public A withJsonPath(String jsonPath) { + this.jsonPath = jsonPath; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java index a1d3b2425b..78fad13fce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectAccessReviewBuilder extends V1SelfSubjectAccessReviewFluent implements VisitableBuilder{ + + V1SelfSubjectAccessReviewFluent fluent; + public V1SelfSubjectAccessReviewBuilder() { this(new V1SelfSubjectAccessReview()); } @@ -10,17 +14,16 @@ public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluen this(fluent, new V1SelfSubjectAccessReview()); } - public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluent,V1SelfSubjectAccessReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReview instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectAccessReviewFluent fluent; + public V1SelfSubjectAccessReviewBuilder(V1SelfSubjectAccessReviewFluent fluent,V1SelfSubjectAccessReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectAccessReview build() { V1SelfSubjectAccessReview buildable = new V1SelfSubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1SelfSubjectAccessReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java index 9fc46c0698..2f7eb771d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectAccessReviewFluent> extends BaseFluent{ +public class V1SelfSubjectAccessReviewFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1SelfSubjectAccessReviewSpecBuilder spec; + private V1SubjectAccessReviewStatusBuilder status; + public V1SelfSubjectAccessReviewFluent() { } public V1SelfSubjectAccessReviewFluent(V1SelfSubjectAccessReview instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1SelfSubjectAccessReviewSpecBuilder spec; - private V1SubjectAccessReviewStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1SelfSubjectAccessReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1SubjectAccessReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1SelfSubjectAccessReview instance) { - instance = (instance != null ? instance : new V1SelfSubjectAccessReview()); + instance = instance != null ? instance : new V1SelfSubjectAccessReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SelfSubjectAccessReviewSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1SelfSubjectAccessReviewSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SelfSubjectAccessReviewFluent that = (V1SelfSubjectAccessReviewFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1SelfSubjectAccessReviewSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1SelfSubjectAccessReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { + return new StatusNested(item); } public A withSpec(V1SelfSubjectAccessReviewSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1SelfSubjectAccessReviewSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1SelfSubjectAccessReviewSpec 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 V1SelfSubjectAccessReviewSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1SelfSubjectAccessReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1SubjectAccessReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1SubjectAccessReviewStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1SubjectAccessReviewStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus 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 V1SubjectAccessReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus 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; - V1SelfSubjectAccessReviewFluent that = (V1SelfSubjectAccessReviewFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1SelfSubjectAccessReviewFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1SelfSubjectAccessReviewSpecFluent> implements Nested{ + + V1SelfSubjectAccessReviewSpecBuilder builder; + SpecNested(V1SelfSubjectAccessReviewSpec item) { this.builder = new V1SelfSubjectAccessReviewSpecBuilder(this, item); } - V1SelfSubjectAccessReviewSpecBuilder builder; - + public N and() { return (N) V1SelfSubjectAccessReviewFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1SubjectAccessReviewStatusFluent> implements Nested{ + + V1SubjectAccessReviewStatusBuilder builder; + StatusNested(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } - V1SubjectAccessReviewStatusBuilder builder; - + public N and() { return (N) V1SelfSubjectAccessReviewFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java index 2dbe91a797..e7148ccb88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectAccessReviewSpecBuilder extends V1SelfSubjectAccessReviewSpecFluent implements VisitableBuilder{ + + V1SelfSubjectAccessReviewSpecFluent fluent; + public V1SelfSubjectAccessReviewSpecBuilder() { this(new V1SelfSubjectAccessReviewSpec()); } @@ -10,17 +14,16 @@ public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent< this(fluent, new V1SelfSubjectAccessReviewSpec()); } - public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent fluent,V1SelfSubjectAccessReviewSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectAccessReviewSpecFluent fluent; + public V1SelfSubjectAccessReviewSpecBuilder(V1SelfSubjectAccessReviewSpecFluent fluent,V1SelfSubjectAccessReviewSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectAccessReviewSpec build() { V1SelfSubjectAccessReviewSpec buildable = new V1SelfSubjectAccessReviewSpec(); buildable.setNonResourceAttributes(fluent.buildNonResourceAttributes()); @@ -28,5 +31,4 @@ public V1SelfSubjectAccessReviewSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java index 2df99913dc..9e4f10286c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java @@ -1,141 +1,165 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectAccessReviewSpecFluent> extends BaseFluent{ +public class V1SelfSubjectAccessReviewSpecFluent> extends BaseFluent{ + + private V1NonResourceAttributesBuilder nonResourceAttributes; + private V1ResourceAttributesBuilder resourceAttributes; + public V1SelfSubjectAccessReviewSpecFluent() { } public V1SelfSubjectAccessReviewSpecFluent(V1SelfSubjectAccessReviewSpec instance) { this.copyInstance(instance); } - private V1NonResourceAttributesBuilder nonResourceAttributes; - private V1ResourceAttributesBuilder resourceAttributes; - - protected void copyInstance(V1SelfSubjectAccessReviewSpec instance) { - instance = (instance != null ? instance : new V1SelfSubjectAccessReviewSpec()); - if (instance != null) { - this.withNonResourceAttributes(instance.getNonResourceAttributes()); - this.withResourceAttributes(instance.getResourceAttributes()); - } - } - + public V1NonResourceAttributes buildNonResourceAttributes() { return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; } - public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { - this._visitables.remove("nonResourceAttributes"); - if (nonResourceAttributes != null) { - this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); - this._visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); - } else { - this.nonResourceAttributes = null; - this._visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); - } - return (A) this; + public V1ResourceAttributes buildResourceAttributes() { + return this.resourceAttributes != null ? this.resourceAttributes.build() : null; } - public boolean hasNonResourceAttributes() { - return this.nonResourceAttributes != null; + protected void copyInstance(V1SelfSubjectAccessReviewSpec instance) { + instance = instance != null ? instance : new V1SelfSubjectAccessReviewSpec(); + if (instance != null) { + this.withNonResourceAttributes(instance.getNonResourceAttributes()); + this.withResourceAttributes(instance.getResourceAttributes()); + } } - public NonResourceAttributesNested withNewNonResourceAttributes() { - return new NonResourceAttributesNested(null); + public NonResourceAttributesNested editNonResourceAttributes() { + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(null)); } - public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return new NonResourceAttributesNested(item); + public NonResourceAttributesNested editOrNewNonResourceAttributes() { + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); } - public NonResourceAttributesNested editNonResourceAttributes() { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(null)); + public NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(item)); } - public NonResourceAttributesNested editOrNewNonResourceAttributes() { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); + public ResourceAttributesNested editOrNewResourceAttributes() { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); } - public NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(item)); + public ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(item)); } - public V1ResourceAttributes buildResourceAttributes() { - return this.resourceAttributes != null ? this.resourceAttributes.build() : null; + public ResourceAttributesNested editResourceAttributes() { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(null)); } - public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { - this._visitables.remove("resourceAttributes"); - if (resourceAttributes != null) { - this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); - this._visitables.get("resourceAttributes").add(this.resourceAttributes); - } else { - this.resourceAttributes = null; - this._visitables.get("resourceAttributes").remove(this.resourceAttributes); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SelfSubjectAccessReviewSpecFluent that = (V1SelfSubjectAccessReviewSpecFluent) o; + if (!(Objects.equals(nonResourceAttributes, that.nonResourceAttributes))) { + return false; + } + if (!(Objects.equals(resourceAttributes, that.resourceAttributes))) { + return false; + } + return true; + } + + public boolean hasNonResourceAttributes() { + return this.nonResourceAttributes != null; } public boolean hasResourceAttributes() { return this.resourceAttributes != null; } - public ResourceAttributesNested withNewResourceAttributes() { - return new ResourceAttributesNested(null); + public int hashCode() { + return Objects.hash(nonResourceAttributes, resourceAttributes); } - public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { - return new ResourceAttributesNested(item); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(nonResourceAttributes == null)) { + sb.append("nonResourceAttributes:"); + sb.append(nonResourceAttributes); + sb.append(","); + } + if (!(resourceAttributes == null)) { + sb.append("resourceAttributes:"); + sb.append(resourceAttributes); + } + sb.append("}"); + return sb.toString(); } - public ResourceAttributesNested editResourceAttributes() { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(null)); + public NonResourceAttributesNested withNewNonResourceAttributes() { + return new NonResourceAttributesNested(null); } - public ResourceAttributesNested editOrNewResourceAttributes() { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); + public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { + return new NonResourceAttributesNested(item); } - public ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(item)); + public ResourceAttributesNested withNewResourceAttributes() { + return new ResourceAttributesNested(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; - V1SelfSubjectAccessReviewSpecFluent that = (V1SelfSubjectAccessReviewSpecFluent) o; - if (!java.util.Objects.equals(nonResourceAttributes, that.nonResourceAttributes)) return false; - if (!java.util.Objects.equals(resourceAttributes, that.resourceAttributes)) return false; - return true; + public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { + return new ResourceAttributesNested(item); } - public int hashCode() { - return java.util.Objects.hash(nonResourceAttributes, resourceAttributes, super.hashCode()); + public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { + this._visitables.remove("nonResourceAttributes"); + if (nonResourceAttributes != null) { + this.nonResourceAttributes = new V1NonResourceAttributesBuilder(nonResourceAttributes); + this._visitables.get("nonResourceAttributes").add(this.nonResourceAttributes); + } else { + this.nonResourceAttributes = null; + this._visitables.get("nonResourceAttributes").remove(this.nonResourceAttributes); + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (nonResourceAttributes != null) { sb.append("nonResourceAttributes:"); sb.append(nonResourceAttributes + ","); } - if (resourceAttributes != null) { sb.append("resourceAttributes:"); sb.append(resourceAttributes); } - sb.append("}"); - return sb.toString(); + public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { + this._visitables.remove("resourceAttributes"); + if (resourceAttributes != null) { + this.resourceAttributes = new V1ResourceAttributesBuilder(resourceAttributes); + this._visitables.get("resourceAttributes").add(this.resourceAttributes); + } else { + this.resourceAttributes = null; + this._visitables.get("resourceAttributes").remove(this.resourceAttributes); + } + return (A) this; } public class NonResourceAttributesNested extends V1NonResourceAttributesFluent> implements Nested{ + + V1NonResourceAttributesBuilder builder; + NonResourceAttributesNested(V1NonResourceAttributes item) { this.builder = new V1NonResourceAttributesBuilder(this, item); } - V1NonResourceAttributesBuilder builder; - + public N and() { return (N) V1SelfSubjectAccessReviewSpecFluent.this.withNonResourceAttributes(builder.build()); } @@ -144,14 +168,15 @@ public N endNonResourceAttributes() { return and(); } - } public class ResourceAttributesNested extends V1ResourceAttributesFluent> implements Nested{ + + V1ResourceAttributesBuilder builder; + ResourceAttributesNested(V1ResourceAttributes item) { this.builder = new V1ResourceAttributesBuilder(this, item); } - V1ResourceAttributesBuilder builder; - + public N and() { return (N) V1SelfSubjectAccessReviewSpecFluent.this.withResourceAttributes(builder.build()); } @@ -160,7 +185,5 @@ public N endResourceAttributes() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java index f1d9826999..6e71b19141 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectReviewBuilder extends V1SelfSubjectReviewFluent implements VisitableBuilder{ + + V1SelfSubjectReviewFluent fluent; + public V1SelfSubjectReviewBuilder() { this(new V1SelfSubjectReview()); } @@ -10,17 +14,16 @@ public V1SelfSubjectReviewBuilder(V1SelfSubjectReviewFluent fluent) { this(fluent, new V1SelfSubjectReview()); } - public V1SelfSubjectReviewBuilder(V1SelfSubjectReviewFluent fluent,V1SelfSubjectReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectReviewBuilder(V1SelfSubjectReview instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectReviewFluent fluent; + public V1SelfSubjectReviewBuilder(V1SelfSubjectReviewFluent fluent,V1SelfSubjectReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectReview build() { V1SelfSubjectReview buildable = new V1SelfSubjectReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1SelfSubjectReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java index 5c1031689b..7149c5c358 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectReviewFluent> extends BaseFluent{ +public class V1SelfSubjectReviewFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1SelfSubjectReviewStatusBuilder status; + public V1SelfSubjectReviewFluent() { } public V1SelfSubjectReviewFluent(V1SelfSubjectReview instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1SelfSubjectReviewStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1SelfSubjectReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1SelfSubjectReview instance) { - instance = (instance != null ? instance : new V1SelfSubjectReview()); + instance = instance != null ? instance : new V1SelfSubjectReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withStatus(instance.getStatus()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SelfSubjectReviewStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1SelfSubjectReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SelfSubjectReviewFluent that = (V1SelfSubjectReviewFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 StatusNested withNewStatus() { + return new StatusNested(null); } - public V1SelfSubjectReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; + public StatusNested withNewStatusLike(V1SelfSubjectReviewStatus item) { + return new StatusNested(item); } public A withStatus(V1SelfSubjectReviewStatus status) { @@ -113,63 +198,14 @@ public A withStatus(V1SelfSubjectReviewStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1SelfSubjectReviewStatus 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 V1SelfSubjectReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1SelfSubjectReviewStatus 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; - V1SelfSubjectReviewFluent that = (V1SelfSubjectReviewFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1SelfSubjectReviewFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class StatusNested extends V1SelfSubjectReviewStatusFluent> implements Nested{ + + V1SelfSubjectReviewStatusBuilder builder; + StatusNested(V1SelfSubjectReviewStatus item) { this.builder = new V1SelfSubjectReviewStatusBuilder(this, item); } - V1SelfSubjectReviewStatusBuilder builder; - + public N and() { return (N) V1SelfSubjectReviewFluent.this.withStatus(builder.build()); } @@ -194,7 +231,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java index c3665c506d..c2f2fb5c60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectReviewStatusBuilder extends V1SelfSubjectReviewStatusFluent implements VisitableBuilder{ + + V1SelfSubjectReviewStatusFluent fluent; + public V1SelfSubjectReviewStatusBuilder() { this(new V1SelfSubjectReviewStatus()); } @@ -10,22 +14,20 @@ public V1SelfSubjectReviewStatusBuilder(V1SelfSubjectReviewStatusFluent fluen this(fluent, new V1SelfSubjectReviewStatus()); } - public V1SelfSubjectReviewStatusBuilder(V1SelfSubjectReviewStatusFluent fluent,V1SelfSubjectReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectReviewStatusBuilder(V1SelfSubjectReviewStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectReviewStatusFluent fluent; + public V1SelfSubjectReviewStatusBuilder(V1SelfSubjectReviewStatusFluent fluent,V1SelfSubjectReviewStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectReviewStatus build() { V1SelfSubjectReviewStatus buildable = new V1SelfSubjectReviewStatus(); buildable.setUserInfo(fluent.buildUserInfo()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java index 66b92592ab..7c478b2843 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java @@ -1,97 +1,115 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectReviewStatusFluent> extends BaseFluent{ +public class V1SelfSubjectReviewStatusFluent> extends BaseFluent{ + + private V1UserInfoBuilder userInfo; + public V1SelfSubjectReviewStatusFluent() { } public V1SelfSubjectReviewStatusFluent(V1SelfSubjectReviewStatus instance) { this.copyInstance(instance); } - private V1UserInfoBuilder userInfo; - - protected void copyInstance(V1SelfSubjectReviewStatus instance) { - instance = (instance != null ? instance : new V1SelfSubjectReviewStatus()); - 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); + protected void copyInstance(V1SelfSubjectReviewStatus instance) { + instance = instance != null ? instance : new V1SelfSubjectReviewStatus(); + if (instance != null) { + this.withUserInfo(instance.getUserInfo()); } - return (A) this; - } - - public boolean hasUserInfo() { - return this.userInfo != null; } - public UserInfoNested withNewUserInfo() { - return new UserInfoNested(null); + public UserInfoNested editOrNewUserInfo() { + return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(new V1UserInfoBuilder().build())); } - public UserInfoNested withNewUserInfoLike(V1UserInfo item) { - return new UserInfoNested(item); + public UserInfoNested editOrNewUserInfoLike(V1UserInfo item) { + return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(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)); + return this.withNewUserInfoLike(Optional.ofNullable(this.buildUserInfo()).orElse(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; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SelfSubjectReviewStatusFluent that = (V1SelfSubjectReviewStatusFluent) o; - if (!java.util.Objects.equals(userInfo, that.userInfo)) return false; + if (!(Objects.equals(userInfo, that.userInfo))) { + return false; + } return true; } + public boolean hasUserInfo() { + return this.userInfo != null; + } + public int hashCode() { - return java.util.Objects.hash(userInfo, super.hashCode()); + return Objects.hash(userInfo); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (userInfo != null) { sb.append("userInfo:"); sb.append(userInfo); } + if (!(userInfo == null)) { + sb.append("userInfo:"); + sb.append(userInfo); + } sb.append("}"); return sb.toString(); } + + public UserInfoNested withNewUserInfo() { + return new UserInfoNested(null); + } + + public UserInfoNested withNewUserInfoLike(V1UserInfo item) { + return new UserInfoNested(item); + } + + 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 class UserInfoNested extends V1UserInfoFluent> implements Nested{ + + V1UserInfoBuilder builder; + UserInfoNested(V1UserInfo item) { this.builder = new V1UserInfoBuilder(this, item); } - V1UserInfoBuilder builder; - + public N and() { return (N) V1SelfSubjectReviewStatusFluent.this.withUserInfo(builder.build()); } @@ -100,7 +118,5 @@ public N endUserInfo() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java index 959ead8e08..e342dd6f86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectRulesReviewBuilder extends V1SelfSubjectRulesReviewFluent implements VisitableBuilder{ + + V1SelfSubjectRulesReviewFluent fluent; + public V1SelfSubjectRulesReviewBuilder() { this(new V1SelfSubjectRulesReview()); } @@ -10,17 +14,16 @@ public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent) this(fluent, new V1SelfSubjectRulesReview()); } - public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent,V1SelfSubjectRulesReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReview instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectRulesReviewFluent fluent; + public V1SelfSubjectRulesReviewBuilder(V1SelfSubjectRulesReviewFluent fluent,V1SelfSubjectRulesReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectRulesReview build() { V1SelfSubjectRulesReview buildable = new V1SelfSubjectRulesReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1SelfSubjectRulesReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java index f6ca13cb93..a860e70bc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectRulesReviewFluent> extends BaseFluent{ +public class V1SelfSubjectRulesReviewFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1SelfSubjectRulesReviewSpecBuilder spec; + private V1SubjectRulesReviewStatusBuilder status; + public V1SelfSubjectRulesReviewFluent() { } public V1SelfSubjectRulesReviewFluent(V1SelfSubjectRulesReview instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1SelfSubjectRulesReviewSpecBuilder spec; - private V1SubjectRulesReviewStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1SelfSubjectRulesReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1SubjectRulesReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1SelfSubjectRulesReview instance) { - instance = (instance != null ? instance : new V1SelfSubjectRulesReview()); + instance = instance != null ? instance : new V1SelfSubjectRulesReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SelfSubjectRulesReviewSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1SelfSubjectRulesReviewSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectRulesReviewStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1SubjectRulesReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SelfSubjectRulesReviewFluent that = (V1SelfSubjectRulesReviewFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1SelfSubjectRulesReviewSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1SelfSubjectRulesReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1SubjectRulesReviewStatus item) { + return new StatusNested(item); } public A withSpec(V1SelfSubjectRulesReviewSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1SelfSubjectRulesReviewSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1SelfSubjectRulesReviewSpec 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 V1SelfSubjectRulesReviewSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1SelfSubjectRulesReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1SubjectRulesReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1SubjectRulesReviewStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1SubjectRulesReviewStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1SubjectRulesReviewStatus 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 V1SubjectRulesReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1SubjectRulesReviewStatus 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; - V1SelfSubjectRulesReviewFluent that = (V1SelfSubjectRulesReviewFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1SelfSubjectRulesReviewFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1SelfSubjectRulesReviewSpecFluent> implements Nested{ + + V1SelfSubjectRulesReviewSpecBuilder builder; + SpecNested(V1SelfSubjectRulesReviewSpec item) { this.builder = new V1SelfSubjectRulesReviewSpecBuilder(this, item); } - V1SelfSubjectRulesReviewSpecBuilder builder; - + public N and() { return (N) V1SelfSubjectRulesReviewFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1SubjectRulesReviewStatusFluent> implements Nested{ + + V1SubjectRulesReviewStatusBuilder builder; + StatusNested(V1SubjectRulesReviewStatus item) { this.builder = new V1SubjectRulesReviewStatusBuilder(this, item); } - V1SubjectRulesReviewStatusBuilder builder; - + public N and() { return (N) V1SelfSubjectRulesReviewFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java index 6f63428ece..34fc492263 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SelfSubjectRulesReviewSpecBuilder extends V1SelfSubjectRulesReviewSpecFluent implements VisitableBuilder{ + + V1SelfSubjectRulesReviewSpecFluent fluent; + public V1SelfSubjectRulesReviewSpecBuilder() { this(new V1SelfSubjectRulesReviewSpec()); } @@ -10,22 +14,20 @@ public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent this(fluent, new V1SelfSubjectRulesReviewSpec()); } - public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent fluent,V1SelfSubjectRulesReviewSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1SelfSubjectRulesReviewSpecFluent fluent; + public V1SelfSubjectRulesReviewSpecBuilder(V1SelfSubjectRulesReviewSpecFluent fluent,V1SelfSubjectRulesReviewSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SelfSubjectRulesReviewSpec build() { V1SelfSubjectRulesReviewSpec buildable = new V1SelfSubjectRulesReviewSpec(); buildable.setNamespace(fluent.getNamespace()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java index d2ead8c37a..119984c334 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SelfSubjectRulesReviewSpecFluent> extends BaseFluent{ +public class V1SelfSubjectRulesReviewSpecFluent> extends BaseFluent{ + + private String namespace; + public V1SelfSubjectRulesReviewSpecFluent() { } public V1SelfSubjectRulesReviewSpecFluent(V1SelfSubjectRulesReviewSpec instance) { this.copyInstance(instance); } - private String namespace; - + protected void copyInstance(V1SelfSubjectRulesReviewSpec instance) { - instance = (instance != null ? instance : new V1SelfSubjectRulesReviewSpec()); + instance = instance != null ? instance : new V1SelfSubjectRulesReviewSpec(); if (instance != null) { - this.withNamespace(instance.getNamespace()); - } + this.withNamespace(instance.getNamespace()); + } } - public String getNamespace() { - return this.namespace; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SelfSubjectRulesReviewSpecFluent that = (V1SelfSubjectRulesReviewSpecFluent) o; + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + return true; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public String getNamespace() { + return this.namespace; } 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; - V1SelfSubjectRulesReviewSpecFluent that = (V1SelfSubjectRulesReviewSpecFluent) o; - if (!java.util.Objects.equals(namespace, that.namespace)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(namespace, super.hashCode()); + return Objects.hash(namespace); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (namespace != null) { sb.append("namespace:"); sb.append(namespace); } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } - + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java index 94ed49347e..8af24bc88e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServerAddressByClientCIDRBuilder extends V1ServerAddressByClientCIDRFluent implements VisitableBuilder{ + + V1ServerAddressByClientCIDRFluent fluent; + public V1ServerAddressByClientCIDRBuilder() { this(new V1ServerAddressByClientCIDR()); } @@ -10,17 +14,16 @@ public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent f this(fluent, new V1ServerAddressByClientCIDR()); } - public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent fluent,V1ServerAddressByClientCIDR instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDR instance) { this.fluent = this; this.copyInstance(instance); } - V1ServerAddressByClientCIDRFluent fluent; + public V1ServerAddressByClientCIDRBuilder(V1ServerAddressByClientCIDRFluent fluent,V1ServerAddressByClientCIDR instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServerAddressByClientCIDR build() { V1ServerAddressByClientCIDR buildable = new V1ServerAddressByClientCIDR(); buildable.setClientCIDR(fluent.getClientCIDR()); @@ -28,5 +31,4 @@ public V1ServerAddressByClientCIDR build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java index 483fd5276a..963c0aca49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServerAddressByClientCIDRFluent> extends BaseFluent{ +public class V1ServerAddressByClientCIDRFluent> extends BaseFluent{ + + private String clientCIDR; + private String serverAddress; + public V1ServerAddressByClientCIDRFluent() { } public V1ServerAddressByClientCIDRFluent(V1ServerAddressByClientCIDR instance) { this.copyInstance(instance); } - private String clientCIDR; - private String serverAddress; - + protected void copyInstance(V1ServerAddressByClientCIDR instance) { - instance = (instance != null ? instance : new V1ServerAddressByClientCIDR()); + instance = instance != null ? instance : new V1ServerAddressByClientCIDR(); if (instance != null) { - this.withClientCIDR(instance.getClientCIDR()); - this.withServerAddress(instance.getServerAddress()); - } + this.withClientCIDR(instance.getClientCIDR()); + this.withServerAddress(instance.getServerAddress()); + } } - public String getClientCIDR() { - return this.clientCIDR; - } - - public A withClientCIDR(String clientCIDR) { - this.clientCIDR = clientCIDR; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServerAddressByClientCIDRFluent that = (V1ServerAddressByClientCIDRFluent) o; + if (!(Objects.equals(clientCIDR, that.clientCIDR))) { + return false; + } + if (!(Objects.equals(serverAddress, that.serverAddress))) { + return false; + } + return true; } - public boolean hasClientCIDR() { - return this.clientCIDR != null; + public String getClientCIDR() { + return this.clientCIDR; } public String getServerAddress() { return this.serverAddress; } - public A withServerAddress(String serverAddress) { - this.serverAddress = serverAddress; - return (A) this; + public boolean hasClientCIDR() { + return this.clientCIDR != null; } public boolean hasServerAddress() { return this.serverAddress != 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; - V1ServerAddressByClientCIDRFluent that = (V1ServerAddressByClientCIDRFluent) o; - if (!java.util.Objects.equals(clientCIDR, that.clientCIDR)) return false; - if (!java.util.Objects.equals(serverAddress, that.serverAddress)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(clientCIDR, serverAddress, super.hashCode()); + return Objects.hash(clientCIDR, serverAddress); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (clientCIDR != null) { sb.append("clientCIDR:"); sb.append(clientCIDR + ","); } - if (serverAddress != null) { sb.append("serverAddress:"); sb.append(serverAddress); } + if (!(clientCIDR == null)) { + sb.append("clientCIDR:"); + sb.append(clientCIDR); + sb.append(","); + } + if (!(serverAddress == null)) { + sb.append("serverAddress:"); + sb.append(serverAddress); + } sb.append("}"); return sb.toString(); } - + public A withClientCIDR(String clientCIDR) { + this.clientCIDR = clientCIDR; + return (A) this; + } + + public A withServerAddress(String serverAddress) { + this.serverAddress = serverAddress; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java index 92ef392aeb..3fb61fcf15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceAccountBuilder extends V1ServiceAccountFluent implements VisitableBuilder{ + + V1ServiceAccountFluent fluent; + public V1ServiceAccountBuilder() { this(new V1ServiceAccount()); } @@ -10,17 +14,16 @@ public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent) { this(fluent, new V1ServiceAccount()); } - public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent,V1ServiceAccount instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceAccountBuilder(V1ServiceAccount instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceAccountFluent fluent; + public V1ServiceAccountBuilder(V1ServiceAccountFluent fluent,V1ServiceAccount instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceAccount build() { V1ServiceAccount buildable = new V1ServiceAccount(); buildable.setApiVersion(fluent.getApiVersion()); @@ -32,5 +35,4 @@ public V1ServiceAccount build() { return buildable; } - } \ 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..fe014f3892 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 @@ -1,138 +1,159 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Boolean; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceAccountFluent> extends BaseFluent{ - public V1ServiceAccountFluent() { - } - - public V1ServiceAccountFluent(V1ServiceAccount instance) { - this.copyInstance(instance); - } +public class V1ServiceAccountFluent> extends BaseFluent{ + private String apiVersion; private Boolean automountServiceAccountToken; private ArrayList imagePullSecrets; private String kind; private V1ObjectMetaBuilder metadata; private ArrayList secrets; - - protected void copyInstance(V1ServiceAccount instance) { - instance = (instance != null ? instance : new V1ServiceAccount()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); - this.withImagePullSecrets(instance.getImagePullSecrets()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSecrets(instance.getSecrets()); - } + + public V1ServiceAccountFluent() { } - public String getApiVersion() { - return this.apiVersion; + public V1ServiceAccountFluent(V1ServiceAccount instance) { + this.copyInstance(instance); } - - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + + public A addAllToImagePullSecrets(Collection items) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; - } - - public Boolean getAutomountServiceAccountToken() { - return this.automountServiceAccountToken; - } - - public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { - this.automountServiceAccountToken = automountServiceAccountToken; + public A addAllToSecrets(Collection items) { + if (this.secrets == null) { + this.secrets = new ArrayList(); + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").add(builder); + this.secrets.add(builder); + } return (A) this; } - public boolean hasAutomountServiceAccountToken() { - return this.automountServiceAccountToken != null; + public ImagePullSecretsNested addNewImagePullSecret() { + return new ImagePullSecretsNested(-1, null); } - 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);} - return (A)this; + public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { + return new ImagePullSecretsNested(-1, item); } - 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);} - return (A)this; + public SecretsNested addNewSecret() { + return new SecretsNested(-1, null); } - public A addToImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; + public SecretsNested addNewSecretLike(V1ObjectReference item) { + return new SecretsNested(-1, item); } - public A addAllToImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) {this.imagePullSecrets = new ArrayList();} - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").add(builder);this.imagePullSecrets.add(builder);} return (A)this; + public A addToImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + this.imagePullSecrets = new ArrayList(); + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); + } + return (A) this; } - public A removeFromImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... items) { - if (this.imagePullSecrets == null) return (A)this; - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder); this.imagePullSecrets.remove(builder);} return (A)this; + 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(builder); + imagePullSecrets.add(index, builder); + } + return (A) this; } - public A removeAllFromImagePullSecrets(Collection items) { - if (this.imagePullSecrets == null) return (A)this; - for (V1LocalObjectReference item : items) {V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item);_visitables.get("imagePullSecrets").remove(builder); this.imagePullSecrets.remove(builder);} return (A)this; + public A addToSecrets(V1ObjectReference... items) { + if (this.secrets == null) { + this.secrets = new ArrayList(); + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").add(builder); + this.secrets.add(builder); + } + return (A) this; } - public A removeMatchingFromImagePullSecrets(Predicate predicate) { - if (imagePullSecrets == null) return (A) this; - final Iterator each = imagePullSecrets.iterator(); - final List visitables = _visitables.get("imagePullSecrets"); - while (each.hasNext()) { - V1LocalObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToSecrets(int index,V1ObjectReference item) { + if (this.secrets == null) { + this.secrets = new ArrayList(); } - return (A)this; + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + 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 List buildImagePullSecrets() { - return this.imagePullSecrets != null ? build(imagePullSecrets) : null; + public V1LocalObjectReference buildFirstImagePullSecret() { + return this.imagePullSecrets.get(0).build(); + } + + public V1ObjectReference buildFirstSecret() { + return this.secrets.get(0).build(); } public V1LocalObjectReference buildImagePullSecret(int index) { return this.imagePullSecrets.get(index).build(); } - public V1LocalObjectReference buildFirstImagePullSecret() { - return this.imagePullSecrets.get(0).build(); + public List buildImagePullSecrets() { + return this.imagePullSecrets != null ? build(imagePullSecrets) : null; } public V1LocalObjectReference buildLastImagePullSecret() { return this.imagePullSecrets.get(imagePullSecrets.size() - 1).build(); } + public V1ObjectReference buildLastSecret() { + return this.secrets.get(secrets.size() - 1).build(); + } + public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { if (predicate.test(item)) { @@ -142,217 +163,432 @@ public V1LocalObjectReference buildMatchingImagePullSecret(Predicate predicate) { - for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { + public V1ObjectReference buildMatchingSecret(Predicate predicate) { + for (V1ObjectReferenceBuilder item : secrets) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withImagePullSecrets(List imagePullSecrets) { - if (this.imagePullSecrets != null) { - this._visitables.get("imagePullSecrets").clear(); + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ObjectReference buildSecret(int index) { + return this.secrets.get(index).build(); + } + + public List buildSecrets() { + return this.secrets != null ? build(secrets) : null; + } + + protected void copyInstance(V1ServiceAccount instance) { + instance = instance != null ? instance : new V1ServiceAccount(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withAutomountServiceAccountToken(instance.getAutomountServiceAccountToken()); + this.withImagePullSecrets(instance.getImagePullSecrets()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSecrets(instance.getSecrets()); } - if (imagePullSecrets != null) { - this.imagePullSecrets = new ArrayList(); - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); - } - } else { - this.imagePullSecrets = null; + } + + public ImagePullSecretsNested editFirstImagePullSecret() { + if (imagePullSecrets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "imagePullSecrets")); } - return (A) this; + return this.setNewImagePullSecretLike(0, this.buildImagePullSecret(0)); } - public A withImagePullSecrets(io.kubernetes.client.openapi.models.V1LocalObjectReference... imagePullSecrets) { - if (this.imagePullSecrets != null) { - this.imagePullSecrets.clear(); - _visitables.remove("imagePullSecrets"); + public SecretsNested editFirstSecret() { + if (secrets.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "secrets")); } - if (imagePullSecrets != null) { - for (V1LocalObjectReference item : imagePullSecrets) { - this.addToImagePullSecrets(item); + return this.setNewSecretLike(0, this.buildSecret(0)); + } + + public ImagePullSecretsNested editImagePullSecret(int index) { + if (imagePullSecrets.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); + } + + public ImagePullSecretsNested editLastImagePullSecret() { + int index = imagePullSecrets.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); + } + + public SecretsNested editLastSecret() { + int index = secrets.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "secrets")); + } + return this.setNewSecretLike(index, this.buildSecret(index)); + } + + public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { + int index = -1; + for (int i = 0;i < imagePullSecrets.size();i++) { + if (predicate.test(imagePullSecrets.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "imagePullSecrets")); + } + return this.setNewImagePullSecretLike(index, this.buildImagePullSecret(index)); } - public boolean hasImagePullSecrets() { - return this.imagePullSecrets != null && !this.imagePullSecrets.isEmpty(); + public SecretsNested editMatchingSecret(Predicate predicate) { + int index = -1; + for (int i = 0;i < secrets.size();i++) { + if (predicate.test(secrets.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "secrets")); + } + return this.setNewSecretLike(index, this.buildSecret(index)); } - public ImagePullSecretsNested addNewImagePullSecret() { - return new ImagePullSecretsNested(-1, null); + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public ImagePullSecretsNested addNewImagePullSecretLike(V1LocalObjectReference item) { - return new ImagePullSecretsNested(-1, item); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { - return new ImagePullSecretsNested(index, item); + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public ImagePullSecretsNested editImagePullSecret(int index) { - if (imagePullSecrets.size() <= index) throw new RuntimeException("Can't edit imagePullSecrets. Index exceeds size."); - return setNewImagePullSecretLike(index, buildImagePullSecret(index)); + public SecretsNested editSecret(int index) { + if (secrets.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "secrets")); + } + return this.setNewSecretLike(index, this.buildSecret(index)); } - public ImagePullSecretsNested editFirstImagePullSecret() { - if (imagePullSecrets.size() == 0) throw new RuntimeException("Can't edit first imagePullSecrets. The list is empty."); - return setNewImagePullSecretLike(0, buildImagePullSecret(0)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceAccountFluent that = (V1ServiceAccountFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(automountServiceAccountToken, that.automountServiceAccountToken))) { + return false; + } + if (!(Objects.equals(imagePullSecrets, that.imagePullSecrets))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(secrets, that.secrets))) { + return false; + } + return true; } - public ImagePullSecretsNested editLastImagePullSecret() { - int index = imagePullSecrets.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last imagePullSecrets. The list is empty."); - return setNewImagePullSecretLike(index, buildImagePullSecret(index)); + public String getApiVersion() { + return this.apiVersion; } - public ImagePullSecretsNested editMatchingImagePullSecret(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1LocalObjectReferenceBuilder item : imagePullSecrets) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 hasMatchingSecret(Predicate predicate) { + for (V1ObjectReferenceBuilder item : secrets) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasMetadata() { return this.metadata != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public boolean hasSecrets() { + return this.secrets != null && !(this.secrets.isEmpty()); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public int hashCode() { + return Objects.hash(apiVersion, automountServiceAccountToken, imagePullSecrets, kind, metadata, secrets); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public A removeAllFromImagePullSecrets(Collection items) { + if (this.imagePullSecrets == null) { + return (A) this; + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); + } + return (A) this; } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public A removeAllFromSecrets(Collection items) { + if (this.secrets == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").remove(builder); + this.secrets.remove(builder); + } + return (A) this; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public A removeFromImagePullSecrets(V1LocalObjectReference... items) { + if (this.imagePullSecrets == null) { + return (A) this; + } + for (V1LocalObjectReference item : items) { + V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); + _visitables.get("imagePullSecrets").remove(builder); + this.imagePullSecrets.remove(builder); + } + return (A) this; } - 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);} - return (A)this; + public A removeFromSecrets(V1ObjectReference... items) { + if (this.secrets == null) { + return (A) this; + } + for (V1ObjectReference item : items) { + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + _visitables.get("secrets").remove(builder); + this.secrets.remove(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);} - return (A)this; + public A removeMatchingFromImagePullSecrets(Predicate predicate) { + if (imagePullSecrets == null) { + return (A) this; + } + Iterator each = imagePullSecrets.iterator(); + List visitables = _visitables.get("imagePullSecrets"); + while (each.hasNext()) { + V1LocalObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A addToSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.secrets == null) {this.secrets = new ArrayList();} - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").add(builder);this.secrets.add(builder);} return (A)this; + public A removeMatchingFromSecrets(Predicate predicate) { + if (secrets == null) { + return (A) this; + } + Iterator each = secrets.iterator(); + List visitables = _visitables.get("secrets"); + while (each.hasNext()) { + V1ObjectReferenceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A addAllToSecrets(Collection items) { - if (this.secrets == null) {this.secrets = new ArrayList();} - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").add(builder);this.secrets.add(builder);} return (A)this; + public ImagePullSecretsNested setNewImagePullSecretLike(int index,V1LocalObjectReference item) { + return new ImagePullSecretsNested(index, item); } - public A removeFromSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... items) { - if (this.secrets == null) return (A)this; - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").remove(builder); this.secrets.remove(builder);} return (A)this; + public SecretsNested setNewSecretLike(int index,V1ObjectReference item) { + return new SecretsNested(index, item); } - public A removeAllFromSecrets(Collection items) { - if (this.secrets == null) return (A)this; - for (V1ObjectReference item : items) {V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item);_visitables.get("secrets").remove(builder); this.secrets.remove(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").add(builder); + imagePullSecrets.set(index, builder); + } + return (A) this; } - public A removeMatchingFromSecrets(Predicate predicate) { - if (secrets == null) return (A) this; - final Iterator each = secrets.iterator(); - final List visitables = _visitables.get("secrets"); - while (each.hasNext()) { - V1ObjectReferenceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A setToSecrets(int index,V1ObjectReference item) { + if (this.secrets == null) { + this.secrets = new ArrayList(); } - return (A)this; + V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); + 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; } - public List buildSecrets() { - return this.secrets != null ? build(secrets) : null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(automountServiceAccountToken == null)) { + sb.append("automountServiceAccountToken:"); + sb.append(automountServiceAccountToken); + sb.append(","); + } + if (!(imagePullSecrets == null) && !(imagePullSecrets.isEmpty())) { + sb.append("imagePullSecrets:"); + sb.append(imagePullSecrets); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(secrets == null) && !(secrets.isEmpty())) { + sb.append("secrets:"); + sb.append(secrets); + } + sb.append("}"); + return sb.toString(); } - public V1ObjectReference buildSecret(int index) { - return this.secrets.get(index).build(); + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public V1ObjectReference buildFirstSecret() { - return this.secrets.get(0).build(); + public A withAutomountServiceAccountToken() { + return withAutomountServiceAccountToken(true); } - public V1ObjectReference buildLastSecret() { - return this.secrets.get(secrets.size() - 1).build(); + public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken) { + this.automountServiceAccountToken = automountServiceAccountToken; + return (A) this; } - public V1ObjectReference buildMatchingSecret(Predicate predicate) { - for (V1ObjectReferenceBuilder item : secrets) { - if (predicate.test(item)) { - return item.build(); + public A withImagePullSecrets(List imagePullSecrets) { + if (this.imagePullSecrets != null) { + this._visitables.get("imagePullSecrets").clear(); + } + if (imagePullSecrets != null) { + this.imagePullSecrets = new ArrayList(); + for (V1LocalObjectReference item : imagePullSecrets) { + this.addToImagePullSecrets(item); } - } - return null; + } else { + this.imagePullSecrets = null; + } + return (A) this; } - public boolean hasMatchingSecret(Predicate predicate) { - for (V1ObjectReferenceBuilder item : secrets) { - if (predicate.test(item)) { - return true; - } + public A withImagePullSecrets(V1LocalObjectReference... imagePullSecrets) { + if (this.imagePullSecrets != null) { + this.imagePullSecrets.clear(); + _visitables.remove("imagePullSecrets"); + } + if (imagePullSecrets != null) { + for (V1LocalObjectReference item : imagePullSecrets) { + this.addToImagePullSecrets(item); } - return false; + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } public A withSecrets(List secrets) { @@ -370,7 +606,7 @@ public A withSecrets(List secrets) { return (A) this; } - public A withSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... secrets) { + public A withSecrets(V1ObjectReference... secrets) { if (this.secrets != null) { this.secrets.clear(); _visitables.remove("secrets"); @@ -382,106 +618,33 @@ public A withSecrets(io.kubernetes.client.openapi.models.V1ObjectReference... se } return (A) this; } + public class ImagePullSecretsNested extends V1LocalObjectReferenceFluent> implements Nested{ - public boolean hasSecrets() { - return this.secrets != null && !this.secrets.isEmpty(); - } - - public SecretsNested addNewSecret() { - return new SecretsNested(-1, null); - } - - public SecretsNested addNewSecretLike(V1ObjectReference item) { - return new SecretsNested(-1, item); - } - - public SecretsNested setNewSecretLike(int index,V1ObjectReference item) { - return new SecretsNested(index, item); - } - - public SecretsNested editSecret(int index) { - if (secrets.size() <= index) throw new RuntimeException("Can't edit secrets. Index exceeds size."); - return setNewSecretLike(index, buildSecret(index)); - } - - public SecretsNested editFirstSecret() { - if (secrets.size() == 0) throw new RuntimeException("Can't edit first secrets. The list is empty."); - return setNewSecretLike(0, buildSecret(0)); - } - - public SecretsNested editLastSecret() { - int index = secrets.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last secrets. The list is empty."); - return setNewSecretLike(index, buildSecret(index)); - } - - public SecretsNested editMatchingSecret(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1LocalObjectReferenceFluent> implements Nested{ ImagePullSecretsNested(int index,V1LocalObjectReference item) { this.index = index; this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - int index; - + public N and() { - return (N) V1ServiceAccountFluent.this.setToImagePullSecrets(index,builder.build()); + return (N) V1ServiceAccountFluent.this.setToImagePullSecrets(index, builder.build()); } public N endImagePullSecret() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ServiceAccountFluent.this.withMetadata(builder.build()); } @@ -490,25 +653,24 @@ public N endMetadata() { return and(); } - } public class SecretsNested extends V1ObjectReferenceFluent> implements Nested{ + + V1ObjectReferenceBuilder builder; + int index; + SecretsNested(int index,V1ObjectReference item) { this.index = index; this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - int index; - + public N and() { - return (N) V1ServiceAccountFluent.this.setToSecrets(index,builder.build()); + return (N) V1ServiceAccountFluent.this.setToSecrets(index, builder.build()); } public N endSecret() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java index 705e2f1155..2672927f60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceAccountListBuilder extends V1ServiceAccountListFluent implements VisitableBuilder{ + + V1ServiceAccountListFluent fluent; + public V1ServiceAccountListBuilder() { this(new V1ServiceAccountList()); } @@ -10,17 +14,16 @@ public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent) { this(fluent, new V1ServiceAccountList()); } - public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent,V1ServiceAccountList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceAccountListBuilder(V1ServiceAccountList instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceAccountListFluent fluent; + public V1ServiceAccountListBuilder(V1ServiceAccountListFluent fluent,V1ServiceAccountList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceAccountList build() { V1ServiceAccountList buildable = new V1ServiceAccountList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ServiceAccountList build() { return buildable; } - } \ No newline at end of file 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..a33a92a076 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceAccountListFluent> extends BaseFluent{ +public class V1ServiceAccountListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ServiceAccountListFluent() { } public V1ServiceAccountListFluent(V1ServiceAccountList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ServiceAccountList instance) { - instance = (instance != null ? instance : new V1ServiceAccountList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ServiceAccount item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ServiceAccount... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ServiceAccount item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ServiceAccount buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ServiceAccount buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { - if (this.items == null) return (A)this; - for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ServiceAccount buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ServiceAccount item : items) {V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ServiceAccount buildMatchingItem(Predicate predicate) { + for (V1ServiceAccountBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ServiceAccountBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ServiceAccountList instance) { + instance = instance != null ? instance : new V1ServiceAccountList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ServiceAccount buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ServiceAccount buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ServiceAccount buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceAccountListFluent that = (V1ServiceAccountListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ServiceAccount buildMatchingItem(Predicate predicate) { - for (V1ServiceAccountBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ServiceAccount... items) { + if (this.items == null) { + return (A) this; + } + for (V1ServiceAccount item : items) { + V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ServiceAccountBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ServiceAccount item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items) { + public A withItems(V1ServiceAccount... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ServiceAccount... items return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ServiceAccount item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ServiceAccount 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ServiceAccountFluent> implements Nested{ - 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; - V1ServiceAccountListFluent that = (V1ServiceAccountListFluent) 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()); - } + V1ServiceAccountBuilder builder; + int index; - 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 V1ServiceAccountFluent> implements Nested{ ItemsNested(int index,V1ServiceAccount item) { this.index = index; this.builder = new V1ServiceAccountBuilder(this, item); } - V1ServiceAccountBuilder builder; - int index; - + public N and() { - return (N) V1ServiceAccountListFluent.this.setToItems(index,builder.build()); + return (N) V1ServiceAccountListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ServiceAccountListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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 index b6307996ba..98a50f1c7a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceAccountSubjectBuilder extends V1ServiceAccountSubjectFluent implements VisitableBuilder{ + + V1ServiceAccountSubjectFluent fluent; + public V1ServiceAccountSubjectBuilder() { this(new V1ServiceAccountSubject()); } @@ -10,17 +14,16 @@ 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 V1ServiceAccountSubjectBuilder(V1ServiceAccountSubjectFluent fluent,V1ServiceAccountSubject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceAccountSubject build() { V1ServiceAccountSubject buildable = new V1ServiceAccountSubject(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1ServiceAccountSubject build() { 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 index c398528f76..7736b321b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceAccountSubjectFluent> extends BaseFluent{ +public class V1ServiceAccountSubjectFluent> extends BaseFluent{ + + private String name; + private String namespace; + 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()); + instance = instance != null ? instance : new V1ServiceAccountSubject(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceAccountSubjectFluent that = (V1ServiceAccountSubjectFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public String getNamespace() { return this.namespace; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public boolean hasName() { + return this.name != null; } 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()); + return Objects.hash(name, namespace); } 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 (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java index db3c1273b5..fec1ef7b85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceAccountTokenProjectionBuilder extends V1ServiceAccountTokenProjectionFluent implements VisitableBuilder{ + + V1ServiceAccountTokenProjectionFluent fluent; + public V1ServiceAccountTokenProjectionBuilder() { this(new V1ServiceAccountTokenProjection()); } @@ -10,17 +14,16 @@ public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFlu this(fluent, new V1ServiceAccountTokenProjection()); } - public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFluent fluent,V1ServiceAccountTokenProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceAccountTokenProjectionFluent fluent; + public V1ServiceAccountTokenProjectionBuilder(V1ServiceAccountTokenProjectionFluent fluent,V1ServiceAccountTokenProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceAccountTokenProjection build() { V1ServiceAccountTokenProjection buildable = new V1ServiceAccountTokenProjection(); buildable.setAudience(fluent.getAudience()); @@ -29,5 +32,4 @@ public V1ServiceAccountTokenProjection build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java index 00589a2a40..819e0a9c80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java @@ -1,98 +1,124 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceAccountTokenProjectionFluent> extends BaseFluent{ +public class V1ServiceAccountTokenProjectionFluent> extends BaseFluent{ + + private String audience; + private Long expirationSeconds; + private String path; + public V1ServiceAccountTokenProjectionFluent() { } public V1ServiceAccountTokenProjectionFluent(V1ServiceAccountTokenProjection instance) { this.copyInstance(instance); } - private String audience; - private Long expirationSeconds; - private String path; - + protected void copyInstance(V1ServiceAccountTokenProjection instance) { - instance = (instance != null ? instance : new V1ServiceAccountTokenProjection()); + instance = instance != null ? instance : new V1ServiceAccountTokenProjection(); if (instance != null) { - this.withAudience(instance.getAudience()); - this.withExpirationSeconds(instance.getExpirationSeconds()); - this.withPath(instance.getPath()); - } - } - - public String getAudience() { - return this.audience; + this.withAudience(instance.getAudience()); + this.withExpirationSeconds(instance.getExpirationSeconds()); + this.withPath(instance.getPath()); + } } - public A withAudience(String audience) { - this.audience = audience; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceAccountTokenProjectionFluent that = (V1ServiceAccountTokenProjectionFluent) o; + if (!(Objects.equals(audience, that.audience))) { + return false; + } + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } + if (!(Objects.equals(path, that.path))) { + return false; + } + return true; } - public boolean hasAudience() { - return this.audience != null; + public String getAudience() { + return this.audience; } public Long getExpirationSeconds() { return this.expirationSeconds; } - public A withExpirationSeconds(Long expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; - } - - public boolean hasExpirationSeconds() { - return this.expirationSeconds != null; - } - public String getPath() { return this.path; } - public A withPath(String path) { - this.path = path; - return (A) this; + public boolean hasAudience() { + return this.audience != null; } - public boolean hasPath() { - return this.path != null; + public boolean hasExpirationSeconds() { + return this.expirationSeconds != 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; - V1ServiceAccountTokenProjectionFluent that = (V1ServiceAccountTokenProjectionFluent) o; - if (!java.util.Objects.equals(audience, that.audience)) return false; - if (!java.util.Objects.equals(expirationSeconds, that.expirationSeconds)) return false; - if (!java.util.Objects.equals(path, that.path)) return false; - return true; + public boolean hasPath() { + return this.path != null; } public int hashCode() { - return java.util.Objects.hash(audience, expirationSeconds, path, super.hashCode()); + return Objects.hash(audience, expirationSeconds, path); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (audience != null) { sb.append("audience:"); sb.append(audience + ","); } - if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds + ","); } - if (path != null) { sb.append("path:"); sb.append(path); } + if (!(audience == null)) { + sb.append("audience:"); + sb.append(audience); + sb.append(","); + } + if (!(expirationSeconds == null)) { + sb.append("expirationSeconds:"); + sb.append(expirationSeconds); + sb.append(","); + } + if (!(path == null)) { + sb.append("path:"); + sb.append(path); + } sb.append("}"); return sb.toString(); } - + public A withAudience(String audience) { + this.audience = audience; + return (A) this; + } + + public A withExpirationSeconds(Long expirationSeconds) { + this.expirationSeconds = expirationSeconds; + return (A) this; + } + + public A withPath(String path) { + this.path = path; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java index 71aff254d3..584c2f4101 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceBackendPortBuilder extends V1ServiceBackendPortFluent implements VisitableBuilder{ + + V1ServiceBackendPortFluent fluent; + public V1ServiceBackendPortBuilder() { this(new V1ServiceBackendPort()); } @@ -10,17 +14,16 @@ public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent) { this(fluent, new V1ServiceBackendPort()); } - public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent,V1ServiceBackendPort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceBackendPortBuilder(V1ServiceBackendPort instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceBackendPortFluent fluent; + public V1ServiceBackendPortBuilder(V1ServiceBackendPortFluent fluent,V1ServiceBackendPort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceBackendPort build() { V1ServiceBackendPort buildable = new V1ServiceBackendPort(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1ServiceBackendPort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java index b4b1a08078..4303c75ab8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java @@ -1,81 +1,101 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceBackendPortFluent> extends BaseFluent{ +public class V1ServiceBackendPortFluent> extends BaseFluent{ + + private String name; + private Integer number; + public V1ServiceBackendPortFluent() { } public V1ServiceBackendPortFluent(V1ServiceBackendPort instance) { this.copyInstance(instance); } - private String name; - private Integer number; - + protected void copyInstance(V1ServiceBackendPort instance) { - instance = (instance != null ? instance : new V1ServiceBackendPort()); + instance = instance != null ? instance : new V1ServiceBackendPort(); if (instance != null) { - this.withName(instance.getName()); - this.withNumber(instance.getNumber()); - } + this.withName(instance.getName()); + this.withNumber(instance.getNumber()); + } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceBackendPortFluent that = (V1ServiceBackendPortFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(number, that.number))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public Integer getNumber() { return this.number; } - public A withNumber(Integer number) { - this.number = number; - return (A) this; + public boolean hasName() { + return this.name != null; } public boolean hasNumber() { return this.number != 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; - V1ServiceBackendPortFluent that = (V1ServiceBackendPortFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(number, that.number)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, number, super.hashCode()); + return Objects.hash(name, number); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (number != null) { sb.append("number:"); sb.append(number); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(number == null)) { + sb.append("number:"); + sb.append(number); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNumber(Integer number) { + this.number = number; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java index b6c2375c31..4b65e67142 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceBuilder extends V1ServiceFluent implements VisitableBuilder{ + + V1ServiceFluent fluent; + public V1ServiceBuilder() { this(new V1Service()); } @@ -10,17 +14,16 @@ public V1ServiceBuilder(V1ServiceFluent fluent) { this(fluent, new V1Service()); } - public V1ServiceBuilder(V1ServiceFluent fluent,V1Service instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceBuilder(V1Service instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceFluent fluent; + public V1ServiceBuilder(V1ServiceFluent fluent,V1Service instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Service build() { V1Service buildable = new V1Service(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1Service build() { return buildable; } - } \ 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..10731085b4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ServiceCIDRBuilder extends V1ServiceCIDRFluent implements VisitableBuilder{ + + V1ServiceCIDRFluent fluent; + + public V1ServiceCIDRBuilder() { + this(new V1ServiceCIDR()); + } + + public V1ServiceCIDRBuilder(V1ServiceCIDRFluent fluent) { + this(fluent, new V1ServiceCIDR()); + } + + public V1ServiceCIDRBuilder(V1ServiceCIDR instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ServiceCIDRBuilder(V1ServiceCIDRFluent fluent,V1ServiceCIDR instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..58d0b913b2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java @@ -0,0 +1,302 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ServiceCIDRSpecBuilder spec; + private V1ServiceCIDRStatusBuilder status; + + public V1ServiceCIDRFluent() { + } + + public V1ServiceCIDRFluent(V1ServiceCIDR instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ServiceCIDRSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1ServiceCIDRStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ServiceCIDRSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ServiceCIDRSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ServiceCIDRStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ServiceCIDRStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceCIDRFluent that = (V1ServiceCIDRFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1ServiceCIDRSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1ServiceCIDRStatus item) { + return new StatusNested(item); + } + + 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 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1ServiceCIDRFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1ServiceCIDRSpecFluent> implements Nested{ + + V1ServiceCIDRSpecBuilder builder; + + SpecNested(V1ServiceCIDRSpec item) { + this.builder = new V1ServiceCIDRSpecBuilder(this, item); + } + + public N and() { + return (N) V1ServiceCIDRFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1ServiceCIDRStatusFluent> implements Nested{ + + V1ServiceCIDRStatusBuilder builder; + + StatusNested(V1ServiceCIDRStatus item) { + this.builder = new V1ServiceCIDRStatusBuilder(this, item); + } + + 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..3071772f6f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ServiceCIDRListBuilder extends V1ServiceCIDRListFluent implements VisitableBuilder{ + + V1ServiceCIDRListFluent fluent; + + public V1ServiceCIDRListBuilder() { + this(new V1ServiceCIDRList()); + } + + public V1ServiceCIDRListBuilder(V1ServiceCIDRListFluent fluent) { + this(fluent, new V1ServiceCIDRList()); + } + + public V1ServiceCIDRListBuilder(V1ServiceCIDRList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ServiceCIDRListBuilder(V1ServiceCIDRListFluent fluent,V1ServiceCIDRList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..15ee855a91 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1ServiceCIDRListFluent() { + } + + public V1ServiceCIDRListFluent(V1ServiceCIDRList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1ServiceCIDR item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1ServiceCIDR buildFirstItem() { + return this.items.get(0).build(); + } + + public V1ServiceCIDR buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceCIDRListFluent that = (V1ServiceCIDRListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1ServiceCIDR item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1ServiceCIDRFluent> implements Nested{ + + V1ServiceCIDRBuilder builder; + int index; + + ItemsNested(int index,V1ServiceCIDR item) { + this.index = index; + this.builder = new V1ServiceCIDRBuilder(this, item); + } + + public N and() { + return (N) V1ServiceCIDRListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..17a4e1820f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ServiceCIDRSpecBuilder extends V1ServiceCIDRSpecFluent implements VisitableBuilder{ + + V1ServiceCIDRSpecFluent fluent; + + public V1ServiceCIDRSpecBuilder() { + this(new V1ServiceCIDRSpec()); + } + + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpecFluent fluent) { + this(fluent, new V1ServiceCIDRSpec()); + } + + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ServiceCIDRSpecBuilder(V1ServiceCIDRSpecFluent fluent,V1ServiceCIDRSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..560663fe00 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java @@ -0,0 +1,187 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRSpecFluent> extends BaseFluent{ + + private List cidrs; + + public V1ServiceCIDRSpecFluent() { + } + + public V1ServiceCIDRSpecFluent(V1ServiceCIDRSpec instance) { + this.copyInstance(instance); + } + + 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 addToCidrs(String... items) { + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + for (String item : items) { + this.cidrs.add(item); + } + return (A) this; + } + + public A addToCidrs(int index,String item) { + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + this.cidrs.add(index, item); + return (A) this; + } + + protected void copyInstance(V1ServiceCIDRSpec instance) { + instance = instance != null ? instance : new V1ServiceCIDRSpec(); + if (instance != null) { + this.withCidrs(instance.getCidrs()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceCIDRSpecFluent that = (V1ServiceCIDRSpecFluent) o; + if (!(Objects.equals(cidrs, that.cidrs))) { + return false; + } + return true; + } + + public String getCidr(int index) { + return this.cidrs.get(index); + } + + public List getCidrs() { + return this.cidrs; + } + + 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 hasCidrs() { + return this.cidrs != null && !(this.cidrs.isEmpty()); + } + + public boolean hasMatchingCidr(Predicate predicate) { + for (String item : cidrs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(cidrs); + } + + public A removeAllFromCidrs(Collection items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; + } + + public A removeFromCidrs(String... items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cidrs == null) && !(cidrs.isEmpty())) { + sb.append("cidrs:"); + sb.append(cidrs); + } + sb.append("}"); + return sb.toString(); + } + + 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(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; + } + +} \ 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..987598e1a2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ServiceCIDRStatusBuilder extends V1ServiceCIDRStatusFluent implements VisitableBuilder{ + + V1ServiceCIDRStatusFluent fluent; + + public V1ServiceCIDRStatusBuilder() { + this(new V1ServiceCIDRStatus()); + } + + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatusFluent fluent) { + this(fluent, new V1ServiceCIDRStatus()); + } + + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ServiceCIDRStatusBuilder(V1ServiceCIDRStatusFluent fluent,V1ServiceCIDRStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..c82e63ef24 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java @@ -0,0 +1,297 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ServiceCIDRStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + + public V1ServiceCIDRStatusFluent() { + } + + public V1ServiceCIDRStatusFluent(V1ServiceCIDRStatus instance) { + this.copyInstance(instance); + } + + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(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 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 V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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; + } + + protected void copyInstance(V1ServiceCIDRStatus instance) { + instance = instance != null ? instance : new V1ServiceCIDRStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceCIDRStatusFluent that = (V1ServiceCIDRStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(conditions); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + 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/V1ServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java index dddb2cbcab..2673acf149 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceFluent> extends BaseFluent{ +public class V1ServiceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ServiceSpecBuilder spec; + private V1ServiceStatusBuilder status; + public V1ServiceFluent() { } public V1ServiceFluent(V1Service instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ServiceSpecBuilder spec; - private V1ServiceStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ServiceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1ServiceStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1Service instance) { - instance = (instance != null ? instance : new V1Service()); + instance = instance != null ? instance : new V1Service(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ServiceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ServiceSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ServiceStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ServiceStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceFluent that = (V1ServiceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1ServiceSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1ServiceSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1ServiceStatus item) { + return new StatusNested(item); } public A withSpec(V1ServiceSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1ServiceSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1ServiceSpec 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 V1ServiceSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1ServiceSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1ServiceStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1ServiceStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1ServiceStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1ServiceStatus 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 V1ServiceStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1ServiceStatus 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; - V1ServiceFluent that = (V1ServiceFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1ServiceFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ServiceSpecFluent> implements Nested{ + + V1ServiceSpecBuilder builder; + SpecNested(V1ServiceSpec item) { this.builder = new V1ServiceSpecBuilder(this, item); } - V1ServiceSpecBuilder builder; - + public N and() { return (N) V1ServiceFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ServiceStatusFluent> implements Nested{ + + V1ServiceStatusBuilder builder; + StatusNested(V1ServiceStatus item) { this.builder = new V1ServiceStatusBuilder(this, item); } - V1ServiceStatusBuilder builder; - + public N and() { return (N) V1ServiceFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java index ebde06c333..debd391f90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceListBuilder extends V1ServiceListFluent implements VisitableBuilder{ + + V1ServiceListFluent fluent; + public V1ServiceListBuilder() { this(new V1ServiceList()); } @@ -10,17 +14,16 @@ public V1ServiceListBuilder(V1ServiceListFluent fluent) { this(fluent, new V1ServiceList()); } - public V1ServiceListBuilder(V1ServiceListFluent fluent,V1ServiceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceListBuilder(V1ServiceList instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceListFluent fluent; + public V1ServiceListBuilder(V1ServiceListFluent fluent,V1ServiceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceList build() { V1ServiceList buildable = new V1ServiceList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ServiceList build() { return buildable; } - } \ 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..18c8923ce3 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceListFluent> extends BaseFluent{ +public class V1ServiceListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ServiceListFluent() { } public V1ServiceListFluent(V1ServiceList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ServiceList instance) { - instance = (instance != null ? instance : new V1ServiceList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1Service item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1Service... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1Service item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1Service buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1Service... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1Service buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1Service... items) { - if (this.items == null) return (A)this; - for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Service buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1Service item : items) {V1ServiceBuilder builder = new V1ServiceBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1Service buildMatchingItem(Predicate predicate) { + for (V1ServiceBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ServiceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ServiceList instance) { + instance = instance != null ? instance : new V1ServiceList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1Service buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1Service buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1Service buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceListFluent that = (V1ServiceListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1Service buildMatchingItem(Predicate predicate) { - for (V1ServiceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1Service... items) { + if (this.items == null) { + return (A) this; + } + for (V1Service item : items) { + V1ServiceBuilder builder = new V1ServiceBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ServiceBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1Service item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1Service... items) { + public A withItems(V1Service... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1Service... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1Service item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1Service 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ServiceFluent> implements Nested{ - 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; - V1ServiceListFluent that = (V1ServiceListFluent) 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()); - } + V1ServiceBuilder builder; + int index; - 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 V1ServiceFluent> implements Nested{ ItemsNested(int index,V1Service item) { this.index = index; this.builder = new V1ServiceBuilder(this, item); } - V1ServiceBuilder builder; - int index; - + public N and() { - return (N) V1ServiceListFluent.this.setToItems(index,builder.build()); + return (N) V1ServiceListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ServiceListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java index c2cbe7f5b9..643e8e53a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServicePortBuilder extends V1ServicePortFluent implements VisitableBuilder{ + + V1ServicePortFluent fluent; + public V1ServicePortBuilder() { this(new V1ServicePort()); } @@ -10,17 +14,16 @@ public V1ServicePortBuilder(V1ServicePortFluent fluent) { this(fluent, new V1ServicePort()); } - public V1ServicePortBuilder(V1ServicePortFluent fluent,V1ServicePort instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServicePortBuilder(V1ServicePort instance) { this.fluent = this; this.copyInstance(instance); } - V1ServicePortFluent fluent; + public V1ServicePortBuilder(V1ServicePortFluent fluent,V1ServicePort instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServicePort build() { V1ServicePort buildable = new V1ServicePort(); buildable.setAppProtocol(fluent.getAppProtocol()); @@ -32,5 +35,4 @@ public V1ServicePort build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java index 1ebdb2e74a..bd735b3de6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java @@ -1,158 +1,202 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServicePortFluent> extends BaseFluent{ - public V1ServicePortFluent() { - } - - public V1ServicePortFluent(V1ServicePort instance) { - this.copyInstance(instance); - } +public class V1ServicePortFluent> extends BaseFluent{ + private String appProtocol; private String name; private Integer nodePort; private Integer port; private String protocol; private IntOrString targetPort; + + public V1ServicePortFluent() { + } + public V1ServicePortFluent(V1ServicePort instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ServicePort instance) { - instance = (instance != null ? instance : new V1ServicePort()); + instance = instance != null ? instance : new V1ServicePort(); if (instance != null) { - this.withAppProtocol(instance.getAppProtocol()); - this.withName(instance.getName()); - this.withNodePort(instance.getNodePort()); - this.withPort(instance.getPort()); - this.withProtocol(instance.getProtocol()); - this.withTargetPort(instance.getTargetPort()); - } - } - - public String getAppProtocol() { - return this.appProtocol; + this.withAppProtocol(instance.getAppProtocol()); + this.withName(instance.getName()); + this.withNodePort(instance.getNodePort()); + this.withPort(instance.getPort()); + this.withProtocol(instance.getProtocol()); + this.withTargetPort(instance.getTargetPort()); + } } - public A withAppProtocol(String appProtocol) { - this.appProtocol = appProtocol; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServicePortFluent that = (V1ServicePortFluent) o; + if (!(Objects.equals(appProtocol, that.appProtocol))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodePort, that.nodePort))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + if (!(Objects.equals(protocol, that.protocol))) { + return false; + } + if (!(Objects.equals(targetPort, that.targetPort))) { + return false; + } + return true; } - public boolean hasAppProtocol() { - return this.appProtocol != null; + public String getAppProtocol() { + return this.appProtocol; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public Integer getNodePort() { + return this.nodePort; } - public boolean hasName() { - return this.name != null; + public Integer getPort() { + return this.port; } - public Integer getNodePort() { - return this.nodePort; + public String getProtocol() { + return this.protocol; } - public A withNodePort(Integer nodePort) { - this.nodePort = nodePort; - return (A) this; + public IntOrString getTargetPort() { + return this.targetPort; } - public boolean hasNodePort() { - return this.nodePort != null; + public boolean hasAppProtocol() { + return this.appProtocol != null; } - public Integer getPort() { - return this.port; + public boolean hasName() { + return this.name != null; } - public A withPort(Integer port) { - this.port = port; - return (A) this; + public boolean hasNodePort() { + return this.nodePort != null; } public boolean hasPort() { return this.port != null; } - public String getProtocol() { - return this.protocol; + public boolean hasProtocol() { + return this.protocol != null; } - public A withProtocol(String protocol) { - this.protocol = protocol; - return (A) this; + public boolean hasTargetPort() { + return this.targetPort != null; } - public boolean hasProtocol() { - return this.protocol != null; + public int hashCode() { + return Objects.hash(appProtocol, name, nodePort, port, protocol, targetPort); } - public IntOrString getTargetPort() { - return this.targetPort; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(appProtocol == null)) { + sb.append("appProtocol:"); + sb.append(appProtocol); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nodePort == null)) { + sb.append("nodePort:"); + sb.append(nodePort); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + sb.append(","); + } + if (!(protocol == null)) { + sb.append("protocol:"); + sb.append(protocol); + sb.append(","); + } + if (!(targetPort == null)) { + sb.append("targetPort:"); + sb.append(targetPort); + } + sb.append("}"); + return sb.toString(); } - public A withTargetPort(IntOrString targetPort) { - this.targetPort = targetPort; + public A withAppProtocol(String appProtocol) { + this.appProtocol = appProtocol; return (A) this; } - public boolean hasTargetPort() { - return this.targetPort != null; + public A withName(String name) { + this.name = name; + return (A) this; } public A withNewTargetPort(int value) { - return (A)withTargetPort(new IntOrString(value)); + return (A) this.withTargetPort(new IntOrString(value)); } public A withNewTargetPort(String value) { - return (A)withTargetPort(new IntOrString(value)); + return (A) this.withTargetPort(new IntOrString(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; - V1ServicePortFluent that = (V1ServicePortFluent) o; - if (!java.util.Objects.equals(appProtocol, that.appProtocol)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(nodePort, that.nodePort)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - if (!java.util.Objects.equals(protocol, that.protocol)) return false; - if (!java.util.Objects.equals(targetPort, that.targetPort)) return false; - return true; + public A withNodePort(Integer nodePort) { + this.nodePort = nodePort; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(appProtocol, name, nodePort, port, protocol, targetPort, super.hashCode()); + public A withPort(Integer port) { + this.port = port; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (appProtocol != null) { sb.append("appProtocol:"); sb.append(appProtocol + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (nodePort != null) { sb.append("nodePort:"); sb.append(nodePort + ","); } - if (port != null) { sb.append("port:"); sb.append(port + ","); } - if (protocol != null) { sb.append("protocol:"); sb.append(protocol + ","); } - if (targetPort != null) { sb.append("targetPort:"); sb.append(targetPort); } - sb.append("}"); - return sb.toString(); + public A withProtocol(String protocol) { + this.protocol = protocol; + return (A) this; + } + + public A withTargetPort(IntOrString targetPort) { + this.targetPort = targetPort; + return (A) this; } - } \ No newline at end of file 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 9186e2c714..f22c7208c5 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceSpecBuilder extends V1ServiceSpecFluent implements VisitableBuilder{ + + V1ServiceSpecFluent fluent; + public V1ServiceSpecBuilder() { this(new V1ServiceSpec()); } @@ -10,17 +14,16 @@ public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent) { this(fluent, new V1ServiceSpec()); } - public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent,V1ServiceSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceSpecBuilder(V1ServiceSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceSpecFluent fluent; + public V1ServiceSpecBuilder(V1ServiceSpecFluent fluent,V1ServiceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceSpec build() { V1ServiceSpec buildable = new V1ServiceSpec(); buildable.setAllocateLoadBalancerNodePorts(fluent.getAllocateLoadBalancerNodePorts()); @@ -46,5 +49,4 @@ public V1ServiceSpec build() { return buildable; } - } \ No newline at end of file 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 c444139f23..9033692e55 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 @@ -1,32 +1,30 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; import java.lang.Integer; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceSpecFluent> extends BaseFluent{ - public V1ServiceSpecFluent() { - } - - public V1ServiceSpecFluent(V1ServiceSpec instance) { - this.copyInstance(instance); - } +public class V1ServiceSpecFluent> extends BaseFluent{ + private Boolean allocateLoadBalancerNodePorts; private String clusterIP; private List clusterIPs; @@ -47,328 +45,424 @@ public V1ServiceSpecFluent(V1ServiceSpec instance) { private V1SessionAffinityConfigBuilder sessionAffinityConfig; private String trafficDistribution; private String type; - - protected void copyInstance(V1ServiceSpec instance) { - instance = (instance != null ? instance : new V1ServiceSpec()); - if (instance != null) { - this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); - this.withClusterIP(instance.getClusterIP()); - this.withClusterIPs(instance.getClusterIPs()); - this.withExternalIPs(instance.getExternalIPs()); - this.withExternalName(instance.getExternalName()); - this.withExternalTrafficPolicy(instance.getExternalTrafficPolicy()); - this.withHealthCheckNodePort(instance.getHealthCheckNodePort()); - this.withInternalTrafficPolicy(instance.getInternalTrafficPolicy()); - this.withIpFamilies(instance.getIpFamilies()); - this.withIpFamilyPolicy(instance.getIpFamilyPolicy()); - this.withLoadBalancerClass(instance.getLoadBalancerClass()); - this.withLoadBalancerIP(instance.getLoadBalancerIP()); - this.withLoadBalancerSourceRanges(instance.getLoadBalancerSourceRanges()); - this.withPorts(instance.getPorts()); - this.withPublishNotReadyAddresses(instance.getPublishNotReadyAddresses()); - this.withSelector(instance.getSelector()); - this.withSessionAffinity(instance.getSessionAffinity()); - this.withSessionAffinityConfig(instance.getSessionAffinityConfig()); - this.withTrafficDistribution(instance.getTrafficDistribution()); - this.withType(instance.getType()); - } + + public V1ServiceSpecFluent() { } - public Boolean getAllocateLoadBalancerNodePorts() { - return this.allocateLoadBalancerNodePorts; + public V1ServiceSpecFluent(V1ServiceSpec instance) { + this.copyInstance(instance); } - - public A withAllocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts) { - this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; + + public A addAllToClusterIPs(Collection items) { + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); + } + for (String item : items) { + this.clusterIPs.add(item); + } return (A) this; } - public boolean hasAllocateLoadBalancerNodePorts() { - return this.allocateLoadBalancerNodePorts != null; - } - - public String getClusterIP() { - return this.clusterIP; + public A addAllToExternalIPs(Collection items) { + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); + } + for (String item : items) { + this.externalIPs.add(item); + } + return (A) this; } - public A withClusterIP(String clusterIP) { - this.clusterIP = clusterIP; + public A addAllToIpFamilies(Collection items) { + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } + for (String item : items) { + this.ipFamilies.add(item); + } return (A) this; } - public boolean hasClusterIP() { - return this.clusterIP != null; + public A addAllToLoadBalancerSourceRanges(Collection items) { + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); + } + for (String item : items) { + this.loadBalancerSourceRanges.add(item); + } + return (A) this; } - public A addToClusterIPs(int index,String item) { - if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} - this.clusterIPs.add(index, item); - return (A)this; + public A addAllToPorts(Collection items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A setToClusterIPs(int index,String item) { - if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} - this.clusterIPs.set(index, item); return (A)this; + public PortsNested addNewPort() { + return new PortsNested(-1, null); } - public A addToClusterIPs(java.lang.String... items) { - if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} - for (String item : items) {this.clusterIPs.add(item);} return (A)this; + public PortsNested addNewPortLike(V1ServicePort item) { + return new PortsNested(-1, item); } - public A addAllToClusterIPs(Collection items) { - if (this.clusterIPs == null) {this.clusterIPs = new ArrayList();} - for (String item : items) {this.clusterIPs.add(item);} return (A)this; + public A addToClusterIPs(String... items) { + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); + } + for (String item : items) { + this.clusterIPs.add(item); + } + return (A) this; } - public A removeFromClusterIPs(java.lang.String... items) { - if (this.clusterIPs == null) return (A)this; - for (String item : items) { this.clusterIPs.remove(item);} return (A)this; + public A addToClusterIPs(int index,String item) { + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); + } + this.clusterIPs.add(index, item); + return (A) this; } - public A removeAllFromClusterIPs(Collection items) { - if (this.clusterIPs == null) return (A)this; - for (String item : items) { this.clusterIPs.remove(item);} return (A)this; + public A addToExternalIPs(String... items) { + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); + } + for (String item : items) { + this.externalIPs.add(item); + } + return (A) this; } - public List getClusterIPs() { - return this.clusterIPs; + public A addToExternalIPs(int index,String item) { + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); + } + this.externalIPs.add(index, item); + return (A) this; } - public String getClusterIP(int index) { - return this.clusterIPs.get(index); + public A addToIpFamilies(String... items) { + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } + for (String item : items) { + this.ipFamilies.add(item); + } + return (A) this; } - public String getFirstClusterIP() { - return this.clusterIPs.get(0); + public A addToIpFamilies(int index,String item) { + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } + this.ipFamilies.add(index, item); + return (A) this; } - public String getLastClusterIP() { - return this.clusterIPs.get(clusterIPs.size() - 1); + public A addToLoadBalancerSourceRanges(String... items) { + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); + } + for (String item : items) { + this.loadBalancerSourceRanges.add(item); + } + return (A) this; } - public String getMatchingClusterIP(Predicate predicate) { - for (String item : clusterIPs) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A addToLoadBalancerSourceRanges(int index,String item) { + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); + } + this.loadBalancerSourceRanges.add(index, item); + return (A) this; } - public boolean hasMatchingClusterIP(Predicate predicate) { - for (String item : clusterIPs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A addToPorts(V1ServicePort... items) { + if (this.ports == null) { + this.ports = new ArrayList(); + } + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").add(builder); + this.ports.add(builder); + } + return (A) this; } - public A withClusterIPs(List clusterIPs) { - if (clusterIPs != null) { - this.clusterIPs = new ArrayList(); - for (String item : clusterIPs) { - this.addToClusterIPs(item); - } + 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 { - this.clusterIPs = null; + _visitables.get("ports").add(builder); + ports.add(index, builder); } return (A) this; } - public A withClusterIPs(java.lang.String... clusterIPs) { - if (this.clusterIPs != null) { - this.clusterIPs.clear(); - _visitables.remove("clusterIPs"); + public A addToSelector(Map map) { + if (this.selector == null && map != null) { + this.selector = new LinkedHashMap(); } - if (clusterIPs != null) { - for (String item : clusterIPs) { - this.addToClusterIPs(item); - } + if (map != null) { + this.selector.putAll(map); } return (A) this; } - public boolean hasClusterIPs() { - return this.clusterIPs != null && !this.clusterIPs.isEmpty(); - } - - public A addToExternalIPs(int index,String item) { - if (this.externalIPs == null) {this.externalIPs = new ArrayList();} - this.externalIPs.add(index, item); - return (A)this; - } - - public A setToExternalIPs(int index,String item) { - if (this.externalIPs == null) {this.externalIPs = new ArrayList();} - this.externalIPs.set(index, item); return (A)this; - } - - public A addToExternalIPs(java.lang.String... items) { - if (this.externalIPs == null) {this.externalIPs = new ArrayList();} - for (String item : items) {this.externalIPs.add(item);} return (A)this; - } - - public A addAllToExternalIPs(Collection items) { - if (this.externalIPs == null) {this.externalIPs = new ArrayList();} - for (String item : items) {this.externalIPs.add(item);} return (A)this; + public A addToSelector(String key,String value) { + if (this.selector == null && key != null && value != null) { + this.selector = new LinkedHashMap(); + } + if (key != null && value != null) { + this.selector.put(key, value); + } + return (A) this; } - public A removeFromExternalIPs(java.lang.String... items) { - if (this.externalIPs == null) return (A)this; - for (String item : items) { this.externalIPs.remove(item);} return (A)this; + public V1ServicePort buildFirstPort() { + return this.ports.get(0).build(); } - public A removeAllFromExternalIPs(Collection items) { - if (this.externalIPs == null) return (A)this; - for (String item : items) { this.externalIPs.remove(item);} return (A)this; + public V1ServicePort buildLastPort() { + return this.ports.get(ports.size() - 1).build(); } - public List getExternalIPs() { - return this.externalIPs; + public V1ServicePort buildMatchingPort(Predicate predicate) { + for (V1ServicePortBuilder item : ports) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - public String getExternalIP(int index) { - return this.externalIPs.get(index); + public V1ServicePort buildPort(int index) { + return this.ports.get(index).build(); } - public String getFirstExternalIP() { - return this.externalIPs.get(0); + public List buildPorts() { + return this.ports != null ? build(ports) : null; } - public String getLastExternalIP() { - return this.externalIPs.get(externalIPs.size() - 1); + public V1SessionAffinityConfig buildSessionAffinityConfig() { + return this.sessionAffinityConfig != null ? this.sessionAffinityConfig.build() : null; } - public String getMatchingExternalIP(Predicate predicate) { - for (String item : externalIPs) { - if (predicate.test(item)) { - return item; - } - } - return null; + protected void copyInstance(V1ServiceSpec instance) { + instance = instance != null ? instance : new V1ServiceSpec(); + if (instance != null) { + this.withAllocateLoadBalancerNodePorts(instance.getAllocateLoadBalancerNodePorts()); + this.withClusterIP(instance.getClusterIP()); + this.withClusterIPs(instance.getClusterIPs()); + this.withExternalIPs(instance.getExternalIPs()); + this.withExternalName(instance.getExternalName()); + this.withExternalTrafficPolicy(instance.getExternalTrafficPolicy()); + this.withHealthCheckNodePort(instance.getHealthCheckNodePort()); + this.withInternalTrafficPolicy(instance.getInternalTrafficPolicy()); + this.withIpFamilies(instance.getIpFamilies()); + this.withIpFamilyPolicy(instance.getIpFamilyPolicy()); + this.withLoadBalancerClass(instance.getLoadBalancerClass()); + this.withLoadBalancerIP(instance.getLoadBalancerIP()); + this.withLoadBalancerSourceRanges(instance.getLoadBalancerSourceRanges()); + this.withPorts(instance.getPorts()); + this.withPublishNotReadyAddresses(instance.getPublishNotReadyAddresses()); + this.withSelector(instance.getSelector()); + this.withSessionAffinity(instance.getSessionAffinity()); + this.withSessionAffinityConfig(instance.getSessionAffinityConfig()); + this.withTrafficDistribution(instance.getTrafficDistribution()); + this.withType(instance.getType()); + } } - public boolean hasMatchingExternalIP(Predicate predicate) { - for (String item : externalIPs) { - if (predicate.test(item)) { - return true; - } - } - return false; + public PortsNested editFirstPort() { + if (ports.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "ports")); + } + return this.setNewPortLike(0, this.buildPort(0)); } - public A withExternalIPs(List externalIPs) { - if (externalIPs != null) { - this.externalIPs = new ArrayList(); - for (String item : externalIPs) { - this.addToExternalIPs(item); - } - } else { - this.externalIPs = null; + public PortsNested editLastPort() { + int index = ports.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "ports")); } - return (A) this; + return this.setNewPortLike(index, this.buildPort(index)); } - public A withExternalIPs(java.lang.String... externalIPs) { - if (this.externalIPs != null) { - this.externalIPs.clear(); - _visitables.remove("externalIPs"); - } - if (externalIPs != null) { - for (String item : externalIPs) { - this.addToExternalIPs(item); + public PortsNested editMatchingPort(Predicate predicate) { + int index = -1; + for (int i = 0;i < ports.size();i++) { + if (predicate.test(ports.get(i))) { + index = i; + break; } } - return (A) this; - } - - public boolean hasExternalIPs() { - return this.externalIPs != null && !this.externalIPs.isEmpty(); - } - - public String getExternalName() { - return this.externalName; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A withExternalName(String externalName) { - this.externalName = externalName; - return (A) this; + public SessionAffinityConfigNested editOrNewSessionAffinityConfig() { + return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(new V1SessionAffinityConfigBuilder().build())); } - public boolean hasExternalName() { - return this.externalName != null; + public SessionAffinityConfigNested editOrNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { + return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(item)); } - public String getExternalTrafficPolicy() { - return this.externalTrafficPolicy; + public PortsNested editPort(int index) { + if (ports.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "ports")); + } + return this.setNewPortLike(index, this.buildPort(index)); } - public A withExternalTrafficPolicy(String externalTrafficPolicy) { - this.externalTrafficPolicy = externalTrafficPolicy; - return (A) this; + public SessionAffinityConfigNested editSessionAffinityConfig() { + return this.withNewSessionAffinityConfigLike(Optional.ofNullable(this.buildSessionAffinityConfig()).orElse(null)); } - public boolean hasExternalTrafficPolicy() { - return this.externalTrafficPolicy != null; - } + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceSpecFluent that = (V1ServiceSpecFluent) o; + if (!(Objects.equals(allocateLoadBalancerNodePorts, that.allocateLoadBalancerNodePorts))) { + return false; + } + if (!(Objects.equals(clusterIP, that.clusterIP))) { + return false; + } + if (!(Objects.equals(clusterIPs, that.clusterIPs))) { + return false; + } + if (!(Objects.equals(externalIPs, that.externalIPs))) { + return false; + } + if (!(Objects.equals(externalName, that.externalName))) { + return false; + } + if (!(Objects.equals(externalTrafficPolicy, that.externalTrafficPolicy))) { + return false; + } + if (!(Objects.equals(healthCheckNodePort, that.healthCheckNodePort))) { + return false; + } + if (!(Objects.equals(internalTrafficPolicy, that.internalTrafficPolicy))) { + return false; + } + if (!(Objects.equals(ipFamilies, that.ipFamilies))) { + return false; + } + if (!(Objects.equals(ipFamilyPolicy, that.ipFamilyPolicy))) { + return false; + } + if (!(Objects.equals(loadBalancerClass, that.loadBalancerClass))) { + return false; + } + if (!(Objects.equals(loadBalancerIP, that.loadBalancerIP))) { + return false; + } + if (!(Objects.equals(loadBalancerSourceRanges, that.loadBalancerSourceRanges))) { + return false; + } + if (!(Objects.equals(ports, that.ports))) { + return false; + } + if (!(Objects.equals(publishNotReadyAddresses, that.publishNotReadyAddresses))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(sessionAffinity, that.sessionAffinity))) { + return false; + } + if (!(Objects.equals(sessionAffinityConfig, that.sessionAffinityConfig))) { + return false; + } + if (!(Objects.equals(trafficDistribution, that.trafficDistribution))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; + } - public Integer getHealthCheckNodePort() { - return this.healthCheckNodePort; + public Boolean getAllocateLoadBalancerNodePorts() { + return this.allocateLoadBalancerNodePorts; } - public A withHealthCheckNodePort(Integer healthCheckNodePort) { - this.healthCheckNodePort = healthCheckNodePort; - return (A) this; + public String getClusterIP() { + return this.clusterIP; } - public boolean hasHealthCheckNodePort() { - return this.healthCheckNodePort != null; + public String getClusterIP(int index) { + return this.clusterIPs.get(index); } - public String getInternalTrafficPolicy() { - return this.internalTrafficPolicy; + public List getClusterIPs() { + return this.clusterIPs; } - public A withInternalTrafficPolicy(String internalTrafficPolicy) { - this.internalTrafficPolicy = internalTrafficPolicy; - return (A) this; + public String getExternalIP(int index) { + return this.externalIPs.get(index); } - public boolean hasInternalTrafficPolicy() { - return this.internalTrafficPolicy != null; + public List getExternalIPs() { + return this.externalIPs; } - public A addToIpFamilies(int index,String item) { - if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} - this.ipFamilies.add(index, item); - return (A)this; + public String getExternalName() { + return this.externalName; } - public A setToIpFamilies(int index,String item) { - if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} - this.ipFamilies.set(index, item); return (A)this; + public String getExternalTrafficPolicy() { + return this.externalTrafficPolicy; } - public A addToIpFamilies(java.lang.String... items) { - if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} - for (String item : items) {this.ipFamilies.add(item);} return (A)this; + public String getFirstClusterIP() { + return this.clusterIPs.get(0); } - public A addAllToIpFamilies(Collection items) { - if (this.ipFamilies == null) {this.ipFamilies = new ArrayList();} - for (String item : items) {this.ipFamilies.add(item);} return (A)this; + public String getFirstExternalIP() { + return this.externalIPs.get(0); } - public A removeFromIpFamilies(java.lang.String... items) { - if (this.ipFamilies == null) return (A)this; - for (String item : items) { this.ipFamilies.remove(item);} return (A)this; + public String getFirstIpFamily() { + return this.ipFamilies.get(0); } - public A removeAllFromIpFamilies(Collection items) { - if (this.ipFamilies == null) return (A)this; - for (String item : items) { this.ipFamilies.remove(item);} return (A)this; + public String getFirstLoadBalancerSourceRange() { + return this.loadBalancerSourceRanges.get(0); + } + + public Integer getHealthCheckNodePort() { + return this.healthCheckNodePort; + } + + public String getInternalTrafficPolicy() { + return this.internalTrafficPolicy; } public List getIpFamilies() { @@ -379,14 +473,60 @@ public String getIpFamily(int index) { return this.ipFamilies.get(index); } - public String getFirstIpFamily() { - return this.ipFamilies.get(0); + public String getIpFamilyPolicy() { + return this.ipFamilyPolicy; + } + + public String getLastClusterIP() { + return this.clusterIPs.get(clusterIPs.size() - 1); + } + + public String getLastExternalIP() { + return this.externalIPs.get(externalIPs.size() - 1); } public String getLastIpFamily() { return this.ipFamilies.get(ipFamilies.size() - 1); } + public String getLastLoadBalancerSourceRange() { + return this.loadBalancerSourceRanges.get(loadBalancerSourceRanges.size() - 1); + } + + public String getLoadBalancerClass() { + return this.loadBalancerClass; + } + + public String getLoadBalancerIP() { + return this.loadBalancerIP; + } + + public String getLoadBalancerSourceRange(int index) { + return this.loadBalancerSourceRanges.get(index); + } + + public List getLoadBalancerSourceRanges() { + return this.loadBalancerSourceRanges; + } + + public String getMatchingClusterIP(Predicate predicate) { + for (String item : clusterIPs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingExternalIP(Predicate predicate) { + for (String item : externalIPs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getMatchingIpFamily(Predicate predicate) { for (String item : ipFamilies) { if (predicate.test(item)) { @@ -396,6 +536,105 @@ public String getMatchingIpFamily(Predicate predicate) { return null; } + public String getMatchingLoadBalancerSourceRange(Predicate predicate) { + for (String item : loadBalancerSourceRanges) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Boolean getPublishNotReadyAddresses() { + return this.publishNotReadyAddresses; + } + + public Map getSelector() { + return this.selector; + } + + public String getSessionAffinity() { + return this.sessionAffinity; + } + + public String getTrafficDistribution() { + return this.trafficDistribution; + } + + public String getType() { + return this.type; + } + + public boolean hasAllocateLoadBalancerNodePorts() { + return this.allocateLoadBalancerNodePorts != null; + } + + public boolean hasClusterIP() { + return this.clusterIP != null; + } + + public boolean hasClusterIPs() { + return this.clusterIPs != null && !(this.clusterIPs.isEmpty()); + } + + public boolean hasExternalIPs() { + return this.externalIPs != null && !(this.externalIPs.isEmpty()); + } + + public boolean hasExternalName() { + return this.externalName != null; + } + + public boolean hasExternalTrafficPolicy() { + return this.externalTrafficPolicy != null; + } + + public boolean hasHealthCheckNodePort() { + return this.healthCheckNodePort != null; + } + + public boolean hasInternalTrafficPolicy() { + return this.internalTrafficPolicy != null; + } + + public boolean hasIpFamilies() { + return this.ipFamilies != null && !(this.ipFamilies.isEmpty()); + } + + public boolean hasIpFamilyPolicy() { + return this.ipFamilyPolicy != null; + } + + public boolean hasLoadBalancerClass() { + return this.loadBalancerClass != null; + } + + public boolean hasLoadBalancerIP() { + return this.loadBalancerIP != null; + } + + public boolean hasLoadBalancerSourceRanges() { + return this.loadBalancerSourceRanges != null && !(this.loadBalancerSourceRanges.isEmpty()); + } + + public boolean hasMatchingClusterIP(Predicate predicate) { + for (String item : clusterIPs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingExternalIP(Predicate predicate) { + for (String item : externalIPs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingIpFamily(Predicate predicate) { for (String item : ipFamilies) { if (predicate.test(item)) { @@ -405,137 +644,479 @@ public boolean hasMatchingIpFamily(Predicate predicate) { return false; } - public A withIpFamilies(List ipFamilies) { - if (ipFamilies != null) { - this.ipFamilies = new ArrayList(); - for (String item : ipFamilies) { - this.addToIpFamilies(item); + public boolean hasMatchingLoadBalancerSourceRange(Predicate predicate) { + for (String item : loadBalancerSourceRanges) { + if (predicate.test(item)) { + return true; } - } else { - this.ipFamilies = null; + } + return false; + } + + public boolean hasMatchingPort(Predicate predicate) { + for (V1ServicePortBuilder item : ports) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPorts() { + return this.ports != null && !(this.ports.isEmpty()); + } + + public boolean hasPublishNotReadyAddresses() { + return this.publishNotReadyAddresses != null; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public boolean hasSessionAffinity() { + return this.sessionAffinity != null; + } + + public boolean hasSessionAffinityConfig() { + return this.sessionAffinityConfig != null; + } + + public boolean hasTrafficDistribution() { + return this.trafficDistribution != null; + } + + public boolean hasType() { + return this.type != null; + } + + public int hashCode() { + return Objects.hash(allocateLoadBalancerNodePorts, clusterIP, clusterIPs, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, internalTrafficPolicy, ipFamilies, ipFamilyPolicy, loadBalancerClass, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, trafficDistribution, type); + } + + public A removeAllFromClusterIPs(Collection items) { + if (this.clusterIPs == null) { + return (A) this; + } + for (String item : items) { + this.clusterIPs.remove(item); } return (A) this; } - public A withIpFamilies(java.lang.String... ipFamilies) { - if (this.ipFamilies != null) { - this.ipFamilies.clear(); - _visitables.remove("ipFamilies"); + public A removeAllFromExternalIPs(Collection items) { + if (this.externalIPs == null) { + return (A) this; } - if (ipFamilies != null) { - for (String item : ipFamilies) { - this.addToIpFamilies(item); - } + for (String item : items) { + this.externalIPs.remove(item); } return (A) this; } - public boolean hasIpFamilies() { - return this.ipFamilies != null && !this.ipFamilies.isEmpty(); + public A removeAllFromIpFamilies(Collection items) { + if (this.ipFamilies == null) { + return (A) this; + } + for (String item : items) { + this.ipFamilies.remove(item); + } + return (A) this; } - public String getIpFamilyPolicy() { - return this.ipFamilyPolicy; + public A removeAllFromLoadBalancerSourceRanges(Collection items) { + if (this.loadBalancerSourceRanges == null) { + return (A) this; + } + for (String item : items) { + this.loadBalancerSourceRanges.remove(item); + } + return (A) this; } - public A withIpFamilyPolicy(String ipFamilyPolicy) { - this.ipFamilyPolicy = ipFamilyPolicy; + public A removeAllFromPorts(Collection items) { + if (this.ports == null) { + return (A) this; + } + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } return (A) this; } - public boolean hasIpFamilyPolicy() { - return this.ipFamilyPolicy != null; + public A removeFromClusterIPs(String... items) { + if (this.clusterIPs == null) { + return (A) this; + } + for (String item : items) { + this.clusterIPs.remove(item); + } + return (A) this; } - public String getLoadBalancerClass() { - return this.loadBalancerClass; + public A removeFromExternalIPs(String... items) { + if (this.externalIPs == null) { + return (A) this; + } + for (String item : items) { + this.externalIPs.remove(item); + } + return (A) this; } - public A withLoadBalancerClass(String loadBalancerClass) { - this.loadBalancerClass = loadBalancerClass; + public A removeFromIpFamilies(String... items) { + if (this.ipFamilies == null) { + return (A) this; + } + for (String item : items) { + this.ipFamilies.remove(item); + } return (A) this; } - public boolean hasLoadBalancerClass() { - return this.loadBalancerClass != null; + public A removeFromLoadBalancerSourceRanges(String... items) { + if (this.loadBalancerSourceRanges == null) { + return (A) this; + } + for (String item : items) { + this.loadBalancerSourceRanges.remove(item); + } + return (A) this; } - public String getLoadBalancerIP() { - return this.loadBalancerIP; + public A removeFromPorts(V1ServicePort... items) { + if (this.ports == null) { + return (A) this; + } + for (V1ServicePort item : items) { + V1ServicePortBuilder builder = new V1ServicePortBuilder(item); + _visitables.get("ports").remove(builder); + this.ports.remove(builder); + } + return (A) this; } - public A withLoadBalancerIP(String loadBalancerIP) { - this.loadBalancerIP = loadBalancerIP; + public A removeFromSelector(String key) { + if (this.selector == null) { + return (A) this; + } + if (key != null && this.selector != null) { + this.selector.remove(key); + } return (A) this; } - public boolean hasLoadBalancerIP() { - return this.loadBalancerIP != null; + public A removeFromSelector(Map map) { + if (this.selector == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.selector != null) { + this.selector.remove(key); + } + } + } + return (A) this; } - public A addToLoadBalancerSourceRanges(int index,String item) { - if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} - this.loadBalancerSourceRanges.add(index, item); - return (A)this; + public A removeMatchingFromPorts(Predicate predicate) { + if (ports == null) { + return (A) this; + } + Iterator each = ports.iterator(); + List visitables = _visitables.get("ports"); + while (each.hasNext()) { + V1ServicePortBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PortsNested setNewPortLike(int index,V1ServicePort item) { + return new PortsNested(index, item); + } + + public A setToClusterIPs(int index,String item) { + if (this.clusterIPs == null) { + this.clusterIPs = new ArrayList(); + } + this.clusterIPs.set(index, item); + return (A) this; + } + + public A setToExternalIPs(int index,String item) { + if (this.externalIPs == null) { + this.externalIPs = new ArrayList(); + } + this.externalIPs.set(index, item); + return (A) this; + } + + public A setToIpFamilies(int index,String item) { + if (this.ipFamilies == null) { + this.ipFamilies = new ArrayList(); + } + this.ipFamilies.set(index, item); + return (A) this; } public A setToLoadBalancerSourceRanges(int index,String item) { - if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} - this.loadBalancerSourceRanges.set(index, item); return (A)this; + if (this.loadBalancerSourceRanges == null) { + this.loadBalancerSourceRanges = new ArrayList(); + } + this.loadBalancerSourceRanges.set(index, item); + return (A) this; } - public A addToLoadBalancerSourceRanges(java.lang.String... items) { - if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} - for (String item : items) {this.loadBalancerSourceRanges.add(item);} 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").add(builder); + ports.set(index, builder); + } + return (A) this; } - public A addAllToLoadBalancerSourceRanges(Collection items) { - if (this.loadBalancerSourceRanges == null) {this.loadBalancerSourceRanges = new ArrayList();} - for (String item : items) {this.loadBalancerSourceRanges.add(item);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocateLoadBalancerNodePorts == null)) { + sb.append("allocateLoadBalancerNodePorts:"); + sb.append(allocateLoadBalancerNodePorts); + sb.append(","); + } + if (!(clusterIP == null)) { + sb.append("clusterIP:"); + sb.append(clusterIP); + sb.append(","); + } + if (!(clusterIPs == null) && !(clusterIPs.isEmpty())) { + sb.append("clusterIPs:"); + sb.append(clusterIPs); + sb.append(","); + } + if (!(externalIPs == null) && !(externalIPs.isEmpty())) { + sb.append("externalIPs:"); + sb.append(externalIPs); + sb.append(","); + } + if (!(externalName == null)) { + sb.append("externalName:"); + sb.append(externalName); + sb.append(","); + } + if (!(externalTrafficPolicy == null)) { + sb.append("externalTrafficPolicy:"); + sb.append(externalTrafficPolicy); + sb.append(","); + } + if (!(healthCheckNodePort == null)) { + sb.append("healthCheckNodePort:"); + sb.append(healthCheckNodePort); + sb.append(","); + } + if (!(internalTrafficPolicy == null)) { + sb.append("internalTrafficPolicy:"); + sb.append(internalTrafficPolicy); + sb.append(","); + } + if (!(ipFamilies == null) && !(ipFamilies.isEmpty())) { + sb.append("ipFamilies:"); + sb.append(ipFamilies); + sb.append(","); + } + if (!(ipFamilyPolicy == null)) { + sb.append("ipFamilyPolicy:"); + sb.append(ipFamilyPolicy); + sb.append(","); + } + if (!(loadBalancerClass == null)) { + sb.append("loadBalancerClass:"); + sb.append(loadBalancerClass); + sb.append(","); + } + if (!(loadBalancerIP == null)) { + sb.append("loadBalancerIP:"); + sb.append(loadBalancerIP); + sb.append(","); + } + if (!(loadBalancerSourceRanges == null) && !(loadBalancerSourceRanges.isEmpty())) { + sb.append("loadBalancerSourceRanges:"); + sb.append(loadBalancerSourceRanges); + sb.append(","); + } + if (!(ports == null) && !(ports.isEmpty())) { + sb.append("ports:"); + sb.append(ports); + sb.append(","); + } + if (!(publishNotReadyAddresses == null)) { + sb.append("publishNotReadyAddresses:"); + sb.append(publishNotReadyAddresses); + sb.append(","); + } + if (!(selector == null) && !(selector.isEmpty())) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(sessionAffinity == null)) { + sb.append("sessionAffinity:"); + sb.append(sessionAffinity); + sb.append(","); + } + if (!(sessionAffinityConfig == null)) { + sb.append("sessionAffinityConfig:"); + sb.append(sessionAffinityConfig); + sb.append(","); + } + if (!(trafficDistribution == null)) { + sb.append("trafficDistribution:"); + sb.append(trafficDistribution); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A removeFromLoadBalancerSourceRanges(java.lang.String... items) { - if (this.loadBalancerSourceRanges == null) return (A)this; - for (String item : items) { this.loadBalancerSourceRanges.remove(item);} return (A)this; + public A withAllocateLoadBalancerNodePorts() { + return withAllocateLoadBalancerNodePorts(true); } - public A removeAllFromLoadBalancerSourceRanges(Collection items) { - if (this.loadBalancerSourceRanges == null) return (A)this; - for (String item : items) { this.loadBalancerSourceRanges.remove(item);} return (A)this; + public A withAllocateLoadBalancerNodePorts(Boolean allocateLoadBalancerNodePorts) { + this.allocateLoadBalancerNodePorts = allocateLoadBalancerNodePorts; + return (A) this; } - public List getLoadBalancerSourceRanges() { - return this.loadBalancerSourceRanges; + public A withClusterIP(String clusterIP) { + this.clusterIP = clusterIP; + return (A) this; + } + + public A withClusterIPs(List clusterIPs) { + if (clusterIPs != null) { + this.clusterIPs = new ArrayList(); + for (String item : clusterIPs) { + this.addToClusterIPs(item); + } + } else { + this.clusterIPs = null; + } + return (A) this; + } + + public A withClusterIPs(String... clusterIPs) { + if (this.clusterIPs != null) { + this.clusterIPs.clear(); + _visitables.remove("clusterIPs"); + } + if (clusterIPs != null) { + for (String item : clusterIPs) { + this.addToClusterIPs(item); + } + } + return (A) this; + } + + public A withExternalIPs(List externalIPs) { + if (externalIPs != null) { + this.externalIPs = new ArrayList(); + for (String item : externalIPs) { + this.addToExternalIPs(item); + } + } else { + this.externalIPs = null; + } + return (A) this; + } + + public A withExternalIPs(String... externalIPs) { + if (this.externalIPs != null) { + this.externalIPs.clear(); + _visitables.remove("externalIPs"); + } + if (externalIPs != null) { + for (String item : externalIPs) { + this.addToExternalIPs(item); + } + } + return (A) this; + } + + public A withExternalName(String externalName) { + this.externalName = externalName; + return (A) this; + } + + public A withExternalTrafficPolicy(String externalTrafficPolicy) { + this.externalTrafficPolicy = externalTrafficPolicy; + return (A) this; + } + + public A withHealthCheckNodePort(Integer healthCheckNodePort) { + this.healthCheckNodePort = healthCheckNodePort; + return (A) this; + } + + public A withInternalTrafficPolicy(String internalTrafficPolicy) { + this.internalTrafficPolicy = internalTrafficPolicy; + return (A) this; } - public String getLoadBalancerSourceRange(int index) { - return this.loadBalancerSourceRanges.get(index); + public A withIpFamilies(List ipFamilies) { + if (ipFamilies != null) { + this.ipFamilies = new ArrayList(); + for (String item : ipFamilies) { + this.addToIpFamilies(item); + } + } else { + this.ipFamilies = null; + } + return (A) this; } - public String getFirstLoadBalancerSourceRange() { - return this.loadBalancerSourceRanges.get(0); + public A withIpFamilies(String... ipFamilies) { + if (this.ipFamilies != null) { + this.ipFamilies.clear(); + _visitables.remove("ipFamilies"); + } + if (ipFamilies != null) { + for (String item : ipFamilies) { + this.addToIpFamilies(item); + } + } + return (A) this; } - public String getLastLoadBalancerSourceRange() { - return this.loadBalancerSourceRanges.get(loadBalancerSourceRanges.size() - 1); + public A withIpFamilyPolicy(String ipFamilyPolicy) { + this.ipFamilyPolicy = ipFamilyPolicy; + return (A) this; } - public String getMatchingLoadBalancerSourceRange(Predicate predicate) { - for (String item : loadBalancerSourceRanges) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A withLoadBalancerClass(String loadBalancerClass) { + this.loadBalancerClass = loadBalancerClass; + return (A) this; } - public boolean hasMatchingLoadBalancerSourceRange(Predicate predicate) { - for (String item : loadBalancerSourceRanges) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withLoadBalancerIP(String loadBalancerIP) { + this.loadBalancerIP = loadBalancerIP; + return (A) this; } public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges) { @@ -550,7 +1131,7 @@ public A withLoadBalancerSourceRanges(List loadBalancerSourceRanges) { return (A) this; } - public A withLoadBalancerSourceRanges(java.lang.String... loadBalancerSourceRanges) { + public A withLoadBalancerSourceRanges(String... loadBalancerSourceRanges) { if (this.loadBalancerSourceRanges != null) { this.loadBalancerSourceRanges.clear(); _visitables.remove("loadBalancerSourceRanges"); @@ -563,90 +1144,12 @@ public A withLoadBalancerSourceRanges(java.lang.String... loadBalancerSourceRang return (A) this; } - public boolean hasLoadBalancerSourceRanges() { - return this.loadBalancerSourceRanges != null && !this.loadBalancerSourceRanges.isEmpty(); - } - - 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);} - 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);} - return (A)this; - } - - public A addToPorts(io.kubernetes.client.openapi.models.V1ServicePort... items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; - } - - public A addAllToPorts(Collection items) { - if (this.ports == null) {this.ports = new ArrayList();} - for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").add(builder);this.ports.add(builder);} return (A)this; - } - - public A removeFromPorts(io.kubernetes.client.openapi.models.V1ServicePort... items) { - if (this.ports == null) return (A)this; - for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; - } - - public A removeAllFromPorts(Collection items) { - if (this.ports == null) return (A)this; - for (V1ServicePort item : items) {V1ServicePortBuilder builder = new V1ServicePortBuilder(item);_visitables.get("ports").remove(builder); this.ports.remove(builder);} return (A)this; - } - - public A removeMatchingFromPorts(Predicate predicate) { - if (ports == null) return (A) this; - final Iterator each = ports.iterator(); - final List visitables = _visitables.get("ports"); - while (each.hasNext()) { - V1ServicePortBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildPorts() { - return this.ports != null ? build(ports) : null; - } - - public V1ServicePort buildPort(int index) { - return this.ports.get(index).build(); - } - - public V1ServicePort buildFirstPort() { - return this.ports.get(0).build(); - } - - public V1ServicePort buildLastPort() { - return this.ports.get(ports.size() - 1).build(); - } - - public V1ServicePort buildMatchingPort(Predicate predicate) { - for (V1ServicePortBuilder item : ports) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public SessionAffinityConfigNested withNewSessionAffinityConfig() { + return new SessionAffinityConfigNested(null); } - public boolean hasMatchingPort(Predicate predicate) { - for (V1ServicePortBuilder item : ports) { - if (predicate.test(item)) { - return true; - } - } - return false; + public SessionAffinityConfigNested withNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { + return new SessionAffinityConfigNested(item); } public A withPorts(List ports) { @@ -664,7 +1167,7 @@ public A withPorts(List ports) { return (A) this; } - public A withPorts(io.kubernetes.client.openapi.models.V1ServicePort... ports) { + public A withPorts(V1ServicePort... ports) { if (this.ports != null) { this.ports.clear(); _visitables.remove("ports"); @@ -677,49 +1180,8 @@ public A withPorts(io.kubernetes.client.openapi.models.V1ServicePort... ports) { return (A) this; } - public boolean hasPorts() { - return this.ports != null && !this.ports.isEmpty(); - } - - public PortsNested addNewPort() { - return new PortsNested(-1, null); - } - - public PortsNested addNewPortLike(V1ServicePort item) { - return new PortsNested(-1, item); - } - - public PortsNested setNewPortLike(int index,V1ServicePort item) { - return new PortsNested(index, item); - } - - public PortsNested editPort(int index) { - if (ports.size() <= index) throw new RuntimeException("Can't edit ports. Index exceeds size."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editFirstPort() { - if (ports.size() == 0) throw new RuntimeException("Can't edit first ports. The list is empty."); - return setNewPortLike(0, buildPort(0)); - } - - public PortsNested editLastPort() { - int index = ports.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last ports. The list is empty."); - return setNewPortLike(index, buildPort(index)); - } - - public PortsNested editMatchingPort(Predicate predicate) { - int index = -1; - for (int i=0;i map) { - if(this.selector == null && map != null) { this.selector = new LinkedHashMap(); } - if(map != null) { this.selector.putAll(map);} return (A)this; - } - - public A removeFromSelector(String key) { - if(this.selector == null) { return (A) this; } - if(key != null && this.selector != null) {this.selector.remove(key);} return (A)this; - } - - public A removeFromSelector(Map map) { - if(this.selector == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.selector != null){this.selector.remove(key);}}} return (A)this; - } - - public Map getSelector() { - return this.selector; - } - public A withSelector(Map selector) { if (selector == null) { this.selector = null; @@ -764,27 +1198,11 @@ public A withSelector(Map selector) { return (A) this; } - public boolean hasSelector() { - return this.selector != null; - } - - public String getSessionAffinity() { - return this.sessionAffinity; - } - public A withSessionAffinity(String sessionAffinity) { this.sessionAffinity = sessionAffinity; return (A) this; } - public boolean hasSessionAffinity() { - return this.sessionAffinity != null; - } - - public V1SessionAffinityConfig buildSessionAffinityConfig() { - return this.sessionAffinityConfig != null ? this.sessionAffinityConfig.build() : null; - } - public A withSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) { this._visitables.remove("sessionAffinityConfig"); if (sessionAffinityConfig != null) { @@ -797,146 +1215,42 @@ public A withSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig return (A) this; } - public boolean hasSessionAffinityConfig() { - return this.sessionAffinityConfig != null; - } - - public SessionAffinityConfigNested withNewSessionAffinityConfig() { - return new SessionAffinityConfigNested(null); - } - - public SessionAffinityConfigNested withNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { - return new SessionAffinityConfigNested(item); - } - - public SessionAffinityConfigNested editSessionAffinityConfig() { - return withNewSessionAffinityConfigLike(java.util.Optional.ofNullable(buildSessionAffinityConfig()).orElse(null)); - } - - public SessionAffinityConfigNested editOrNewSessionAffinityConfig() { - return withNewSessionAffinityConfigLike(java.util.Optional.ofNullable(buildSessionAffinityConfig()).orElse(new V1SessionAffinityConfigBuilder().build())); - } - - public SessionAffinityConfigNested editOrNewSessionAffinityConfigLike(V1SessionAffinityConfig item) { - 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; - } - public A withType(String type) { this.type = type; return (A) this; } + public class PortsNested extends V1ServicePortFluent> implements Nested{ - 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; - V1ServiceSpecFluent that = (V1ServiceSpecFluent) o; - if (!java.util.Objects.equals(allocateLoadBalancerNodePorts, that.allocateLoadBalancerNodePorts)) return false; - if (!java.util.Objects.equals(clusterIP, that.clusterIP)) return false; - if (!java.util.Objects.equals(clusterIPs, that.clusterIPs)) return false; - if (!java.util.Objects.equals(externalIPs, that.externalIPs)) return false; - if (!java.util.Objects.equals(externalName, that.externalName)) return false; - if (!java.util.Objects.equals(externalTrafficPolicy, that.externalTrafficPolicy)) return false; - if (!java.util.Objects.equals(healthCheckNodePort, that.healthCheckNodePort)) return false; - if (!java.util.Objects.equals(internalTrafficPolicy, that.internalTrafficPolicy)) return false; - if (!java.util.Objects.equals(ipFamilies, that.ipFamilies)) return false; - if (!java.util.Objects.equals(ipFamilyPolicy, that.ipFamilyPolicy)) return false; - if (!java.util.Objects.equals(loadBalancerClass, that.loadBalancerClass)) return false; - if (!java.util.Objects.equals(loadBalancerIP, that.loadBalancerIP)) return false; - if (!java.util.Objects.equals(loadBalancerSourceRanges, that.loadBalancerSourceRanges)) return false; - if (!java.util.Objects.equals(ports, that.ports)) return false; - if (!java.util.Objects.equals(publishNotReadyAddresses, that.publishNotReadyAddresses)) return false; - 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, trafficDistribution, type, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (allocateLoadBalancerNodePorts != null) { sb.append("allocateLoadBalancerNodePorts:"); sb.append(allocateLoadBalancerNodePorts + ","); } - if (clusterIP != null) { sb.append("clusterIP:"); sb.append(clusterIP + ","); } - if (clusterIPs != null && !clusterIPs.isEmpty()) { sb.append("clusterIPs:"); sb.append(clusterIPs + ","); } - if (externalIPs != null && !externalIPs.isEmpty()) { sb.append("externalIPs:"); sb.append(externalIPs + ","); } - if (externalName != null) { sb.append("externalName:"); sb.append(externalName + ","); } - if (externalTrafficPolicy != null) { sb.append("externalTrafficPolicy:"); sb.append(externalTrafficPolicy + ","); } - if (healthCheckNodePort != null) { sb.append("healthCheckNodePort:"); sb.append(healthCheckNodePort + ","); } - if (internalTrafficPolicy != null) { sb.append("internalTrafficPolicy:"); sb.append(internalTrafficPolicy + ","); } - if (ipFamilies != null && !ipFamilies.isEmpty()) { sb.append("ipFamilies:"); sb.append(ipFamilies + ","); } - if (ipFamilyPolicy != null) { sb.append("ipFamilyPolicy:"); sb.append(ipFamilyPolicy + ","); } - if (loadBalancerClass != null) { sb.append("loadBalancerClass:"); sb.append(loadBalancerClass + ","); } - if (loadBalancerIP != null) { sb.append("loadBalancerIP:"); sb.append(loadBalancerIP + ","); } - if (loadBalancerSourceRanges != null && !loadBalancerSourceRanges.isEmpty()) { sb.append("loadBalancerSourceRanges:"); sb.append(loadBalancerSourceRanges + ","); } - if (ports != null && !ports.isEmpty()) { sb.append("ports:"); sb.append(ports + ","); } - if (publishNotReadyAddresses != null) { sb.append("publishNotReadyAddresses:"); sb.append(publishNotReadyAddresses + ","); } - 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(); - } - - public A withAllocateLoadBalancerNodePorts() { - return withAllocateLoadBalancerNodePorts(true); - } + V1ServicePortBuilder builder; + int index; - public A withPublishNotReadyAddresses() { - return withPublishNotReadyAddresses(true); - } - public class PortsNested extends V1ServicePortFluent> implements Nested{ PortsNested(int index,V1ServicePort item) { this.index = index; this.builder = new V1ServicePortBuilder(this, item); } - V1ServicePortBuilder builder; - int index; - + public N and() { - return (N) V1ServiceSpecFluent.this.setToPorts(index,builder.build()); + return (N) V1ServiceSpecFluent.this.setToPorts(index, builder.build()); } public N endPort() { return and(); } - } public class SessionAffinityConfigNested extends V1SessionAffinityConfigFluent> implements Nested{ + + V1SessionAffinityConfigBuilder builder; + SessionAffinityConfigNested(V1SessionAffinityConfig item) { this.builder = new V1SessionAffinityConfigBuilder(this, item); } - V1SessionAffinityConfigBuilder builder; - + public N and() { return (N) V1ServiceSpecFluent.this.withSessionAffinityConfig(builder.build()); } @@ -945,7 +1259,5 @@ public N endSessionAffinityConfig() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java index 3196ea48f4..20750c2d47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ServiceStatusBuilder extends V1ServiceStatusFluent implements VisitableBuilder{ + + V1ServiceStatusFluent fluent; + public V1ServiceStatusBuilder() { this(new V1ServiceStatus()); } @@ -10,17 +14,16 @@ public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent) { this(fluent, new V1ServiceStatus()); } - public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent,V1ServiceStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ServiceStatusBuilder(V1ServiceStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1ServiceStatusFluent fluent; + public V1ServiceStatusBuilder(V1ServiceStatusFluent fluent,V1ServiceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ServiceStatus build() { V1ServiceStatus buildable = new V1ServiceStatus(); buildable.setConditions(fluent.buildConditions()); @@ -28,5 +31,4 @@ public V1ServiceStatus build() { return buildable; } - } \ No newline at end of file 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..1c72822eda 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 @@ -1,95 +1,91 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ServiceStatusFluent> extends BaseFluent{ +public class V1ServiceStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private V1LoadBalancerStatusBuilder loadBalancer; + public V1ServiceStatusFluent() { } public V1ServiceStatusFluent(V1ServiceStatus instance) { this.copyInstance(instance); } - private ArrayList conditions; - private V1LoadBalancerStatusBuilder loadBalancer; - - protected void copyInstance(V1ServiceStatus instance) { - instance = (instance != null ? instance : new V1ServiceStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withLoadBalancer(instance.getLoadBalancer()); - } - } - - 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; + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - 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 ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } - 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(); - } + public A addToConditions(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; + return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + 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 V1Condition buildCondition(int index) { return this.conditions.get(index).build(); } + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -98,6 +94,10 @@ public V1Condition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } + public V1LoadBalancerStatus buildLoadBalancer() { + return this.loadBalancer != null ? this.loadBalancer.build() : null; + } + public V1Condition buildMatchingCondition(Predicate predicate) { for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -107,6 +107,90 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } + protected void copyInstance(V1ServiceStatus instance) { + instance = instance != null ? instance : new V1ServiceStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withLoadBalancer(instance.getLoadBalancer()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public LoadBalancerNested editLoadBalancer() { + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(null)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public LoadBalancerNested editOrNewLoadBalancer() { + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(new V1LoadBalancerStatusBuilder().build())); + } + + public LoadBalancerNested editOrNewLoadBalancerLike(V1LoadBalancerStatus item) { + return this.withNewLoadBalancerLike(Optional.ofNullable(this.buildLoadBalancer()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ServiceStatusFluent that = (V1ServiceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(loadBalancer, that.loadBalancer))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasLoadBalancer() { + return this.loadBalancer != null; + } + public boolean hasMatchingCondition(Predicate predicate) { for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -116,6 +200,85 @@ public boolean hasMatchingCondition(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(conditions, loadBalancer); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(loadBalancer == null)) { + sb.append("loadBalancer:"); + sb.append(loadBalancer); + } + sb.append("}"); + return sb.toString(); + } + public A withConditions(List conditions) { if (this.conditions != null) { this._visitables.get("conditions").clear(); @@ -131,7 +294,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + public A withConditions(V1Condition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -144,51 +307,6 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi 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 withNewLoadBalancer() { return new LoadBalancerNested(null); } @@ -212,65 +326,33 @@ public LoadBalancerNested withNewLoadBalancer() { public LoadBalancerNested withNewLoadBalancerLike(V1LoadBalancerStatus item) { return new LoadBalancerNested(item); } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ - public LoadBalancerNested editLoadBalancer() { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(null)); - } - - public LoadBalancerNested editOrNewLoadBalancer() { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).orElse(new V1LoadBalancerStatusBuilder().build())); - } - - public LoadBalancerNested editOrNewLoadBalancerLike(V1LoadBalancerStatus item) { - return withNewLoadBalancerLike(java.util.Optional.ofNullable(buildLoadBalancer()).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; - V1ServiceStatusFluent that = (V1ServiceStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(loadBalancer, that.loadBalancer)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(conditions, loadBalancer, super.hashCode()); - } + V1ConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (loadBalancer != null) { sb.append("loadBalancer:"); sb.append(loadBalancer); } - 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) V1ServiceStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1ServiceStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { return and(); } - } public class LoadBalancerNested extends V1LoadBalancerStatusFluent> implements Nested{ + + V1LoadBalancerStatusBuilder builder; + LoadBalancerNested(V1LoadBalancerStatus item) { this.builder = new V1LoadBalancerStatusBuilder(this, item); } - V1LoadBalancerStatusBuilder builder; - + public N and() { return (N) V1ServiceStatusFluent.this.withLoadBalancer(builder.build()); } @@ -279,7 +361,5 @@ public N endLoadBalancer() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java index e0b3b5e5b4..ff0f53200c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SessionAffinityConfigBuilder extends V1SessionAffinityConfigFluent implements VisitableBuilder{ + + V1SessionAffinityConfigFluent fluent; + public V1SessionAffinityConfigBuilder() { this(new V1SessionAffinityConfig()); } @@ -10,22 +14,20 @@ public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent) { this(fluent, new V1SessionAffinityConfig()); } - public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent,V1SessionAffinityConfig instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SessionAffinityConfigBuilder(V1SessionAffinityConfig instance) { this.fluent = this; this.copyInstance(instance); } - V1SessionAffinityConfigFluent fluent; + public V1SessionAffinityConfigBuilder(V1SessionAffinityConfigFluent fluent,V1SessionAffinityConfig instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SessionAffinityConfig build() { V1SessionAffinityConfig buildable = new V1SessionAffinityConfig(); buildable.setClientIP(fluent.buildClientIP()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java index a5943dfe2f..50bcb81b09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java @@ -1,97 +1,115 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SessionAffinityConfigFluent> extends BaseFluent{ +public class V1SessionAffinityConfigFluent> extends BaseFluent{ + + private V1ClientIPConfigBuilder clientIP; + public V1SessionAffinityConfigFluent() { } public V1SessionAffinityConfigFluent(V1SessionAffinityConfig instance) { this.copyInstance(instance); } - private V1ClientIPConfigBuilder clientIP; - - protected void copyInstance(V1SessionAffinityConfig instance) { - instance = (instance != null ? instance : new V1SessionAffinityConfig()); - if (instance != null) { - this.withClientIP(instance.getClientIP()); - } - } - + public V1ClientIPConfig buildClientIP() { return this.clientIP != null ? this.clientIP.build() : null; } - public A withClientIP(V1ClientIPConfig clientIP) { - this._visitables.remove("clientIP"); - if (clientIP != null) { - this.clientIP = new V1ClientIPConfigBuilder(clientIP); - this._visitables.get("clientIP").add(this.clientIP); - } else { - this.clientIP = null; - this._visitables.get("clientIP").remove(this.clientIP); + protected void copyInstance(V1SessionAffinityConfig instance) { + instance = instance != null ? instance : new V1SessionAffinityConfig(); + if (instance != null) { + this.withClientIP(instance.getClientIP()); } - return (A) this; - } - - public boolean hasClientIP() { - return this.clientIP != null; - } - - public ClientIPNested withNewClientIP() { - return new ClientIPNested(null); - } - - public ClientIPNested withNewClientIPLike(V1ClientIPConfig item) { - return new ClientIPNested(item); } public ClientIPNested editClientIP() { - return withNewClientIPLike(java.util.Optional.ofNullable(buildClientIP()).orElse(null)); + return this.withNewClientIPLike(Optional.ofNullable(this.buildClientIP()).orElse(null)); } public ClientIPNested editOrNewClientIP() { - return withNewClientIPLike(java.util.Optional.ofNullable(buildClientIP()).orElse(new V1ClientIPConfigBuilder().build())); + return this.withNewClientIPLike(Optional.ofNullable(this.buildClientIP()).orElse(new V1ClientIPConfigBuilder().build())); } public ClientIPNested editOrNewClientIPLike(V1ClientIPConfig item) { - return withNewClientIPLike(java.util.Optional.ofNullable(buildClientIP()).orElse(item)); + return this.withNewClientIPLike(Optional.ofNullable(this.buildClientIP()).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; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1SessionAffinityConfigFluent that = (V1SessionAffinityConfigFluent) o; - if (!java.util.Objects.equals(clientIP, that.clientIP)) return false; + if (!(Objects.equals(clientIP, that.clientIP))) { + return false; + } return true; } + public boolean hasClientIP() { + return this.clientIP != null; + } + public int hashCode() { - return java.util.Objects.hash(clientIP, super.hashCode()); + return Objects.hash(clientIP); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (clientIP != null) { sb.append("clientIP:"); sb.append(clientIP); } + if (!(clientIP == null)) { + sb.append("clientIP:"); + sb.append(clientIP); + } sb.append("}"); return sb.toString(); } + + public A withClientIP(V1ClientIPConfig clientIP) { + this._visitables.remove("clientIP"); + if (clientIP != null) { + this.clientIP = new V1ClientIPConfigBuilder(clientIP); + this._visitables.get("clientIP").add(this.clientIP); + } else { + this.clientIP = null; + this._visitables.get("clientIP").remove(this.clientIP); + } + return (A) this; + } + + public ClientIPNested withNewClientIP() { + return new ClientIPNested(null); + } + + public ClientIPNested withNewClientIPLike(V1ClientIPConfig item) { + return new ClientIPNested(item); + } public class ClientIPNested extends V1ClientIPConfigFluent> implements Nested{ + + V1ClientIPConfigBuilder builder; + ClientIPNested(V1ClientIPConfig item) { this.builder = new V1ClientIPConfigBuilder(this, item); } - V1ClientIPConfigBuilder builder; - + public N and() { return (N) V1SessionAffinityConfigFluent.this.withClientIP(builder.build()); } @@ -100,7 +118,5 @@ public N endClientIP() { return and(); } - } - } \ No newline at end of file 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 index cfd1d66dad..ea9490a572 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SleepActionBuilder extends V1SleepActionFluent implements VisitableBuilder{ + + V1SleepActionFluent fluent; + public V1SleepActionBuilder() { this(new V1SleepAction()); } @@ -10,22 +14,20 @@ 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 V1SleepActionBuilder(V1SleepActionFluent fluent,V1SleepAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index a943df99d3..3c5aa23df2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java @@ -1,64 +1,78 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SleepActionFluent> extends BaseFluent{ +public class V1SleepActionFluent> extends BaseFluent{ + + private Long seconds; + public V1SleepActionFluent() { } public V1SleepActionFluent(V1SleepAction instance) { this.copyInstance(instance); } - private Long seconds; - + protected void copyInstance(V1SleepAction instance) { - instance = (instance != null ? instance : new V1SleepAction()); + instance = instance != null ? instance : new V1SleepAction(); if (instance != null) { - this.withSeconds(instance.getSeconds()); - } + this.withSeconds(instance.getSeconds()); + } } - public Long getSeconds() { - return this.seconds; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SleepActionFluent that = (V1SleepActionFluent) o; + if (!(Objects.equals(seconds, that.seconds))) { + return false; + } + return true; } - public A withSeconds(Long seconds) { - this.seconds = seconds; - return (A) this; + public Long getSeconds() { + return this.seconds; } 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()); + return Objects.hash(seconds); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (seconds != null) { sb.append("seconds:"); sb.append(seconds); } + if (!(seconds == null)) { + sb.append("seconds:"); + sb.append(seconds); + } sb.append("}"); return sb.toString(); } - + public A withSeconds(Long seconds) { + this.seconds = seconds; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java index 11d8a248cc..cbd9241296 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetBuilder extends V1StatefulSetFluent implements VisitableBuilder{ + + V1StatefulSetFluent fluent; + public V1StatefulSetBuilder() { this(new V1StatefulSet()); } @@ -10,17 +14,16 @@ public V1StatefulSetBuilder(V1StatefulSetFluent fluent) { this(fluent, new V1StatefulSet()); } - public V1StatefulSetBuilder(V1StatefulSetFluent fluent,V1StatefulSet instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetBuilder(V1StatefulSet instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetFluent fluent; + public V1StatefulSetBuilder(V1StatefulSetFluent fluent,V1StatefulSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSet build() { V1StatefulSet buildable = new V1StatefulSet(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1StatefulSet build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java index f44b6cfc3b..675dc0444b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetConditionBuilder extends V1StatefulSetConditionFluent implements VisitableBuilder{ + + V1StatefulSetConditionFluent fluent; + public V1StatefulSetConditionBuilder() { this(new V1StatefulSetCondition()); } @@ -10,17 +14,16 @@ public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent) { this(fluent, new V1StatefulSetCondition()); } - public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent,V1StatefulSetCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetConditionBuilder(V1StatefulSetCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetConditionFluent fluent; + public V1StatefulSetConditionBuilder(V1StatefulSetConditionFluent fluent,V1StatefulSetCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetCondition build() { V1StatefulSetCondition buildable = new V1StatefulSetCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -31,5 +34,4 @@ public V1StatefulSetCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java index 89b9419182..4a63b752ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java @@ -1,132 +1,170 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetConditionFluent> extends BaseFluent{ - public V1StatefulSetConditionFluent() { - } - - public V1StatefulSetConditionFluent(V1StatefulSetCondition instance) { - this.copyInstance(instance); - } +public class V1StatefulSetConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V1StatefulSetConditionFluent() { + } + public V1StatefulSetConditionFluent(V1StatefulSetCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1StatefulSetCondition instance) { - instance = (instance != null ? instance : new V1StatefulSetCondition()); + instance = instance != null ? instance : new V1StatefulSetCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatefulSetConditionFluent that = (V1StatefulSetConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getStatus() { + return this.status; } - public String getReason() { - return this.reason; + public String getType() { + return this.type; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1StatefulSetConditionFluent that = (V1StatefulSetConditionFluent) 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 A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withStatus(String status) { + this.status = status; + return (A) this; } - 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(); + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java index 394864639e..25d5cf48fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetFluent> extends BaseFluent{ +public class V1StatefulSetFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1StatefulSetSpecBuilder spec; + private V1StatefulSetStatusBuilder status; + public V1StatefulSetFluent() { } public V1StatefulSetFluent(V1StatefulSet instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1StatefulSetSpecBuilder spec; - private V1StatefulSetStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1StatefulSetSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1StatefulSetStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1StatefulSet instance) { - instance = (instance != null ? instance : new V1StatefulSet()); + instance = instance != null ? instance : new V1StatefulSet(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1StatefulSetSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1StatefulSetSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1StatefulSetStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1StatefulSetStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatefulSetFluent that = (V1StatefulSetFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1StatefulSetSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1StatefulSetSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1StatefulSetStatus item) { + return new StatusNested(item); } public A withSpec(V1StatefulSetSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1StatefulSetSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1StatefulSetSpec 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 V1StatefulSetSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1StatefulSetSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1StatefulSetStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1StatefulSetStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1StatefulSetStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1StatefulSetStatus 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 V1StatefulSetStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1StatefulSetStatus 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; - V1StatefulSetFluent that = (V1StatefulSetFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1StatefulSetFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1StatefulSetSpecFluent> implements Nested{ + + V1StatefulSetSpecBuilder builder; + SpecNested(V1StatefulSetSpec item) { this.builder = new V1StatefulSetSpecBuilder(this, item); } - V1StatefulSetSpecBuilder builder; - + public N and() { return (N) V1StatefulSetFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1StatefulSetStatusFluent> implements Nested{ + + V1StatefulSetStatusBuilder builder; + StatusNested(V1StatefulSetStatus item) { this.builder = new V1StatefulSetStatusBuilder(this, item); } - V1StatefulSetStatusBuilder builder; - + public N and() { return (N) V1StatefulSetFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java index 04dbfd274a..c783af7599 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetListBuilder extends V1StatefulSetListFluent implements VisitableBuilder{ + + V1StatefulSetListFluent fluent; + public V1StatefulSetListBuilder() { this(new V1StatefulSetList()); } @@ -10,17 +14,16 @@ public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent) { this(fluent, new V1StatefulSetList()); } - public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent,V1StatefulSetList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetListBuilder(V1StatefulSetList instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetListFluent fluent; + public V1StatefulSetListBuilder(V1StatefulSetListFluent fluent,V1StatefulSetList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetList build() { V1StatefulSetList buildable = new V1StatefulSetList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1StatefulSetList build() { return buildable; } - } \ 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..97f4bfeac8 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetListFluent> extends BaseFluent{ +public class V1StatefulSetListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1StatefulSetListFluent() { } public V1StatefulSetListFluent(V1StatefulSetList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1StatefulSetList instance) { - instance = (instance != null ? instance : new V1StatefulSetList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1StatefulSet item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1StatefulSet... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1StatefulSet item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1StatefulSet buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1StatefulSet buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { - if (this.items == null) return (A)this; - for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1StatefulSet buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1StatefulSet item : items) {V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1StatefulSet buildMatchingItem(Predicate predicate) { + for (V1StatefulSetBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1StatefulSetBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1StatefulSetList instance) { + instance = instance != null ? instance : new V1StatefulSetList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1StatefulSet buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1StatefulSet buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1StatefulSet buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatefulSetListFluent that = (V1StatefulSetListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1StatefulSet buildMatchingItem(Predicate predicate) { - for (V1StatefulSetBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1StatefulSet... items) { + if (this.items == null) { + return (A) this; + } + for (V1StatefulSet item : items) { + V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1StatefulSetBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1StatefulSet item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { + public A withItems(V1StatefulSet... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1StatefulSet... items) { return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1StatefulSet item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1StatefulSet 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1StatefulSetFluent> implements Nested{ - 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; - V1StatefulSetListFluent that = (V1StatefulSetListFluent) 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()); - } + V1StatefulSetBuilder builder; + int index; - 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 V1StatefulSetFluent> implements Nested{ ItemsNested(int index,V1StatefulSet item) { this.index = index; this.builder = new V1StatefulSetBuilder(this, item); } - V1StatefulSetBuilder builder; - int index; - + public N and() { - return (N) V1StatefulSetListFluent.this.setToItems(index,builder.build()); + return (N) V1StatefulSetListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1StatefulSetListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java index 2d8e02b984..232103ca49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetOrdinalsBuilder extends V1StatefulSetOrdinalsFluent implements VisitableBuilder{ + + V1StatefulSetOrdinalsFluent fluent; + public V1StatefulSetOrdinalsBuilder() { this(new V1StatefulSetOrdinals()); } @@ -10,22 +14,20 @@ public V1StatefulSetOrdinalsBuilder(V1StatefulSetOrdinalsFluent fluent) { this(fluent, new V1StatefulSetOrdinals()); } - public V1StatefulSetOrdinalsBuilder(V1StatefulSetOrdinalsFluent fluent,V1StatefulSetOrdinals instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetOrdinalsBuilder(V1StatefulSetOrdinals instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetOrdinalsFluent fluent; + public V1StatefulSetOrdinalsBuilder(V1StatefulSetOrdinalsFluent fluent,V1StatefulSetOrdinals instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetOrdinals build() { V1StatefulSetOrdinals buildable = new V1StatefulSetOrdinals(); buildable.setStart(fluent.getStart()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java index 582c535f39..2bd1ab87a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java @@ -1,64 +1,78 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetOrdinalsFluent> extends BaseFluent{ +public class V1StatefulSetOrdinalsFluent> extends BaseFluent{ + + private Integer start; + public V1StatefulSetOrdinalsFluent() { } public V1StatefulSetOrdinalsFluent(V1StatefulSetOrdinals instance) { this.copyInstance(instance); } - private Integer start; - + protected void copyInstance(V1StatefulSetOrdinals instance) { - instance = (instance != null ? instance : new V1StatefulSetOrdinals()); + instance = instance != null ? instance : new V1StatefulSetOrdinals(); if (instance != null) { - this.withStart(instance.getStart()); - } + this.withStart(instance.getStart()); + } } - public Integer getStart() { - return this.start; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatefulSetOrdinalsFluent that = (V1StatefulSetOrdinalsFluent) o; + if (!(Objects.equals(start, that.start))) { + return false; + } + return true; } - public A withStart(Integer start) { - this.start = start; - return (A) this; + public Integer getStart() { + return this.start; } public boolean hasStart() { return this.start != 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; - V1StatefulSetOrdinalsFluent that = (V1StatefulSetOrdinalsFluent) o; - if (!java.util.Objects.equals(start, that.start)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(start, super.hashCode()); + return Objects.hash(start); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (start != null) { sb.append("start:"); sb.append(start); } + if (!(start == null)) { + sb.append("start:"); + sb.append(start); + } sb.append("}"); return sb.toString(); } - + public A withStart(Integer start) { + this.start = start; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java index 91a57ae759..d61d61f7d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent implements VisitableBuilder{ + + V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent; + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder() { this(new V1StatefulSetPersistentVolumeClaimRetentionPolicy()); } @@ -10,17 +14,16 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPer this(fluent, new V1StatefulSetPersistentVolumeClaimRetentionPolicy()); } - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent,V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent; + public V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent fluent,V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetPersistentVolumeClaimRetentionPolicy build() { V1StatefulSetPersistentVolumeClaimRetentionPolicy buildable = new V1StatefulSetPersistentVolumeClaimRetentionPolicy(); buildable.setWhenDeleted(fluent.getWhenDeleted()); @@ -28,5 +31,4 @@ public V1StatefulSetPersistentVolumeClaimRetentionPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java index 6556bb9328..2e2e0e4b51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> extends BaseFluent{ +public class V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> extends BaseFluent{ + + private String whenDeleted; + private String whenScaled; + public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent() { } public V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { this.copyInstance(instance); } - private String whenDeleted; - private String whenScaled; - + protected void copyInstance(V1StatefulSetPersistentVolumeClaimRetentionPolicy instance) { - instance = (instance != null ? instance : new V1StatefulSetPersistentVolumeClaimRetentionPolicy()); + instance = instance != null ? instance : new V1StatefulSetPersistentVolumeClaimRetentionPolicy(); if (instance != null) { - this.withWhenDeleted(instance.getWhenDeleted()); - this.withWhenScaled(instance.getWhenScaled()); - } + this.withWhenDeleted(instance.getWhenDeleted()); + this.withWhenScaled(instance.getWhenScaled()); + } } - public String getWhenDeleted() { - return this.whenDeleted; - } - - public A withWhenDeleted(String whenDeleted) { - this.whenDeleted = whenDeleted; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent that = (V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent) o; + if (!(Objects.equals(whenDeleted, that.whenDeleted))) { + return false; + } + if (!(Objects.equals(whenScaled, that.whenScaled))) { + return false; + } + return true; } - public boolean hasWhenDeleted() { - return this.whenDeleted != null; + public String getWhenDeleted() { + return this.whenDeleted; } public String getWhenScaled() { return this.whenScaled; } - public A withWhenScaled(String whenScaled) { - this.whenScaled = whenScaled; - return (A) this; + public boolean hasWhenDeleted() { + return this.whenDeleted != null; } public boolean hasWhenScaled() { return this.whenScaled != 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; - V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent that = (V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent) o; - if (!java.util.Objects.equals(whenDeleted, that.whenDeleted)) return false; - if (!java.util.Objects.equals(whenScaled, that.whenScaled)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(whenDeleted, whenScaled, super.hashCode()); + return Objects.hash(whenDeleted, whenScaled); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (whenDeleted != null) { sb.append("whenDeleted:"); sb.append(whenDeleted + ","); } - if (whenScaled != null) { sb.append("whenScaled:"); sb.append(whenScaled); } + if (!(whenDeleted == null)) { + sb.append("whenDeleted:"); + sb.append(whenDeleted); + sb.append(","); + } + if (!(whenScaled == null)) { + sb.append("whenScaled:"); + sb.append(whenScaled); + } sb.append("}"); return sb.toString(); } - + public A withWhenDeleted(String whenDeleted) { + this.whenDeleted = whenDeleted; + return (A) this; + } + + public A withWhenScaled(String whenScaled) { + this.whenScaled = whenScaled; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java index 64a602f3e6..16339f95d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetSpecBuilder extends V1StatefulSetSpecFluent implements VisitableBuilder{ + + V1StatefulSetSpecFluent fluent; + public V1StatefulSetSpecBuilder() { this(new V1StatefulSetSpec()); } @@ -10,17 +14,16 @@ public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent) { this(fluent, new V1StatefulSetSpec()); } - public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent,V1StatefulSetSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetSpecBuilder(V1StatefulSetSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetSpecFluent fluent; + public V1StatefulSetSpecBuilder(V1StatefulSetSpecFluent fluent,V1StatefulSetSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetSpec build() { V1StatefulSetSpec buildable = new V1StatefulSetSpec(); buildable.setMinReadySeconds(fluent.getMinReadySeconds()); @@ -37,5 +40,4 @@ public V1StatefulSetSpec build() { return buildable; } - } \ No newline at end of file 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..d92b8fb87a 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 @@ -1,29 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Integer; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetSpecFluent> extends BaseFluent{ - public V1StatefulSetSpecFluent() { - } - - public V1StatefulSetSpecFluent(V1StatefulSetSpec instance) { - this.copyInstance(instance); - } +public class V1StatefulSetSpecFluent> extends BaseFluent{ + private Integer minReadySeconds; private V1StatefulSetOrdinalsBuilder ordinals; private V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder persistentVolumeClaimRetentionPolicy; @@ -35,95 +33,474 @@ public V1StatefulSetSpecFluent(V1StatefulSetSpec instance) { private V1PodTemplateSpecBuilder template; private V1StatefulSetUpdateStrategyBuilder updateStrategy; private ArrayList volumeClaimTemplates; + + public V1StatefulSetSpecFluent() { + } - protected void copyInstance(V1StatefulSetSpec instance) { - instance = (instance != null ? instance : new V1StatefulSetSpec()); - if (instance != null) { - this.withMinReadySeconds(instance.getMinReadySeconds()); - this.withOrdinals(instance.getOrdinals()); - this.withPersistentVolumeClaimRetentionPolicy(instance.getPersistentVolumeClaimRetentionPolicy()); - this.withPodManagementPolicy(instance.getPodManagementPolicy()); - this.withReplicas(instance.getReplicas()); - this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); - this.withSelector(instance.getSelector()); - this.withServiceName(instance.getServiceName()); - this.withTemplate(instance.getTemplate()); - this.withUpdateStrategy(instance.getUpdateStrategy()); - this.withVolumeClaimTemplates(instance.getVolumeClaimTemplates()); - } + public V1StatefulSetSpecFluent(V1StatefulSetSpec instance) { + this.copyInstance(instance); + } + + public A addAllToVolumeClaimTemplates(Collection items) { + if (this.volumeClaimTemplates == null) { + this.volumeClaimTemplates = new ArrayList(); + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").add(builder); + this.volumeClaimTemplates.add(builder); + } + return (A) this; } - public Integer getMinReadySeconds() { - return this.minReadySeconds; + public VolumeClaimTemplatesNested addNewVolumeClaimTemplate() { + return new VolumeClaimTemplatesNested(-1, null); } - public A withMinReadySeconds(Integer minReadySeconds) { - this.minReadySeconds = minReadySeconds; + public VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike(V1PersistentVolumeClaim item) { + return new VolumeClaimTemplatesNested(-1, item); + } + + public A addToVolumeClaimTemplates(V1PersistentVolumeClaim... items) { + if (this.volumeClaimTemplates == null) { + this.volumeClaimTemplates = new ArrayList(); + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").add(builder); + this.volumeClaimTemplates.add(builder); + } return (A) this; } - public boolean hasMinReadySeconds() { - return this.minReadySeconds != null; + 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(builder); + volumeClaimTemplates.add(index, builder); + } + return (A) this; + } + + public V1PersistentVolumeClaim buildFirstVolumeClaimTemplate() { + return this.volumeClaimTemplates.get(0).build(); + } + + public V1PersistentVolumeClaim buildLastVolumeClaimTemplate() { + return this.volumeClaimTemplates.get(volumeClaimTemplates.size() - 1).build(); + } + + public V1PersistentVolumeClaim buildMatchingVolumeClaimTemplate(Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } public V1StatefulSetOrdinals buildOrdinals() { return this.ordinals != null ? this.ordinals.build() : null; } - public A withOrdinals(V1StatefulSetOrdinals ordinals) { - this._visitables.remove("ordinals"); - if (ordinals != null) { - this.ordinals = new V1StatefulSetOrdinalsBuilder(ordinals); - this._visitables.get("ordinals").add(this.ordinals); - } else { - this.ordinals = null; - this._visitables.get("ordinals").remove(this.ordinals); + public V1StatefulSetPersistentVolumeClaimRetentionPolicy buildPersistentVolumeClaimRetentionPolicy() { + return this.persistentVolumeClaimRetentionPolicy != null ? this.persistentVolumeClaimRetentionPolicy.build() : null; + } + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } + + public V1PodTemplateSpec buildTemplate() { + return this.template != null ? this.template.build() : null; + } + + public V1StatefulSetUpdateStrategy buildUpdateStrategy() { + return this.updateStrategy != null ? this.updateStrategy.build() : null; + } + + public V1PersistentVolumeClaim buildVolumeClaimTemplate(int index) { + return this.volumeClaimTemplates.get(index).build(); + } + + public List buildVolumeClaimTemplates() { + return this.volumeClaimTemplates != null ? build(volumeClaimTemplates) : null; + } + + protected void copyInstance(V1StatefulSetSpec instance) { + instance = instance != null ? instance : new V1StatefulSetSpec(); + if (instance != null) { + this.withMinReadySeconds(instance.getMinReadySeconds()); + this.withOrdinals(instance.getOrdinals()); + this.withPersistentVolumeClaimRetentionPolicy(instance.getPersistentVolumeClaimRetentionPolicy()); + this.withPodManagementPolicy(instance.getPodManagementPolicy()); + this.withReplicas(instance.getReplicas()); + this.withRevisionHistoryLimit(instance.getRevisionHistoryLimit()); + this.withSelector(instance.getSelector()); + this.withServiceName(instance.getServiceName()); + this.withTemplate(instance.getTemplate()); + this.withUpdateStrategy(instance.getUpdateStrategy()); + this.withVolumeClaimTemplates(instance.getVolumeClaimTemplates()); } - return (A) this; + } + + public VolumeClaimTemplatesNested editFirstVolumeClaimTemplate() { + if (volumeClaimTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "volumeClaimTemplates")); + } + return this.setNewVolumeClaimTemplateLike(0, this.buildVolumeClaimTemplate(0)); + } + + public VolumeClaimTemplatesNested editLastVolumeClaimTemplate() { + int index = volumeClaimTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "volumeClaimTemplates")); + } + return this.setNewVolumeClaimTemplateLike(index, this.buildVolumeClaimTemplate(index)); + } + + public VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < volumeClaimTemplates.size();i++) { + if (predicate.test(volumeClaimTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "volumeClaimTemplates")); + } + return this.setNewVolumeClaimTemplateLike(index, this.buildVolumeClaimTemplate(index)); + } + + public OrdinalsNested editOrNewOrdinals() { + return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(new V1StatefulSetOrdinalsBuilder().build())); + } + + public OrdinalsNested editOrNewOrdinalsLike(V1StatefulSetOrdinals item) { + return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(item)); + } + + public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicy() { + return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder().build())); + } + + public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { + return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(item)); + } + + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + } + + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); + } + + public TemplateNested editOrNewTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); + } + + public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(item)); + } + + public UpdateStrategyNested editOrNewUpdateStrategy() { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(new V1StatefulSetUpdateStrategyBuilder().build())); + } + + public UpdateStrategyNested editOrNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(item)); + } + + public OrdinalsNested editOrdinals() { + return this.withNewOrdinalsLike(Optional.ofNullable(this.buildOrdinals()).orElse(null)); + } + + public PersistentVolumeClaimRetentionPolicyNested editPersistentVolumeClaimRetentionPolicy() { + return this.withNewPersistentVolumeClaimRetentionPolicyLike(Optional.ofNullable(this.buildPersistentVolumeClaimRetentionPolicy()).orElse(null)); + } + + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); + } + + public TemplateNested editTemplate() { + return this.withNewTemplateLike(Optional.ofNullable(this.buildTemplate()).orElse(null)); + } + + public UpdateStrategyNested editUpdateStrategy() { + return this.withNewUpdateStrategyLike(Optional.ofNullable(this.buildUpdateStrategy()).orElse(null)); + } + + public VolumeClaimTemplatesNested editVolumeClaimTemplate(int index) { + if (volumeClaimTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "volumeClaimTemplates")); + } + return this.setNewVolumeClaimTemplateLike(index, this.buildVolumeClaimTemplate(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatefulSetSpecFluent that = (V1StatefulSetSpecFluent) o; + if (!(Objects.equals(minReadySeconds, that.minReadySeconds))) { + return false; + } + if (!(Objects.equals(ordinals, that.ordinals))) { + return false; + } + if (!(Objects.equals(persistentVolumeClaimRetentionPolicy, that.persistentVolumeClaimRetentionPolicy))) { + return false; + } + if (!(Objects.equals(podManagementPolicy, that.podManagementPolicy))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(revisionHistoryLimit, that.revisionHistoryLimit))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + if (!(Objects.equals(serviceName, that.serviceName))) { + return false; + } + if (!(Objects.equals(template, that.template))) { + return false; + } + if (!(Objects.equals(updateStrategy, that.updateStrategy))) { + return false; + } + if (!(Objects.equals(volumeClaimTemplates, that.volumeClaimTemplates))) { + return false; + } + return true; + } + + public Integer getMinReadySeconds() { + return this.minReadySeconds; + } + + public String getPodManagementPolicy() { + return this.podManagementPolicy; + } + + public Integer getReplicas() { + return this.replicas; + } + + public Integer getRevisionHistoryLimit() { + return this.revisionHistoryLimit; + } + + public String getServiceName() { + return this.serviceName; + } + + public boolean hasMatchingVolumeClaimTemplate(Predicate predicate) { + for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMinReadySeconds() { + return this.minReadySeconds != null; } public boolean hasOrdinals() { return this.ordinals != null; } - public OrdinalsNested withNewOrdinals() { - return new OrdinalsNested(null); + public boolean hasPersistentVolumeClaimRetentionPolicy() { + return this.persistentVolumeClaimRetentionPolicy != null; } - public OrdinalsNested withNewOrdinalsLike(V1StatefulSetOrdinals item) { - return new OrdinalsNested(item); + public boolean hasPodManagementPolicy() { + return this.podManagementPolicy != null; } - public OrdinalsNested editOrdinals() { - return withNewOrdinalsLike(java.util.Optional.ofNullable(buildOrdinals()).orElse(null)); + public boolean hasReplicas() { + return this.replicas != null; } - public OrdinalsNested editOrNewOrdinals() { - return withNewOrdinalsLike(java.util.Optional.ofNullable(buildOrdinals()).orElse(new V1StatefulSetOrdinalsBuilder().build())); + public boolean hasRevisionHistoryLimit() { + return this.revisionHistoryLimit != null; } - public OrdinalsNested editOrNewOrdinalsLike(V1StatefulSetOrdinals item) { - return withNewOrdinalsLike(java.util.Optional.ofNullable(buildOrdinals()).orElse(item)); + public boolean hasSelector() { + return this.selector != null; } - public V1StatefulSetPersistentVolumeClaimRetentionPolicy buildPersistentVolumeClaimRetentionPolicy() { - return this.persistentVolumeClaimRetentionPolicy != null ? this.persistentVolumeClaimRetentionPolicy.build() : null; + public boolean hasServiceName() { + return this.serviceName != null; } - public A withPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { - this._visitables.remove("persistentVolumeClaimRetentionPolicy"); - if (persistentVolumeClaimRetentionPolicy != null) { - this.persistentVolumeClaimRetentionPolicy = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(persistentVolumeClaimRetentionPolicy); - this._visitables.get("persistentVolumeClaimRetentionPolicy").add(this.persistentVolumeClaimRetentionPolicy); + public boolean hasTemplate() { + return this.template != null; + } + + public boolean hasUpdateStrategy() { + return this.updateStrategy != null; + } + + public boolean hasVolumeClaimTemplates() { + return this.volumeClaimTemplates != null && !(this.volumeClaimTemplates.isEmpty()); + } + + public int hashCode() { + return Objects.hash(minReadySeconds, ordinals, persistentVolumeClaimRetentionPolicy, podManagementPolicy, replicas, revisionHistoryLimit, selector, serviceName, template, updateStrategy, volumeClaimTemplates); + } + + public A removeAllFromVolumeClaimTemplates(Collection items) { + if (this.volumeClaimTemplates == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").remove(builder); + this.volumeClaimTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromVolumeClaimTemplates(V1PersistentVolumeClaim... items) { + if (this.volumeClaimTemplates == null) { + return (A) this; + } + for (V1PersistentVolumeClaim item : items) { + V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); + _visitables.get("volumeClaimTemplates").remove(builder); + this.volumeClaimTemplates.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromVolumeClaimTemplates(Predicate predicate) { + if (volumeClaimTemplates == null) { + return (A) this; + } + Iterator each = volumeClaimTemplates.iterator(); + List visitables = _visitables.get("volumeClaimTemplates"); + while (each.hasNext()) { + V1PersistentVolumeClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike(int index,V1PersistentVolumeClaim item) { + return new VolumeClaimTemplatesNested(index, item); + } + + 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 { - this.persistentVolumeClaimRetentionPolicy = null; - this._visitables.get("persistentVolumeClaimRetentionPolicy").remove(this.persistentVolumeClaimRetentionPolicy); + _visitables.get("volumeClaimTemplates").add(builder); + volumeClaimTemplates.set(index, builder); } return (A) this; } - public boolean hasPersistentVolumeClaimRetentionPolicy() { - return this.persistentVolumeClaimRetentionPolicy != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minReadySeconds == null)) { + sb.append("minReadySeconds:"); + sb.append(minReadySeconds); + sb.append(","); + } + if (!(ordinals == null)) { + sb.append("ordinals:"); + sb.append(ordinals); + sb.append(","); + } + if (!(persistentVolumeClaimRetentionPolicy == null)) { + sb.append("persistentVolumeClaimRetentionPolicy:"); + sb.append(persistentVolumeClaimRetentionPolicy); + sb.append(","); + } + if (!(podManagementPolicy == null)) { + sb.append("podManagementPolicy:"); + sb.append(podManagementPolicy); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(revisionHistoryLimit == null)) { + sb.append("revisionHistoryLimit:"); + sb.append(revisionHistoryLimit); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + sb.append(","); + } + if (!(serviceName == null)) { + sb.append("serviceName:"); + sb.append(serviceName); + sb.append(","); + } + if (!(template == null)) { + sb.append("template:"); + sb.append(template); + sb.append(","); + } + if (!(updateStrategy == null)) { + sb.append("updateStrategy:"); + sb.append(updateStrategy); + sb.append(","); + } + if (!(volumeClaimTemplates == null) && !(volumeClaimTemplates.isEmpty())) { + sb.append("volumeClaimTemplates:"); + sb.append(volumeClaimTemplates); + } + sb.append("}"); + return sb.toString(); + } + + public A withMinReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; + return (A) this; + } + + public OrdinalsNested withNewOrdinals() { + return new OrdinalsNested(null); + } + + public OrdinalsNested withNewOrdinalsLike(V1StatefulSetOrdinals item) { + return new OrdinalsNested(item); } public PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClaimRetentionPolicy() { @@ -134,20 +511,52 @@ public PersistentVolumeClaimRetentionPolicyNested withNewPersistentVolumeClai return new PersistentVolumeClaimRetentionPolicyNested(item); } - public PersistentVolumeClaimRetentionPolicyNested editPersistentVolumeClaimRetentionPolicy() { - return withNewPersistentVolumeClaimRetentionPolicyLike(java.util.Optional.ofNullable(buildPersistentVolumeClaimRetentionPolicy()).orElse(null)); + public SelectorNested withNewSelector() { + return new SelectorNested(null); } - public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicy() { - return withNewPersistentVolumeClaimRetentionPolicyLike(java.util.Optional.ofNullable(buildPersistentVolumeClaimRetentionPolicy()).orElse(new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder().build())); + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); } - public PersistentVolumeClaimRetentionPolicyNested editOrNewPersistentVolumeClaimRetentionPolicyLike(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { - return withNewPersistentVolumeClaimRetentionPolicyLike(java.util.Optional.ofNullable(buildPersistentVolumeClaimRetentionPolicy()).orElse(item)); + public TemplateNested withNewTemplate() { + return new TemplateNested(null); } - public String getPodManagementPolicy() { - return this.podManagementPolicy; + public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { + return new TemplateNested(item); + } + + public UpdateStrategyNested withNewUpdateStrategy() { + return new UpdateStrategyNested(null); + } + + public UpdateStrategyNested withNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { + return new UpdateStrategyNested(item); + } + + public A withOrdinals(V1StatefulSetOrdinals ordinals) { + this._visitables.remove("ordinals"); + if (ordinals != null) { + this.ordinals = new V1StatefulSetOrdinalsBuilder(ordinals); + this._visitables.get("ordinals").add(this.ordinals); + } else { + this.ordinals = null; + this._visitables.get("ordinals").remove(this.ordinals); + } + return (A) this; + } + + public A withPersistentVolumeClaimRetentionPolicy(V1StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy) { + this._visitables.remove("persistentVolumeClaimRetentionPolicy"); + if (persistentVolumeClaimRetentionPolicy != null) { + this.persistentVolumeClaimRetentionPolicy = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(persistentVolumeClaimRetentionPolicy); + this._visitables.get("persistentVolumeClaimRetentionPolicy").add(this.persistentVolumeClaimRetentionPolicy); + } else { + this.persistentVolumeClaimRetentionPolicy = null; + this._visitables.get("persistentVolumeClaimRetentionPolicy").remove(this.persistentVolumeClaimRetentionPolicy); + } + return (A) this; } public A withPodManagementPolicy(String podManagementPolicy) { @@ -155,40 +564,16 @@ public A withPodManagementPolicy(String podManagementPolicy) { return (A) this; } - public boolean hasPodManagementPolicy() { - return this.podManagementPolicy != null; - } - - public Integer getReplicas() { - return this.replicas; - } - public A withReplicas(Integer replicas) { this.replicas = replicas; return (A) this; } - public boolean hasReplicas() { - return this.replicas != null; - } - - public Integer getRevisionHistoryLimit() { - return this.revisionHistoryLimit; - } - public A withRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; return (A) this; } - public boolean hasRevisionHistoryLimit() { - return this.revisionHistoryLimit != null; - } - - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; - } - public A withSelector(V1LabelSelector selector) { this._visitables.remove("selector"); if (selector != null) { @@ -201,47 +586,11 @@ public A withSelector(V1LabelSelector 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 String getServiceName() { - return this.serviceName; - } - public A withServiceName(String serviceName) { this.serviceName = serviceName; return (A) this; } - public boolean hasServiceName() { - return this.serviceName != null; - } - - public V1PodTemplateSpec buildTemplate() { - return this.template != null ? this.template.build() : null; - } - public A withTemplate(V1PodTemplateSpec template) { this._visitables.remove("template"); if (template != null) { @@ -254,34 +603,6 @@ public A withTemplate(V1PodTemplateSpec template) { return (A) this; } - public boolean hasTemplate() { - return this.template != null; - } - - public TemplateNested withNewTemplate() { - return new TemplateNested(null); - } - - public TemplateNested withNewTemplateLike(V1PodTemplateSpec item) { - return new TemplateNested(item); - } - - public TemplateNested editTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(null)); - } - - public TemplateNested editOrNewTemplate() { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(new V1PodTemplateSpecBuilder().build())); - } - - public TemplateNested editOrNewTemplateLike(V1PodTemplateSpec item) { - return withNewTemplateLike(java.util.Optional.ofNullable(buildTemplate()).orElse(item)); - } - - public V1StatefulSetUpdateStrategy buildUpdateStrategy() { - return this.updateStrategy != null ? this.updateStrategy.build() : null; - } - public A withUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { this._visitables.remove("updateStrategy"); if (updateStrategy != null) { @@ -294,112 +615,6 @@ public A withUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { return (A) this; } - public boolean hasUpdateStrategy() { - return this.updateStrategy != null; - } - - public UpdateStrategyNested withNewUpdateStrategy() { - return new UpdateStrategyNested(null); - } - - public UpdateStrategyNested withNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { - return new UpdateStrategyNested(item); - } - - public UpdateStrategyNested editUpdateStrategy() { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(null)); - } - - public UpdateStrategyNested editOrNewUpdateStrategy() { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(new V1StatefulSetUpdateStrategyBuilder().build())); - } - - public UpdateStrategyNested editOrNewUpdateStrategyLike(V1StatefulSetUpdateStrategy item) { - return withNewUpdateStrategyLike(java.util.Optional.ofNullable(buildUpdateStrategy()).orElse(item)); - } - - 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);} - 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);} - return (A)this; - } - - public A addToVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").add(builder);this.volumeClaimTemplates.add(builder);} return (A)this; - } - - public A addAllToVolumeClaimTemplates(Collection items) { - if (this.volumeClaimTemplates == null) {this.volumeClaimTemplates = new ArrayList();} - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").add(builder);this.volumeClaimTemplates.add(builder);} return (A)this; - } - - public A removeFromVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... items) { - if (this.volumeClaimTemplates == null) return (A)this; - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").remove(builder); this.volumeClaimTemplates.remove(builder);} return (A)this; - } - - public A removeAllFromVolumeClaimTemplates(Collection items) { - if (this.volumeClaimTemplates == null) return (A)this; - for (V1PersistentVolumeClaim item : items) {V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item);_visitables.get("volumeClaimTemplates").remove(builder); this.volumeClaimTemplates.remove(builder);} return (A)this; - } - - public A removeMatchingFromVolumeClaimTemplates(Predicate predicate) { - if (volumeClaimTemplates == null) return (A) this; - final Iterator each = volumeClaimTemplates.iterator(); - final List visitables = _visitables.get("volumeClaimTemplates"); - while (each.hasNext()) { - V1PersistentVolumeClaimBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildVolumeClaimTemplates() { - return this.volumeClaimTemplates != null ? build(volumeClaimTemplates) : null; - } - - public V1PersistentVolumeClaim buildVolumeClaimTemplate(int index) { - return this.volumeClaimTemplates.get(index).build(); - } - - public V1PersistentVolumeClaim buildFirstVolumeClaimTemplate() { - return this.volumeClaimTemplates.get(0).build(); - } - - public V1PersistentVolumeClaim buildLastVolumeClaimTemplate() { - return this.volumeClaimTemplates.get(volumeClaimTemplates.size() - 1).build(); - } - - public V1PersistentVolumeClaim buildMatchingVolumeClaimTemplate(Predicate predicate) { - for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingVolumeClaimTemplate(Predicate predicate) { - for (V1PersistentVolumeClaimBuilder item : volumeClaimTemplates) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - public A withVolumeClaimTemplates(List volumeClaimTemplates) { if (this.volumeClaimTemplates != null) { this._visitables.get("volumeClaimTemplates").clear(); @@ -415,7 +630,7 @@ public A withVolumeClaimTemplates(List volumeClaimTempl return (A) this; } - public A withVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1PersistentVolumeClaim... volumeClaimTemplates) { + public A withVolumeClaimTemplates(V1PersistentVolumeClaim... volumeClaimTemplates) { if (this.volumeClaimTemplates != null) { this.volumeClaimTemplates.clear(); _visitables.remove("volumeClaimTemplates"); @@ -427,94 +642,14 @@ public A withVolumeClaimTemplates(io.kubernetes.client.openapi.models.V1Persiste } return (A) this; } + public class OrdinalsNested extends V1StatefulSetOrdinalsFluent> implements Nested{ - public boolean hasVolumeClaimTemplates() { - return this.volumeClaimTemplates != null && !this.volumeClaimTemplates.isEmpty(); - } - - public VolumeClaimTemplatesNested addNewVolumeClaimTemplate() { - return new VolumeClaimTemplatesNested(-1, null); - } - - public VolumeClaimTemplatesNested addNewVolumeClaimTemplateLike(V1PersistentVolumeClaim item) { - return new VolumeClaimTemplatesNested(-1, item); - } - - public VolumeClaimTemplatesNested setNewVolumeClaimTemplateLike(int index,V1PersistentVolumeClaim item) { - return new VolumeClaimTemplatesNested(index, item); - } - - public VolumeClaimTemplatesNested editVolumeClaimTemplate(int index) { - if (volumeClaimTemplates.size() <= index) throw new RuntimeException("Can't edit volumeClaimTemplates. Index exceeds size."); - return setNewVolumeClaimTemplateLike(index, buildVolumeClaimTemplate(index)); - } - - public VolumeClaimTemplatesNested editFirstVolumeClaimTemplate() { - if (volumeClaimTemplates.size() == 0) throw new RuntimeException("Can't edit first volumeClaimTemplates. The list is empty."); - return setNewVolumeClaimTemplateLike(0, buildVolumeClaimTemplate(0)); - } - - public VolumeClaimTemplatesNested editLastVolumeClaimTemplate() { - int index = volumeClaimTemplates.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last volumeClaimTemplates. The list is empty."); - return setNewVolumeClaimTemplateLike(index, buildVolumeClaimTemplate(index)); - } - - public VolumeClaimTemplatesNested editMatchingVolumeClaimTemplate(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1StatefulSetOrdinalsFluent> implements Nested{ OrdinalsNested(V1StatefulSetOrdinals item) { this.builder = new V1StatefulSetOrdinalsBuilder(this, item); } - V1StatefulSetOrdinalsBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withOrdinals(builder.build()); } @@ -523,14 +658,15 @@ public N endOrdinals() { return and(); } - } public class PersistentVolumeClaimRetentionPolicyNested extends V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent> implements Nested{ + + V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder builder; + PersistentVolumeClaimRetentionPolicyNested(V1StatefulSetPersistentVolumeClaimRetentionPolicy item) { this.builder = new V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder(this, item); } - V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withPersistentVolumeClaimRetentionPolicy(builder.build()); } @@ -539,14 +675,15 @@ public N endPersistentVolumeClaimRetentionPolicy() { return and(); } - } public class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withSelector(builder.build()); } @@ -555,14 +692,15 @@ public N endSelector() { return and(); } - } public class TemplateNested extends V1PodTemplateSpecFluent> implements Nested{ + + V1PodTemplateSpecBuilder builder; + TemplateNested(V1PodTemplateSpec item) { this.builder = new V1PodTemplateSpecBuilder(this, item); } - V1PodTemplateSpecBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withTemplate(builder.build()); } @@ -571,14 +709,15 @@ public N endTemplate() { return and(); } - } public class UpdateStrategyNested extends V1StatefulSetUpdateStrategyFluent> implements Nested{ + + V1StatefulSetUpdateStrategyBuilder builder; + UpdateStrategyNested(V1StatefulSetUpdateStrategy item) { this.builder = new V1StatefulSetUpdateStrategyBuilder(this, item); } - V1StatefulSetUpdateStrategyBuilder builder; - + public N and() { return (N) V1StatefulSetSpecFluent.this.withUpdateStrategy(builder.build()); } @@ -587,25 +726,24 @@ public N endUpdateStrategy() { return and(); } - } public class VolumeClaimTemplatesNested extends V1PersistentVolumeClaimFluent> implements Nested{ + + V1PersistentVolumeClaimBuilder builder; + int index; + VolumeClaimTemplatesNested(int index,V1PersistentVolumeClaim item) { this.index = index; this.builder = new V1PersistentVolumeClaimBuilder(this, item); } - V1PersistentVolumeClaimBuilder builder; - int index; - + public N and() { - return (N) V1StatefulSetSpecFluent.this.setToVolumeClaimTemplates(index,builder.build()); + return (N) V1StatefulSetSpecFluent.this.setToVolumeClaimTemplates(index, builder.build()); } public N endVolumeClaimTemplate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java index fdf8bfd80f..941644ae1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetStatusBuilder extends V1StatefulSetStatusFluent implements VisitableBuilder{ + + V1StatefulSetStatusFluent fluent; + public V1StatefulSetStatusBuilder() { this(new V1StatefulSetStatus()); } @@ -10,17 +14,16 @@ public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent) { this(fluent, new V1StatefulSetStatus()); } - public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent,V1StatefulSetStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetStatusBuilder(V1StatefulSetStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetStatusFluent fluent; + public V1StatefulSetStatusBuilder(V1StatefulSetStatusFluent fluent,V1StatefulSetStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetStatus build() { V1StatefulSetStatus buildable = new V1StatefulSetStatus(); buildable.setAvailableReplicas(fluent.getAvailableReplicas()); @@ -36,5 +39,4 @@ public V1StatefulSetStatus build() { return buildable; } - } \ No newline at end of file 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..5067e39fc1 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 @@ -1,30 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetStatusFluent> extends BaseFluent{ - public V1StatefulSetStatusFluent() { - } - - public V1StatefulSetStatusFluent(V1StatefulSetStatus instance) { - this.copyInstance(instance); - } +public class V1StatefulSetStatusFluent> extends BaseFluent{ + private Integer availableReplicas; private Integer collisionCount; private ArrayList conditions; @@ -35,105 +32,69 @@ public V1StatefulSetStatusFluent(V1StatefulSetStatus instance) { private Integer replicas; private String updateRevision; private Integer updatedReplicas; - - protected void copyInstance(V1StatefulSetStatus instance) { - instance = (instance != null ? instance : new V1StatefulSetStatus()); - if (instance != null) { - this.withAvailableReplicas(instance.getAvailableReplicas()); - this.withCollisionCount(instance.getCollisionCount()); - this.withConditions(instance.getConditions()); - this.withCurrentReplicas(instance.getCurrentReplicas()); - this.withCurrentRevision(instance.getCurrentRevision()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReadyReplicas(instance.getReadyReplicas()); - this.withReplicas(instance.getReplicas()); - this.withUpdateRevision(instance.getUpdateRevision()); - this.withUpdatedReplicas(instance.getUpdatedReplicas()); - } + + public V1StatefulSetStatusFluent() { } - public Integer getAvailableReplicas() { - return this.availableReplicas; + public V1StatefulSetStatusFluent(V1StatefulSetStatus instance) { + this.copyInstance(instance); } - - public A withAvailableReplicas(Integer availableReplicas) { - this.availableReplicas = availableReplicas; + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasAvailableReplicas() { - return this.availableReplicas != null; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public Integer getCollisionCount() { - return this.collisionCount; + public ConditionsNested addNewConditionLike(V1StatefulSetCondition item) { + return new ConditionsNested(-1, item); } - public A withCollisionCount(Integer collisionCount) { - this.collisionCount = collisionCount; + public A addToConditions(V1StatefulSetCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasCollisionCount() { - return this.collisionCount != null; - } - 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);} - return (A)this; - } - - public A setToConditions(int index,V1StatefulSetCondition item) { - if (this.conditions == null) {this.conditions = new ArrayList();} + 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);} - return (A)this; - } - - public A addToConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(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 (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; - } - - public A removeFromConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... items) { - if (this.conditions == null) return (A)this; - for (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(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 (V1StatefulSetCondition item : items) {V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + 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 removeMatchingFromConditions(Predicate predicate) { - if (conditions == null) return (A) this; - final Iterator each = conditions.iterator(); - final List visitables = _visitables.get("conditions"); - while (each.hasNext()) { - V1StatefulSetConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public V1StatefulSetCondition buildCondition(int index) { + return this.conditions.get(index).build(); } public List buildConditions() { return this.conditions != null ? build(conditions) : null; } - public V1StatefulSetCondition buildCondition(int index) { - return this.conditions.get(index).build(); - } - public V1StatefulSetCondition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -151,230 +112,395 @@ public V1StatefulSetCondition buildMatchingCondition(Predicate predicate) { - for (V1StatefulSetConditionBuilder item : conditions) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1StatefulSetStatus instance) { + instance = instance != null ? instance : new V1StatefulSetStatus(); + if (instance != null) { + this.withAvailableReplicas(instance.getAvailableReplicas()); + this.withCollisionCount(instance.getCollisionCount()); + this.withConditions(instance.getConditions()); + this.withCurrentReplicas(instance.getCurrentReplicas()); + this.withCurrentRevision(instance.getCurrentRevision()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReadyReplicas(instance.getReadyReplicas()); + this.withReplicas(instance.getReplicas()); + this.withUpdateRevision(instance.getUpdateRevision()); + this.withUpdatedReplicas(instance.getUpdatedReplicas()); + } } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1StatefulSetCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - return (A) this; + return this.setNewConditionLike(0, this.buildCondition(0)); } - public A withConditions(io.kubernetes.client.openapi.models.V1StatefulSetCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); } - if (conditions != null) { - for (V1StatefulSetCondition item : conditions) { - this.addToConditions(item); + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatefulSetStatusFluent that = (V1StatefulSetStatusFluent) o; + if (!(Objects.equals(availableReplicas, that.availableReplicas))) { + return false; + } + if (!(Objects.equals(collisionCount, that.collisionCount))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentReplicas, that.currentReplicas))) { + return false; + } + if (!(Objects.equals(currentRevision, that.currentRevision))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(readyReplicas, that.readyReplicas))) { + return false; + } + if (!(Objects.equals(replicas, that.replicas))) { + return false; + } + if (!(Objects.equals(updateRevision, that.updateRevision))) { + return false; + } + if (!(Objects.equals(updatedReplicas, that.updatedReplicas))) { + return false; + } + return true; } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public Integer getAvailableReplicas() { + return this.availableReplicas; } - public ConditionsNested addNewConditionLike(V1StatefulSetCondition item) { - return new ConditionsNested(-1, item); + public Integer getCollisionCount() { + return this.collisionCount; } - public ConditionsNested setNewConditionLike(int index,V1StatefulSetCondition item) { - return new ConditionsNested(index, item); + public Integer getCurrentReplicas() { + return this.currentReplicas; } - 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 String getCurrentRevision() { + return this.currentRevision; } - 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 Long getObservedGeneration() { + return this.observedGeneration; } - 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 Integer getReadyReplicas() { + return this.readyReplicas; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1StatefulSetConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasObservedGeneration() { return this.observedGeneration != null; } - public Integer getReadyReplicas() { - return this.readyReplicas; + public boolean hasReadyReplicas() { + return this.readyReplicas != null; } - public A withReadyReplicas(Integer readyReplicas) { - this.readyReplicas = readyReplicas; + public boolean hasReplicas() { + return this.replicas != null; + } + + public boolean hasUpdateRevision() { + return this.updateRevision != null; + } + + public boolean hasUpdatedReplicas() { + return this.updatedReplicas != null; + } + + public int hashCode() { + return Objects.hash(availableReplicas, collisionCount, conditions, currentReplicas, currentRevision, observedGeneration, readyReplicas, replicas, updateRevision, updatedReplicas); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } return (A) this; } - public boolean hasReadyReplicas() { - return this.readyReplicas != null; + public A removeFromConditions(V1StatefulSetCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1StatefulSetCondition item : items) { + V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public Integer getReplicas() { - return this.replicas; + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1StatefulSetConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public A withReplicas(Integer replicas) { - this.replicas = replicas; + public ConditionsNested setNewConditionLike(int index,V1StatefulSetCondition item) { + return new ConditionsNested(index, item); + } + + 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").add(builder); + conditions.set(index, builder); + } return (A) this; } - public boolean hasReplicas() { - return this.replicas != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(availableReplicas == null)) { + sb.append("availableReplicas:"); + sb.append(availableReplicas); + sb.append(","); + } + if (!(collisionCount == null)) { + sb.append("collisionCount:"); + sb.append(collisionCount); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(currentReplicas == null)) { + sb.append("currentReplicas:"); + sb.append(currentReplicas); + sb.append(","); + } + if (!(currentRevision == null)) { + sb.append("currentRevision:"); + sb.append(currentRevision); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(readyReplicas == null)) { + sb.append("readyReplicas:"); + sb.append(readyReplicas); + sb.append(","); + } + if (!(replicas == null)) { + sb.append("replicas:"); + sb.append(replicas); + sb.append(","); + } + if (!(updateRevision == null)) { + sb.append("updateRevision:"); + sb.append(updateRevision); + sb.append(","); + } + if (!(updatedReplicas == null)) { + sb.append("updatedReplicas:"); + sb.append(updatedReplicas); + } + sb.append("}"); + return sb.toString(); } - public String getUpdateRevision() { - return this.updateRevision; + public A withAvailableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; + return (A) this; } - public A withUpdateRevision(String updateRevision) { - this.updateRevision = updateRevision; + public A withCollisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return (A) this; } - public boolean hasUpdateRevision() { - return this.updateRevision != null; + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1StatefulSetCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; } - public Integer getUpdatedReplicas() { - return this.updatedReplicas; + public A withConditions(V1StatefulSetCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1StatefulSetCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; } - public A withUpdatedReplicas(Integer updatedReplicas) { - this.updatedReplicas = updatedReplicas; + public A withCurrentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; return (A) this; } - public boolean hasUpdatedReplicas() { - return this.updatedReplicas != null; + public A withCurrentRevision(String currentRevision) { + this.currentRevision = currentRevision; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1StatefulSetStatusFluent that = (V1StatefulSetStatusFluent) o; - if (!java.util.Objects.equals(availableReplicas, that.availableReplicas)) return false; - if (!java.util.Objects.equals(collisionCount, that.collisionCount)) return false; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(currentReplicas, that.currentReplicas)) return false; - if (!java.util.Objects.equals(currentRevision, that.currentRevision)) return false; - 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(updateRevision, that.updateRevision)) return false; - if (!java.util.Objects.equals(updatedReplicas, that.updatedReplicas)) return false; - return true; + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(availableReplicas, collisionCount, conditions, currentReplicas, currentRevision, observedGeneration, readyReplicas, replicas, updateRevision, updatedReplicas, super.hashCode()); + public A withReadyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (availableReplicas != null) { sb.append("availableReplicas:"); sb.append(availableReplicas + ","); } - if (collisionCount != null) { sb.append("collisionCount:"); sb.append(collisionCount + ","); } - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (currentReplicas != null) { sb.append("currentReplicas:"); sb.append(currentReplicas + ","); } - if (currentRevision != null) { sb.append("currentRevision:"); sb.append(currentRevision + ","); } - 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 (updateRevision != null) { sb.append("updateRevision:"); sb.append(updateRevision + ","); } - if (updatedReplicas != null) { sb.append("updatedReplicas:"); sb.append(updatedReplicas); } - sb.append("}"); - return sb.toString(); + public A withReplicas(Integer replicas) { + this.replicas = replicas; + return (A) this; + } + + public A withUpdateRevision(String updateRevision) { + this.updateRevision = updateRevision; + return (A) this; + } + + public A withUpdatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; + return (A) this; } public class ConditionsNested extends V1StatefulSetConditionFluent> implements Nested{ + + V1StatefulSetConditionBuilder builder; + int index; + ConditionsNested(int index,V1StatefulSetCondition item) { this.index = index; this.builder = new V1StatefulSetConditionBuilder(this, item); } - V1StatefulSetConditionBuilder builder; - int index; - + public N and() { - return (N) V1StatefulSetStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1StatefulSetStatusFluent.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/V1StatefulSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java index 9469641f2c..69b6f17342 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatefulSetUpdateStrategyBuilder extends V1StatefulSetUpdateStrategyFluent implements VisitableBuilder{ + + V1StatefulSetUpdateStrategyFluent fluent; + public V1StatefulSetUpdateStrategyBuilder() { this(new V1StatefulSetUpdateStrategy()); } @@ -10,17 +14,16 @@ public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent f this(fluent, new V1StatefulSetUpdateStrategy()); } - public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent fluent,V1StatefulSetUpdateStrategy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategy instance) { this.fluent = this; this.copyInstance(instance); } - V1StatefulSetUpdateStrategyFluent fluent; + public V1StatefulSetUpdateStrategyBuilder(V1StatefulSetUpdateStrategyFluent fluent,V1StatefulSetUpdateStrategy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatefulSetUpdateStrategy build() { V1StatefulSetUpdateStrategy buildable = new V1StatefulSetUpdateStrategy(); buildable.setRollingUpdate(fluent.buildRollingUpdate()); @@ -28,5 +31,4 @@ public V1StatefulSetUpdateStrategy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java index 65140ef9f9..f2638cf15a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatefulSetUpdateStrategyFluent> extends BaseFluent{ +public class V1StatefulSetUpdateStrategyFluent> extends BaseFluent{ + + private V1RollingUpdateStatefulSetStrategyBuilder rollingUpdate; + private String type; + public V1StatefulSetUpdateStrategyFluent() { } public V1StatefulSetUpdateStrategyFluent(V1StatefulSetUpdateStrategy instance) { this.copyInstance(instance); } - private V1RollingUpdateStatefulSetStrategyBuilder rollingUpdate; - private String type; - - protected void copyInstance(V1StatefulSetUpdateStrategy instance) { - instance = (instance != null ? instance : new V1StatefulSetUpdateStrategy()); - if (instance != null) { - this.withRollingUpdate(instance.getRollingUpdate()); - this.withType(instance.getType()); - } - } - + public V1RollingUpdateStatefulSetStrategy buildRollingUpdate() { return this.rollingUpdate != null ? this.rollingUpdate.build() : null; } - public A withRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { - this._visitables.remove("rollingUpdate"); - if (rollingUpdate != null) { - this.rollingUpdate = new V1RollingUpdateStatefulSetStrategyBuilder(rollingUpdate); - this._visitables.get("rollingUpdate").add(this.rollingUpdate); - } else { - this.rollingUpdate = null; - this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + protected void copyInstance(V1StatefulSetUpdateStrategy instance) { + instance = instance != null ? instance : new V1StatefulSetUpdateStrategy(); + if (instance != null) { + this.withRollingUpdate(instance.getRollingUpdate()); + this.withType(instance.getType()); } - return (A) this; - } - - public boolean hasRollingUpdate() { - return this.rollingUpdate != null; } - public RollingUpdateNested withNewRollingUpdate() { - return new RollingUpdateNested(null); + public RollingUpdateNested editOrNewRollingUpdate() { + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(new V1RollingUpdateStatefulSetStrategyBuilder().build())); } - public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { - return new RollingUpdateNested(item); + public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(item)); } public RollingUpdateNested editRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(null)); + return this.withNewRollingUpdateLike(Optional.ofNullable(this.buildRollingUpdate()).orElse(null)); } - public RollingUpdateNested editOrNewRollingUpdate() { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(new V1RollingUpdateStatefulSetStrategyBuilder().build())); - } - - public RollingUpdateNested editOrNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { - return withNewRollingUpdateLike(java.util.Optional.ofNullable(buildRollingUpdate()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatefulSetUpdateStrategyFluent that = (V1StatefulSetUpdateStrategyFluent) o; + if (!(Objects.equals(rollingUpdate, that.rollingUpdate))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasRollingUpdate() { + return this.rollingUpdate != null; } 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; - V1StatefulSetUpdateStrategyFluent that = (V1StatefulSetUpdateStrategyFluent) o; - if (!java.util.Objects.equals(rollingUpdate, that.rollingUpdate)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(rollingUpdate, type, super.hashCode()); + return Objects.hash(rollingUpdate, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rollingUpdate != null) { sb.append("rollingUpdate:"); sb.append(rollingUpdate + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(rollingUpdate == null)) { + sb.append("rollingUpdate:"); + sb.append(rollingUpdate); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } + + public RollingUpdateNested withNewRollingUpdate() { + return new RollingUpdateNested(null); + } + + public RollingUpdateNested withNewRollingUpdateLike(V1RollingUpdateStatefulSetStrategy item) { + return new RollingUpdateNested(item); + } + + public A withRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { + this._visitables.remove("rollingUpdate"); + if (rollingUpdate != null) { + this.rollingUpdate = new V1RollingUpdateStatefulSetStrategyBuilder(rollingUpdate); + this._visitables.get("rollingUpdate").add(this.rollingUpdate); + } else { + this.rollingUpdate = null; + this._visitables.get("rollingUpdate").remove(this.rollingUpdate); + } + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } public class RollingUpdateNested extends V1RollingUpdateStatefulSetStrategyFluent> implements Nested{ + + V1RollingUpdateStatefulSetStrategyBuilder builder; + RollingUpdateNested(V1RollingUpdateStatefulSetStrategy item) { this.builder = new V1RollingUpdateStatefulSetStrategyBuilder(this, item); } - V1RollingUpdateStatefulSetStrategyBuilder builder; - + public N and() { return (N) V1StatefulSetUpdateStrategyFluent.this.withRollingUpdate(builder.build()); } @@ -117,7 +141,5 @@ public N endRollingUpdate() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java index 40ada78b44..33573fe434 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatusBuilder extends V1StatusFluent implements VisitableBuilder{ + + V1StatusFluent fluent; + public V1StatusBuilder() { this(new V1Status()); } @@ -10,17 +14,16 @@ public V1StatusBuilder(V1StatusFluent fluent) { this(fluent, new V1Status()); } - public V1StatusBuilder(V1StatusFluent fluent,V1Status instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatusBuilder(V1Status instance) { this.fluent = this; this.copyInstance(instance); } - V1StatusFluent fluent; + public V1StatusBuilder(V1StatusFluent fluent,V1Status instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Status build() { V1Status buildable = new V1Status(); buildable.setApiVersion(fluent.getApiVersion()); @@ -34,5 +37,4 @@ public V1Status build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java index 282ca99f4d..05e47c994c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatusCauseBuilder extends V1StatusCauseFluent implements VisitableBuilder{ + + V1StatusCauseFluent fluent; + public V1StatusCauseBuilder() { this(new V1StatusCause()); } @@ -10,17 +14,16 @@ public V1StatusCauseBuilder(V1StatusCauseFluent fluent) { this(fluent, new V1StatusCause()); } - public V1StatusCauseBuilder(V1StatusCauseFluent fluent,V1StatusCause instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatusCauseBuilder(V1StatusCause instance) { this.fluent = this; this.copyInstance(instance); } - V1StatusCauseFluent fluent; + public V1StatusCauseBuilder(V1StatusCauseFluent fluent,V1StatusCause instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatusCause build() { V1StatusCause buildable = new V1StatusCause(); buildable.setField(fluent.getField()); @@ -29,5 +32,4 @@ public V1StatusCause build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java index 0db54946fd..76b71a35f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java @@ -1,97 +1,123 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatusCauseFluent> extends BaseFluent{ +public class V1StatusCauseFluent> extends BaseFluent{ + + private String field; + private String message; + private String reason; + public V1StatusCauseFluent() { } public V1StatusCauseFluent(V1StatusCause instance) { this.copyInstance(instance); } - private String field; - private String message; - private String reason; - + protected void copyInstance(V1StatusCause instance) { - instance = (instance != null ? instance : new V1StatusCause()); + instance = instance != null ? instance : new V1StatusCause(); if (instance != null) { - this.withField(instance.getField()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - } - } - - public String getField() { - return this.field; + this.withField(instance.getField()); + this.withMessage(instance.getMessage()); + this.withReason(instance.getReason()); + } } - public A withField(String field) { - this.field = field; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatusCauseFluent that = (V1StatusCauseFluent) o; + if (!(Objects.equals(field, that.field))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + return true; } - public boolean hasField() { - return this.field != null; + public String getField() { + return this.field; } 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 hasField() { + return this.field != null; } - public boolean hasReason() { - return this.reason != null; + public boolean hasMessage() { + return this.message != 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; - V1StatusCauseFluent that = (V1StatusCauseFluent) o; - if (!java.util.Objects.equals(field, that.field)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - return true; + public boolean hasReason() { + return this.reason != null; } public int hashCode() { - return java.util.Objects.hash(field, message, reason, super.hashCode()); + return Objects.hash(field, message, reason); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (field != null) { sb.append("field:"); sb.append(field + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } + if (!(field == null)) { + sb.append("field:"); + sb.append(field); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } - + public A withField(String field) { + this.field = field; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java index 9b902656fe..ecc01b928e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StatusDetailsBuilder extends V1StatusDetailsFluent implements VisitableBuilder{ + + V1StatusDetailsFluent fluent; + public V1StatusDetailsBuilder() { this(new V1StatusDetails()); } @@ -10,17 +14,16 @@ public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent) { this(fluent, new V1StatusDetails()); } - public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,V1StatusDetails instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StatusDetailsBuilder(V1StatusDetails instance) { this.fluent = this; this.copyInstance(instance); } - V1StatusDetailsFluent fluent; + public V1StatusDetailsBuilder(V1StatusDetailsFluent fluent,V1StatusDetails instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StatusDetails build() { V1StatusDetails buildable = new V1StatusDetails(); buildable.setCauses(fluent.buildCauses()); @@ -32,5 +35,4 @@ public V1StatusDetails build() { return buildable; } - } \ No newline at end of file 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..8ea672d6ae 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 @@ -1,104 +1,95 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatusDetailsFluent> extends BaseFluent{ - public V1StatusDetailsFluent() { - } - - public V1StatusDetailsFluent(V1StatusDetails instance) { - this.copyInstance(instance); - } +public class V1StatusDetailsFluent> extends BaseFluent{ + private ArrayList causes; private String group; private String kind; private String name; private Integer retryAfterSeconds; private String uid; - - protected void copyInstance(V1StatusDetails instance) { - instance = (instance != null ? instance : new V1StatusDetails()); - if (instance != null) { - this.withCauses(instance.getCauses()); - this.withGroup(instance.getGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - this.withRetryAfterSeconds(instance.getRetryAfterSeconds()); - this.withUid(instance.getUid()); - } - } - - 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);} - 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);} - return (A)this; + + public V1StatusDetailsFluent() { } - public A addToCauses(io.kubernetes.client.openapi.models.V1StatusCause... items) { - if (this.causes == null) {this.causes = new ArrayList();} - for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").add(builder);this.causes.add(builder);} return (A)this; + public V1StatusDetailsFluent(V1StatusDetails instance) { + this.copyInstance(instance); } - + public A addAllToCauses(Collection items) { - if (this.causes == null) {this.causes = new ArrayList();} - for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").add(builder);this.causes.add(builder);} return (A)this; + if (this.causes == null) { + this.causes = new ArrayList(); + } + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").add(builder); + this.causes.add(builder); + } + return (A) this; } - public A removeFromCauses(io.kubernetes.client.openapi.models.V1StatusCause... items) { - if (this.causes == null) return (A)this; - for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").remove(builder); this.causes.remove(builder);} return (A)this; + public CausesNested addNewCause() { + return new CausesNested(-1, null); } - public A removeAllFromCauses(Collection items) { - if (this.causes == null) return (A)this; - for (V1StatusCause item : items) {V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item);_visitables.get("causes").remove(builder); this.causes.remove(builder);} return (A)this; + public CausesNested addNewCauseLike(V1StatusCause item) { + return new CausesNested(-1, item); } - public A removeMatchingFromCauses(Predicate predicate) { - if (causes == null) return (A) this; - final Iterator each = causes.iterator(); - final List visitables = _visitables.get("causes"); - while (each.hasNext()) { - V1StatusCauseBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToCauses(V1StatusCause... items) { + if (this.causes == null) { + this.causes = new ArrayList(); } - return (A)this; + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").add(builder); + this.causes.add(builder); + } + return (A) this; } - public List buildCauses() { - return this.causes != null ? build(causes) : null; + 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(builder); + causes.add(index, builder); + } + return (A) this; } public V1StatusCause buildCause(int index) { return this.causes.get(index).build(); } + public List buildCauses() { + return this.causes != null ? build(causes) : null; + } + public V1StatusCause buildFirstCause() { return this.causes.get(0).build(); } @@ -116,196 +107,307 @@ public V1StatusCause buildMatchingCause(Predicate predicat return null; } - public boolean hasMatchingCause(Predicate predicate) { - for (V1StatusCauseBuilder item : causes) { - if (predicate.test(item)) { - return true; - } - } - return false; + protected void copyInstance(V1StatusDetails instance) { + instance = instance != null ? instance : new V1StatusDetails(); + if (instance != null) { + this.withCauses(instance.getCauses()); + this.withGroup(instance.getGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withRetryAfterSeconds(instance.getRetryAfterSeconds()); + this.withUid(instance.getUid()); + } } - public A withCauses(List causes) { - if (this.causes != null) { - this._visitables.get("causes").clear(); + public CausesNested editCause(int index) { + if (causes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "causes")); } - if (causes != null) { - this.causes = new ArrayList(); - for (V1StatusCause item : causes) { - this.addToCauses(item); - } - } else { - this.causes = null; + return this.setNewCauseLike(index, this.buildCause(index)); + } + + public CausesNested editFirstCause() { + if (causes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "causes")); } - return (A) this; + return this.setNewCauseLike(0, this.buildCause(0)); } - public A withCauses(io.kubernetes.client.openapi.models.V1StatusCause... causes) { - if (this.causes != null) { - this.causes.clear(); - _visitables.remove("causes"); + public CausesNested editLastCause() { + int index = causes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "causes")); } - if (causes != null) { - for (V1StatusCause item : causes) { - this.addToCauses(item); + return this.setNewCauseLike(index, this.buildCause(index)); + } + + public CausesNested editMatchingCause(Predicate predicate) { + int index = -1; + for (int i = 0;i < causes.size();i++) { + if (predicate.test(causes.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "causes")); + } + return this.setNewCauseLike(index, this.buildCause(index)); } - public boolean hasCauses() { - return this.causes != null && !this.causes.isEmpty(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatusDetailsFluent that = (V1StatusDetailsFluent) o; + if (!(Objects.equals(causes, that.causes))) { + return false; + } + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(retryAfterSeconds, that.retryAfterSeconds))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; } - public CausesNested addNewCause() { - return new CausesNested(-1, null); + public String getGroup() { + return this.group; } - public CausesNested addNewCauseLike(V1StatusCause item) { - return new CausesNested(-1, item); + public String getKind() { + return this.kind; } - public CausesNested setNewCauseLike(int index,V1StatusCause item) { - return new CausesNested(index, item); + public String getName() { + return this.name; } - public CausesNested editCause(int index) { - if (causes.size() <= index) throw new RuntimeException("Can't edit causes. Index exceeds size."); - return setNewCauseLike(index, buildCause(index)); + public Integer getRetryAfterSeconds() { + return this.retryAfterSeconds; } - public CausesNested editFirstCause() { - if (causes.size() == 0) throw new RuntimeException("Can't edit first causes. The list is empty."); - return setNewCauseLike(0, buildCause(0)); + public String getUid() { + return this.uid; } - public CausesNested editLastCause() { - int index = causes.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last causes. The list is empty."); - return setNewCauseLike(index, buildCause(index)); + public boolean hasCauses() { + return this.causes != null && !(this.causes.isEmpty()); } - public CausesNested editMatchingCause(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (V1StatusCauseBuilder item : causes) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public boolean hasGroup() { - return this.group != null; + public boolean hasName() { + return this.name != null; } - public String getKind() { - return this.kind; + public boolean hasRetryAfterSeconds() { + return this.retryAfterSeconds != null; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasUid() { + return this.uid != null; } - public boolean hasKind() { - return this.kind != null; + public int hashCode() { + return Objects.hash(causes, group, kind, name, retryAfterSeconds, uid); } - public String getName() { - return this.name; + public A removeAllFromCauses(Collection items) { + if (this.causes == null) { + return (A) this; + } + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").remove(builder); + this.causes.remove(builder); + } + return (A) this; } - public A withName(String name) { - this.name = name; + public A removeFromCauses(V1StatusCause... items) { + if (this.causes == null) { + return (A) this; + } + for (V1StatusCause item : items) { + V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); + _visitables.get("causes").remove(builder); + this.causes.remove(builder); + } return (A) this; } - public boolean hasName() { - return this.name != null; + public A removeMatchingFromCauses(Predicate predicate) { + if (causes == null) { + return (A) this; + } + Iterator each = causes.iterator(); + List visitables = _visitables.get("causes"); + while (each.hasNext()) { + V1StatusCauseBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public Integer getRetryAfterSeconds() { - return this.retryAfterSeconds; + public CausesNested setNewCauseLike(int index,V1StatusCause item) { + return new CausesNested(index, item); } - public A withRetryAfterSeconds(Integer retryAfterSeconds) { - this.retryAfterSeconds = retryAfterSeconds; + 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").add(builder); + causes.set(index, builder); + } return (A) this; } - public boolean hasRetryAfterSeconds() { - return this.retryAfterSeconds != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(causes == null) && !(causes.isEmpty())) { + sb.append("causes:"); + sb.append(causes); + sb.append(","); + } + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(retryAfterSeconds == null)) { + sb.append("retryAfterSeconds:"); + sb.append(retryAfterSeconds); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); } - public String getUid() { - return this.uid; + public A withCauses(List causes) { + if (this.causes != null) { + this._visitables.get("causes").clear(); + } + if (causes != null) { + this.causes = new ArrayList(); + for (V1StatusCause item : causes) { + this.addToCauses(item); + } + } else { + this.causes = null; + } + return (A) this; } - public A withUid(String uid) { - this.uid = uid; + public A withCauses(V1StatusCause... causes) { + if (this.causes != null) { + this.causes.clear(); + _visitables.remove("causes"); + } + if (causes != null) { + for (V1StatusCause item : causes) { + this.addToCauses(item); + } + } return (A) this; } - public boolean hasUid() { - return this.uid != null; + public A withGroup(String group) { + this.group = group; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1StatusDetailsFluent that = (V1StatusDetailsFluent) o; - if (!java.util.Objects.equals(causes, that.causes)) return false; - 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(name, that.name)) return false; - if (!java.util.Objects.equals(retryAfterSeconds, that.retryAfterSeconds)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - return true; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(causes, group, kind, name, retryAfterSeconds, uid, super.hashCode()); + public A withName(String name) { + this.name = name; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (causes != null && !causes.isEmpty()) { sb.append("causes:"); sb.append(causes + ","); } - if (group != null) { sb.append("group:"); sb.append(group + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (retryAfterSeconds != null) { sb.append("retryAfterSeconds:"); sb.append(retryAfterSeconds + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid); } - sb.append("}"); - return sb.toString(); + public A withRetryAfterSeconds(Integer retryAfterSeconds) { + this.retryAfterSeconds = retryAfterSeconds; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; } public class CausesNested extends V1StatusCauseFluent> implements Nested{ + + V1StatusCauseBuilder builder; + int index; + CausesNested(int index,V1StatusCause item) { this.index = index; this.builder = new V1StatusCauseBuilder(this, item); } - V1StatusCauseBuilder builder; - int index; - + public N and() { - return (N) V1StatusDetailsFluent.this.setToCauses(index,builder.build()); + return (N) V1StatusDetailsFluent.this.setToCauses(index, builder.build()); } public N endCause() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java index 5e531fe992..78be5c4944 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java @@ -1,23 +1,21 @@ 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.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StatusFluent> extends BaseFluent{ - public V1StatusFluent() { - } - - public V1StatusFluent(V1Status instance) { - this.copyInstance(instance); - } +public class V1StatusFluent> extends BaseFluent{ + private String apiVersion; private Integer code; private V1StatusDetailsBuilder details; @@ -26,115 +24,234 @@ public V1StatusFluent(V1Status instance) { private V1ListMetaBuilder metadata; private String reason; private String status; + + public V1StatusFluent() { + } + + public V1StatusFluent(V1Status instance) { + this.copyInstance(instance); + } + + public V1StatusDetails buildDetails() { + return this.details != null ? this.details.build() : null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } protected void copyInstance(V1Status instance) { - instance = (instance != null ? instance : new V1Status()); + instance = instance != null ? instance : new V1Status(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withCode(instance.getCode()); - this.withDetails(instance.getDetails()); - this.withKind(instance.getKind()); - this.withMessage(instance.getMessage()); - this.withMetadata(instance.getMetadata()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - } + this.withApiVersion(instance.getApiVersion()); + this.withCode(instance.getCode()); + this.withDetails(instance.getDetails()); + this.withKind(instance.getKind()); + this.withMessage(instance.getMessage()); + this.withMetadata(instance.getMetadata()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + } } - public String getApiVersion() { - return this.apiVersion; + public DetailsNested editDetails() { + return this.withNewDetailsLike(Optional.ofNullable(this.buildDetails()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public DetailsNested editOrNewDetails() { + return this.withNewDetailsLike(Optional.ofNullable(this.buildDetails()).orElse(new V1StatusDetailsBuilder().build())); + } + + public DetailsNested editOrNewDetailsLike(V1StatusDetails item) { + return this.withNewDetailsLike(Optional.ofNullable(this.buildDetails()).orElse(item)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StatusFluent that = (V1StatusFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(code, that.code))) { + return false; + } + if (!(Objects.equals(details, that.details))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public Integer getCode() { return this.code; } - public A withCode(Integer code) { - this.code = code; - return (A) this; + public String getKind() { + return this.kind; } - public boolean hasCode() { - return this.code != null; + public String getMessage() { + return this.message; } - public V1StatusDetails buildDetails() { - return this.details != null ? this.details.build() : null; + public String getReason() { + return this.reason; } - public A withDetails(V1StatusDetails details) { - this._visitables.remove("details"); - if (details != null) { - this.details = new V1StatusDetailsBuilder(details); - this._visitables.get("details").add(this.details); - } else { - this.details = null; - this._visitables.get("details").remove(this.details); - } - return (A) this; + public String getStatus() { + return this.status; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasCode() { + return this.code != null; } public boolean hasDetails() { return this.details != null; } - public DetailsNested withNewDetails() { - return new DetailsNested(null); + public boolean hasKind() { + return this.kind != null; } - public DetailsNested withNewDetailsLike(V1StatusDetails item) { - return new DetailsNested(item); + public boolean hasMessage() { + return this.message != null; } - public DetailsNested editDetails() { - return withNewDetailsLike(java.util.Optional.ofNullable(buildDetails()).orElse(null)); + public boolean hasMetadata() { + return this.metadata != null; } - public DetailsNested editOrNewDetails() { - return withNewDetailsLike(java.util.Optional.ofNullable(buildDetails()).orElse(new V1StatusDetailsBuilder().build())); + public boolean hasReason() { + return this.reason != null; } - public DetailsNested editOrNewDetailsLike(V1StatusDetails item) { - return withNewDetailsLike(java.util.Optional.ofNullable(buildDetails()).orElse(item)); + public boolean hasStatus() { + return this.status != null; } - public String getKind() { - return this.kind; + public int hashCode() { + return Objects.hash(apiVersion, code, details, kind, message, metadata, reason, status); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(code == null)) { + sb.append("code:"); + sb.append(code); + sb.append(","); + } + if (!(details == null)) { + sb.append("details:"); + sb.append(details); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); } - public boolean hasKind() { - return this.kind != null; + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public String getMessage() { - return this.message; + public A withCode(Integer code) { + this.code = code; + return (A) this; } - public A withMessage(String message) { - this.message = message; + public A withDetails(V1StatusDetails details) { + this._visitables.remove("details"); + if (details != null) { + this.details = new V1StatusDetailsBuilder(details); + this._visitables.get("details").add(this.details); + } else { + this.details = null; + this._visitables.get("details").remove(this.details); + } return (A) this; } - public boolean hasMessage() { - return this.message != null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public V1ListMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public A withMessage(String message) { + this.message = message; + return (A) this; } public A withMetadata(V1ListMeta metadata) { @@ -149,8 +266,12 @@ public A withMetadata(V1ListMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; + public DetailsNested withNewDetails() { + return new DetailsNested(null); + } + + public DetailsNested withNewDetailsLike(V1StatusDetails item) { + return new DetailsNested(item); } public MetadataNested withNewMetadata() { @@ -161,84 +282,23 @@ 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 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 class DetailsNested extends V1StatusDetailsFluent> implements Nested{ - public boolean hasStatus() { - return this.status != 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; - V1StatusFluent that = (V1StatusFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(code, that.code)) return false; - if (!java.util.Objects.equals(details, that.details)) return false; - if (!java.util.Objects.equals(kind, that.kind)) return false; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(metadata, that.metadata)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - if (!java.util.Objects.equals(status, that.status)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, code, details, kind, message, metadata, reason, status, super.hashCode()); - } + V1StatusDetailsBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (code != null) { sb.append("code:"); sb.append(code + ","); } - if (details != null) { sb.append("details:"); sb.append(details + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason + ","); } - if (status != null) { sb.append("status:"); sb.append(status); } - sb.append("}"); - return sb.toString(); - } - public class DetailsNested extends V1StatusDetailsFluent> implements Nested{ DetailsNested(V1StatusDetails item) { this.builder = new V1StatusDetailsBuilder(this, item); } - V1StatusDetailsBuilder builder; - + public N and() { return (N) V1StatusFluent.this.withDetails(builder.build()); } @@ -247,14 +307,15 @@ public N endDetails() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1StatusFluent.this.withMetadata(builder.build()); } @@ -263,7 +324,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java index 82fe5eb151..e86662f8dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StorageClassBuilder extends V1StorageClassFluent implements VisitableBuilder{ + + V1StorageClassFluent fluent; + public V1StorageClassBuilder() { this(new V1StorageClass()); } @@ -10,17 +14,16 @@ public V1StorageClassBuilder(V1StorageClassFluent fluent) { this(fluent, new V1StorageClass()); } - public V1StorageClassBuilder(V1StorageClassFluent fluent,V1StorageClass instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StorageClassBuilder(V1StorageClass instance) { this.fluent = this; this.copyInstance(instance); } - V1StorageClassFluent fluent; + public V1StorageClassBuilder(V1StorageClassFluent fluent,V1StorageClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StorageClass build() { V1StorageClass buildable = new V1StorageClass(); buildable.setAllowVolumeExpansion(fluent.getAllowVolumeExpansion()); @@ -36,5 +39,4 @@ public V1StorageClass build() { return buildable; } - } \ No newline at end of file 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..efd1105689 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 @@ -1,31 +1,29 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.Boolean; -import java.util.Collection; -import java.lang.Object; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StorageClassFluent> extends BaseFluent{ - public V1StorageClassFluent() { - } - - public V1StorageClassFluent(V1StorageClass instance) { - this.copyInstance(instance); - } +public class V1StorageClassFluent> extends BaseFluent{ + private Boolean allowVolumeExpansion; private ArrayList allowedTopologies; private String apiVersion; @@ -36,82 +34,107 @@ public V1StorageClassFluent(V1StorageClass instance) { private String provisioner; private String reclaimPolicy; private String volumeBindingMode; - - protected void copyInstance(V1StorageClass instance) { - instance = (instance != null ? instance : new V1StorageClass()); - if (instance != null) { - this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); - this.withAllowedTopologies(instance.getAllowedTopologies()); - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withMountOptions(instance.getMountOptions()); - this.withParameters(instance.getParameters()); - this.withProvisioner(instance.getProvisioner()); - this.withReclaimPolicy(instance.getReclaimPolicy()); - this.withVolumeBindingMode(instance.getVolumeBindingMode()); - } + + public V1StorageClassFluent() { } - public Boolean getAllowVolumeExpansion() { - return this.allowVolumeExpansion; + public V1StorageClassFluent(V1StorageClass instance) { + this.copyInstance(instance); + } + + public A addAllToAllowedTopologies(Collection items) { + if (this.allowedTopologies == null) { + this.allowedTopologies = new ArrayList(); + } + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").add(builder); + this.allowedTopologies.add(builder); + } + return (A) this; } - public A withAllowVolumeExpansion(Boolean allowVolumeExpansion) { - this.allowVolumeExpansion = allowVolumeExpansion; + public A addAllToMountOptions(Collection items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + for (String item : items) { + this.mountOptions.add(item); + } return (A) this; } - public boolean hasAllowVolumeExpansion() { - return this.allowVolumeExpansion != null; + public AllowedTopologiesNested addNewAllowedTopology() { + return new AllowedTopologiesNested(-1, null); } - 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);} - return (A)this; + public AllowedTopologiesNested addNewAllowedTopologyLike(V1TopologySelectorTerm item) { + return new AllowedTopologiesNested(-1, item); } - 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);} - return (A)this; + public A addToAllowedTopologies(V1TopologySelectorTerm... items) { + if (this.allowedTopologies == null) { + this.allowedTopologies = new ArrayList(); + } + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").add(builder); + this.allowedTopologies.add(builder); + } + return (A) this; } - public A addToAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { - if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} - for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").add(builder);this.allowedTopologies.add(builder);} return (A)this; + 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(builder); + allowedTopologies.add(index, builder); + } + return (A) this; } - public A addAllToAllowedTopologies(Collection items) { - if (this.allowedTopologies == null) {this.allowedTopologies = new ArrayList();} - for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").add(builder);this.allowedTopologies.add(builder);} return (A)this; + public A addToMountOptions(String... items) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + for (String item : items) { + this.mountOptions.add(item); + } + return (A) this; } - public A removeFromAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... items) { - if (this.allowedTopologies == null) return (A)this; - for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").remove(builder); this.allowedTopologies.remove(builder);} return (A)this; + public A addToMountOptions(int index,String item) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + this.mountOptions.add(index, item); + return (A) this; } - public A removeAllFromAllowedTopologies(Collection items) { - if (this.allowedTopologies == null) return (A)this; - for (V1TopologySelectorTerm item : items) {V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item);_visitables.get("allowedTopologies").remove(builder); this.allowedTopologies.remove(builder);} 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 removeMatchingFromAllowedTopologies(Predicate predicate) { - if (allowedTopologies == null) return (A) this; - final Iterator each = allowedTopologies.iterator(); - final List visitables = _visitables.get("allowedTopologies"); - while (each.hasNext()) { - V1TopologySelectorTermBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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; + return (A) this; } public List buildAllowedTopologies() { @@ -139,213 +162,457 @@ public V1TopologySelectorTerm buildMatchingAllowedTopology(Predicate predicate) { - for (V1TopologySelectorTermBuilder item : allowedTopologies) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; } - public A withAllowedTopologies(List allowedTopologies) { - if (this.allowedTopologies != null) { - this._visitables.get("allowedTopologies").clear(); + protected void copyInstance(V1StorageClass instance) { + instance = instance != null ? instance : new V1StorageClass(); + if (instance != null) { + this.withAllowVolumeExpansion(instance.getAllowVolumeExpansion()); + this.withAllowedTopologies(instance.getAllowedTopologies()); + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withMountOptions(instance.getMountOptions()); + this.withParameters(instance.getParameters()); + this.withProvisioner(instance.getProvisioner()); + this.withReclaimPolicy(instance.getReclaimPolicy()); + this.withVolumeBindingMode(instance.getVolumeBindingMode()); } - if (allowedTopologies != null) { - this.allowedTopologies = new ArrayList(); - for (V1TopologySelectorTerm item : allowedTopologies) { - this.addToAllowedTopologies(item); - } - } else { - this.allowedTopologies = null; + } + + public AllowedTopologiesNested editAllowedTopology(int index) { + if (allowedTopologies.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "allowedTopologies")); } - return (A) this; + return this.setNewAllowedTopologyLike(index, this.buildAllowedTopology(index)); } - public A withAllowedTopologies(io.kubernetes.client.openapi.models.V1TopologySelectorTerm... allowedTopologies) { - if (this.allowedTopologies != null) { - this.allowedTopologies.clear(); - _visitables.remove("allowedTopologies"); + public AllowedTopologiesNested editFirstAllowedTopology() { + if (allowedTopologies.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "allowedTopologies")); } - if (allowedTopologies != null) { - for (V1TopologySelectorTerm item : allowedTopologies) { - this.addToAllowedTopologies(item); + return this.setNewAllowedTopologyLike(0, this.buildAllowedTopology(0)); + } + + public AllowedTopologiesNested editLastAllowedTopology() { + int index = allowedTopologies.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "allowedTopologies")); + } + return this.setNewAllowedTopologyLike(index, this.buildAllowedTopology(index)); + } + + public AllowedTopologiesNested editMatchingAllowedTopology(Predicate predicate) { + int index = -1; + for (int i = 0;i < allowedTopologies.size();i++) { + if (predicate.test(allowedTopologies.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "allowedTopologies")); + } + return this.setNewAllowedTopologyLike(index, this.buildAllowedTopology(index)); } - public boolean hasAllowedTopologies() { - return this.allowedTopologies != null && !this.allowedTopologies.isEmpty(); + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public AllowedTopologiesNested addNewAllowedTopology() { - return new AllowedTopologiesNested(-1, null); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public AllowedTopologiesNested addNewAllowedTopologyLike(V1TopologySelectorTerm item) { - return new AllowedTopologiesNested(-1, item); + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public AllowedTopologiesNested setNewAllowedTopologyLike(int index,V1TopologySelectorTerm item) { - return new AllowedTopologiesNested(index, item); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageClassFluent that = (V1StorageClassFluent) o; + if (!(Objects.equals(allowVolumeExpansion, that.allowVolumeExpansion))) { + return false; + } + if (!(Objects.equals(allowedTopologies, that.allowedTopologies))) { + return false; + } + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(mountOptions, that.mountOptions))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + if (!(Objects.equals(provisioner, that.provisioner))) { + return false; + } + if (!(Objects.equals(reclaimPolicy, that.reclaimPolicy))) { + return false; + } + if (!(Objects.equals(volumeBindingMode, that.volumeBindingMode))) { + return false; + } + return true; } - public AllowedTopologiesNested editAllowedTopology(int index) { - if (allowedTopologies.size() <= index) throw new RuntimeException("Can't edit allowedTopologies. Index exceeds size."); - return setNewAllowedTopologyLike(index, buildAllowedTopology(index)); + public Boolean getAllowVolumeExpansion() { + return this.allowVolumeExpansion; } - public AllowedTopologiesNested editFirstAllowedTopology() { - if (allowedTopologies.size() == 0) throw new RuntimeException("Can't edit first allowedTopologies. The list is empty."); - return setNewAllowedTopologyLike(0, buildAllowedTopology(0)); + public String getApiVersion() { + return this.apiVersion; } - public AllowedTopologiesNested editLastAllowedTopology() { - int index = allowedTopologies.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last allowedTopologies. The list is empty."); - return setNewAllowedTopologyLike(index, buildAllowedTopology(index)); + public String getFirstMountOption() { + return this.mountOptions.get(0); } - public AllowedTopologiesNested editMatchingAllowedTopology(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + for (String item : mountOptions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getMountOption(int index) { + return this.mountOptions.get(index); } - public String getKind() { - return this.kind; + public List getMountOptions() { + return this.mountOptions; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public Map getParameters() { + return this.parameters; + } + + public String getProvisioner() { + return this.provisioner; + } + + public String getReclaimPolicy() { + return this.reclaimPolicy; + } + + public String getVolumeBindingMode() { + return this.volumeBindingMode; + } + + public boolean hasAllowVolumeExpansion() { + return this.allowVolumeExpansion != null; + } + + public boolean hasAllowedTopologies() { + return this.allowedTopologies != null && !(this.allowedTopologies.isEmpty()); + } + + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMatchingAllowedTopology(Predicate predicate) { + for (V1TopologySelectorTermBuilder item : allowedTopologies) { + if (predicate.test(item)) { + return true; + } + } + return false; } - 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 hasMatchingMountOption(Predicate predicate) { + for (String item : mountOptions) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasMetadata() { return this.metadata != null; } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public boolean hasMountOptions() { + return this.mountOptions != null && !(this.mountOptions.isEmpty()); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public boolean hasParameters() { + return this.parameters != null; } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public boolean hasProvisioner() { + return this.provisioner != null; } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public boolean hasReclaimPolicy() { + return this.reclaimPolicy != null; } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public boolean hasVolumeBindingMode() { + return this.volumeBindingMode != null; } - public A addToMountOptions(int index,String item) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - this.mountOptions.add(index, item); - return (A)this; + public int hashCode() { + return Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode); } - public A setToMountOptions(int index,String item) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - this.mountOptions.set(index, item); return (A)this; + public A removeAllFromAllowedTopologies(Collection items) { + if (this.allowedTopologies == null) { + return (A) this; + } + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").remove(builder); + this.allowedTopologies.remove(builder); + } + return (A) this; } - public A addToMountOptions(java.lang.String... items) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - for (String item : items) {this.mountOptions.add(item);} return (A)this; + public A removeAllFromMountOptions(Collection items) { + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); + } + return (A) this; } - public A addAllToMountOptions(Collection items) { - if (this.mountOptions == null) {this.mountOptions = new ArrayList();} - for (String item : items) {this.mountOptions.add(item);} return (A)this; + public A removeFromAllowedTopologies(V1TopologySelectorTerm... items) { + if (this.allowedTopologies == null) { + return (A) this; + } + for (V1TopologySelectorTerm item : items) { + V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); + _visitables.get("allowedTopologies").remove(builder); + this.allowedTopologies.remove(builder); + } + return (A) this; } - public A removeFromMountOptions(java.lang.String... items) { - if (this.mountOptions == null) return (A)this; - for (String item : items) { this.mountOptions.remove(item);} return (A)this; + public A removeFromMountOptions(String... items) { + if (this.mountOptions == null) { + return (A) this; + } + for (String item : items) { + this.mountOptions.remove(item); + } + return (A) this; } - public A removeAllFromMountOptions(Collection items) { - if (this.mountOptions == null) return (A)this; - for (String item : items) { this.mountOptions.remove(item);} 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 List getMountOptions() { - return this.mountOptions; + 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 String getMountOption(int index) { - return this.mountOptions.get(index); + public A removeMatchingFromAllowedTopologies(Predicate predicate) { + if (allowedTopologies == null) { + return (A) this; + } + Iterator each = allowedTopologies.iterator(); + List visitables = _visitables.get("allowedTopologies"); + while (each.hasNext()) { + V1TopologySelectorTermBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public String getFirstMountOption() { - return this.mountOptions.get(0); + public AllowedTopologiesNested setNewAllowedTopologyLike(int index,V1TopologySelectorTerm item) { + return new AllowedTopologiesNested(index, item); } - public String getLastMountOption() { - return this.mountOptions.get(mountOptions.size() - 1); + 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").add(builder); + allowedTopologies.set(index, builder); + } + return (A) this; } - public String getMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public A setToMountOptions(int index,String item) { + if (this.mountOptions == null) { + this.mountOptions = new ArrayList(); + } + this.mountOptions.set(index, item); + return (A) this; } - public boolean hasMatchingMountOption(Predicate predicate) { - for (String item : mountOptions) { - if (predicate.test(item)) { - return true; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allowVolumeExpansion == null)) { + sb.append("allowVolumeExpansion:"); + sb.append(allowVolumeExpansion); + sb.append(","); + } + if (!(allowedTopologies == null) && !(allowedTopologies.isEmpty())) { + sb.append("allowedTopologies:"); + sb.append(allowedTopologies); + sb.append(","); + } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(mountOptions == null) && !(mountOptions.isEmpty())) { + sb.append("mountOptions:"); + sb.append(mountOptions); + sb.append(","); + } + if (!(parameters == null) && !(parameters.isEmpty())) { + sb.append("parameters:"); + sb.append(parameters); + sb.append(","); + } + if (!(provisioner == null)) { + sb.append("provisioner:"); + sb.append(provisioner); + sb.append(","); + } + if (!(reclaimPolicy == null)) { + sb.append("reclaimPolicy:"); + sb.append(reclaimPolicy); + sb.append(","); + } + if (!(volumeBindingMode == null)) { + sb.append("volumeBindingMode:"); + sb.append(volumeBindingMode); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllowVolumeExpansion() { + return withAllowVolumeExpansion(true); + } + + public A withAllowVolumeExpansion(Boolean allowVolumeExpansion) { + this.allowVolumeExpansion = allowVolumeExpansion; + return (A) this; + } + + public A withAllowedTopologies(List allowedTopologies) { + if (this.allowedTopologies != null) { + this._visitables.get("allowedTopologies").clear(); + } + if (allowedTopologies != null) { + this.allowedTopologies = new ArrayList(); + for (V1TopologySelectorTerm item : allowedTopologies) { + this.addToAllowedTopologies(item); } + } else { + this.allowedTopologies = null; + } + return (A) this; + } + + public A withAllowedTopologies(V1TopologySelectorTerm... allowedTopologies) { + if (this.allowedTopologies != null) { + this.allowedTopologies.clear(); + _visitables.remove("allowedTopologies"); + } + if (allowedTopologies != null) { + for (V1TopologySelectorTerm item : allowedTopologies) { + this.addToAllowedTopologies(item); } - return false; + } + return (A) this; + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 A withMountOptions(List mountOptions) { @@ -360,7 +627,7 @@ public A withMountOptions(List mountOptions) { return (A) this; } - public A withMountOptions(java.lang.String... mountOptions) { + public A withMountOptions(String... mountOptions) { if (this.mountOptions != null) { this.mountOptions.clear(); _visitables.remove("mountOptions"); @@ -373,32 +640,12 @@ public A withMountOptions(java.lang.String... mountOptions) { return (A) this; } - public boolean hasMountOptions() { - return this.mountOptions != null && !this.mountOptions.isEmpty(); - } - - 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); } - public Map getParameters() { - return this.parameters; + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } public A withParameters(Map parameters) { @@ -410,115 +657,47 @@ public A withParameters(Map parameters) { return (A) this; } - public boolean hasParameters() { - return this.parameters != null; - } - - public String getProvisioner() { - return this.provisioner; - } - public A withProvisioner(String provisioner) { this.provisioner = provisioner; return (A) this; } - public boolean hasProvisioner() { - return this.provisioner != null; - } - - public String getReclaimPolicy() { - return this.reclaimPolicy; - } - public A withReclaimPolicy(String reclaimPolicy) { this.reclaimPolicy = reclaimPolicy; return (A) this; } - public boolean hasReclaimPolicy() { - return this.reclaimPolicy != null; - } - - public String getVolumeBindingMode() { - return this.volumeBindingMode; - } - public A withVolumeBindingMode(String volumeBindingMode) { this.volumeBindingMode = volumeBindingMode; return (A) this; } + public class AllowedTopologiesNested extends V1TopologySelectorTermFluent> implements Nested{ - public boolean hasVolumeBindingMode() { - return this.volumeBindingMode != 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; - V1StorageClassFluent that = (V1StorageClassFluent) o; - if (!java.util.Objects.equals(allowVolumeExpansion, that.allowVolumeExpansion)) return false; - if (!java.util.Objects.equals(allowedTopologies, that.allowedTopologies)) return false; - 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(mountOptions, that.mountOptions)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; - if (!java.util.Objects.equals(provisioner, that.provisioner)) return false; - if (!java.util.Objects.equals(reclaimPolicy, that.reclaimPolicy)) return false; - if (!java.util.Objects.equals(volumeBindingMode, that.volumeBindingMode)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (allowVolumeExpansion != null) { sb.append("allowVolumeExpansion:"); sb.append(allowVolumeExpansion + ","); } - if (allowedTopologies != null && !allowedTopologies.isEmpty()) { sb.append("allowedTopologies:"); sb.append(allowedTopologies + ","); } - 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 (mountOptions != null && !mountOptions.isEmpty()) { sb.append("mountOptions:"); sb.append(mountOptions + ","); } - if (parameters != null && !parameters.isEmpty()) { sb.append("parameters:"); sb.append(parameters + ","); } - if (provisioner != null) { sb.append("provisioner:"); sb.append(provisioner + ","); } - if (reclaimPolicy != null) { sb.append("reclaimPolicy:"); sb.append(reclaimPolicy + ","); } - if (volumeBindingMode != null) { sb.append("volumeBindingMode:"); sb.append(volumeBindingMode); } - sb.append("}"); - return sb.toString(); - } + V1TopologySelectorTermBuilder builder; + int index; - public A withAllowVolumeExpansion() { - return withAllowVolumeExpansion(true); - } - public class AllowedTopologiesNested extends V1TopologySelectorTermFluent> implements Nested{ AllowedTopologiesNested(int index,V1TopologySelectorTerm item) { this.index = index; this.builder = new V1TopologySelectorTermBuilder(this, item); } - V1TopologySelectorTermBuilder builder; - int index; - + public N and() { - return (N) V1StorageClassFluent.this.setToAllowedTopologies(index,builder.build()); + return (N) V1StorageClassFluent.this.setToAllowedTopologies(index, builder.build()); } public N endAllowedTopology() { return and(); } - } public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1StorageClassFluent.this.withMetadata(builder.build()); } @@ -527,7 +706,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java index 53c37c41bd..131c4381c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StorageClassListBuilder extends V1StorageClassListFluent implements VisitableBuilder{ + + V1StorageClassListFluent fluent; + public V1StorageClassListBuilder() { this(new V1StorageClassList()); } @@ -10,17 +14,16 @@ public V1StorageClassListBuilder(V1StorageClassListFluent fluent) { this(fluent, new V1StorageClassList()); } - public V1StorageClassListBuilder(V1StorageClassListFluent fluent,V1StorageClassList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StorageClassListBuilder(V1StorageClassList instance) { this.fluent = this; this.copyInstance(instance); } - V1StorageClassListFluent fluent; + public V1StorageClassListBuilder(V1StorageClassListFluent fluent,V1StorageClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StorageClassList build() { V1StorageClassList buildable = new V1StorageClassList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1StorageClassList build() { return buildable; } - } \ No newline at end of file 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..64e5ef44f1 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StorageClassListFluent> extends BaseFluent{ +public class V1StorageClassListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1StorageClassListFluent() { } public V1StorageClassListFluent(V1StorageClassList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1StorageClassList instance) { - instance = (instance != null ? instance : new V1StorageClassList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1StorageClass item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1StorageClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1StorageClass item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1StorageClass buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1StorageClass buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { - if (this.items == null) return (A)this; - for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1StorageClass buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1StorageClass item : items) {V1StorageClassBuilder builder = new V1StorageClassBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1StorageClass buildMatchingItem(Predicate predicate) { + for (V1StorageClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1StorageClassBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1StorageClassList instance) { + instance = instance != null ? instance : new V1StorageClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1StorageClass buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1StorageClass buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1StorageClass buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageClassListFluent that = (V1StorageClassListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1StorageClass buildMatchingItem(Predicate predicate) { - for (V1StorageClassBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1StorageClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1StorageClass item : items) { + V1StorageClassBuilder builder = new V1StorageClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1StorageClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1StorageClass item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1StorageClass... items) { + public A withItems(V1StorageClass... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1StorageClass... items) return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1StorageClass item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1StorageClass 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1StorageClassFluent> implements Nested{ - 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; - V1StorageClassListFluent that = (V1StorageClassListFluent) 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()); - } + V1StorageClassBuilder builder; + int index; - 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 V1StorageClassFluent> implements Nested{ ItemsNested(int index,V1StorageClass item) { this.index = index; this.builder = new V1StorageClassBuilder(this, item); } - V1StorageClassBuilder builder; - int index; - + public N and() { - return (N) V1StorageClassListFluent.this.setToItems(index,builder.build()); + return (N) V1StorageClassListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1StorageClassListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java index 29f1f23c4d..74574a1949 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StorageOSPersistentVolumeSourceBuilder extends V1StorageOSPersistentVolumeSourceFluent implements VisitableBuilder{ + + V1StorageOSPersistentVolumeSourceFluent fluent; + public V1StorageOSPersistentVolumeSourceBuilder() { this(new V1StorageOSPersistentVolumeSource()); } @@ -10,17 +14,16 @@ public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourc this(fluent, new V1StorageOSPersistentVolumeSource()); } - public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourceFluent fluent,V1StorageOSPersistentVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1StorageOSPersistentVolumeSourceFluent fluent; + public V1StorageOSPersistentVolumeSourceBuilder(V1StorageOSPersistentVolumeSourceFluent fluent,V1StorageOSPersistentVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StorageOSPersistentVolumeSource build() { V1StorageOSPersistentVolumeSource buildable = new V1StorageOSPersistentVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -31,5 +34,4 @@ public V1StorageOSPersistentVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java index b8e4352540..55c9056f9e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java @@ -1,170 +1,212 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StorageOSPersistentVolumeSourceFluent> extends BaseFluent{ +public class V1StorageOSPersistentVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private V1ObjectReferenceBuilder secretRef; + private String volumeName; + private String volumeNamespace; + public V1StorageOSPersistentVolumeSourceFluent() { } public V1StorageOSPersistentVolumeSourceFluent(V1StorageOSPersistentVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private V1ObjectReferenceBuilder secretRef; - private String volumeName; - private String volumeNamespace; + + public V1ObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1StorageOSPersistentVolumeSource instance) { - instance = (instance != null ? instance : new V1StorageOSPersistentVolumeSource()); + instance = instance != null ? instance : new V1StorageOSPersistentVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withVolumeName(instance.getVolumeName()); - this.withVolumeNamespace(instance.getVolumeNamespace()); - } + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withVolumeName(instance.getVolumeName()); + this.withVolumeNamespace(instance.getVolumeNamespace()); + } } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1ObjectReferenceBuilder().build())); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRefLike(V1ObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageOSPersistentVolumeSourceFluent that = (V1StorageOSPersistentVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + if (!(Objects.equals(volumeNamespace, that.volumeNamespace))) { + return false; + } + return true; + } + + public String getFsType() { + return this.fsType; } public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public String getVolumeName() { + return this.volumeName; } - public boolean hasReadOnly() { - return this.readOnly != null; + public String getVolumeNamespace() { + return this.volumeNamespace; } - public V1ObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public boolean hasFsType() { + return this.fsType != null; } - public A withSecretRef(V1ObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1ObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } public boolean hasSecretRef() { return this.secretRef != null; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1ObjectReference item) { - return new SecretRefNested(item); + public boolean hasVolumeName() { + return this.volumeName != null; } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + public boolean hasVolumeNamespace() { + return this.volumeNamespace != null; } - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1ObjectReferenceBuilder().build())); + public int hashCode() { + return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); } - public SecretRefNested editOrNewSecretRefLike(V1ObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + sb.append(","); + } + if (!(volumeNamespace == null)) { + sb.append("volumeNamespace:"); + sb.append(volumeNamespace); + } + sb.append("}"); + return sb.toString(); } - public String getVolumeName() { - return this.volumeName; + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public boolean hasVolumeName() { - return this.volumeName != null; + public SecretRefNested withNewSecretRefLike(V1ObjectReference item) { + return new SecretRefNested(item); } - public String getVolumeNamespace() { - return this.volumeNamespace; + public A withReadOnly() { + return withReadOnly(true); } - public A withVolumeNamespace(String volumeNamespace) { - this.volumeNamespace = volumeNamespace; + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; return (A) this; } - public boolean hasVolumeNamespace() { - return this.volumeNamespace != null; + public A withSecretRef(V1ObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1ObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1StorageOSPersistentVolumeSourceFluent that = (V1StorageOSPersistentVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; - if (!java.util.Objects.equals(volumeNamespace, that.volumeNamespace)) return false; - return true; + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); + public A withVolumeNamespace(String volumeNamespace) { + this.volumeNamespace = volumeNamespace; + return (A) this; } + public class SecretRefNested extends V1ObjectReferenceFluent> implements Nested{ - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName + ","); } - if (volumeNamespace != null) { sb.append("volumeNamespace:"); sb.append(volumeNamespace); } - sb.append("}"); - return sb.toString(); - } + V1ObjectReferenceBuilder builder; - public A withReadOnly() { - return withReadOnly(true); - } - public class SecretRefNested extends V1ObjectReferenceFluent> implements Nested{ SecretRefNested(V1ObjectReference item) { this.builder = new V1ObjectReferenceBuilder(this, item); } - V1ObjectReferenceBuilder builder; - + public N and() { return (N) V1StorageOSPersistentVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -173,7 +215,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java index 62266f9f4f..6e0c75341d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1StorageOSVolumeSourceBuilder extends V1StorageOSVolumeSourceFluent implements VisitableBuilder{ + + V1StorageOSVolumeSourceFluent fluent; + public V1StorageOSVolumeSourceBuilder() { this(new V1StorageOSVolumeSource()); } @@ -10,17 +14,16 @@ public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent) { this(fluent, new V1StorageOSVolumeSource()); } - public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent,V1StorageOSVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1StorageOSVolumeSourceFluent fluent; + public V1StorageOSVolumeSourceBuilder(V1StorageOSVolumeSourceFluent fluent,V1StorageOSVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1StorageOSVolumeSource build() { V1StorageOSVolumeSource buildable = new V1StorageOSVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -31,5 +34,4 @@ public V1StorageOSVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java index 30c20c62fe..f938994a62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java @@ -1,170 +1,212 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Boolean; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1StorageOSVolumeSourceFluent> extends BaseFluent{ +public class V1StorageOSVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private Boolean readOnly; + private V1LocalObjectReferenceBuilder secretRef; + private String volumeName; + private String volumeNamespace; + public V1StorageOSVolumeSourceFluent() { } public V1StorageOSVolumeSourceFluent(V1StorageOSVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private Boolean readOnly; - private V1LocalObjectReferenceBuilder secretRef; - private String volumeName; - private String volumeNamespace; + + public V1LocalObjectReference buildSecretRef() { + return this.secretRef != null ? this.secretRef.build() : null; + } protected void copyInstance(V1StorageOSVolumeSource instance) { - instance = (instance != null ? instance : new V1StorageOSVolumeSource()); + instance = instance != null ? instance : new V1StorageOSVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withReadOnly(instance.getReadOnly()); - this.withSecretRef(instance.getSecretRef()); - this.withVolumeName(instance.getVolumeName()); - this.withVolumeNamespace(instance.getVolumeNamespace()); - } + this.withFsType(instance.getFsType()); + this.withReadOnly(instance.getReadOnly()); + this.withSecretRef(instance.getSecretRef()); + this.withVolumeName(instance.getVolumeName()); + this.withVolumeNamespace(instance.getVolumeNamespace()); + } } - public String getFsType() { - return this.fsType; + public SecretRefNested editOrNewSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(item)); } - public boolean hasFsType() { - return this.fsType != null; + public SecretRefNested editSecretRef() { + return this.withNewSecretRefLike(Optional.ofNullable(this.buildSecretRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1StorageOSVolumeSourceFluent that = (V1StorageOSVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(secretRef, that.secretRef))) { + return false; + } + if (!(Objects.equals(volumeName, that.volumeName))) { + return false; + } + if (!(Objects.equals(volumeNamespace, that.volumeNamespace))) { + return false; + } + return true; + } + + public String getFsType() { + return this.fsType; } public Boolean getReadOnly() { return this.readOnly; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public String getVolumeName() { + return this.volumeName; } - public boolean hasReadOnly() { - return this.readOnly != null; + public String getVolumeNamespace() { + return this.volumeNamespace; } - public V1LocalObjectReference buildSecretRef() { - return this.secretRef != null ? this.secretRef.build() : null; + public boolean hasFsType() { + return this.fsType != null; } - public A withSecretRef(V1LocalObjectReference secretRef) { - this._visitables.remove("secretRef"); - if (secretRef != null) { - this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); - this._visitables.get("secretRef").add(this.secretRef); - } else { - this.secretRef = null; - this._visitables.get("secretRef").remove(this.secretRef); - } - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } public boolean hasSecretRef() { return this.secretRef != null; } - public SecretRefNested withNewSecretRef() { - return new SecretRefNested(null); - } - - public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { - return new SecretRefNested(item); + public boolean hasVolumeName() { + return this.volumeName != null; } - public SecretRefNested editSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(null)); + public boolean hasVolumeNamespace() { + return this.volumeNamespace != null; } - public SecretRefNested editOrNewSecretRef() { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(new V1LocalObjectReferenceBuilder().build())); + public int hashCode() { + return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); } - public SecretRefNested editOrNewSecretRefLike(V1LocalObjectReference item) { - return withNewSecretRefLike(java.util.Optional.ofNullable(buildSecretRef()).orElse(item)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(secretRef == null)) { + sb.append("secretRef:"); + sb.append(secretRef); + sb.append(","); + } + if (!(volumeName == null)) { + sb.append("volumeName:"); + sb.append(volumeName); + sb.append(","); + } + if (!(volumeNamespace == null)) { + sb.append("volumeNamespace:"); + sb.append(volumeNamespace); + } + sb.append("}"); + return sb.toString(); } - public String getVolumeName() { - return this.volumeName; + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; } - public A withVolumeName(String volumeName) { - this.volumeName = volumeName; - return (A) this; + public SecretRefNested withNewSecretRef() { + return new SecretRefNested(null); } - public boolean hasVolumeName() { - return this.volumeName != null; + public SecretRefNested withNewSecretRefLike(V1LocalObjectReference item) { + return new SecretRefNested(item); } - public String getVolumeNamespace() { - return this.volumeNamespace; + public A withReadOnly() { + return withReadOnly(true); } - public A withVolumeNamespace(String volumeNamespace) { - this.volumeNamespace = volumeNamespace; + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; return (A) this; } - public boolean hasVolumeNamespace() { - return this.volumeNamespace != null; + public A withSecretRef(V1LocalObjectReference secretRef) { + this._visitables.remove("secretRef"); + if (secretRef != null) { + this.secretRef = new V1LocalObjectReferenceBuilder(secretRef); + this._visitables.get("secretRef").add(this.secretRef); + } else { + this.secretRef = null; + this._visitables.get("secretRef").remove(this.secretRef); + } + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1StorageOSVolumeSourceFluent that = (V1StorageOSVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(readOnly, that.readOnly)) return false; - if (!java.util.Objects.equals(secretRef, that.secretRef)) return false; - if (!java.util.Objects.equals(volumeName, that.volumeName)) return false; - if (!java.util.Objects.equals(volumeNamespace, that.volumeNamespace)) return false; - return true; + public A withVolumeName(String volumeName) { + this.volumeName = volumeName; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace, super.hashCode()); + public A withVolumeNamespace(String volumeNamespace) { + this.volumeNamespace = volumeNamespace; + return (A) this; } + public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (readOnly != null) { sb.append("readOnly:"); sb.append(readOnly + ","); } - if (secretRef != null) { sb.append("secretRef:"); sb.append(secretRef + ","); } - if (volumeName != null) { sb.append("volumeName:"); sb.append(volumeName + ","); } - if (volumeNamespace != null) { sb.append("volumeNamespace:"); sb.append(volumeNamespace); } - sb.append("}"); - return sb.toString(); - } + V1LocalObjectReferenceBuilder builder; - public A withReadOnly() { - return withReadOnly(true); - } - public class SecretRefNested extends V1LocalObjectReferenceFluent> implements Nested{ SecretRefNested(V1LocalObjectReference item) { this.builder = new V1LocalObjectReferenceBuilder(this, item); } - V1LocalObjectReferenceBuilder builder; - + public N and() { return (N) V1StorageOSVolumeSourceFluent.this.withSecretRef(builder.build()); } @@ -173,7 +215,5 @@ public N endSecretRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java index e707b2e8c7..68ea45522c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SubjectAccessReviewBuilder extends V1SubjectAccessReviewFluent implements VisitableBuilder{ + + V1SubjectAccessReviewFluent fluent; + public V1SubjectAccessReviewBuilder() { this(new V1SubjectAccessReview()); } @@ -10,17 +14,16 @@ public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent) { this(fluent, new V1SubjectAccessReview()); } - public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent,V1SubjectAccessReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SubjectAccessReviewBuilder(V1SubjectAccessReview instance) { this.fluent = this; this.copyInstance(instance); } - V1SubjectAccessReviewFluent fluent; + public V1SubjectAccessReviewBuilder(V1SubjectAccessReviewFluent fluent,V1SubjectAccessReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SubjectAccessReview build() { V1SubjectAccessReview buildable = new V1SubjectAccessReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1SubjectAccessReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java index 6cb9c037e4..d8135a650f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SubjectAccessReviewFluent> extends BaseFluent{ +public class V1SubjectAccessReviewFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1SubjectAccessReviewSpecBuilder spec; + private V1SubjectAccessReviewStatusBuilder status; + public V1SubjectAccessReviewFluent() { } public V1SubjectAccessReviewFluent(V1SubjectAccessReview instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1SubjectAccessReviewSpecBuilder spec; - private V1SubjectAccessReviewStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1SubjectAccessReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1SubjectAccessReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1SubjectAccessReview instance) { - instance = (instance != null ? instance : new V1SubjectAccessReview()); + instance = instance != null ? instance : new V1SubjectAccessReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1SubjectAccessReviewSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1SubjectAccessReviewStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SubjectAccessReviewFluent that = (V1SubjectAccessReviewFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1SubjectAccessReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus item) { + return new StatusNested(item); } public A withSpec(V1SubjectAccessReviewSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1SubjectAccessReviewSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1SubjectAccessReviewSpec 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 V1SubjectAccessReviewSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1SubjectAccessReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1SubjectAccessReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1SubjectAccessReviewStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1SubjectAccessReviewStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1SubjectAccessReviewStatus 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 V1SubjectAccessReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1SubjectAccessReviewStatus 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; - V1SubjectAccessReviewFluent that = (V1SubjectAccessReviewFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1SubjectAccessReviewFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1SubjectAccessReviewSpecFluent> implements Nested{ + + V1SubjectAccessReviewSpecBuilder builder; + SpecNested(V1SubjectAccessReviewSpec item) { this.builder = new V1SubjectAccessReviewSpecBuilder(this, item); } - V1SubjectAccessReviewSpecBuilder builder; - + public N and() { return (N) V1SubjectAccessReviewFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1SubjectAccessReviewStatusFluent> implements Nested{ + + V1SubjectAccessReviewStatusBuilder builder; + StatusNested(V1SubjectAccessReviewStatus item) { this.builder = new V1SubjectAccessReviewStatusBuilder(this, item); } - V1SubjectAccessReviewStatusBuilder builder; - + public N and() { return (N) V1SubjectAccessReviewFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java index 956ffdef64..3d0b057a5e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SubjectAccessReviewSpecBuilder extends V1SubjectAccessReviewSpecFluent implements VisitableBuilder{ + + V1SubjectAccessReviewSpecFluent fluent; + public V1SubjectAccessReviewSpecBuilder() { this(new V1SubjectAccessReviewSpec()); } @@ -10,17 +14,16 @@ public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluen this(fluent, new V1SubjectAccessReviewSpec()); } - public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluent,V1SubjectAccessReviewSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1SubjectAccessReviewSpecFluent fluent; + public V1SubjectAccessReviewSpecBuilder(V1SubjectAccessReviewSpecFluent fluent,V1SubjectAccessReviewSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SubjectAccessReviewSpec build() { V1SubjectAccessReviewSpec buildable = new V1SubjectAccessReviewSpec(); buildable.setExtra(fluent.getExtra()); @@ -32,5 +35,4 @@ public V1SubjectAccessReviewSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java index 85ae52f92f..b3afa02085 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java @@ -1,125 +1,178 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; import java.lang.String; -import java.util.LinkedHashMap; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SubjectAccessReviewSpecFluent> extends BaseFluent{ - public V1SubjectAccessReviewSpecFluent() { - } - - public V1SubjectAccessReviewSpecFluent(V1SubjectAccessReviewSpec instance) { - this.copyInstance(instance); - } +public class V1SubjectAccessReviewSpecFluent> extends BaseFluent{ + private Map> extra; private List groups; private V1NonResourceAttributesBuilder nonResourceAttributes; private V1ResourceAttributesBuilder resourceAttributes; private String uid; private String user; + + public V1SubjectAccessReviewSpecFluent() { + } - protected void copyInstance(V1SubjectAccessReviewSpec instance) { - instance = (instance != null ? instance : new V1SubjectAccessReviewSpec()); - if (instance != null) { - this.withExtra(instance.getExtra()); - this.withGroups(instance.getGroups()); - this.withNonResourceAttributes(instance.getNonResourceAttributes()); - this.withResourceAttributes(instance.getResourceAttributes()); - this.withUid(instance.getUid()); - this.withUser(instance.getUser()); - } + public V1SubjectAccessReviewSpecFluent(V1SubjectAccessReviewSpec instance) { + this.copyInstance(instance); + } + + public A addAllToGroups(Collection items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; + } + + public A addToExtra(Map> map) { + if (this.extra == null && map != null) { + this.extra = new LinkedHashMap(); + } + if (map != null) { + this.extra.putAll(map); + } + return (A) this; } public A addToExtra(String key,List value) { - if(this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } - if(key != null && value != null) {this.extra.put(key, value);} return (A)this; + if (this.extra == null && key != null && value != null) { + this.extra = new LinkedHashMap(); + } + if (key != null && value != null) { + this.extra.put(key, value); + } + return (A) this; } - public A addToExtra(Map> map) { - if(this.extra == null && map != null) { this.extra = new LinkedHashMap(); } - if(map != null) { this.extra.putAll(map);} return (A)this; + public A addToGroups(String... items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } - public A removeFromExtra(String key) { - if(this.extra == null) { return (A) this; } - if(key != null && this.extra != null) {this.extra.remove(key);} return (A)this; + public A addToGroups(int index,String item) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.add(index, item); + return (A) this; } - public A removeFromExtra(Map> map) { - if(this.extra == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.extra != null){this.extra.remove(key);}}} return (A)this; + public V1NonResourceAttributes buildNonResourceAttributes() { + return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; } - public Map> getExtra() { - return this.extra; + public V1ResourceAttributes buildResourceAttributes() { + return this.resourceAttributes != null ? this.resourceAttributes.build() : null; } - public A withExtra(Map> extra) { - if (extra == null) { - this.extra = null; - } else { - this.extra = new LinkedHashMap(extra); + protected void copyInstance(V1SubjectAccessReviewSpec instance) { + instance = instance != null ? instance : new V1SubjectAccessReviewSpec(); + if (instance != null) { + this.withExtra(instance.getExtra()); + this.withGroups(instance.getGroups()); + this.withNonResourceAttributes(instance.getNonResourceAttributes()); + this.withResourceAttributes(instance.getResourceAttributes()); + this.withUid(instance.getUid()); + this.withUser(instance.getUser()); } - return (A) this; } - public boolean hasExtra() { - return this.extra != null; + public NonResourceAttributesNested editNonResourceAttributes() { + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(null)); } - public A addToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} - this.groups.add(index, item); - return (A)this; + public NonResourceAttributesNested editOrNewNonResourceAttributes() { + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); } - public A setToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} - this.groups.set(index, item); return (A)this; + public NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { + return this.withNewNonResourceAttributesLike(Optional.ofNullable(this.buildNonResourceAttributes()).orElse(item)); } - public A addToGroups(java.lang.String... items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + public ResourceAttributesNested editOrNewResourceAttributes() { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); } - public A addAllToGroups(Collection items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + public ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(item)); } - public A removeFromGroups(java.lang.String... items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + public ResourceAttributesNested editResourceAttributes() { + return this.withNewResourceAttributesLike(Optional.ofNullable(this.buildResourceAttributes()).orElse(null)); } - public A removeAllFromGroups(Collection items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SubjectAccessReviewSpecFluent that = (V1SubjectAccessReviewSpecFluent) o; + if (!(Objects.equals(extra, that.extra))) { + return false; + } + if (!(Objects.equals(groups, that.groups))) { + return false; + } + if (!(Objects.equals(nonResourceAttributes, that.nonResourceAttributes))) { + return false; + } + if (!(Objects.equals(resourceAttributes, that.resourceAttributes))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } - public List getGroups() { - return this.groups; + public Map> getExtra() { + return this.extra; + } + + public String getFirstGroup() { + return this.groups.get(0); } public String getGroup(int index) { return this.groups.get(index); } - public String getFirstGroup() { - return this.groups.get(0); + public List getGroups() { + return this.groups; } public String getLastGroup() { @@ -135,6 +188,22 @@ public String getMatchingGroup(Predicate predicate) { return null; } + public String getUid() { + return this.uid; + } + + public String getUser() { + return this.user; + } + + public boolean hasExtra() { + return this.extra != null; + } + + public boolean hasGroups() { + return this.groups != null && !(this.groups.isEmpty()); + } + public boolean hasMatchingGroup(Predicate predicate) { for (String item : groups) { if (predicate.test(item)) { @@ -144,6 +213,123 @@ public boolean hasMatchingGroup(Predicate predicate) { return false; } + public boolean hasNonResourceAttributes() { + return this.nonResourceAttributes != null; + } + + public boolean hasResourceAttributes() { + return this.resourceAttributes != null; + } + + public boolean hasUid() { + return this.uid != null; + } + + public boolean hasUser() { + return this.user != null; + } + + public int hashCode() { + return Objects.hash(extra, groups, nonResourceAttributes, resourceAttributes, uid, user); + } + + public A removeAllFromGroups(Collection items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; + } + + public A removeFromExtra(String key) { + if (this.extra == null) { + return (A) this; + } + if (key != null && this.extra != null) { + this.extra.remove(key); + } + return (A) this; + } + + public A removeFromExtra(Map> map) { + if (this.extra == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.extra != null) { + this.extra.remove(key); + } + } + } + return (A) this; + } + + public A removeFromGroups(String... items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; + } + + public A setToGroups(int index,String item) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(extra == null) && !(extra.isEmpty())) { + sb.append("extra:"); + sb.append(extra); + sb.append(","); + } + if (!(groups == null) && !(groups.isEmpty())) { + sb.append("groups:"); + sb.append(groups); + sb.append(","); + } + if (!(nonResourceAttributes == null)) { + sb.append("nonResourceAttributes:"); + sb.append(nonResourceAttributes); + sb.append(","); + } + if (!(resourceAttributes == null)) { + sb.append("resourceAttributes:"); + sb.append(resourceAttributes); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } + sb.append("}"); + return sb.toString(); + } + + public A withExtra(Map> extra) { + if (extra == null) { + this.extra = null; + } else { + this.extra = new LinkedHashMap(extra); + } + return (A) this; + } + public A withGroups(List groups) { if (groups != null) { this.groups = new ArrayList(); @@ -156,7 +342,7 @@ public A withGroups(List groups) { return (A) this; } - public A withGroups(java.lang.String... groups) { + public A withGroups(String... groups) { if (this.groups != null) { this.groups.clear(); _visitables.remove("groups"); @@ -169,12 +355,20 @@ public A withGroups(java.lang.String... groups) { return (A) this; } - public boolean hasGroups() { - return this.groups != null && !this.groups.isEmpty(); + public NonResourceAttributesNested withNewNonResourceAttributes() { + return new NonResourceAttributesNested(null); } - public V1NonResourceAttributes buildNonResourceAttributes() { - return this.nonResourceAttributes != null ? this.nonResourceAttributes.build() : null; + public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { + return new NonResourceAttributesNested(item); + } + + public ResourceAttributesNested withNewResourceAttributes() { + return new ResourceAttributesNested(null); + } + + public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { + return new ResourceAttributesNested(item); } public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { @@ -189,34 +383,6 @@ public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes return (A) this; } - public boolean hasNonResourceAttributes() { - return this.nonResourceAttributes != null; - } - - public NonResourceAttributesNested withNewNonResourceAttributes() { - return new NonResourceAttributesNested(null); - } - - public NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return new NonResourceAttributesNested(item); - } - - public NonResourceAttributesNested editNonResourceAttributes() { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(null)); - } - - public NonResourceAttributesNested editOrNewNonResourceAttributes() { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(new V1NonResourceAttributesBuilder().build())); - } - - public NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item) { - return withNewNonResourceAttributesLike(java.util.Optional.ofNullable(buildNonResourceAttributes()).orElse(item)); - } - - public V1ResourceAttributes buildResourceAttributes() { - return this.resourceAttributes != null ? this.resourceAttributes.build() : null; - } - public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { this._visitables.remove("resourceAttributes"); if (resourceAttributes != null) { @@ -229,92 +395,23 @@ public A withResourceAttributes(V1ResourceAttributes resourceAttributes) { return (A) this; } - public boolean hasResourceAttributes() { - return this.resourceAttributes != null; - } - - public ResourceAttributesNested withNewResourceAttributes() { - return new ResourceAttributesNested(null); - } - - public ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item) { - return new ResourceAttributesNested(item); - } - - public ResourceAttributesNested editResourceAttributes() { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(null)); - } - - public ResourceAttributesNested editOrNewResourceAttributes() { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(new V1ResourceAttributesBuilder().build())); - } - - public ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item) { - return withNewResourceAttributesLike(java.util.Optional.ofNullable(buildResourceAttributes()).orElse(item)); - } - - 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 String getUser() { - return this.user; - } - public A withUser(String user) { this.user = user; return (A) this; } + public class NonResourceAttributesNested extends V1NonResourceAttributesFluent> implements Nested{ - public boolean hasUser() { - return this.user != 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; - V1SubjectAccessReviewSpecFluent that = (V1SubjectAccessReviewSpecFluent) o; - if (!java.util.Objects.equals(extra, that.extra)) return false; - if (!java.util.Objects.equals(groups, that.groups)) return false; - if (!java.util.Objects.equals(nonResourceAttributes, that.nonResourceAttributes)) return false; - if (!java.util.Objects.equals(resourceAttributes, that.resourceAttributes)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(extra, groups, nonResourceAttributes, resourceAttributes, uid, user, super.hashCode()); - } + V1NonResourceAttributesBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (extra != null && !extra.isEmpty()) { sb.append("extra:"); sb.append(extra + ","); } - if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } - if (nonResourceAttributes != null) { sb.append("nonResourceAttributes:"); sb.append(nonResourceAttributes + ","); } - if (resourceAttributes != null) { sb.append("resourceAttributes:"); sb.append(resourceAttributes + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } - sb.append("}"); - return sb.toString(); - } - public class NonResourceAttributesNested extends V1NonResourceAttributesFluent> implements Nested{ NonResourceAttributesNested(V1NonResourceAttributes item) { this.builder = new V1NonResourceAttributesBuilder(this, item); } - V1NonResourceAttributesBuilder builder; - + public N and() { return (N) V1SubjectAccessReviewSpecFluent.this.withNonResourceAttributes(builder.build()); } @@ -323,14 +420,15 @@ public N endNonResourceAttributes() { return and(); } - } public class ResourceAttributesNested extends V1ResourceAttributesFluent> implements Nested{ + + V1ResourceAttributesBuilder builder; + ResourceAttributesNested(V1ResourceAttributes item) { this.builder = new V1ResourceAttributesBuilder(this, item); } - V1ResourceAttributesBuilder builder; - + public N and() { return (N) V1SubjectAccessReviewSpecFluent.this.withResourceAttributes(builder.build()); } @@ -339,7 +437,5 @@ public N endResourceAttributes() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java index 8377ffb8fc..d61594761d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SubjectAccessReviewStatusBuilder extends V1SubjectAccessReviewStatusFluent implements VisitableBuilder{ + + V1SubjectAccessReviewStatusFluent fluent; + public V1SubjectAccessReviewStatusBuilder() { this(new V1SubjectAccessReviewStatus()); } @@ -10,17 +14,16 @@ public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent f this(fluent, new V1SubjectAccessReviewStatus()); } - public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent fluent,V1SubjectAccessReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1SubjectAccessReviewStatusFluent fluent; + public V1SubjectAccessReviewStatusBuilder(V1SubjectAccessReviewStatusFluent fluent,V1SubjectAccessReviewStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SubjectAccessReviewStatus build() { V1SubjectAccessReviewStatus buildable = new V1SubjectAccessReviewStatus(); buildable.setAllowed(fluent.getAllowed()); @@ -30,5 +33,4 @@ public V1SubjectAccessReviewStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java index 68f98296e0..3d008fc449 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java @@ -1,112 +1,125 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SubjectAccessReviewStatusFluent> extends BaseFluent{ +public class V1SubjectAccessReviewStatusFluent> extends BaseFluent{ + + private Boolean allowed; + private Boolean denied; + private String evaluationError; + private String reason; + public V1SubjectAccessReviewStatusFluent() { } public V1SubjectAccessReviewStatusFluent(V1SubjectAccessReviewStatus instance) { this.copyInstance(instance); } - private Boolean allowed; - private Boolean denied; - private String evaluationError; - private String reason; - + protected void copyInstance(V1SubjectAccessReviewStatus instance) { - instance = (instance != null ? instance : new V1SubjectAccessReviewStatus()); + instance = instance != null ? instance : new V1SubjectAccessReviewStatus(); if (instance != null) { - this.withAllowed(instance.getAllowed()); - this.withDenied(instance.getDenied()); - this.withEvaluationError(instance.getEvaluationError()); - this.withReason(instance.getReason()); - } + this.withAllowed(instance.getAllowed()); + this.withDenied(instance.getDenied()); + this.withEvaluationError(instance.getEvaluationError()); + this.withReason(instance.getReason()); + } } - public Boolean getAllowed() { - return this.allowed; - } - - public A withAllowed(Boolean allowed) { - this.allowed = allowed; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SubjectAccessReviewStatusFluent that = (V1SubjectAccessReviewStatusFluent) o; + if (!(Objects.equals(allowed, that.allowed))) { + return false; + } + if (!(Objects.equals(denied, that.denied))) { + return false; + } + if (!(Objects.equals(evaluationError, that.evaluationError))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + return true; } - public boolean hasAllowed() { - return this.allowed != null; + public Boolean getAllowed() { + return this.allowed; } public Boolean getDenied() { return this.denied; } - public A withDenied(Boolean denied) { - this.denied = denied; - return (A) this; - } - - public boolean hasDenied() { - return this.denied != null; - } - public String getEvaluationError() { return this.evaluationError; } - public A withEvaluationError(String evaluationError) { - this.evaluationError = evaluationError; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasEvaluationError() { - return this.evaluationError != null; + public boolean hasAllowed() { + return this.allowed != null; } - public String getReason() { - return this.reason; + public boolean hasDenied() { + return this.denied != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasEvaluationError() { + return this.evaluationError != null; } 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; - V1SubjectAccessReviewStatusFluent that = (V1SubjectAccessReviewStatusFluent) o; - if (!java.util.Objects.equals(allowed, that.allowed)) return false; - if (!java.util.Objects.equals(denied, that.denied)) return false; - if (!java.util.Objects.equals(evaluationError, that.evaluationError)) return false; - if (!java.util.Objects.equals(reason, that.reason)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(allowed, denied, evaluationError, reason, super.hashCode()); + return Objects.hash(allowed, denied, evaluationError, reason); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (allowed != null) { sb.append("allowed:"); sb.append(allowed + ","); } - if (denied != null) { sb.append("denied:"); sb.append(denied + ","); } - if (evaluationError != null) { sb.append("evaluationError:"); sb.append(evaluationError + ","); } - if (reason != null) { sb.append("reason:"); sb.append(reason); } + if (!(allowed == null)) { + sb.append("allowed:"); + sb.append(allowed); + sb.append(","); + } + if (!(denied == null)) { + sb.append("denied:"); + sb.append(denied); + sb.append(","); + } + if (!(evaluationError == null)) { + sb.append("evaluationError:"); + sb.append(evaluationError); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } @@ -115,9 +128,28 @@ public A withAllowed() { return withAllowed(true); } + public A withAllowed(Boolean allowed) { + this.allowed = allowed; + return (A) this; + } + public A withDenied() { return withDenied(true); } - + public A withDenied(Boolean denied) { + this.denied = denied; + return (A) this; + } + + public A withEvaluationError(String evaluationError) { + this.evaluationError = evaluationError; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java index 8e46ac5da5..c507c6891b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SubjectRulesReviewStatusBuilder extends V1SubjectRulesReviewStatusFluent implements VisitableBuilder{ + + V1SubjectRulesReviewStatusFluent fluent; + public V1SubjectRulesReviewStatusBuilder() { this(new V1SubjectRulesReviewStatus()); } @@ -10,17 +14,16 @@ public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent flu this(fluent, new V1SubjectRulesReviewStatus()); } - public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent fluent,V1SubjectRulesReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1SubjectRulesReviewStatusFluent fluent; + public V1SubjectRulesReviewStatusBuilder(V1SubjectRulesReviewStatusFluent fluent,V1SubjectRulesReviewStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SubjectRulesReviewStatus build() { V1SubjectRulesReviewStatus buildable = new V1SubjectRulesReviewStatus(); buildable.setEvaluationError(fluent.getEvaluationError()); @@ -30,5 +33,4 @@ public V1SubjectRulesReviewStatus build() { return buildable; } - } \ 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..ac63b69c84 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 @@ -1,134 +1,148 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SubjectRulesReviewStatusFluent> extends BaseFluent{ - public V1SubjectRulesReviewStatusFluent() { - } - - public V1SubjectRulesReviewStatusFluent(V1SubjectRulesReviewStatus instance) { - this.copyInstance(instance); - } +public class V1SubjectRulesReviewStatusFluent> extends BaseFluent{ + private String evaluationError; private Boolean incomplete; private ArrayList nonResourceRules; private ArrayList resourceRules; - - protected void copyInstance(V1SubjectRulesReviewStatus instance) { - instance = (instance != null ? instance : new V1SubjectRulesReviewStatus()); - if (instance != null) { - this.withEvaluationError(instance.getEvaluationError()); - this.withIncomplete(instance.getIncomplete()); - this.withNonResourceRules(instance.getNonResourceRules()); - this.withResourceRules(instance.getResourceRules()); - } + + public V1SubjectRulesReviewStatusFluent() { } - public String getEvaluationError() { - return this.evaluationError; + public V1SubjectRulesReviewStatusFluent(V1SubjectRulesReviewStatus instance) { + this.copyInstance(instance); } - - public A withEvaluationError(String evaluationError) { - this.evaluationError = evaluationError; + + public A addAllToNonResourceRules(Collection items) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); + } return (A) this; } - public boolean hasEvaluationError() { - return this.evaluationError != null; - } - - public Boolean getIncomplete() { - return this.incomplete; - } - - public A withIncomplete(Boolean incomplete) { - this.incomplete = incomplete; + public A addAllToResourceRules(Collection items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } return (A) this; } - public boolean hasIncomplete() { - return this.incomplete != null; - } - - 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);} - 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);} - return (A)this; + public NonResourceRulesNested addNewNonResourceRule() { + return new NonResourceRulesNested(-1, null); } - public A addToNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; + public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourceRule item) { + return new NonResourceRulesNested(-1, item); } - public A addAllToNonResourceRules(Collection items) { - if (this.nonResourceRules == null) {this.nonResourceRules = new ArrayList();} - for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").add(builder);this.nonResourceRules.add(builder);} return (A)this; + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); } - public A removeFromNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... items) { - if (this.nonResourceRules == null) return (A)this; - for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; + public ResourceRulesNested addNewResourceRuleLike(V1ResourceRule item) { + return new ResourceRulesNested(-1, item); } - public A removeAllFromNonResourceRules(Collection items) { - if (this.nonResourceRules == null) return (A)this; - for (V1NonResourceRule item : items) {V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item);_visitables.get("nonResourceRules").remove(builder); this.nonResourceRules.remove(builder);} return (A)this; + public A addToNonResourceRules(V1NonResourceRule... items) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); + } + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(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()) { - V1NonResourceRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToNonResourceRules(int index,V1NonResourceRule item) { + if (this.nonResourceRules == null) { + this.nonResourceRules = new ArrayList(); } - return (A)this; + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(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 List buildNonResourceRules() { - return this.nonResourceRules != null ? build(nonResourceRules) : null; + public A addToResourceRules(V1ResourceRule... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - public V1NonResourceRule buildNonResourceRule(int index) { - return this.nonResourceRules.get(index).build(); + public A addToResourceRules(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").add(builder); + resourceRules.add(index, builder); + } + return (A) this; } public V1NonResourceRule buildFirstNonResourceRule() { return this.nonResourceRules.get(0).build(); } + public V1ResourceRule buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + public V1NonResourceRule buildLastNonResourceRule() { return this.nonResourceRules.get(nonResourceRules.size() - 1).build(); } + public V1ResourceRule buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + public V1NonResourceRule buildMatchingNonResourceRule(Predicate predicate) { for (V1NonResourceRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { @@ -138,155 +152,162 @@ public V1NonResourceRule buildMatchingNonResourceRule(Predicate predicate) { - for (V1NonResourceRuleBuilder item : nonResourceRules) { + public V1ResourceRule buildMatchingResourceRule(Predicate predicate) { + for (V1ResourceRuleBuilder item : resourceRules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; - } - - public A withNonResourceRules(List nonResourceRules) { - if (this.nonResourceRules != null) { - this._visitables.get("nonResourceRules").clear(); - } - if (nonResourceRules != null) { - this.nonResourceRules = new ArrayList(); - for (V1NonResourceRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } else { - this.nonResourceRules = null; - } - return (A) this; + return null; } - public A withNonResourceRules(io.kubernetes.client.openapi.models.V1NonResourceRule... nonResourceRules) { - if (this.nonResourceRules != null) { - this.nonResourceRules.clear(); - _visitables.remove("nonResourceRules"); - } - if (nonResourceRules != null) { - for (V1NonResourceRule item : nonResourceRules) { - this.addToNonResourceRules(item); - } - } - return (A) this; + public V1NonResourceRule buildNonResourceRule(int index) { + return this.nonResourceRules.get(index).build(); } - public boolean hasNonResourceRules() { - return this.nonResourceRules != null && !this.nonResourceRules.isEmpty(); + public List buildNonResourceRules() { + return this.nonResourceRules != null ? build(nonResourceRules) : null; } - public NonResourceRulesNested addNewNonResourceRule() { - return new NonResourceRulesNested(-1, null); + public V1ResourceRule buildResourceRule(int index) { + return this.resourceRules.get(index).build(); } - public NonResourceRulesNested addNewNonResourceRuleLike(V1NonResourceRule item) { - return new NonResourceRulesNested(-1, item); + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; } - public NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourceRule item) { - return new NonResourceRulesNested(index, item); + protected void copyInstance(V1SubjectRulesReviewStatus instance) { + instance = instance != null ? instance : new V1SubjectRulesReviewStatus(); + if (instance != null) { + this.withEvaluationError(instance.getEvaluationError()); + this.withIncomplete(instance.getIncomplete()); + this.withNonResourceRules(instance.getNonResourceRules()); + this.withResourceRules(instance.getResourceRules()); + } } - 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(String.format("Can't edit first %s. The list is empty.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(0, this.buildNonResourceRule(0)); } - 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 ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(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();} - 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);} - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } - 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);} - return (A)this; + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public A addToResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public NonResourceRulesNested editMatchingNonResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < nonResourceRules.size();i++) { + if (predicate.test(nonResourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... items) { - if (this.resourceRules == null) return (A)this; - for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public NonResourceRulesNested editNonResourceRule(int index) { + if (nonResourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nonResourceRules")); + } + return this.setNewNonResourceRuleLike(index, this.buildNonResourceRule(index)); } - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1ResourceRule item : items) {V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public ResourceRulesNested editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - 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()) { - V1ResourceRuleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SubjectRulesReviewStatusFluent that = (V1SubjectRulesReviewStatusFluent) o; + if (!(Objects.equals(evaluationError, that.evaluationError))) { + return false; } - return (A)this; + if (!(Objects.equals(incomplete, that.incomplete))) { + return false; + } + if (!(Objects.equals(nonResourceRules, that.nonResourceRules))) { + return false; + } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; + } + return true; } - public List buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; + public String getEvaluationError() { + return this.evaluationError; } - public V1ResourceRule buildResourceRule(int index) { - return this.resourceRules.get(index).build(); + public Boolean getIncomplete() { + return this.incomplete; } - public V1ResourceRule buildFirstResourceRule() { - return this.resourceRules.get(0).build(); + public boolean hasEvaluationError() { + return this.evaluationError != null; } - public V1ResourceRule buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); + public boolean hasIncomplete() { + return this.incomplete != null; } - public V1ResourceRule buildMatchingResourceRule(Predicate predicate) { - for (V1ResourceRuleBuilder item : resourceRules) { + public boolean hasMatchingNonResourceRule(Predicate predicate) { + for (V1NonResourceRuleBuilder item : nonResourceRules) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingResourceRule(Predicate predicate) { @@ -298,140 +319,267 @@ public boolean hasMatchingResourceRule(Predicate predicat return false; } - public A withResourceRules(List resourceRules) { - if (this.resourceRules != null) { - this._visitables.get("resourceRules").clear(); + public boolean hasNonResourceRules() { + return this.nonResourceRules != null && !(this.nonResourceRules.isEmpty()); + } + + public boolean hasResourceRules() { + return this.resourceRules != null && !(this.resourceRules.isEmpty()); + } + + public int hashCode() { + return Objects.hash(evaluationError, incomplete, nonResourceRules, resourceRules); + } + + public A removeAllFromNonResourceRules(Collection items) { + if (this.nonResourceRules == null) { + return (A) this; } - if (resourceRules != null) { - this.resourceRules = new ArrayList(); - for (V1ResourceRule item : resourceRules) { - this.addToResourceRules(item); - } - } else { - this.resourceRules = null; + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); } return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1ResourceRule... resourceRules) { - if (this.resourceRules != null) { - this.resourceRules.clear(); - _visitables.remove("resourceRules"); + public A removeAllFromResourceRules(Collection items) { + if (this.resourceRules == null) { + return (A) this; } - if (resourceRules != null) { - for (V1ResourceRule item : resourceRules) { - this.addToResourceRules(item); - } + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); } return (A) this; } - public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); - } - - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); - } - - public ResourceRulesNested addNewResourceRuleLike(V1ResourceRule item) { - return new ResourceRulesNested(-1, item); + public A removeFromNonResourceRules(V1NonResourceRule... items) { + if (this.nonResourceRules == null) { + return (A) this; + } + for (V1NonResourceRule item : items) { + V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); + _visitables.get("nonResourceRules").remove(builder); + this.nonResourceRules.remove(builder); + } + return (A) this; } - public ResourceRulesNested setNewResourceRuleLike(int index,V1ResourceRule item) { - return new ResourceRulesNested(index, item); + public A removeFromResourceRules(V1ResourceRule... items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1ResourceRule item : items) { + V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } - 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 A removeMatchingFromNonResourceRules(Predicate predicate) { + if (nonResourceRules == null) { + return (A) this; + } + Iterator each = nonResourceRules.iterator(); + List visitables = _visitables.get("nonResourceRules"); + while (each.hasNext()) { + V1NonResourceRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - 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 A removeMatchingFromResourceRules(Predicate predicate) { + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); + while (each.hasNext()) { + V1ResourceRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - 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 NonResourceRulesNested setNewNonResourceRuleLike(int index,V1NonResourceRule item) { + return new NonResourceRulesNested(index, item); } - public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { - int index = -1; - for (int i=0;i setNewResourceRuleLike(int index,V1ResourceRule item) { + return new ResourceRulesNested(index, 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; - V1SubjectRulesReviewStatusFluent that = (V1SubjectRulesReviewStatusFluent) o; - if (!java.util.Objects.equals(evaluationError, that.evaluationError)) return false; - if (!java.util.Objects.equals(incomplete, that.incomplete)) return false; - if (!java.util.Objects.equals(nonResourceRules, that.nonResourceRules)) return false; - if (!java.util.Objects.equals(resourceRules, that.resourceRules)) return false; - return true; + 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").add(builder); + nonResourceRules.set(index, builder); + } + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(evaluationError, incomplete, nonResourceRules, resourceRules, super.hashCode()); + 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").add(builder); + resourceRules.set(index, builder); + } + return (A) this; } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (evaluationError != null) { sb.append("evaluationError:"); sb.append(evaluationError + ","); } - if (incomplete != null) { sb.append("incomplete:"); sb.append(incomplete + ","); } - if (nonResourceRules != null && !nonResourceRules.isEmpty()) { sb.append("nonResourceRules:"); sb.append(nonResourceRules + ","); } - if (resourceRules != null && !resourceRules.isEmpty()) { sb.append("resourceRules:"); sb.append(resourceRules); } + if (!(evaluationError == null)) { + sb.append("evaluationError:"); + sb.append(evaluationError); + sb.append(","); + } + if (!(incomplete == null)) { + sb.append("incomplete:"); + sb.append(incomplete); + sb.append(","); + } + if (!(nonResourceRules == null) && !(nonResourceRules.isEmpty())) { + sb.append("nonResourceRules:"); + sb.append(nonResourceRules); + sb.append(","); + } + if (!(resourceRules == null) && !(resourceRules.isEmpty())) { + sb.append("resourceRules:"); + sb.append(resourceRules); + } sb.append("}"); return sb.toString(); } + public A withEvaluationError(String evaluationError) { + this.evaluationError = evaluationError; + return (A) this; + } + public A withIncomplete() { return withIncomplete(true); } + + public A withIncomplete(Boolean incomplete) { + this.incomplete = incomplete; + return (A) this; + } + + public A withNonResourceRules(List nonResourceRules) { + if (this.nonResourceRules != null) { + this._visitables.get("nonResourceRules").clear(); + } + if (nonResourceRules != null) { + this.nonResourceRules = new ArrayList(); + for (V1NonResourceRule item : nonResourceRules) { + this.addToNonResourceRules(item); + } + } else { + this.nonResourceRules = null; + } + return (A) this; + } + + public A withNonResourceRules(V1NonResourceRule... nonResourceRules) { + if (this.nonResourceRules != null) { + this.nonResourceRules.clear(); + _visitables.remove("nonResourceRules"); + } + if (nonResourceRules != null) { + for (V1NonResourceRule item : nonResourceRules) { + this.addToNonResourceRules(item); + } + } + return (A) this; + } + + public A withResourceRules(List resourceRules) { + if (this.resourceRules != null) { + this._visitables.get("resourceRules").clear(); + } + if (resourceRules != null) { + this.resourceRules = new ArrayList(); + for (V1ResourceRule item : resourceRules) { + this.addToResourceRules(item); + } + } else { + this.resourceRules = null; + } + return (A) this; + } + + public A withResourceRules(V1ResourceRule... resourceRules) { + if (this.resourceRules != null) { + this.resourceRules.clear(); + _visitables.remove("resourceRules"); + } + if (resourceRules != null) { + for (V1ResourceRule item : resourceRules) { + this.addToResourceRules(item); + } + } + return (A) this; + } public class NonResourceRulesNested extends V1NonResourceRuleFluent> implements Nested{ + + V1NonResourceRuleBuilder builder; + int index; + NonResourceRulesNested(int index,V1NonResourceRule item) { this.index = index; this.builder = new V1NonResourceRuleBuilder(this, item); } - V1NonResourceRuleBuilder builder; - int index; - + public N and() { - return (N) V1SubjectRulesReviewStatusFluent.this.setToNonResourceRules(index,builder.build()); + return (N) V1SubjectRulesReviewStatusFluent.this.setToNonResourceRules(index, builder.build()); } public N endNonResourceRule() { return and(); } - } public class ResourceRulesNested extends V1ResourceRuleFluent> implements Nested{ + + V1ResourceRuleBuilder builder; + int index; + ResourceRulesNested(int index,V1ResourceRule item) { this.index = index; this.builder = new V1ResourceRuleBuilder(this, item); } - V1ResourceRuleBuilder builder; - int index; - + public N and() { - return (N) V1SubjectRulesReviewStatusFluent.this.setToResourceRules(index,builder.build()); + return (N) V1SubjectRulesReviewStatusFluent.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/V1SuccessPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java index 2a36f77fee..b7552030ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SuccessPolicyBuilder extends V1SuccessPolicyFluent implements VisitableBuilder{ + + V1SuccessPolicyFluent fluent; + public V1SuccessPolicyBuilder() { this(new V1SuccessPolicy()); } @@ -10,22 +14,20 @@ 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 V1SuccessPolicyBuilder(V1SuccessPolicyFluent fluent,V1SuccessPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index 43886a1f56..7a540a121e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java @@ -1,91 +1,79 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SuccessPolicyFluent> extends BaseFluent{ +public class V1SuccessPolicyFluent> extends BaseFluent{ + + private ArrayList rules; + 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(index, 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").set(index, 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; + 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 RulesNested addNewRule() { + return new RulesNested(-1, null); } - 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 RulesNested addNewRuleLike(V1SuccessPolicyRule item) { + return new RulesNested(-1, item); } - 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(); - } + public A addToRules(V1SuccessPolicyRule... items) { + if (this.rules == null) { + this.rules = new ArrayList(); } - return (A)this; - } - - public List buildRules() { - return this.rules != null ? build(rules) : null; + for (V1SuccessPolicyRule item : items) { + V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public V1SuccessPolicyRule buildRule(int index) { - return this.rules.get(index).build(); + 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 V1SuccessPolicyRule buildFirstRule() { @@ -105,121 +93,205 @@ public V1SuccessPolicyRule buildMatchingRule(Predicate predicate) { - for (V1SuccessPolicyRuleBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; + public V1SuccessPolicyRule buildRule(int index) { + return this.rules.get(index).build(); } - public A withRules(List rules) { - if (this.rules != null) { - this._visitables.get("rules").clear(); + public List buildRules() { + return this.rules != null ? build(rules) : null; + } + + protected void copyInstance(V1SuccessPolicy instance) { + instance = instance != null ? instance : new V1SuccessPolicy(); + if (instance != null) { + this.withRules(instance.getRules()); } - if (rules != null) { - this.rules = new ArrayList(); - for (V1SuccessPolicyRule item : rules) { - this.addToRules(item); - } - } else { - this.rules = null; + } + + public RulesNested editFirstRule() { + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); } - return (A) this; + return this.setNewRuleLike(0, this.buildRule(0)); } - public A withRules(io.kubernetes.client.openapi.models.V1SuccessPolicyRule... rules) { - if (this.rules != null) { - this.rules.clear(); - _visitables.remove("rules"); + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); } - if (rules != null) { - for (V1SuccessPolicyRule item : rules) { - this.addToRules(item); + return this.setNewRuleLike(index, this.buildRule(index)); + } + + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public RulesNested addNewRule() { - return new RulesNested(-1, null); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SuccessPolicyFluent that = (V1SuccessPolicyFluent) o; + if (!(Objects.equals(rules, that.rules))) { + return false; + } + return true; } - public RulesNested addNewRuleLike(V1SuccessPolicyRule item) { - return new RulesNested(-1, item); + public boolean hasMatchingRule(Predicate predicate) { + for (V1SuccessPolicyRuleBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public RulesNested setNewRuleLike(int index,V1SuccessPolicyRule item) { - return new RulesNested(index, item); + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); } - 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 int hashCode() { + return Objects.hash(rules); } - 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 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 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 A removeFromRules(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 RulesNested editMatchingRule(Predicate predicate) { - int index = -1; - for (int i=0;i predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + 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 boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1SuccessPolicyFluent that = (V1SuccessPolicyFluent) o; - if (!java.util.Objects.equals(rules, that.rules)) return false; - return true; + public RulesNested setNewRuleLike(int index,V1SuccessPolicyRule item) { + return new RulesNested(index, item); } - public int hashCode() { - return java.util.Objects.hash(rules, super.hashCode()); + 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 String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (rules != null && !rules.isEmpty()) { sb.append("rules:"); sb.append(rules); } + if (!(rules == null) && !(rules.isEmpty())) { + sb.append("rules:"); + sb.append(rules); + } sb.append("}"); return sb.toString(); } + + 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(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 class RulesNested extends V1SuccessPolicyRuleFluent> implements Nested{ + + V1SuccessPolicyRuleBuilder builder; + int index; + 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()); + 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 index 55e0c068a3..b4c5c2425a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SuccessPolicyRuleBuilder extends V1SuccessPolicyRuleFluent implements VisitableBuilder{ + + V1SuccessPolicyRuleFluent fluent; + public V1SuccessPolicyRuleBuilder() { this(new V1SuccessPolicyRule()); } @@ -10,17 +14,16 @@ 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 V1SuccessPolicyRuleBuilder(V1SuccessPolicyRuleFluent fluent,V1SuccessPolicyRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1SuccessPolicyRule build() { V1SuccessPolicyRule buildable = new V1SuccessPolicyRule(); buildable.setSucceededCount(fluent.getSucceededCount()); @@ -28,5 +31,4 @@ public V1SuccessPolicyRule build() { 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 index 8ba146a359..90d88e68de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java @@ -1,81 +1,101 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SuccessPolicyRuleFluent> extends BaseFluent{ +public class V1SuccessPolicyRuleFluent> extends BaseFluent{ + + private Integer succeededCount; + private String succeededIndexes; + 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()); + instance = instance != null ? instance : new V1SuccessPolicyRule(); if (instance != null) { - this.withSucceededCount(instance.getSucceededCount()); - this.withSucceededIndexes(instance.getSucceededIndexes()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SuccessPolicyRuleFluent that = (V1SuccessPolicyRuleFluent) o; + if (!(Objects.equals(succeededCount, that.succeededCount))) { + return false; + } + if (!(Objects.equals(succeededIndexes, that.succeededIndexes))) { + return false; + } + return true; } - public boolean hasSucceededCount() { - return this.succeededCount != null; + public Integer getSucceededCount() { + return this.succeededCount; } public String getSucceededIndexes() { return this.succeededIndexes; } - public A withSucceededIndexes(String succeededIndexes) { - this.succeededIndexes = succeededIndexes; - return (A) this; + public boolean hasSucceededCount() { + return this.succeededCount != null; } 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()); + return Objects.hash(succeededCount, succeededIndexes); } 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); } + if (!(succeededCount == null)) { + sb.append("succeededCount:"); + sb.append(succeededCount); + sb.append(","); + } + if (!(succeededIndexes == null)) { + sb.append("succeededIndexes:"); + sb.append(succeededIndexes); + } sb.append("}"); return sb.toString(); } - + public A withSucceededCount(Integer succeededCount) { + this.succeededCount = succeededCount; + return (A) this; + } + + public A withSucceededIndexes(String succeededIndexes) { + this.succeededIndexes = succeededIndexes; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java index 9bdff84ba8..2fc45fad58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1SysctlBuilder extends V1SysctlFluent implements VisitableBuilder{ + + V1SysctlFluent fluent; + public V1SysctlBuilder() { this(new V1Sysctl()); } @@ -10,17 +14,16 @@ public V1SysctlBuilder(V1SysctlFluent fluent) { this(fluent, new V1Sysctl()); } - public V1SysctlBuilder(V1SysctlFluent fluent,V1Sysctl instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1SysctlBuilder(V1Sysctl instance) { this.fluent = this; this.copyInstance(instance); } - V1SysctlFluent fluent; + public V1SysctlBuilder(V1SysctlFluent fluent,V1Sysctl instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Sysctl build() { V1Sysctl buildable = new V1Sysctl(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V1Sysctl build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java index ce52229cce..e230b4bae7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1SysctlFluent> extends BaseFluent{ +public class V1SysctlFluent> extends BaseFluent{ + + private String name; + private String value; + public V1SysctlFluent() { } public V1SysctlFluent(V1Sysctl instance) { this.copyInstance(instance); } - private String name; - private String value; - + protected void copyInstance(V1Sysctl instance) { - instance = (instance != null ? instance : new V1Sysctl()); + instance = instance != null ? instance : new V1Sysctl(); if (instance != null) { - this.withName(instance.getName()); - this.withValue(instance.getValue()); - } + this.withName(instance.getName()); + this.withValue(instance.getValue()); + } } - public String getName() { - return this.name; - } - - public A withName(String name) { - this.name = name; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1SysctlFluent that = (V1SysctlFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; } - public boolean hasName() { - return this.name != null; + public String getName() { + return this.name; } public String getValue() { return this.value; } - public A withValue(String value) { - this.value = value; - return (A) this; + public boolean hasName() { + return this.name != null; } 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; - V1SysctlFluent that = (V1SysctlFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(name, value, super.hashCode()); + return Objects.hash(name, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java index 3bf4414b2d..bad8cf8914 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TCPSocketActionBuilder extends V1TCPSocketActionFluent implements VisitableBuilder{ + + V1TCPSocketActionFluent fluent; + public V1TCPSocketActionBuilder() { this(new V1TCPSocketAction()); } @@ -10,17 +14,16 @@ public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent) { this(fluent, new V1TCPSocketAction()); } - public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent,V1TCPSocketAction instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TCPSocketActionBuilder(V1TCPSocketAction instance) { this.fluent = this; this.copyInstance(instance); } - V1TCPSocketActionFluent fluent; + public V1TCPSocketActionBuilder(V1TCPSocketActionFluent fluent,V1TCPSocketAction instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TCPSocketAction build() { V1TCPSocketAction buildable = new V1TCPSocketAction(); buildable.setHost(fluent.getHost()); @@ -28,5 +31,4 @@ public V1TCPSocketAction build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java index 290933eecb..10c88c9b49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java @@ -1,89 +1,109 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.custom.IntOrString; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TCPSocketActionFluent> extends BaseFluent{ +public class V1TCPSocketActionFluent> extends BaseFluent{ + + private String host; + private IntOrString port; + public V1TCPSocketActionFluent() { } public V1TCPSocketActionFluent(V1TCPSocketAction instance) { this.copyInstance(instance); } - private String host; - private IntOrString port; - + protected void copyInstance(V1TCPSocketAction instance) { - instance = (instance != null ? instance : new V1TCPSocketAction()); + instance = instance != null ? instance : new V1TCPSocketAction(); if (instance != null) { - this.withHost(instance.getHost()); - this.withPort(instance.getPort()); - } + this.withHost(instance.getHost()); + this.withPort(instance.getPort()); + } } - public String getHost() { - return this.host; - } - - public A withHost(String host) { - this.host = host; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TCPSocketActionFluent that = (V1TCPSocketActionFluent) o; + if (!(Objects.equals(host, that.host))) { + return false; + } + if (!(Objects.equals(port, that.port))) { + return false; + } + return true; } - public boolean hasHost() { - return this.host != null; + public String getHost() { + return this.host; } public IntOrString getPort() { return this.port; } - public A withPort(IntOrString port) { - this.port = port; - return (A) this; + public boolean hasHost() { + return this.host != null; } public boolean hasPort() { return this.port != null; } - public A withNewPort(int value) { - return (A)withPort(new IntOrString(value)); - } - - public A withNewPort(String value) { - return (A)withPort(new IntOrString(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; - V1TCPSocketActionFluent that = (V1TCPSocketActionFluent) o; - if (!java.util.Objects.equals(host, that.host)) return false; - if (!java.util.Objects.equals(port, that.port)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(host, port, super.hashCode()); + return Objects.hash(host, port); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (host != null) { sb.append("host:"); sb.append(host + ","); } - if (port != null) { sb.append("port:"); sb.append(port); } + if (!(host == null)) { + sb.append("host:"); + sb.append(host); + sb.append(","); + } + if (!(port == null)) { + sb.append("port:"); + sb.append(port); + } sb.append("}"); return sb.toString(); } - + public A withHost(String host) { + this.host = host; + return (A) this; + } + + public A withNewPort(int value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withNewPort(String value) { + return (A) this.withPort(new IntOrString(value)); + } + + public A withPort(IntOrString port) { + this.port = port; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java index c6640dc364..266a955f19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TaintBuilder extends V1TaintFluent implements VisitableBuilder{ + + V1TaintFluent fluent; + public V1TaintBuilder() { this(new V1Taint()); } @@ -10,17 +14,16 @@ public V1TaintBuilder(V1TaintFluent fluent) { this(fluent, new V1Taint()); } - public V1TaintBuilder(V1TaintFluent fluent,V1Taint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TaintBuilder(V1Taint instance) { this.fluent = this; this.copyInstance(instance); } - V1TaintFluent fluent; + public V1TaintBuilder(V1TaintFluent fluent,V1Taint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Taint build() { V1Taint buildable = new V1Taint(); buildable.setEffect(fluent.getEffect()); @@ -30,5 +33,4 @@ public V1Taint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java index b843ffcfcc..1b16ed7567 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java @@ -1,115 +1,147 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TaintFluent> extends BaseFluent{ +public class V1TaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + public V1TaintFluent() { } public V1TaintFluent(V1Taint instance) { this.copyInstance(instance); } - private String effect; - private String key; - private OffsetDateTime timeAdded; - private String value; - + protected void copyInstance(V1Taint instance) { - instance = (instance != null ? instance : new V1Taint()); + instance = instance != null ? instance : new V1Taint(); if (instance != null) { - this.withEffect(instance.getEffect()); - this.withKey(instance.getKey()); - this.withTimeAdded(instance.getTimeAdded()); - this.withValue(instance.getValue()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TaintFluent that = (V1TaintFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; } - public boolean hasEffect() { - return this.effect != null; + public String getEffect() { + return this.effect; } 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 String getValue() { + return this.value; } - public boolean hasTimeAdded() { - return this.timeAdded != null; + public boolean hasEffect() { + return this.effect != null; } - public String getValue() { - return this.value; + public boolean hasKey() { + return this.key != null; } - public A withValue(String value) { - this.value = value; - return (A) this; + public boolean hasTimeAdded() { + return this.timeAdded != null; } 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; - V1TaintFluent that = (V1TaintFluent) 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()); + return Objects.hash(effect, key, timeAdded, value); } 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); } + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } - + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java index b304886ba6..2dc3074c81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenRequestSpecBuilder extends V1TokenRequestSpecFluent implements VisitableBuilder{ + + V1TokenRequestSpecFluent fluent; + public V1TokenRequestSpecBuilder() { this(new V1TokenRequestSpec()); } @@ -10,17 +14,16 @@ public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent) { this(fluent, new V1TokenRequestSpec()); } - public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent,V1TokenRequestSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenRequestSpecBuilder(V1TokenRequestSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenRequestSpecFluent fluent; + public V1TokenRequestSpecBuilder(V1TokenRequestSpecFluent fluent,V1TokenRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenRequestSpec build() { V1TokenRequestSpec buildable = new V1TokenRequestSpec(); buildable.setAudiences(fluent.getAudiences()); @@ -29,5 +32,4 @@ public V1TokenRequestSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java index 5b5615f25c..801bf1d2f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java @@ -1,79 +1,124 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Long; -import java.util.Collection; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TokenRequestSpecFluent> extends BaseFluent{ +public class V1TokenRequestSpecFluent> extends BaseFluent{ + + private List audiences; + private V1BoundObjectReferenceBuilder boundObjectRef; + private Long expirationSeconds; + public V1TokenRequestSpecFluent() { } public V1TokenRequestSpecFluent(V1TokenRequestSpec instance) { this.copyInstance(instance); } - private List audiences; - private V1BoundObjectReferenceBuilder boundObjectRef; - private Long expirationSeconds; + + public A addAllToAudiences(Collection items) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; + } - protected void copyInstance(V1TokenRequestSpec instance) { - instance = (instance != null ? instance : new V1TokenRequestSpec()); - if (instance != null) { - this.withAudiences(instance.getAudiences()); - this.withBoundObjectRef(instance.getBoundObjectRef()); - this.withExpirationSeconds(instance.getExpirationSeconds()); - } + public A addToAudiences(String... items) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; } public A addToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} + if (this.audiences == null) { + this.audiences = new ArrayList(); + } this.audiences.add(index, item); - return (A)this; + return (A) this; } - public A setToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} - this.audiences.set(index, item); return (A)this; + public V1BoundObjectReference buildBoundObjectRef() { + return this.boundObjectRef != null ? this.boundObjectRef.build() : null; } - public A addToAudiences(java.lang.String... items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + protected void copyInstance(V1TokenRequestSpec instance) { + instance = instance != null ? instance : new V1TokenRequestSpec(); + if (instance != null) { + this.withAudiences(instance.getAudiences()); + this.withBoundObjectRef(instance.getBoundObjectRef()); + this.withExpirationSeconds(instance.getExpirationSeconds()); + } } - public A addAllToAudiences(Collection items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + public BoundObjectRefNested editBoundObjectRef() { + return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(null)); } - public A removeFromAudiences(java.lang.String... items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + public BoundObjectRefNested editOrNewBoundObjectRef() { + return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(new V1BoundObjectReferenceBuilder().build())); } - public A removeAllFromAudiences(Collection items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + public BoundObjectRefNested editOrNewBoundObjectRefLike(V1BoundObjectReference item) { + return this.withNewBoundObjectRefLike(Optional.ofNullable(this.buildBoundObjectRef()).orElse(item)); } - public List getAudiences() { - return this.audiences; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TokenRequestSpecFluent that = (V1TokenRequestSpecFluent) o; + if (!(Objects.equals(audiences, that.audiences))) { + return false; + } + if (!(Objects.equals(boundObjectRef, that.boundObjectRef))) { + return false; + } + if (!(Objects.equals(expirationSeconds, that.expirationSeconds))) { + return false; + } + return true; } public String getAudience(int index) { return this.audiences.get(index); } + public List getAudiences() { + return this.audiences; + } + + public Long getExpirationSeconds() { + return this.expirationSeconds; + } + public String getFirstAudience() { return this.audiences.get(0); } @@ -91,6 +136,18 @@ public String getMatchingAudience(Predicate predicate) { return null; } + public boolean hasAudiences() { + return this.audiences != null && !(this.audiences.isEmpty()); + } + + public boolean hasBoundObjectRef() { + return this.boundObjectRef != null; + } + + public boolean hasExpirationSeconds() { + return this.expirationSeconds != null; + } + public boolean hasMatchingAudience(Predicate predicate) { for (String item : audiences) { if (predicate.test(item)) { @@ -100,6 +157,59 @@ public boolean hasMatchingAudience(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(audiences, boundObjectRef, expirationSeconds); + } + + public A removeAllFromAudiences(Collection items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A removeFromAudiences(String... items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A setToAudiences(int index,String item) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + this.audiences.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(audiences == null) && !(audiences.isEmpty())) { + sb.append("audiences:"); + sb.append(audiences); + sb.append(","); + } + if (!(boundObjectRef == null)) { + sb.append("boundObjectRef:"); + sb.append(boundObjectRef); + sb.append(","); + } + if (!(expirationSeconds == null)) { + sb.append("expirationSeconds:"); + sb.append(expirationSeconds); + } + sb.append("}"); + return sb.toString(); + } + public A withAudiences(List audiences) { if (audiences != null) { this.audiences = new ArrayList(); @@ -112,7 +222,7 @@ public A withAudiences(List audiences) { return (A) this; } - public A withAudiences(java.lang.String... audiences) { + public A withAudiences(String... audiences) { if (this.audiences != null) { this.audiences.clear(); _visitables.remove("audiences"); @@ -125,14 +235,6 @@ public A withAudiences(java.lang.String... audiences) { return (A) this; } - public boolean hasAudiences() { - return this.audiences != null && !this.audiences.isEmpty(); - } - - public V1BoundObjectReference buildBoundObjectRef() { - return this.boundObjectRef != null ? this.boundObjectRef.build() : null; - } - public A withBoundObjectRef(V1BoundObjectReference boundObjectRef) { this._visitables.remove("boundObjectRef"); if (boundObjectRef != null) { @@ -145,8 +247,9 @@ public A withBoundObjectRef(V1BoundObjectReference boundObjectRef) { return (A) this; } - public boolean hasBoundObjectRef() { - return this.boundObjectRef != null; + public A withExpirationSeconds(Long expirationSeconds) { + this.expirationSeconds = expirationSeconds; + return (A) this; } public BoundObjectRefNested withNewBoundObjectRef() { @@ -156,62 +259,14 @@ public BoundObjectRefNested withNewBoundObjectRef() { public BoundObjectRefNested withNewBoundObjectRefLike(V1BoundObjectReference item) { return new BoundObjectRefNested(item); } + public class BoundObjectRefNested extends V1BoundObjectReferenceFluent> implements Nested{ - public BoundObjectRefNested editBoundObjectRef() { - return withNewBoundObjectRefLike(java.util.Optional.ofNullable(buildBoundObjectRef()).orElse(null)); - } - - public BoundObjectRefNested editOrNewBoundObjectRef() { - return withNewBoundObjectRefLike(java.util.Optional.ofNullable(buildBoundObjectRef()).orElse(new V1BoundObjectReferenceBuilder().build())); - } - - public BoundObjectRefNested editOrNewBoundObjectRefLike(V1BoundObjectReference item) { - return withNewBoundObjectRefLike(java.util.Optional.ofNullable(buildBoundObjectRef()).orElse(item)); - } - - public Long getExpirationSeconds() { - return this.expirationSeconds; - } - - public A withExpirationSeconds(Long expirationSeconds) { - this.expirationSeconds = expirationSeconds; - return (A) this; - } - - public boolean hasExpirationSeconds() { - return this.expirationSeconds != 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; - V1TokenRequestSpecFluent that = (V1TokenRequestSpecFluent) o; - if (!java.util.Objects.equals(audiences, that.audiences)) return false; - if (!java.util.Objects.equals(boundObjectRef, that.boundObjectRef)) return false; - if (!java.util.Objects.equals(expirationSeconds, that.expirationSeconds)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(audiences, boundObjectRef, expirationSeconds, super.hashCode()); - } + V1BoundObjectReferenceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (audiences != null && !audiences.isEmpty()) { sb.append("audiences:"); sb.append(audiences + ","); } - if (boundObjectRef != null) { sb.append("boundObjectRef:"); sb.append(boundObjectRef + ","); } - if (expirationSeconds != null) { sb.append("expirationSeconds:"); sb.append(expirationSeconds); } - sb.append("}"); - return sb.toString(); - } - public class BoundObjectRefNested extends V1BoundObjectReferenceFluent> implements Nested{ BoundObjectRefNested(V1BoundObjectReference item) { this.builder = new V1BoundObjectReferenceBuilder(this, item); } - V1BoundObjectReferenceBuilder builder; - + public N and() { return (N) V1TokenRequestSpecFluent.this.withBoundObjectRef(builder.build()); } @@ -220,7 +275,5 @@ public N endBoundObjectRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java index 9fd0524632..68fe31ea57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenRequestStatusBuilder extends V1TokenRequestStatusFluent implements VisitableBuilder{ + + V1TokenRequestStatusFluent fluent; + public V1TokenRequestStatusBuilder() { this(new V1TokenRequestStatus()); } @@ -10,17 +14,16 @@ public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent) { this(fluent, new V1TokenRequestStatus()); } - public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent,V1TokenRequestStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenRequestStatusBuilder(V1TokenRequestStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenRequestStatusFluent fluent; + public V1TokenRequestStatusBuilder(V1TokenRequestStatusFluent fluent,V1TokenRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenRequestStatus build() { V1TokenRequestStatus buildable = new V1TokenRequestStatus(); buildable.setExpirationTimestamp(fluent.getExpirationTimestamp()); @@ -28,5 +31,4 @@ public V1TokenRequestStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java index 635c05ff9f..3a402f13a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java @@ -1,81 +1,101 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TokenRequestStatusFluent> extends BaseFluent{ +public class V1TokenRequestStatusFluent> extends BaseFluent{ + + private OffsetDateTime expirationTimestamp; + private String token; + public V1TokenRequestStatusFluent() { } public V1TokenRequestStatusFluent(V1TokenRequestStatus instance) { this.copyInstance(instance); } - private OffsetDateTime expirationTimestamp; - private String token; - + protected void copyInstance(V1TokenRequestStatus instance) { - instance = (instance != null ? instance : new V1TokenRequestStatus()); + instance = instance != null ? instance : new V1TokenRequestStatus(); if (instance != null) { - this.withExpirationTimestamp(instance.getExpirationTimestamp()); - this.withToken(instance.getToken()); - } + this.withExpirationTimestamp(instance.getExpirationTimestamp()); + this.withToken(instance.getToken()); + } } - public OffsetDateTime getExpirationTimestamp() { - return this.expirationTimestamp; - } - - public A withExpirationTimestamp(OffsetDateTime expirationTimestamp) { - this.expirationTimestamp = expirationTimestamp; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TokenRequestStatusFluent that = (V1TokenRequestStatusFluent) o; + if (!(Objects.equals(expirationTimestamp, that.expirationTimestamp))) { + return false; + } + if (!(Objects.equals(token, that.token))) { + return false; + } + return true; } - public boolean hasExpirationTimestamp() { - return this.expirationTimestamp != null; + public OffsetDateTime getExpirationTimestamp() { + return this.expirationTimestamp; } public String getToken() { return this.token; } - public A withToken(String token) { - this.token = token; - return (A) this; + public boolean hasExpirationTimestamp() { + return this.expirationTimestamp != null; } public boolean hasToken() { return this.token != 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; - V1TokenRequestStatusFluent that = (V1TokenRequestStatusFluent) o; - if (!java.util.Objects.equals(expirationTimestamp, that.expirationTimestamp)) return false; - if (!java.util.Objects.equals(token, that.token)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(expirationTimestamp, token, super.hashCode()); + return Objects.hash(expirationTimestamp, token); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (expirationTimestamp != null) { sb.append("expirationTimestamp:"); sb.append(expirationTimestamp + ","); } - if (token != null) { sb.append("token:"); sb.append(token); } + if (!(expirationTimestamp == null)) { + sb.append("expirationTimestamp:"); + sb.append(expirationTimestamp); + sb.append(","); + } + if (!(token == null)) { + sb.append("token:"); + sb.append(token); + } sb.append("}"); return sb.toString(); } - + public A withExpirationTimestamp(OffsetDateTime expirationTimestamp) { + this.expirationTimestamp = expirationTimestamp; + return (A) this; + } + + public A withToken(String token) { + this.token = token; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java index aa2af1ad55..de5c95ee08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenReviewBuilder extends V1TokenReviewFluent implements VisitableBuilder{ + + V1TokenReviewFluent fluent; + public V1TokenReviewBuilder() { this(new V1TokenReview()); } @@ -10,17 +14,16 @@ public V1TokenReviewBuilder(V1TokenReviewFluent fluent) { this(fluent, new V1TokenReview()); } - public V1TokenReviewBuilder(V1TokenReviewFluent fluent,V1TokenReview instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenReviewBuilder(V1TokenReview instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenReviewFluent fluent; + public V1TokenReviewBuilder(V1TokenReviewFluent fluent,V1TokenReview instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenReview build() { V1TokenReview buildable = new V1TokenReview(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1TokenReview build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java index be872aa41d..0e8f53314d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TokenReviewFluent> extends BaseFluent{ +public class V1TokenReviewFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1TokenReviewSpecBuilder spec; + private V1TokenReviewStatusBuilder status; + public V1TokenReviewFluent() { } public V1TokenReviewFluent(V1TokenReview instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1TokenReviewSpecBuilder spec; - private V1TokenReviewStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1TokenReviewSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1TokenReviewStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1TokenReview instance) { - instance = (instance != null ? instance : new V1TokenReview()); + instance = instance != null ? instance : new V1TokenReview(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1TokenReviewSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1TokenReviewSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1TokenReviewStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1TokenReviewStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TokenReviewFluent that = (V1TokenReviewFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1TokenReviewSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1TokenReviewSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1TokenReviewStatus item) { + return new StatusNested(item); } public A withSpec(V1TokenReviewSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1TokenReviewSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1TokenReviewSpec 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 V1TokenReviewSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1TokenReviewSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1TokenReviewStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1TokenReviewStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1TokenReviewStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1TokenReviewStatus 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 V1TokenReviewStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1TokenReviewStatus 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; - V1TokenReviewFluent that = (V1TokenReviewFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1TokenReviewFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1TokenReviewSpecFluent> implements Nested{ + + V1TokenReviewSpecBuilder builder; + SpecNested(V1TokenReviewSpec item) { this.builder = new V1TokenReviewSpecBuilder(this, item); } - V1TokenReviewSpecBuilder builder; - + public N and() { return (N) V1TokenReviewFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1TokenReviewStatusFluent> implements Nested{ + + V1TokenReviewStatusBuilder builder; + StatusNested(V1TokenReviewStatus item) { this.builder = new V1TokenReviewStatusBuilder(this, item); } - V1TokenReviewStatusBuilder builder; - + public N and() { return (N) V1TokenReviewFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java index f7e67fa129..08f06095dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenReviewSpecBuilder extends V1TokenReviewSpecFluent implements VisitableBuilder{ + + V1TokenReviewSpecFluent fluent; + public V1TokenReviewSpecBuilder() { this(new V1TokenReviewSpec()); } @@ -10,17 +14,16 @@ public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent) { this(fluent, new V1TokenReviewSpec()); } - public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent,V1TokenReviewSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenReviewSpecBuilder(V1TokenReviewSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenReviewSpecFluent fluent; + public V1TokenReviewSpecBuilder(V1TokenReviewSpecFluent fluent,V1TokenReviewSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenReviewSpec build() { V1TokenReviewSpec buildable = new V1TokenReviewSpec(); buildable.setAudiences(fluent.getAudiences()); @@ -28,5 +31,4 @@ public V1TokenReviewSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java index faac9a0b8e..58e422bcbf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java @@ -1,75 +1,96 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TokenReviewSpecFluent> extends BaseFluent{ +public class V1TokenReviewSpecFluent> extends BaseFluent{ + + private List audiences; + private String token; + public V1TokenReviewSpecFluent() { } public V1TokenReviewSpecFluent(V1TokenReviewSpec instance) { this.copyInstance(instance); } - private List audiences; - private String token; + + public A addAllToAudiences(Collection items) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; + } - protected void copyInstance(V1TokenReviewSpec instance) { - instance = (instance != null ? instance : new V1TokenReviewSpec()); - if (instance != null) { - this.withAudiences(instance.getAudiences()); - this.withToken(instance.getToken()); - } + public A addToAudiences(String... items) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; } public A addToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} + if (this.audiences == null) { + this.audiences = new ArrayList(); + } this.audiences.add(index, item); - return (A)this; - } - - public A setToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} - this.audiences.set(index, item); return (A)this; - } - - public A addToAudiences(java.lang.String... items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + return (A) this; } - public A addAllToAudiences(Collection items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + protected void copyInstance(V1TokenReviewSpec instance) { + instance = instance != null ? instance : new V1TokenReviewSpec(); + if (instance != null) { + this.withAudiences(instance.getAudiences()); + this.withToken(instance.getToken()); + } } - public A removeFromAudiences(java.lang.String... items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TokenReviewSpecFluent that = (V1TokenReviewSpecFluent) o; + if (!(Objects.equals(audiences, that.audiences))) { + return false; + } + if (!(Objects.equals(token, that.token))) { + return false; + } + return true; } - public A removeAllFromAudiences(Collection items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + public String getAudience(int index) { + return this.audiences.get(index); } public List getAudiences() { return this.audiences; } - public String getAudience(int index) { - return this.audiences.get(index); - } - public String getFirstAudience() { return this.audiences.get(0); } @@ -87,6 +108,14 @@ public String getMatchingAudience(Predicate predicate) { return null; } + public String getToken() { + return this.token; + } + + public boolean hasAudiences() { + return this.audiences != null && !(this.audiences.isEmpty()); + } + public boolean hasMatchingAudience(Predicate predicate) { for (String item : audiences) { if (predicate.test(item)) { @@ -96,6 +125,58 @@ public boolean hasMatchingAudience(Predicate predicate) { return false; } + public boolean hasToken() { + return this.token != null; + } + + public int hashCode() { + return Objects.hash(audiences, token); + } + + public A removeAllFromAudiences(Collection items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A removeFromAudiences(String... items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A setToAudiences(int index,String item) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + this.audiences.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(audiences == null) && !(audiences.isEmpty())) { + sb.append("audiences:"); + sb.append(audiences); + sb.append(","); + } + if (!(token == null)) { + sb.append("token:"); + sb.append(token); + } + sb.append("}"); + return sb.toString(); + } + public A withAudiences(List audiences) { if (audiences != null) { this.audiences = new ArrayList(); @@ -108,7 +189,7 @@ public A withAudiences(List audiences) { return (A) this; } - public A withAudiences(java.lang.String... audiences) { + public A withAudiences(String... audiences) { if (this.audiences != null) { this.audiences.clear(); _visitables.remove("audiences"); @@ -121,45 +202,9 @@ public A withAudiences(java.lang.String... audiences) { return (A) this; } - public boolean hasAudiences() { - return this.audiences != null && !this.audiences.isEmpty(); - } - - public String getToken() { - return this.token; - } - public A withToken(String token) { this.token = token; return (A) this; } - public boolean hasToken() { - return this.token != 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; - V1TokenReviewSpecFluent that = (V1TokenReviewSpecFluent) o; - if (!java.util.Objects.equals(audiences, that.audiences)) return false; - if (!java.util.Objects.equals(token, that.token)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(audiences, token, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (audiences != null && !audiences.isEmpty()) { sb.append("audiences:"); sb.append(audiences + ","); } - if (token != null) { sb.append("token:"); sb.append(token); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java index f0349e294b..5b5d77f78c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TokenReviewStatusBuilder extends V1TokenReviewStatusFluent implements VisitableBuilder{ + + V1TokenReviewStatusFluent fluent; + public V1TokenReviewStatusBuilder() { this(new V1TokenReviewStatus()); } @@ -10,17 +14,16 @@ public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent) { this(fluent, new V1TokenReviewStatus()); } - public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent,V1TokenReviewStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TokenReviewStatusBuilder(V1TokenReviewStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1TokenReviewStatusFluent fluent; + public V1TokenReviewStatusBuilder(V1TokenReviewStatusFluent fluent,V1TokenReviewStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TokenReviewStatus build() { V1TokenReviewStatus buildable = new V1TokenReviewStatus(); buildable.setAudiences(fluent.getAudiences()); @@ -30,5 +33,4 @@ public V1TokenReviewStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java index ad8a84da38..8867987742 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java @@ -1,81 +1,133 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Boolean; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TokenReviewStatusFluent> extends BaseFluent{ +public class V1TokenReviewStatusFluent> extends BaseFluent{ + + private List audiences; + private Boolean authenticated; + private String error; + private V1UserInfoBuilder user; + public V1TokenReviewStatusFluent() { } public V1TokenReviewStatusFluent(V1TokenReviewStatus instance) { this.copyInstance(instance); } - private List audiences; - private Boolean authenticated; - private String error; - private V1UserInfoBuilder user; + + public A addAllToAudiences(Collection items) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; + } - protected void copyInstance(V1TokenReviewStatus instance) { - instance = (instance != null ? instance : new V1TokenReviewStatus()); - if (instance != null) { - this.withAudiences(instance.getAudiences()); - this.withAuthenticated(instance.getAuthenticated()); - this.withError(instance.getError()); - this.withUser(instance.getUser()); - } + public A addToAudiences(String... items) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + for (String item : items) { + this.audiences.add(item); + } + return (A) this; } public A addToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} + if (this.audiences == null) { + this.audiences = new ArrayList(); + } this.audiences.add(index, item); - return (A)this; + return (A) this; } - public A setToAudiences(int index,String item) { - if (this.audiences == null) {this.audiences = new ArrayList();} - this.audiences.set(index, item); return (A)this; + public V1UserInfo buildUser() { + return this.user != null ? this.user.build() : null; } - public A addToAudiences(java.lang.String... items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + protected void copyInstance(V1TokenReviewStatus instance) { + instance = instance != null ? instance : new V1TokenReviewStatus(); + if (instance != null) { + this.withAudiences(instance.getAudiences()); + this.withAuthenticated(instance.getAuthenticated()); + this.withError(instance.getError()); + this.withUser(instance.getUser()); + } } - public A addAllToAudiences(Collection items) { - if (this.audiences == null) {this.audiences = new ArrayList();} - for (String item : items) {this.audiences.add(item);} return (A)this; + public UserNested editOrNewUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(new V1UserInfoBuilder().build())); } - public A removeFromAudiences(java.lang.String... items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + public UserNested editOrNewUserLike(V1UserInfo item) { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(item)); } - public A removeAllFromAudiences(Collection items) { - if (this.audiences == null) return (A)this; - for (String item : items) { this.audiences.remove(item);} return (A)this; + public UserNested editUser() { + return this.withNewUserLike(Optional.ofNullable(this.buildUser()).orElse(null)); } - public List getAudiences() { - return this.audiences; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TokenReviewStatusFluent that = (V1TokenReviewStatusFluent) o; + if (!(Objects.equals(audiences, that.audiences))) { + return false; + } + if (!(Objects.equals(authenticated, that.authenticated))) { + return false; + } + if (!(Objects.equals(error, that.error))) { + return false; + } + if (!(Objects.equals(user, that.user))) { + return false; + } + return true; } public String getAudience(int index) { return this.audiences.get(index); } + public List getAudiences() { + return this.audiences; + } + + public Boolean getAuthenticated() { + return this.authenticated; + } + + public String getError() { + return this.error; + } + public String getFirstAudience() { return this.audiences.get(0); } @@ -93,6 +145,18 @@ public String getMatchingAudience(Predicate predicate) { return null; } + public boolean hasAudiences() { + return this.audiences != null && !(this.audiences.isEmpty()); + } + + public boolean hasAuthenticated() { + return this.authenticated != null; + } + + public boolean hasError() { + return this.error != null; + } + public boolean hasMatchingAudience(Predicate predicate) { for (String item : audiences) { if (predicate.test(item)) { @@ -102,6 +166,68 @@ public boolean hasMatchingAudience(Predicate predicate) { return false; } + public boolean hasUser() { + return this.user != null; + } + + public int hashCode() { + return Objects.hash(audiences, authenticated, error, user); + } + + public A removeAllFromAudiences(Collection items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A removeFromAudiences(String... items) { + if (this.audiences == null) { + return (A) this; + } + for (String item : items) { + this.audiences.remove(item); + } + return (A) this; + } + + public A setToAudiences(int index,String item) { + if (this.audiences == null) { + this.audiences = new ArrayList(); + } + this.audiences.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(audiences == null) && !(audiences.isEmpty())) { + sb.append("audiences:"); + sb.append(audiences); + sb.append(","); + } + if (!(authenticated == null)) { + sb.append("authenticated:"); + sb.append(authenticated); + sb.append(","); + } + if (!(error == null)) { + sb.append("error:"); + sb.append(error); + sb.append(","); + } + if (!(user == null)) { + sb.append("user:"); + sb.append(user); + } + sb.append("}"); + return sb.toString(); + } + public A withAudiences(List audiences) { if (audiences != null) { this.audiences = new ArrayList(); @@ -114,7 +240,7 @@ public A withAudiences(List audiences) { return (A) this; } - public A withAudiences(java.lang.String... audiences) { + public A withAudiences(String... audiences) { if (this.audiences != null) { this.audiences.clear(); _visitables.remove("audiences"); @@ -127,12 +253,8 @@ public A withAudiences(java.lang.String... audiences) { return (A) this; } - public boolean hasAudiences() { - return this.audiences != null && !this.audiences.isEmpty(); - } - - public Boolean getAuthenticated() { - return this.authenticated; + public A withAuthenticated() { + return withAuthenticated(true); } public A withAuthenticated(Boolean authenticated) { @@ -140,25 +262,17 @@ public A withAuthenticated(Boolean authenticated) { return (A) this; } - public boolean hasAuthenticated() { - return this.authenticated != null; - } - - public String getError() { - return this.error; - } - public A withError(String error) { this.error = error; return (A) this; } - public boolean hasError() { - return this.error != null; + public UserNested withNewUser() { + return new UserNested(null); } - public V1UserInfo buildUser() { - return this.user != null ? this.user.build() : null; + public UserNested withNewUserLike(V1UserInfo item) { + return new UserNested(item); } public A withUser(V1UserInfo user) { @@ -172,67 +286,14 @@ public A withUser(V1UserInfo user) { } return (A) this; } + public class UserNested extends V1UserInfoFluent> implements Nested{ - public boolean hasUser() { - return this.user != null; - } - - public UserNested withNewUser() { - return new UserNested(null); - } - - public UserNested withNewUserLike(V1UserInfo 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 V1UserInfoBuilder().build())); - } - - public UserNested editOrNewUserLike(V1UserInfo 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; - V1TokenReviewStatusFluent that = (V1TokenReviewStatusFluent) o; - if (!java.util.Objects.equals(audiences, that.audiences)) return false; - if (!java.util.Objects.equals(authenticated, that.authenticated)) return false; - if (!java.util.Objects.equals(error, that.error)) return false; - if (!java.util.Objects.equals(user, that.user)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(audiences, authenticated, error, user, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (audiences != null && !audiences.isEmpty()) { sb.append("audiences:"); sb.append(audiences + ","); } - if (authenticated != null) { sb.append("authenticated:"); sb.append(authenticated + ","); } - if (error != null) { sb.append("error:"); sb.append(error + ","); } - if (user != null) { sb.append("user:"); sb.append(user); } - sb.append("}"); - return sb.toString(); - } + V1UserInfoBuilder builder; - public A withAuthenticated() { - return withAuthenticated(true); - } - public class UserNested extends V1UserInfoFluent> implements Nested{ UserNested(V1UserInfo item) { this.builder = new V1UserInfoBuilder(this, item); } - V1UserInfoBuilder builder; - + public N and() { return (N) V1TokenReviewStatusFluent.this.withUser(builder.build()); } @@ -241,7 +302,5 @@ public N endUser() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java index 219de58bd3..aad06ed147 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TolerationBuilder extends V1TolerationFluent implements VisitableBuilder{ + + V1TolerationFluent fluent; + public V1TolerationBuilder() { this(new V1Toleration()); } @@ -10,17 +14,16 @@ public V1TolerationBuilder(V1TolerationFluent fluent) { this(fluent, new V1Toleration()); } - public V1TolerationBuilder(V1TolerationFluent fluent,V1Toleration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TolerationBuilder(V1Toleration instance) { this.fluent = this; this.copyInstance(instance); } - V1TolerationFluent fluent; + public V1TolerationBuilder(V1TolerationFluent fluent,V1Toleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Toleration build() { V1Toleration buildable = new V1Toleration(); buildable.setEffect(fluent.getEffect()); @@ -31,5 +34,4 @@ public V1Toleration build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java index 4c78b949f2..4d84fd4d35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java @@ -1,132 +1,170 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TolerationFluent> extends BaseFluent{ - public V1TolerationFluent() { - } - - public V1TolerationFluent(V1Toleration instance) { - this.copyInstance(instance); - } +public class V1TolerationFluent> extends BaseFluent{ + private String effect; private String key; private String operator; private Long tolerationSeconds; private String value; + + public V1TolerationFluent() { + } + public V1TolerationFluent(V1Toleration instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1Toleration instance) { - instance = (instance != null ? instance : new V1Toleration()); + instance = instance != null ? instance : new V1Toleration(); 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; + this.withEffect(instance.getEffect()); + this.withKey(instance.getKey()); + this.withOperator(instance.getOperator()); + this.withTolerationSeconds(instance.getTolerationSeconds()); + this.withValue(instance.getValue()); + } } - public A withEffect(String effect) { - this.effect = effect; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TolerationFluent that = (V1TolerationFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(tolerationSeconds, that.tolerationSeconds))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; } - public boolean hasEffect() { - return this.effect != null; + public String getEffect() { + return this.effect; } public String getKey() { return this.key; } - public A withKey(String key) { - this.key = key; - return (A) this; + public String getOperator() { + return this.operator; } - public boolean hasKey() { - return this.key != null; + public Long getTolerationSeconds() { + return this.tolerationSeconds; } - public String getOperator() { - return this.operator; + public String getValue() { + return this.value; } - public A withOperator(String operator) { - this.operator = operator; - return (A) this; + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; } public boolean hasOperator() { return this.operator != null; } - public Long getTolerationSeconds() { - return this.tolerationSeconds; + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; } - public A withTolerationSeconds(Long tolerationSeconds) { - this.tolerationSeconds = tolerationSeconds; - return (A) this; + public boolean hasValue() { + return this.value != null; } - public boolean hasTolerationSeconds() { - return this.tolerationSeconds != null; + public int hashCode() { + return Objects.hash(effect, key, operator, tolerationSeconds, value); } - public String getValue() { - return this.value; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(tolerationSeconds == null)) { + sb.append("tolerationSeconds:"); + sb.append(tolerationSeconds); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); } - public A withValue(String value) { - this.value = value; + public A withEffect(String effect) { + this.effect = effect; return (A) this; } - public boolean hasValue() { - return this.value != null; + public A withKey(String key) { + this.key = key; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1TolerationFluent that = (V1TolerationFluent) 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 A withOperator(String operator) { + this.operator = operator; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(effect, key, operator, tolerationSeconds, value, super.hashCode()); + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; } - 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(); + public A withValue(String value) { + this.value = value; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java index 079e0f968c..f7c814e013 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TopologySelectorLabelRequirementBuilder extends V1TopologySelectorLabelRequirementFluent implements VisitableBuilder{ + + V1TopologySelectorLabelRequirementFluent fluent; + public V1TopologySelectorLabelRequirementBuilder() { this(new V1TopologySelectorLabelRequirement()); } @@ -10,17 +14,16 @@ public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirem this(fluent, new V1TopologySelectorLabelRequirement()); } - public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirementFluent fluent,V1TopologySelectorLabelRequirement instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirement instance) { this.fluent = this; this.copyInstance(instance); } - V1TopologySelectorLabelRequirementFluent fluent; + public V1TopologySelectorLabelRequirementBuilder(V1TopologySelectorLabelRequirementFluent fluent,V1TopologySelectorLabelRequirement instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TopologySelectorLabelRequirement build() { V1TopologySelectorLabelRequirement buildable = new V1TopologySelectorLabelRequirement(); buildable.setKey(fluent.getKey()); @@ -28,5 +31,4 @@ public V1TopologySelectorLabelRequirement build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java index f10adb2e67..b8eb55f796 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java @@ -1,92 +1,96 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TopologySelectorLabelRequirementFluent> extends BaseFluent{ +public class V1TopologySelectorLabelRequirementFluent> extends BaseFluent{ + + private String key; + private List values; + public V1TopologySelectorLabelRequirementFluent() { } public V1TopologySelectorLabelRequirementFluent(V1TopologySelectorLabelRequirement instance) { this.copyInstance(instance); } - private String key; - private List values; - - protected void copyInstance(V1TopologySelectorLabelRequirement instance) { - instance = (instance != null ? instance : new V1TopologySelectorLabelRequirement()); - if (instance != null) { - this.withKey(instance.getKey()); - this.withValues(instance.getValues()); - } - } - - public String getKey() { - return this.key; - } - - public A withKey(String key) { - this.key = key; + + 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 boolean hasKey() { - return this.key != null; + public A addToValues(String... items) { + if (this.values == null) { + this.values = new ArrayList(); + } + for (String item : items) { + this.values.add(item); + } + return (A) this; } public A addToValues(int index,String item) { - if (this.values == null) {this.values = new ArrayList();} + 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; + return (A) this; } - public List getValues() { - return this.values; + protected void copyInstance(V1TopologySelectorLabelRequirement instance) { + instance = instance != null ? instance : new V1TopologySelectorLabelRequirement(); + if (instance != null) { + this.withKey(instance.getKey()); + this.withValues(instance.getValues()); + } } - public String getValue(int index) { - return this.values.get(index); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TopologySelectorLabelRequirementFluent that = (V1TopologySelectorLabelRequirementFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(values, that.values))) { + return false; + } + return true; } public String getFirstValue() { return this.values.get(0); } + public String getKey() { + return this.key; + } + public String getLastValue() { return this.values.get(values.size() - 1); } @@ -100,6 +104,18 @@ public String getMatchingValue(Predicate predicate) { return null; } + public String getValue(int index) { + return this.values.get(index); + } + + public List getValues() { + return this.values; + } + + public boolean hasKey() { + return this.key != null; + } + public boolean hasMatchingValue(Predicate predicate) { for (String item : values) { if (predicate.test(item)) { @@ -109,6 +125,63 @@ public boolean hasMatchingValue(Predicate predicate) { return false; } + public boolean hasValues() { + return this.values != null && !(this.values.isEmpty()); + } + + public int hashCode() { + return Objects.hash(key, values); + } + + public A removeAllFromValues(Collection items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(item); + } + return (A) this; + } + + public A removeFromValues(String... items) { + if (this.values == null) { + return (A) this; + } + for (String item : items) { + this.values.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(values == null) && !(values.isEmpty())) { + sb.append("values:"); + sb.append(values); + } + sb.append("}"); + return sb.toString(); + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + public A withValues(List values) { if (values != null) { this.values = new ArrayList(); @@ -121,7 +194,7 @@ public A withValues(List values) { return (A) this; } - public A withValues(java.lang.String... values) { + public A withValues(String... values) { if (this.values != null) { this.values.clear(); _visitables.remove("values"); @@ -134,32 +207,4 @@ public A withValues(java.lang.String... values) { 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; - V1TopologySelectorLabelRequirementFluent that = (V1TopologySelectorLabelRequirementFluent) o; - if (!java.util.Objects.equals(key, that.key)) return false; - if (!java.util.Objects.equals(values, that.values)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(key, values, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (key != null) { sb.append("key:"); sb.append(key + ","); } - 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/V1TopologySelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java index 7c9b05cf36..2803f016b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TopologySelectorTermBuilder extends V1TopologySelectorTermFluent implements VisitableBuilder{ + + V1TopologySelectorTermFluent fluent; + public V1TopologySelectorTermBuilder() { this(new V1TopologySelectorTerm()); } @@ -10,22 +14,20 @@ public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent) { this(fluent, new V1TopologySelectorTerm()); } - public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent,V1TopologySelectorTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TopologySelectorTermBuilder(V1TopologySelectorTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1TopologySelectorTermFluent fluent; + public V1TopologySelectorTermBuilder(V1TopologySelectorTermFluent fluent,V1TopologySelectorTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TopologySelectorTerm build() { V1TopologySelectorTerm buildable = new V1TopologySelectorTerm(); buildable.setMatchLabelExpressions(fluent.buildMatchLabelExpressions()); return buildable; } - } \ 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..929b20012d 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 @@ -1,108 +1,168 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TopologySelectorTermFluent> extends BaseFluent{ +public class V1TopologySelectorTermFluent> extends BaseFluent{ + + private ArrayList matchLabelExpressions; + public V1TopologySelectorTermFluent() { } public V1TopologySelectorTermFluent(V1TopologySelectorTerm instance) { this.copyInstance(instance); } - private ArrayList matchLabelExpressions; + + public A addAllToMatchLabelExpressions(Collection items) { + if (this.matchLabelExpressions == null) { + this.matchLabelExpressions = new ArrayList(); + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").add(builder); + this.matchLabelExpressions.add(builder); + } + return (A) this; + } - protected void copyInstance(V1TopologySelectorTerm instance) { - instance = (instance != null ? instance : new V1TopologySelectorTerm()); - if (instance != null) { - this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); - } + public MatchLabelExpressionsNested addNewMatchLabelExpression() { + return new MatchLabelExpressionsNested(-1, null); } - 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);} - return (A)this; + public MatchLabelExpressionsNested addNewMatchLabelExpressionLike(V1TopologySelectorLabelRequirement item) { + return new MatchLabelExpressionsNested(-1, item); } - public A setToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement item) { - if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} + public A addToMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) { + if (this.matchLabelExpressions == null) { + this.matchLabelExpressions = new ArrayList(); + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").add(builder); + this.matchLabelExpressions.add(builder); + } + return (A) this; + } + + 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").set(index, builder); matchLabelExpressions.set(index, builder);} - return (A)this; + 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 addToMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { - if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} - for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").add(builder);this.matchLabelExpressions.add(builder);} return (A)this; + public V1TopologySelectorLabelRequirement buildFirstMatchLabelExpression() { + return this.matchLabelExpressions.get(0).build(); } - public A addAllToMatchLabelExpressions(Collection items) { - if (this.matchLabelExpressions == null) {this.matchLabelExpressions = new ArrayList();} - for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").add(builder);this.matchLabelExpressions.add(builder);} return (A)this; + public V1TopologySelectorLabelRequirement buildLastMatchLabelExpression() { + return this.matchLabelExpressions.get(matchLabelExpressions.size() - 1).build(); } - public A removeFromMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... items) { - if (this.matchLabelExpressions == null) return (A)this; - for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").remove(builder); this.matchLabelExpressions.remove(builder);} return (A)this; + public V1TopologySelectorLabelRequirement buildMatchLabelExpression(int index) { + return this.matchLabelExpressions.get(index).build(); } - public A removeAllFromMatchLabelExpressions(Collection items) { - if (this.matchLabelExpressions == null) return (A)this; - for (V1TopologySelectorLabelRequirement item : items) {V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item);_visitables.get("matchLabelExpressions").remove(builder); this.matchLabelExpressions.remove(builder);} return (A)this; + public List buildMatchLabelExpressions() { + return this.matchLabelExpressions != null ? build(matchLabelExpressions) : null; } - public A removeMatchingFromMatchLabelExpressions(Predicate predicate) { - if (matchLabelExpressions == null) return (A) this; - final Iterator each = matchLabelExpressions.iterator(); - final List visitables = _visitables.get("matchLabelExpressions"); - while (each.hasNext()) { - V1TopologySelectorLabelRequirementBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression(Predicate predicate) { + for (V1TopologySelectorLabelRequirementBuilder item : matchLabelExpressions) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A)this; + return null; } - public List buildMatchLabelExpressions() { - return this.matchLabelExpressions != null ? build(matchLabelExpressions) : null; + protected void copyInstance(V1TopologySelectorTerm instance) { + instance = instance != null ? instance : new V1TopologySelectorTerm(); + if (instance != null) { + this.withMatchLabelExpressions(instance.getMatchLabelExpressions()); + } } - public V1TopologySelectorLabelRequirement buildMatchLabelExpression(int index) { - return this.matchLabelExpressions.get(index).build(); + public MatchLabelExpressionsNested editFirstMatchLabelExpression() { + if (matchLabelExpressions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchLabelExpressions")); + } + return this.setNewMatchLabelExpressionLike(0, this.buildMatchLabelExpression(0)); } - public V1TopologySelectorLabelRequirement buildFirstMatchLabelExpression() { - return this.matchLabelExpressions.get(0).build(); + public MatchLabelExpressionsNested editLastMatchLabelExpression() { + int index = matchLabelExpressions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchLabelExpressions")); + } + return this.setNewMatchLabelExpressionLike(index, this.buildMatchLabelExpression(index)); } - public V1TopologySelectorLabelRequirement buildLastMatchLabelExpression() { - return this.matchLabelExpressions.get(matchLabelExpressions.size() - 1).build(); + public MatchLabelExpressionsNested editMatchLabelExpression(int index) { + if (matchLabelExpressions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchLabelExpressions")); + } + return this.setNewMatchLabelExpressionLike(index, this.buildMatchLabelExpression(index)); } - public V1TopologySelectorLabelRequirement buildMatchingMatchLabelExpression(Predicate predicate) { - for (V1TopologySelectorLabelRequirementBuilder item : matchLabelExpressions) { - if (predicate.test(item)) { - return item.build(); - } + public MatchLabelExpressionsNested editMatchingMatchLabelExpression(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchLabelExpressions.size();i++) { + if (predicate.test(matchLabelExpressions.get(i))) { + index = i; + break; } - return null; + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchLabelExpressions")); + } + return this.setNewMatchLabelExpressionLike(index, this.buildMatchLabelExpression(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TopologySelectorTermFluent that = (V1TopologySelectorTermFluent) o; + if (!(Objects.equals(matchLabelExpressions, that.matchLabelExpressions))) { + return false; + } + return true; + } + + public boolean hasMatchLabelExpressions() { + return this.matchLabelExpressions != null && !(this.matchLabelExpressions.isEmpty()); } public boolean hasMatchingMatchLabelExpression(Predicate predicate) { @@ -114,6 +174,80 @@ public boolean hasMatchingMatchLabelExpression(Predicate items) { + if (this.matchLabelExpressions == null) { + return (A) this; + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").remove(builder); + this.matchLabelExpressions.remove(builder); + } + return (A) this; + } + + public A removeFromMatchLabelExpressions(V1TopologySelectorLabelRequirement... items) { + if (this.matchLabelExpressions == null) { + return (A) this; + } + for (V1TopologySelectorLabelRequirement item : items) { + V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); + _visitables.get("matchLabelExpressions").remove(builder); + this.matchLabelExpressions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchLabelExpressions(Predicate predicate) { + if (matchLabelExpressions == null) { + return (A) this; + } + Iterator each = matchLabelExpressions.iterator(); + List visitables = _visitables.get("matchLabelExpressions"); + while (each.hasNext()) { + V1TopologySelectorLabelRequirementBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MatchLabelExpressionsNested setNewMatchLabelExpressionLike(int index,V1TopologySelectorLabelRequirement item) { + return new MatchLabelExpressionsNested(index, item); + } + + 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").add(builder); + matchLabelExpressions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchLabelExpressions == null) && !(matchLabelExpressions.isEmpty())) { + sb.append("matchLabelExpressions:"); + sb.append(matchLabelExpressions); + } + sb.append("}"); + return sb.toString(); + } + public A withMatchLabelExpressions(List matchLabelExpressions) { if (this.matchLabelExpressions != null) { this._visitables.get("matchLabelExpressions").clear(); @@ -129,7 +263,7 @@ public A withMatchLabelExpressions(List matc return (A) this; } - public A withMatchLabelExpressions(io.kubernetes.client.openapi.models.V1TopologySelectorLabelRequirement... matchLabelExpressions) { + public A withMatchLabelExpressions(V1TopologySelectorLabelRequirement... matchLabelExpressions) { if (this.matchLabelExpressions != null) { this.matchLabelExpressions.clear(); _visitables.remove("matchLabelExpressions"); @@ -141,85 +275,23 @@ public A withMatchLabelExpressions(io.kubernetes.client.openapi.models.V1Topolog } return (A) this; } + public class MatchLabelExpressionsNested extends V1TopologySelectorLabelRequirementFluent> implements Nested{ - public boolean hasMatchLabelExpressions() { - return this.matchLabelExpressions != null && !this.matchLabelExpressions.isEmpty(); - } - - public MatchLabelExpressionsNested addNewMatchLabelExpression() { - return new MatchLabelExpressionsNested(-1, null); - } - - public MatchLabelExpressionsNested addNewMatchLabelExpressionLike(V1TopologySelectorLabelRequirement item) { - return new MatchLabelExpressionsNested(-1, item); - } - - public MatchLabelExpressionsNested setNewMatchLabelExpressionLike(int index,V1TopologySelectorLabelRequirement item) { - return new MatchLabelExpressionsNested(index, item); - } - - public MatchLabelExpressionsNested editMatchLabelExpression(int index) { - if (matchLabelExpressions.size() <= index) throw new RuntimeException("Can't edit matchLabelExpressions. Index exceeds size."); - return setNewMatchLabelExpressionLike(index, buildMatchLabelExpression(index)); - } - - public MatchLabelExpressionsNested editFirstMatchLabelExpression() { - if (matchLabelExpressions.size() == 0) throw new RuntimeException("Can't edit first matchLabelExpressions. The list is empty."); - return setNewMatchLabelExpressionLike(0, buildMatchLabelExpression(0)); - } - - public MatchLabelExpressionsNested editLastMatchLabelExpression() { - int index = matchLabelExpressions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last matchLabelExpressions. The list is empty."); - return setNewMatchLabelExpressionLike(index, buildMatchLabelExpression(index)); - } - - public MatchLabelExpressionsNested editMatchingMatchLabelExpression(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1TopologySelectorLabelRequirementFluent> implements Nested{ MatchLabelExpressionsNested(int index,V1TopologySelectorLabelRequirement item) { this.index = index; this.builder = new V1TopologySelectorLabelRequirementBuilder(this, item); } - V1TopologySelectorLabelRequirementBuilder builder; - int index; - + public N and() { - return (N) V1TopologySelectorTermFluent.this.setToMatchLabelExpressions(index,builder.build()); + return (N) V1TopologySelectorTermFluent.this.setToMatchLabelExpressions(index, builder.build()); } public N endMatchLabelExpression() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java index d58b80b11a..4e2f6a6aa2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TopologySpreadConstraintBuilder extends V1TopologySpreadConstraintFluent implements VisitableBuilder{ + + V1TopologySpreadConstraintFluent fluent; + public V1TopologySpreadConstraintBuilder() { this(new V1TopologySpreadConstraint()); } @@ -10,17 +14,16 @@ public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent flu this(fluent, new V1TopologySpreadConstraint()); } - public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent fluent,V1TopologySpreadConstraint instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraint instance) { this.fluent = this; this.copyInstance(instance); } - V1TopologySpreadConstraintFluent fluent; + public V1TopologySpreadConstraintBuilder(V1TopologySpreadConstraintFluent fluent,V1TopologySpreadConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TopologySpreadConstraint build() { V1TopologySpreadConstraint buildable = new V1TopologySpreadConstraint(); buildable.setLabelSelector(fluent.buildLabelSelector()); @@ -34,5 +37,4 @@ public V1TopologySpreadConstraint build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java index 13d4ba6a82..1a7989fec5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java @@ -1,27 +1,25 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Collection; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TopologySpreadConstraintFluent> extends BaseFluent{ - public V1TopologySpreadConstraintFluent() { - } - - public V1TopologySpreadConstraintFluent(V1TopologySpreadConstraint instance) { - this.copyInstance(instance); - } +public class V1TopologySpreadConstraintFluent> extends BaseFluent{ + private V1LabelSelectorBuilder labelSelector; private List matchLabelKeys; private Integer maxSkew; @@ -30,115 +28,165 @@ public V1TopologySpreadConstraintFluent(V1TopologySpreadConstraint instance) { private String nodeTaintsPolicy; private String topologyKey; private String whenUnsatisfiable; - - protected void copyInstance(V1TopologySpreadConstraint instance) { - instance = (instance != null ? instance : new V1TopologySpreadConstraint()); - if (instance != null) { - this.withLabelSelector(instance.getLabelSelector()); - this.withMatchLabelKeys(instance.getMatchLabelKeys()); - this.withMaxSkew(instance.getMaxSkew()); - this.withMinDomains(instance.getMinDomains()); - this.withNodeAffinityPolicy(instance.getNodeAffinityPolicy()); - this.withNodeTaintsPolicy(instance.getNodeTaintsPolicy()); - this.withTopologyKey(instance.getTopologyKey()); - this.withWhenUnsatisfiable(instance.getWhenUnsatisfiable()); - } + + public V1TopologySpreadConstraintFluent() { } - public V1LabelSelector buildLabelSelector() { - return this.labelSelector != null ? this.labelSelector.build() : null; + public V1TopologySpreadConstraintFluent(V1TopologySpreadConstraint instance) { + this.copyInstance(instance); + } + + 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 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); + public A addToMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + for (String item : items) { + this.matchLabelKeys.add(item); } return (A) this; } - public boolean hasLabelSelector() { - return this.labelSelector != null; + public A addToMatchLabelKeys(int index,String item) { + if (this.matchLabelKeys == null) { + this.matchLabelKeys = new ArrayList(); + } + this.matchLabelKeys.add(index, item); + return (A) this; } - public LabelSelectorNested withNewLabelSelector() { - return new LabelSelectorNested(null); + public V1LabelSelector buildLabelSelector() { + return this.labelSelector != null ? this.labelSelector.build() : null; } - public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { - return new LabelSelectorNested(item); + protected void copyInstance(V1TopologySpreadConstraint instance) { + instance = instance != null ? instance : new V1TopologySpreadConstraint(); + if (instance != null) { + this.withLabelSelector(instance.getLabelSelector()); + this.withMatchLabelKeys(instance.getMatchLabelKeys()); + this.withMaxSkew(instance.getMaxSkew()); + this.withMinDomains(instance.getMinDomains()); + this.withNodeAffinityPolicy(instance.getNodeAffinityPolicy()); + this.withNodeTaintsPolicy(instance.getNodeTaintsPolicy()); + this.withTopologyKey(instance.getTopologyKey()); + this.withWhenUnsatisfiable(instance.getWhenUnsatisfiable()); + } } public LabelSelectorNested editLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(null)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(null)); } public LabelSelectorNested editOrNewLabelSelector() { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.buildLabelSelector()).orElse(new V1LabelSelectorBuilder().build())); } public LabelSelectorNested editOrNewLabelSelectorLike(V1LabelSelector item) { - return withNewLabelSelectorLike(java.util.Optional.ofNullable(buildLabelSelector()).orElse(item)); + return this.withNewLabelSelectorLike(Optional.ofNullable(this.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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TopologySpreadConstraintFluent that = (V1TopologySpreadConstraintFluent) o; + if (!(Objects.equals(labelSelector, that.labelSelector))) { + return false; + } + if (!(Objects.equals(matchLabelKeys, that.matchLabelKeys))) { + return false; + } + if (!(Objects.equals(maxSkew, that.maxSkew))) { + return false; + } + if (!(Objects.equals(minDomains, that.minDomains))) { + return false; + } + if (!(Objects.equals(nodeAffinityPolicy, that.nodeAffinityPolicy))) { + return false; + } + if (!(Objects.equals(nodeTaintsPolicy, that.nodeTaintsPolicy))) { + return false; + } + if (!(Objects.equals(topologyKey, that.topologyKey))) { + return false; + } + if (!(Objects.equals(whenUnsatisfiable, that.whenUnsatisfiable))) { + return false; + } + return true; } - public A setToMatchLabelKeys(int index,String item) { - if (this.matchLabelKeys == null) {this.matchLabelKeys = new ArrayList();} - this.matchLabelKeys.set(index, item); return (A)this; + public String getFirstMatchLabelKey() { + return this.matchLabelKeys.get(0); } - 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 String getLastMatchLabelKey() { + return this.matchLabelKeys.get(matchLabelKeys.size() - 1); } - 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 String getMatchLabelKey(int index) { + return this.matchLabelKeys.get(index); } - 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 List getMatchLabelKeys() { + return this.matchLabelKeys; } - public A removeAllFromMatchLabelKeys(Collection items) { - if (this.matchLabelKeys == null) return (A)this; - for (String item : items) { this.matchLabelKeys.remove(item);} return (A)this; + public String getMatchingMatchLabelKey(Predicate predicate) { + for (String item : matchLabelKeys) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public List getMatchLabelKeys() { - return this.matchLabelKeys; + public Integer getMaxSkew() { + return this.maxSkew; } - public String getMatchLabelKey(int index) { - return this.matchLabelKeys.get(index); + public Integer getMinDomains() { + return this.minDomains; } - public String getFirstMatchLabelKey() { - return this.matchLabelKeys.get(0); + public String getNodeAffinityPolicy() { + return this.nodeAffinityPolicy; } - public String getLastMatchLabelKey() { - return this.matchLabelKeys.get(matchLabelKeys.size() - 1); + public String getNodeTaintsPolicy() { + return this.nodeTaintsPolicy; } - public String getMatchingMatchLabelKey(Predicate predicate) { - for (String item : matchLabelKeys) { - if (predicate.test(item)) { - return item; - } - } - return null; + public String getTopologyKey() { + return this.topologyKey; + } + + public String getWhenUnsatisfiable() { + return this.whenUnsatisfiable; + } + + public boolean hasLabelSelector() { + return this.labelSelector != null; + } + + public boolean hasMatchLabelKeys() { + return this.matchLabelKeys != null && !(this.matchLabelKeys.isEmpty()); } public boolean hasMatchingMatchLabelKey(Predicate predicate) { @@ -150,6 +198,120 @@ public boolean hasMatchingMatchLabelKey(Predicate predicate) { return false; } + public boolean hasMaxSkew() { + return this.maxSkew != null; + } + + public boolean hasMinDomains() { + return this.minDomains != null; + } + + public boolean hasNodeAffinityPolicy() { + return this.nodeAffinityPolicy != null; + } + + public boolean hasNodeTaintsPolicy() { + return this.nodeTaintsPolicy != null; + } + + public boolean hasTopologyKey() { + return this.topologyKey != null; + } + + public boolean hasWhenUnsatisfiable() { + return this.whenUnsatisfiable != null; + } + + public int hashCode() { + return Objects.hash(labelSelector, matchLabelKeys, maxSkew, minDomains, nodeAffinityPolicy, nodeTaintsPolicy, topologyKey, whenUnsatisfiable); + } + + public A removeAllFromMatchLabelKeys(Collection items) { + if (this.matchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.matchLabelKeys.remove(item); + } + return (A) this; + } + + public A removeFromMatchLabelKeys(String... items) { + if (this.matchLabelKeys == null) { + return (A) this; + } + for (String item : items) { + this.matchLabelKeys.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(labelSelector == null)) { + sb.append("labelSelector:"); + sb.append(labelSelector); + sb.append(","); + } + if (!(matchLabelKeys == null) && !(matchLabelKeys.isEmpty())) { + sb.append("matchLabelKeys:"); + sb.append(matchLabelKeys); + sb.append(","); + } + if (!(maxSkew == null)) { + sb.append("maxSkew:"); + sb.append(maxSkew); + sb.append(","); + } + if (!(minDomains == null)) { + sb.append("minDomains:"); + sb.append(minDomains); + sb.append(","); + } + if (!(nodeAffinityPolicy == null)) { + sb.append("nodeAffinityPolicy:"); + sb.append(nodeAffinityPolicy); + sb.append(","); + } + if (!(nodeTaintsPolicy == null)) { + sb.append("nodeTaintsPolicy:"); + sb.append(nodeTaintsPolicy); + sb.append(","); + } + if (!(topologyKey == null)) { + sb.append("topologyKey:"); + sb.append(topologyKey); + sb.append(","); + } + if (!(whenUnsatisfiable == null)) { + sb.append("whenUnsatisfiable:"); + sb.append(whenUnsatisfiable); + } + sb.append("}"); + return sb.toString(); + } + + 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 A withMatchLabelKeys(List matchLabelKeys) { if (matchLabelKeys != null) { this.matchLabelKeys = new ArrayList(); @@ -162,7 +324,7 @@ public A withMatchLabelKeys(List matchLabelKeys) { return (A) this; } - public A withMatchLabelKeys(java.lang.String... matchLabelKeys) { + public A withMatchLabelKeys(String... matchLabelKeys) { if (this.matchLabelKeys != null) { this.matchLabelKeys.clear(); _visitables.remove("matchLabelKeys"); @@ -175,38 +337,22 @@ public A withMatchLabelKeys(java.lang.String... matchLabelKeys) { return (A) this; } - public boolean hasMatchLabelKeys() { - return this.matchLabelKeys != null && !this.matchLabelKeys.isEmpty(); - } - - public Integer getMaxSkew() { - return this.maxSkew; - } - public A withMaxSkew(Integer maxSkew) { this.maxSkew = maxSkew; return (A) this; } - public boolean hasMaxSkew() { - return this.maxSkew != null; - } - - public Integer getMinDomains() { - return this.minDomains; - } - public A withMinDomains(Integer minDomains) { this.minDomains = minDomains; return (A) this; } - public boolean hasMinDomains() { - return this.minDomains != null; + public LabelSelectorNested withNewLabelSelector() { + return new LabelSelectorNested(null); } - public String getNodeAffinityPolicy() { - return this.nodeAffinityPolicy; + public LabelSelectorNested withNewLabelSelectorLike(V1LabelSelector item) { + return new LabelSelectorNested(item); } public A withNodeAffinityPolicy(String nodeAffinityPolicy) { @@ -214,89 +360,28 @@ public A withNodeAffinityPolicy(String nodeAffinityPolicy) { return (A) this; } - public boolean hasNodeAffinityPolicy() { - return this.nodeAffinityPolicy != null; - } - - public String getNodeTaintsPolicy() { - return this.nodeTaintsPolicy; - } - public A withNodeTaintsPolicy(String nodeTaintsPolicy) { this.nodeTaintsPolicy = nodeTaintsPolicy; return (A) this; } - public boolean hasNodeTaintsPolicy() { - return this.nodeTaintsPolicy != null; - } - - public String getTopologyKey() { - return this.topologyKey; - } - public A withTopologyKey(String topologyKey) { this.topologyKey = topologyKey; return (A) this; } - public boolean hasTopologyKey() { - return this.topologyKey != null; - } - - public String getWhenUnsatisfiable() { - return this.whenUnsatisfiable; - } - public A withWhenUnsatisfiable(String whenUnsatisfiable) { this.whenUnsatisfiable = whenUnsatisfiable; return (A) this; } + public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ - public boolean hasWhenUnsatisfiable() { - return this.whenUnsatisfiable != 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; - V1TopologySpreadConstraintFluent that = (V1TopologySpreadConstraintFluent) 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(maxSkew, that.maxSkew)) return false; - if (!java.util.Objects.equals(minDomains, that.minDomains)) return false; - if (!java.util.Objects.equals(nodeAffinityPolicy, that.nodeAffinityPolicy)) return false; - if (!java.util.Objects.equals(nodeTaintsPolicy, that.nodeTaintsPolicy)) return false; - if (!java.util.Objects.equals(topologyKey, that.topologyKey)) return false; - if (!java.util.Objects.equals(whenUnsatisfiable, that.whenUnsatisfiable)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(labelSelector, matchLabelKeys, maxSkew, minDomains, nodeAffinityPolicy, nodeTaintsPolicy, topologyKey, whenUnsatisfiable, super.hashCode()); - } + V1LabelSelectorBuilder builder; - 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 (maxSkew != null) { sb.append("maxSkew:"); sb.append(maxSkew + ","); } - if (minDomains != null) { sb.append("minDomains:"); sb.append(minDomains + ","); } - if (nodeAffinityPolicy != null) { sb.append("nodeAffinityPolicy:"); sb.append(nodeAffinityPolicy + ","); } - if (nodeTaintsPolicy != null) { sb.append("nodeTaintsPolicy:"); sb.append(nodeTaintsPolicy + ","); } - if (topologyKey != null) { sb.append("topologyKey:"); sb.append(topologyKey + ","); } - if (whenUnsatisfiable != null) { sb.append("whenUnsatisfiable:"); sb.append(whenUnsatisfiable); } - sb.append("}"); - return sb.toString(); - } - public class LabelSelectorNested extends V1LabelSelectorFluent> implements Nested{ LabelSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1TopologySpreadConstraintFluent.this.withLabelSelector(builder.build()); } @@ -305,7 +390,5 @@ public N endLabelSelector() { return and(); } - } - } \ No newline at end of file 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 index f7abcdd2ea..6392f596b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TypeCheckingBuilder extends V1TypeCheckingFluent implements VisitableBuilder{ + + V1TypeCheckingFluent fluent; + public V1TypeCheckingBuilder() { this(new V1TypeChecking()); } @@ -10,22 +14,20 @@ 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 V1TypeCheckingBuilder(V1TypeCheckingFluent fluent,V1TypeChecking instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index 34b1cbfdc7..83d84e2383 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java @@ -1,93 +1,89 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TypeCheckingFluent> extends BaseFluent{ +public class V1TypeCheckingFluent> extends BaseFluent{ + + private ArrayList expressionWarnings; + 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(index, 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").set(index, 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; + 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 ExpressionWarningsNested addNewExpressionWarning() { + return new ExpressionWarningsNested(-1, null); } - 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 ExpressionWarningsNested addNewExpressionWarningLike(V1ExpressionWarning item) { + return new ExpressionWarningsNested(-1, item); } - 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(); - } + public A addToExpressionWarnings(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; + return (A) this; } - public List buildExpressionWarnings() { - return this.expressionWarnings != null ? build(expressionWarnings) : null; + 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 V1ExpressionWarning buildExpressionWarning(int index) { return this.expressionWarnings.get(index).build(); } + public List buildExpressionWarnings() { + return this.expressionWarnings != null ? build(expressionWarnings) : null; + } + public V1ExpressionWarning buildFirstExpressionWarning() { return this.expressionWarnings.get(0).build(); } @@ -105,6 +101,70 @@ public V1ExpressionWarning buildMatchingExpressionWarning(Predicate editExpressionWarning(int index) { + if (expressionWarnings.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "expressionWarnings")); + } + return this.setNewExpressionWarningLike(index, this.buildExpressionWarning(index)); + } + + public ExpressionWarningsNested editFirstExpressionWarning() { + if (expressionWarnings.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "expressionWarnings")); + } + return this.setNewExpressionWarningLike(0, this.buildExpressionWarning(0)); + } + + public ExpressionWarningsNested editLastExpressionWarning() { + int index = expressionWarnings.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "expressionWarnings")); + } + return this.setNewExpressionWarningLike(index, this.buildExpressionWarning(index)); + } + + public ExpressionWarningsNested editMatchingExpressionWarning(Predicate predicate) { + int index = -1; + for (int i = 0;i < expressionWarnings.size();i++) { + if (predicate.test(expressionWarnings.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "expressionWarnings")); + } + return this.setNewExpressionWarningLike(index, this.buildExpressionWarning(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TypeCheckingFluent that = (V1TypeCheckingFluent) o; + if (!(Objects.equals(expressionWarnings, that.expressionWarnings))) { + return false; + } + return true; + } + + public boolean hasExpressionWarnings() { + return this.expressionWarnings != null && !(this.expressionWarnings.isEmpty()); + } + public boolean hasMatchingExpressionWarning(Predicate predicate) { for (V1ExpressionWarningBuilder item : expressionWarnings) { if (predicate.test(item)) { @@ -114,6 +174,80 @@ public boolean hasMatchingExpressionWarning(Predicate 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 removeFromExpressionWarnings(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 removeMatchingFromExpressionWarnings(Predicate predicate) { + if (expressionWarnings == null) { + return (A) this; + } + Iterator each = expressionWarnings.iterator(); + 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 ExpressionWarningsNested setNewExpressionWarningLike(int index,V1ExpressionWarning item) { + return new ExpressionWarningsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expressionWarnings == null) && !(expressionWarnings.isEmpty())) { + sb.append("expressionWarnings:"); + sb.append(expressionWarnings); + } + sb.append("}"); + return sb.toString(); + } + public A withExpressionWarnings(List expressionWarnings) { if (this.expressionWarnings != null) { this._visitables.get("expressionWarnings").clear(); @@ -129,7 +263,7 @@ public A withExpressionWarnings(List expressionWarnings) { return (A) this; } - public A withExpressionWarnings(io.kubernetes.client.openapi.models.V1ExpressionWarning... expressionWarnings) { + public A withExpressionWarnings(V1ExpressionWarning... expressionWarnings) { if (this.expressionWarnings != null) { this.expressionWarnings.clear(); _visitables.remove("expressionWarnings"); @@ -141,85 +275,23 @@ public A withExpressionWarnings(io.kubernetes.client.openapi.models.V1Expression } return (A) this; } + public class ExpressionWarningsNested extends V1ExpressionWarningFluent> implements Nested{ - 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()); + 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/V1TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java index 578b1e672e..c556ab206f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TypedLocalObjectReferenceBuilder extends V1TypedLocalObjectReferenceFluent implements VisitableBuilder{ + + V1TypedLocalObjectReferenceFluent fluent; + public V1TypedLocalObjectReferenceBuilder() { this(new V1TypedLocalObjectReference()); } @@ -10,17 +14,16 @@ public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent f this(fluent, new V1TypedLocalObjectReference()); } - public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent fluent,V1TypedLocalObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1TypedLocalObjectReferenceFluent fluent; + public V1TypedLocalObjectReferenceBuilder(V1TypedLocalObjectReferenceFluent fluent,V1TypedLocalObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TypedLocalObjectReference build() { V1TypedLocalObjectReference buildable = new V1TypedLocalObjectReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -29,5 +32,4 @@ public V1TypedLocalObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java index 8aec8486d7..0c256ea22d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java @@ -1,97 +1,123 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TypedLocalObjectReferenceFluent> extends BaseFluent{ +public class V1TypedLocalObjectReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + public V1TypedLocalObjectReferenceFluent() { } public V1TypedLocalObjectReferenceFluent(V1TypedLocalObjectReference instance) { this.copyInstance(instance); } - private String apiGroup; - private String kind; - private String name; - + protected void copyInstance(V1TypedLocalObjectReference instance) { - instance = (instance != null ? instance : new V1TypedLocalObjectReference()); + instance = instance != null ? instance : new V1TypedLocalObjectReference(); if (instance != null) { - this.withApiGroup(instance.getApiGroup()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - } - } - - public String getApiGroup() { - return this.apiGroup; + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } } - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TypedLocalObjectReferenceFluent that = (V1TypedLocalObjectReferenceFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasApiGroup() { - return this.apiGroup != null; + public String getApiGroup() { + return this.apiGroup; } 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 hasApiGroup() { + return this.apiGroup != null; } - public boolean hasName() { - return this.name != null; + 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; - V1TypedLocalObjectReferenceFluent that = (V1TypedLocalObjectReferenceFluent) 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 boolean hasName() { + return this.name != null; } public int hashCode() { - return java.util.Objects.hash(apiGroup, kind, name, super.hashCode()); + return Objects.hash(apiGroup, kind, name); } 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 (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java index 8fd6b6f461..8149092b53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1TypedObjectReferenceBuilder extends V1TypedObjectReferenceFluent implements VisitableBuilder{ + + V1TypedObjectReferenceFluent fluent; + public V1TypedObjectReferenceBuilder() { this(new V1TypedObjectReference()); } @@ -10,17 +14,16 @@ public V1TypedObjectReferenceBuilder(V1TypedObjectReferenceFluent fluent) { this(fluent, new V1TypedObjectReference()); } - public V1TypedObjectReferenceBuilder(V1TypedObjectReferenceFluent fluent,V1TypedObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1TypedObjectReferenceBuilder(V1TypedObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V1TypedObjectReferenceFluent fluent; + public V1TypedObjectReferenceBuilder(V1TypedObjectReferenceFluent fluent,V1TypedObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1TypedObjectReference build() { V1TypedObjectReference buildable = new V1TypedObjectReference(); buildable.setApiGroup(fluent.getApiGroup()); @@ -30,5 +33,4 @@ public V1TypedObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java index eb29dda794..295a3d34ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java @@ -1,114 +1,146 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1TypedObjectReferenceFluent> extends BaseFluent{ +public class V1TypedObjectReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + private String namespace; + public V1TypedObjectReferenceFluent() { } public V1TypedObjectReferenceFluent(V1TypedObjectReference instance) { this.copyInstance(instance); } - private String apiGroup; - private String kind; - private String name; - private String namespace; - + protected void copyInstance(V1TypedObjectReference instance) { - instance = (instance != null ? instance : new V1TypedObjectReference()); + instance = instance != null ? instance : new V1TypedObjectReference(); 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; + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + } } - public A withApiGroup(String apiGroup) { - this.apiGroup = apiGroup; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1TypedObjectReferenceFluent that = (V1TypedObjectReferenceFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + return true; } - public boolean hasApiGroup() { - return this.apiGroup != null; + public String getApiGroup() { + return this.apiGroup; } 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 String getNamespace() { + return this.namespace; } - public boolean hasName() { - return this.name != null; + public boolean hasApiGroup() { + return this.apiGroup != null; } - public String getNamespace() { - return this.namespace; + public boolean hasKind() { + return this.kind != null; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public boolean hasName() { + return this.name != null; } 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; - V1TypedObjectReferenceFluent that = (V1TypedObjectReferenceFluent) 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()); + return Objects.hash(apiGroup, kind, name, namespace); } 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); } + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + } sb.append("}"); return sb.toString(); } - + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java index ebb6a39485..b0f734fdd1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1UncountedTerminatedPodsBuilder extends V1UncountedTerminatedPodsFluent implements VisitableBuilder{ + + V1UncountedTerminatedPodsFluent fluent; + public V1UncountedTerminatedPodsBuilder() { this(new V1UncountedTerminatedPods()); } @@ -10,17 +14,16 @@ public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluen this(fluent, new V1UncountedTerminatedPods()); } - public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluent,V1UncountedTerminatedPods instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPods instance) { this.fluent = this; this.copyInstance(instance); } - V1UncountedTerminatedPodsFluent fluent; + public V1UncountedTerminatedPodsBuilder(V1UncountedTerminatedPodsFluent fluent,V1UncountedTerminatedPods instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1UncountedTerminatedPods build() { V1UncountedTerminatedPods buildable = new V1UncountedTerminatedPods(); buildable.setFailed(fluent.getFailed()); @@ -28,5 +31,4 @@ public V1UncountedTerminatedPods build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java index 29b3bc6d9e..ab3362c387 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java @@ -1,65 +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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1UncountedTerminatedPodsFluent> extends BaseFluent{ +public class V1UncountedTerminatedPodsFluent> extends BaseFluent{ + + private List failed; + private List succeeded; + public V1UncountedTerminatedPodsFluent() { } public V1UncountedTerminatedPodsFluent(V1UncountedTerminatedPods instance) { this.copyInstance(instance); } - private List failed; - private List succeeded; + + public A addAllToFailed(Collection items) { + if (this.failed == null) { + this.failed = new ArrayList(); + } + for (String item : items) { + this.failed.add(item); + } + return (A) this; + } - protected void copyInstance(V1UncountedTerminatedPods instance) { - instance = (instance != null ? instance : new V1UncountedTerminatedPods()); - if (instance != null) { - this.withFailed(instance.getFailed()); - this.withSucceeded(instance.getSucceeded()); - } + public A addAllToSucceeded(Collection items) { + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } + for (String item : items) { + this.succeeded.add(item); + } + return (A) this; } - public A addToFailed(int index,String item) { - if (this.failed == null) {this.failed = new ArrayList();} - this.failed.add(index, item); - return (A)this; + public A addToFailed(String... items) { + if (this.failed == null) { + this.failed = new ArrayList(); + } + for (String item : items) { + this.failed.add(item); + } + return (A) this; } - public A setToFailed(int index,String item) { - if (this.failed == null) {this.failed = new ArrayList();} - this.failed.set(index, item); return (A)this; + public A addToFailed(int index,String item) { + if (this.failed == null) { + this.failed = new ArrayList(); + } + this.failed.add(index, item); + return (A) this; } - public A addToFailed(java.lang.String... items) { - if (this.failed == null) {this.failed = new ArrayList();} - for (String item : items) {this.failed.add(item);} return (A)this; + public A addToSucceeded(String... items) { + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } + for (String item : items) { + this.succeeded.add(item); + } + return (A) this; } - public A addAllToFailed(Collection items) { - if (this.failed == null) {this.failed = new ArrayList();} - for (String item : items) {this.failed.add(item);} return (A)this; + public A addToSucceeded(int index,String item) { + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } + this.succeeded.add(index, item); + return (A) this; } - public A removeFromFailed(java.lang.String... items) { - if (this.failed == null) return (A)this; - for (String item : items) { this.failed.remove(item);} return (A)this; + protected void copyInstance(V1UncountedTerminatedPods instance) { + instance = instance != null ? instance : new V1UncountedTerminatedPods(); + if (instance != null) { + this.withFailed(instance.getFailed()); + this.withSucceeded(instance.getSucceeded()); + } } - public A removeAllFromFailed(Collection items) { - if (this.failed == null) return (A)this; - for (String item : items) { this.failed.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1UncountedTerminatedPodsFluent that = (V1UncountedTerminatedPodsFluent) o; + if (!(Objects.equals(failed, that.failed))) { + return false; + } + if (!(Objects.equals(succeeded, that.succeeded))) { + return false; + } + return true; } public List getFailed() { @@ -74,10 +123,18 @@ public String getFirstFailed() { return this.failed.get(0); } + public String getFirstSucceeded() { + return this.succeeded.get(0); + } + public String getLastFailed() { return this.failed.get(failed.size() - 1); } + public String getLastSucceeded() { + return this.succeeded.get(succeeded.size() - 1); + } + public String getMatchingFailed(Predicate predicate) { for (String item : failed) { if (predicate.test(item)) { @@ -87,107 +144,148 @@ public String getMatchingFailed(Predicate predicate) { return null; } - public boolean hasMatchingFailed(Predicate predicate) { - for (String item : failed) { + public String getMatchingSucceeded(Predicate predicate) { + for (String item : succeeded) { if (predicate.test(item)) { - return true; + return item; } } - return false; + return null; } - public A withFailed(List failed) { - if (failed != null) { - this.failed = new ArrayList(); - for (String item : failed) { - this.addToFailed(item); - } - } else { - this.failed = null; - } - return (A) this; + public List getSucceeded() { + return this.succeeded; } - public A withFailed(java.lang.String... failed) { - if (this.failed != null) { - this.failed.clear(); - _visitables.remove("failed"); - } - if (failed != null) { - for (String item : failed) { - this.addToFailed(item); - } - } - return (A) this; + public String getSucceeded(int index) { + return this.succeeded.get(index); } public boolean hasFailed() { - return this.failed != null && !this.failed.isEmpty(); + return this.failed != null && !(this.failed.isEmpty()); } - public A addToSucceeded(int index,String item) { - if (this.succeeded == null) {this.succeeded = new ArrayList();} - this.succeeded.add(index, item); - return (A)this; + public boolean hasMatchingFailed(Predicate predicate) { + for (String item : failed) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A setToSucceeded(int index,String item) { - if (this.succeeded == null) {this.succeeded = new ArrayList();} - this.succeeded.set(index, item); return (A)this; + public boolean hasMatchingSucceeded(Predicate predicate) { + for (String item : succeeded) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToSucceeded(java.lang.String... items) { - if (this.succeeded == null) {this.succeeded = new ArrayList();} - for (String item : items) {this.succeeded.add(item);} return (A)this; + public boolean hasSucceeded() { + return this.succeeded != null && !(this.succeeded.isEmpty()); } - public A addAllToSucceeded(Collection items) { - if (this.succeeded == null) {this.succeeded = new ArrayList();} - for (String item : items) {this.succeeded.add(item);} return (A)this; + public int hashCode() { + return Objects.hash(failed, succeeded); } - public A removeFromSucceeded(java.lang.String... items) { - if (this.succeeded == null) return (A)this; - for (String item : items) { this.succeeded.remove(item);} return (A)this; + public A removeAllFromFailed(Collection items) { + if (this.failed == null) { + return (A) this; + } + for (String item : items) { + this.failed.remove(item); + } + return (A) this; } public A removeAllFromSucceeded(Collection items) { - if (this.succeeded == null) return (A)this; - for (String item : items) { this.succeeded.remove(item);} return (A)this; + if (this.succeeded == null) { + return (A) this; + } + for (String item : items) { + this.succeeded.remove(item); + } + return (A) this; } - public List getSucceeded() { - return this.succeeded; + public A removeFromFailed(String... items) { + if (this.failed == null) { + return (A) this; + } + for (String item : items) { + this.failed.remove(item); + } + return (A) this; } - public String getSucceeded(int index) { - return this.succeeded.get(index); + public A removeFromSucceeded(String... items) { + if (this.succeeded == null) { + return (A) this; + } + for (String item : items) { + this.succeeded.remove(item); + } + return (A) this; } - public String getFirstSucceeded() { - return this.succeeded.get(0); + public A setToFailed(int index,String item) { + if (this.failed == null) { + this.failed = new ArrayList(); + } + this.failed.set(index, item); + return (A) this; } - public String getLastSucceeded() { - return this.succeeded.get(succeeded.size() - 1); + public A setToSucceeded(int index,String item) { + if (this.succeeded == null) { + this.succeeded = new ArrayList(); + } + this.succeeded.set(index, item); + return (A) this; } - public String getMatchingSucceeded(Predicate predicate) { - for (String item : succeeded) { - if (predicate.test(item)) { - return item; - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(failed == null) && !(failed.isEmpty())) { + sb.append("failed:"); + sb.append(failed); + sb.append(","); + } + if (!(succeeded == null) && !(succeeded.isEmpty())) { + sb.append("succeeded:"); + sb.append(succeeded); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingSucceeded(Predicate predicate) { - for (String item : succeeded) { - if (predicate.test(item)) { - return true; + public A withFailed(List failed) { + if (failed != null) { + this.failed = new ArrayList(); + for (String item : failed) { + this.addToFailed(item); } + } else { + this.failed = null; + } + return (A) this; + } + + public A withFailed(String... failed) { + if (this.failed != null) { + this.failed.clear(); + _visitables.remove("failed"); + } + if (failed != null) { + for (String item : failed) { + this.addToFailed(item); } - return false; + } + return (A) this; } public A withSucceeded(List succeeded) { @@ -202,7 +300,7 @@ public A withSucceeded(List succeeded) { return (A) this; } - public A withSucceeded(java.lang.String... succeeded) { + public A withSucceeded(String... succeeded) { if (this.succeeded != null) { this.succeeded.clear(); _visitables.remove("succeeded"); @@ -215,32 +313,4 @@ public A withSucceeded(java.lang.String... succeeded) { return (A) this; } - public boolean hasSucceeded() { - return this.succeeded != null && !this.succeeded.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; - V1UncountedTerminatedPodsFluent that = (V1UncountedTerminatedPodsFluent) o; - if (!java.util.Objects.equals(failed, that.failed)) return false; - if (!java.util.Objects.equals(succeeded, that.succeeded)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(failed, succeeded, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (failed != null && !failed.isEmpty()) { sb.append("failed:"); sb.append(failed + ","); } - if (succeeded != null && !succeeded.isEmpty()) { sb.append("succeeded:"); sb.append(succeeded); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java index 96c1cfb6c8..8ba8ba7af9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1UserInfoBuilder extends V1UserInfoFluent implements VisitableBuilder{ + + V1UserInfoFluent fluent; + public V1UserInfoBuilder() { this(new V1UserInfo()); } @@ -10,17 +14,16 @@ public V1UserInfoBuilder(V1UserInfoFluent fluent) { this(fluent, new V1UserInfo()); } - public V1UserInfoBuilder(V1UserInfoFluent fluent,V1UserInfo instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1UserInfoBuilder(V1UserInfo instance) { this.fluent = this; this.copyInstance(instance); } - V1UserInfoFluent fluent; + public V1UserInfoBuilder(V1UserInfoFluent fluent,V1UserInfo instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1UserInfo build() { V1UserInfo buildable = new V1UserInfo(); buildable.setExtra(fluent.getExtra()); @@ -30,5 +33,4 @@ public V1UserInfo build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java index 1809b435e2..5805bec3b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java @@ -1,120 +1,134 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.LinkedHashMap; import java.util.List; -import java.lang.String; import java.util.Map; -import java.util.LinkedHashMap; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1UserInfoFluent> extends BaseFluent{ - public V1UserInfoFluent() { - } - - public V1UserInfoFluent(V1UserInfo instance) { - this.copyInstance(instance); - } +public class V1UserInfoFluent> extends BaseFluent{ + private Map> extra; private List groups; private String uid; private String username; - - protected void copyInstance(V1UserInfo instance) { - instance = (instance != null ? instance : new V1UserInfo()); - if (instance != null) { - this.withExtra(instance.getExtra()); - this.withGroups(instance.getGroups()); - this.withUid(instance.getUid()); - this.withUsername(instance.getUsername()); - } - } - - public A addToExtra(String key,List value) { - if(this.extra == null && key != null && value != null) { this.extra = new LinkedHashMap(); } - if(key != null && value != null) {this.extra.put(key, value);} return (A)this; - } - - public A addToExtra(Map> map) { - if(this.extra == null && map != null) { this.extra = new LinkedHashMap(); } - if(map != null) { this.extra.putAll(map);} return (A)this; + + public V1UserInfoFluent() { } - public A removeFromExtra(String key) { - if(this.extra == null) { return (A) this; } - if(key != null && this.extra != null) {this.extra.remove(key);} return (A)this; + public V1UserInfoFluent(V1UserInfo instance) { + this.copyInstance(instance); } - - public A removeFromExtra(Map> map) { - if(this.extra == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.extra != null){this.extra.remove(key);}}} return (A)this; + + public A addAllToGroups(Collection items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } - public Map> getExtra() { - return this.extra; + public A addToExtra(Map> map) { + if (this.extra == null && map != null) { + this.extra = new LinkedHashMap(); + } + if (map != null) { + this.extra.putAll(map); + } + return (A) this; } - public A withExtra(Map> extra) { - if (extra == null) { - this.extra = null; - } else { - this.extra = new LinkedHashMap(extra); + public A addToExtra(String key,List value) { + if (this.extra == null && key != null && value != null) { + this.extra = new LinkedHashMap(); + } + if (key != null && value != null) { + this.extra.put(key, value); } return (A) this; } - public boolean hasExtra() { - return this.extra != null; + public A addToGroups(String... items) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + for (String item : items) { + this.groups.add(item); + } + return (A) this; } public A addToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} + if (this.groups == null) { + this.groups = new ArrayList(); + } this.groups.add(index, item); - return (A)this; - } - - public A setToGroups(int index,String item) { - if (this.groups == null) {this.groups = new ArrayList();} - this.groups.set(index, item); return (A)this; - } - - public A addToGroups(java.lang.String... items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + return (A) this; } - public A addAllToGroups(Collection items) { - if (this.groups == null) {this.groups = new ArrayList();} - for (String item : items) {this.groups.add(item);} return (A)this; + protected void copyInstance(V1UserInfo instance) { + instance = instance != null ? instance : new V1UserInfo(); + if (instance != null) { + this.withExtra(instance.getExtra()); + this.withGroups(instance.getGroups()); + this.withUid(instance.getUid()); + this.withUsername(instance.getUsername()); + } } - public A removeFromGroups(java.lang.String... items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1UserInfoFluent that = (V1UserInfoFluent) o; + if (!(Objects.equals(extra, that.extra))) { + return false; + } + if (!(Objects.equals(groups, that.groups))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + if (!(Objects.equals(username, that.username))) { + return false; + } + return true; } - public A removeAllFromGroups(Collection items) { - if (this.groups == null) return (A)this; - for (String item : items) { this.groups.remove(item);} return (A)this; + public Map> getExtra() { + return this.extra; } - public List getGroups() { - return this.groups; + public String getFirstGroup() { + return this.groups.get(0); } public String getGroup(int index) { return this.groups.get(index); } - public String getFirstGroup() { - return this.groups.get(0); + public List getGroups() { + return this.groups; } public String getLastGroup() { @@ -130,6 +144,22 @@ public String getMatchingGroup(Predicate predicate) { return null; } + public String getUid() { + return this.uid; + } + + public String getUsername() { + return this.username; + } + + public boolean hasExtra() { + return this.extra != null; + } + + public boolean hasGroups() { + return this.groups != null && !(this.groups.isEmpty()); + } + public boolean hasMatchingGroup(Predicate predicate) { for (String item : groups) { if (predicate.test(item)) { @@ -139,6 +169,105 @@ public boolean hasMatchingGroup(Predicate predicate) { return false; } + public boolean hasUid() { + return this.uid != null; + } + + public boolean hasUsername() { + return this.username != null; + } + + public int hashCode() { + return Objects.hash(extra, groups, uid, username); + } + + public A removeAllFromGroups(Collection items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; + } + + public A removeFromExtra(String key) { + if (this.extra == null) { + return (A) this; + } + if (key != null && this.extra != null) { + this.extra.remove(key); + } + return (A) this; + } + + public A removeFromExtra(Map> map) { + if (this.extra == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.extra != null) { + this.extra.remove(key); + } + } + } + return (A) this; + } + + public A removeFromGroups(String... items) { + if (this.groups == null) { + return (A) this; + } + for (String item : items) { + this.groups.remove(item); + } + return (A) this; + } + + public A setToGroups(int index,String item) { + if (this.groups == null) { + this.groups = new ArrayList(); + } + this.groups.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(extra == null) && !(extra.isEmpty())) { + sb.append("extra:"); + sb.append(extra); + sb.append(","); + } + if (!(groups == null) && !(groups.isEmpty())) { + sb.append("groups:"); + sb.append(groups); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + sb.append(","); + } + if (!(username == null)) { + sb.append("username:"); + sb.append(username); + } + sb.append("}"); + return sb.toString(); + } + + public A withExtra(Map> extra) { + if (extra == null) { + this.extra = null; + } else { + this.extra = new LinkedHashMap(extra); + } + return (A) this; + } + public A withGroups(List groups) { if (groups != null) { this.groups = new ArrayList(); @@ -151,7 +280,7 @@ public A withGroups(List groups) { return (A) this; } - public A withGroups(java.lang.String... groups) { + public A withGroups(String... groups) { if (this.groups != null) { this.groups.clear(); _visitables.remove("groups"); @@ -164,62 +293,14 @@ public A withGroups(java.lang.String... groups) { return (A) this; } - public boolean hasGroups() { - return this.groups != null && !this.groups.isEmpty(); - } - - 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 String getUsername() { - return this.username; - } - public A withUsername(String username) { this.username = username; return (A) this; } - public boolean hasUsername() { - return this.username != 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; - V1UserInfoFluent that = (V1UserInfoFluent) o; - if (!java.util.Objects.equals(extra, that.extra)) return false; - if (!java.util.Objects.equals(groups, that.groups)) return false; - if (!java.util.Objects.equals(uid, that.uid)) return false; - if (!java.util.Objects.equals(username, that.username)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(extra, groups, uid, username, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (extra != null && !extra.isEmpty()) { sb.append("extra:"); sb.append(extra + ","); } - if (groups != null && !groups.isEmpty()) { sb.append("groups:"); sb.append(groups + ","); } - if (uid != null) { sb.append("uid:"); sb.append(uid + ","); } - if (username != null) { sb.append("username:"); sb.append(username); } - sb.append("}"); - return sb.toString(); - } - - } \ 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 index 25c656fd6d..006e44b436 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1UserSubjectBuilder extends V1UserSubjectFluent implements VisitableBuilder{ + + V1UserSubjectFluent fluent; + public V1UserSubjectBuilder() { this(new V1UserSubject()); } @@ -10,22 +14,20 @@ 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 V1UserSubjectBuilder(V1UserSubjectFluent fluent,V1UserSubject instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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 index ad6c49b3ae..5199c7502f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java @@ -1,63 +1,77 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1UserSubjectFluent> extends BaseFluent{ +public class V1UserSubjectFluent> extends BaseFluent{ + + private String name; + public V1UserSubjectFluent() { } public V1UserSubjectFluent(V1UserSubject instance) { this.copyInstance(instance); } - private String name; - + protected void copyInstance(V1UserSubject instance) { - instance = (instance != null ? instance : new V1UserSubject()); + instance = instance != null ? instance : new V1UserSubject(); if (instance != null) { - this.withName(instance.getName()); - } + this.withName(instance.getName()); + } } - public String getName() { - return this.name; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1UserSubjectFluent that = (V1UserSubjectFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getName() { + return this.name; } 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()); + return Objects.hash(name); } 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); + } sb.append("}"); return sb.toString(); } - + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ 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 index bc8b57501c..0715325810 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyBindingBuilder extends V1ValidatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyBindingFluent fluent; + public V1ValidatingAdmissionPolicyBindingBuilder() { this(new V1ValidatingAdmissionPolicyBinding()); } @@ -10,17 +14,16 @@ public V1ValidatingAdmissionPolicyBindingBuilder(V1ValidatingAdmissionPolicyBind 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 V1ValidatingAdmissionPolicyBindingBuilder(V1ValidatingAdmissionPolicyBindingFluent fluent,V1ValidatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyBinding build() { V1ValidatingAdmissionPolicyBinding buildable = new V1ValidatingAdmissionPolicyBinding(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ValidatingAdmissionPolicyBinding build() { 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 index bafff65443..7ce536c9c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ValidatingAdmissionPolicyBindingSpecBuilder spec; + public V1ValidatingAdmissionPolicyBindingFluent() { } public V1ValidatingAdmissionPolicyBindingFluent(V1ValidatingAdmissionPolicyBinding instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ValidatingAdmissionPolicyBindingSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ValidatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1ValidatingAdmissionPolicyBinding instance) { - instance = (instance != null ? instance : new V1ValidatingAdmissionPolicyBinding()); + 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()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ValidatingAdmissionPolicyBindingSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingAdmissionPolicyBindingFluent that = (V1ValidatingAdmissionPolicyBindingFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1ValidatingAdmissionPolicyBindingSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); } public A withSpec(V1ValidatingAdmissionPolicyBindingSpec spec) { @@ -113,63 +198,14 @@ public A withSpec(V1ValidatingAdmissionPolicyBindingSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - 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()); - } + V1ObjectMetaBuilder builder; - 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()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ValidatingAdmissionPolicyBindingSpecFluent> implements Nested{ + + V1ValidatingAdmissionPolicyBindingSpecBuilder builder; + SpecNested(V1ValidatingAdmissionPolicyBindingSpec item) { this.builder = new V1ValidatingAdmissionPolicyBindingSpecBuilder(this, item); } - V1ValidatingAdmissionPolicyBindingSpecBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); } @@ -194,7 +231,5 @@ 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 index a24e4690c7..16e6c42d1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyBindingListBuilder extends V1ValidatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyBindingListFluent fluent; + public V1ValidatingAdmissionPolicyBindingListBuilder() { this(new V1ValidatingAdmissionPolicyBindingList()); } @@ -10,17 +14,16 @@ public V1ValidatingAdmissionPolicyBindingListBuilder(V1ValidatingAdmissionPolicy 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 V1ValidatingAdmissionPolicyBindingListBuilder(V1ValidatingAdmissionPolicyBindingListFluent fluent,V1ValidatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyBindingList build() { V1ValidatingAdmissionPolicyBindingList buildable = new V1ValidatingAdmissionPolicyBindingList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ValidatingAdmissionPolicyBindingList build() { 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 index c756c997b7..a0eac0a8ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + 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 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 String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(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 addToItems(int index,V1ValidatingAdmissionPolicyBinding item) { - if (this.items == null) {this.items = new ArrayList();} + 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(index, builder); items.add(index, builder);} - return (A)this; + 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").set(index, builder); items.set(index, builder);} - return (A)this; + public V1ValidatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); } - 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 V1ValidatingAdmissionPolicyBinding buildItem(int index) { + return this.items.get(index).build(); } - 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 List buildItems() { + return this.items != null ? build(items) : null; } - 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 V1ValidatingAdmissionPolicyBinding buildLastItem() { + return this.items.get(items.size() - 1).build(); } - 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 V1ValidatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { + for (V1ValidatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ValidatingAdmissionPolicyBinding buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ValidatingAdmissionPolicyBinding buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ValidatingAdmissionPolicyBinding buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingAdmissionPolicyBindingListFluent that = (V1ValidatingAdmissionPolicyBindingListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ValidatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { - for (V1ValidatingAdmissionPolicyBindingBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicyBinding... items) { + public A withItems(V1ValidatingAdmissionPolicyBinding... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPoli 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ValidatingAdmissionPolicyBindingFluent> implements Nested{ - 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()); - } + V1ValidatingAdmissionPolicyBindingBuilder builder; + int index; - 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()); + return (N) V1ValidatingAdmissionPolicyBindingListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyBindingListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ 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 index 9e3abb8d40..7f0202aa69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyBindingSpecBuilder extends V1ValidatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyBindingSpecFluent fluent; + public V1ValidatingAdmissionPolicyBindingSpecBuilder() { this(new V1ValidatingAdmissionPolicyBindingSpec()); } @@ -10,17 +14,16 @@ public V1ValidatingAdmissionPolicyBindingSpecBuilder(V1ValidatingAdmissionPolicy 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 V1ValidatingAdmissionPolicyBindingSpecBuilder(V1ValidatingAdmissionPolicyBindingSpecFluent fluent,V1ValidatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyBindingSpec build() { V1ValidatingAdmissionPolicyBindingSpec buildable = new V1ValidatingAdmissionPolicyBindingSpec(); buildable.setMatchResources(fluent.buildMatchResources()); @@ -30,5 +33,4 @@ public V1ValidatingAdmissionPolicyBindingSpec build() { 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 index a270a51692..71d30d073a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java @@ -1,197 +1,287 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + + private V1MatchResourcesBuilder matchResources; + private V1ParamRefBuilder paramRef; + private String policyName; + private List validationActions; + 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 A addAllToValidationActions(Collection items) { + if (this.validationActions == null) { + this.validationActions = new ArrayList(); + } + for (String item : items) { + this.validationActions.add(item); + } + return (A) this; } - public V1MatchResources buildMatchResources() { - return this.matchResources != null ? this.matchResources.build() : null; + public A addToValidationActions(String... items) { + if (this.validationActions == null) { + this.validationActions = new ArrayList(); + } + for (String item : items) { + this.validationActions.add(item); + } + return (A) this; } - 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); + public A addToValidationActions(int index,String item) { + if (this.validationActions == null) { + this.validationActions = new ArrayList(); } + this.validationActions.add(index, item); return (A) this; } - public boolean hasMatchResources() { - return this.matchResources != null; + public V1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; } - public MatchResourcesNested withNewMatchResources() { - return new MatchResourcesNested(null); + public V1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; } - public MatchResourcesNested withNewMatchResourcesLike(V1MatchResources item) { - return new MatchResourcesNested(item); + 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 MatchResourcesNested editMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(null)); + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(null)); } public MatchResourcesNested editOrNewMatchResources() { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(new V1MatchResourcesBuilder().build())); + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(new V1MatchResourcesBuilder().build())); } public MatchResourcesNested editOrNewMatchResourcesLike(V1MatchResources item) { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(item)); + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); } - public V1ParamRef buildParamRef() { - return this.paramRef != null ? this.paramRef.build() : null; + public ParamRefNested editOrNewParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1ParamRefBuilder().build())); } - 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); + public ParamRefNested editOrNewParamRefLike(V1ParamRef item) { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); + } + + public ParamRefNested editParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingAdmissionPolicyBindingSpecFluent that = (V1ValidatingAdmissionPolicyBindingSpecFluent) o; + if (!(Objects.equals(matchResources, that.matchResources))) { + return false; + } + if (!(Objects.equals(paramRef, that.paramRef))) { + return false; + } + if (!(Objects.equals(policyName, that.policyName))) { + return false; + } + if (!(Objects.equals(validationActions, that.validationActions))) { + return false; + } + return true; } - public boolean hasParamRef() { - return this.paramRef != null; + public String getFirstValidationAction() { + return this.validationActions.get(0); } - public ParamRefNested withNewParamRef() { - return new ParamRefNested(null); + public String getLastValidationAction() { + return this.validationActions.get(validationActions.size() - 1); } - public ParamRefNested withNewParamRefLike(V1ParamRef item) { - return new ParamRefNested(item); + public String getMatchingValidationAction(Predicate predicate) { + for (String item : validationActions) { + if (predicate.test(item)) { + return item; + } + } + return null; } - public ParamRefNested editParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(null)); + public String getPolicyName() { + return this.policyName; } - public ParamRefNested editOrNewParamRef() { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(new V1ParamRefBuilder().build())); + public String getValidationAction(int index) { + return this.validationActions.get(index); } - public ParamRefNested editOrNewParamRefLike(V1ParamRef item) { - return withNewParamRefLike(java.util.Optional.ofNullable(buildParamRef()).orElse(item)); + public List getValidationActions() { + return this.validationActions; } - public String getPolicyName() { - return this.policyName; + public boolean hasMatchResources() { + return this.matchResources != null; } - public A withPolicyName(String policyName) { - this.policyName = policyName; - return (A) this; + public boolean hasMatchingValidationAction(Predicate predicate) { + for (String item : validationActions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasParamRef() { + return this.paramRef != null; } 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 boolean hasValidationActions() { + return this.validationActions != null && !(this.validationActions.isEmpty()); } - public A setToValidationActions(int index,String item) { - if (this.validationActions == null) {this.validationActions = new ArrayList();} - this.validationActions.set(index, item); return (A)this; + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName, validationActions); } - 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 removeAllFromValidationActions(Collection items) { + if (this.validationActions == null) { + return (A) this; + } + for (String item : items) { + this.validationActions.remove(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(String... items) { + if (this.validationActions == null) { + return (A) this; + } + for (String item : items) { + this.validationActions.remove(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 setToValidationActions(int index,String item) { + if (this.validationActions == null) { + this.validationActions = new ArrayList(); + } + this.validationActions.set(index, 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchResources == null)) { + sb.append("matchResources:"); + sb.append(matchResources); + sb.append(","); + } + if (!(paramRef == null)) { + sb.append("paramRef:"); + sb.append(paramRef); + sb.append(","); + } + if (!(policyName == null)) { + sb.append("policyName:"); + sb.append(policyName); + sb.append(","); + } + if (!(validationActions == null) && !(validationActions.isEmpty())) { + sb.append("validationActions:"); + sb.append(validationActions); + } + sb.append("}"); + return sb.toString(); } - public List getValidationActions() { - return this.validationActions; + 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 String getValidationAction(int index) { - return this.validationActions.get(index); + public MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); } - public String getFirstValidationAction() { - return this.validationActions.get(0); + public MatchResourcesNested withNewMatchResourcesLike(V1MatchResources item) { + return new MatchResourcesNested(item); } - public String getLastValidationAction() { - return this.validationActions.get(validationActions.size() - 1); + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); } - public String getMatchingValidationAction(Predicate predicate) { - for (String item : validationActions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public ParamRefNested withNewParamRefLike(V1ParamRef item) { + return new ParamRefNested(item); } - public boolean hasMatchingValidationAction(Predicate predicate) { - for (String item : validationActions) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; } public A withValidationActions(List validationActions) { @@ -206,7 +296,7 @@ public A withValidationActions(List validationActions) { return (A) this; } - public A withValidationActions(java.lang.String... validationActions) { + public A withValidationActions(String... validationActions) { if (this.validationActions != null) { this.validationActions.clear(); _visitables.remove("validationActions"); @@ -218,43 +308,14 @@ public A withValidationActions(java.lang.String... validationActions) { } return (A) this; } + public class MatchResourcesNested extends V1MatchResourcesFluent> implements Nested{ - 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()); - } + V1MatchResourcesBuilder builder; - 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()); } @@ -263,14 +324,15 @@ public N endMatchResources() { return and(); } - } public class ParamRefNested extends V1ParamRefFluent> implements Nested{ + + V1ParamRefBuilder builder; + ParamRefNested(V1ParamRef item) { this.builder = new V1ParamRefBuilder(this, item); } - V1ParamRefBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); } @@ -279,7 +341,5 @@ 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 index 6abb02599b..f673639798 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyBuilder extends V1ValidatingAdmissionPolicyFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyFluent fluent; + public V1ValidatingAdmissionPolicyBuilder() { this(new V1ValidatingAdmissionPolicy()); } @@ -10,17 +14,16 @@ public V1ValidatingAdmissionPolicyBuilder(V1ValidatingAdmissionPolicyFluent f 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 V1ValidatingAdmissionPolicyBuilder(V1ValidatingAdmissionPolicyFluent fluent,V1ValidatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicy build() { V1ValidatingAdmissionPolicy buildable = new V1ValidatingAdmissionPolicy(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1ValidatingAdmissionPolicy build() { 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 index 3f346ba88c..12ea175d8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1ValidatingAdmissionPolicySpecBuilder spec; + private V1ValidatingAdmissionPolicyStatusBuilder status; + public V1ValidatingAdmissionPolicyFluent() { } public V1ValidatingAdmissionPolicyFluent(V1ValidatingAdmissionPolicy instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1ValidatingAdmissionPolicySpecBuilder spec; - private V1ValidatingAdmissionPolicyStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1ValidatingAdmissionPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1ValidatingAdmissionPolicyStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1ValidatingAdmissionPolicy instance) { - instance = (instance != null ? instance : new V1ValidatingAdmissionPolicy()); + 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()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1ValidatingAdmissionPolicySpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1ValidatingAdmissionPolicySpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1ValidatingAdmissionPolicyStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingAdmissionPolicyFluent that = (V1ValidatingAdmissionPolicyFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1ValidatingAdmissionPolicySpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1ValidatingAdmissionPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1ValidatingAdmissionPolicyStatus item) { + return new StatusNested(item); } public A withSpec(V1ValidatingAdmissionPolicySpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1ValidatingAdmissionPolicySpec 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) { @@ -155,65 +248,14 @@ public A withStatus(V1ValidatingAdmissionPolicyStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - 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()); - } + V1ObjectMetaBuilder builder; - 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()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1ValidatingAdmissionPolicySpecFluent> implements Nested{ + + V1ValidatingAdmissionPolicySpecBuilder builder; + SpecNested(V1ValidatingAdmissionPolicySpec item) { this.builder = new V1ValidatingAdmissionPolicySpecBuilder(this, item); } - V1ValidatingAdmissionPolicySpecBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1ValidatingAdmissionPolicyStatusFluent> implements Nested{ + + V1ValidatingAdmissionPolicyStatusBuilder builder; + StatusNested(V1ValidatingAdmissionPolicyStatus item) { this.builder = new V1ValidatingAdmissionPolicyStatusBuilder(this, item); } - V1ValidatingAdmissionPolicyStatusBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ 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 index 4f6360d8e4..2a4bc31667 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyListBuilder extends V1ValidatingAdmissionPolicyListFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyListFluent fluent; + public V1ValidatingAdmissionPolicyListBuilder() { this(new V1ValidatingAdmissionPolicyList()); } @@ -10,17 +14,16 @@ public V1ValidatingAdmissionPolicyListBuilder(V1ValidatingAdmissionPolicyListFlu 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 V1ValidatingAdmissionPolicyListBuilder(V1ValidatingAdmissionPolicyListFluent fluent,V1ValidatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyList build() { V1ValidatingAdmissionPolicyList buildable = new V1ValidatingAdmissionPolicyList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ValidatingAdmissionPolicyList build() { 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 index c46a1c93a0..34e1bc03a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ +public class V1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + 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 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 String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ValidatingAdmissionPolicy item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(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 addToItems(int index,V1ValidatingAdmissionPolicy item) { - if (this.items == null) {this.items = new ArrayList();} + 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(index, builder); items.add(index, builder);} - return (A)this; + 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").set(index, builder); items.set(index, builder);} - return (A)this; + public V1ValidatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); } - 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 V1ValidatingAdmissionPolicy buildItem(int index) { + return this.items.get(index).build(); } - 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 List buildItems() { + return this.items != null ? build(items) : null; } - 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 V1ValidatingAdmissionPolicy buildLastItem() { + return this.items.get(items.size() - 1).build(); } - 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 V1ValidatingAdmissionPolicy buildMatchingItem(Predicate predicate) { + for (V1ValidatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ValidatingAdmissionPolicy buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ValidatingAdmissionPolicy buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ValidatingAdmissionPolicy buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingAdmissionPolicyListFluent that = (V1ValidatingAdmissionPolicyListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ValidatingAdmissionPolicy buildMatchingItem(Predicate predicate) { - for (V1ValidatingAdmissionPolicyBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate pre return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1ValidatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPolicy... items) { + public A withItems(V1ValidatingAdmissionPolicy... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ValidatingAdmissionPoli 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ValidatingAdmissionPolicyFluent> implements Nested{ - 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()); - } + V1ValidatingAdmissionPolicyBuilder builder; + int index; - 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()); + return (N) V1ValidatingAdmissionPolicyListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ 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 index b592cb24e9..25925c02f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicySpecBuilder extends V1ValidatingAdmissionPolicySpecFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicySpecFluent fluent; + public V1ValidatingAdmissionPolicySpecBuilder() { this(new V1ValidatingAdmissionPolicySpec()); } @@ -10,17 +14,16 @@ public V1ValidatingAdmissionPolicySpecBuilder(V1ValidatingAdmissionPolicySpecFlu 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 V1ValidatingAdmissionPolicySpecBuilder(V1ValidatingAdmissionPolicySpecFluent fluent,V1ValidatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicySpec build() { V1ValidatingAdmissionPolicySpec buildable = new V1ValidatingAdmissionPolicySpec(); buildable.setAuditAnnotations(fluent.buildAuditAnnotations()); @@ -33,5 +36,4 @@ public V1ValidatingAdmissionPolicySpec build() { 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 index 781ebde85f..19d6e10a29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java @@ -1,28 +1,26 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ - public V1ValidatingAdmissionPolicySpecFluent() { - } - - public V1ValidatingAdmissionPolicySpecFluent(V1ValidatingAdmissionPolicySpec instance) { - this.copyInstance(instance); - } +public class V1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ + private ArrayList auditAnnotations; private String failurePolicy; private ArrayList matchConditions; @@ -30,246 +28,261 @@ public V1ValidatingAdmissionPolicySpecFluent(V1ValidatingAdmissionPolicySpec ins 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 V1ValidatingAdmissionPolicySpecFluent() { } - 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(index, builder); auditAnnotations.add(index, builder);} - return (A)this; + public V1ValidatingAdmissionPolicySpecFluent(V1ValidatingAdmissionPolicySpec instance) { + this.copyInstance(instance); } - - 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").set(index, builder); auditAnnotations.set(index, 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 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 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 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 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 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 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 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 AuditAnnotationsNested addNewAuditAnnotation() { + return new AuditAnnotationsNested(-1, null); } - 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 AuditAnnotationsNested addNewAuditAnnotationLike(V1AuditAnnotation item) { + return new AuditAnnotationsNested(-1, item); } - public List buildAuditAnnotations() { - return this.auditAnnotations != null ? build(auditAnnotations) : null; + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); } - public V1AuditAnnotation buildAuditAnnotation(int index) { - return this.auditAnnotations.get(index).build(); + public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { + return new MatchConditionsNested(-1, item); } - public V1AuditAnnotation buildFirstAuditAnnotation() { - return this.auditAnnotations.get(0).build(); + public ValidationsNested addNewValidation() { + return new ValidationsNested(-1, null); } - public V1AuditAnnotation buildLastAuditAnnotation() { - return this.auditAnnotations.get(auditAnnotations.size() - 1).build(); + public ValidationsNested addNewValidationLike(V1Validation item) { + return new ValidationsNested(-1, item); } - public V1AuditAnnotation buildMatchingAuditAnnotation(Predicate predicate) { - for (V1AuditAnnotationBuilder item : auditAnnotations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); } - public boolean hasMatchingAuditAnnotation(Predicate predicate) { - for (V1AuditAnnotationBuilder item : auditAnnotations) { - if (predicate.test(item)) { - return true; - } - } - return false; + public VariablesNested addNewVariableLike(V1Variable item) { + return new VariablesNested(-1, item); } - public A withAuditAnnotations(List auditAnnotations) { - if (this.auditAnnotations != null) { - this._visitables.get("auditAnnotations").clear(); + public A addToAuditAnnotations(V1AuditAnnotation... items) { + if (this.auditAnnotations == null) { + this.auditAnnotations = new ArrayList(); } - if (auditAnnotations != null) { - this.auditAnnotations = new ArrayList(); - for (V1AuditAnnotation item : auditAnnotations) { - this.addToAuditAnnotations(item); - } - } else { - this.auditAnnotations = null; + for (V1AuditAnnotation item : items) { + V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); + _visitables.get("auditAnnotations").add(builder); + this.auditAnnotations.add(builder); } return (A) this; } - public A withAuditAnnotations(io.kubernetes.client.openapi.models.V1AuditAnnotation... auditAnnotations) { - if (this.auditAnnotations != null) { - this.auditAnnotations.clear(); - _visitables.remove("auditAnnotations"); + public A addToAuditAnnotations(int index,V1AuditAnnotation item) { + if (this.auditAnnotations == null) { + this.auditAnnotations = new ArrayList(); } - if (auditAnnotations != null) { - for (V1AuditAnnotation item : auditAnnotations) { - this.addToAuditAnnotations(item); - } + 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 boolean hasAuditAnnotations() { - return this.auditAnnotations != null && !this.auditAnnotations.isEmpty(); - } - - public AuditAnnotationsNested addNewAuditAnnotation() { - return new AuditAnnotationsNested(-1, null); + public A addToMatchConditions(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 AuditAnnotationsNested addNewAuditAnnotationLike(V1AuditAnnotation item) { - return new AuditAnnotationsNested(-1, item); + 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(builder); + matchConditions.add(index, builder); + } + return (A) this; } - public AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1AuditAnnotation item) { - return new AuditAnnotationsNested(index, item); + public A addToValidations(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 AuditAnnotationsNested editAuditAnnotation(int index) { - if (auditAnnotations.size() <= index) throw new RuntimeException("Can't edit auditAnnotations. Index exceeds size."); - return setNewAuditAnnotationLike(index, buildAuditAnnotation(index)); + 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 AuditAnnotationsNested editFirstAuditAnnotation() { - if (auditAnnotations.size() == 0) throw new RuntimeException("Can't edit first auditAnnotations. The list is empty."); - return setNewAuditAnnotationLike(0, buildAuditAnnotation(0)); + public A addToVariables(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 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 A addToVariables(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.add(index, builder); + } + return (A) this; } - public AuditAnnotationsNested editMatchingAuditAnnotation(Predicate predicate) { - int index = -1; - for (int i=0;i buildAuditAnnotations() { + return this.auditAnnotations != null ? build(auditAnnotations) : null; } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - return (A) this; + public V1AuditAnnotation buildFirstAuditAnnotation() { + return this.auditAnnotations.get(0).build(); } - public boolean hasFailurePolicy() { - return this.failurePolicy != null; + public V1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); } - 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);} - return (A)this; + public V1Validation buildFirstValidation() { + return this.validations.get(0).build(); } - 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);} - return (A)this; + public V1Variable buildFirstVariable() { + return this.variables.get(0).build(); } - 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 V1AuditAnnotation buildLastAuditAnnotation() { + return this.auditAnnotations.get(auditAnnotations.size() - 1).build(); } - 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 V1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); } - 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 V1Validation buildLastValidation() { + return this.validations.get(validations.size() - 1).build(); } - 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 V1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); } - 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 V1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); } 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 V1MatchResources buildMatchConstraints() { + return this.matchConstraints != null ? this.matchConstraints.build() : null; } - public V1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); + public V1AuditAnnotation buildMatchingAuditAnnotation(Predicate predicate) { + for (V1AuditAnnotationBuilder item : auditAnnotations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { @@ -281,244 +294,708 @@ public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1MatchConditionBuilder item : matchConditions) { + public V1Validation buildMatchingValidation(Predicate predicate) { + for (V1ValidationBuilder item : validations) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - 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); + public V1Variable buildMatchingVariable(Predicate predicate) { + for (V1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); } - } else { - this.matchConditions = null; - } - return (A) this; + } + return null; } - 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 V1ParamKind buildParamKind() { + return this.paramKind != null ? this.paramKind.build() : null; } - public boolean hasMatchConditions() { - return this.matchConditions != null && !this.matchConditions.isEmpty(); + public V1Validation buildValidation(int index) { + return this.validations.get(index).build(); } - public MatchConditionsNested addNewMatchCondition() { - return new MatchConditionsNested(-1, null); + public List buildValidations() { + return this.validations != null ? build(validations) : null; } - public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { - return new MatchConditionsNested(-1, item); + public V1Variable buildVariable(int index) { + return this.variables.get(index).build(); } - public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { - return new MatchConditionsNested(index, item); + public List buildVariables() { + return this.variables != null ? build(variables) : null; } - public MatchConditionsNested editMatchCondition(int index) { - if (matchConditions.size() <= index) throw new RuntimeException("Can't edit matchConditions. Index exceeds size."); - return setNewMatchConditionLike(index, buildMatchCondition(index)); + 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 AuditAnnotationsNested editAuditAnnotation(int index) { + if (auditAnnotations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "auditAnnotations")); + } + return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); + } + + public AuditAnnotationsNested editFirstAuditAnnotation() { + if (auditAnnotations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "auditAnnotations")); + } + return this.setNewAuditAnnotationLike(0, this.buildAuditAnnotation(0)); } public MatchConditionsNested editFirstMatchCondition() { - if (matchConditions.size() == 0) throw new RuntimeException("Can't edit first matchConditions. The list is empty."); - return setNewMatchConditionLike(0, buildMatchCondition(0)); + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); + } + + public ValidationsNested editFirstValidation() { + if (validations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "validations")); + } + return this.setNewValidationLike(0, this.buildValidation(0)); + } + + public VariablesNested editFirstVariable() { + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(0, this.buildVariable(0)); + } + + public AuditAnnotationsNested editLastAuditAnnotation() { + int index = auditAnnotations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "auditAnnotations")); + } + return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); } 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)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public ValidationsNested editLastValidation() { + int index = validations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "validations")); + } + return this.setNewValidationLike(index, this.buildValidation(index)); + } + + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MatchConstraintsNested editMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + } + + public AuditAnnotationsNested editMatchingAuditAnnotation(Predicate predicate) { + int index = -1; + for (int i = 0;i < auditAnnotations.size();i++) { + if (predicate.test(auditAnnotations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "auditAnnotations")); + } + return this.setNewAuditAnnotationLike(index, this.buildAuditAnnotation(index)); } public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { int index = -1; - for (int i=0;i editMatchingValidation(Predicate predicate) { + int index = -1; + for (int i = 0;i < validations.size();i++) { + if (predicate.test(validations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "validations")); + } + return this.setNewValidationLike(index, this.buildValidation(index)); } - public A withMatchConstraints(V1MatchResources matchConstraints) { - this._visitables.remove("matchConstraints"); - if (matchConstraints != null) { - this.matchConstraints = new V1MatchResourcesBuilder(matchConstraints); - this._visitables.get("matchConstraints").add(this.matchConstraints); - } else { - this.matchConstraints = null; - this._visitables.get("matchConstraints").remove(this.matchConstraints); + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i = 0;i < variables.size();i++) { + if (predicate.test(variables.get(i))) { + index = i; + break; + } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MatchConstraintsNested editOrNewMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1MatchResourcesBuilder().build())); + } + + public MatchConstraintsNested editOrNewMatchConstraintsLike(V1MatchResources item) { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); + } + + public ParamKindNested editOrNewParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1ParamKindBuilder().build())); + } + + public ParamKindNested editOrNewParamKindLike(V1ParamKind item) { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); + } + + public ParamKindNested editParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); + } + + public ValidationsNested editValidation(int index) { + if (validations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "validations")); + } + return this.setNewValidationLike(index, this.buildValidation(index)); + } + + public VariablesNested editVariable(int index) { + if (variables.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingAdmissionPolicySpecFluent that = (V1ValidatingAdmissionPolicySpecFluent) o; + if (!(Objects.equals(auditAnnotations, that.auditAnnotations))) { + return false; + } + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; + } + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; + } + if (!(Objects.equals(matchConstraints, that.matchConstraints))) { + return false; + } + if (!(Objects.equals(paramKind, that.paramKind))) { + return false; + } + if (!(Objects.equals(validations, that.validations))) { + return false; + } + if (!(Objects.equals(variables, that.variables))) { + return false; + } + return true; + } + + public String getFailurePolicy() { + return this.failurePolicy; + } + + public boolean hasAuditAnnotations() { + return this.auditAnnotations != null && !(this.auditAnnotations.isEmpty()); + } + + public boolean hasFailurePolicy() { + return this.failurePolicy != null; + } + + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); } public boolean hasMatchConstraints() { return this.matchConstraints != null; } - public MatchConstraintsNested withNewMatchConstraints() { - return new MatchConstraintsNested(null); + public boolean hasMatchingAuditAnnotation(Predicate predicate) { + for (V1AuditAnnotationBuilder item : auditAnnotations) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public MatchConstraintsNested withNewMatchConstraintsLike(V1MatchResources item) { - return new MatchConstraintsNested(item); + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public MatchConstraintsNested editMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(null)); + public boolean hasMatchingValidation(Predicate predicate) { + for (V1ValidationBuilder item : validations) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public MatchConstraintsNested editOrNewMatchConstraints() { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(new V1MatchResourcesBuilder().build())); + public boolean hasMatchingVariable(Predicate predicate) { + for (V1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public MatchConstraintsNested editOrNewMatchConstraintsLike(V1MatchResources item) { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(item)); + public boolean hasParamKind() { + return this.paramKind != null; } - public V1ParamKind buildParamKind() { - return this.paramKind != null ? this.paramKind.build() : null; + public boolean hasValidations() { + return this.validations != null && !(this.validations.isEmpty()); } - 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); + public boolean hasVariables() { + return this.variables != null && !(this.variables.isEmpty()); + } + + public int hashCode() { + return Objects.hash(auditAnnotations, failurePolicy, matchConditions, matchConstraints, paramKind, validations, variables); + } + + 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 boolean hasParamKind() { - return this.paramKind != null; + 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 ParamKindNested withNewParamKind() { - return new ParamKindNested(null); + 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 ParamKindNested withNewParamKindLike(V1ParamKind item) { - return new ParamKindNested(item); + 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 ParamKindNested editParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(null)); + public A removeFromAuditAnnotations(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 ParamKindNested editOrNewParamKind() { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(new V1ParamKindBuilder().build())); + public A removeFromMatchConditions(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 ParamKindNested editOrNewParamKindLike(V1ParamKind item) { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(item)); + public A removeFromValidations(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 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(index, builder); validations.add(index, builder);} - return (A)this; + public A removeFromVariables(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 removeMatchingFromAuditAnnotations(Predicate predicate) { + if (auditAnnotations == null) { + return (A) this; + } + Iterator each = auditAnnotations.iterator(); + 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 A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + 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 A removeMatchingFromValidations(Predicate predicate) { + if (validations == null) { + return (A) this; + } + Iterator each = validations.iterator(); + 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 A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) { + return (A) this; + } + Iterator each = variables.iterator(); + 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 AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1AuditAnnotation item) { + return new AuditAnnotationsNested(index, item); + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public ValidationsNested setNewValidationLike(int index,V1Validation item) { + return new ValidationsNested(index, item); + } + + public VariablesNested setNewVariableLike(int index,V1Variable item) { + return new VariablesNested(index, item); + } + + 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 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 setToValidations(int index,V1Validation item) { - if (this.validations == null) {this.validations = new ArrayList();} + 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").set(index, builder); validations.set(index, builder);} - return (A)this; + 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 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(auditAnnotations == null) && !(auditAnnotations.isEmpty())) { + sb.append("auditAnnotations:"); + sb.append(auditAnnotations); + sb.append(","); + } + if (!(failurePolicy == null)) { + sb.append("failurePolicy:"); + sb.append(failurePolicy); + sb.append(","); + } + if (!(matchConditions == null) && !(matchConditions.isEmpty())) { + sb.append("matchConditions:"); + sb.append(matchConditions); + sb.append(","); + } + if (!(matchConstraints == null)) { + sb.append("matchConstraints:"); + sb.append(matchConstraints); + sb.append(","); + } + if (!(paramKind == null)) { + sb.append("paramKind:"); + sb.append(paramKind); + sb.append(","); + } + if (!(validations == null) && !(validations.isEmpty())) { + sb.append("validations:"); + sb.append(validations); + sb.append(","); + } + if (!(variables == null) && !(variables.isEmpty())) { + sb.append("variables:"); + sb.append(variables); + } + sb.append("}"); + return sb.toString(); } - 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 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(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 A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + 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 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 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(); + public A withMatchConditions(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; + return (A) this; } - public List buildValidations() { - return this.validations != null ? build(validations) : null; + public A withMatchConstraints(V1MatchResources matchConstraints) { + this._visitables.remove("matchConstraints"); + if (matchConstraints != null) { + this.matchConstraints = new V1MatchResourcesBuilder(matchConstraints); + this._visitables.get("matchConstraints").add(this.matchConstraints); + } else { + this.matchConstraints = null; + this._visitables.get("matchConstraints").remove(this.matchConstraints); + } + return (A) this; } - public V1Validation buildValidation(int index) { - return this.validations.get(index).build(); + public MatchConstraintsNested withNewMatchConstraints() { + return new MatchConstraintsNested(null); } - public V1Validation buildFirstValidation() { - return this.validations.get(0).build(); + public MatchConstraintsNested withNewMatchConstraintsLike(V1MatchResources item) { + return new MatchConstraintsNested(item); } - public V1Validation buildLastValidation() { - return this.validations.get(validations.size() - 1).build(); + public ParamKindNested withNewParamKind() { + return new ParamKindNested(null); } - public V1Validation buildMatchingValidation(Predicate predicate) { - for (V1ValidationBuilder item : validations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ParamKindNested withNewParamKindLike(V1ParamKind item) { + return new ParamKindNested(item); } - public boolean hasMatchingValidation(Predicate predicate) { - for (V1ValidationBuilder item : validations) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 A withValidations(List validations) { @@ -536,7 +1013,7 @@ public A withValidations(List validations) { return (A) this; } - public A withValidations(io.kubernetes.client.openapi.models.V1Validation... validations) { + public A withValidations(V1Validation... validations) { if (this.validations != null) { this.validations.clear(); _visitables.remove("validations"); @@ -549,129 +1026,6 @@ public A withValidations(io.kubernetes.client.openapi.models.V1Validation... val 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(index, 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").set(index, 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(); @@ -687,7 +1041,7 @@ public A withVariables(List variables) { return (A) this; } - public A withVariables(io.kubernetes.client.openapi.models.V1Variable... variables) { + public A withVariables(V1Variable... variables) { if (this.variables != null) { this.variables.clear(); _visitables.remove("variables"); @@ -699,122 +1053,52 @@ public A withVariables(io.kubernetes.client.openapi.models.V1Variable... variabl } return (A) this; } + public class AuditAnnotationsNested extends V1AuditAnnotationFluent> implements Nested{ - 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()); + return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToAuditAnnotations(index, builder.build()); } public N endAuditAnnotation() { return and(); } - } public class MatchConditionsNested extends V1MatchConditionFluent> implements Nested{ + + V1MatchConditionBuilder builder; + int index; + 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()); + return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToMatchConditions(index, builder.build()); } public N endMatchCondition() { return and(); } - } public class MatchConstraintsNested extends V1MatchResourcesFluent> implements Nested{ + + V1MatchResourcesBuilder builder; + MatchConstraintsNested(V1MatchResources item) { this.builder = new V1MatchResourcesBuilder(this, item); } - V1MatchResourcesBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); } @@ -823,14 +1107,15 @@ public N endMatchConstraints() { return and(); } - } public class ParamKindNested extends V1ParamKindFluent> implements Nested{ + + V1ParamKindBuilder builder; + ParamKindNested(V1ParamKind item) { this.builder = new V1ParamKindBuilder(this, item); } - V1ParamKindBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); } @@ -839,43 +1124,43 @@ public N endParamKind() { return and(); } - } public class ValidationsNested extends V1ValidationFluent> implements Nested{ + + V1ValidationBuilder builder; + int index; + 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()); + return (N) V1ValidatingAdmissionPolicySpecFluent.this.setToValidations(index, builder.build()); } public N endValidation() { return and(); } - } public class VariablesNested extends V1VariableFluent> implements Nested{ + + V1VariableBuilder builder; + int index; + 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()); + 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 index 82fc841b78..0a3c80769b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingAdmissionPolicyStatusBuilder extends V1ValidatingAdmissionPolicyStatusFluent implements VisitableBuilder{ + + V1ValidatingAdmissionPolicyStatusFluent fluent; + public V1ValidatingAdmissionPolicyStatusBuilder() { this(new V1ValidatingAdmissionPolicyStatus()); } @@ -10,17 +14,16 @@ public V1ValidatingAdmissionPolicyStatusBuilder(V1ValidatingAdmissionPolicyStatu 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 V1ValidatingAdmissionPolicyStatusBuilder(V1ValidatingAdmissionPolicyStatusFluent fluent,V1ValidatingAdmissionPolicyStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingAdmissionPolicyStatus build() { V1ValidatingAdmissionPolicyStatus buildable = new V1ValidatingAdmissionPolicyStatus(); buildable.setConditions(fluent.buildConditions()); @@ -29,5 +32,4 @@ public V1ValidatingAdmissionPolicyStatus build() { 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 index 6beea06522..3ae878e8d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java @@ -1,98 +1,93 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Long; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ - public V1ValidatingAdmissionPolicyStatusFluent() { - } - - public V1ValidatingAdmissionPolicyStatusFluent(V1ValidatingAdmissionPolicyStatus instance) { - this.copyInstance(instance); - } +public class V1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ + 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(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 V1ValidatingAdmissionPolicyStatusFluent() { } - 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 V1ValidatingAdmissionPolicyStatusFluent(V1ValidatingAdmissionPolicyStatus instance) { + this.copyInstance(instance); } - + 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; + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - 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 ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); } - 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(); - } + public A addToConditions(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; + return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + 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 V1Condition buildCondition(int index) { return this.conditions.get(index).build(); } + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + public V1Condition buildFirstCondition() { return this.conditions.get(0).build(); } @@ -110,6 +105,98 @@ public V1Condition buildMatchingCondition(Predicate predicat return null; } + public V1TypeChecking buildTypeChecking() { + return this.typeChecking != null ? this.typeChecking.build() : null; + } + + 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 ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public TypeCheckingNested editOrNewTypeChecking() { + return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(new V1TypeCheckingBuilder().build())); + } + + public TypeCheckingNested editOrNewTypeCheckingLike(V1TypeChecking item) { + return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(item)); + } + + public TypeCheckingNested editTypeChecking() { + return this.withNewTypeCheckingLike(Optional.ofNullable(this.buildTypeChecking()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingAdmissionPolicyStatusFluent that = (V1ValidatingAdmissionPolicyStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(typeChecking, that.typeChecking))) { + return false; + } + return true; + } + + public Long getObservedGeneration() { + return this.observedGeneration; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + public boolean hasMatchingCondition(Predicate predicate) { for (V1ConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -119,6 +206,98 @@ public boolean hasMatchingCondition(Predicate predicate) { return false; } + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public boolean hasTypeChecking() { + return this.typeChecking != null; + } + + public int hashCode() { + return Objects.hash(conditions, observedGeneration, typeChecking); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(typeChecking == null)) { + sb.append("typeChecking:"); + sb.append(typeChecking); + } + sb.append("}"); + return sb.toString(); + } + public A withConditions(List conditions) { if (this.conditions != null) { this._visitables.get("conditions").clear(); @@ -134,7 +313,7 @@ public A withConditions(List conditions) { return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V1Condition... conditions) { + public A withConditions(V1Condition... conditions) { if (this.conditions != null) { this.conditions.clear(); _visitables.remove("conditions"); @@ -147,49 +326,12 @@ public A withConditions(io.kubernetes.client.openapi.models.V1Condition... condi 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 Long getObservedGeneration() { - return this.observedGeneration; + public TypeCheckingNested withNewTypeCheckingLike(V1TypeChecking item) { + return new TypeCheckingNested(item); } public A withObservedGeneration(Long observedGeneration) { @@ -197,14 +339,6 @@ public A withObservedGeneration(Long observedGeneration) { return (A) this; } - public boolean hasObservedGeneration() { - return this.observedGeneration != null; - } - - public V1TypeChecking buildTypeChecking() { - return this.typeChecking != null ? this.typeChecking.build() : null; - } - public A withTypeChecking(V1TypeChecking typeChecking) { this._visitables.remove("typeChecking"); if (typeChecking != null) { @@ -216,79 +350,33 @@ public A withTypeChecking(V1TypeChecking typeChecking) { } return (A) this; } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ - public boolean hasTypeChecking() { - return this.typeChecking != null; - } - - public TypeCheckingNested 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()); - } + V1ConditionBuilder builder; + int index; - 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()); + return (N) V1ValidatingAdmissionPolicyStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { return and(); } - } public class TypeCheckingNested extends V1TypeCheckingFluent> implements Nested{ + + V1TypeCheckingBuilder builder; + TypeCheckingNested(V1TypeChecking item) { this.builder = new V1TypeCheckingBuilder(this, item); } - V1TypeCheckingBuilder builder; - + public N and() { return (N) V1ValidatingAdmissionPolicyStatusFluent.this.withTypeChecking(builder.build()); } @@ -297,7 +385,5 @@ public N endTypeChecking() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java index 6ae4a12cf6..ff17de02ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingWebhookBuilder extends V1ValidatingWebhookFluent implements VisitableBuilder{ + + V1ValidatingWebhookFluent fluent; + public V1ValidatingWebhookBuilder() { this(new V1ValidatingWebhook()); } @@ -10,17 +14,16 @@ public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent) { this(fluent, new V1ValidatingWebhook()); } - public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent,V1ValidatingWebhook instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingWebhookBuilder(V1ValidatingWebhook instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingWebhookFluent fluent; + public V1ValidatingWebhookBuilder(V1ValidatingWebhookFluent fluent,V1ValidatingWebhook instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingWebhook build() { V1ValidatingWebhook buildable = new V1ValidatingWebhook(); buildable.setAdmissionReviewVersions(fluent.getAdmissionReviewVersions()); @@ -37,5 +40,4 @@ public V1ValidatingWebhook build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java index 7194cef94a..53c719003e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingWebhookConfigurationBuilder extends V1ValidatingWebhookConfigurationFluent implements VisitableBuilder{ + + V1ValidatingWebhookConfigurationFluent fluent; + public V1ValidatingWebhookConfigurationBuilder() { this(new V1ValidatingWebhookConfiguration()); } @@ -10,17 +14,16 @@ public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationF this(fluent, new V1ValidatingWebhookConfiguration()); } - public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationFluent fluent,V1ValidatingWebhookConfiguration instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfiguration instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingWebhookConfigurationFluent fluent; + public V1ValidatingWebhookConfigurationBuilder(V1ValidatingWebhookConfigurationFluent fluent,V1ValidatingWebhookConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingWebhookConfiguration build() { V1ValidatingWebhookConfiguration buildable = new V1ValidatingWebhookConfiguration(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ValidatingWebhookConfiguration build() { return buildable; } - } \ 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..36e41e796e 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 @@ -1,189 +1,348 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingWebhookConfigurationFluent> extends BaseFluent{ +public class V1ValidatingWebhookConfigurationFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private ArrayList webhooks; + public V1ValidatingWebhookConfigurationFluent() { } public V1ValidatingWebhookConfigurationFluent(V1ValidatingWebhookConfiguration instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private ArrayList webhooks; + + public A addAllToWebhooks(Collection items) { + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").add(builder); + this.webhooks.add(builder); + } + return (A) this; + } - protected void copyInstance(V1ValidatingWebhookConfiguration instance) { - instance = (instance != null ? instance : new V1ValidatingWebhookConfiguration()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withWebhooks(instance.getWebhooks()); - } + public WebhooksNested addNewWebhook() { + return new WebhooksNested(-1, null); } - public String getApiVersion() { - return this.apiVersion; + public WebhooksNested addNewWebhookLike(V1ValidatingWebhook item) { + return new WebhooksNested(-1, item); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; + public A addToWebhooks(V1ValidatingWebhook... items) { + if (this.webhooks == null) { + this.webhooks = new ArrayList(); + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").add(builder); + this.webhooks.add(builder); + } return (A) this; } - public boolean hasApiVersion() { - return this.apiVersion != null; + 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(builder); + webhooks.add(index, builder); + } + return (A) this; } - public String getKind() { - return this.kind; + public V1ValidatingWebhook buildFirstWebhook() { + return this.webhooks.get(0).build(); } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public V1ValidatingWebhook buildLastWebhook() { + return this.webhooks.get(webhooks.size() - 1).build(); } - public boolean hasKind() { - return this.kind != null; + public V1ValidatingWebhook buildMatchingWebhook(Predicate predicate) { + for (V1ValidatingWebhookBuilder item : webhooks) { + if (predicate.test(item)) { + return item.build(); + } + } + return 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); + public V1ValidatingWebhook buildWebhook(int index) { + return this.webhooks.get(index).build(); + } + + public List buildWebhooks() { + return this.webhooks != null ? build(webhooks) : null; + } + + protected void copyInstance(V1ValidatingWebhookConfiguration instance) { + instance = instance != null ? instance : new V1ValidatingWebhookConfiguration(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withWebhooks(instance.getWebhooks()); } - return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; + public WebhooksNested editFirstWebhook() { + if (webhooks.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "webhooks")); + } + return this.setNewWebhookLike(0, this.buildWebhook(0)); } - public MetadataNested withNewMetadata() { - return new MetadataNested(null); + public WebhooksNested editLastWebhook() { + int index = webhooks.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } - public MetadataNested withNewMetadataLike(V1ObjectMeta item) { - return new MetadataNested(item); + public WebhooksNested editMatchingWebhook(Predicate predicate) { + int index = -1; + for (int i = 0;i < webhooks.size();i++) { + if (predicate.test(webhooks.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(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);} - return (A)this; + public WebhooksNested editWebhook(int index) { + if (webhooks.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "webhooks")); + } + return this.setNewWebhookLike(index, this.buildWebhook(index)); } - 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);} - return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingWebhookConfigurationFluent that = (V1ValidatingWebhookConfigurationFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(webhooks, that.webhooks))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } - public A addToWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} - for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; + public String getKind() { + return this.kind; } - public A addAllToWebhooks(Collection items) { - if (this.webhooks == null) {this.webhooks = new ArrayList();} - for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").add(builder);this.webhooks.add(builder);} return (A)this; + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingWebhook(Predicate predicate) { + for (V1ValidatingWebhookBuilder item : webhooks) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasWebhooks() { + return this.webhooks != null && !(this.webhooks.isEmpty()); } - public A removeFromWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... items) { - if (this.webhooks == null) return (A)this; - for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder); this.webhooks.remove(builder);} return (A)this; + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, webhooks); } public A removeAllFromWebhooks(Collection items) { - if (this.webhooks == null) return (A)this; - for (V1ValidatingWebhook item : items) {V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item);_visitables.get("webhooks").remove(builder); this.webhooks.remove(builder);} return (A)this; + if (this.webhooks == null) { + return (A) this; + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; + } + + public A removeFromWebhooks(V1ValidatingWebhook... items) { + if (this.webhooks == null) { + return (A) this; + } + for (V1ValidatingWebhook item : items) { + V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); + _visitables.get("webhooks").remove(builder); + this.webhooks.remove(builder); + } + return (A) this; } public A removeMatchingFromWebhooks(Predicate predicate) { - if (webhooks == null) return (A) this; - final Iterator each = webhooks.iterator(); - final List visitables = _visitables.get("webhooks"); + if (webhooks == null) { + return (A) this; + } + Iterator each = webhooks.iterator(); + List visitables = _visitables.get("webhooks"); while (each.hasNext()) { - V1ValidatingWebhookBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1ValidatingWebhookBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildWebhooks() { - return this.webhooks != null ? build(webhooks) : null; + public WebhooksNested setNewWebhookLike(int index,V1ValidatingWebhook item) { + return new WebhooksNested(index, item); } - public V1ValidatingWebhook buildWebhook(int index) { - return this.webhooks.get(index).build(); + 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").add(builder); + webhooks.set(index, builder); + } + return (A) this; } - public V1ValidatingWebhook buildFirstWebhook() { - return this.webhooks.get(0).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(webhooks == null) && !(webhooks.isEmpty())) { + sb.append("webhooks:"); + sb.append(webhooks); + } + sb.append("}"); + return sb.toString(); } - public V1ValidatingWebhook buildLastWebhook() { - return this.webhooks.get(webhooks.size() - 1).build(); + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; } - public V1ValidatingWebhook buildMatchingWebhook(Predicate predicate) { - for (V1ValidatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withKind(String kind) { + this.kind = kind; + return (A) this; } - public boolean hasMatchingWebhook(Predicate predicate) { - for (V1ValidatingWebhookBuilder item : webhooks) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); } public A withWebhooks(List webhooks) { @@ -201,7 +360,7 @@ public A withWebhooks(List webhooks) { return (A) this; } - public A withWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... webhooks) { + public A withWebhooks(V1ValidatingWebhook... webhooks) { if (this.webhooks != null) { this.webhooks.clear(); _visitables.remove("webhooks"); @@ -213,80 +372,14 @@ public A withWebhooks(io.kubernetes.client.openapi.models.V1ValidatingWebhook... } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasWebhooks() { - return this.webhooks != null && !this.webhooks.isEmpty(); - } - - public WebhooksNested addNewWebhook() { - return new WebhooksNested(-1, null); - } - - public WebhooksNested addNewWebhookLike(V1ValidatingWebhook item) { - return new WebhooksNested(-1, item); - } - - public WebhooksNested setNewWebhookLike(int index,V1ValidatingWebhook item) { - return new WebhooksNested(index, item); - } - - public WebhooksNested editWebhook(int index) { - if (webhooks.size() <= index) throw new RuntimeException("Can't edit webhooks. Index exceeds size."); - return setNewWebhookLike(index, buildWebhook(index)); - } - - public WebhooksNested editFirstWebhook() { - if (webhooks.size() == 0) throw new RuntimeException("Can't edit first webhooks. The list is empty."); - return setNewWebhookLike(0, buildWebhook(0)); - } - - public WebhooksNested editLastWebhook() { - int index = webhooks.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last webhooks. The list is empty."); - return setNewWebhookLike(index, buildWebhook(index)); - } - - public WebhooksNested editMatchingWebhook(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1ObjectMetaFluent> implements Nested{ MetadataNested(V1ObjectMeta item) { this.builder = new V1ObjectMetaBuilder(this, item); } - V1ObjectMetaBuilder builder; - + public N and() { return (N) V1ValidatingWebhookConfigurationFluent.this.withMetadata(builder.build()); } @@ -295,25 +388,24 @@ public N endMetadata() { return and(); } - } public class WebhooksNested extends V1ValidatingWebhookFluent> implements Nested{ + + V1ValidatingWebhookBuilder builder; + int index; + WebhooksNested(int index,V1ValidatingWebhook item) { this.index = index; this.builder = new V1ValidatingWebhookBuilder(this, item); } - V1ValidatingWebhookBuilder builder; - int index; - + public N and() { - return (N) V1ValidatingWebhookConfigurationFluent.this.setToWebhooks(index,builder.build()); + return (N) V1ValidatingWebhookConfigurationFluent.this.setToWebhooks(index, builder.build()); } public N endWebhook() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java index 3761a6ce41..94009a720f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidatingWebhookConfigurationListBuilder extends V1ValidatingWebhookConfigurationListFluent implements VisitableBuilder{ + + V1ValidatingWebhookConfigurationListFluent fluent; + public V1ValidatingWebhookConfigurationListBuilder() { this(new V1ValidatingWebhookConfigurationList()); } @@ -10,17 +14,16 @@ public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurat this(fluent, new V1ValidatingWebhookConfigurationList()); } - public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationListFluent fluent,V1ValidatingWebhookConfigurationList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationList instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidatingWebhookConfigurationListFluent fluent; + public V1ValidatingWebhookConfigurationListBuilder(V1ValidatingWebhookConfigurationListFluent fluent,V1ValidatingWebhookConfigurationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidatingWebhookConfigurationList build() { V1ValidatingWebhookConfigurationList buildable = new V1ValidatingWebhookConfigurationList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1ValidatingWebhookConfigurationList build() { return buildable; } - } \ No newline at end of file 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..43db929c58 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingWebhookConfigurationListFluent> extends BaseFluent{ +public class V1ValidatingWebhookConfigurationListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1ValidatingWebhookConfigurationListFluent() { } public V1ValidatingWebhookConfigurationListFluent(V1ValidatingWebhookConfigurationList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1ValidatingWebhookConfigurationList instance) { - instance = (instance != null ? instance : new V1ValidatingWebhookConfigurationList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1ValidatingWebhookConfiguration item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1ValidatingWebhookConfiguration... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1ValidatingWebhookConfiguration item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1ValidatingWebhookConfiguration buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1ValidatingWebhookConfiguration buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { - if (this.items == null) return (A)this; - for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ValidatingWebhookConfiguration buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1ValidatingWebhookConfiguration item : items) {V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1ValidatingWebhookConfiguration buildMatchingItem(Predicate predicate) { + for (V1ValidatingWebhookConfigurationBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1ValidatingWebhookConfigurationBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1ValidatingWebhookConfigurationList instance) { + instance = instance != null ? instance : new V1ValidatingWebhookConfigurationList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1ValidatingWebhookConfiguration buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1ValidatingWebhookConfiguration buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1ValidatingWebhookConfiguration buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingWebhookConfigurationListFluent that = (V1ValidatingWebhookConfigurationListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1ValidatingWebhookConfiguration buildMatchingItem(Predicate predicate) { - for (V1ValidatingWebhookConfigurationBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1ValidatingWebhookConfiguration... items) { + if (this.items == null) { + return (A) this; + } + for (V1ValidatingWebhookConfiguration item : items) { + V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1ValidatingWebhookConfigurationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1ValidatingWebhookConfiguration item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfiguration... items) { + public A withItems(V1ValidatingWebhookConfiguration... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1ValidatingWebhookConfig return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1ValidatingWebhookConfiguration item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1ValidatingWebhookConfiguration 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1ValidatingWebhookConfigurationFluent> implements Nested{ - 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; - V1ValidatingWebhookConfigurationListFluent that = (V1ValidatingWebhookConfigurationListFluent) 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()); - } + V1ValidatingWebhookConfigurationBuilder builder; + int index; - 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 V1ValidatingWebhookConfigurationFluent> implements Nested{ ItemsNested(int index,V1ValidatingWebhookConfiguration item) { this.index = index; this.builder = new V1ValidatingWebhookConfigurationBuilder(this, item); } - V1ValidatingWebhookConfigurationBuilder builder; - int index; - + public N and() { - return (N) V1ValidatingWebhookConfigurationListFluent.this.setToItems(index,builder.build()); + return (N) V1ValidatingWebhookConfigurationListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1ValidatingWebhookConfigurationListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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..da3b9c913c 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 @@ -1,29 +1,27 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Integer; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidatingWebhookFluent> extends BaseFluent{ - public V1ValidatingWebhookFluent() { - } - - public V1ValidatingWebhookFluent(V1ValidatingWebhook instance) { - this.copyInstance(instance); - } +public class V1ValidatingWebhookFluent> extends BaseFluent{ + private List admissionReviewVersions; private AdmissionregistrationV1WebhookClientConfigBuilder clientConfig; private String failurePolicy; @@ -35,242 +33,442 @@ public V1ValidatingWebhookFluent(V1ValidatingWebhook instance) { private ArrayList rules; private String sideEffects; private Integer timeoutSeconds; + + public V1ValidatingWebhookFluent() { + } - protected void copyInstance(V1ValidatingWebhook instance) { - instance = (instance != null ? instance : new V1ValidatingWebhook()); - if (instance != null) { - this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); - this.withClientConfig(instance.getClientConfig()); - this.withFailurePolicy(instance.getFailurePolicy()); - this.withMatchConditions(instance.getMatchConditions()); - this.withMatchPolicy(instance.getMatchPolicy()); - this.withName(instance.getName()); - this.withNamespaceSelector(instance.getNamespaceSelector()); - this.withObjectSelector(instance.getObjectSelector()); - this.withRules(instance.getRules()); - this.withSideEffects(instance.getSideEffects()); - this.withTimeoutSeconds(instance.getTimeoutSeconds()); - } + public V1ValidatingWebhookFluent(V1ValidatingWebhook instance) { + this.copyInstance(instance); + } + + public A addAllToAdmissionReviewVersions(Collection items) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + 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 addAllToRules(Collection items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; + } + + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); + } + + public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public RulesNested addNewRule() { + return new RulesNested(-1, null); + } + + public RulesNested addNewRuleLike(V1RuleWithOperations item) { + return new RulesNested(-1, item); + } + + public A addToAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.admissionReviewVersions.add(item); + } + return (A) this; } public A addToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } this.admissionReviewVersions.add(index, item); - return (A)this; + return (A) this; } - public A setToAdmissionReviewVersions(int index,String item) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - this.admissionReviewVersions.set(index, item); return (A)this; + public A addToMatchConditions(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 addToAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; + 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(builder); + matchConditions.add(index, builder); + } + return (A) this; } - public A addAllToAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) {this.admissionReviewVersions = new ArrayList();} - for (String item : items) {this.admissionReviewVersions.add(item);} return (A)this; + public A addToRules(V1RuleWithOperations... items) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").add(builder); + this.rules.add(builder); + } + return (A) this; } - public A removeFromAdmissionReviewVersions(java.lang.String... items) { - if (this.admissionReviewVersions == null) return (A)this; - for (String item : items) { this.admissionReviewVersions.remove(item);} return (A)this; + 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(builder); + rules.add(index, builder); + } + return (A) this; } - public A removeAllFromAdmissionReviewVersions(Collection items) { - if (this.admissionReviewVersions == null) return (A)this; - for (String item : items) { this.admissionReviewVersions.remove(item);} return (A)this; + public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { + return this.clientConfig != null ? this.clientConfig.build() : null; } - public List getAdmissionReviewVersions() { - return this.admissionReviewVersions; + public V1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); } - public String getAdmissionReviewVersion(int index) { - return this.admissionReviewVersions.get(index); + public V1RuleWithOperations buildFirstRule() { + return this.rules.get(0).build(); } - public String getFirstAdmissionReviewVersion() { - return this.admissionReviewVersions.get(0); + public V1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); } - public String getLastAdmissionReviewVersion() { - return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); + public V1RuleWithOperations buildLastRule() { + return this.rules.get(rules.size() - 1).build(); } - public String getMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { + public V1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); + } + + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; + } + + public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { if (predicate.test(item)) { - return item; + return item.build(); } } return null; } - public boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { - for (String item : admissionReviewVersions) { + public V1RuleWithOperations buildMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withAdmissionReviewVersions(List admissionReviewVersions) { - if (admissionReviewVersions != null) { - this.admissionReviewVersions = new ArrayList(); - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } - } else { - this.admissionReviewVersions = null; + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + } + + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; + } + + public V1RuleWithOperations buildRule(int index) { + return this.rules.get(index).build(); + } + + public List buildRules() { + return this.rules != null ? build(rules) : null; + } + + protected void copyInstance(V1ValidatingWebhook instance) { + instance = instance != null ? instance : new V1ValidatingWebhook(); + if (instance != null) { + this.withAdmissionReviewVersions(instance.getAdmissionReviewVersions()); + this.withClientConfig(instance.getClientConfig()); + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withName(instance.getName()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withRules(instance.getRules()); + this.withSideEffects(instance.getSideEffects()); + this.withTimeoutSeconds(instance.getTimeoutSeconds()); } - return (A) this; } - public A withAdmissionReviewVersions(java.lang.String... admissionReviewVersions) { - if (this.admissionReviewVersions != null) { - this.admissionReviewVersions.clear(); - _visitables.remove("admissionReviewVersions"); + public ClientConfigNested editClientConfig() { + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); + } + + public MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); } - if (admissionReviewVersions != null) { - for (String item : admissionReviewVersions) { - this.addToAdmissionReviewVersions(item); - } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); + } + + public RulesNested editFirstRule() { + if (rules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "rules")); } - return (A) this; + return this.setNewRuleLike(0, this.buildRule(0)); } - public boolean hasAdmissionReviewVersions() { - return this.admissionReviewVersions != null && !this.admissionReviewVersions.isEmpty(); + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public AdmissionregistrationV1WebhookClientConfig buildClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; + public RulesNested editLastRule() { + int index = rules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { - this._visitables.remove("clientConfig"); - if (clientConfig != null) { - this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); - this._visitables.get("clientConfig").add(this.clientConfig); - } else { - this.clientConfig = null; - this._visitables.get("clientConfig").remove(this.clientConfig); + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); } - return (A) this; + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public boolean hasClientConfig() { - return this.clientConfig != null; + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchConditions.size();i++) { + if (predicate.test(matchConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); } - public ClientConfigNested withNewClientConfig() { - return new ClientConfigNested(null); + public RulesNested editMatchingRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < rules.size();i++) { + if (predicate.test(rules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); } - public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return new ClientConfigNested(item); + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public ClientConfigNested editClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(null)); + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } public ClientConfigNested editOrNewClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new AdmissionregistrationV1WebhookClientConfigBuilder().build())); } public ClientConfigNested editOrNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(item)); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); } - public String getFailurePolicy() { - return this.failurePolicy; + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withFailurePolicy(String failurePolicy) { - this.failurePolicy = failurePolicy; - return (A) this; + public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - public boolean hasFailurePolicy() { - return this.failurePolicy != null; + public ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } - 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);} - return (A)this; + public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } - 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);} - return (A)this; + public RulesNested editRule(int index) { + if (rules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "rules")); + } + return this.setNewRuleLike(index, this.buildRule(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidatingWebhookFluent that = (V1ValidatingWebhookFluent) o; + if (!(Objects.equals(admissionReviewVersions, that.admissionReviewVersions))) { + return false; + } + if (!(Objects.equals(clientConfig, that.clientConfig))) { + return false; + } + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; + } + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(rules, that.rules))) { + return false; + } + if (!(Objects.equals(sideEffects, that.sideEffects))) { + return false; + } + if (!(Objects.equals(timeoutSeconds, that.timeoutSeconds))) { + return false; + } + return true; } - 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 String getAdmissionReviewVersion(int index) { + return this.admissionReviewVersions.get(index); } - 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 List getAdmissionReviewVersions() { + return this.admissionReviewVersions; } - 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 String getFailurePolicy() { + return this.failurePolicy; } - 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 String getFirstAdmissionReviewVersion() { + return this.admissionReviewVersions.get(0); } - 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(); + public String getLastAdmissionReviewVersion() { + return this.admissionReviewVersions.get(admissionReviewVersions.size() - 1); + } + + public String getMatchPolicy() { + return this.matchPolicy; + } + + public String getMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { + if (predicate.test(item)) { + return item; + } } - } - return (A)this; + return null; } - public List buildMatchConditions() { - return this.matchConditions != null ? build(matchConditions) : null; + public String getName() { + return this.name; } - public V1MatchCondition buildMatchCondition(int index) { - return this.matchConditions.get(index).build(); + public String getSideEffects() { + return this.sideEffects; } - public V1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); + public Integer getTimeoutSeconds() { + return this.timeoutSeconds; } - public V1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); + public boolean hasAdmissionReviewVersions() { + return this.admissionReviewVersions != null && !(this.admissionReviewVersions.isEmpty()); } - public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1MatchConditionBuilder item : matchConditions) { + public boolean hasClientConfig() { + return this.clientConfig != null; + } + + public boolean hasFailurePolicy() { + return this.failurePolicy != null; + } + + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); + } + + public boolean hasMatchPolicy() { + return this.matchPolicy != null; + } + + public boolean hasMatchingAdmissionReviewVersion(Predicate predicate) { + for (String item : admissionReviewVersions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingMatchCondition(Predicate predicate) { @@ -282,6 +480,292 @@ public boolean hasMatchingMatchCondition(Predicate pred return false; } + public boolean hasMatchingRule(Predicate predicate) { + for (V1RuleWithOperationsBuilder item : rules) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespaceSelector() { + return this.namespaceSelector != null; + } + + public boolean hasObjectSelector() { + return this.objectSelector != null; + } + + public boolean hasRules() { + return this.rules != null && !(this.rules.isEmpty()); + } + + public boolean hasSideEffects() { + return this.sideEffects != null; + } + + public boolean hasTimeoutSeconds() { + return this.timeoutSeconds != null; + } + + public int hashCode() { + return Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, rules, sideEffects, timeoutSeconds); + } + + public A removeAllFromAdmissionReviewVersions(Collection items) { + if (this.admissionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.admissionReviewVersions.remove(item); + } + 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 removeAllFromRules(Collection items) { + if (this.rules == null) { + return (A) this; + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeFromAdmissionReviewVersions(String... items) { + if (this.admissionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.admissionReviewVersions.remove(item); + } + return (A) this; + } + + public A removeFromMatchConditions(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 removeFromRules(V1RuleWithOperations... items) { + if (this.rules == null) { + return (A) this; + } + for (V1RuleWithOperations item : items) { + V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); + _visitables.get("rules").remove(builder); + this.rules.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + 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 A removeMatchingFromRules(Predicate predicate) { + if (rules == null) { + return (A) this; + } + Iterator each = rules.iterator(); + List visitables = _visitables.get("rules"); + while (each.hasNext()) { + V1RuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public RulesNested setNewRuleLike(int index,V1RuleWithOperations item) { + return new RulesNested(index, item); + } + + public A setToAdmissionReviewVersions(int index,String item) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + this.admissionReviewVersions.set(index, item); + 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 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").add(builder); + rules.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(admissionReviewVersions == null) && !(admissionReviewVersions.isEmpty())) { + sb.append("admissionReviewVersions:"); + sb.append(admissionReviewVersions); + sb.append(","); + } + if (!(clientConfig == null)) { + sb.append("clientConfig:"); + sb.append(clientConfig); + sb.append(","); + } + if (!(failurePolicy == null)) { + sb.append("failurePolicy:"); + sb.append(failurePolicy); + sb.append(","); + } + if (!(matchConditions == null) && !(matchConditions.isEmpty())) { + sb.append("matchConditions:"); + sb.append(matchConditions); + sb.append(","); + } + if (!(matchPolicy == null)) { + sb.append("matchPolicy:"); + sb.append(matchPolicy); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(objectSelector == null)) { + sb.append("objectSelector:"); + sb.append(objectSelector); + sb.append(","); + } + if (!(rules == null) && !(rules.isEmpty())) { + sb.append("rules:"); + sb.append(rules); + sb.append(","); + } + if (!(sideEffects == null)) { + sb.append("sideEffects:"); + sb.append(sideEffects); + sb.append(","); + } + if (!(timeoutSeconds == null)) { + sb.append("timeoutSeconds:"); + sb.append(timeoutSeconds); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdmissionReviewVersions(List admissionReviewVersions) { + if (admissionReviewVersions != null) { + this.admissionReviewVersions = new ArrayList(); + for (String item : admissionReviewVersions) { + this.addToAdmissionReviewVersions(item); + } + } else { + this.admissionReviewVersions = null; + } + return (A) this; + } + + public A withAdmissionReviewVersions(String... admissionReviewVersions) { + if (this.admissionReviewVersions != null) { + this.admissionReviewVersions.clear(); + _visitables.remove("admissionReviewVersions"); + } + if (admissionReviewVersions != null) { + for (String item : admissionReviewVersions) { + this.addToAdmissionReviewVersions(item); + } + } + return (A) this; + } + + public A withClientConfig(AdmissionregistrationV1WebhookClientConfig clientConfig) { + this._visitables.remove("clientConfig"); + if (clientConfig != null) { + this.clientConfig = new AdmissionregistrationV1WebhookClientConfigBuilder(clientConfig); + this._visitables.get("clientConfig").add(this.clientConfig); + } else { + this.clientConfig = null; + this._visitables.get("clientConfig").remove(this.clientConfig); + } + return (A) this; + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + public A withMatchConditions(List matchConditions) { if (this.matchConditions != null) { this._visitables.get("matchConditions").clear(); @@ -297,7 +781,7 @@ public A withMatchConditions(List matchConditions) { return (A) this; } - public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchCondition... matchConditions) { + public A withMatchConditions(V1MatchCondition... matchConditions) { if (this.matchConditions != null) { this.matchConditions.clear(); _visitables.remove("matchConditions"); @@ -310,77 +794,16 @@ public A withMatchConditions(io.kubernetes.client.openapi.models.V1MatchConditio 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 withNewClientConfig() { + return new ClientConfigNested(null); + } + + public ClientConfigNested withNewClientConfigLike(AdmissionregistrationV1WebhookClientConfig item) { + return new ClientConfigNested(item); } public NamespaceSelectorNested withNewNamespaceSelector() { @@ -405,20 +832,12 @@ public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector i 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 ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); } public A withObjectSelector(V1LabelSelector objectSelector) { @@ -433,112 +852,6 @@ public A withObjectSelector(V1LabelSelector 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 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);} - 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);} - return (A)this; - } - - public A addToRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) {this.rules = new ArrayList();} - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(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 (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item);_visitables.get("rules").add(builder);this.rules.add(builder);} return (A)this; - } - - public A removeFromRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... items) { - if (this.rules == null) return (A)this; - for (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(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 (V1RuleWithOperations item : items) {V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(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()) { - V1RuleWithOperationsBuilder 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 V1RuleWithOperations buildRule(int index) { - return this.rules.get(index).build(); - } - - public V1RuleWithOperations buildFirstRule() { - return this.rules.get(0).build(); - } - - public V1RuleWithOperations buildLastRule() { - return this.rules.get(rules.size() - 1).build(); - } - - public V1RuleWithOperations buildMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingRule(Predicate predicate) { - for (V1RuleWithOperationsBuilder item : rules) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - public A withRules(List rules) { if (this.rules != null) { this._visitables.get("rules").clear(); @@ -554,7 +867,7 @@ public A withRules(List rules) { return (A) this; } - public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... rules) { + public A withRules(V1RuleWithOperations... rules) { if (this.rules != null) { this.rules.clear(); _visitables.remove("rules"); @@ -567,119 +880,23 @@ public A withRules(io.kubernetes.client.openapi.models.V1RuleWithOperations... r return (A) this; } - public boolean hasRules() { - return this.rules != null && !this.rules.isEmpty(); - } - - public RulesNested addNewRule() { - return new RulesNested(-1, null); - } - - public RulesNested addNewRuleLike(V1RuleWithOperations item) { - return new RulesNested(-1, item); - } - - public RulesNested setNewRuleLike(int index,V1RuleWithOperations 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 AdmissionregistrationV1WebhookClientConfigFluent> implements Nested{ - public boolean hasTimeoutSeconds() { - return this.timeoutSeconds != 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; - V1ValidatingWebhookFluent that = (V1ValidatingWebhookFluent) o; - if (!java.util.Objects.equals(admissionReviewVersions, that.admissionReviewVersions)) return false; - if (!java.util.Objects.equals(clientConfig, that.clientConfig)) return false; - if (!java.util.Objects.equals(failurePolicy, that.failurePolicy)) return false; - if (!java.util.Objects.equals(matchConditions, that.matchConditions)) return false; - if (!java.util.Objects.equals(matchPolicy, that.matchPolicy)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(namespaceSelector, that.namespaceSelector)) return false; - if (!java.util.Objects.equals(objectSelector, that.objectSelector)) return false; - if (!java.util.Objects.equals(rules, that.rules)) return false; - if (!java.util.Objects.equals(sideEffects, that.sideEffects)) return false; - if (!java.util.Objects.equals(timeoutSeconds, that.timeoutSeconds)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, matchConditions, matchPolicy, name, namespaceSelector, objectSelector, rules, sideEffects, timeoutSeconds, super.hashCode()); - } + AdmissionregistrationV1WebhookClientConfigBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (admissionReviewVersions != null && !admissionReviewVersions.isEmpty()) { sb.append("admissionReviewVersions:"); sb.append(admissionReviewVersions + ","); } - if (clientConfig != null) { sb.append("clientConfig:"); sb.append(clientConfig + ","); } - if (failurePolicy != null) { sb.append("failurePolicy:"); sb.append(failurePolicy + ","); } - if (matchConditions != null && !matchConditions.isEmpty()) { sb.append("matchConditions:"); sb.append(matchConditions + ","); } - if (matchPolicy != null) { sb.append("matchPolicy:"); sb.append(matchPolicy + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (namespaceSelector != null) { sb.append("namespaceSelector:"); sb.append(namespaceSelector + ","); } - if (objectSelector != null) { sb.append("objectSelector:"); sb.append(objectSelector + ","); } - if (rules != null && !rules.isEmpty()) { sb.append("rules:"); sb.append(rules + ","); } - if (sideEffects != null) { sb.append("sideEffects:"); sb.append(sideEffects + ","); } - if (timeoutSeconds != null) { sb.append("timeoutSeconds:"); sb.append(timeoutSeconds); } - sb.append("}"); - return sb.toString(); - } - public class ClientConfigNested extends AdmissionregistrationV1WebhookClientConfigFluent> implements Nested{ ClientConfigNested(AdmissionregistrationV1WebhookClientConfig item) { this.builder = new AdmissionregistrationV1WebhookClientConfigBuilder(this, item); } - AdmissionregistrationV1WebhookClientConfigBuilder builder; - + public N and() { return (N) V1ValidatingWebhookFluent.this.withClientConfig(builder.build()); } @@ -688,32 +905,34 @@ public N endClientConfig() { return and(); } - } public class MatchConditionsNested extends V1MatchConditionFluent> implements Nested{ + + V1MatchConditionBuilder builder; + int index; + MatchConditionsNested(int index,V1MatchCondition item) { this.index = index; this.builder = new V1MatchConditionBuilder(this, item); } - V1MatchConditionBuilder builder; - int index; - + public N and() { - return (N) V1ValidatingWebhookFluent.this.setToMatchConditions(index,builder.build()); + return (N) V1ValidatingWebhookFluent.this.setToMatchConditions(index, builder.build()); } public N endMatchCondition() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1ValidatingWebhookFluent.this.withNamespaceSelector(builder.build()); } @@ -722,14 +941,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1ValidatingWebhookFluent.this.withObjectSelector(builder.build()); } @@ -738,25 +958,24 @@ public N endObjectSelector() { return and(); } - } public class RulesNested extends V1RuleWithOperationsFluent> implements Nested{ + + V1RuleWithOperationsBuilder builder; + int index; + RulesNested(int index,V1RuleWithOperations item) { this.index = index; this.builder = new V1RuleWithOperationsBuilder(this, item); } - V1RuleWithOperationsBuilder builder; - int index; - + public N and() { - return (N) V1ValidatingWebhookFluent.this.setToRules(index,builder.build()); + return (N) V1ValidatingWebhookFluent.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/V1ValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java index 292d1921b0..c471f5e355 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidationBuilder extends V1ValidationFluent implements VisitableBuilder{ + + V1ValidationFluent fluent; + public V1ValidationBuilder() { this(new V1Validation()); } @@ -10,17 +14,16 @@ 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 V1ValidationBuilder(V1ValidationFluent fluent,V1Validation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Validation build() { V1Validation buildable = new V1Validation(); buildable.setExpression(fluent.getExpression()); @@ -30,5 +33,4 @@ public V1Validation build() { 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 index 90b0032efe..f8fb7d3c47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java @@ -1,114 +1,146 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidationFluent> extends BaseFluent{ +public class V1ValidationFluent> extends BaseFluent{ + + private String expression; + private String message; + private String messageExpression; + private String reason; + 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()); + 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; + this.withExpression(instance.getExpression()); + this.withMessage(instance.getMessage()); + this.withMessageExpression(instance.getMessageExpression()); + this.withReason(instance.getReason()); + } } - public A withExpression(String expression) { - this.expression = expression; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidationFluent that = (V1ValidationFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(messageExpression, that.messageExpression))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + return true; } - public boolean hasExpression() { - return this.expression != null; + public String getExpression() { + return this.expression; } 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 String getReason() { + return this.reason; } - public boolean hasMessageExpression() { - return this.messageExpression != null; + public boolean hasExpression() { + return this.expression != null; } - public String getReason() { - return this.reason; + public boolean hasMessage() { + return this.message != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasMessageExpression() { + return this.messageExpression != null; } 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()); + return Objects.hash(expression, message, messageExpression, reason); } 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); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(messageExpression == null)) { + sb.append("messageExpression:"); + sb.append(messageExpression); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + } sb.append("}"); return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withMessageExpression(String messageExpression) { + this.messageExpression = messageExpression; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + } \ 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 3a129f74d5..6070d53016 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1ValidationRuleBuilder extends V1ValidationRuleFluent implements VisitableBuilder{ + + V1ValidationRuleFluent fluent; + public V1ValidationRuleBuilder() { this(new V1ValidationRule()); } @@ -10,17 +14,16 @@ public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent) { this(fluent, new V1ValidationRule()); } - public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent,V1ValidationRule instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1ValidationRuleBuilder(V1ValidationRule instance) { this.fluent = this; this.copyInstance(instance); } - V1ValidationRuleFluent fluent; + public V1ValidationRuleBuilder(V1ValidationRuleFluent fluent,V1ValidationRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1ValidationRule build() { V1ValidationRule buildable = new V1ValidationRule(); buildable.setFieldPath(fluent.getFieldPath()); @@ -32,5 +35,4 @@ public V1ValidationRule build() { return buildable; } - } \ No newline at end of file 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 ecb3632675..aec59b1c1e 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 @@ -1,153 +1,197 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1ValidationRuleFluent> extends BaseFluent{ - public V1ValidationRuleFluent() { - } - - public V1ValidationRuleFluent(V1ValidationRule instance) { - this.copyInstance(instance); - } +public class V1ValidationRuleFluent> extends BaseFluent{ + private String fieldPath; private String message; private String messageExpression; private Boolean optionalOldSelf; private String reason; private String rule; + + public V1ValidationRuleFluent() { + } + public V1ValidationRuleFluent(V1ValidationRule instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1ValidationRule instance) { - instance = (instance != null ? instance : new V1ValidationRule()); + instance = instance != null ? instance : new V1ValidationRule(); if (instance != null) { - this.withFieldPath(instance.getFieldPath()); - this.withMessage(instance.getMessage()); - this.withMessageExpression(instance.getMessageExpression()); - this.withOptionalOldSelf(instance.getOptionalOldSelf()); - this.withReason(instance.getReason()); - this.withRule(instance.getRule()); - } - } - - public String getFieldPath() { - return this.fieldPath; + this.withFieldPath(instance.getFieldPath()); + this.withMessage(instance.getMessage()); + this.withMessageExpression(instance.getMessageExpression()); + this.withOptionalOldSelf(instance.getOptionalOldSelf()); + this.withReason(instance.getReason()); + this.withRule(instance.getRule()); + } } - public A withFieldPath(String fieldPath) { - this.fieldPath = fieldPath; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ValidationRuleFluent that = (V1ValidationRuleFluent) o; + if (!(Objects.equals(fieldPath, that.fieldPath))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(messageExpression, that.messageExpression))) { + return false; + } + if (!(Objects.equals(optionalOldSelf, that.optionalOldSelf))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(rule, that.rule))) { + return false; + } + return true; } - public boolean hasFieldPath() { - return this.fieldPath != null; + public String getFieldPath() { + return this.fieldPath; } 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 Boolean getOptionalOldSelf() { return this.optionalOldSelf; } - public A withOptionalOldSelf(Boolean optionalOldSelf) { - this.optionalOldSelf = optionalOldSelf; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasOptionalOldSelf() { - return this.optionalOldSelf != null; + public String getRule() { + return this.rule; } - public String getReason() { - return this.reason; + public boolean hasFieldPath() { + return this.fieldPath != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasMessage() { + return this.message != null; } - public boolean hasReason() { - return this.reason != null; + public boolean hasMessageExpression() { + return this.messageExpression != null; } - public String getRule() { - return this.rule; + public boolean hasOptionalOldSelf() { + return this.optionalOldSelf != null; } - public A withRule(String rule) { - this.rule = rule; - return (A) this; + public boolean hasReason() { + return this.reason != null; } public boolean hasRule() { return this.rule != 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; - V1ValidationRuleFluent that = (V1ValidationRuleFluent) 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, optionalOldSelf, reason, rule, super.hashCode()); + return Objects.hash(fieldPath, message, messageExpression, optionalOldSelf, reason, rule); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - 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); } + if (!(fieldPath == null)) { + sb.append("fieldPath:"); + sb.append(fieldPath); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(messageExpression == null)) { + sb.append("messageExpression:"); + sb.append(messageExpression); + sb.append(","); + } + if (!(optionalOldSelf == null)) { + sb.append("optionalOldSelf:"); + sb.append(optionalOldSelf); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(rule == null)) { + sb.append("rule:"); + sb.append(rule); + } sb.append("}"); return sb.toString(); } + public A withFieldPath(String fieldPath) { + this.fieldPath = fieldPath; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withMessageExpression(String messageExpression) { + this.messageExpression = messageExpression; + return (A) this; + } + public A withOptionalOldSelf() { return withOptionalOldSelf(true); } - + public A withOptionalOldSelf(Boolean optionalOldSelf) { + this.optionalOldSelf = optionalOldSelf; + return (A) this; + } + + public A withReason(String reason) { + this.reason = reason; + return (A) this; + } + + public A withRule(String rule) { + this.rule = rule; + return (A) this; + } + } \ 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 index 694bdf8756..dd3127da0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VariableBuilder extends V1VariableFluent implements VisitableBuilder{ + + V1VariableFluent fluent; + public V1VariableBuilder() { this(new V1Variable()); } @@ -10,17 +14,16 @@ 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 V1VariableBuilder(V1VariableFluent fluent,V1Variable instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Variable build() { V1Variable buildable = new V1Variable(); buildable.setExpression(fluent.getExpression()); @@ -28,5 +31,4 @@ public V1Variable build() { 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 index 894efd4dbc..85684635c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VariableFluent> extends BaseFluent{ +public class V1VariableFluent> extends BaseFluent{ + + private String expression; + private String name; + 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()); + instance = instance != null ? instance : new V1Variable(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VariableFluent that = (V1VariableFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasExpression() { - return this.expression != null; + public String getExpression() { + return this.expression; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasExpression() { + return this.expression != null; } 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()); + return Objects.hash(expression, name); } 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); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java index 35c970c661..3fb880f6db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentBuilder extends V1VolumeAttachmentFluent implements VisitableBuilder{ + + V1VolumeAttachmentFluent fluent; + public V1VolumeAttachmentBuilder() { this(new V1VolumeAttachment()); } @@ -10,17 +14,16 @@ public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent) { this(fluent, new V1VolumeAttachment()); } - public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent,V1VolumeAttachment instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentBuilder(V1VolumeAttachment instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentFluent fluent; + public V1VolumeAttachmentBuilder(V1VolumeAttachmentFluent fluent,V1VolumeAttachment instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachment build() { V1VolumeAttachment buildable = new V1VolumeAttachment(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1VolumeAttachment build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java index 20a0865a89..fe80e8d706 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentFluent> extends BaseFluent{ +public class V1VolumeAttachmentFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1VolumeAttachmentSpecBuilder spec; + private V1VolumeAttachmentStatusBuilder status; + public V1VolumeAttachmentFluent() { } public V1VolumeAttachmentFluent(V1VolumeAttachment instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1VolumeAttachmentSpecBuilder spec; - private V1VolumeAttachmentStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1VolumeAttachmentSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1VolumeAttachmentStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1VolumeAttachment instance) { - instance = (instance != null ? instance : new V1VolumeAttachment()); + instance = instance != null ? instance : new V1VolumeAttachment(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1VolumeAttachmentSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1VolumeAttachmentSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1VolumeAttachmentStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1VolumeAttachmentStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeAttachmentFluent that = (V1VolumeAttachmentFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V1VolumeAttachmentSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V1VolumeAttachmentSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V1VolumeAttachmentStatus item) { + return new StatusNested(item); } public A withSpec(V1VolumeAttachmentSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V1VolumeAttachmentSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1VolumeAttachmentSpec 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 V1VolumeAttachmentSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1VolumeAttachmentSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1VolumeAttachmentStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1VolumeAttachmentStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V1VolumeAttachmentStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1VolumeAttachmentStatus 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 V1VolumeAttachmentStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1VolumeAttachmentStatus 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; - V1VolumeAttachmentFluent that = (V1VolumeAttachmentFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1VolumeAttachmentFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1VolumeAttachmentSpecFluent> implements Nested{ + + V1VolumeAttachmentSpecBuilder builder; + SpecNested(V1VolumeAttachmentSpec item) { this.builder = new V1VolumeAttachmentSpecBuilder(this, item); } - V1VolumeAttachmentSpecBuilder builder; - + public N and() { return (N) V1VolumeAttachmentFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V1VolumeAttachmentStatusFluent> implements Nested{ + + V1VolumeAttachmentStatusBuilder builder; + StatusNested(V1VolumeAttachmentStatus item) { this.builder = new V1VolumeAttachmentStatusBuilder(this, item); } - V1VolumeAttachmentStatusBuilder builder; - + public N and() { return (N) V1VolumeAttachmentFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java index b7b2ba6861..a98edbf2e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentListBuilder extends V1VolumeAttachmentListFluent implements VisitableBuilder{ + + V1VolumeAttachmentListFluent fluent; + public V1VolumeAttachmentListBuilder() { this(new V1VolumeAttachmentList()); } @@ -10,17 +14,16 @@ public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent) { this(fluent, new V1VolumeAttachmentList()); } - public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent,V1VolumeAttachmentList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentListBuilder(V1VolumeAttachmentList instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentListFluent fluent; + public V1VolumeAttachmentListBuilder(V1VolumeAttachmentListFluent fluent,V1VolumeAttachmentList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachmentList build() { V1VolumeAttachmentList buildable = new V1VolumeAttachmentList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1VolumeAttachmentList build() { return buildable; } - } \ 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..9aeac1fd5e 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentListFluent> extends BaseFluent{ +public class V1VolumeAttachmentListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1VolumeAttachmentListFluent() { } public V1VolumeAttachmentListFluent(V1VolumeAttachmentList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1VolumeAttachmentList instance) { - instance = (instance != null ? instance : new V1VolumeAttachmentList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1VolumeAttachment item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1VolumeAttachment... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1VolumeAttachment item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1VolumeAttachment buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1VolumeAttachment buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { - if (this.items == null) return (A)this; - for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1VolumeAttachment buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1VolumeAttachment item : items) {V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1VolumeAttachment buildMatchingItem(Predicate predicate) { + for (V1VolumeAttachmentBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1VolumeAttachmentBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1VolumeAttachmentList instance) { + instance = instance != null ? instance : new V1VolumeAttachmentList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1VolumeAttachment buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1VolumeAttachment buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1VolumeAttachment buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeAttachmentListFluent that = (V1VolumeAttachmentListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1VolumeAttachment buildMatchingItem(Predicate predicate) { - for (V1VolumeAttachmentBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicate) { return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1VolumeAttachment... items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttachment item : items) { + V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1VolumeAttachmentBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1VolumeAttachment item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... items) { + public A withItems(V1VolumeAttachment... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1VolumeAttachment... ite return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1VolumeAttachment item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1VolumeAttachment 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1VolumeAttachmentFluent> implements Nested{ - 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; - V1VolumeAttachmentListFluent that = (V1VolumeAttachmentListFluent) 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()); - } + V1VolumeAttachmentBuilder builder; + int index; - 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 V1VolumeAttachmentFluent> implements Nested{ ItemsNested(int index,V1VolumeAttachment item) { this.index = index; this.builder = new V1VolumeAttachmentBuilder(this, item); } - V1VolumeAttachmentBuilder builder; - int index; - + public N and() { - return (N) V1VolumeAttachmentListFluent.this.setToItems(index,builder.build()); + return (N) V1VolumeAttachmentListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1VolumeAttachmentListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java index 12d76d24d5..033cf77465 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentSourceBuilder extends V1VolumeAttachmentSourceFluent implements VisitableBuilder{ + + V1VolumeAttachmentSourceFluent fluent; + public V1VolumeAttachmentSourceBuilder() { this(new V1VolumeAttachmentSource()); } @@ -10,17 +14,16 @@ public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent) this(fluent, new V1VolumeAttachmentSource()); } - public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent,V1VolumeAttachmentSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSource instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentSourceFluent fluent; + public V1VolumeAttachmentSourceBuilder(V1VolumeAttachmentSourceFluent fluent,V1VolumeAttachmentSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachmentSource build() { V1VolumeAttachmentSource buildable = new V1VolumeAttachmentSource(); buildable.setInlineVolumeSpec(fluent.buildInlineVolumeSpec()); @@ -28,5 +31,4 @@ public V1VolumeAttachmentSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java index d67efbaa57..d5eeb7d79a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentSourceFluent> extends BaseFluent{ +public class V1VolumeAttachmentSourceFluent> extends BaseFluent{ + + private V1PersistentVolumeSpecBuilder inlineVolumeSpec; + private String persistentVolumeName; + public V1VolumeAttachmentSourceFluent() { } public V1VolumeAttachmentSourceFluent(V1VolumeAttachmentSource instance) { this.copyInstance(instance); } - private V1PersistentVolumeSpecBuilder inlineVolumeSpec; - private String persistentVolumeName; - - protected void copyInstance(V1VolumeAttachmentSource instance) { - instance = (instance != null ? instance : new V1VolumeAttachmentSource()); - if (instance != null) { - this.withInlineVolumeSpec(instance.getInlineVolumeSpec()); - this.withPersistentVolumeName(instance.getPersistentVolumeName()); - } - } - + public V1PersistentVolumeSpec buildInlineVolumeSpec() { return this.inlineVolumeSpec != null ? this.inlineVolumeSpec.build() : null; } - public A withInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { - this._visitables.remove("inlineVolumeSpec"); - if (inlineVolumeSpec != null) { - this.inlineVolumeSpec = new V1PersistentVolumeSpecBuilder(inlineVolumeSpec); - this._visitables.get("inlineVolumeSpec").add(this.inlineVolumeSpec); - } else { - this.inlineVolumeSpec = null; - this._visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); + protected void copyInstance(V1VolumeAttachmentSource instance) { + instance = instance != null ? instance : new V1VolumeAttachmentSource(); + if (instance != null) { + this.withInlineVolumeSpec(instance.getInlineVolumeSpec()); + this.withPersistentVolumeName(instance.getPersistentVolumeName()); } - return (A) this; - } - - public boolean hasInlineVolumeSpec() { - return this.inlineVolumeSpec != null; - } - - public InlineVolumeSpecNested withNewInlineVolumeSpec() { - return new InlineVolumeSpecNested(null); - } - - public InlineVolumeSpecNested withNewInlineVolumeSpecLike(V1PersistentVolumeSpec item) { - return new InlineVolumeSpecNested(item); } public InlineVolumeSpecNested editInlineVolumeSpec() { - return withNewInlineVolumeSpecLike(java.util.Optional.ofNullable(buildInlineVolumeSpec()).orElse(null)); + return this.withNewInlineVolumeSpecLike(Optional.ofNullable(this.buildInlineVolumeSpec()).orElse(null)); } public InlineVolumeSpecNested editOrNewInlineVolumeSpec() { - return withNewInlineVolumeSpecLike(java.util.Optional.ofNullable(buildInlineVolumeSpec()).orElse(new V1PersistentVolumeSpecBuilder().build())); + return this.withNewInlineVolumeSpecLike(Optional.ofNullable(this.buildInlineVolumeSpec()).orElse(new V1PersistentVolumeSpecBuilder().build())); } public InlineVolumeSpecNested editOrNewInlineVolumeSpecLike(V1PersistentVolumeSpec item) { - return withNewInlineVolumeSpecLike(java.util.Optional.ofNullable(buildInlineVolumeSpec()).orElse(item)); + return this.withNewInlineVolumeSpecLike(Optional.ofNullable(this.buildInlineVolumeSpec()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeAttachmentSourceFluent that = (V1VolumeAttachmentSourceFluent) o; + if (!(Objects.equals(inlineVolumeSpec, that.inlineVolumeSpec))) { + return false; + } + if (!(Objects.equals(persistentVolumeName, that.persistentVolumeName))) { + return false; + } + return true; } public String getPersistentVolumeName() { return this.persistentVolumeName; } - public A withPersistentVolumeName(String persistentVolumeName) { - this.persistentVolumeName = persistentVolumeName; - return (A) this; + public boolean hasInlineVolumeSpec() { + return this.inlineVolumeSpec != null; } public boolean hasPersistentVolumeName() { return this.persistentVolumeName != 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; - V1VolumeAttachmentSourceFluent that = (V1VolumeAttachmentSourceFluent) o; - if (!java.util.Objects.equals(inlineVolumeSpec, that.inlineVolumeSpec)) return false; - if (!java.util.Objects.equals(persistentVolumeName, that.persistentVolumeName)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(inlineVolumeSpec, persistentVolumeName, super.hashCode()); + return Objects.hash(inlineVolumeSpec, persistentVolumeName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (inlineVolumeSpec != null) { sb.append("inlineVolumeSpec:"); sb.append(inlineVolumeSpec + ","); } - if (persistentVolumeName != null) { sb.append("persistentVolumeName:"); sb.append(persistentVolumeName); } + if (!(inlineVolumeSpec == null)) { + sb.append("inlineVolumeSpec:"); + sb.append(inlineVolumeSpec); + sb.append(","); + } + if (!(persistentVolumeName == null)) { + sb.append("persistentVolumeName:"); + sb.append(persistentVolumeName); + } sb.append("}"); return sb.toString(); } + + public A withInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + this._visitables.remove("inlineVolumeSpec"); + if (inlineVolumeSpec != null) { + this.inlineVolumeSpec = new V1PersistentVolumeSpecBuilder(inlineVolumeSpec); + this._visitables.get("inlineVolumeSpec").add(this.inlineVolumeSpec); + } else { + this.inlineVolumeSpec = null; + this._visitables.get("inlineVolumeSpec").remove(this.inlineVolumeSpec); + } + return (A) this; + } + + public InlineVolumeSpecNested withNewInlineVolumeSpec() { + return new InlineVolumeSpecNested(null); + } + + public InlineVolumeSpecNested withNewInlineVolumeSpecLike(V1PersistentVolumeSpec item) { + return new InlineVolumeSpecNested(item); + } + + public A withPersistentVolumeName(String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; + return (A) this; + } public class InlineVolumeSpecNested extends V1PersistentVolumeSpecFluent> implements Nested{ + + V1PersistentVolumeSpecBuilder builder; + InlineVolumeSpecNested(V1PersistentVolumeSpec item) { this.builder = new V1PersistentVolumeSpecBuilder(this, item); } - V1PersistentVolumeSpecBuilder builder; - + public N and() { return (N) V1VolumeAttachmentSourceFluent.this.withInlineVolumeSpec(builder.build()); } @@ -117,7 +141,5 @@ public N endInlineVolumeSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java index 7197b4c7be..03d44d5155 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentSpecBuilder extends V1VolumeAttachmentSpecFluent implements VisitableBuilder{ + + V1VolumeAttachmentSpecFluent fluent; + public V1VolumeAttachmentSpecBuilder() { this(new V1VolumeAttachmentSpec()); } @@ -10,17 +14,16 @@ public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent) { this(fluent, new V1VolumeAttachmentSpec()); } - public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent,V1VolumeAttachmentSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentSpecFluent fluent; + public V1VolumeAttachmentSpecBuilder(V1VolumeAttachmentSpecFluent fluent,V1VolumeAttachmentSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachmentSpec build() { V1VolumeAttachmentSpec buildable = new V1VolumeAttachmentSpec(); buildable.setAttacher(fluent.getAttacher()); @@ -29,5 +32,4 @@ public V1VolumeAttachmentSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java index d8da50566d..6934abdfff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java @@ -1,79 +1,127 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentSpecFluent> extends BaseFluent{ +public class V1VolumeAttachmentSpecFluent> extends BaseFluent{ + + private String attacher; + private String nodeName; + private V1VolumeAttachmentSourceBuilder source; + public V1VolumeAttachmentSpecFluent() { } public V1VolumeAttachmentSpecFluent(V1VolumeAttachmentSpec instance) { this.copyInstance(instance); } - private String attacher; - private String nodeName; - private V1VolumeAttachmentSourceBuilder source; + + public V1VolumeAttachmentSource buildSource() { + return this.source != null ? this.source.build() : null; + } protected void copyInstance(V1VolumeAttachmentSpec instance) { - instance = (instance != null ? instance : new V1VolumeAttachmentSpec()); + instance = instance != null ? instance : new V1VolumeAttachmentSpec(); if (instance != null) { - this.withAttacher(instance.getAttacher()); - this.withNodeName(instance.getNodeName()); - this.withSource(instance.getSource()); - } + this.withAttacher(instance.getAttacher()); + this.withNodeName(instance.getNodeName()); + this.withSource(instance.getSource()); + } } - public String getAttacher() { - return this.attacher; + public SourceNested editOrNewSource() { + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(new V1VolumeAttachmentSourceBuilder().build())); } - public A withAttacher(String attacher) { - this.attacher = attacher; - return (A) this; + public SourceNested editOrNewSourceLike(V1VolumeAttachmentSource item) { + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(item)); } - public boolean hasAttacher() { - return this.attacher != null; + public SourceNested editSource() { + return this.withNewSourceLike(Optional.ofNullable(this.buildSource()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeAttachmentSpecFluent that = (V1VolumeAttachmentSpecFluent) o; + if (!(Objects.equals(attacher, that.attacher))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } + return true; + } + + public String getAttacher() { + return this.attacher; } public String getNodeName() { return this.nodeName; } - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; + public boolean hasAttacher() { + return this.attacher != null; } public boolean hasNodeName() { return this.nodeName != null; } - public V1VolumeAttachmentSource buildSource() { - return this.source != null ? this.source.build() : null; + public boolean hasSource() { + return this.source != null; } - public A withSource(V1VolumeAttachmentSource source) { - this._visitables.remove("source"); - if (source != null) { - this.source = new V1VolumeAttachmentSourceBuilder(source); - this._visitables.get("source").add(this.source); - } else { - this.source = null; - this._visitables.get("source").remove(this.source); + public int hashCode() { + return Objects.hash(attacher, nodeName, source); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(attacher == null)) { + sb.append("attacher:"); + sb.append(attacher); + sb.append(","); } - return (A) this; + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + } + sb.append("}"); + return sb.toString(); } - public boolean hasSource() { - return this.source != null; + public A withAttacher(String attacher) { + this.attacher = attacher; + return (A) this; } public SourceNested withNewSource() { @@ -84,48 +132,30 @@ public SourceNested withNewSourceLike(V1VolumeAttachmentSource 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 V1VolumeAttachmentSourceBuilder().build())); - } - - public SourceNested editOrNewSourceLike(V1VolumeAttachmentSource item) { - return withNewSourceLike(java.util.Optional.ofNullable(buildSource()).orElse(item)); + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1VolumeAttachmentSpecFluent that = (V1VolumeAttachmentSpecFluent) o; - if (!java.util.Objects.equals(attacher, that.attacher)) return false; - if (!java.util.Objects.equals(nodeName, that.nodeName)) return false; - if (!java.util.Objects.equals(source, that.source)) return false; - return true; + public A withSource(V1VolumeAttachmentSource source) { + this._visitables.remove("source"); + if (source != null) { + this.source = new V1VolumeAttachmentSourceBuilder(source); + this._visitables.get("source").add(this.source); + } else { + this.source = null; + this._visitables.get("source").remove(this.source); + } + return (A) this; } + public class SourceNested extends V1VolumeAttachmentSourceFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(attacher, nodeName, source, super.hashCode()); - } + V1VolumeAttachmentSourceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (attacher != null) { sb.append("attacher:"); sb.append(attacher + ","); } - if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName + ","); } - if (source != null) { sb.append("source:"); sb.append(source); } - sb.append("}"); - return sb.toString(); - } - public class SourceNested extends V1VolumeAttachmentSourceFluent> implements Nested{ SourceNested(V1VolumeAttachmentSource item) { this.builder = new V1VolumeAttachmentSourceBuilder(this, item); } - V1VolumeAttachmentSourceBuilder builder; - + public N and() { return (N) V1VolumeAttachmentSpecFluent.this.withSource(builder.build()); } @@ -134,7 +164,5 @@ public N endSource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java index 726e0dd25b..cb4f119c05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeAttachmentStatusBuilder extends V1VolumeAttachmentStatusFluent implements VisitableBuilder{ + + V1VolumeAttachmentStatusFluent fluent; + public V1VolumeAttachmentStatusBuilder() { this(new V1VolumeAttachmentStatus()); } @@ -10,17 +14,16 @@ public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent) this(fluent, new V1VolumeAttachmentStatus()); } - public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent,V1VolumeAttachmentStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeAttachmentStatusFluent fluent; + public V1VolumeAttachmentStatusBuilder(V1VolumeAttachmentStatusFluent fluent,V1VolumeAttachmentStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeAttachmentStatus build() { V1VolumeAttachmentStatus buildable = new V1VolumeAttachmentStatus(); buildable.setAttachError(fluent.buildAttachError()); @@ -30,5 +33,4 @@ public V1VolumeAttachmentStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java index f769096049..64cb478ca4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java @@ -1,132 +1,229 @@ 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.Boolean; +import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Object; -import java.lang.Boolean; import java.util.Map; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeAttachmentStatusFluent> extends BaseFluent{ +public class V1VolumeAttachmentStatusFluent> extends BaseFluent{ + + private V1VolumeErrorBuilder attachError; + private Boolean attached; + private Map attachmentMetadata; + private V1VolumeErrorBuilder detachError; + public V1VolumeAttachmentStatusFluent() { } public V1VolumeAttachmentStatusFluent(V1VolumeAttachmentStatus instance) { this.copyInstance(instance); } - private V1VolumeErrorBuilder attachError; - private Boolean attached; - private Map attachmentMetadata; - private V1VolumeErrorBuilder detachError; + + public A addToAttachmentMetadata(Map map) { + if (this.attachmentMetadata == null && map != null) { + this.attachmentMetadata = new LinkedHashMap(); + } + if (map != null) { + this.attachmentMetadata.putAll(map); + } + return (A) this; + } - protected void copyInstance(V1VolumeAttachmentStatus instance) { - instance = (instance != null ? instance : new V1VolumeAttachmentStatus()); - if (instance != null) { - this.withAttachError(instance.getAttachError()); - this.withAttached(instance.getAttached()); - this.withAttachmentMetadata(instance.getAttachmentMetadata()); - this.withDetachError(instance.getDetachError()); - } + public A addToAttachmentMetadata(String key,String value) { + if (this.attachmentMetadata == null && key != null && value != null) { + this.attachmentMetadata = new LinkedHashMap(); + } + if (key != null && value != null) { + this.attachmentMetadata.put(key, value); + } + return (A) this; } public V1VolumeError buildAttachError() { return this.attachError != null ? this.attachError.build() : null; } - public A withAttachError(V1VolumeError attachError) { - this._visitables.remove("attachError"); - if (attachError != null) { - this.attachError = new V1VolumeErrorBuilder(attachError); - this._visitables.get("attachError").add(this.attachError); - } else { - this.attachError = null; - this._visitables.get("attachError").remove(this.attachError); + public V1VolumeError buildDetachError() { + return this.detachError != null ? this.detachError.build() : null; + } + + protected void copyInstance(V1VolumeAttachmentStatus instance) { + instance = instance != null ? instance : new V1VolumeAttachmentStatus(); + if (instance != null) { + this.withAttachError(instance.getAttachError()); + this.withAttached(instance.getAttached()); + this.withAttachmentMetadata(instance.getAttachmentMetadata()); + this.withDetachError(instance.getDetachError()); } - return (A) this; } - public boolean hasAttachError() { - return this.attachError != null; + public AttachErrorNested editAttachError() { + return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(null)); } - public AttachErrorNested withNewAttachError() { - return new AttachErrorNested(null); + public DetachErrorNested editDetachError() { + return this.withNewDetachErrorLike(Optional.ofNullable(this.buildDetachError()).orElse(null)); } - public AttachErrorNested withNewAttachErrorLike(V1VolumeError item) { - return new AttachErrorNested(item); + public AttachErrorNested editOrNewAttachError() { + return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(new V1VolumeErrorBuilder().build())); } - public AttachErrorNested editAttachError() { - return withNewAttachErrorLike(java.util.Optional.ofNullable(buildAttachError()).orElse(null)); + public AttachErrorNested editOrNewAttachErrorLike(V1VolumeError item) { + return this.withNewAttachErrorLike(Optional.ofNullable(this.buildAttachError()).orElse(item)); } - public AttachErrorNested editOrNewAttachError() { - return withNewAttachErrorLike(java.util.Optional.ofNullable(buildAttachError()).orElse(new V1VolumeErrorBuilder().build())); + public DetachErrorNested editOrNewDetachError() { + return this.withNewDetachErrorLike(Optional.ofNullable(this.buildDetachError()).orElse(new V1VolumeErrorBuilder().build())); } - public AttachErrorNested editOrNewAttachErrorLike(V1VolumeError item) { - return withNewAttachErrorLike(java.util.Optional.ofNullable(buildAttachError()).orElse(item)); + public DetachErrorNested editOrNewDetachErrorLike(V1VolumeError item) { + return this.withNewDetachErrorLike(Optional.ofNullable(this.buildDetachError()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeAttachmentStatusFluent that = (V1VolumeAttachmentStatusFluent) o; + if (!(Objects.equals(attachError, that.attachError))) { + return false; + } + if (!(Objects.equals(attached, that.attached))) { + return false; + } + if (!(Objects.equals(attachmentMetadata, that.attachmentMetadata))) { + return false; + } + if (!(Objects.equals(detachError, that.detachError))) { + return false; + } + return true; } public Boolean getAttached() { return this.attached; } - public A withAttached(Boolean attached) { - this.attached = attached; - return (A) this; + public Map getAttachmentMetadata() { + return this.attachmentMetadata; + } + + public boolean hasAttachError() { + return this.attachError != null; } public boolean hasAttached() { return this.attached != null; } - public A addToAttachmentMetadata(String key,String value) { - if(this.attachmentMetadata == null && key != null && value != null) { this.attachmentMetadata = new LinkedHashMap(); } - if(key != null && value != null) {this.attachmentMetadata.put(key, value);} return (A)this; + public boolean hasAttachmentMetadata() { + return this.attachmentMetadata != null; } - public A addToAttachmentMetadata(Map map) { - if(this.attachmentMetadata == null && map != null) { this.attachmentMetadata = new LinkedHashMap(); } - if(map != null) { this.attachmentMetadata.putAll(map);} return (A)this; + public boolean hasDetachError() { + return this.detachError != null; + } + + public int hashCode() { + return Objects.hash(attachError, attached, attachmentMetadata, detachError); } public A removeFromAttachmentMetadata(String key) { - if(this.attachmentMetadata == null) { return (A) this; } - if(key != null && this.attachmentMetadata != null) {this.attachmentMetadata.remove(key);} return (A)this; + if (this.attachmentMetadata == null) { + return (A) this; + } + if (key != null && this.attachmentMetadata != null) { + this.attachmentMetadata.remove(key); + } + return (A) this; } public A removeFromAttachmentMetadata(Map map) { - if(this.attachmentMetadata == null) { return (A) this; } - if(map != null) { for(Object key : map.keySet()) {if (this.attachmentMetadata != null){this.attachmentMetadata.remove(key);}}} return (A)this; + if (this.attachmentMetadata == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.attachmentMetadata != null) { + this.attachmentMetadata.remove(key); + } + } + } + return (A) this; } - public Map getAttachmentMetadata() { - return this.attachmentMetadata; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(attachError == null)) { + sb.append("attachError:"); + sb.append(attachError); + sb.append(","); + } + if (!(attached == null)) { + sb.append("attached:"); + sb.append(attached); + sb.append(","); + } + if (!(attachmentMetadata == null) && !(attachmentMetadata.isEmpty())) { + sb.append("attachmentMetadata:"); + sb.append(attachmentMetadata); + sb.append(","); + } + if (!(detachError == null)) { + sb.append("detachError:"); + sb.append(detachError); + } + sb.append("}"); + return sb.toString(); } - public A withAttachmentMetadata(Map attachmentMetadata) { - if (attachmentMetadata == null) { - this.attachmentMetadata = null; + public A withAttachError(V1VolumeError attachError) { + this._visitables.remove("attachError"); + if (attachError != null) { + this.attachError = new V1VolumeErrorBuilder(attachError); + this._visitables.get("attachError").add(this.attachError); } else { - this.attachmentMetadata = new LinkedHashMap(attachmentMetadata); + this.attachError = null; + this._visitables.get("attachError").remove(this.attachError); } return (A) this; } - public boolean hasAttachmentMetadata() { - return this.attachmentMetadata != null; + public A withAttached() { + return withAttached(true); } - public V1VolumeError buildDetachError() { - return this.detachError != null ? this.detachError.build() : null; + public A withAttached(Boolean attached) { + this.attached = attached; + return (A) this; + } + + public A withAttachmentMetadata(Map attachmentMetadata) { + if (attachmentMetadata == null) { + this.attachmentMetadata = null; + } else { + this.attachmentMetadata = new LinkedHashMap(attachmentMetadata); + } + return (A) this; } public A withDetachError(V1VolumeError detachError) { @@ -141,8 +238,12 @@ public A withDetachError(V1VolumeError detachError) { return (A) this; } - public boolean hasDetachError() { - return this.detachError != null; + public AttachErrorNested withNewAttachError() { + return new AttachErrorNested(null); + } + + public AttachErrorNested withNewAttachErrorLike(V1VolumeError item) { + return new AttachErrorNested(item); } public DetachErrorNested withNewDetachError() { @@ -152,55 +253,14 @@ public DetachErrorNested withNewDetachError() { public DetachErrorNested withNewDetachErrorLike(V1VolumeError item) { return new DetachErrorNested(item); } + public class AttachErrorNested extends V1VolumeErrorFluent> implements Nested{ - public DetachErrorNested editDetachError() { - return withNewDetachErrorLike(java.util.Optional.ofNullable(buildDetachError()).orElse(null)); - } - - public DetachErrorNested editOrNewDetachError() { - return withNewDetachErrorLike(java.util.Optional.ofNullable(buildDetachError()).orElse(new V1VolumeErrorBuilder().build())); - } - - public DetachErrorNested editOrNewDetachErrorLike(V1VolumeError item) { - return withNewDetachErrorLike(java.util.Optional.ofNullable(buildDetachError()).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; - V1VolumeAttachmentStatusFluent that = (V1VolumeAttachmentStatusFluent) o; - if (!java.util.Objects.equals(attachError, that.attachError)) return false; - if (!java.util.Objects.equals(attached, that.attached)) return false; - if (!java.util.Objects.equals(attachmentMetadata, that.attachmentMetadata)) return false; - if (!java.util.Objects.equals(detachError, that.detachError)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(attachError, attached, attachmentMetadata, detachError, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (attachError != null) { sb.append("attachError:"); sb.append(attachError + ","); } - if (attached != null) { sb.append("attached:"); sb.append(attached + ","); } - if (attachmentMetadata != null && !attachmentMetadata.isEmpty()) { sb.append("attachmentMetadata:"); sb.append(attachmentMetadata + ","); } - if (detachError != null) { sb.append("detachError:"); sb.append(detachError); } - sb.append("}"); - return sb.toString(); - } + V1VolumeErrorBuilder builder; - public A withAttached() { - return withAttached(true); - } - public class AttachErrorNested extends V1VolumeErrorFluent> implements Nested{ AttachErrorNested(V1VolumeError item) { this.builder = new V1VolumeErrorBuilder(this, item); } - V1VolumeErrorBuilder builder; - + public N and() { return (N) V1VolumeAttachmentStatusFluent.this.withAttachError(builder.build()); } @@ -209,14 +269,15 @@ public N endAttachError() { return and(); } - } public class DetachErrorNested extends V1VolumeErrorFluent> implements Nested{ + + V1VolumeErrorBuilder builder; + DetachErrorNested(V1VolumeError item) { this.builder = new V1VolumeErrorBuilder(this, item); } - V1VolumeErrorBuilder builder; - + public N and() { return (N) V1VolumeAttachmentStatusFluent.this.withDetachError(builder.build()); } @@ -225,7 +286,5 @@ public N endDetachError() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java new file mode 100644 index 0000000000..97e97b6265 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1VolumeAttributesClassBuilder extends V1VolumeAttributesClassFluent implements VisitableBuilder{ + + V1VolumeAttributesClassFluent fluent; + + public V1VolumeAttributesClassBuilder() { + this(new V1VolumeAttributesClass()); + } + + public V1VolumeAttributesClassBuilder(V1VolumeAttributesClassFluent fluent) { + this(fluent, new V1VolumeAttributesClass()); + } + + public V1VolumeAttributesClassBuilder(V1VolumeAttributesClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1VolumeAttributesClassBuilder(V1VolumeAttributesClassFluent fluent,V1VolumeAttributesClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VolumeAttributesClass build() { + V1VolumeAttributesClass buildable = new V1VolumeAttributesClass(); + 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/V1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java new file mode 100644 index 0000000000..875b05db44 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java @@ -0,0 +1,264 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1VolumeAttributesClassFluent> extends BaseFluent{ + + private String apiVersion; + private String driverName; + private String kind; + private V1ObjectMetaBuilder metadata; + private Map parameters; + + public V1VolumeAttributesClassFluent() { + } + + public V1VolumeAttributesClassFluent(V1VolumeAttributesClass instance) { + this.copyInstance(instance); + } + + 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 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 V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1VolumeAttributesClass instance) { + instance = instance != null ? instance : new V1VolumeAttributesClass(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withDriverName(instance.getDriverName()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withParameters(instance.getParameters()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeAttributesClassFluent that = (V1VolumeAttributesClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(driverName, that.driverName))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getDriverName() { + return this.driverName; + } + + public String getKind() { + return this.kind; + } + + public Map getParameters() { + return this.parameters; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasDriverName() { + return this.driverName != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(driverName == null)) { + sb.append("driverName:"); + sb.append(driverName); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(parameters == null) && !(parameters.isEmpty())) { + sb.append("parameters:"); + sb.append(parameters); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withDriverName(String driverName) { + this.driverName = driverName; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withParameters(Map parameters) { + if (parameters == null) { + this.parameters = null; + } else { + this.parameters = new LinkedHashMap(parameters); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1VolumeAttributesClassFluent.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/V1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java new file mode 100644 index 0000000000..01f95f23ca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1VolumeAttributesClassListBuilder extends V1VolumeAttributesClassListFluent implements VisitableBuilder{ + + V1VolumeAttributesClassListFluent fluent; + + public V1VolumeAttributesClassListBuilder() { + this(new V1VolumeAttributesClassList()); + } + + public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassListFluent fluent) { + this(fluent, new V1VolumeAttributesClassList()); + } + + public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1VolumeAttributesClassListBuilder(V1VolumeAttributesClassListFluent fluent,V1VolumeAttributesClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VolumeAttributesClassList build() { + V1VolumeAttributesClassList buildable = new V1VolumeAttributesClassList(); + 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/V1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java new file mode 100644 index 0000000000..c318a5961a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1VolumeAttributesClassListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1VolumeAttributesClassListFluent() { + } + + public V1VolumeAttributesClassListFluent(V1VolumeAttributesClassList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1VolumeAttributesClass item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1VolumeAttributesClass... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1VolumeAttributesClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(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 V1VolumeAttributesClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1VolumeAttributesClass buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1VolumeAttributesClass buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1VolumeAttributesClass buildMatchingItem(Predicate predicate) { + for (V1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1VolumeAttributesClassList instance) { + instance = instance != null ? instance : new V1VolumeAttributesClassList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeAttributesClassListFluent that = (V1VolumeAttributesClassListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1VolumeAttributesClass... items) { + if (this.items == null) { + return (A) this; + } + for (V1VolumeAttributesClass item : items) { + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1VolumeAttributesClassBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1VolumeAttributesClass item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1VolumeAttributesClass item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1VolumeAttributesClass... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1VolumeAttributesClass item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1VolumeAttributesClassFluent> implements Nested{ + + V1VolumeAttributesClassBuilder builder; + int index; + + ItemsNested(int index,V1VolumeAttributesClass item) { + this.index = index; + this.builder = new V1VolumeAttributesClassBuilder(this, item); + } + + public N and() { + return (N) V1VolumeAttributesClassListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1VolumeAttributesClassListFluent.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/V1VolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java index 7a35e97fdc..21173d92cf 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeBuilder extends V1VolumeFluent implements VisitableBuilder{ + + V1VolumeFluent fluent; + public V1VolumeBuilder() { this(new V1Volume()); } @@ -10,17 +14,16 @@ public V1VolumeBuilder(V1VolumeFluent fluent) { this(fluent, new V1Volume()); } - public V1VolumeBuilder(V1VolumeFluent fluent,V1Volume instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeBuilder(V1Volume instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeFluent fluent; + public V1VolumeBuilder(V1VolumeFluent fluent,V1Volume instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1Volume build() { V1Volume buildable = new V1Volume(); buildable.setAwsElasticBlockStore(fluent.buildAwsElasticBlockStore()); @@ -40,6 +43,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()); @@ -56,5 +60,4 @@ public V1Volume build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java index 63e6a29ada..89b8467ca5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeDeviceBuilder extends V1VolumeDeviceFluent implements VisitableBuilder{ + + V1VolumeDeviceFluent fluent; + public V1VolumeDeviceBuilder() { this(new V1VolumeDevice()); } @@ -10,17 +14,16 @@ public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent) { this(fluent, new V1VolumeDevice()); } - public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent,V1VolumeDevice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeDeviceBuilder(V1VolumeDevice instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeDeviceFluent fluent; + public V1VolumeDeviceBuilder(V1VolumeDeviceFluent fluent,V1VolumeDevice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeDevice build() { V1VolumeDevice buildable = new V1VolumeDevice(); buildable.setDevicePath(fluent.getDevicePath()); @@ -28,5 +31,4 @@ public V1VolumeDevice build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java index 497ca8ff08..e975642d2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeDeviceFluent> extends BaseFluent{ +public class V1VolumeDeviceFluent> extends BaseFluent{ + + private String devicePath; + private String name; + public V1VolumeDeviceFluent() { } public V1VolumeDeviceFluent(V1VolumeDevice instance) { this.copyInstance(instance); } - private String devicePath; - private String name; - + protected void copyInstance(V1VolumeDevice instance) { - instance = (instance != null ? instance : new V1VolumeDevice()); + instance = instance != null ? instance : new V1VolumeDevice(); if (instance != null) { - this.withDevicePath(instance.getDevicePath()); - this.withName(instance.getName()); - } + this.withDevicePath(instance.getDevicePath()); + this.withName(instance.getName()); + } } - public String getDevicePath() { - return this.devicePath; - } - - public A withDevicePath(String devicePath) { - this.devicePath = devicePath; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeDeviceFluent that = (V1VolumeDeviceFluent) o; + if (!(Objects.equals(devicePath, that.devicePath))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasDevicePath() { - return this.devicePath != null; + public String getDevicePath() { + return this.devicePath; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasDevicePath() { + return this.devicePath != null; } 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; - V1VolumeDeviceFluent that = (V1VolumeDeviceFluent) o; - if (!java.util.Objects.equals(devicePath, that.devicePath)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(devicePath, name, super.hashCode()); + return Objects.hash(devicePath, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (devicePath != null) { sb.append("devicePath:"); sb.append(devicePath + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(devicePath == null)) { + sb.append("devicePath:"); + sb.append(devicePath); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withDevicePath(String devicePath) { + this.devicePath = devicePath; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file 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..c34d2cfd09 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeErrorBuilder extends V1VolumeErrorFluent implements VisitableBuilder{ + + V1VolumeErrorFluent fluent; + public V1VolumeErrorBuilder() { this(new V1VolumeError()); } @@ -10,23 +14,22 @@ public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent) { this(fluent, new V1VolumeError()); } - public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent,V1VolumeError instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeErrorBuilder(V1VolumeError instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeErrorFluent fluent; + public V1VolumeErrorBuilder(V1VolumeErrorFluent fluent,V1VolumeError instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeError build() { V1VolumeError buildable = new V1VolumeError(); + buildable.setErrorCode(fluent.getErrorCode()); buildable.setMessage(fluent.getMessage()); buildable.setTime(fluent.getTime()); return buildable; } - } \ No newline at end of file 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..bb088f1d64 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,81 +1,125 @@ package io.kubernetes.client.openapi.models; -import java.time.OffsetDateTime; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeErrorFluent> extends BaseFluent{ +public class V1VolumeErrorFluent> extends BaseFluent{ + + private Integer errorCode; + private String message; + private OffsetDateTime time; + public V1VolumeErrorFluent() { } public V1VolumeErrorFluent(V1VolumeError instance) { this.copyInstance(instance); } - private String message; - private OffsetDateTime time; - + protected void copyInstance(V1VolumeError instance) { - instance = (instance != null ? instance : new V1VolumeError()); + instance = instance != null ? instance : new V1VolumeError(); if (instance != null) { - this.withMessage(instance.getMessage()); - this.withTime(instance.getTime()); - } + this.withErrorCode(instance.getErrorCode()); + this.withMessage(instance.getMessage()); + this.withTime(instance.getTime()); + } } - public String getMessage() { - return this.message; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeErrorFluent that = (V1VolumeErrorFluent) o; + if (!(Objects.equals(errorCode, that.errorCode))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(time, that.time))) { + return false; + } + return true; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public Integer getErrorCode() { + return this.errorCode; } - public boolean hasMessage() { - return this.message != null; + public String getMessage() { + return this.message; } public OffsetDateTime getTime() { return this.time; } - public A withTime(OffsetDateTime time) { - this.time = time; - return (A) this; + public boolean hasErrorCode() { + return this.errorCode != null; } - public boolean hasTime() { - return this.time != null; + public boolean hasMessage() { + return this.message != 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; - V1VolumeErrorFluent that = (V1VolumeErrorFluent) o; - if (!java.util.Objects.equals(message, that.message)) return false; - if (!java.util.Objects.equals(time, that.time)) return false; - return true; + public boolean hasTime() { + return this.time != null; } public int hashCode() { - return java.util.Objects.hash(message, time, super.hashCode()); + return Objects.hash(errorCode, message, time); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (message != null) { sb.append("message:"); sb.append(message + ","); } - if (time != null) { sb.append("time:"); sb.append(time); } + if (!(errorCode == null)) { + sb.append("errorCode:"); + sb.append(errorCode); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(time == null)) { + sb.append("time:"); + sb.append(time); + } sb.append("}"); return sb.toString(); } - + public A withErrorCode(Integer errorCode) { + this.errorCode = errorCode; + return (A) this; + } + + public A withMessage(String message) { + this.message = message; + return (A) this; + } + + public A withTime(OffsetDateTime time) { + this.time = time; + return (A) this; + } + } \ No newline at end of file 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..2b3920ff85 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 @@ -1,22 +1,20 @@ package io.kubernetes.client.openapi.models; -import java.lang.String; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeFluent> extends BaseFluent{ - public V1VolumeFluent() { - } - - public V1VolumeFluent(V1Volume instance) { - this.copyInstance(instance); - } +public class V1VolumeFluent> extends BaseFluent{ + private V1AWSElasticBlockStoreVolumeSourceBuilder awsElasticBlockStore; private V1AzureDiskVolumeSourceBuilder azureDisk; private V1AzureFileVolumeSourceBuilder azureFile; @@ -34,6 +32,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; @@ -47,688 +46,1124 @@ public V1VolumeFluent(V1Volume instance) { private V1SecretVolumeSourceBuilder secret; private V1StorageOSVolumeSourceBuilder storageos; private V1VsphereVirtualDiskVolumeSourceBuilder vsphereVolume; - - protected void copyInstance(V1Volume instance) { - instance = (instance != null ? instance : new V1Volume()); - if (instance != null) { - this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); - this.withAzureDisk(instance.getAzureDisk()); - this.withAzureFile(instance.getAzureFile()); - this.withCephfs(instance.getCephfs()); - this.withCinder(instance.getCinder()); - this.withConfigMap(instance.getConfigMap()); - this.withCsi(instance.getCsi()); - this.withDownwardAPI(instance.getDownwardAPI()); - this.withEmptyDir(instance.getEmptyDir()); - this.withEphemeral(instance.getEphemeral()); - this.withFc(instance.getFc()); - this.withFlexVolume(instance.getFlexVolume()); - this.withFlocker(instance.getFlocker()); - this.withGcePersistentDisk(instance.getGcePersistentDisk()); - this.withGitRepo(instance.getGitRepo()); - this.withGlusterfs(instance.getGlusterfs()); - this.withHostPath(instance.getHostPath()); - this.withIscsi(instance.getIscsi()); - this.withName(instance.getName()); - this.withNfs(instance.getNfs()); - this.withPersistentVolumeClaim(instance.getPersistentVolumeClaim()); - this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); - this.withPortworxVolume(instance.getPortworxVolume()); - this.withProjected(instance.getProjected()); - this.withQuobyte(instance.getQuobyte()); - this.withRbd(instance.getRbd()); - this.withScaleIO(instance.getScaleIO()); - this.withSecret(instance.getSecret()); - this.withStorageos(instance.getStorageos()); - this.withVsphereVolume(instance.getVsphereVolume()); - } + + public V1VolumeFluent() { } + public V1VolumeFluent(V1Volume instance) { + this.copyInstance(instance); + } + public V1AWSElasticBlockStoreVolumeSource buildAwsElasticBlockStore() { return this.awsElasticBlockStore != null ? this.awsElasticBlockStore.build() : null; } - public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { - this._visitables.remove("awsElasticBlockStore"); - if (awsElasticBlockStore != null) { - this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); - this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); - } else { - this.awsElasticBlockStore = null; - this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); - } - return (A) this; + public V1AzureDiskVolumeSource buildAzureDisk() { + return this.azureDisk != null ? this.azureDisk.build() : null; } - public boolean hasAwsElasticBlockStore() { - return this.awsElasticBlockStore != null; + public V1AzureFileVolumeSource buildAzureFile() { + return this.azureFile != null ? this.azureFile.build() : null; } - public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { - return new AwsElasticBlockStoreNested(null); + public V1CephFSVolumeSource buildCephfs() { + return this.cephfs != null ? this.cephfs.build() : null; } - public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return new AwsElasticBlockStoreNested(item); + public V1CinderVolumeSource buildCinder() { + return this.cinder != null ? this.cinder.build() : null; } - public AwsElasticBlockStoreNested editAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(null)); + public V1ConfigMapVolumeSource buildConfigMap() { + return this.configMap != null ? this.configMap.build() : null; } - public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); + public V1CSIVolumeSource buildCsi() { + return this.csi != null ? this.csi.build() : null; } - public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { - return withNewAwsElasticBlockStoreLike(java.util.Optional.ofNullable(buildAwsElasticBlockStore()).orElse(item)); + public V1DownwardAPIVolumeSource buildDownwardAPI() { + return this.downwardAPI != null ? this.downwardAPI.build() : null; } - public V1AzureDiskVolumeSource buildAzureDisk() { - return this.azureDisk != null ? this.azureDisk.build() : null; + public V1EmptyDirVolumeSource buildEmptyDir() { + return this.emptyDir != null ? this.emptyDir.build() : null; } - public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { - this._visitables.remove("azureDisk"); - if (azureDisk != null) { - this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); - this._visitables.get("azureDisk").add(this.azureDisk); - } else { - this.azureDisk = null; - this._visitables.get("azureDisk").remove(this.azureDisk); - } - return (A) this; + public V1EphemeralVolumeSource buildEphemeral() { + return this.ephemeral != null ? this.ephemeral.build() : null; } - public boolean hasAzureDisk() { - return this.azureDisk != null; + public V1FCVolumeSource buildFc() { + return this.fc != null ? this.fc.build() : null; } - public AzureDiskNested withNewAzureDisk() { - return new AzureDiskNested(null); + public V1FlexVolumeSource buildFlexVolume() { + return this.flexVolume != null ? this.flexVolume.build() : null; } - public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return new AzureDiskNested(item); + public V1FlockerVolumeSource buildFlocker() { + return this.flocker != null ? this.flocker.build() : null; } - public AzureDiskNested editAzureDisk() { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(null)); + public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { + return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; } - public AzureDiskNested editOrNewAzureDisk() { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); + public V1GitRepoVolumeSource buildGitRepo() { + return this.gitRepo != null ? this.gitRepo.build() : null; } - public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { - return withNewAzureDiskLike(java.util.Optional.ofNullable(buildAzureDisk()).orElse(item)); + public V1GlusterfsVolumeSource buildGlusterfs() { + return this.glusterfs != null ? this.glusterfs.build() : null; } - public V1AzureFileVolumeSource buildAzureFile() { - return this.azureFile != null ? this.azureFile.build() : null; + public V1HostPathVolumeSource buildHostPath() { + return this.hostPath != null ? this.hostPath.build() : null; } - public A withAzureFile(V1AzureFileVolumeSource azureFile) { - this._visitables.remove("azureFile"); - if (azureFile != null) { - this.azureFile = new V1AzureFileVolumeSourceBuilder(azureFile); - this._visitables.get("azureFile").add(this.azureFile); - } else { - this.azureFile = null; - this._visitables.get("azureFile").remove(this.azureFile); - } - return (A) this; + public V1ImageVolumeSource buildImage() { + return this.image != null ? this.image.build() : null; } - public boolean hasAzureFile() { - return this.azureFile != null; + public V1ISCSIVolumeSource buildIscsi() { + return this.iscsi != null ? this.iscsi.build() : null; } - public AzureFileNested withNewAzureFile() { - return new AzureFileNested(null); + public V1NFSVolumeSource buildNfs() { + return this.nfs != null ? this.nfs.build() : null; } - public AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item) { - return new AzureFileNested(item); + public V1PersistentVolumeClaimVolumeSource buildPersistentVolumeClaim() { + return this.persistentVolumeClaim != null ? this.persistentVolumeClaim.build() : null; } - public AzureFileNested editAzureFile() { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(null)); + public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { + return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; } - public AzureFileNested editOrNewAzureFile() { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(new V1AzureFileVolumeSourceBuilder().build())); + public V1PortworxVolumeSource buildPortworxVolume() { + return this.portworxVolume != null ? this.portworxVolume.build() : null; } - public AzureFileNested editOrNewAzureFileLike(V1AzureFileVolumeSource item) { - return withNewAzureFileLike(java.util.Optional.ofNullable(buildAzureFile()).orElse(item)); + public V1ProjectedVolumeSource buildProjected() { + return this.projected != null ? this.projected.build() : null; } - public V1CephFSVolumeSource buildCephfs() { - return this.cephfs != null ? this.cephfs.build() : null; + public V1QuobyteVolumeSource buildQuobyte() { + return this.quobyte != null ? this.quobyte.build() : null; } - public A withCephfs(V1CephFSVolumeSource cephfs) { - this._visitables.remove("cephfs"); - if (cephfs != null) { - this.cephfs = new V1CephFSVolumeSourceBuilder(cephfs); - this._visitables.get("cephfs").add(this.cephfs); - } else { - this.cephfs = null; - this._visitables.get("cephfs").remove(this.cephfs); - } - return (A) this; + public V1RBDVolumeSource buildRbd() { + return this.rbd != null ? this.rbd.build() : null; } - public boolean hasCephfs() { - return this.cephfs != null; + public V1ScaleIOVolumeSource buildScaleIO() { + return this.scaleIO != null ? this.scaleIO.build() : null; } - public CephfsNested withNewCephfs() { - return new CephfsNested(null); + public V1SecretVolumeSource buildSecret() { + return this.secret != null ? this.secret.build() : null; } - public CephfsNested withNewCephfsLike(V1CephFSVolumeSource item) { - return new CephfsNested(item); + public V1StorageOSVolumeSource buildStorageos() { + return this.storageos != null ? this.storageos.build() : null; } - public CephfsNested editCephfs() { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(null)); + public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { + return this.vsphereVolume != null ? this.vsphereVolume.build() : null; } - public CephfsNested editOrNewCephfs() { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(new V1CephFSVolumeSourceBuilder().build())); + protected void copyInstance(V1Volume instance) { + instance = instance != null ? instance : new V1Volume(); + if (instance != null) { + this.withAwsElasticBlockStore(instance.getAwsElasticBlockStore()); + this.withAzureDisk(instance.getAzureDisk()); + this.withAzureFile(instance.getAzureFile()); + this.withCephfs(instance.getCephfs()); + this.withCinder(instance.getCinder()); + this.withConfigMap(instance.getConfigMap()); + this.withCsi(instance.getCsi()); + this.withDownwardAPI(instance.getDownwardAPI()); + this.withEmptyDir(instance.getEmptyDir()); + this.withEphemeral(instance.getEphemeral()); + this.withFc(instance.getFc()); + this.withFlexVolume(instance.getFlexVolume()); + this.withFlocker(instance.getFlocker()); + this.withGcePersistentDisk(instance.getGcePersistentDisk()); + 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()); + this.withPersistentVolumeClaim(instance.getPersistentVolumeClaim()); + this.withPhotonPersistentDisk(instance.getPhotonPersistentDisk()); + this.withPortworxVolume(instance.getPortworxVolume()); + this.withProjected(instance.getProjected()); + this.withQuobyte(instance.getQuobyte()); + this.withRbd(instance.getRbd()); + this.withScaleIO(instance.getScaleIO()); + this.withSecret(instance.getSecret()); + this.withStorageos(instance.getStorageos()); + this.withVsphereVolume(instance.getVsphereVolume()); + } } - public CephfsNested editOrNewCephfsLike(V1CephFSVolumeSource item) { - return withNewCephfsLike(java.util.Optional.ofNullable(buildCephfs()).orElse(item)); + public AwsElasticBlockStoreNested editAwsElasticBlockStore() { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(null)); } - public V1CinderVolumeSource buildCinder() { - return this.cinder != null ? this.cinder.build() : null; + public AzureDiskNested editAzureDisk() { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(null)); } - public A withCinder(V1CinderVolumeSource cinder) { - this._visitables.remove("cinder"); - if (cinder != null) { - this.cinder = new V1CinderVolumeSourceBuilder(cinder); - this._visitables.get("cinder").add(this.cinder); - } else { - this.cinder = null; - this._visitables.get("cinder").remove(this.cinder); - } - return (A) this; + public AzureFileNested editAzureFile() { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(null)); } - public boolean hasCinder() { - return this.cinder != null; + public CephfsNested editCephfs() { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(null)); } - public CinderNested withNewCinder() { - return new CinderNested(null); + public CinderNested editCinder() { + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(null)); } - public CinderNested withNewCinderLike(V1CinderVolumeSource item) { - return new CinderNested(item); + public ConfigMapNested editConfigMap() { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); } - public CinderNested editCinder() { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(null)); + public CsiNested editCsi() { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(null)); } - public CinderNested editOrNewCinder() { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(new V1CinderVolumeSourceBuilder().build())); + public DownwardAPINested editDownwardAPI() { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(null)); } - public CinderNested editOrNewCinderLike(V1CinderVolumeSource item) { - return withNewCinderLike(java.util.Optional.ofNullable(buildCinder()).orElse(item)); + public EmptyDirNested editEmptyDir() { + return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(null)); } - public V1ConfigMapVolumeSource buildConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + public EphemeralNested editEphemeral() { + return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(null)); } - public A withConfigMap(V1ConfigMapVolumeSource configMap) { - this._visitables.remove("configMap"); - if (configMap != null) { - this.configMap = new V1ConfigMapVolumeSourceBuilder(configMap); - this._visitables.get("configMap").add(this.configMap); - } else { - this.configMap = null; - this._visitables.get("configMap").remove(this.configMap); - } - return (A) this; + public FcNested editFc() { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(null)); } - public boolean hasConfigMap() { - return this.configMap != null; + public FlexVolumeNested editFlexVolume() { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(null)); } - public ConfigMapNested withNewConfigMap() { - return new ConfigMapNested(null); + public FlockerNested editFlocker() { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(null)); } - public ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item) { - return new ConfigMapNested(item); + public GcePersistentDiskNested editGcePersistentDisk() { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(null)); } - public ConfigMapNested editConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(null)); + public GitRepoNested editGitRepo() { + return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(null)); } - public ConfigMapNested editOrNewConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(new V1ConfigMapVolumeSourceBuilder().build())); + public GlusterfsNested editGlusterfs() { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(null)); } - public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapVolumeSource item) { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(item)); + public HostPathNested editHostPath() { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(null)); } - public V1CSIVolumeSource buildCsi() { - return this.csi != null ? this.csi.build() : null; + public ImageNested editImage() { + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(null)); } - public A withCsi(V1CSIVolumeSource csi) { - this._visitables.remove("csi"); - if (csi != null) { - this.csi = new V1CSIVolumeSourceBuilder(csi); - this._visitables.get("csi").add(this.csi); - } else { - this.csi = null; - this._visitables.get("csi").remove(this.csi); - } - return (A) this; + public IscsiNested editIscsi() { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(null)); } - public boolean hasCsi() { - return this.csi != null; + public NfsNested editNfs() { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(null)); } - public CsiNested withNewCsi() { - return new CsiNested(null); + public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStore() { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(new V1AWSElasticBlockStoreVolumeSourceBuilder().build())); } - public CsiNested withNewCsiLike(V1CSIVolumeSource item) { - return new CsiNested(item); + public AwsElasticBlockStoreNested editOrNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return this.withNewAwsElasticBlockStoreLike(Optional.ofNullable(this.buildAwsElasticBlockStore()).orElse(item)); } - public CsiNested editCsi() { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(null)); + public AzureDiskNested editOrNewAzureDisk() { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(new V1AzureDiskVolumeSourceBuilder().build())); } - public CsiNested editOrNewCsi() { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(new V1CSIVolumeSourceBuilder().build())); + public AzureDiskNested editOrNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return this.withNewAzureDiskLike(Optional.ofNullable(this.buildAzureDisk()).orElse(item)); } - public CsiNested editOrNewCsiLike(V1CSIVolumeSource item) { - return withNewCsiLike(java.util.Optional.ofNullable(buildCsi()).orElse(item)); + public AzureFileNested editOrNewAzureFile() { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(new V1AzureFileVolumeSourceBuilder().build())); } - public V1DownwardAPIVolumeSource buildDownwardAPI() { - return this.downwardAPI != null ? this.downwardAPI.build() : null; + public AzureFileNested editOrNewAzureFileLike(V1AzureFileVolumeSource item) { + return this.withNewAzureFileLike(Optional.ofNullable(this.buildAzureFile()).orElse(item)); } - public A withDownwardAPI(V1DownwardAPIVolumeSource downwardAPI) { - this._visitables.remove("downwardAPI"); - if (downwardAPI != null) { - this.downwardAPI = new V1DownwardAPIVolumeSourceBuilder(downwardAPI); - this._visitables.get("downwardAPI").add(this.downwardAPI); - } else { - this.downwardAPI = null; - this._visitables.get("downwardAPI").remove(this.downwardAPI); - } - return (A) this; - } - - public boolean hasDownwardAPI() { - return this.downwardAPI != null; - } - - public DownwardAPINested withNewDownwardAPI() { - return new DownwardAPINested(null); - } - - public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIVolumeSource item) { - return new DownwardAPINested(item); + public CephfsNested editOrNewCephfs() { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(new V1CephFSVolumeSourceBuilder().build())); } - public DownwardAPINested editDownwardAPI() { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(null)); + public CephfsNested editOrNewCephfsLike(V1CephFSVolumeSource item) { + return this.withNewCephfsLike(Optional.ofNullable(this.buildCephfs()).orElse(item)); } - public DownwardAPINested editOrNewDownwardAPI() { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(new V1DownwardAPIVolumeSourceBuilder().build())); + public CinderNested editOrNewCinder() { + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(new V1CinderVolumeSourceBuilder().build())); } - public DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIVolumeSource item) { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(item)); + public CinderNested editOrNewCinderLike(V1CinderVolumeSource item) { + return this.withNewCinderLike(Optional.ofNullable(this.buildCinder()).orElse(item)); } - public V1EmptyDirVolumeSource buildEmptyDir() { - return this.emptyDir != null ? this.emptyDir.build() : null; + public ConfigMapNested editOrNewConfigMap() { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(new V1ConfigMapVolumeSourceBuilder().build())); } - public A withEmptyDir(V1EmptyDirVolumeSource emptyDir) { - this._visitables.remove("emptyDir"); - if (emptyDir != null) { - this.emptyDir = new V1EmptyDirVolumeSourceBuilder(emptyDir); - this._visitables.get("emptyDir").add(this.emptyDir); - } else { - this.emptyDir = null; - this._visitables.get("emptyDir").remove(this.emptyDir); - } - return (A) this; + public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapVolumeSource item) { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(item)); } - public boolean hasEmptyDir() { - return this.emptyDir != null; + public CsiNested editOrNewCsi() { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(new V1CSIVolumeSourceBuilder().build())); } - public EmptyDirNested withNewEmptyDir() { - return new EmptyDirNested(null); + public CsiNested editOrNewCsiLike(V1CSIVolumeSource item) { + return this.withNewCsiLike(Optional.ofNullable(this.buildCsi()).orElse(item)); } - public EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item) { - return new EmptyDirNested(item); + public DownwardAPINested editOrNewDownwardAPI() { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(new V1DownwardAPIVolumeSourceBuilder().build())); } - public EmptyDirNested editEmptyDir() { - return withNewEmptyDirLike(java.util.Optional.ofNullable(buildEmptyDir()).orElse(null)); + public DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIVolumeSource item) { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(item)); } public EmptyDirNested editOrNewEmptyDir() { - return withNewEmptyDirLike(java.util.Optional.ofNullable(buildEmptyDir()).orElse(new V1EmptyDirVolumeSourceBuilder().build())); + return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(new V1EmptyDirVolumeSourceBuilder().build())); } public EmptyDirNested editOrNewEmptyDirLike(V1EmptyDirVolumeSource item) { - return withNewEmptyDirLike(java.util.Optional.ofNullable(buildEmptyDir()).orElse(item)); - } - - public V1EphemeralVolumeSource buildEphemeral() { - return this.ephemeral != null ? this.ephemeral.build() : null; - } - - public A withEphemeral(V1EphemeralVolumeSource ephemeral) { - this._visitables.remove("ephemeral"); - if (ephemeral != null) { - this.ephemeral = new V1EphemeralVolumeSourceBuilder(ephemeral); - this._visitables.get("ephemeral").add(this.ephemeral); - } else { - this.ephemeral = null; - this._visitables.get("ephemeral").remove(this.ephemeral); - } - return (A) this; - } - - public boolean hasEphemeral() { - return this.ephemeral != null; - } - - public EphemeralNested withNewEphemeral() { - return new EphemeralNested(null); - } - - public EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item) { - return new EphemeralNested(item); - } - - public EphemeralNested editEphemeral() { - return withNewEphemeralLike(java.util.Optional.ofNullable(buildEphemeral()).orElse(null)); + return this.withNewEmptyDirLike(Optional.ofNullable(this.buildEmptyDir()).orElse(item)); } public EphemeralNested editOrNewEphemeral() { - return withNewEphemeralLike(java.util.Optional.ofNullable(buildEphemeral()).orElse(new V1EphemeralVolumeSourceBuilder().build())); + return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(new V1EphemeralVolumeSourceBuilder().build())); } public EphemeralNested editOrNewEphemeralLike(V1EphemeralVolumeSource item) { - return withNewEphemeralLike(java.util.Optional.ofNullable(buildEphemeral()).orElse(item)); + return this.withNewEphemeralLike(Optional.ofNullable(this.buildEphemeral()).orElse(item)); } - public V1FCVolumeSource buildFc() { - return this.fc != null ? this.fc.build() : null; + public FcNested editOrNewFc() { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); } - public A withFc(V1FCVolumeSource fc) { - this._visitables.remove("fc"); - if (fc != null) { - this.fc = new V1FCVolumeSourceBuilder(fc); - this._visitables.get("fc").add(this.fc); - } else { - this.fc = null; - this._visitables.get("fc").remove(this.fc); - } - return (A) this; + public FcNested editOrNewFcLike(V1FCVolumeSource item) { + return this.withNewFcLike(Optional.ofNullable(this.buildFc()).orElse(item)); } - public boolean hasFc() { - return this.fc != null; + public FlexVolumeNested editOrNewFlexVolume() { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(new V1FlexVolumeSourceBuilder().build())); } - public FcNested withNewFc() { - return new FcNested(null); + public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexVolumeSource item) { + return this.withNewFlexVolumeLike(Optional.ofNullable(this.buildFlexVolume()).orElse(item)); } - public FcNested withNewFcLike(V1FCVolumeSource item) { - return new FcNested(item); + public FlockerNested editOrNewFlocker() { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); } - public FcNested editFc() { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(null)); + public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { + return this.withNewFlockerLike(Optional.ofNullable(this.buildFlocker()).orElse(item)); } - public FcNested editOrNewFc() { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(new V1FCVolumeSourceBuilder().build())); + public GcePersistentDiskNested editOrNewGcePersistentDisk() { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); } - public FcNested editOrNewFcLike(V1FCVolumeSource item) { - return withNewFcLike(java.util.Optional.ofNullable(buildFc()).orElse(item)); + public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return this.withNewGcePersistentDiskLike(Optional.ofNullable(this.buildGcePersistentDisk()).orElse(item)); } - public V1FlexVolumeSource buildFlexVolume() { - return this.flexVolume != null ? this.flexVolume.build() : null; + public GitRepoNested editOrNewGitRepo() { + return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(new V1GitRepoVolumeSourceBuilder().build())); } - public A withFlexVolume(V1FlexVolumeSource flexVolume) { - this._visitables.remove("flexVolume"); - if (flexVolume != null) { - this.flexVolume = new V1FlexVolumeSourceBuilder(flexVolume); - this._visitables.get("flexVolume").add(this.flexVolume); - } else { - this.flexVolume = null; - this._visitables.get("flexVolume").remove(this.flexVolume); - } - return (A) this; + public GitRepoNested editOrNewGitRepoLike(V1GitRepoVolumeSource item) { + return this.withNewGitRepoLike(Optional.ofNullable(this.buildGitRepo()).orElse(item)); } - public boolean hasFlexVolume() { - return this.flexVolume != null; + public GlusterfsNested editOrNewGlusterfs() { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(new V1GlusterfsVolumeSourceBuilder().build())); } - public FlexVolumeNested withNewFlexVolume() { - return new FlexVolumeNested(null); + public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsVolumeSource item) { + return this.withNewGlusterfsLike(Optional.ofNullable(this.buildGlusterfs()).orElse(item)); } - public FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item) { - return new FlexVolumeNested(item); + public HostPathNested editOrNewHostPath() { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); } - public FlexVolumeNested editFlexVolume() { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(null)); + public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { + return this.withNewHostPathLike(Optional.ofNullable(this.buildHostPath()).orElse(item)); } - public FlexVolumeNested editOrNewFlexVolume() { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(new V1FlexVolumeSourceBuilder().build())); + public ImageNested editOrNewImage() { + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(new V1ImageVolumeSourceBuilder().build())); } - public FlexVolumeNested editOrNewFlexVolumeLike(V1FlexVolumeSource item) { - return withNewFlexVolumeLike(java.util.Optional.ofNullable(buildFlexVolume()).orElse(item)); + public ImageNested editOrNewImageLike(V1ImageVolumeSource item) { + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(item)); } - public V1FlockerVolumeSource buildFlocker() { - return this.flocker != null ? this.flocker.build() : null; + public IscsiNested editOrNewIscsi() { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(new V1ISCSIVolumeSourceBuilder().build())); } - public A withFlocker(V1FlockerVolumeSource flocker) { - this._visitables.remove("flocker"); - if (flocker != null) { - this.flocker = new V1FlockerVolumeSourceBuilder(flocker); - this._visitables.get("flocker").add(this.flocker); - } else { - this.flocker = null; - this._visitables.get("flocker").remove(this.flocker); - } - return (A) this; + public IscsiNested editOrNewIscsiLike(V1ISCSIVolumeSource item) { + return this.withNewIscsiLike(Optional.ofNullable(this.buildIscsi()).orElse(item)); } - public boolean hasFlocker() { - return this.flocker != null; + public NfsNested editOrNewNfs() { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); } - public FlockerNested withNewFlocker() { - return new FlockerNested(null); + public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { + return this.withNewNfsLike(Optional.ofNullable(this.buildNfs()).orElse(item)); } - public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { - return new FlockerNested(item); + public PersistentVolumeClaimNested editOrNewPersistentVolumeClaim() { + return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(new V1PersistentVolumeClaimVolumeSourceBuilder().build())); } - public FlockerNested editFlocker() { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(null)); + public PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { + return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(item)); } - public FlockerNested editOrNewFlocker() { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(new V1FlockerVolumeSourceBuilder().build())); + public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); } - public FlockerNested editOrNewFlockerLike(V1FlockerVolumeSource item) { - return withNewFlockerLike(java.util.Optional.ofNullable(buildFlocker()).orElse(item)); + public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(item)); } - public V1GCEPersistentDiskVolumeSource buildGcePersistentDisk() { - return this.gcePersistentDisk != null ? this.gcePersistentDisk.build() : null; + public PortworxVolumeNested editOrNewPortworxVolume() { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); } - public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { - this._visitables.remove("gcePersistentDisk"); - if (gcePersistentDisk != null) { - this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); - this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); - } else { - this.gcePersistentDisk = null; - this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); - } - return (A) this; + public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(item)); } - public boolean hasGcePersistentDisk() { - return this.gcePersistentDisk != null; + public ProjectedNested editOrNewProjected() { + return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(new V1ProjectedVolumeSourceBuilder().build())); } - public GcePersistentDiskNested withNewGcePersistentDisk() { - return new GcePersistentDiskNested(null); + public ProjectedNested editOrNewProjectedLike(V1ProjectedVolumeSource item) { + return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(item)); } - public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return new GcePersistentDiskNested(item); + public QuobyteNested editOrNewQuobyte() { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); } - public GcePersistentDiskNested editGcePersistentDisk() { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(null)); + public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(item)); } - public GcePersistentDiskNested editOrNewGcePersistentDisk() { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(new V1GCEPersistentDiskVolumeSourceBuilder().build())); + public RbdNested editOrNewRbd() { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(new V1RBDVolumeSourceBuilder().build())); } - public GcePersistentDiskNested editOrNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { - return withNewGcePersistentDiskLike(java.util.Optional.ofNullable(buildGcePersistentDisk()).orElse(item)); + public RbdNested editOrNewRbdLike(V1RBDVolumeSource item) { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(item)); } - public V1GitRepoVolumeSource buildGitRepo() { - return this.gitRepo != null ? this.gitRepo.build() : null; + public ScaleIONested editOrNewScaleIO() { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(new V1ScaleIOVolumeSourceBuilder().build())); } - public A withGitRepo(V1GitRepoVolumeSource gitRepo) { - this._visitables.remove("gitRepo"); - if (gitRepo != null) { - this.gitRepo = new V1GitRepoVolumeSourceBuilder(gitRepo); - this._visitables.get("gitRepo").add(this.gitRepo); - } else { - this.gitRepo = null; - this._visitables.get("gitRepo").remove(this.gitRepo); - } - return (A) this; + public ScaleIONested editOrNewScaleIOLike(V1ScaleIOVolumeSource item) { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(item)); } - public boolean hasGitRepo() { - return this.gitRepo != null; + public SecretNested editOrNewSecret() { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(new V1SecretVolumeSourceBuilder().build())); } - public GitRepoNested withNewGitRepo() { - return new GitRepoNested(null); + public SecretNested editOrNewSecretLike(V1SecretVolumeSource item) { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(item)); } - public GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item) { - return new GitRepoNested(item); + public StorageosNested editOrNewStorageos() { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(new V1StorageOSVolumeSourceBuilder().build())); } - public GitRepoNested editGitRepo() { - return withNewGitRepoLike(java.util.Optional.ofNullable(buildGitRepo()).orElse(null)); + public StorageosNested editOrNewStorageosLike(V1StorageOSVolumeSource item) { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(item)); } - public GitRepoNested editOrNewGitRepo() { - return withNewGitRepoLike(java.util.Optional.ofNullable(buildGitRepo()).orElse(new V1GitRepoVolumeSourceBuilder().build())); + public VsphereVolumeNested editOrNewVsphereVolume() { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); } - public GitRepoNested editOrNewGitRepoLike(V1GitRepoVolumeSource item) { - return withNewGitRepoLike(java.util.Optional.ofNullable(buildGitRepo()).orElse(item)); + public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(item)); } - public V1GlusterfsVolumeSource buildGlusterfs() { - return this.glusterfs != null ? this.glusterfs.build() : null; + public PersistentVolumeClaimNested editPersistentVolumeClaim() { + return this.withNewPersistentVolumeClaimLike(Optional.ofNullable(this.buildPersistentVolumeClaim()).orElse(null)); } - public A withGlusterfs(V1GlusterfsVolumeSource glusterfs) { - this._visitables.remove("glusterfs"); - if (glusterfs != null) { - this.glusterfs = new V1GlusterfsVolumeSourceBuilder(glusterfs); - this._visitables.get("glusterfs").add(this.glusterfs); - } else { - this.glusterfs = null; - this._visitables.get("glusterfs").remove(this.glusterfs); - } - return (A) this; + public PhotonPersistentDiskNested editPhotonPersistentDisk() { + return this.withNewPhotonPersistentDiskLike(Optional.ofNullable(this.buildPhotonPersistentDisk()).orElse(null)); } - public boolean hasGlusterfs() { - return this.glusterfs != null; + public PortworxVolumeNested editPortworxVolume() { + return this.withNewPortworxVolumeLike(Optional.ofNullable(this.buildPortworxVolume()).orElse(null)); } - public GlusterfsNested withNewGlusterfs() { - return new GlusterfsNested(null); + public ProjectedNested editProjected() { + return this.withNewProjectedLike(Optional.ofNullable(this.buildProjected()).orElse(null)); } - public GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item) { - return new GlusterfsNested(item); + public QuobyteNested editQuobyte() { + return this.withNewQuobyteLike(Optional.ofNullable(this.buildQuobyte()).orElse(null)); } - public GlusterfsNested editGlusterfs() { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(null)); + public RbdNested editRbd() { + return this.withNewRbdLike(Optional.ofNullable(this.buildRbd()).orElse(null)); } - public GlusterfsNested editOrNewGlusterfs() { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(new V1GlusterfsVolumeSourceBuilder().build())); + public ScaleIONested editScaleIO() { + return this.withNewScaleIOLike(Optional.ofNullable(this.buildScaleIO()).orElse(null)); } - public GlusterfsNested editOrNewGlusterfsLike(V1GlusterfsVolumeSource item) { - return withNewGlusterfsLike(java.util.Optional.ofNullable(buildGlusterfs()).orElse(item)); + public SecretNested editSecret() { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(null)); } - public V1HostPathVolumeSource buildHostPath() { - return this.hostPath != null ? this.hostPath.build() : null; + public StorageosNested editStorageos() { + return this.withNewStorageosLike(Optional.ofNullable(this.buildStorageos()).orElse(null)); } - public A withHostPath(V1HostPathVolumeSource hostPath) { + public VsphereVolumeNested editVsphereVolume() { + return this.withNewVsphereVolumeLike(Optional.ofNullable(this.buildVsphereVolume()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeFluent that = (V1VolumeFluent) o; + if (!(Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore))) { + return false; + } + if (!(Objects.equals(azureDisk, that.azureDisk))) { + return false; + } + if (!(Objects.equals(azureFile, that.azureFile))) { + return false; + } + if (!(Objects.equals(cephfs, that.cephfs))) { + return false; + } + if (!(Objects.equals(cinder, that.cinder))) { + return false; + } + if (!(Objects.equals(configMap, that.configMap))) { + return false; + } + if (!(Objects.equals(csi, that.csi))) { + return false; + } + if (!(Objects.equals(downwardAPI, that.downwardAPI))) { + return false; + } + if (!(Objects.equals(emptyDir, that.emptyDir))) { + return false; + } + if (!(Objects.equals(ephemeral, that.ephemeral))) { + return false; + } + if (!(Objects.equals(fc, that.fc))) { + return false; + } + if (!(Objects.equals(flexVolume, that.flexVolume))) { + return false; + } + if (!(Objects.equals(flocker, that.flocker))) { + return false; + } + if (!(Objects.equals(gcePersistentDisk, that.gcePersistentDisk))) { + return false; + } + if (!(Objects.equals(gitRepo, that.gitRepo))) { + return false; + } + if (!(Objects.equals(glusterfs, that.glusterfs))) { + return false; + } + if (!(Objects.equals(hostPath, that.hostPath))) { + return false; + } + if (!(Objects.equals(image, that.image))) { + return false; + } + if (!(Objects.equals(iscsi, that.iscsi))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nfs, that.nfs))) { + return false; + } + if (!(Objects.equals(persistentVolumeClaim, that.persistentVolumeClaim))) { + return false; + } + if (!(Objects.equals(photonPersistentDisk, that.photonPersistentDisk))) { + return false; + } + if (!(Objects.equals(portworxVolume, that.portworxVolume))) { + return false; + } + if (!(Objects.equals(projected, that.projected))) { + return false; + } + if (!(Objects.equals(quobyte, that.quobyte))) { + return false; + } + if (!(Objects.equals(rbd, that.rbd))) { + return false; + } + if (!(Objects.equals(scaleIO, that.scaleIO))) { + return false; + } + if (!(Objects.equals(secret, that.secret))) { + return false; + } + if (!(Objects.equals(storageos, that.storageos))) { + return false; + } + if (!(Objects.equals(vsphereVolume, that.vsphereVolume))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public boolean hasAwsElasticBlockStore() { + return this.awsElasticBlockStore != null; + } + + public boolean hasAzureDisk() { + return this.azureDisk != null; + } + + public boolean hasAzureFile() { + return this.azureFile != null; + } + + public boolean hasCephfs() { + return this.cephfs != null; + } + + public boolean hasCinder() { + return this.cinder != null; + } + + public boolean hasConfigMap() { + return this.configMap != null; + } + + public boolean hasCsi() { + return this.csi != null; + } + + public boolean hasDownwardAPI() { + return this.downwardAPI != null; + } + + public boolean hasEmptyDir() { + return this.emptyDir != null; + } + + public boolean hasEphemeral() { + return this.ephemeral != null; + } + + public boolean hasFc() { + return this.fc != null; + } + + public boolean hasFlexVolume() { + return this.flexVolume != null; + } + + public boolean hasFlocker() { + return this.flocker != null; + } + + public boolean hasGcePersistentDisk() { + return this.gcePersistentDisk != null; + } + + public boolean hasGitRepo() { + return this.gitRepo != null; + } + + public boolean hasGlusterfs() { + return this.glusterfs != null; + } + + public boolean hasHostPath() { + return this.hostPath != null; + } + + public boolean hasImage() { + return this.image != null; + } + + public boolean hasIscsi() { + return this.iscsi != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNfs() { + return this.nfs != null; + } + + public boolean hasPersistentVolumeClaim() { + return this.persistentVolumeClaim != null; + } + + public boolean hasPhotonPersistentDisk() { + return this.photonPersistentDisk != null; + } + + public boolean hasPortworxVolume() { + return this.portworxVolume != null; + } + + public boolean hasProjected() { + return this.projected != null; + } + + public boolean hasQuobyte() { + return this.quobyte != null; + } + + public boolean hasRbd() { + return this.rbd != null; + } + + public boolean hasScaleIO() { + return this.scaleIO != null; + } + + public boolean hasSecret() { + return this.secret != null; + } + + public boolean hasStorageos() { + return this.storageos != null; + } + + public boolean hasVsphereVolume() { + return this.vsphereVolume != null; + } + + public int hashCode() { + 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); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(awsElasticBlockStore == null)) { + sb.append("awsElasticBlockStore:"); + sb.append(awsElasticBlockStore); + sb.append(","); + } + if (!(azureDisk == null)) { + sb.append("azureDisk:"); + sb.append(azureDisk); + sb.append(","); + } + if (!(azureFile == null)) { + sb.append("azureFile:"); + sb.append(azureFile); + sb.append(","); + } + if (!(cephfs == null)) { + sb.append("cephfs:"); + sb.append(cephfs); + sb.append(","); + } + if (!(cinder == null)) { + sb.append("cinder:"); + sb.append(cinder); + sb.append(","); + } + if (!(configMap == null)) { + sb.append("configMap:"); + sb.append(configMap); + sb.append(","); + } + if (!(csi == null)) { + sb.append("csi:"); + sb.append(csi); + sb.append(","); + } + if (!(downwardAPI == null)) { + sb.append("downwardAPI:"); + sb.append(downwardAPI); + sb.append(","); + } + if (!(emptyDir == null)) { + sb.append("emptyDir:"); + sb.append(emptyDir); + sb.append(","); + } + if (!(ephemeral == null)) { + sb.append("ephemeral:"); + sb.append(ephemeral); + sb.append(","); + } + if (!(fc == null)) { + sb.append("fc:"); + sb.append(fc); + sb.append(","); + } + if (!(flexVolume == null)) { + sb.append("flexVolume:"); + sb.append(flexVolume); + sb.append(","); + } + if (!(flocker == null)) { + sb.append("flocker:"); + sb.append(flocker); + sb.append(","); + } + if (!(gcePersistentDisk == null)) { + sb.append("gcePersistentDisk:"); + sb.append(gcePersistentDisk); + sb.append(","); + } + if (!(gitRepo == null)) { + sb.append("gitRepo:"); + sb.append(gitRepo); + sb.append(","); + } + if (!(glusterfs == null)) { + sb.append("glusterfs:"); + sb.append(glusterfs); + sb.append(","); + } + if (!(hostPath == null)) { + sb.append("hostPath:"); + sb.append(hostPath); + sb.append(","); + } + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + sb.append(","); + } + if (!(iscsi == null)) { + sb.append("iscsi:"); + sb.append(iscsi); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nfs == null)) { + sb.append("nfs:"); + sb.append(nfs); + sb.append(","); + } + if (!(persistentVolumeClaim == null)) { + sb.append("persistentVolumeClaim:"); + sb.append(persistentVolumeClaim); + sb.append(","); + } + if (!(photonPersistentDisk == null)) { + sb.append("photonPersistentDisk:"); + sb.append(photonPersistentDisk); + sb.append(","); + } + if (!(portworxVolume == null)) { + sb.append("portworxVolume:"); + sb.append(portworxVolume); + sb.append(","); + } + if (!(projected == null)) { + sb.append("projected:"); + sb.append(projected); + sb.append(","); + } + if (!(quobyte == null)) { + sb.append("quobyte:"); + sb.append(quobyte); + sb.append(","); + } + if (!(rbd == null)) { + sb.append("rbd:"); + sb.append(rbd); + sb.append(","); + } + if (!(scaleIO == null)) { + sb.append("scaleIO:"); + sb.append(scaleIO); + sb.append(","); + } + if (!(secret == null)) { + sb.append("secret:"); + sb.append(secret); + sb.append(","); + } + if (!(storageos == null)) { + sb.append("storageos:"); + sb.append(storageos); + sb.append(","); + } + if (!(vsphereVolume == null)) { + sb.append("vsphereVolume:"); + sb.append(vsphereVolume); + } + sb.append("}"); + return sb.toString(); + } + + public A withAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + this._visitables.remove("awsElasticBlockStore"); + if (awsElasticBlockStore != null) { + this.awsElasticBlockStore = new V1AWSElasticBlockStoreVolumeSourceBuilder(awsElasticBlockStore); + this._visitables.get("awsElasticBlockStore").add(this.awsElasticBlockStore); + } else { + this.awsElasticBlockStore = null; + this._visitables.get("awsElasticBlockStore").remove(this.awsElasticBlockStore); + } + return (A) this; + } + + public A withAzureDisk(V1AzureDiskVolumeSource azureDisk) { + this._visitables.remove("azureDisk"); + if (azureDisk != null) { + this.azureDisk = new V1AzureDiskVolumeSourceBuilder(azureDisk); + this._visitables.get("azureDisk").add(this.azureDisk); + } else { + this.azureDisk = null; + this._visitables.get("azureDisk").remove(this.azureDisk); + } + return (A) this; + } + + public A withAzureFile(V1AzureFileVolumeSource azureFile) { + this._visitables.remove("azureFile"); + if (azureFile != null) { + this.azureFile = new V1AzureFileVolumeSourceBuilder(azureFile); + this._visitables.get("azureFile").add(this.azureFile); + } else { + this.azureFile = null; + this._visitables.get("azureFile").remove(this.azureFile); + } + return (A) this; + } + + public A withCephfs(V1CephFSVolumeSource cephfs) { + this._visitables.remove("cephfs"); + if (cephfs != null) { + this.cephfs = new V1CephFSVolumeSourceBuilder(cephfs); + this._visitables.get("cephfs").add(this.cephfs); + } else { + this.cephfs = null; + this._visitables.get("cephfs").remove(this.cephfs); + } + return (A) this; + } + + public A withCinder(V1CinderVolumeSource cinder) { + this._visitables.remove("cinder"); + if (cinder != null) { + this.cinder = new V1CinderVolumeSourceBuilder(cinder); + this._visitables.get("cinder").add(this.cinder); + } else { + this.cinder = null; + this._visitables.get("cinder").remove(this.cinder); + } + return (A) this; + } + + public A withConfigMap(V1ConfigMapVolumeSource configMap) { + this._visitables.remove("configMap"); + if (configMap != null) { + this.configMap = new V1ConfigMapVolumeSourceBuilder(configMap); + this._visitables.get("configMap").add(this.configMap); + } else { + this.configMap = null; + this._visitables.get("configMap").remove(this.configMap); + } + return (A) this; + } + + public A withCsi(V1CSIVolumeSource csi) { + this._visitables.remove("csi"); + if (csi != null) { + this.csi = new V1CSIVolumeSourceBuilder(csi); + this._visitables.get("csi").add(this.csi); + } else { + this.csi = null; + this._visitables.get("csi").remove(this.csi); + } + return (A) this; + } + + public A withDownwardAPI(V1DownwardAPIVolumeSource downwardAPI) { + this._visitables.remove("downwardAPI"); + if (downwardAPI != null) { + this.downwardAPI = new V1DownwardAPIVolumeSourceBuilder(downwardAPI); + this._visitables.get("downwardAPI").add(this.downwardAPI); + } else { + this.downwardAPI = null; + this._visitables.get("downwardAPI").remove(this.downwardAPI); + } + return (A) this; + } + + public A withEmptyDir(V1EmptyDirVolumeSource emptyDir) { + this._visitables.remove("emptyDir"); + if (emptyDir != null) { + this.emptyDir = new V1EmptyDirVolumeSourceBuilder(emptyDir); + this._visitables.get("emptyDir").add(this.emptyDir); + } else { + this.emptyDir = null; + this._visitables.get("emptyDir").remove(this.emptyDir); + } + return (A) this; + } + + public A withEphemeral(V1EphemeralVolumeSource ephemeral) { + this._visitables.remove("ephemeral"); + if (ephemeral != null) { + this.ephemeral = new V1EphemeralVolumeSourceBuilder(ephemeral); + this._visitables.get("ephemeral").add(this.ephemeral); + } else { + this.ephemeral = null; + this._visitables.get("ephemeral").remove(this.ephemeral); + } + return (A) this; + } + + public A withFc(V1FCVolumeSource fc) { + this._visitables.remove("fc"); + if (fc != null) { + this.fc = new V1FCVolumeSourceBuilder(fc); + this._visitables.get("fc").add(this.fc); + } else { + this.fc = null; + this._visitables.get("fc").remove(this.fc); + } + return (A) this; + } + + public A withFlexVolume(V1FlexVolumeSource flexVolume) { + this._visitables.remove("flexVolume"); + if (flexVolume != null) { + this.flexVolume = new V1FlexVolumeSourceBuilder(flexVolume); + this._visitables.get("flexVolume").add(this.flexVolume); + } else { + this.flexVolume = null; + this._visitables.get("flexVolume").remove(this.flexVolume); + } + return (A) this; + } + + public A withFlocker(V1FlockerVolumeSource flocker) { + this._visitables.remove("flocker"); + if (flocker != null) { + this.flocker = new V1FlockerVolumeSourceBuilder(flocker); + this._visitables.get("flocker").add(this.flocker); + } else { + this.flocker = null; + this._visitables.get("flocker").remove(this.flocker); + } + return (A) this; + } + + public A withGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + this._visitables.remove("gcePersistentDisk"); + if (gcePersistentDisk != null) { + this.gcePersistentDisk = new V1GCEPersistentDiskVolumeSourceBuilder(gcePersistentDisk); + this._visitables.get("gcePersistentDisk").add(this.gcePersistentDisk); + } else { + this.gcePersistentDisk = null; + this._visitables.get("gcePersistentDisk").remove(this.gcePersistentDisk); + } + return (A) this; + } + + public A withGitRepo(V1GitRepoVolumeSource gitRepo) { + this._visitables.remove("gitRepo"); + if (gitRepo != null) { + this.gitRepo = new V1GitRepoVolumeSourceBuilder(gitRepo); + this._visitables.get("gitRepo").add(this.gitRepo); + } else { + this.gitRepo = null; + this._visitables.get("gitRepo").remove(this.gitRepo); + } + return (A) this; + } + + public A withGlusterfs(V1GlusterfsVolumeSource glusterfs) { + this._visitables.remove("glusterfs"); + if (glusterfs != null) { + this.glusterfs = new V1GlusterfsVolumeSourceBuilder(glusterfs); + this._visitables.get("glusterfs").add(this.glusterfs); + } else { + this.glusterfs = null; + this._visitables.get("glusterfs").remove(this.glusterfs); + } + return (A) this; + } + + public A withHostPath(V1HostPathVolumeSource hostPath) { this._visitables.remove("hostPath"); if (hostPath != null) { this.hostPath = new V1HostPathVolumeSourceBuilder(hostPath); @@ -740,101 +1175,185 @@ public A withHostPath(V1HostPathVolumeSource hostPath) { return (A) this; } - public boolean hasHostPath() { - return this.hostPath != 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 HostPathNested withNewHostPath() { - return new HostPathNested(null); + public A withIscsi(V1ISCSIVolumeSource iscsi) { + this._visitables.remove("iscsi"); + if (iscsi != null) { + this.iscsi = new V1ISCSIVolumeSourceBuilder(iscsi); + this._visitables.get("iscsi").add(this.iscsi); + } else { + this.iscsi = null; + this._visitables.get("iscsi").remove(this.iscsi); + } + return (A) this; } - public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { - return new HostPathNested(item); + public A withName(String name) { + this.name = name; + return (A) this; } - public HostPathNested editHostPath() { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(null)); + public AwsElasticBlockStoreNested withNewAwsElasticBlockStore() { + return new AwsElasticBlockStoreNested(null); } - public HostPathNested editOrNewHostPath() { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(new V1HostPathVolumeSourceBuilder().build())); + public AwsElasticBlockStoreNested withNewAwsElasticBlockStoreLike(V1AWSElasticBlockStoreVolumeSource item) { + return new AwsElasticBlockStoreNested(item); } - public HostPathNested editOrNewHostPathLike(V1HostPathVolumeSource item) { - return withNewHostPathLike(java.util.Optional.ofNullable(buildHostPath()).orElse(item)); + public AzureDiskNested withNewAzureDisk() { + return new AzureDiskNested(null); } - public V1ISCSIVolumeSource buildIscsi() { - return this.iscsi != null ? this.iscsi.build() : null; + public AzureDiskNested withNewAzureDiskLike(V1AzureDiskVolumeSource item) { + return new AzureDiskNested(item); } - public A withIscsi(V1ISCSIVolumeSource iscsi) { - this._visitables.remove("iscsi"); - if (iscsi != null) { - this.iscsi = new V1ISCSIVolumeSourceBuilder(iscsi); - this._visitables.get("iscsi").add(this.iscsi); - } else { - this.iscsi = null; - this._visitables.get("iscsi").remove(this.iscsi); - } - return (A) this; + public AzureFileNested withNewAzureFile() { + return new AzureFileNested(null); } - public boolean hasIscsi() { - return this.iscsi != null; + public AzureFileNested withNewAzureFileLike(V1AzureFileVolumeSource item) { + return new AzureFileNested(item); } - public IscsiNested withNewIscsi() { - return new IscsiNested(null); + public CephfsNested withNewCephfs() { + return new CephfsNested(null); } - public IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item) { - return new IscsiNested(item); + public CephfsNested withNewCephfsLike(V1CephFSVolumeSource item) { + return new CephfsNested(item); } - public IscsiNested editIscsi() { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(null)); + public CinderNested withNewCinder() { + return new CinderNested(null); } - public IscsiNested editOrNewIscsi() { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(new V1ISCSIVolumeSourceBuilder().build())); + public CinderNested withNewCinderLike(V1CinderVolumeSource item) { + return new CinderNested(item); } - public IscsiNested editOrNewIscsiLike(V1ISCSIVolumeSource item) { - return withNewIscsiLike(java.util.Optional.ofNullable(buildIscsi()).orElse(item)); + public ConfigMapNested withNewConfigMap() { + return new ConfigMapNested(null); } - public String getName() { - return this.name; + public ConfigMapNested withNewConfigMapLike(V1ConfigMapVolumeSource item) { + return new ConfigMapNested(item); } - public A withName(String name) { - this.name = name; - return (A) this; + public CsiNested withNewCsi() { + return new CsiNested(null); } - public boolean hasName() { - return this.name != null; + public CsiNested withNewCsiLike(V1CSIVolumeSource item) { + return new CsiNested(item); } - public V1NFSVolumeSource buildNfs() { - return this.nfs != null ? this.nfs.build() : null; + public DownwardAPINested withNewDownwardAPI() { + return new DownwardAPINested(null); } - public A withNfs(V1NFSVolumeSource nfs) { - this._visitables.remove("nfs"); - if (nfs != null) { - this.nfs = new V1NFSVolumeSourceBuilder(nfs); - this._visitables.get("nfs").add(this.nfs); - } else { - this.nfs = null; - this._visitables.get("nfs").remove(this.nfs); - } - return (A) this; + public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIVolumeSource item) { + return new DownwardAPINested(item); } - public boolean hasNfs() { - return this.nfs != null; + public EmptyDirNested withNewEmptyDir() { + return new EmptyDirNested(null); + } + + public EmptyDirNested withNewEmptyDirLike(V1EmptyDirVolumeSource item) { + return new EmptyDirNested(item); + } + + public EphemeralNested withNewEphemeral() { + return new EphemeralNested(null); + } + + public EphemeralNested withNewEphemeralLike(V1EphemeralVolumeSource item) { + return new EphemeralNested(item); + } + + public FcNested withNewFc() { + return new FcNested(null); + } + + public FcNested withNewFcLike(V1FCVolumeSource item) { + return new FcNested(item); + } + + public FlexVolumeNested withNewFlexVolume() { + return new FlexVolumeNested(null); + } + + public FlexVolumeNested withNewFlexVolumeLike(V1FlexVolumeSource item) { + return new FlexVolumeNested(item); + } + + public FlockerNested withNewFlocker() { + return new FlockerNested(null); + } + + public FlockerNested withNewFlockerLike(V1FlockerVolumeSource item) { + return new FlockerNested(item); + } + + public GcePersistentDiskNested withNewGcePersistentDisk() { + return new GcePersistentDiskNested(null); + } + + public GcePersistentDiskNested withNewGcePersistentDiskLike(V1GCEPersistentDiskVolumeSource item) { + return new GcePersistentDiskNested(item); + } + + public GitRepoNested withNewGitRepo() { + return new GitRepoNested(null); + } + + public GitRepoNested withNewGitRepoLike(V1GitRepoVolumeSource item) { + return new GitRepoNested(item); + } + + public GlusterfsNested withNewGlusterfs() { + return new GlusterfsNested(null); + } + + public GlusterfsNested withNewGlusterfsLike(V1GlusterfsVolumeSource item) { + return new GlusterfsNested(item); + } + + public HostPathNested withNewHostPath() { + return new HostPathNested(null); + } + + public HostPathNested withNewHostPathLike(V1HostPathVolumeSource item) { + return new HostPathNested(item); + } + + public ImageNested withNewImage() { + return new ImageNested(null); + } + + public ImageNested withNewImageLike(V1ImageVolumeSource item) { + return new ImageNested(item); + } + + public IscsiNested withNewIscsi() { + return new IscsiNested(null); + } + + public IscsiNested withNewIscsiLike(V1ISCSIVolumeSource item) { + return new IscsiNested(item); } public NfsNested withNewNfs() { @@ -845,20 +1364,96 @@ public NfsNested withNewNfsLike(V1NFSVolumeSource item) { return new NfsNested(item); } - public NfsNested editNfs() { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(null)); + public PersistentVolumeClaimNested withNewPersistentVolumeClaim() { + return new PersistentVolumeClaimNested(null); + } + + public PersistentVolumeClaimNested withNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { + return new PersistentVolumeClaimNested(item); + } + + public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { + return new PhotonPersistentDiskNested(null); + } + + public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { + return new PhotonPersistentDiskNested(item); + } + + public PortworxVolumeNested withNewPortworxVolume() { + return new PortworxVolumeNested(null); + } + + public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { + return new PortworxVolumeNested(item); + } + + public ProjectedNested withNewProjected() { + return new ProjectedNested(null); + } + + public ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item) { + return new ProjectedNested(item); + } + + public QuobyteNested withNewQuobyte() { + return new QuobyteNested(null); + } + + public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { + return new QuobyteNested(item); + } + + public RbdNested withNewRbd() { + return new RbdNested(null); + } + + public RbdNested withNewRbdLike(V1RBDVolumeSource item) { + return new RbdNested(item); + } + + public ScaleIONested withNewScaleIO() { + return new ScaleIONested(null); + } + + public ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item) { + return new ScaleIONested(item); + } + + public SecretNested withNewSecret() { + return new SecretNested(null); + } + + public SecretNested withNewSecretLike(V1SecretVolumeSource item) { + return new SecretNested(item); + } + + public StorageosNested withNewStorageos() { + return new StorageosNested(null); + } + + public StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item) { + return new StorageosNested(item); } - public NfsNested editOrNewNfs() { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(new V1NFSVolumeSourceBuilder().build())); + public VsphereVolumeNested withNewVsphereVolume() { + return new VsphereVolumeNested(null); } - public NfsNested editOrNewNfsLike(V1NFSVolumeSource item) { - return withNewNfsLike(java.util.Optional.ofNullable(buildNfs()).orElse(item)); + public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { + return new VsphereVolumeNested(item); } - public V1PersistentVolumeClaimVolumeSource buildPersistentVolumeClaim() { - return this.persistentVolumeClaim != null ? this.persistentVolumeClaim.build() : null; + public A withNfs(V1NFSVolumeSource nfs) { + this._visitables.remove("nfs"); + if (nfs != null) { + this.nfs = new V1NFSVolumeSourceBuilder(nfs); + this._visitables.get("nfs").add(this.nfs); + } else { + this.nfs = null; + this._visitables.get("nfs").remove(this.nfs); + } + return (A) this; } public A withPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { @@ -873,34 +1468,6 @@ public A withPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persisten return (A) this; } - public boolean hasPersistentVolumeClaim() { - return this.persistentVolumeClaim != null; - } - - public PersistentVolumeClaimNested withNewPersistentVolumeClaim() { - return new PersistentVolumeClaimNested(null); - } - - public PersistentVolumeClaimNested withNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { - return new PersistentVolumeClaimNested(item); - } - - public PersistentVolumeClaimNested editPersistentVolumeClaim() { - return withNewPersistentVolumeClaimLike(java.util.Optional.ofNullable(buildPersistentVolumeClaim()).orElse(null)); - } - - public PersistentVolumeClaimNested editOrNewPersistentVolumeClaim() { - return withNewPersistentVolumeClaimLike(java.util.Optional.ofNullable(buildPersistentVolumeClaim()).orElse(new V1PersistentVolumeClaimVolumeSourceBuilder().build())); - } - - public PersistentVolumeClaimNested editOrNewPersistentVolumeClaimLike(V1PersistentVolumeClaimVolumeSource item) { - return withNewPersistentVolumeClaimLike(java.util.Optional.ofNullable(buildPersistentVolumeClaim()).orElse(item)); - } - - public V1PhotonPersistentDiskVolumeSource buildPhotonPersistentDisk() { - return this.photonPersistentDisk != null ? this.photonPersistentDisk.build() : null; - } - public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { this._visitables.remove("photonPersistentDisk"); if (photonPersistentDisk != null) { @@ -913,34 +1480,6 @@ public A withPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersi return (A) this; } - public boolean hasPhotonPersistentDisk() { - return this.photonPersistentDisk != null; - } - - public PhotonPersistentDiskNested withNewPhotonPersistentDisk() { - return new PhotonPersistentDiskNested(null); - } - - public PhotonPersistentDiskNested withNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return new PhotonPersistentDiskNested(item); - } - - public PhotonPersistentDiskNested editPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(null)); - } - - public PhotonPersistentDiskNested editOrNewPhotonPersistentDisk() { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(new V1PhotonPersistentDiskVolumeSourceBuilder().build())); - } - - public PhotonPersistentDiskNested editOrNewPhotonPersistentDiskLike(V1PhotonPersistentDiskVolumeSource item) { - return withNewPhotonPersistentDiskLike(java.util.Optional.ofNullable(buildPhotonPersistentDisk()).orElse(item)); - } - - public V1PortworxVolumeSource buildPortworxVolume() { - return this.portworxVolume != null ? this.portworxVolume.build() : null; - } - public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { this._visitables.remove("portworxVolume"); if (portworxVolume != null) { @@ -953,34 +1492,6 @@ public A withPortworxVolume(V1PortworxVolumeSource portworxVolume) { return (A) this; } - public boolean hasPortworxVolume() { - return this.portworxVolume != null; - } - - public PortworxVolumeNested withNewPortworxVolume() { - return new PortworxVolumeNested(null); - } - - public PortworxVolumeNested withNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return new PortworxVolumeNested(item); - } - - public PortworxVolumeNested editPortworxVolume() { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(null)); - } - - public PortworxVolumeNested editOrNewPortworxVolume() { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(new V1PortworxVolumeSourceBuilder().build())); - } - - public PortworxVolumeNested editOrNewPortworxVolumeLike(V1PortworxVolumeSource item) { - return withNewPortworxVolumeLike(java.util.Optional.ofNullable(buildPortworxVolume()).orElse(item)); - } - - public V1ProjectedVolumeSource buildProjected() { - return this.projected != null ? this.projected.build() : null; - } - public A withProjected(V1ProjectedVolumeSource projected) { this._visitables.remove("projected"); if (projected != null) { @@ -993,34 +1504,6 @@ public A withProjected(V1ProjectedVolumeSource projected) { return (A) this; } - public boolean hasProjected() { - return this.projected != null; - } - - public ProjectedNested withNewProjected() { - return new ProjectedNested(null); - } - - public ProjectedNested withNewProjectedLike(V1ProjectedVolumeSource item) { - return new ProjectedNested(item); - } - - public ProjectedNested editProjected() { - return withNewProjectedLike(java.util.Optional.ofNullable(buildProjected()).orElse(null)); - } - - public ProjectedNested editOrNewProjected() { - return withNewProjectedLike(java.util.Optional.ofNullable(buildProjected()).orElse(new V1ProjectedVolumeSourceBuilder().build())); - } - - public ProjectedNested editOrNewProjectedLike(V1ProjectedVolumeSource item) { - return withNewProjectedLike(java.util.Optional.ofNullable(buildProjected()).orElse(item)); - } - - public V1QuobyteVolumeSource buildQuobyte() { - return this.quobyte != null ? this.quobyte.build() : null; - } - public A withQuobyte(V1QuobyteVolumeSource quobyte) { this._visitables.remove("quobyte"); if (quobyte != null) { @@ -1033,34 +1516,6 @@ public A withQuobyte(V1QuobyteVolumeSource quobyte) { return (A) this; } - public boolean hasQuobyte() { - return this.quobyte != null; - } - - public QuobyteNested withNewQuobyte() { - return new QuobyteNested(null); - } - - public QuobyteNested withNewQuobyteLike(V1QuobyteVolumeSource item) { - return new QuobyteNested(item); - } - - public QuobyteNested editQuobyte() { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(null)); - } - - public QuobyteNested editOrNewQuobyte() { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(new V1QuobyteVolumeSourceBuilder().build())); - } - - public QuobyteNested editOrNewQuobyteLike(V1QuobyteVolumeSource item) { - return withNewQuobyteLike(java.util.Optional.ofNullable(buildQuobyte()).orElse(item)); - } - - public V1RBDVolumeSource buildRbd() { - return this.rbd != null ? this.rbd.build() : null; - } - public A withRbd(V1RBDVolumeSource rbd) { this._visitables.remove("rbd"); if (rbd != null) { @@ -1073,34 +1528,6 @@ public A withRbd(V1RBDVolumeSource rbd) { return (A) this; } - public boolean hasRbd() { - return this.rbd != null; - } - - public RbdNested withNewRbd() { - return new RbdNested(null); - } - - public RbdNested withNewRbdLike(V1RBDVolumeSource item) { - return new RbdNested(item); - } - - public RbdNested editRbd() { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(null)); - } - - public RbdNested editOrNewRbd() { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(new V1RBDVolumeSourceBuilder().build())); - } - - public RbdNested editOrNewRbdLike(V1RBDVolumeSource item) { - return withNewRbdLike(java.util.Optional.ofNullable(buildRbd()).orElse(item)); - } - - public V1ScaleIOVolumeSource buildScaleIO() { - return this.scaleIO != null ? this.scaleIO.build() : null; - } - public A withScaleIO(V1ScaleIOVolumeSource scaleIO) { this._visitables.remove("scaleIO"); if (scaleIO != null) { @@ -1113,34 +1540,6 @@ public A withScaleIO(V1ScaleIOVolumeSource scaleIO) { return (A) this; } - public boolean hasScaleIO() { - return this.scaleIO != null; - } - - public ScaleIONested withNewScaleIO() { - return new ScaleIONested(null); - } - - public ScaleIONested withNewScaleIOLike(V1ScaleIOVolumeSource item) { - return new ScaleIONested(item); - } - - public ScaleIONested editScaleIO() { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(null)); - } - - public ScaleIONested editOrNewScaleIO() { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(new V1ScaleIOVolumeSourceBuilder().build())); - } - - public ScaleIONested editOrNewScaleIOLike(V1ScaleIOVolumeSource item) { - return withNewScaleIOLike(java.util.Optional.ofNullable(buildScaleIO()).orElse(item)); - } - - public V1SecretVolumeSource buildSecret() { - return this.secret != null ? this.secret.build() : null; - } - public A withSecret(V1SecretVolumeSource secret) { this._visitables.remove("secret"); if (secret != null) { @@ -1153,72 +1552,16 @@ public A withSecret(V1SecretVolumeSource secret) { return (A) this; } - public boolean hasSecret() { - return this.secret != null; - } - - public SecretNested withNewSecret() { - return new SecretNested(null); - } - - public SecretNested withNewSecretLike(V1SecretVolumeSource item) { - return new SecretNested(item); - } - - public SecretNested editSecret() { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(null)); - } - - public SecretNested editOrNewSecret() { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(new V1SecretVolumeSourceBuilder().build())); - } - - public SecretNested editOrNewSecretLike(V1SecretVolumeSource item) { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(item)); - } - - public V1StorageOSVolumeSource buildStorageos() { - return this.storageos != null ? this.storageos.build() : null; - } - public A withStorageos(V1StorageOSVolumeSource storageos) { - this._visitables.remove("storageos"); - if (storageos != null) { - this.storageos = new V1StorageOSVolumeSourceBuilder(storageos); - this._visitables.get("storageos").add(this.storageos); - } else { - this.storageos = null; - this._visitables.get("storageos").remove(this.storageos); - } - return (A) this; - } - - public boolean hasStorageos() { - return this.storageos != null; - } - - public StorageosNested withNewStorageos() { - return new StorageosNested(null); - } - - public StorageosNested withNewStorageosLike(V1StorageOSVolumeSource item) { - return new StorageosNested(item); - } - - public StorageosNested editStorageos() { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(null)); - } - - public StorageosNested editOrNewStorageos() { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(new V1StorageOSVolumeSourceBuilder().build())); - } - - public StorageosNested editOrNewStorageosLike(V1StorageOSVolumeSource item) { - return withNewStorageosLike(java.util.Optional.ofNullable(buildStorageos()).orElse(item)); - } - - public V1VsphereVirtualDiskVolumeSource buildVsphereVolume() { - return this.vsphereVolume != null ? this.vsphereVolume.build() : null; + this._visitables.remove("storageos"); + if (storageos != null) { + this.storageos = new V1StorageOSVolumeSourceBuilder(storageos); + this._visitables.get("storageos").add(this.storageos); + } else { + this.storageos = null; + this._visitables.get("storageos").remove(this.storageos); + } + return (A) this; } public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { @@ -1232,115 +1575,14 @@ public A withVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { } return (A) this; } + public class AwsElasticBlockStoreNested extends V1AWSElasticBlockStoreVolumeSourceFluent> implements Nested{ - public boolean hasVsphereVolume() { - return this.vsphereVolume != null; - } - - public VsphereVolumeNested withNewVsphereVolume() { - return new VsphereVolumeNested(null); - } - - public VsphereVolumeNested withNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return new VsphereVolumeNested(item); - } - - public VsphereVolumeNested editVsphereVolume() { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(null)); - } - - public VsphereVolumeNested editOrNewVsphereVolume() { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).orElse(new V1VsphereVirtualDiskVolumeSourceBuilder().build())); - } - - public VsphereVolumeNested editOrNewVsphereVolumeLike(V1VsphereVirtualDiskVolumeSource item) { - return withNewVsphereVolumeLike(java.util.Optional.ofNullable(buildVsphereVolume()).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; - V1VolumeFluent that = (V1VolumeFluent) o; - if (!java.util.Objects.equals(awsElasticBlockStore, that.awsElasticBlockStore)) return false; - if (!java.util.Objects.equals(azureDisk, that.azureDisk)) return false; - if (!java.util.Objects.equals(azureFile, that.azureFile)) return false; - if (!java.util.Objects.equals(cephfs, that.cephfs)) return false; - if (!java.util.Objects.equals(cinder, that.cinder)) return false; - if (!java.util.Objects.equals(configMap, that.configMap)) return false; - if (!java.util.Objects.equals(csi, that.csi)) return false; - if (!java.util.Objects.equals(downwardAPI, that.downwardAPI)) return false; - if (!java.util.Objects.equals(emptyDir, that.emptyDir)) return false; - if (!java.util.Objects.equals(ephemeral, that.ephemeral)) return false; - if (!java.util.Objects.equals(fc, that.fc)) return false; - if (!java.util.Objects.equals(flexVolume, that.flexVolume)) return false; - if (!java.util.Objects.equals(flocker, that.flocker)) return false; - if (!java.util.Objects.equals(gcePersistentDisk, that.gcePersistentDisk)) return false; - 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(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; - if (!java.util.Objects.equals(persistentVolumeClaim, that.persistentVolumeClaim)) return false; - if (!java.util.Objects.equals(photonPersistentDisk, that.photonPersistentDisk)) return false; - if (!java.util.Objects.equals(portworxVolume, that.portworxVolume)) return false; - if (!java.util.Objects.equals(projected, that.projected)) return false; - if (!java.util.Objects.equals(quobyte, that.quobyte)) return false; - if (!java.util.Objects.equals(rbd, that.rbd)) return false; - if (!java.util.Objects.equals(scaleIO, that.scaleIO)) return false; - if (!java.util.Objects.equals(secret, that.secret)) return false; - if (!java.util.Objects.equals(storageos, that.storageos)) return false; - if (!java.util.Objects.equals(vsphereVolume, that.vsphereVolume)) return false; - return true; - } - - 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()); - } + V1AWSElasticBlockStoreVolumeSourceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (awsElasticBlockStore != null) { sb.append("awsElasticBlockStore:"); sb.append(awsElasticBlockStore + ","); } - if (azureDisk != null) { sb.append("azureDisk:"); sb.append(azureDisk + ","); } - if (azureFile != null) { sb.append("azureFile:"); sb.append(azureFile + ","); } - if (cephfs != null) { sb.append("cephfs:"); sb.append(cephfs + ","); } - if (cinder != null) { sb.append("cinder:"); sb.append(cinder + ","); } - if (configMap != null) { sb.append("configMap:"); sb.append(configMap + ","); } - if (csi != null) { sb.append("csi:"); sb.append(csi + ","); } - if (downwardAPI != null) { sb.append("downwardAPI:"); sb.append(downwardAPI + ","); } - if (emptyDir != null) { sb.append("emptyDir:"); sb.append(emptyDir + ","); } - if (ephemeral != null) { sb.append("ephemeral:"); sb.append(ephemeral + ","); } - if (fc != null) { sb.append("fc:"); sb.append(fc + ","); } - if (flexVolume != null) { sb.append("flexVolume:"); sb.append(flexVolume + ","); } - if (flocker != null) { sb.append("flocker:"); sb.append(flocker + ","); } - if (gcePersistentDisk != null) { sb.append("gcePersistentDisk:"); sb.append(gcePersistentDisk + ","); } - 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 (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 + ","); } - if (persistentVolumeClaim != null) { sb.append("persistentVolumeClaim:"); sb.append(persistentVolumeClaim + ","); } - if (photonPersistentDisk != null) { sb.append("photonPersistentDisk:"); sb.append(photonPersistentDisk + ","); } - if (portworxVolume != null) { sb.append("portworxVolume:"); sb.append(portworxVolume + ","); } - if (projected != null) { sb.append("projected:"); sb.append(projected + ","); } - if (quobyte != null) { sb.append("quobyte:"); sb.append(quobyte + ","); } - if (rbd != null) { sb.append("rbd:"); sb.append(rbd + ","); } - if (scaleIO != null) { sb.append("scaleIO:"); sb.append(scaleIO + ","); } - if (secret != null) { sb.append("secret:"); sb.append(secret + ","); } - if (storageos != null) { sb.append("storageos:"); sb.append(storageos + ","); } - if (vsphereVolume != null) { sb.append("vsphereVolume:"); sb.append(vsphereVolume); } - sb.append("}"); - return sb.toString(); - } - public class AwsElasticBlockStoreNested extends V1AWSElasticBlockStoreVolumeSourceFluent> implements Nested{ AwsElasticBlockStoreNested(V1AWSElasticBlockStoreVolumeSource item) { this.builder = new V1AWSElasticBlockStoreVolumeSourceBuilder(this, item); } - V1AWSElasticBlockStoreVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withAwsElasticBlockStore(builder.build()); } @@ -1349,14 +1591,15 @@ public N endAwsElasticBlockStore() { return and(); } - } public class AzureDiskNested extends V1AzureDiskVolumeSourceFluent> implements Nested{ + + V1AzureDiskVolumeSourceBuilder builder; + AzureDiskNested(V1AzureDiskVolumeSource item) { this.builder = new V1AzureDiskVolumeSourceBuilder(this, item); } - V1AzureDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withAzureDisk(builder.build()); } @@ -1365,14 +1608,15 @@ public N endAzureDisk() { return and(); } - } public class AzureFileNested extends V1AzureFileVolumeSourceFluent> implements Nested{ + + V1AzureFileVolumeSourceBuilder builder; + AzureFileNested(V1AzureFileVolumeSource item) { this.builder = new V1AzureFileVolumeSourceBuilder(this, item); } - V1AzureFileVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withAzureFile(builder.build()); } @@ -1381,14 +1625,15 @@ public N endAzureFile() { return and(); } - } public class CephfsNested extends V1CephFSVolumeSourceFluent> implements Nested{ + + V1CephFSVolumeSourceBuilder builder; + CephfsNested(V1CephFSVolumeSource item) { this.builder = new V1CephFSVolumeSourceBuilder(this, item); } - V1CephFSVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withCephfs(builder.build()); } @@ -1397,14 +1642,15 @@ public N endCephfs() { return and(); } - } public class CinderNested extends V1CinderVolumeSourceFluent> implements Nested{ + + V1CinderVolumeSourceBuilder builder; + CinderNested(V1CinderVolumeSource item) { this.builder = new V1CinderVolumeSourceBuilder(this, item); } - V1CinderVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withCinder(builder.build()); } @@ -1413,14 +1659,15 @@ public N endCinder() { return and(); } - } public class ConfigMapNested extends V1ConfigMapVolumeSourceFluent> implements Nested{ + + V1ConfigMapVolumeSourceBuilder builder; + ConfigMapNested(V1ConfigMapVolumeSource item) { this.builder = new V1ConfigMapVolumeSourceBuilder(this, item); } - V1ConfigMapVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withConfigMap(builder.build()); } @@ -1429,14 +1676,15 @@ public N endConfigMap() { return and(); } - } public class CsiNested extends V1CSIVolumeSourceFluent> implements Nested{ + + V1CSIVolumeSourceBuilder builder; + CsiNested(V1CSIVolumeSource item) { this.builder = new V1CSIVolumeSourceBuilder(this, item); } - V1CSIVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withCsi(builder.build()); } @@ -1445,14 +1693,15 @@ public N endCsi() { return and(); } - } public class DownwardAPINested extends V1DownwardAPIVolumeSourceFluent> implements Nested{ + + V1DownwardAPIVolumeSourceBuilder builder; + DownwardAPINested(V1DownwardAPIVolumeSource item) { this.builder = new V1DownwardAPIVolumeSourceBuilder(this, item); } - V1DownwardAPIVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withDownwardAPI(builder.build()); } @@ -1461,14 +1710,15 @@ public N endDownwardAPI() { return and(); } - } public class EmptyDirNested extends V1EmptyDirVolumeSourceFluent> implements Nested{ + + V1EmptyDirVolumeSourceBuilder builder; + EmptyDirNested(V1EmptyDirVolumeSource item) { this.builder = new V1EmptyDirVolumeSourceBuilder(this, item); } - V1EmptyDirVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withEmptyDir(builder.build()); } @@ -1477,14 +1727,15 @@ public N endEmptyDir() { return and(); } - } public class EphemeralNested extends V1EphemeralVolumeSourceFluent> implements Nested{ + + V1EphemeralVolumeSourceBuilder builder; + EphemeralNested(V1EphemeralVolumeSource item) { this.builder = new V1EphemeralVolumeSourceBuilder(this, item); } - V1EphemeralVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withEphemeral(builder.build()); } @@ -1493,14 +1744,15 @@ public N endEphemeral() { return and(); } - } public class FcNested extends V1FCVolumeSourceFluent> implements Nested{ + + V1FCVolumeSourceBuilder builder; + FcNested(V1FCVolumeSource item) { this.builder = new V1FCVolumeSourceBuilder(this, item); } - V1FCVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withFc(builder.build()); } @@ -1509,14 +1761,15 @@ public N endFc() { return and(); } - } public class FlexVolumeNested extends V1FlexVolumeSourceFluent> implements Nested{ + + V1FlexVolumeSourceBuilder builder; + FlexVolumeNested(V1FlexVolumeSource item) { this.builder = new V1FlexVolumeSourceBuilder(this, item); } - V1FlexVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withFlexVolume(builder.build()); } @@ -1525,14 +1778,15 @@ public N endFlexVolume() { return and(); } - } public class FlockerNested extends V1FlockerVolumeSourceFluent> implements Nested{ + + V1FlockerVolumeSourceBuilder builder; + FlockerNested(V1FlockerVolumeSource item) { this.builder = new V1FlockerVolumeSourceBuilder(this, item); } - V1FlockerVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withFlocker(builder.build()); } @@ -1541,14 +1795,15 @@ public N endFlocker() { return and(); } - } public class GcePersistentDiskNested extends V1GCEPersistentDiskVolumeSourceFluent> implements Nested{ + + V1GCEPersistentDiskVolumeSourceBuilder builder; + GcePersistentDiskNested(V1GCEPersistentDiskVolumeSource item) { this.builder = new V1GCEPersistentDiskVolumeSourceBuilder(this, item); } - V1GCEPersistentDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withGcePersistentDisk(builder.build()); } @@ -1557,14 +1812,15 @@ public N endGcePersistentDisk() { return and(); } - } public class GitRepoNested extends V1GitRepoVolumeSourceFluent> implements Nested{ + + V1GitRepoVolumeSourceBuilder builder; + GitRepoNested(V1GitRepoVolumeSource item) { this.builder = new V1GitRepoVolumeSourceBuilder(this, item); } - V1GitRepoVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withGitRepo(builder.build()); } @@ -1573,14 +1829,15 @@ public N endGitRepo() { return and(); } - } public class GlusterfsNested extends V1GlusterfsVolumeSourceFluent> implements Nested{ + + V1GlusterfsVolumeSourceBuilder builder; + GlusterfsNested(V1GlusterfsVolumeSource item) { this.builder = new V1GlusterfsVolumeSourceBuilder(this, item); } - V1GlusterfsVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withGlusterfs(builder.build()); } @@ -1589,14 +1846,15 @@ public N endGlusterfs() { return and(); } - } public class HostPathNested extends V1HostPathVolumeSourceFluent> implements Nested{ + + V1HostPathVolumeSourceBuilder builder; + HostPathNested(V1HostPathVolumeSource item) { this.builder = new V1HostPathVolumeSourceBuilder(this, item); } - V1HostPathVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withHostPath(builder.build()); } @@ -1605,14 +1863,32 @@ public N endHostPath() { return and(); } + } + public class ImageNested extends V1ImageVolumeSourceFluent> implements Nested{ + + V1ImageVolumeSourceBuilder builder; + + ImageNested(V1ImageVolumeSource item) { + this.builder = new V1ImageVolumeSourceBuilder(this, item); + } + public N and() { + return (N) V1VolumeFluent.this.withImage(builder.build()); + } + + public N endImage() { + return and(); + } + } public class IscsiNested extends V1ISCSIVolumeSourceFluent> implements Nested{ + + V1ISCSIVolumeSourceBuilder builder; + IscsiNested(V1ISCSIVolumeSource item) { this.builder = new V1ISCSIVolumeSourceBuilder(this, item); } - V1ISCSIVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withIscsi(builder.build()); } @@ -1621,14 +1897,15 @@ public N endIscsi() { return and(); } - } public class NfsNested extends V1NFSVolumeSourceFluent> implements Nested{ + + V1NFSVolumeSourceBuilder builder; + NfsNested(V1NFSVolumeSource item) { this.builder = new V1NFSVolumeSourceBuilder(this, item); } - V1NFSVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withNfs(builder.build()); } @@ -1637,14 +1914,15 @@ public N endNfs() { return and(); } - } public class PersistentVolumeClaimNested extends V1PersistentVolumeClaimVolumeSourceFluent> implements Nested{ + + V1PersistentVolumeClaimVolumeSourceBuilder builder; + PersistentVolumeClaimNested(V1PersistentVolumeClaimVolumeSource item) { this.builder = new V1PersistentVolumeClaimVolumeSourceBuilder(this, item); } - V1PersistentVolumeClaimVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withPersistentVolumeClaim(builder.build()); } @@ -1653,14 +1931,15 @@ public N endPersistentVolumeClaim() { return and(); } - } public class PhotonPersistentDiskNested extends V1PhotonPersistentDiskVolumeSourceFluent> implements Nested{ + + V1PhotonPersistentDiskVolumeSourceBuilder builder; + PhotonPersistentDiskNested(V1PhotonPersistentDiskVolumeSource item) { this.builder = new V1PhotonPersistentDiskVolumeSourceBuilder(this, item); } - V1PhotonPersistentDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withPhotonPersistentDisk(builder.build()); } @@ -1669,14 +1948,15 @@ public N endPhotonPersistentDisk() { return and(); } - } public class PortworxVolumeNested extends V1PortworxVolumeSourceFluent> implements Nested{ + + V1PortworxVolumeSourceBuilder builder; + PortworxVolumeNested(V1PortworxVolumeSource item) { this.builder = new V1PortworxVolumeSourceBuilder(this, item); } - V1PortworxVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withPortworxVolume(builder.build()); } @@ -1685,14 +1965,15 @@ public N endPortworxVolume() { return and(); } - } public class ProjectedNested extends V1ProjectedVolumeSourceFluent> implements Nested{ + + V1ProjectedVolumeSourceBuilder builder; + ProjectedNested(V1ProjectedVolumeSource item) { this.builder = new V1ProjectedVolumeSourceBuilder(this, item); } - V1ProjectedVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withProjected(builder.build()); } @@ -1701,14 +1982,15 @@ public N endProjected() { return and(); } - } public class QuobyteNested extends V1QuobyteVolumeSourceFluent> implements Nested{ + + V1QuobyteVolumeSourceBuilder builder; + QuobyteNested(V1QuobyteVolumeSource item) { this.builder = new V1QuobyteVolumeSourceBuilder(this, item); } - V1QuobyteVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withQuobyte(builder.build()); } @@ -1717,14 +1999,15 @@ public N endQuobyte() { return and(); } - } public class RbdNested extends V1RBDVolumeSourceFluent> implements Nested{ + + V1RBDVolumeSourceBuilder builder; + RbdNested(V1RBDVolumeSource item) { this.builder = new V1RBDVolumeSourceBuilder(this, item); } - V1RBDVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withRbd(builder.build()); } @@ -1733,14 +2016,15 @@ public N endRbd() { return and(); } - } public class ScaleIONested extends V1ScaleIOVolumeSourceFluent> implements Nested{ + + V1ScaleIOVolumeSourceBuilder builder; + ScaleIONested(V1ScaleIOVolumeSource item) { this.builder = new V1ScaleIOVolumeSourceBuilder(this, item); } - V1ScaleIOVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withScaleIO(builder.build()); } @@ -1749,14 +2033,15 @@ public N endScaleIO() { return and(); } - } public class SecretNested extends V1SecretVolumeSourceFluent> implements Nested{ + + V1SecretVolumeSourceBuilder builder; + SecretNested(V1SecretVolumeSource item) { this.builder = new V1SecretVolumeSourceBuilder(this, item); } - V1SecretVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withSecret(builder.build()); } @@ -1765,14 +2050,15 @@ public N endSecret() { return and(); } - } public class StorageosNested extends V1StorageOSVolumeSourceFluent> implements Nested{ + + V1StorageOSVolumeSourceBuilder builder; + StorageosNested(V1StorageOSVolumeSource item) { this.builder = new V1StorageOSVolumeSourceBuilder(this, item); } - V1StorageOSVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withStorageos(builder.build()); } @@ -1781,14 +2067,15 @@ public N endStorageos() { return and(); } - } public class VsphereVolumeNested extends V1VsphereVirtualDiskVolumeSourceFluent> implements Nested{ + + V1VsphereVirtualDiskVolumeSourceBuilder builder; + VsphereVolumeNested(V1VsphereVirtualDiskVolumeSource item) { this.builder = new V1VsphereVirtualDiskVolumeSourceBuilder(this, item); } - V1VsphereVirtualDiskVolumeSourceBuilder builder; - + public N and() { return (N) V1VolumeFluent.this.withVsphereVolume(builder.build()); } @@ -1797,7 +2084,5 @@ public N endVsphereVolume() { return and(); } - } - } \ No newline at end of file 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 3225cc2a37..3cffd1e7c3 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeMountBuilder extends V1VolumeMountFluent implements VisitableBuilder{ + + V1VolumeMountFluent fluent; + public V1VolumeMountBuilder() { this(new V1VolumeMount()); } @@ -10,17 +14,16 @@ public V1VolumeMountBuilder(V1VolumeMountFluent fluent) { this(fluent, new V1VolumeMount()); } - public V1VolumeMountBuilder(V1VolumeMountFluent fluent,V1VolumeMount instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeMountBuilder(V1VolumeMount instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeMountFluent fluent; + public V1VolumeMountBuilder(V1VolumeMountFluent fluent,V1VolumeMount instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeMount build() { V1VolumeMount buildable = new V1VolumeMount(); buildable.setMountPath(fluent.getMountPath()); @@ -33,5 +36,4 @@ public V1VolumeMount build() { return buildable; } - } \ No newline at end of file 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 d092a55ee1..7ee20ebaeb 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 @@ -1,22 +1,19 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeMountFluent> extends BaseFluent{ - public V1VolumeMountFluent() { - } - - public V1VolumeMountFluent(V1VolumeMount instance) { - this.copyInstance(instance); - } +public class V1VolumeMountFluent> extends BaseFluent{ + private String mountPath; private String mountPropagation; private String name; @@ -24,147 +21,200 @@ public V1VolumeMountFluent(V1VolumeMount instance) { private String recursiveReadOnly; private String subPath; private String subPathExpr; + + public V1VolumeMountFluent() { + } + public V1VolumeMountFluent(V1VolumeMount instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1VolumeMount instance) { - instance = (instance != null ? instance : new V1VolumeMount()); + instance = instance != null ? instance : new V1VolumeMount(); if (instance != null) { - this.withMountPath(instance.getMountPath()); - this.withMountPropagation(instance.getMountPropagation()); - this.withName(instance.getName()); - this.withReadOnly(instance.getReadOnly()); - this.withRecursiveReadOnly(instance.getRecursiveReadOnly()); - this.withSubPath(instance.getSubPath()); - this.withSubPathExpr(instance.getSubPathExpr()); - } - } - - public String getMountPath() { - return this.mountPath; + this.withMountPath(instance.getMountPath()); + this.withMountPropagation(instance.getMountPropagation()); + this.withName(instance.getName()); + this.withReadOnly(instance.getReadOnly()); + this.withRecursiveReadOnly(instance.getRecursiveReadOnly()); + this.withSubPath(instance.getSubPath()); + this.withSubPathExpr(instance.getSubPathExpr()); + } } - public A withMountPath(String mountPath) { - this.mountPath = mountPath; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeMountFluent that = (V1VolumeMountFluent) o; + if (!(Objects.equals(mountPath, that.mountPath))) { + return false; + } + if (!(Objects.equals(mountPropagation, that.mountPropagation))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(recursiveReadOnly, that.recursiveReadOnly))) { + return false; + } + if (!(Objects.equals(subPath, that.subPath))) { + return false; + } + if (!(Objects.equals(subPathExpr, that.subPathExpr))) { + return false; + } + return true; } - public boolean hasMountPath() { - return this.mountPath != null; + public String getMountPath() { + return this.mountPath; } public String getMountPropagation() { return this.mountPropagation; } - public A withMountPropagation(String mountPropagation) { - this.mountPropagation = mountPropagation; - return (A) this; + public String getName() { + return this.name; } - public boolean hasMountPropagation() { - return this.mountPropagation != null; + public Boolean getReadOnly() { + return this.readOnly; } - public String getName() { - return this.name; + public String getRecursiveReadOnly() { + return this.recursiveReadOnly; } - public A withName(String name) { - this.name = name; - return (A) this; + public String getSubPath() { + return this.subPath; } - public boolean hasName() { - return this.name != null; + public String getSubPathExpr() { + return this.subPathExpr; } - public Boolean getReadOnly() { - return this.readOnly; + public boolean hasMountPath() { + return this.mountPath != null; } - public A withReadOnly(Boolean readOnly) { - this.readOnly = readOnly; - return (A) this; + public boolean hasMountPropagation() { + return this.mountPropagation != null; + } + + public boolean hasName() { + return this.name != null; } public boolean hasReadOnly() { return this.readOnly != null; } - public String getRecursiveReadOnly() { - return this.recursiveReadOnly; + public boolean hasRecursiveReadOnly() { + return this.recursiveReadOnly != null; } - public A withRecursiveReadOnly(String recursiveReadOnly) { - this.recursiveReadOnly = recursiveReadOnly; - return (A) this; + public boolean hasSubPath() { + return this.subPath != null; } - public boolean hasRecursiveReadOnly() { - return this.recursiveReadOnly != null; + public boolean hasSubPathExpr() { + return this.subPathExpr != null; } - public String getSubPath() { - return this.subPath; + public int hashCode() { + return Objects.hash(mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr); } - public A withSubPath(String subPath) { - this.subPath = subPath; - return (A) this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(mountPath == null)) { + sb.append("mountPath:"); + sb.append(mountPath); + sb.append(","); + } + if (!(mountPropagation == null)) { + sb.append("mountPropagation:"); + sb.append(mountPropagation); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(recursiveReadOnly == null)) { + sb.append("recursiveReadOnly:"); + sb.append(recursiveReadOnly); + sb.append(","); + } + if (!(subPath == null)) { + sb.append("subPath:"); + sb.append(subPath); + sb.append(","); + } + if (!(subPathExpr == null)) { + sb.append("subPathExpr:"); + sb.append(subPathExpr); + } + sb.append("}"); + return sb.toString(); } - public boolean hasSubPath() { - return this.subPath != null; + public A withMountPath(String mountPath) { + this.mountPath = mountPath; + return (A) this; } - public String getSubPathExpr() { - return this.subPathExpr; + public A withMountPropagation(String mountPropagation) { + this.mountPropagation = mountPropagation; + return (A) this; } - public A withSubPathExpr(String subPathExpr) { - this.subPathExpr = subPathExpr; + public A withName(String name) { + this.name = name; return (A) this; } - public boolean hasSubPathExpr() { - return this.subPathExpr != null; + public A withReadOnly() { + return withReadOnly(true); } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1VolumeMountFluent that = (V1VolumeMountFluent) o; - if (!java.util.Objects.equals(mountPath, that.mountPath)) return false; - 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 A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(mountPath, mountPropagation, name, readOnly, recursiveReadOnly, subPath, subPathExpr, super.hashCode()); + public A withRecursiveReadOnly(String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (mountPath != null) { sb.append("mountPath:"); sb.append(mountPath + ","); } - 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("}"); - return sb.toString(); + public A withSubPath(String subPath) { + this.subPath = subPath; + return (A) this; } - public A withReadOnly() { - return withReadOnly(true); + public A withSubPathExpr(String subPathExpr) { + this.subPathExpr = subPathExpr; + return (A) this; } - } \ No newline at end of file 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 index 3ed58ec456..637b9d2025 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeMountStatusBuilder extends V1VolumeMountStatusFluent implements VisitableBuilder{ + + V1VolumeMountStatusFluent fluent; + public V1VolumeMountStatusBuilder() { this(new V1VolumeMountStatus()); } @@ -10,17 +14,16 @@ 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 V1VolumeMountStatusBuilder(V1VolumeMountStatusFluent fluent,V1VolumeMountStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeMountStatus build() { V1VolumeMountStatus buildable = new V1VolumeMountStatus(); buildable.setMountPath(fluent.getMountPath()); @@ -30,5 +33,4 @@ public V1VolumeMountStatus build() { 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 index de5c185bd7..bce4adc72c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java @@ -1,119 +1,151 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeMountStatusFluent> extends BaseFluent{ +public class V1VolumeMountStatusFluent> extends BaseFluent{ + + private String mountPath; + private String name; + private Boolean readOnly; + private String recursiveReadOnly; + 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()); + 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()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeMountStatusFluent that = (V1VolumeMountStatusFluent) o; + if (!(Objects.equals(mountPath, that.mountPath))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(readOnly, that.readOnly))) { + return false; + } + if (!(Objects.equals(recursiveReadOnly, that.recursiveReadOnly))) { + return false; + } + return true; } - public boolean hasMountPath() { - return this.mountPath != null; + public String getMountPath() { + return this.mountPath; } 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 String getRecursiveReadOnly() { + return this.recursiveReadOnly; } - public boolean hasReadOnly() { - return this.readOnly != null; + public boolean hasMountPath() { + return this.mountPath != null; } - public String getRecursiveReadOnly() { - return this.recursiveReadOnly; + public boolean hasName() { + return this.name != null; } - public A withRecursiveReadOnly(String recursiveReadOnly) { - this.recursiveReadOnly = recursiveReadOnly; - return (A) this; + public boolean hasReadOnly() { + return this.readOnly != null; } 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()); + return Objects.hash(mountPath, name, readOnly, recursiveReadOnly); } 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); } + if (!(mountPath == null)) { + sb.append("mountPath:"); + sb.append(mountPath); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(readOnly == null)) { + sb.append("readOnly:"); + sb.append(readOnly); + sb.append(","); + } + if (!(recursiveReadOnly == null)) { + sb.append("recursiveReadOnly:"); + sb.append(recursiveReadOnly); + } sb.append("}"); return sb.toString(); } + public A withMountPath(String mountPath) { + this.mountPath = mountPath; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + public A withReadOnly() { return withReadOnly(true); } - + public A withReadOnly(Boolean readOnly) { + this.readOnly = readOnly; + return (A) this; + } + + public A withRecursiveReadOnly(String recursiveReadOnly) { + this.recursiveReadOnly = recursiveReadOnly; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java index 5098c6ee40..710d10807b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeNodeAffinityBuilder extends V1VolumeNodeAffinityFluent implements VisitableBuilder{ + + V1VolumeNodeAffinityFluent fluent; + public V1VolumeNodeAffinityBuilder() { this(new V1VolumeNodeAffinity()); } @@ -10,22 +14,20 @@ public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent) { this(fluent, new V1VolumeNodeAffinity()); } - public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent,V1VolumeNodeAffinity instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinity instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeNodeAffinityFluent fluent; + public V1VolumeNodeAffinityBuilder(V1VolumeNodeAffinityFluent fluent,V1VolumeNodeAffinity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeNodeAffinity build() { V1VolumeNodeAffinity buildable = new V1VolumeNodeAffinity(); buildable.setRequired(fluent.buildRequired()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java index 3613194eea..c75f25d6c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java @@ -1,97 +1,115 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeNodeAffinityFluent> extends BaseFluent{ +public class V1VolumeNodeAffinityFluent> extends BaseFluent{ + + private V1NodeSelectorBuilder required; + public V1VolumeNodeAffinityFluent() { } public V1VolumeNodeAffinityFluent(V1VolumeNodeAffinity instance) { this.copyInstance(instance); } - private V1NodeSelectorBuilder required; - - protected void copyInstance(V1VolumeNodeAffinity instance) { - instance = (instance != null ? instance : new V1VolumeNodeAffinity()); - if (instance != null) { - this.withRequired(instance.getRequired()); - } - } - + public V1NodeSelector buildRequired() { return this.required != null ? this.required.build() : null; } - public A withRequired(V1NodeSelector required) { - this._visitables.remove("required"); - if (required != null) { - this.required = new V1NodeSelectorBuilder(required); - this._visitables.get("required").add(this.required); - } else { - this.required = null; - this._visitables.get("required").remove(this.required); + protected void copyInstance(V1VolumeNodeAffinity instance) { + instance = instance != null ? instance : new V1VolumeNodeAffinity(); + if (instance != null) { + this.withRequired(instance.getRequired()); } - return (A) this; - } - - public boolean hasRequired() { - return this.required != null; } - public RequiredNested withNewRequired() { - return new RequiredNested(null); + public RequiredNested editOrNewRequired() { + return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(new V1NodeSelectorBuilder().build())); } - public RequiredNested withNewRequiredLike(V1NodeSelector item) { - return new RequiredNested(item); + public RequiredNested editOrNewRequiredLike(V1NodeSelector item) { + return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(item)); } public RequiredNested editRequired() { - return withNewRequiredLike(java.util.Optional.ofNullable(buildRequired()).orElse(null)); - } - - public RequiredNested editOrNewRequired() { - return withNewRequiredLike(java.util.Optional.ofNullable(buildRequired()).orElse(new V1NodeSelectorBuilder().build())); - } - - public RequiredNested editOrNewRequiredLike(V1NodeSelector item) { - return withNewRequiredLike(java.util.Optional.ofNullable(buildRequired()).orElse(item)); + return this.withNewRequiredLike(Optional.ofNullable(this.buildRequired()).orElse(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; + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } V1VolumeNodeAffinityFluent that = (V1VolumeNodeAffinityFluent) o; - if (!java.util.Objects.equals(required, that.required)) return false; + if (!(Objects.equals(required, that.required))) { + return false; + } return true; } + public boolean hasRequired() { + return this.required != null; + } + public int hashCode() { - return java.util.Objects.hash(required, super.hashCode()); + return Objects.hash(required); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (required != null) { sb.append("required:"); sb.append(required); } + if (!(required == null)) { + sb.append("required:"); + sb.append(required); + } sb.append("}"); return sb.toString(); } + + public RequiredNested withNewRequired() { + return new RequiredNested(null); + } + + public RequiredNested withNewRequiredLike(V1NodeSelector item) { + return new RequiredNested(item); + } + + public A withRequired(V1NodeSelector required) { + this._visitables.remove("required"); + if (required != null) { + this.required = new V1NodeSelectorBuilder(required); + this._visitables.get("required").add(this.required); + } else { + this.required = null; + this._visitables.get("required").remove(this.required); + } + return (A) this; + } public class RequiredNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + RequiredNested(V1NodeSelector item) { this.builder = new V1NodeSelectorBuilder(this, item); } - V1NodeSelectorBuilder builder; - + public N and() { return (N) V1VolumeNodeAffinityFluent.this.withRequired(builder.build()); } @@ -100,7 +118,5 @@ public N endRequired() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java index cb6b598ff9..bd21e0592f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeNodeResourcesBuilder extends V1VolumeNodeResourcesFluent implements VisitableBuilder{ + + V1VolumeNodeResourcesFluent fluent; + public V1VolumeNodeResourcesBuilder() { this(new V1VolumeNodeResources()); } @@ -10,22 +14,20 @@ public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent) { this(fluent, new V1VolumeNodeResources()); } - public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent,V1VolumeNodeResources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeNodeResourcesBuilder(V1VolumeNodeResources instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeNodeResourcesFluent fluent; + public V1VolumeNodeResourcesBuilder(V1VolumeNodeResourcesFluent fluent,V1VolumeNodeResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeNodeResources build() { V1VolumeNodeResources buildable = new V1VolumeNodeResources(); buildable.setCount(fluent.getCount()); return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java index bade872fcf..aed1a05e6a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java @@ -1,64 +1,78 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeNodeResourcesFluent> extends BaseFluent{ +public class V1VolumeNodeResourcesFluent> extends BaseFluent{ + + private Integer count; + public V1VolumeNodeResourcesFluent() { } public V1VolumeNodeResourcesFluent(V1VolumeNodeResources instance) { this.copyInstance(instance); } - private Integer count; - + protected void copyInstance(V1VolumeNodeResources instance) { - instance = (instance != null ? instance : new V1VolumeNodeResources()); + instance = instance != null ? instance : new V1VolumeNodeResources(); if (instance != null) { - this.withCount(instance.getCount()); - } + this.withCount(instance.getCount()); + } } - public Integer getCount() { - return this.count; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeNodeResourcesFluent that = (V1VolumeNodeResourcesFluent) o; + if (!(Objects.equals(count, that.count))) { + return false; + } + return true; } - public A withCount(Integer count) { - this.count = count; - return (A) this; + public Integer getCount() { + return this.count; } public boolean hasCount() { return this.count != 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; - V1VolumeNodeResourcesFluent that = (V1VolumeNodeResourcesFluent) o; - if (!java.util.Objects.equals(count, that.count)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(count, super.hashCode()); + return Objects.hash(count); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (count != null) { sb.append("count:"); sb.append(count); } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + } sb.append("}"); return sb.toString(); } - + public A withCount(Integer count) { + this.count = count; + return (A) this; + } + } \ 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 ea0c5e4e3c..a6400fba52 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeProjectionBuilder extends V1VolumeProjectionFluent implements VisitableBuilder{ + + V1VolumeProjectionFluent fluent; + public V1VolumeProjectionBuilder() { this(new V1VolumeProjection()); } @@ -10,26 +14,25 @@ public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent) { this(fluent, new V1VolumeProjection()); } - public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent,V1VolumeProjection instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VolumeProjectionBuilder(V1VolumeProjection instance) { this.fluent = this; this.copyInstance(instance); } - V1VolumeProjectionFluent fluent; + public V1VolumeProjectionBuilder(V1VolumeProjectionFluent fluent,V1VolumeProjection instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeProjection build() { V1VolumeProjection buildable = new V1VolumeProjection(); buildable.setClusterTrustBundle(fluent.buildClusterTrustBundle()); buildable.setConfigMap(fluent.buildConfigMap()); buildable.setDownwardAPI(fluent.buildDownwardAPI()); + buildable.setPodCertificate(fluent.buildPodCertificate()); buildable.setSecret(fluent.buildSecret()); buildable.setServiceAccountToken(fluent.buildServiceAccountToken()); return buildable; } - } \ No newline at end of file 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 7bdf479983..a38ba0c893 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 @@ -1,121 +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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeProjectionFluent> extends BaseFluent{ - public V1VolumeProjectionFluent() { - } - - public V1VolumeProjectionFluent(V1VolumeProjection instance) { - this.copyInstance(instance); - } +public class V1VolumeProjectionFluent> extends BaseFluent{ + private V1ClusterTrustBundleProjectionBuilder clusterTrustBundle; private V1ConfigMapProjectionBuilder configMap; private V1DownwardAPIProjectionBuilder downwardAPI; + private V1PodCertificateProjectionBuilder podCertificate; private V1SecretProjectionBuilder secret; private V1ServiceAccountTokenProjectionBuilder serviceAccountToken; - - 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()); - this.withServiceAccountToken(instance.getServiceAccountToken()); - } + + public V1VolumeProjectionFluent() { } + public V1VolumeProjectionFluent(V1VolumeProjection instance) { + this.copyInstance(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 V1ConfigMapProjection buildConfigMap() { + return this.configMap != null ? this.configMap.build() : null; } - public boolean hasClusterTrustBundle() { - return this.clusterTrustBundle != null; + public V1DownwardAPIProjection buildDownwardAPI() { + return this.downwardAPI != null ? this.downwardAPI.build() : null; } - public ClusterTrustBundleNested withNewClusterTrustBundle() { - return new ClusterTrustBundleNested(null); + public V1PodCertificateProjection buildPodCertificate() { + return this.podCertificate != null ? this.podCertificate.build() : null; } - public ClusterTrustBundleNested withNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { - return new ClusterTrustBundleNested(item); + public V1SecretProjection buildSecret() { + return this.secret != null ? this.secret.build() : null; + } + + public V1ServiceAccountTokenProjection buildServiceAccountToken() { + return this.serviceAccountToken != null ? this.serviceAccountToken.build() : null; + } + + 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.withPodCertificate(instance.getPodCertificate()); + this.withSecret(instance.getSecret()); + this.withServiceAccountToken(instance.getServiceAccountToken()); + } } public ClusterTrustBundleNested editClusterTrustBundle() { - return withNewClusterTrustBundleLike(java.util.Optional.ofNullable(buildClusterTrustBundle()).orElse(null)); + return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(null)); + } + + public ConfigMapNested editConfigMap() { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(null)); + } + + public DownwardAPINested editDownwardAPI() { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(null)); } public ClusterTrustBundleNested editOrNewClusterTrustBundle() { - return withNewClusterTrustBundleLike(java.util.Optional.ofNullable(buildClusterTrustBundle()).orElse(new V1ClusterTrustBundleProjectionBuilder().build())); + return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(new V1ClusterTrustBundleProjectionBuilder().build())); } public ClusterTrustBundleNested editOrNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { - return withNewClusterTrustBundleLike(java.util.Optional.ofNullable(buildClusterTrustBundle()).orElse(item)); + return this.withNewClusterTrustBundleLike(Optional.ofNullable(this.buildClusterTrustBundle()).orElse(item)); } - public V1ConfigMapProjection buildConfigMap() { - return this.configMap != null ? this.configMap.build() : null; + public ConfigMapNested editOrNewConfigMap() { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(new V1ConfigMapProjectionBuilder().build())); } - public A withConfigMap(V1ConfigMapProjection configMap) { - this._visitables.remove("configMap"); - if (configMap != null) { - this.configMap = new V1ConfigMapProjectionBuilder(configMap); - this._visitables.get("configMap").add(this.configMap); - } else { - this.configMap = null; - this._visitables.get("configMap").remove(this.configMap); + public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapProjection item) { + return this.withNewConfigMapLike(Optional.ofNullable(this.buildConfigMap()).orElse(item)); + } + + public DownwardAPINested editOrNewDownwardAPI() { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(new V1DownwardAPIProjectionBuilder().build())); + } + + public DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIProjection item) { + return this.withNewDownwardAPILike(Optional.ofNullable(this.buildDownwardAPI()).orElse(item)); + } + + public PodCertificateNested editOrNewPodCertificate() { + return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(new V1PodCertificateProjectionBuilder().build())); + } + + public PodCertificateNested editOrNewPodCertificateLike(V1PodCertificateProjection item) { + return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(item)); + } + + public SecretNested editOrNewSecret() { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(new V1SecretProjectionBuilder().build())); + } + + public SecretNested editOrNewSecretLike(V1SecretProjection item) { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(item)); + } + + public ServiceAccountTokenNested editOrNewServiceAccountToken() { + return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(new V1ServiceAccountTokenProjectionBuilder().build())); + } + + public ServiceAccountTokenNested editOrNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { + return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(item)); + } + + public PodCertificateNested editPodCertificate() { + return this.withNewPodCertificateLike(Optional.ofNullable(this.buildPodCertificate()).orElse(null)); + } + + public SecretNested editSecret() { + return this.withNewSecretLike(Optional.ofNullable(this.buildSecret()).orElse(null)); + } + + public ServiceAccountTokenNested editServiceAccountToken() { + return this.withNewServiceAccountTokenLike(Optional.ofNullable(this.buildServiceAccountToken()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeProjectionFluent that = (V1VolumeProjectionFluent) o; + if (!(Objects.equals(clusterTrustBundle, that.clusterTrustBundle))) { + return false; + } + if (!(Objects.equals(configMap, that.configMap))) { + return false; + } + if (!(Objects.equals(downwardAPI, that.downwardAPI))) { + return false; + } + if (!(Objects.equals(podCertificate, that.podCertificate))) { + return false; + } + if (!(Objects.equals(secret, that.secret))) { + return false; + } + if (!(Objects.equals(serviceAccountToken, that.serviceAccountToken))) { + return false; + } + return true; + } + + public boolean hasClusterTrustBundle() { + return this.clusterTrustBundle != null; } public boolean hasConfigMap() { return this.configMap != null; } - public ConfigMapNested withNewConfigMap() { - return new ConfigMapNested(null); + public boolean hasDownwardAPI() { + return this.downwardAPI != null; } - public ConfigMapNested withNewConfigMapLike(V1ConfigMapProjection item) { - return new ConfigMapNested(item); + public boolean hasPodCertificate() { + return this.podCertificate != null; } - public ConfigMapNested editConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(null)); + public boolean hasSecret() { + return this.secret != null; } - public ConfigMapNested editOrNewConfigMap() { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(new V1ConfigMapProjectionBuilder().build())); + public boolean hasServiceAccountToken() { + return this.serviceAccountToken != null; } - public ConfigMapNested editOrNewConfigMapLike(V1ConfigMapProjection item) { - return withNewConfigMapLike(java.util.Optional.ofNullable(buildConfigMap()).orElse(item)); + public int hashCode() { + return Objects.hash(clusterTrustBundle, configMap, downwardAPI, podCertificate, secret, serviceAccountToken); } - public V1DownwardAPIProjection buildDownwardAPI() { - return this.downwardAPI != null ? this.downwardAPI.build() : null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(clusterTrustBundle == null)) { + sb.append("clusterTrustBundle:"); + sb.append(clusterTrustBundle); + sb.append(","); + } + if (!(configMap == null)) { + sb.append("configMap:"); + sb.append(configMap); + sb.append(","); + } + if (!(downwardAPI == null)) { + sb.append("downwardAPI:"); + sb.append(downwardAPI); + sb.append(","); + } + if (!(podCertificate == null)) { + sb.append("podCertificate:"); + sb.append(podCertificate); + sb.append(","); + } + if (!(secret == null)) { + sb.append("secret:"); + sb.append(secret); + sb.append(","); + } + if (!(serviceAccountToken == null)) { + sb.append("serviceAccountToken:"); + sb.append(serviceAccountToken); + } + sb.append("}"); + return sb.toString(); + } + + 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 A withConfigMap(V1ConfigMapProjection configMap) { + this._visitables.remove("configMap"); + if (configMap != null) { + this.configMap = new V1ConfigMapProjectionBuilder(configMap); + this._visitables.get("configMap").add(this.configMap); + } else { + this.configMap = null; + this._visitables.get("configMap").remove(this.configMap); + } + return (A) this; } public A withDownwardAPI(V1DownwardAPIProjection downwardAPI) { @@ -130,48 +269,36 @@ public A withDownwardAPI(V1DownwardAPIProjection downwardAPI) { return (A) this; } - public boolean hasDownwardAPI() { - return this.downwardAPI != null; - } - - public DownwardAPINested withNewDownwardAPI() { - return new DownwardAPINested(null); + public ClusterTrustBundleNested withNewClusterTrustBundle() { + return new ClusterTrustBundleNested(null); } - public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIProjection item) { - return new DownwardAPINested(item); + public ClusterTrustBundleNested withNewClusterTrustBundleLike(V1ClusterTrustBundleProjection item) { + return new ClusterTrustBundleNested(item); } - public DownwardAPINested editDownwardAPI() { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(null)); + public ConfigMapNested withNewConfigMap() { + return new ConfigMapNested(null); } - public DownwardAPINested editOrNewDownwardAPI() { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(new V1DownwardAPIProjectionBuilder().build())); + public ConfigMapNested withNewConfigMapLike(V1ConfigMapProjection item) { + return new ConfigMapNested(item); } - public DownwardAPINested editOrNewDownwardAPILike(V1DownwardAPIProjection item) { - return withNewDownwardAPILike(java.util.Optional.ofNullable(buildDownwardAPI()).orElse(item)); + public DownwardAPINested withNewDownwardAPI() { + return new DownwardAPINested(null); } - public V1SecretProjection buildSecret() { - return this.secret != null ? this.secret.build() : null; + public DownwardAPINested withNewDownwardAPILike(V1DownwardAPIProjection item) { + return new DownwardAPINested(item); } - public A withSecret(V1SecretProjection secret) { - this._visitables.remove("secret"); - if (secret != null) { - this.secret = new V1SecretProjectionBuilder(secret); - this._visitables.get("secret").add(this.secret); - } else { - this.secret = null; - this._visitables.get("secret").remove(this.secret); - } - return (A) this; + public PodCertificateNested withNewPodCertificate() { + return new PodCertificateNested(null); } - public boolean hasSecret() { - return this.secret != null; + public PodCertificateNested withNewPodCertificateLike(V1PodCertificateProjection item) { + return new PodCertificateNested(item); } public SecretNested withNewSecret() { @@ -182,20 +309,36 @@ public SecretNested withNewSecretLike(V1SecretProjection item) { return new SecretNested(item); } - public SecretNested editSecret() { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(null)); + public ServiceAccountTokenNested withNewServiceAccountToken() { + return new ServiceAccountTokenNested(null); } - public SecretNested editOrNewSecret() { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(new V1SecretProjectionBuilder().build())); + public ServiceAccountTokenNested withNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { + return new ServiceAccountTokenNested(item); } - public SecretNested editOrNewSecretLike(V1SecretProjection item) { - return withNewSecretLike(java.util.Optional.ofNullable(buildSecret()).orElse(item)); + public A withPodCertificate(V1PodCertificateProjection podCertificate) { + this._visitables.remove("podCertificate"); + if (podCertificate != null) { + this.podCertificate = new V1PodCertificateProjectionBuilder(podCertificate); + this._visitables.get("podCertificate").add(this.podCertificate); + } else { + this.podCertificate = null; + this._visitables.get("podCertificate").remove(this.podCertificate); + } + return (A) this; } - public V1ServiceAccountTokenProjection buildServiceAccountToken() { - return this.serviceAccountToken != null ? this.serviceAccountToken.build() : null; + public A withSecret(V1SecretProjection secret) { + this._visitables.remove("secret"); + if (secret != null) { + this.secret = new V1SecretProjectionBuilder(secret); + this._visitables.get("secret").add(this.secret); + } else { + this.secret = null; + this._visitables.get("secret").remove(this.secret); + } + return (A) this; } public A withServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken) { @@ -209,65 +352,14 @@ public A withServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountT } return (A) this; } + public class ClusterTrustBundleNested extends V1ClusterTrustBundleProjectionFluent> implements Nested{ - public boolean hasServiceAccountToken() { - return this.serviceAccountToken != null; - } - - public ServiceAccountTokenNested withNewServiceAccountToken() { - return new ServiceAccountTokenNested(null); - } - - public ServiceAccountTokenNested withNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { - return new ServiceAccountTokenNested(item); - } - - public ServiceAccountTokenNested editServiceAccountToken() { - return withNewServiceAccountTokenLike(java.util.Optional.ofNullable(buildServiceAccountToken()).orElse(null)); - } - - public ServiceAccountTokenNested editOrNewServiceAccountToken() { - return withNewServiceAccountTokenLike(java.util.Optional.ofNullable(buildServiceAccountToken()).orElse(new V1ServiceAccountTokenProjectionBuilder().build())); - } - - public ServiceAccountTokenNested editOrNewServiceAccountTokenLike(V1ServiceAccountTokenProjection item) { - return withNewServiceAccountTokenLike(java.util.Optional.ofNullable(buildServiceAccountToken()).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; - 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; - if (!java.util.Objects.equals(serviceAccountToken, that.serviceAccountToken)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(clusterTrustBundle, configMap, downwardAPI, secret, serviceAccountToken, super.hashCode()); - } + V1ClusterTrustBundleProjectionBuilder builder; - 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()); } @@ -276,14 +368,15 @@ public N endClusterTrustBundle() { return and(); } - } public class ConfigMapNested extends V1ConfigMapProjectionFluent> implements Nested{ + + V1ConfigMapProjectionBuilder builder; + ConfigMapNested(V1ConfigMapProjection item) { this.builder = new V1ConfigMapProjectionBuilder(this, item); } - V1ConfigMapProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withConfigMap(builder.build()); } @@ -292,14 +385,15 @@ public N endConfigMap() { return and(); } - } public class DownwardAPINested extends V1DownwardAPIProjectionFluent> implements Nested{ + + V1DownwardAPIProjectionBuilder builder; + DownwardAPINested(V1DownwardAPIProjection item) { this.builder = new V1DownwardAPIProjectionBuilder(this, item); } - V1DownwardAPIProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withDownwardAPI(builder.build()); } @@ -308,14 +402,32 @@ public N endDownwardAPI() { return and(); } + } + public class PodCertificateNested extends V1PodCertificateProjectionFluent> implements Nested{ + + V1PodCertificateProjectionBuilder builder; + PodCertificateNested(V1PodCertificateProjection item) { + this.builder = new V1PodCertificateProjectionBuilder(this, item); + } + + public N and() { + return (N) V1VolumeProjectionFluent.this.withPodCertificate(builder.build()); + } + + public N endPodCertificate() { + return and(); + } + } public class SecretNested extends V1SecretProjectionFluent> implements Nested{ + + V1SecretProjectionBuilder builder; + SecretNested(V1SecretProjection item) { this.builder = new V1SecretProjectionBuilder(this, item); } - V1SecretProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withSecret(builder.build()); } @@ -324,14 +436,15 @@ public N endSecret() { return and(); } - } public class ServiceAccountTokenNested extends V1ServiceAccountTokenProjectionFluent> implements Nested{ + + V1ServiceAccountTokenProjectionBuilder builder; + ServiceAccountTokenNested(V1ServiceAccountTokenProjection item) { this.builder = new V1ServiceAccountTokenProjectionBuilder(this, item); } - V1ServiceAccountTokenProjectionBuilder builder; - + public N and() { return (N) V1VolumeProjectionFluent.this.withServiceAccountToken(builder.build()); } @@ -340,7 +453,5 @@ public N endServiceAccountToken() { return and(); } - } - } \ No newline at end of file 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 index 80c34b2188..4abee73f85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VolumeResourceRequirementsBuilder extends V1VolumeResourceRequirementsFluent implements VisitableBuilder{ + + V1VolumeResourceRequirementsFluent fluent; + public V1VolumeResourceRequirementsBuilder() { this(new V1VolumeResourceRequirements()); } @@ -10,17 +14,16 @@ public V1VolumeResourceRequirementsBuilder(V1VolumeResourceRequirementsFluent 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 V1VolumeResourceRequirementsBuilder(V1VolumeResourceRequirementsFluent fluent,V1VolumeResourceRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VolumeResourceRequirements build() { V1VolumeResourceRequirements buildable = new V1VolumeResourceRequirements(); buildable.setLimits(fluent.getLimits()); @@ -28,5 +31,4 @@ public V1VolumeResourceRequirements build() { 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 index 4c4f04e7ff..acf85c5f72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java @@ -1,131 +1,199 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; import java.lang.String; -import java.util.Map; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VolumeResourceRequirementsFluent> extends BaseFluent{ +public class V1VolumeResourceRequirementsFluent> extends BaseFluent{ + + private Map limits; + private Map requests; + 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(Map map) { + if (this.limits == null && map != null) { + this.limits = new LinkedHashMap(); + } + if (map != null) { + this.limits.putAll(map); + } + return (A) this; } 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; + 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 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 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 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 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; + protected void copyInstance(V1VolumeResourceRequirements instance) { + instance = instance != null ? instance : new V1VolumeResourceRequirements(); + if (instance != null) { + this.withLimits(instance.getLimits()); + this.withRequests(instance.getRequests()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeResourceRequirementsFluent that = (V1VolumeResourceRequirementsFluent) o; + if (!(Objects.equals(limits, that.limits))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; } 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 Map getRequests() { + return this.requests; } 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 boolean hasRequests() { + return this.requests != null; } - public Map getRequests() { - return this.requests; + public int hashCode() { + return Objects.hash(limits, requests); } - public A withRequests(Map requests) { - if (requests == null) { - this.requests = null; - } else { - this.requests = new LinkedHashMap(requests); + 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 boolean hasRequests() { - return this.requests != null; + 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 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 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 int hashCode() { - return java.util.Objects.hash(limits, requests, super.hashCode()); + 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 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); } + if (!(limits == null) && !(limits.isEmpty())) { + sb.append("limits:"); + sb.append(limits); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } sb.append("}"); return sb.toString(); } - + public A withLimits(Map limits) { + if (limits == null) { + this.limits = null; + } else { + this.limits = new LinkedHashMap(limits); + } + return (A) this; + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java index 946ed5ef6d..77a1a1cd91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1VsphereVirtualDiskVolumeSourceBuilder extends V1VsphereVirtualDiskVolumeSourceFluent implements VisitableBuilder{ + + V1VsphereVirtualDiskVolumeSourceFluent fluent; + public V1VsphereVirtualDiskVolumeSourceBuilder() { this(new V1VsphereVirtualDiskVolumeSource()); } @@ -10,17 +14,16 @@ public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceF this(fluent, new V1VsphereVirtualDiskVolumeSource()); } - public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceFluent fluent,V1VsphereVirtualDiskVolumeSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSource instance) { this.fluent = this; this.copyInstance(instance); } - V1VsphereVirtualDiskVolumeSourceFluent fluent; + public V1VsphereVirtualDiskVolumeSourceBuilder(V1VsphereVirtualDiskVolumeSourceFluent fluent,V1VsphereVirtualDiskVolumeSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1VsphereVirtualDiskVolumeSource build() { V1VsphereVirtualDiskVolumeSource buildable = new V1VsphereVirtualDiskVolumeSource(); buildable.setFsType(fluent.getFsType()); @@ -30,5 +33,4 @@ public V1VsphereVirtualDiskVolumeSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java index 29b1915140..cfdbeffad7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java @@ -1,114 +1,146 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1VsphereVirtualDiskVolumeSourceFluent> extends BaseFluent{ +public class V1VsphereVirtualDiskVolumeSourceFluent> extends BaseFluent{ + + private String fsType; + private String storagePolicyID; + private String storagePolicyName; + private String volumePath; + public V1VsphereVirtualDiskVolumeSourceFluent() { } public V1VsphereVirtualDiskVolumeSourceFluent(V1VsphereVirtualDiskVolumeSource instance) { this.copyInstance(instance); } - private String fsType; - private String storagePolicyID; - private String storagePolicyName; - private String volumePath; - + protected void copyInstance(V1VsphereVirtualDiskVolumeSource instance) { - instance = (instance != null ? instance : new V1VsphereVirtualDiskVolumeSource()); + instance = instance != null ? instance : new V1VsphereVirtualDiskVolumeSource(); if (instance != null) { - this.withFsType(instance.getFsType()); - this.withStoragePolicyID(instance.getStoragePolicyID()); - this.withStoragePolicyName(instance.getStoragePolicyName()); - this.withVolumePath(instance.getVolumePath()); - } - } - - public String getFsType() { - return this.fsType; + this.withFsType(instance.getFsType()); + this.withStoragePolicyID(instance.getStoragePolicyID()); + this.withStoragePolicyName(instance.getStoragePolicyName()); + this.withVolumePath(instance.getVolumePath()); + } } - public A withFsType(String fsType) { - this.fsType = fsType; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VsphereVirtualDiskVolumeSourceFluent that = (V1VsphereVirtualDiskVolumeSourceFluent) o; + if (!(Objects.equals(fsType, that.fsType))) { + return false; + } + if (!(Objects.equals(storagePolicyID, that.storagePolicyID))) { + return false; + } + if (!(Objects.equals(storagePolicyName, that.storagePolicyName))) { + return false; + } + if (!(Objects.equals(volumePath, that.volumePath))) { + return false; + } + return true; } - public boolean hasFsType() { - return this.fsType != null; + public String getFsType() { + return this.fsType; } public String getStoragePolicyID() { return this.storagePolicyID; } - public A withStoragePolicyID(String storagePolicyID) { - this.storagePolicyID = storagePolicyID; - return (A) this; - } - - public boolean hasStoragePolicyID() { - return this.storagePolicyID != null; - } - public String getStoragePolicyName() { return this.storagePolicyName; } - public A withStoragePolicyName(String storagePolicyName) { - this.storagePolicyName = storagePolicyName; - return (A) this; + public String getVolumePath() { + return this.volumePath; } - public boolean hasStoragePolicyName() { - return this.storagePolicyName != null; + public boolean hasFsType() { + return this.fsType != null; } - public String getVolumePath() { - return this.volumePath; + public boolean hasStoragePolicyID() { + return this.storagePolicyID != null; } - public A withVolumePath(String volumePath) { - this.volumePath = volumePath; - return (A) this; + public boolean hasStoragePolicyName() { + return this.storagePolicyName != null; } public boolean hasVolumePath() { return this.volumePath != 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; - V1VsphereVirtualDiskVolumeSourceFluent that = (V1VsphereVirtualDiskVolumeSourceFluent) o; - if (!java.util.Objects.equals(fsType, that.fsType)) return false; - if (!java.util.Objects.equals(storagePolicyID, that.storagePolicyID)) return false; - if (!java.util.Objects.equals(storagePolicyName, that.storagePolicyName)) return false; - if (!java.util.Objects.equals(volumePath, that.volumePath)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(fsType, storagePolicyID, storagePolicyName, volumePath, super.hashCode()); + return Objects.hash(fsType, storagePolicyID, storagePolicyName, volumePath); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (fsType != null) { sb.append("fsType:"); sb.append(fsType + ","); } - if (storagePolicyID != null) { sb.append("storagePolicyID:"); sb.append(storagePolicyID + ","); } - if (storagePolicyName != null) { sb.append("storagePolicyName:"); sb.append(storagePolicyName + ","); } - if (volumePath != null) { sb.append("volumePath:"); sb.append(volumePath); } + if (!(fsType == null)) { + sb.append("fsType:"); + sb.append(fsType); + sb.append(","); + } + if (!(storagePolicyID == null)) { + sb.append("storagePolicyID:"); + sb.append(storagePolicyID); + sb.append(","); + } + if (!(storagePolicyName == null)) { + sb.append("storagePolicyName:"); + sb.append(storagePolicyName); + sb.append(","); + } + if (!(volumePath == null)) { + sb.append("volumePath:"); + sb.append(volumePath); + } sb.append("}"); return sb.toString(); } - + public A withFsType(String fsType) { + this.fsType = fsType; + return (A) this; + } + + public A withStoragePolicyID(String storagePolicyID) { + this.storagePolicyID = storagePolicyID; + return (A) this; + } + + public A withStoragePolicyName(String storagePolicyName) { + this.storagePolicyName = storagePolicyName; + return (A) this; + } + + public A withVolumePath(String volumePath) { + this.volumePath = volumePath; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java index efdc4056e4..13ff448b31 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1WatchEventBuilder extends V1WatchEventFluent implements VisitableBuilder{ + + V1WatchEventFluent fluent; + public V1WatchEventBuilder() { this(new V1WatchEvent()); } @@ -10,17 +14,16 @@ public V1WatchEventBuilder(V1WatchEventFluent fluent) { this(fluent, new V1WatchEvent()); } - public V1WatchEventBuilder(V1WatchEventFluent fluent,V1WatchEvent instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1WatchEventBuilder(V1WatchEvent instance) { this.fluent = this; this.copyInstance(instance); } - V1WatchEventFluent fluent; + public V1WatchEventBuilder(V1WatchEventFluent fluent,V1WatchEvent instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1WatchEvent build() { V1WatchEvent buildable = new V1WatchEvent(); buildable.setObject(fluent.getObject()); @@ -28,5 +31,4 @@ public V1WatchEvent build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java index c25ce17a29..ae1ac6962b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1WatchEventFluent> extends BaseFluent{ +public class V1WatchEventFluent> extends BaseFluent{ + + private Object _object; + private String type; + public V1WatchEventFluent() { } public V1WatchEventFluent(V1WatchEvent instance) { this.copyInstance(instance); } - private Object _object; - private String type; - + protected void copyInstance(V1WatchEvent instance) { - instance = (instance != null ? instance : new V1WatchEvent()); + instance = instance != null ? instance : new V1WatchEvent(); if (instance != null) { - this.withObject(instance.getObject()); - this.withType(instance.getType()); - } + this.withObject(instance.getObject()); + this.withType(instance.getType()); + } } - public Object getObject() { - return this._object; - } - - public A withObject(Object _object) { - this._object = _object; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1WatchEventFluent that = (V1WatchEventFluent) o; + if (!(Objects.equals(_object, that._object))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasObject() { - return this._object != null; + public Object getObject() { + return this._object; } public String getType() { return this.type; } - public A withType(String type) { - this.type = type; - return (A) this; + public boolean hasObject() { + return this._object != null; } 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; - V1WatchEventFluent that = (V1WatchEventFluent) o; - if (!java.util.Objects.equals(_object, that._object)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(_object, type, super.hashCode()); + return Objects.hash(_object, type); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } + if (!(_object == null)) { + sb.append("_object:"); + sb.append(_object); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } sb.append("}"); return sb.toString(); } - + public A withObject(Object _object) { + this._object = _object; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java index 6638d1360e..2296be0ae3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1WebhookConversionBuilder extends V1WebhookConversionFluent implements VisitableBuilder{ + + V1WebhookConversionFluent fluent; + public V1WebhookConversionBuilder() { this(new V1WebhookConversion()); } @@ -10,17 +14,16 @@ public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent) { this(fluent, new V1WebhookConversion()); } - public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent,V1WebhookConversion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1WebhookConversionBuilder(V1WebhookConversion instance) { this.fluent = this; this.copyInstance(instance); } - V1WebhookConversionFluent fluent; + public V1WebhookConversionBuilder(V1WebhookConversionFluent fluent,V1WebhookConversion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1WebhookConversion build() { V1WebhookConversion buildable = new V1WebhookConversion(); buildable.setClientConfig(fluent.buildClientConfig()); @@ -28,5 +31,4 @@ public V1WebhookConversion build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java index 3734a0eef9..79f3674909 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java @@ -1,116 +1,114 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1WebhookConversionFluent> extends BaseFluent{ +public class V1WebhookConversionFluent> extends BaseFluent{ + + private ApiextensionsV1WebhookClientConfigBuilder clientConfig; + private List conversionReviewVersions; + public V1WebhookConversionFluent() { } public V1WebhookConversionFluent(V1WebhookConversion instance) { this.copyInstance(instance); } - private ApiextensionsV1WebhookClientConfigBuilder clientConfig; - private List conversionReviewVersions; - - protected void copyInstance(V1WebhookConversion instance) { - instance = (instance != null ? instance : new V1WebhookConversion()); - if (instance != null) { - this.withClientConfig(instance.getClientConfig()); - this.withConversionReviewVersions(instance.getConversionReviewVersions()); - } - } - - public ApiextensionsV1WebhookClientConfig buildClientConfig() { - return this.clientConfig != null ? this.clientConfig.build() : null; + + public A addAllToConversionReviewVersions(Collection items) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.conversionReviewVersions.add(item); + } + return (A) this; } - public A withClientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { - this._visitables.remove("clientConfig"); - if (clientConfig != null) { - this.clientConfig = new ApiextensionsV1WebhookClientConfigBuilder(clientConfig); - this._visitables.get("clientConfig").add(this.clientConfig); - } else { - this.clientConfig = null; - this._visitables.get("clientConfig").remove(this.clientConfig); + public A addToConversionReviewVersions(String... items) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + for (String item : items) { + this.conversionReviewVersions.add(item); } return (A) this; } - public boolean hasClientConfig() { - return this.clientConfig != null; + public A addToConversionReviewVersions(int index,String item) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + this.conversionReviewVersions.add(index, item); + return (A) this; } - public ClientConfigNested withNewClientConfig() { - return new ClientConfigNested(null); + public ApiextensionsV1WebhookClientConfig buildClientConfig() { + return this.clientConfig != null ? this.clientConfig.build() : null; } - public ClientConfigNested withNewClientConfigLike(ApiextensionsV1WebhookClientConfig item) { - return new ClientConfigNested(item); + protected void copyInstance(V1WebhookConversion instance) { + instance = instance != null ? instance : new V1WebhookConversion(); + if (instance != null) { + this.withClientConfig(instance.getClientConfig()); + this.withConversionReviewVersions(instance.getConversionReviewVersions()); + } } public ClientConfigNested editClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(null)); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(null)); } public ClientConfigNested editOrNewClientConfig() { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(new ApiextensionsV1WebhookClientConfigBuilder().build())); + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(new ApiextensionsV1WebhookClientConfigBuilder().build())); } public ClientConfigNested editOrNewClientConfigLike(ApiextensionsV1WebhookClientConfig item) { - return withNewClientConfigLike(java.util.Optional.ofNullable(buildClientConfig()).orElse(item)); - } - - public A addToConversionReviewVersions(int index,String item) { - if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} - this.conversionReviewVersions.add(index, item); - return (A)this; + return this.withNewClientConfigLike(Optional.ofNullable(this.buildClientConfig()).orElse(item)); } - public A setToConversionReviewVersions(int index,String item) { - if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} - this.conversionReviewVersions.set(index, item); return (A)this; - } - - public A addToConversionReviewVersions(java.lang.String... items) { - if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} - for (String item : items) {this.conversionReviewVersions.add(item);} return (A)this; - } - - public A addAllToConversionReviewVersions(Collection items) { - if (this.conversionReviewVersions == null) {this.conversionReviewVersions = new ArrayList();} - for (String item : items) {this.conversionReviewVersions.add(item);} return (A)this; - } - - public A removeFromConversionReviewVersions(java.lang.String... items) { - if (this.conversionReviewVersions == null) return (A)this; - for (String item : items) { this.conversionReviewVersions.remove(item);} return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1WebhookConversionFluent that = (V1WebhookConversionFluent) o; + if (!(Objects.equals(clientConfig, that.clientConfig))) { + return false; + } + if (!(Objects.equals(conversionReviewVersions, that.conversionReviewVersions))) { + return false; + } + return true; } - public A removeAllFromConversionReviewVersions(Collection items) { - if (this.conversionReviewVersions == null) return (A)this; - for (String item : items) { this.conversionReviewVersions.remove(item);} return (A)this; + public String getConversionReviewVersion(int index) { + return this.conversionReviewVersions.get(index); } public List getConversionReviewVersions() { return this.conversionReviewVersions; } - public String getConversionReviewVersion(int index) { - return this.conversionReviewVersions.get(index); - } - public String getFirstConversionReviewVersion() { return this.conversionReviewVersions.get(0); } @@ -128,6 +126,14 @@ public String getMatchingConversionReviewVersion(Predicate predicate) { return null; } + public boolean hasClientConfig() { + return this.clientConfig != null; + } + + public boolean hasConversionReviewVersions() { + return this.conversionReviewVersions != null && !(this.conversionReviewVersions.isEmpty()); + } + public boolean hasMatchingConversionReviewVersion(Predicate predicate) { for (String item : conversionReviewVersions) { if (predicate.test(item)) { @@ -137,6 +143,66 @@ public boolean hasMatchingConversionReviewVersion(Predicate predicate) { return false; } + public int hashCode() { + return Objects.hash(clientConfig, conversionReviewVersions); + } + + public A removeAllFromConversionReviewVersions(Collection items) { + if (this.conversionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.conversionReviewVersions.remove(item); + } + return (A) this; + } + + public A removeFromConversionReviewVersions(String... items) { + if (this.conversionReviewVersions == null) { + return (A) this; + } + for (String item : items) { + this.conversionReviewVersions.remove(item); + } + return (A) this; + } + + public A setToConversionReviewVersions(int index,String item) { + if (this.conversionReviewVersions == null) { + this.conversionReviewVersions = new ArrayList(); + } + this.conversionReviewVersions.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(clientConfig == null)) { + sb.append("clientConfig:"); + sb.append(clientConfig); + sb.append(","); + } + if (!(conversionReviewVersions == null) && !(conversionReviewVersions.isEmpty())) { + sb.append("conversionReviewVersions:"); + sb.append(conversionReviewVersions); + } + sb.append("}"); + return sb.toString(); + } + + public A withClientConfig(ApiextensionsV1WebhookClientConfig clientConfig) { + this._visitables.remove("clientConfig"); + if (clientConfig != null) { + this.clientConfig = new ApiextensionsV1WebhookClientConfigBuilder(clientConfig); + this._visitables.get("clientConfig").add(this.clientConfig); + } else { + this.clientConfig = null; + this._visitables.get("clientConfig").remove(this.clientConfig); + } + return (A) this; + } + public A withConversionReviewVersions(List conversionReviewVersions) { if (conversionReviewVersions != null) { this.conversionReviewVersions = new ArrayList(); @@ -149,7 +215,7 @@ public A withConversionReviewVersions(List conversionReviewVersions) { return (A) this; } - public A withConversionReviewVersions(java.lang.String... conversionReviewVersions) { + public A withConversionReviewVersions(String... conversionReviewVersions) { if (this.conversionReviewVersions != null) { this.conversionReviewVersions.clear(); _visitables.remove("conversionReviewVersions"); @@ -162,38 +228,21 @@ public A withConversionReviewVersions(java.lang.String... conversionReviewVersio return (A) this; } - public boolean hasConversionReviewVersions() { - return this.conversionReviewVersions != null && !this.conversionReviewVersions.isEmpty(); + public ClientConfigNested withNewClientConfig() { + return new ClientConfigNested(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; - V1WebhookConversionFluent that = (V1WebhookConversionFluent) o; - if (!java.util.Objects.equals(clientConfig, that.clientConfig)) return false; - if (!java.util.Objects.equals(conversionReviewVersions, that.conversionReviewVersions)) return false; - return true; + public ClientConfigNested withNewClientConfigLike(ApiextensionsV1WebhookClientConfig item) { + return new ClientConfigNested(item); } + public class ClientConfigNested extends ApiextensionsV1WebhookClientConfigFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(clientConfig, conversionReviewVersions, super.hashCode()); - } + ApiextensionsV1WebhookClientConfigBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (clientConfig != null) { sb.append("clientConfig:"); sb.append(clientConfig + ","); } - if (conversionReviewVersions != null && !conversionReviewVersions.isEmpty()) { sb.append("conversionReviewVersions:"); sb.append(conversionReviewVersions); } - sb.append("}"); - return sb.toString(); - } - public class ClientConfigNested extends ApiextensionsV1WebhookClientConfigFluent> implements Nested{ ClientConfigNested(ApiextensionsV1WebhookClientConfig item) { this.builder = new ApiextensionsV1WebhookClientConfigBuilder(this, item); } - ApiextensionsV1WebhookClientConfigBuilder builder; - + public N and() { return (N) V1WebhookConversionFluent.this.withClientConfig(builder.build()); } @@ -202,7 +251,5 @@ public N endClientConfig() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java index 9eb52fd0f2..ebe8e7ab9d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1WeightedPodAffinityTermBuilder extends V1WeightedPodAffinityTermFluent implements VisitableBuilder{ + + V1WeightedPodAffinityTermFluent fluent; + public V1WeightedPodAffinityTermBuilder() { this(new V1WeightedPodAffinityTerm()); } @@ -10,17 +14,16 @@ public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluen this(fluent, new V1WeightedPodAffinityTerm()); } - public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluent,V1WeightedPodAffinityTerm instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTerm instance) { this.fluent = this; this.copyInstance(instance); } - V1WeightedPodAffinityTermFluent fluent; + public V1WeightedPodAffinityTermBuilder(V1WeightedPodAffinityTermFluent fluent,V1WeightedPodAffinityTerm instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1WeightedPodAffinityTerm build() { V1WeightedPodAffinityTerm buildable = new V1WeightedPodAffinityTerm(); buildable.setPodAffinityTerm(fluent.buildPodAffinityTerm()); @@ -28,5 +31,4 @@ public V1WeightedPodAffinityTerm build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java index 706e21287b..a722801f3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java @@ -1,115 +1,139 @@ 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.String; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1WeightedPodAffinityTermFluent> extends BaseFluent{ +public class V1WeightedPodAffinityTermFluent> extends BaseFluent{ + + private V1PodAffinityTermBuilder podAffinityTerm; + private Integer weight; + public V1WeightedPodAffinityTermFluent() { } public V1WeightedPodAffinityTermFluent(V1WeightedPodAffinityTerm instance) { this.copyInstance(instance); } - private V1PodAffinityTermBuilder podAffinityTerm; - private Integer weight; - - protected void copyInstance(V1WeightedPodAffinityTerm instance) { - instance = (instance != null ? instance : new V1WeightedPodAffinityTerm()); - if (instance != null) { - this.withPodAffinityTerm(instance.getPodAffinityTerm()); - this.withWeight(instance.getWeight()); - } - } - + public V1PodAffinityTerm buildPodAffinityTerm() { return this.podAffinityTerm != null ? this.podAffinityTerm.build() : null; } - public A withPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { - this._visitables.remove("podAffinityTerm"); - if (podAffinityTerm != null) { - this.podAffinityTerm = new V1PodAffinityTermBuilder(podAffinityTerm); - this._visitables.get("podAffinityTerm").add(this.podAffinityTerm); - } else { - this.podAffinityTerm = null; - this._visitables.get("podAffinityTerm").remove(this.podAffinityTerm); + protected void copyInstance(V1WeightedPodAffinityTerm instance) { + instance = instance != null ? instance : new V1WeightedPodAffinityTerm(); + if (instance != null) { + this.withPodAffinityTerm(instance.getPodAffinityTerm()); + this.withWeight(instance.getWeight()); } - return (A) this; - } - - public boolean hasPodAffinityTerm() { - return this.podAffinityTerm != null; } - public PodAffinityTermNested withNewPodAffinityTerm() { - return new PodAffinityTermNested(null); + public PodAffinityTermNested editOrNewPodAffinityTerm() { + return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(new V1PodAffinityTermBuilder().build())); } - public PodAffinityTermNested withNewPodAffinityTermLike(V1PodAffinityTerm item) { - return new PodAffinityTermNested(item); + public PodAffinityTermNested editOrNewPodAffinityTermLike(V1PodAffinityTerm item) { + return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(item)); } public PodAffinityTermNested editPodAffinityTerm() { - return withNewPodAffinityTermLike(java.util.Optional.ofNullable(buildPodAffinityTerm()).orElse(null)); - } - - public PodAffinityTermNested editOrNewPodAffinityTerm() { - return withNewPodAffinityTermLike(java.util.Optional.ofNullable(buildPodAffinityTerm()).orElse(new V1PodAffinityTermBuilder().build())); + return this.withNewPodAffinityTermLike(Optional.ofNullable(this.buildPodAffinityTerm()).orElse(null)); } - public PodAffinityTermNested editOrNewPodAffinityTermLike(V1PodAffinityTerm item) { - return withNewPodAffinityTermLike(java.util.Optional.ofNullable(buildPodAffinityTerm()).orElse(item)); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1WeightedPodAffinityTermFluent that = (V1WeightedPodAffinityTermFluent) o; + if (!(Objects.equals(podAffinityTerm, that.podAffinityTerm))) { + return false; + } + if (!(Objects.equals(weight, that.weight))) { + return false; + } + return true; } public Integer getWeight() { return this.weight; } - public A withWeight(Integer weight) { - this.weight = weight; - return (A) this; + public boolean hasPodAffinityTerm() { + return this.podAffinityTerm != null; } public boolean hasWeight() { return this.weight != 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; - V1WeightedPodAffinityTermFluent that = (V1WeightedPodAffinityTermFluent) o; - if (!java.util.Objects.equals(podAffinityTerm, that.podAffinityTerm)) return false; - if (!java.util.Objects.equals(weight, that.weight)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(podAffinityTerm, weight, super.hashCode()); + return Objects.hash(podAffinityTerm, weight); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (podAffinityTerm != null) { sb.append("podAffinityTerm:"); sb.append(podAffinityTerm + ","); } - if (weight != null) { sb.append("weight:"); sb.append(weight); } + if (!(podAffinityTerm == null)) { + sb.append("podAffinityTerm:"); + sb.append(podAffinityTerm); + sb.append(","); + } + if (!(weight == null)) { + sb.append("weight:"); + sb.append(weight); + } sb.append("}"); return sb.toString(); } + + public PodAffinityTermNested withNewPodAffinityTerm() { + return new PodAffinityTermNested(null); + } + + public PodAffinityTermNested withNewPodAffinityTermLike(V1PodAffinityTerm item) { + return new PodAffinityTermNested(item); + } + + public A withPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { + this._visitables.remove("podAffinityTerm"); + if (podAffinityTerm != null) { + this.podAffinityTerm = new V1PodAffinityTermBuilder(podAffinityTerm); + this._visitables.get("podAffinityTerm").add(this.podAffinityTerm); + } else { + this.podAffinityTerm = null; + this._visitables.get("podAffinityTerm").remove(this.podAffinityTerm); + } + return (A) this; + } + + public A withWeight(Integer weight) { + this.weight = weight; + return (A) this; + } public class PodAffinityTermNested extends V1PodAffinityTermFluent> implements Nested{ + + V1PodAffinityTermBuilder builder; + PodAffinityTermNested(V1PodAffinityTerm item) { this.builder = new V1PodAffinityTermBuilder(this, item); } - V1PodAffinityTermBuilder builder; - + public N and() { return (N) V1WeightedPodAffinityTermFluent.this.withPodAffinityTerm(builder.build()); } @@ -118,7 +142,5 @@ public N endPodAffinityTerm() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java index 003e7430ba..3a6c7350e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1WindowsSecurityContextOptionsBuilder extends V1WindowsSecurityContextOptionsFluent implements VisitableBuilder{ + + V1WindowsSecurityContextOptionsFluent fluent; + public V1WindowsSecurityContextOptionsBuilder() { this(new V1WindowsSecurityContextOptions()); } @@ -10,17 +14,16 @@ public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFlu this(fluent, new V1WindowsSecurityContextOptions()); } - public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFluent fluent,V1WindowsSecurityContextOptions instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptions instance) { this.fluent = this; this.copyInstance(instance); } - V1WindowsSecurityContextOptionsFluent fluent; + public V1WindowsSecurityContextOptionsBuilder(V1WindowsSecurityContextOptionsFluent fluent,V1WindowsSecurityContextOptions instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1WindowsSecurityContextOptions build() { V1WindowsSecurityContextOptions buildable = new V1WindowsSecurityContextOptions(); buildable.setGmsaCredentialSpec(fluent.getGmsaCredentialSpec()); @@ -30,5 +33,4 @@ public V1WindowsSecurityContextOptions build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java index 6828106fe7..8a79f094ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java @@ -1,119 +1,151 @@ package io.kubernetes.client.openapi.models; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; import java.lang.Object; import java.lang.String; -import java.lang.Boolean; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1WindowsSecurityContextOptionsFluent> extends BaseFluent{ +public class V1WindowsSecurityContextOptionsFluent> extends BaseFluent{ + + private String gmsaCredentialSpec; + private String gmsaCredentialSpecName; + private Boolean hostProcess; + private String runAsUserName; + public V1WindowsSecurityContextOptionsFluent() { } public V1WindowsSecurityContextOptionsFluent(V1WindowsSecurityContextOptions instance) { this.copyInstance(instance); } - private String gmsaCredentialSpec; - private String gmsaCredentialSpecName; - private Boolean hostProcess; - private String runAsUserName; - + protected void copyInstance(V1WindowsSecurityContextOptions instance) { - instance = (instance != null ? instance : new V1WindowsSecurityContextOptions()); + instance = instance != null ? instance : new V1WindowsSecurityContextOptions(); if (instance != null) { - this.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); - this.withGmsaCredentialSpecName(instance.getGmsaCredentialSpecName()); - this.withHostProcess(instance.getHostProcess()); - this.withRunAsUserName(instance.getRunAsUserName()); - } + this.withGmsaCredentialSpec(instance.getGmsaCredentialSpec()); + this.withGmsaCredentialSpecName(instance.getGmsaCredentialSpecName()); + this.withHostProcess(instance.getHostProcess()); + this.withRunAsUserName(instance.getRunAsUserName()); + } } - public String getGmsaCredentialSpec() { - return this.gmsaCredentialSpec; - } - - public A withGmsaCredentialSpec(String gmsaCredentialSpec) { - this.gmsaCredentialSpec = gmsaCredentialSpec; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1WindowsSecurityContextOptionsFluent that = (V1WindowsSecurityContextOptionsFluent) o; + if (!(Objects.equals(gmsaCredentialSpec, that.gmsaCredentialSpec))) { + return false; + } + if (!(Objects.equals(gmsaCredentialSpecName, that.gmsaCredentialSpecName))) { + return false; + } + if (!(Objects.equals(hostProcess, that.hostProcess))) { + return false; + } + if (!(Objects.equals(runAsUserName, that.runAsUserName))) { + return false; + } + return true; } - public boolean hasGmsaCredentialSpec() { - return this.gmsaCredentialSpec != null; + public String getGmsaCredentialSpec() { + return this.gmsaCredentialSpec; } public String getGmsaCredentialSpecName() { return this.gmsaCredentialSpecName; } - public A withGmsaCredentialSpecName(String gmsaCredentialSpecName) { - this.gmsaCredentialSpecName = gmsaCredentialSpecName; - return (A) this; - } - - public boolean hasGmsaCredentialSpecName() { - return this.gmsaCredentialSpecName != null; - } - public Boolean getHostProcess() { return this.hostProcess; } - public A withHostProcess(Boolean hostProcess) { - this.hostProcess = hostProcess; - return (A) this; + public String getRunAsUserName() { + return this.runAsUserName; } - public boolean hasHostProcess() { - return this.hostProcess != null; + public boolean hasGmsaCredentialSpec() { + return this.gmsaCredentialSpec != null; } - public String getRunAsUserName() { - return this.runAsUserName; + public boolean hasGmsaCredentialSpecName() { + return this.gmsaCredentialSpecName != null; } - public A withRunAsUserName(String runAsUserName) { - this.runAsUserName = runAsUserName; - return (A) this; + public boolean hasHostProcess() { + return this.hostProcess != null; } public boolean hasRunAsUserName() { return this.runAsUserName != 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; - V1WindowsSecurityContextOptionsFluent that = (V1WindowsSecurityContextOptionsFluent) o; - if (!java.util.Objects.equals(gmsaCredentialSpec, that.gmsaCredentialSpec)) return false; - if (!java.util.Objects.equals(gmsaCredentialSpecName, that.gmsaCredentialSpecName)) return false; - if (!java.util.Objects.equals(hostProcess, that.hostProcess)) return false; - if (!java.util.Objects.equals(runAsUserName, that.runAsUserName)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(gmsaCredentialSpec, gmsaCredentialSpecName, hostProcess, runAsUserName, super.hashCode()); + return Objects.hash(gmsaCredentialSpec, gmsaCredentialSpecName, hostProcess, runAsUserName); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (gmsaCredentialSpec != null) { sb.append("gmsaCredentialSpec:"); sb.append(gmsaCredentialSpec + ","); } - if (gmsaCredentialSpecName != null) { sb.append("gmsaCredentialSpecName:"); sb.append(gmsaCredentialSpecName + ","); } - if (hostProcess != null) { sb.append("hostProcess:"); sb.append(hostProcess + ","); } - if (runAsUserName != null) { sb.append("runAsUserName:"); sb.append(runAsUserName); } + if (!(gmsaCredentialSpec == null)) { + sb.append("gmsaCredentialSpec:"); + sb.append(gmsaCredentialSpec); + sb.append(","); + } + if (!(gmsaCredentialSpecName == null)) { + sb.append("gmsaCredentialSpecName:"); + sb.append(gmsaCredentialSpecName); + sb.append(","); + } + if (!(hostProcess == null)) { + sb.append("hostProcess:"); + sb.append(hostProcess); + sb.append(","); + } + if (!(runAsUserName == null)) { + sb.append("runAsUserName:"); + sb.append(runAsUserName); + } sb.append("}"); return sb.toString(); } + public A withGmsaCredentialSpec(String gmsaCredentialSpec) { + this.gmsaCredentialSpec = gmsaCredentialSpec; + return (A) this; + } + + public A withGmsaCredentialSpecName(String gmsaCredentialSpecName) { + this.gmsaCredentialSpecName = gmsaCredentialSpecName; + return (A) this; + } + public A withHostProcess() { return withHostProcess(true); } - + public A withHostProcess(Boolean hostProcess) { + this.hostProcess = hostProcess; + return (A) this; + } + + public A withRunAsUserName(String runAsUserName) { + this.runAsUserName = runAsUserName; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceBuilder.java new file mode 100644 index 0000000000..1fcd3a3ddf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1WorkloadReferenceBuilder extends V1WorkloadReferenceFluent implements VisitableBuilder{ + + V1WorkloadReferenceFluent fluent; + + public V1WorkloadReferenceBuilder() { + this(new V1WorkloadReference()); + } + + public V1WorkloadReferenceBuilder(V1WorkloadReferenceFluent fluent) { + this(fluent, new V1WorkloadReference()); + } + + public V1WorkloadReferenceBuilder(V1WorkloadReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1WorkloadReferenceBuilder(V1WorkloadReferenceFluent fluent,V1WorkloadReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1WorkloadReference build() { + V1WorkloadReference buildable = new V1WorkloadReference(); + buildable.setName(fluent.getName()); + buildable.setPodGroup(fluent.getPodGroup()); + buildable.setPodGroupReplicaKey(fluent.getPodGroupReplicaKey()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceFluent.java new file mode 100644 index 0000000000..a73d6f2adb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1WorkloadReferenceFluent> extends BaseFluent{ + + private String name; + private String podGroup; + private String podGroupReplicaKey; + + public V1WorkloadReferenceFluent() { + } + + public V1WorkloadReferenceFluent(V1WorkloadReference instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1WorkloadReference instance) { + instance = instance != null ? instance : new V1WorkloadReference(); + if (instance != null) { + this.withName(instance.getName()); + this.withPodGroup(instance.getPodGroup()); + this.withPodGroupReplicaKey(instance.getPodGroupReplicaKey()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1WorkloadReferenceFluent that = (V1WorkloadReferenceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(podGroup, that.podGroup))) { + return false; + } + if (!(Objects.equals(podGroupReplicaKey, that.podGroupReplicaKey))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getPodGroup() { + return this.podGroup; + } + + public String getPodGroupReplicaKey() { + return this.podGroupReplicaKey; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPodGroup() { + return this.podGroup != null; + } + + public boolean hasPodGroupReplicaKey() { + return this.podGroupReplicaKey != null; + } + + public int hashCode() { + return Objects.hash(name, podGroup, podGroupReplicaKey); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(podGroup == null)) { + sb.append("podGroup:"); + sb.append(podGroup); + sb.append(","); + } + if (!(podGroupReplicaKey == null)) { + sb.append("podGroupReplicaKey:"); + sb.append(podGroupReplicaKey); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withPodGroup(String podGroup) { + this.podGroup = podGroup; + return (A) this; + } + + public A withPodGroupReplicaKey(String podGroupReplicaKey) { + this.podGroupReplicaKey = podGroupReplicaKey; + return (A) this; + } + +} \ 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..e533c85bd0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1ApplyConfigurationBuilder extends V1alpha1ApplyConfigurationFluent implements VisitableBuilder{ + + V1alpha1ApplyConfigurationFluent fluent; + + public V1alpha1ApplyConfigurationBuilder() { + this(new V1alpha1ApplyConfiguration()); + } + + public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent fluent) { + this(fluent, new V1alpha1ApplyConfiguration()); + } + + public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1ApplyConfigurationBuilder(V1alpha1ApplyConfigurationFluent fluent,V1alpha1ApplyConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b751aa7786 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java @@ -0,0 +1,77 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1ApplyConfigurationFluent> extends BaseFluent{ + + private String expression; + + public V1alpha1ApplyConfigurationFluent() { + } + + public V1alpha1ApplyConfigurationFluent(V1alpha1ApplyConfiguration instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha1ApplyConfiguration instance) { + instance = instance != null ? instance : new V1alpha1ApplyConfiguration(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1ApplyConfigurationFluent that = (V1alpha1ApplyConfigurationFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + +} \ 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/V1alpha1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java index fb59a9957f..becce09ed9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ClusterTrustBundleBuilder extends V1alpha1ClusterTrustBundleFluent implements VisitableBuilder{ + + V1alpha1ClusterTrustBundleFluent fluent; + public V1alpha1ClusterTrustBundleBuilder() { this(new V1alpha1ClusterTrustBundle()); } @@ -10,17 +14,16 @@ public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundleFluent flu this(fluent, new V1alpha1ClusterTrustBundle()); } - public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundleFluent fluent,V1alpha1ClusterTrustBundle instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundle instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ClusterTrustBundleFluent fluent; + public V1alpha1ClusterTrustBundleBuilder(V1alpha1ClusterTrustBundleFluent fluent,V1alpha1ClusterTrustBundle instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ClusterTrustBundle build() { V1alpha1ClusterTrustBundle buildable = new V1alpha1ClusterTrustBundle(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1alpha1ClusterTrustBundle build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java index 6f1db345a4..6e8ec63e47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java @@ -1,65 +1,162 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ClusterTrustBundleFluent> extends BaseFluent{ +public class V1alpha1ClusterTrustBundleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1ClusterTrustBundleSpecBuilder spec; + public V1alpha1ClusterTrustBundleFluent() { } public V1alpha1ClusterTrustBundleFluent(V1alpha1ClusterTrustBundle instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1ClusterTrustBundleSpecBuilder spec; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1ClusterTrustBundleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } protected void copyInstance(V1alpha1ClusterTrustBundle instance) { - instance = (instance != null ? instance : new V1alpha1ClusterTrustBundle()); + instance = instance != null ? instance : new V1alpha1ClusterTrustBundle(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - } + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } } - public String getApiVersion() { - return this.apiVersion; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1ClusterTrustBundleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha1ClusterTrustBundleSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1ClusterTrustBundleFluent that = (V1alpha1ClusterTrustBundleFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -74,10 +171,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -86,20 +179,12 @@ 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 SpecNested withNewSpec() { + return new SpecNested(null); } - public V1alpha1ClusterTrustBundleSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public SpecNested withNewSpecLike(V1alpha1ClusterTrustBundleSpec item) { + return new SpecNested(item); } public A withSpec(V1alpha1ClusterTrustBundleSpec spec) { @@ -113,63 +198,14 @@ public A withSpec(V1alpha1ClusterTrustBundleSpec spec) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V1alpha1ClusterTrustBundleSpec 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 V1alpha1ClusterTrustBundleSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha1ClusterTrustBundleSpec 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; - V1alpha1ClusterTrustBundleFluent that = (V1alpha1ClusterTrustBundleFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1alpha1ClusterTrustBundleFluent.this.withMetadata(builder.build()); } @@ -178,14 +214,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V1alpha1ClusterTrustBundleSpecFluent> implements Nested{ + + V1alpha1ClusterTrustBundleSpecBuilder builder; + SpecNested(V1alpha1ClusterTrustBundleSpec item) { this.builder = new V1alpha1ClusterTrustBundleSpecBuilder(this, item); } - V1alpha1ClusterTrustBundleSpecBuilder builder; - + public N and() { return (N) V1alpha1ClusterTrustBundleFluent.this.withSpec(builder.build()); } @@ -194,7 +231,5 @@ public N endSpec() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java index f9c8e08d34..a188de512c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ClusterTrustBundleListBuilder extends V1alpha1ClusterTrustBundleListFluent implements VisitableBuilder{ + + V1alpha1ClusterTrustBundleListFluent fluent; + public V1alpha1ClusterTrustBundleListBuilder() { this(new V1alpha1ClusterTrustBundleList()); } @@ -10,17 +14,16 @@ public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleListFluen this(fluent, new V1alpha1ClusterTrustBundleList()); } - public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleListFluent fluent,V1alpha1ClusterTrustBundleList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ClusterTrustBundleListFluent fluent; + public V1alpha1ClusterTrustBundleListBuilder(V1alpha1ClusterTrustBundleListFluent fluent,V1alpha1ClusterTrustBundleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ClusterTrustBundleList build() { V1alpha1ClusterTrustBundleList buildable = new V1alpha1ClusterTrustBundleList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1alpha1ClusterTrustBundleList build() { return buildable; } - } \ 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..bd356a6542 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ClusterTrustBundleListFluent> extends BaseFluent{ +public class V1alpha1ClusterTrustBundleListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1alpha1ClusterTrustBundleListFluent() { } public V1alpha1ClusterTrustBundleListFluent(V1alpha1ClusterTrustBundleList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1ClusterTrustBundleList instance) { - instance = (instance != null ? instance : new V1alpha1ClusterTrustBundleList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1alpha1ClusterTrustBundle item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1alpha1ClusterTrustBundle... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1alpha1ClusterTrustBundle item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1alpha1ClusterTrustBundle buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ClusterTrustBundle item : items) {V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1alpha1ClusterTrustBundle buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ClusterTrustBundle item : items) {V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle... items) { - if (this.items == null) return (A)this; - for (V1alpha1ClusterTrustBundle item : items) {V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1alpha1ClusterTrustBundle buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1ClusterTrustBundle item : items) {V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1alpha1ClusterTrustBundle buildMatchingItem(Predicate predicate) { + for (V1alpha1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1alpha1ClusterTrustBundleBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1alpha1ClusterTrustBundleList instance) { + instance = instance != null ? instance : new V1alpha1ClusterTrustBundleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1alpha1ClusterTrustBundle buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1alpha1ClusterTrustBundle buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha1ClusterTrustBundle buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1ClusterTrustBundleListFluent that = (V1alpha1ClusterTrustBundleListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1alpha1ClusterTrustBundle buildMatchingItem(Predicate predicate) { - for (V1alpha1ClusterTrustBundleBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate pred return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1ClusterTrustBundle... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1ClusterTrustBundle item : items) { + V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1ClusterTrustBundleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1ClusterTrustBundle item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle... items) { + public A withItems(V1alpha1ClusterTrustBundle... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundl return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1ClusterTrustBundle item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1ClusterTrustBundle 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1alpha1ClusterTrustBundleFluent> implements Nested{ - 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; - V1alpha1ClusterTrustBundleListFluent that = (V1alpha1ClusterTrustBundleListFluent) 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()); - } + V1alpha1ClusterTrustBundleBuilder builder; + int index; - 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 V1alpha1ClusterTrustBundleFluent> implements Nested{ ItemsNested(int index,V1alpha1ClusterTrustBundle item) { this.index = index; this.builder = new V1alpha1ClusterTrustBundleBuilder(this, item); } - V1alpha1ClusterTrustBundleBuilder builder; - int index; - + public N and() { - return (N) V1alpha1ClusterTrustBundleListFluent.this.setToItems(index,builder.build()); + return (N) V1alpha1ClusterTrustBundleListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha1ClusterTrustBundleListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java index e76f3642c9..eb8edd5e5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ClusterTrustBundleSpecBuilder extends V1alpha1ClusterTrustBundleSpecFluent implements VisitableBuilder{ + + V1alpha1ClusterTrustBundleSpecFluent fluent; + public V1alpha1ClusterTrustBundleSpecBuilder() { this(new V1alpha1ClusterTrustBundleSpec()); } @@ -10,17 +14,16 @@ public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpecFluen this(fluent, new V1alpha1ClusterTrustBundleSpec()); } - public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpecFluent fluent,V1alpha1ClusterTrustBundleSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpec instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ClusterTrustBundleSpecFluent fluent; + public V1alpha1ClusterTrustBundleSpecBuilder(V1alpha1ClusterTrustBundleSpecFluent fluent,V1alpha1ClusterTrustBundleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ClusterTrustBundleSpec build() { V1alpha1ClusterTrustBundleSpec buildable = new V1alpha1ClusterTrustBundleSpec(); buildable.setSignerName(fluent.getSignerName()); @@ -28,5 +31,4 @@ public V1alpha1ClusterTrustBundleSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java index 82ad5ac4fd..eec98f7b69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ClusterTrustBundleSpecFluent> extends BaseFluent{ +public class V1alpha1ClusterTrustBundleSpecFluent> extends BaseFluent{ + + private String signerName; + private String trustBundle; + public V1alpha1ClusterTrustBundleSpecFluent() { } public V1alpha1ClusterTrustBundleSpecFluent(V1alpha1ClusterTrustBundleSpec instance) { this.copyInstance(instance); } - private String signerName; - private String trustBundle; - + protected void copyInstance(V1alpha1ClusterTrustBundleSpec instance) { - instance = (instance != null ? instance : new V1alpha1ClusterTrustBundleSpec()); + instance = instance != null ? instance : new V1alpha1ClusterTrustBundleSpec(); if (instance != null) { - this.withSignerName(instance.getSignerName()); - this.withTrustBundle(instance.getTrustBundle()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1ClusterTrustBundleSpecFluent that = (V1alpha1ClusterTrustBundleSpecFluent) o; + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(trustBundle, that.trustBundle))) { + return false; + } + return true; } - public boolean hasSignerName() { - return this.signerName != null; + public String getSignerName() { + return this.signerName; } public String getTrustBundle() { return this.trustBundle; } - public A withTrustBundle(String trustBundle) { - this.trustBundle = trustBundle; - return (A) this; + public boolean hasSignerName() { + return this.signerName != null; } 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; - V1alpha1ClusterTrustBundleSpecFluent that = (V1alpha1ClusterTrustBundleSpecFluent) 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()); + return Objects.hash(signerName, trustBundle); } 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); } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + sb.append(","); + } + if (!(trustBundle == null)) { + sb.append("trustBundle:"); + sb.append(trustBundle); + } sb.append("}"); return sb.toString(); } - + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public A withTrustBundle(String trustBundle) { + this.trustBundle = trustBundle; + return (A) this; + } + } \ No newline at end of file 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/V1alpha1GangSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..0d805eae57 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1GangSchedulingPolicyBuilder extends V1alpha1GangSchedulingPolicyFluent implements VisitableBuilder{ + + V1alpha1GangSchedulingPolicyFluent fluent; + + public V1alpha1GangSchedulingPolicyBuilder() { + this(new V1alpha1GangSchedulingPolicy()); + } + + public V1alpha1GangSchedulingPolicyBuilder(V1alpha1GangSchedulingPolicyFluent fluent) { + this(fluent, new V1alpha1GangSchedulingPolicy()); + } + + public V1alpha1GangSchedulingPolicyBuilder(V1alpha1GangSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1GangSchedulingPolicyBuilder(V1alpha1GangSchedulingPolicyFluent fluent,V1alpha1GangSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1GangSchedulingPolicy build() { + V1alpha1GangSchedulingPolicy buildable = new V1alpha1GangSchedulingPolicy(); + buildable.setMinCount(fluent.getMinCount()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyFluent.java new file mode 100644 index 0000000000..d444dcf72e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyFluent.java @@ -0,0 +1,78 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1GangSchedulingPolicyFluent> extends BaseFluent{ + + private Integer minCount; + + public V1alpha1GangSchedulingPolicyFluent() { + } + + public V1alpha1GangSchedulingPolicyFluent(V1alpha1GangSchedulingPolicy instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha1GangSchedulingPolicy instance) { + instance = instance != null ? instance : new V1alpha1GangSchedulingPolicy(); + if (instance != null) { + this.withMinCount(instance.getMinCount()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1GangSchedulingPolicyFluent that = (V1alpha1GangSchedulingPolicyFluent) o; + if (!(Objects.equals(minCount, that.minCount))) { + return false; + } + return true; + } + + public Integer getMinCount() { + return this.minCount; + } + + public boolean hasMinCount() { + return this.minCount != null; + } + + public int hashCode() { + return Objects.hash(minCount); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(minCount == null)) { + sb.append("minCount:"); + sb.append(minCount); + } + sb.append("}"); + return sb.toString(); + } + + public A withMinCount(Integer minCount) { + this.minCount = minCount; + return (A) this; + } + +} \ 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 deleted file mode 100644 index fe63812c20..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -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 deleted file mode 100644 index 125bf9643c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResourceFluent.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 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..109e746c15 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1JSONPatchBuilder extends V1alpha1JSONPatchFluent implements VisitableBuilder{ + + V1alpha1JSONPatchFluent fluent; + + public V1alpha1JSONPatchBuilder() { + this(new V1alpha1JSONPatch()); + } + + public V1alpha1JSONPatchBuilder(V1alpha1JSONPatchFluent fluent) { + this(fluent, new V1alpha1JSONPatch()); + } + + public V1alpha1JSONPatchBuilder(V1alpha1JSONPatch instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1JSONPatchBuilder(V1alpha1JSONPatchFluent fluent,V1alpha1JSONPatch instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..352ce982e2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java @@ -0,0 +1,77 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1JSONPatchFluent> extends BaseFluent{ + + private String expression; + + public V1alpha1JSONPatchFluent() { + } + + public V1alpha1JSONPatchFluent(V1alpha1JSONPatch instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha1JSONPatch instance) { + instance = instance != null ? instance : new V1alpha1JSONPatch(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1JSONPatchFluent that = (V1alpha1JSONPatchFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java index 77a5b39c19..f2e9d06e88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MatchConditionBuilder extends V1alpha1MatchConditionFluent implements VisitableBuilder{ + + V1alpha1MatchConditionFluent fluent; + public V1alpha1MatchConditionBuilder() { this(new V1alpha1MatchCondition()); } @@ -10,17 +14,16 @@ public V1alpha1MatchConditionBuilder(V1alpha1MatchConditionFluent fluent) { this(fluent, new V1alpha1MatchCondition()); } - public V1alpha1MatchConditionBuilder(V1alpha1MatchConditionFluent fluent,V1alpha1MatchCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MatchConditionBuilder(V1alpha1MatchCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MatchConditionFluent fluent; + public V1alpha1MatchConditionBuilder(V1alpha1MatchConditionFluent fluent,V1alpha1MatchCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MatchCondition build() { V1alpha1MatchCondition buildable = new V1alpha1MatchCondition(); buildable.setExpression(fluent.getExpression()); @@ -28,5 +31,4 @@ public V1alpha1MatchCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java index c04b3816cc..9ff240af88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MatchConditionFluent> extends BaseFluent{ +public class V1alpha1MatchConditionFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1alpha1MatchConditionFluent() { } public V1alpha1MatchConditionFluent(V1alpha1MatchCondition instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1alpha1MatchCondition instance) { - instance = (instance != null ? instance : new V1alpha1MatchCondition()); + instance = instance != null ? instance : new V1alpha1MatchCondition(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MatchConditionFluent that = (V1alpha1MatchConditionFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasExpression() { - return this.expression != null; + public String getExpression() { + return this.expression; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasExpression() { + return this.expression != null; } 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; - V1alpha1MatchConditionFluent that = (V1alpha1MatchConditionFluent) 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()); + return Objects.hash(expression, name); } 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); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java index 05139e28e2..6a036d0379 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1MatchResourcesBuilder extends V1alpha1MatchResourcesFluent implements VisitableBuilder{ + + V1alpha1MatchResourcesFluent fluent; + public V1alpha1MatchResourcesBuilder() { this(new V1alpha1MatchResources()); } @@ -10,17 +14,16 @@ public V1alpha1MatchResourcesBuilder(V1alpha1MatchResourcesFluent fluent) { this(fluent, new V1alpha1MatchResources()); } - public V1alpha1MatchResourcesBuilder(V1alpha1MatchResourcesFluent fluent,V1alpha1MatchResources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1MatchResourcesBuilder(V1alpha1MatchResources instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1MatchResourcesFluent fluent; + public V1alpha1MatchResourcesBuilder(V1alpha1MatchResourcesFluent fluent,V1alpha1MatchResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1MatchResources build() { V1alpha1MatchResources buildable = new V1alpha1MatchResources(); buildable.setExcludeResourceRules(fluent.buildExcludeResourceRules()); @@ -31,5 +34,4 @@ public V1alpha1MatchResources build() { return buildable; } - } \ 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..05f4a13794 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 @@ -1,109 +1,157 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1MatchResourcesFluent> extends BaseFluent{ +public class V1alpha1MatchResourcesFluent> extends BaseFluent{ + + private ArrayList excludeResourceRules; + private String matchPolicy; + private V1LabelSelectorBuilder namespaceSelector; + private V1LabelSelectorBuilder objectSelector; + private ArrayList resourceRules; + public V1alpha1MatchResourcesFluent() { } public V1alpha1MatchResourcesFluent(V1alpha1MatchResources instance) { this.copyInstance(instance); } - private ArrayList excludeResourceRules; - private String matchPolicy; - private V1LabelSelectorBuilder namespaceSelector; - private V1LabelSelectorBuilder objectSelector; - private ArrayList resourceRules; + + public A addAllToExcludeResourceRules(Collection items) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; + } - protected void copyInstance(V1alpha1MatchResources instance) { - instance = (instance != null ? instance : new V1alpha1MatchResources()); - 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 addAllToResourceRules(Collection items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public ExcludeResourceRulesNested addNewExcludeResourceRule() { + return new ExcludeResourceRulesNested(-1, null); } - 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);} - return (A)this; + public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1alpha1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(-1, item); } - public A addToExcludeResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); } - public A addAllToExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + public ResourceRulesNested addNewResourceRuleLike(V1alpha1NamedRuleWithOperations item) { + return new ResourceRulesNested(-1, item); } - public A removeFromExcludeResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + public A addToExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; } - public A removeAllFromExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + 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(builder); + excludeResourceRules.add(index, 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()) { - V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - return (A)this; + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - public List buildExcludeResourceRules() { - return this.excludeResourceRules != null ? build(excludeResourceRules) : null; + 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(builder); + resourceRules.add(index, builder); + } + return (A) this; } public V1alpha1NamedRuleWithOperations buildExcludeResourceRule(int index) { return this.excludeResourceRules.get(index).build(); } + public List buildExcludeResourceRules() { + return this.excludeResourceRules != null ? build(excludeResourceRules) : null; + } + public V1alpha1NamedRuleWithOperations buildFirstExcludeResourceRule() { return this.excludeResourceRules.get(0).build(); } + public V1alpha1NamedRuleWithOperations buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + public V1alpha1NamedRuleWithOperations buildLastExcludeResourceRule() { return this.excludeResourceRules.get(excludeResourceRules.size() - 1).build(); } + public V1alpha1NamedRuleWithOperations buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + public V1alpha1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate predicate) { for (V1alpha1NamedRuleWithOperationsBuilder item : excludeResourceRules) { if (predicate.test(item)) { @@ -113,257 +161,433 @@ public V1alpha1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicat return null; } - public boolean hasMatchingExcludeResourceRule(Predicate predicate) { - for (V1alpha1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + public V1alpha1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { + for (V1alpha1NamedRuleWithOperationsBuilder item : resourceRules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withExcludeResourceRules(List excludeResourceRules) { - if (this.excludeResourceRules != null) { - this._visitables.get("excludeResourceRules").clear(); + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + } + + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; + } + + public V1alpha1NamedRuleWithOperations buildResourceRule(int index) { + return this.resourceRules.get(index).build(); + } + + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; + } + + protected void copyInstance(V1alpha1MatchResources instance) { + instance = instance != null ? instance : new V1alpha1MatchResources(); + if (instance != null) { + this.withExcludeResourceRules(instance.getExcludeResourceRules()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withResourceRules(instance.getResourceRules()); } - if (excludeResourceRules != null) { - this.excludeResourceRules = new ArrayList(); - for (V1alpha1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); - } - } else { - this.excludeResourceRules = null; + } + + public ExcludeResourceRulesNested editExcludeResourceRule(int index) { + if (excludeResourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "excludeResourceRules")); } - return (A) this; + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } - public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... excludeResourceRules) { - if (this.excludeResourceRules != null) { - this.excludeResourceRules.clear(); - _visitables.remove("excludeResourceRules"); + public ExcludeResourceRulesNested editFirstExcludeResourceRule() { + if (excludeResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "excludeResourceRules")); } - if (excludeResourceRules != null) { - for (V1alpha1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); + return this.setNewExcludeResourceRuleLike(0, this.buildExcludeResourceRule(0)); + } + + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + } + + public ExcludeResourceRulesNested editLastExcludeResourceRule() { + int index = excludeResourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); + } + + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + + public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < excludeResourceRules.size();i++) { + if (predicate.test(excludeResourceRules.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } - public boolean hasExcludeResourceRules() { - return this.excludeResourceRules != null && !this.excludeResourceRules.isEmpty(); + public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public ExcludeResourceRulesNested addNewExcludeResourceRule() { - return new ExcludeResourceRulesNested(-1, null); + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1alpha1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(-1, item); + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } - public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1alpha1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(index, item); + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } - 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 NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - 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 ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } - 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 ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } - public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { - int index = -1; - for (int i=0;i editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MatchResourcesFluent that = (V1alpha1MatchResourcesFluent) o; + if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; + } + return true; } public String getMatchPolicy() { return this.matchPolicy; } - public A withMatchPolicy(String matchPolicy) { - this.matchPolicy = matchPolicy; - return (A) this; + public boolean hasExcludeResourceRules() { + return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); } public boolean hasMatchPolicy() { return this.matchPolicy != null; } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + public boolean hasMatchingExcludeResourceRule(Predicate predicate) { + for (V1alpha1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { - this._visitables.remove("namespaceSelector"); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - this._visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - this._visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; + public boolean hasMatchingResourceRule(Predicate predicate) { + for (V1alpha1NamedRuleWithOperationsBuilder item : resourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasNamespaceSelector() { return this.namespaceSelector != null; } - public NamespaceSelectorNested 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 boolean hasObjectSelector() { + return this.objectSelector != null; } - public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + public boolean hasResourceRules() { + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } - public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + public int hashCode() { + return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + public A removeAllFromExcludeResourceRules(Collection items) { + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } - 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); + public A removeAllFromResourceRules(Collection items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); } return (A) this; } - public boolean hasObjectSelector() { - return this.objectSelector != null; + public A removeFromExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } - public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + public A removeFromResourceRules(V1alpha1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1alpha1NamedRuleWithOperations item : items) { + V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } - public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + public A removeMatchingFromExcludeResourceRules(Predicate predicate) { + if (excludeResourceRules == null) { + return (A) this; + } + Iterator each = excludeResourceRules.iterator(); + List visitables = _visitables.get("excludeResourceRules"); + while (each.hasNext()) { + V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ObjectSelectorNested editObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(null)); + public A removeMatchingFromResourceRules(Predicate predicate) { + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); + while (each.hasNext()) { + V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1alpha1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(index, item); } - public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(item)); + public ResourceRulesNested setNewResourceRuleLike(int index,V1alpha1NamedRuleWithOperations item) { + return new ResourceRulesNested(index, item); } - public A addToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations item) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = 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);} - return (A)this; + 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 setToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + 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);} - return (A)this; + 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.V1alpha1NamedRuleWithOperations... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(excludeResourceRules == null) && !(excludeResourceRules.isEmpty())) { + sb.append("excludeResourceRules:"); + sb.append(excludeResourceRules); + sb.append(","); + } + if (!(matchPolicy == null)) { + sb.append("matchPolicy:"); + sb.append(matchPolicy); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(objectSelector == null)) { + sb.append("objectSelector:"); + sb.append(objectSelector); + sb.append(","); + } + if (!(resourceRules == null) && !(resourceRules.isEmpty())) { + sb.append("resourceRules:"); + sb.append(resourceRules); + } + sb.append("}"); + return sb.toString(); } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public A withExcludeResourceRules(List excludeResourceRules) { + if (this.excludeResourceRules != null) { + this._visitables.get("excludeResourceRules").clear(); + } + if (excludeResourceRules != null) { + this.excludeResourceRules = new ArrayList(); + for (V1alpha1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); + } + } else { + this.excludeResourceRules = null; + } + return (A) this; } - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... items) { - if (this.resourceRules == null) return (A)this; - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public A withExcludeResourceRules(V1alpha1NamedRuleWithOperations... excludeResourceRules) { + if (this.excludeResourceRules != null) { + this.excludeResourceRules.clear(); + _visitables.remove("excludeResourceRules"); + } + if (excludeResourceRules != null) { + for (V1alpha1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); + } + } + return (A) this; } - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1alpha1NamedRuleWithOperations item : items) {V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public A withMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + 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()) { - V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); } - return (A)this; - } - - public List buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; + return (A) this; } - public V1alpha1NamedRuleWithOperations buildResourceRule(int index) { - return this.resourceRules.get(index).build(); + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); } - public V1alpha1NamedRuleWithOperations buildFirstResourceRule() { - return this.resourceRules.get(0).build(); + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); } - public V1alpha1NamedRuleWithOperations buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); + public ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); } - public V1alpha1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { - for (V1alpha1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); } - public boolean hasMatchingResourceRule(Predicate predicate) { - for (V1alpha1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 A withResourceRules(List resourceRules) { @@ -381,7 +605,7 @@ public A withResourceRules(List resourceRules) return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations... resourceRules) { + public A withResourceRules(V1alpha1NamedRuleWithOperations... resourceRules) { if (this.resourceRules != null) { this.resourceRules.clear(); _visitables.remove("resourceRules"); @@ -393,100 +617,33 @@ public A withResourceRules(io.kubernetes.client.openapi.models.V1alpha1NamedRule } return (A) this; } + public class ExcludeResourceRulesNested extends V1alpha1NamedRuleWithOperationsFluent> implements Nested{ - public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); - } - - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); - } - - public ResourceRulesNested addNewResourceRuleLike(V1alpha1NamedRuleWithOperations item) { - return new ResourceRulesNested(-1, item); - } - - public ResourceRulesNested setNewResourceRuleLike(int index,V1alpha1NamedRuleWithOperations 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 V1alpha1NamedRuleWithOperationsFluent> implements Nested{ ExcludeResourceRulesNested(int index,V1alpha1NamedRuleWithOperations item) { this.index = index; this.builder = new V1alpha1NamedRuleWithOperationsBuilder(this, item); } - V1alpha1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { - return (N) V1alpha1MatchResourcesFluent.this.setToExcludeResourceRules(index,builder.build()); + return (N) V1alpha1MatchResourcesFluent.this.setToExcludeResourceRules(index, builder.build()); } public N endExcludeResourceRule() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1alpha1MatchResourcesFluent.this.withNamespaceSelector(builder.build()); } @@ -495,14 +652,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1alpha1MatchResourcesFluent.this.withObjectSelector(builder.build()); } @@ -511,25 +669,24 @@ public N endObjectSelector() { return and(); } - } public class ResourceRulesNested extends V1alpha1NamedRuleWithOperationsFluent> implements Nested{ + + V1alpha1NamedRuleWithOperationsBuilder builder; + int index; + ResourceRulesNested(int index,V1alpha1NamedRuleWithOperations item) { this.index = index; this.builder = new V1alpha1NamedRuleWithOperationsBuilder(this, item); } - V1alpha1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { - return (N) V1alpha1MatchResourcesFluent.this.setToResourceRules(index,builder.build()); + return (N) V1alpha1MatchResourcesFluent.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/V1alpha1MigrationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java deleted file mode 100644 index 408d3bb89c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -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 deleted file mode 100644 index cd557f599d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationConditionFluent.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 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..f9e2f7709f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1MutatingAdmissionPolicyBindingBuilder extends V1alpha1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyBindingFluent fluent; + + public V1alpha1MutatingAdmissionPolicyBindingBuilder() { + this(new V1alpha1MutatingAdmissionPolicyBinding()); + } + + public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPolicyBindingFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicyBinding()); + } + + public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPolicyBinding instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyBindingBuilder(V1alpha1MutatingAdmissionPolicyBindingFluent fluent,V1alpha1MutatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..2f6f7ec8c4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1MutatingAdmissionPolicyBindingSpecBuilder spec; + + public V1alpha1MutatingAdmissionPolicyBindingFluent() { + } + + public V1alpha1MutatingAdmissionPolicyBindingFluent(V1alpha1MutatingAdmissionPolicyBinding instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1MutatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MutatingAdmissionPolicyBindingFluent that = (V1alpha1MutatingAdmissionPolicyBindingFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1alpha1MutatingAdmissionPolicyBindingSpecFluent> implements Nested{ + + V1alpha1MutatingAdmissionPolicyBindingSpecBuilder builder; + + SpecNested(V1alpha1MutatingAdmissionPolicyBindingSpec item) { + this.builder = new V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(this, item); + } + + 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..b256594c95 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1MutatingAdmissionPolicyBindingListBuilder extends V1alpha1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyBindingListFluent fluent; + + public V1alpha1MutatingAdmissionPolicyBindingListBuilder() { + this(new V1alpha1MutatingAdmissionPolicyBindingList()); + } + + public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissionPolicyBindingListFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicyBindingList()); + } + + public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissionPolicyBindingList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyBindingListBuilder(V1alpha1MutatingAdmissionPolicyBindingListFluent fluent,V1alpha1MutatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..fecb752923 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1alpha1MutatingAdmissionPolicyBindingListFluent() { + } + + public V1alpha1MutatingAdmissionPolicyBindingListFluent(V1alpha1MutatingAdmissionPolicyBindingList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1alpha1MutatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1MutatingAdmissionPolicyBinding buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MutatingAdmissionPolicyBindingListFluent that = (V1alpha1MutatingAdmissionPolicyBindingListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1alpha1MutatingAdmissionPolicyBindingFluent> implements Nested{ + + V1alpha1MutatingAdmissionPolicyBindingBuilder builder; + int index; + + ItemsNested(int index,V1alpha1MutatingAdmissionPolicyBinding item) { + this.index = index; + this.builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyBindingListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..cdae9318c0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1MutatingAdmissionPolicyBindingSpecBuilder extends V1alpha1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent; + + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder() { + this(new V1alpha1MutatingAdmissionPolicyBindingSpec()); + } + + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicyBindingSpec()); + } + + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyBindingSpecBuilder(V1alpha1MutatingAdmissionPolicyBindingSpecFluent fluent,V1alpha1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..ea25b7ebf9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java @@ -0,0 +1,212 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + + private V1alpha1MatchResourcesBuilder matchResources; + private V1alpha1ParamRefBuilder paramRef; + private String policyName; + + public V1alpha1MutatingAdmissionPolicyBindingSpecFluent() { + } + + public V1alpha1MutatingAdmissionPolicyBindingSpecFluent(V1alpha1MutatingAdmissionPolicyBindingSpec instance) { + this.copyInstance(instance); + } + + public V1alpha1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; + } + + public V1alpha1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; + } + + 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 MatchResourcesNested editMatchResources() { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(null)); + } + + public MatchResourcesNested editOrNewMatchResources() { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(new V1alpha1MatchResourcesBuilder().build())); + } + + public MatchResourcesNested editOrNewMatchResourcesLike(V1alpha1MatchResources item) { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); + } + + public ParamRefNested editOrNewParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1alpha1ParamRefBuilder().build())); + } + + public ParamRefNested editOrNewParamRefLike(V1alpha1ParamRef item) { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); + } + + public ParamRefNested editParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MutatingAdmissionPolicyBindingSpecFluent that = (V1alpha1MutatingAdmissionPolicyBindingSpecFluent) o; + if (!(Objects.equals(matchResources, that.matchResources))) { + return false; + } + if (!(Objects.equals(paramRef, that.paramRef))) { + return false; + } + if (!(Objects.equals(policyName, that.policyName))) { + return false; + } + return true; + } + + public String getPolicyName() { + return this.policyName; + } + + public boolean hasMatchResources() { + return this.matchResources != null; + } + + public boolean hasParamRef() { + return this.paramRef != null; + } + + public boolean hasPolicyName() { + return this.policyName != null; + } + + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchResources == null)) { + sb.append("matchResources:"); + sb.append(matchResources); + sb.append(","); + } + if (!(paramRef == null)) { + sb.append("paramRef:"); + sb.append(paramRef); + sb.append(","); + } + if (!(policyName == null)) { + sb.append("policyName:"); + sb.append(policyName); + } + sb.append("}"); + return sb.toString(); + } + + 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 MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); + } + + public MatchResourcesNested withNewMatchResourcesLike(V1alpha1MatchResources item) { + return new MatchResourcesNested(item); + } + + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); + } + + public ParamRefNested withNewParamRefLike(V1alpha1ParamRef item) { + return new ParamRefNested(item); + } + + 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 A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; + } + public class MatchResourcesNested extends V1alpha1MatchResourcesFluent> implements Nested{ + + V1alpha1MatchResourcesBuilder builder; + + MatchResourcesNested(V1alpha1MatchResources item) { + this.builder = new V1alpha1MatchResourcesBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); + } + + public N endMatchResources() { + return and(); + } + + } + public class ParamRefNested extends V1alpha1ParamRefFluent> implements Nested{ + + V1alpha1ParamRefBuilder builder; + + ParamRefNested(V1alpha1ParamRef item) { + this.builder = new V1alpha1ParamRefBuilder(this, item); + } + + 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..8b34ae7eaa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1MutatingAdmissionPolicyBuilder extends V1alpha1MutatingAdmissionPolicyFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyFluent fluent; + + public V1alpha1MutatingAdmissionPolicyBuilder() { + this(new V1alpha1MutatingAdmissionPolicy()); + } + + public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicyFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicy()); + } + + public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyBuilder(V1alpha1MutatingAdmissionPolicyFluent fluent,V1alpha1MutatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..64a95cbdf8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1MutatingAdmissionPolicySpecBuilder spec; + + public V1alpha1MutatingAdmissionPolicyFluent() { + } + + public V1alpha1MutatingAdmissionPolicyFluent(V1alpha1MutatingAdmissionPolicy instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1MutatingAdmissionPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1MutatingAdmissionPolicySpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MutatingAdmissionPolicyFluent that = (V1alpha1MutatingAdmissionPolicyFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1MutatingAdmissionPolicySpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1alpha1MutatingAdmissionPolicySpecFluent> implements Nested{ + + V1alpha1MutatingAdmissionPolicySpecBuilder builder; + + SpecNested(V1alpha1MutatingAdmissionPolicySpec item) { + this.builder = new V1alpha1MutatingAdmissionPolicySpecBuilder(this, item); + } + + 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..90920624a9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1MutatingAdmissionPolicyListBuilder extends V1alpha1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicyListFluent fluent; + + public V1alpha1MutatingAdmissionPolicyListBuilder() { + this(new V1alpha1MutatingAdmissionPolicyList()); + } + + public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolicyListFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicyList()); + } + + public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolicyList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicyListBuilder(V1alpha1MutatingAdmissionPolicyListFluent fluent,V1alpha1MutatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..a80c47a562 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicyListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1alpha1MutatingAdmissionPolicyListFluent() { + } + + public V1alpha1MutatingAdmissionPolicyListFluent(V1alpha1MutatingAdmissionPolicyList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1MutatingAdmissionPolicy item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1alpha1MutatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1MutatingAdmissionPolicy buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MutatingAdmissionPolicyListFluent that = (V1alpha1MutatingAdmissionPolicyListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1alpha1MutatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1alpha1MutatingAdmissionPolicyFluent> implements Nested{ + + V1alpha1MutatingAdmissionPolicyBuilder builder; + int index; + + ItemsNested(int index,V1alpha1MutatingAdmissionPolicy item) { + this.index = index; + this.builder = new V1alpha1MutatingAdmissionPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicyListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..6dc8273661 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1MutatingAdmissionPolicySpecBuilder extends V1alpha1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ + + V1alpha1MutatingAdmissionPolicySpecFluent fluent; + + public V1alpha1MutatingAdmissionPolicySpecBuilder() { + this(new V1alpha1MutatingAdmissionPolicySpec()); + } + + public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolicySpecFluent fluent) { + this(fluent, new V1alpha1MutatingAdmissionPolicySpec()); + } + + public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolicySpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1MutatingAdmissionPolicySpecBuilder(V1alpha1MutatingAdmissionPolicySpecFluent fluent,V1alpha1MutatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..7c5fabf6bc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java @@ -0,0 +1,952 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ + + private String failurePolicy; + private ArrayList matchConditions; + private V1alpha1MatchResourcesBuilder matchConstraints; + private ArrayList mutations; + private V1alpha1ParamKindBuilder paramKind; + private String reinvocationPolicy; + private ArrayList variables; + + public V1alpha1MutatingAdmissionPolicySpecFluent() { + } + + public V1alpha1MutatingAdmissionPolicySpecFluent(V1alpha1MutatingAdmissionPolicySpec instance) { + this.copyInstance(instance); + } + + 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 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 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 MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); + } + + public MatchConditionsNested addNewMatchConditionLike(V1alpha1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public MutationsNested addNewMutation() { + return new MutationsNested(-1, null); + } + + public MutationsNested addNewMutationLike(V1alpha1Mutation item) { + return new MutationsNested(-1, item); + } + + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); + } + + public VariablesNested addNewVariableLike(V1alpha1Variable item) { + return new VariablesNested(-1, item); + } + + public A addToMatchConditions(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 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 addToMutations(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 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 addToVariables(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 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 V1alpha1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); + } + + public V1alpha1Mutation buildFirstMutation() { + return this.mutations.get(0).build(); + } + + public V1alpha1Variable buildFirstVariable() { + return this.variables.get(0).build(); + } + + public V1alpha1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); + } + + public V1alpha1Mutation buildLastMutation() { + return this.mutations.get(mutations.size() - 1).build(); + } + + public V1alpha1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); + } + + public V1alpha1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); + } + + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; + } + + public V1alpha1MatchResources buildMatchConstraints() { + return this.matchConstraints != null ? this.matchConstraints.build() : null; + } + + public V1alpha1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1alpha1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha1Mutation buildMatchingMutation(Predicate predicate) { + for (V1alpha1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha1Variable buildMatchingVariable(Predicate predicate) { + for (V1alpha1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha1Mutation buildMutation(int index) { + return this.mutations.get(index).build(); + } + + public List buildMutations() { + return this.mutations != null ? build(mutations) : null; + } + + public V1alpha1ParamKind buildParamKind() { + return this.paramKind != null ? this.paramKind.build() : null; + } + + public V1alpha1Variable buildVariable(int index) { + return this.variables.get(index).build(); + } + + public List buildVariables() { + return this.variables != null ? build(variables) : null; + } + + 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 MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); + } + + public MutationsNested editFirstMutation() { + if (mutations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(0, this.buildMutation(0)); + } + + public VariablesNested editFirstVariable() { + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(0, this.buildVariable(0)); + } + + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MutationsNested editLastMutation() { + int index = mutations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MatchConstraintsNested editMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + } + + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchConditions.size();i++) { + if (predicate.test(matchConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MutationsNested editMatchingMutation(Predicate predicate) { + int index = -1; + for (int i = 0;i < mutations.size();i++) { + if (predicate.test(mutations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i = 0;i < variables.size();i++) { + if (predicate.test(variables.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MutationsNested editMutation(int index) { + if (mutations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public MatchConstraintsNested editOrNewMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1alpha1MatchResourcesBuilder().build())); + } + + public MatchConstraintsNested editOrNewMatchConstraintsLike(V1alpha1MatchResources item) { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); + } + + public ParamKindNested editOrNewParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1alpha1ParamKindBuilder().build())); + } + + public ParamKindNested editOrNewParamKindLike(V1alpha1ParamKind item) { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); + } + + public ParamKindNested editParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); + } + + public VariablesNested editVariable(int index) { + if (variables.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MutatingAdmissionPolicySpecFluent that = (V1alpha1MutatingAdmissionPolicySpecFluent) o; + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; + } + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; + } + if (!(Objects.equals(matchConstraints, that.matchConstraints))) { + return false; + } + if (!(Objects.equals(mutations, that.mutations))) { + return false; + } + if (!(Objects.equals(paramKind, that.paramKind))) { + return false; + } + if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { + return false; + } + if (!(Objects.equals(variables, that.variables))) { + return false; + } + return true; + } + + public String getFailurePolicy() { + return this.failurePolicy; + } + + public String getReinvocationPolicy() { + return this.reinvocationPolicy; + } + + public boolean hasFailurePolicy() { + return this.failurePolicy != null; + } + + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); + } + + public boolean hasMatchConstraints() { + return this.matchConstraints != null; + } + + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1alpha1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingMutation(Predicate predicate) { + for (V1alpha1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVariable(Predicate predicate) { + for (V1alpha1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMutations() { + return this.mutations != null && !(this.mutations.isEmpty()); + } + + public boolean hasParamKind() { + return this.paramKind != null; + } + + public boolean hasReinvocationPolicy() { + return this.reinvocationPolicy != null; + } + + public boolean hasVariables() { + return this.variables != null && !(this.variables.isEmpty()); + } + + public int hashCode() { + return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); + } + + 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 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 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 removeFromMatchConditions(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 removeFromMutations(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 removeFromVariables(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 removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + 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 A removeMatchingFromMutations(Predicate predicate) { + if (mutations == null) { + return (A) this; + } + Iterator each = mutations.iterator(); + 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 A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) { + return (A) this; + } + Iterator each = variables.iterator(); + 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 MatchConditionsNested setNewMatchConditionLike(int index,V1alpha1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public MutationsNested setNewMutationLike(int index,V1alpha1Mutation item) { + return new MutationsNested(index, item); + } + + public VariablesNested setNewVariableLike(int index,V1alpha1Variable item) { + return new VariablesNested(index, item); + } + + 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 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(failurePolicy == null)) { + sb.append("failurePolicy:"); + sb.append(failurePolicy); + sb.append(","); + } + if (!(matchConditions == null) && !(matchConditions.isEmpty())) { + sb.append("matchConditions:"); + sb.append(matchConditions); + sb.append(","); + } + if (!(matchConstraints == null)) { + sb.append("matchConstraints:"); + sb.append(matchConstraints); + sb.append(","); + } + if (!(mutations == null) && !(mutations.isEmpty())) { + sb.append("mutations:"); + sb.append(mutations); + sb.append(","); + } + if (!(paramKind == null)) { + sb.append("paramKind:"); + sb.append(paramKind); + sb.append(","); + } + if (!(reinvocationPolicy == null)) { + sb.append("reinvocationPolicy:"); + sb.append(reinvocationPolicy); + sb.append(","); + } + if (!(variables == null) && !(variables.isEmpty())) { + sb.append("variables:"); + sb.append(variables); + } + sb.append("}"); + return sb.toString(); + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + + 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(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 A withMatchConstraints(V1alpha1MatchResources matchConstraints) { + this._visitables.remove("matchConstraints"); + if (matchConstraints != null) { + this.matchConstraints = new V1alpha1MatchResourcesBuilder(matchConstraints); + this._visitables.get("matchConstraints").add(this.matchConstraints); + } else { + this.matchConstraints = null; + this._visitables.get("matchConstraints").remove(this.matchConstraints); + } + return (A) this; + } + + 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(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 MatchConstraintsNested withNewMatchConstraints() { + return new MatchConstraintsNested(null); + } + + public MatchConstraintsNested withNewMatchConstraintsLike(V1alpha1MatchResources item) { + return new MatchConstraintsNested(item); + } + + public ParamKindNested withNewParamKind() { + return new ParamKindNested(null); + } + + public ParamKindNested withNewParamKindLike(V1alpha1ParamKind item) { + return new ParamKindNested(item); + } + + 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 A withReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + return (A) this; + } + + 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(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 class MatchConditionsNested extends V1alpha1MatchConditionFluent> implements Nested{ + + V1alpha1MatchConditionBuilder builder; + int index; + + MatchConditionsNested(int index,V1alpha1MatchCondition item) { + this.index = index; + this.builder = new V1alpha1MatchConditionBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.setToMatchConditions(index, builder.build()); + } + + public N endMatchCondition() { + return and(); + } + + } + public class MatchConstraintsNested extends V1alpha1MatchResourcesFluent> implements Nested{ + + V1alpha1MatchResourcesBuilder builder; + + MatchConstraintsNested(V1alpha1MatchResources item) { + this.builder = new V1alpha1MatchResourcesBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); + } + + public N endMatchConstraints() { + return and(); + } + + } + public class MutationsNested extends V1alpha1MutationFluent> implements Nested{ + + V1alpha1MutationBuilder builder; + int index; + + MutationsNested(int index,V1alpha1Mutation item) { + this.index = index; + this.builder = new V1alpha1MutationBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.setToMutations(index, builder.build()); + } + + public N endMutation() { + return and(); + } + + } + public class ParamKindNested extends V1alpha1ParamKindFluent> implements Nested{ + + V1alpha1ParamKindBuilder builder; + + ParamKindNested(V1alpha1ParamKind item) { + this.builder = new V1alpha1ParamKindBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); + } + + public N endParamKind() { + return and(); + } + + } + public class VariablesNested extends V1alpha1VariableFluent> implements Nested{ + + V1alpha1VariableBuilder builder; + int index; + + VariablesNested(int index,V1alpha1Variable item) { + this.index = index; + this.builder = new V1alpha1VariableBuilder(this, item); + } + + 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..e0f2fae8a0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1MutationBuilder extends V1alpha1MutationFluent implements VisitableBuilder{ + + V1alpha1MutationFluent fluent; + + public V1alpha1MutationBuilder() { + this(new V1alpha1Mutation()); + } + + public V1alpha1MutationBuilder(V1alpha1MutationFluent fluent) { + this(fluent, new V1alpha1Mutation()); + } + + public V1alpha1MutationBuilder(V1alpha1Mutation instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1MutationBuilder(V1alpha1MutationFluent fluent,V1alpha1Mutation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b20449cbc3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java @@ -0,0 +1,212 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1MutationFluent> extends BaseFluent{ + + private V1alpha1ApplyConfigurationBuilder applyConfiguration; + private V1alpha1JSONPatchBuilder jsonPatch; + private String patchType; + + public V1alpha1MutationFluent() { + } + + public V1alpha1MutationFluent(V1alpha1Mutation instance) { + this.copyInstance(instance); + } + + public V1alpha1ApplyConfiguration buildApplyConfiguration() { + return this.applyConfiguration != null ? this.applyConfiguration.build() : null; + } + + public V1alpha1JSONPatch buildJsonPatch() { + return this.jsonPatch != null ? this.jsonPatch.build() : null; + } + + 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 ApplyConfigurationNested editApplyConfiguration() { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(null)); + } + + public JsonPatchNested editJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(null)); + } + + public ApplyConfigurationNested editOrNewApplyConfiguration() { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(new V1alpha1ApplyConfigurationBuilder().build())); + } + + public ApplyConfigurationNested editOrNewApplyConfigurationLike(V1alpha1ApplyConfiguration item) { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(item)); + } + + public JsonPatchNested editOrNewJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(new V1alpha1JSONPatchBuilder().build())); + } + + public JsonPatchNested editOrNewJsonPatchLike(V1alpha1JSONPatch item) { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1MutationFluent that = (V1alpha1MutationFluent) o; + if (!(Objects.equals(applyConfiguration, that.applyConfiguration))) { + return false; + } + if (!(Objects.equals(jsonPatch, that.jsonPatch))) { + return false; + } + if (!(Objects.equals(patchType, that.patchType))) { + return false; + } + return true; + } + + public String getPatchType() { + return this.patchType; + } + + public boolean hasApplyConfiguration() { + return this.applyConfiguration != null; + } + + public boolean hasJsonPatch() { + return this.jsonPatch != null; + } + + public boolean hasPatchType() { + return this.patchType != null; + } + + public int hashCode() { + return Objects.hash(applyConfiguration, jsonPatch, patchType); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(applyConfiguration == null)) { + sb.append("applyConfiguration:"); + sb.append(applyConfiguration); + sb.append(","); + } + if (!(jsonPatch == null)) { + sb.append("jsonPatch:"); + sb.append(jsonPatch); + sb.append(","); + } + if (!(patchType == null)) { + sb.append("patchType:"); + sb.append(patchType); + } + sb.append("}"); + return sb.toString(); + } + + 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 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 ApplyConfigurationNested withNewApplyConfiguration() { + return new ApplyConfigurationNested(null); + } + + public ApplyConfigurationNested withNewApplyConfigurationLike(V1alpha1ApplyConfiguration item) { + return new ApplyConfigurationNested(item); + } + + public JsonPatchNested withNewJsonPatch() { + return new JsonPatchNested(null); + } + + public JsonPatchNested withNewJsonPatchLike(V1alpha1JSONPatch item) { + return new JsonPatchNested(item); + } + + public A withPatchType(String patchType) { + this.patchType = patchType; + return (A) this; + } + public class ApplyConfigurationNested extends V1alpha1ApplyConfigurationFluent> implements Nested{ + + V1alpha1ApplyConfigurationBuilder builder; + + ApplyConfigurationNested(V1alpha1ApplyConfiguration item) { + this.builder = new V1alpha1ApplyConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1alpha1MutationFluent.this.withApplyConfiguration(builder.build()); + } + + public N endApplyConfiguration() { + return and(); + } + + } + public class JsonPatchNested extends V1alpha1JSONPatchFluent> implements Nested{ + + V1alpha1JSONPatchBuilder builder; + + JsonPatchNested(V1alpha1JSONPatch item) { + this.builder = new V1alpha1JSONPatchBuilder(this, item); + } + + 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/V1alpha1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java index 4fb7e907de..3ac6307ac7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1NamedRuleWithOperationsBuilder extends V1alpha1NamedRuleWithOperationsFluent implements VisitableBuilder{ + + V1alpha1NamedRuleWithOperationsFluent fluent; + public V1alpha1NamedRuleWithOperationsBuilder() { this(new V1alpha1NamedRuleWithOperations()); } @@ -10,17 +14,16 @@ public V1alpha1NamedRuleWithOperationsBuilder(V1alpha1NamedRuleWithOperationsFlu this(fluent, new V1alpha1NamedRuleWithOperations()); } - public V1alpha1NamedRuleWithOperationsBuilder(V1alpha1NamedRuleWithOperationsFluent fluent,V1alpha1NamedRuleWithOperations instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1NamedRuleWithOperationsBuilder(V1alpha1NamedRuleWithOperations instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1NamedRuleWithOperationsFluent fluent; + public V1alpha1NamedRuleWithOperationsBuilder(V1alpha1NamedRuleWithOperationsFluent fluent,V1alpha1NamedRuleWithOperations instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1NamedRuleWithOperations build() { V1alpha1NamedRuleWithOperations buildable = new V1alpha1NamedRuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); @@ -32,5 +35,4 @@ public V1alpha1NamedRuleWithOperations build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java index 7e8fe0fd1d..347b2e082f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java @@ -1,91 +1,276 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1NamedRuleWithOperationsFluent> extends BaseFluent{ - public V1alpha1NamedRuleWithOperationsFluent() { - } - - public V1alpha1NamedRuleWithOperationsFluent(V1alpha1NamedRuleWithOperations instance) { - this.copyInstance(instance); - } +public class V1alpha1NamedRuleWithOperationsFluent> extends BaseFluent{ + private List apiGroups; private List apiVersions; private List operations; private List resourceNames; private List resources; private String scope; + + public V1alpha1NamedRuleWithOperationsFluent() { + } - protected void copyInstance(V1alpha1NamedRuleWithOperations instance) { - instance = (instance != null ? instance : new V1alpha1NamedRuleWithOperations()); - 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 V1alpha1NamedRuleWithOperationsFluent(V1alpha1NamedRuleWithOperations instance) { + this.copyInstance(instance); + } + + 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 addAllToApiVersions(Collection items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.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 addAllToResourceNames(Collection items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.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 addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + 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 addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(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 addToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.add(index, 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 addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.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 addToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.add(index, 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 A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } - public List getApiGroups() { - return this.apiGroups; + 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 addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; + } + + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.add(index, item); + return (A) this; + } + + protected void copyInstance(V1alpha1NamedRuleWithOperations instance) { + instance = instance != null ? instance : new V1alpha1NamedRuleWithOperations(); + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1NamedRuleWithOperationsFluent that = (V1alpha1NamedRuleWithOperationsFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + return true; } public String getApiGroup(int index) { return this.apiGroups.get(index); } + public List getApiGroups() { + return this.apiGroups; + } + + public String getApiVersion(int index) { + return this.apiVersions.get(index); + } + + public List getApiVersions() { + return this.apiVersions; + } + public String getFirstApiGroup() { return this.apiGroups.get(0); } + public String getFirstApiVersion() { + return this.apiVersions.get(0); + } + + public String getFirstOperation() { + return this.operations.get(0); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getFirstResourceName() { + return this.resourceNames.get(0); + } + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } + public String getLastApiVersion() { + return this.apiVersions.get(apiVersions.size() - 1); + } + + public String getLastOperation() { + return this.operations.get(operations.size() - 1); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); + } + public String getMatchingApiGroup(Predicate predicate) { for (String item : apiGroups) { if (predicate.test(item)) { @@ -95,6 +280,78 @@ public String getMatchingApiGroup(Predicate predicate) { return null; } + public String getMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getOperation(int index) { + return this.operations.get(index); + } + + public List getOperations() { + return this.operations; + } + + public String getResource(int index) { + return this.resources.get(index); + } + + public String getResourceName(int index) { + return this.resourceNames.get(index); + } + + public List getResourceNames() { + return this.resourceNames; + } + + public List getResources() { + return this.resources; + } + + public String getScope() { + return this.scope; + } + + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); + } + + public boolean hasApiVersions() { + return this.apiVersions != null && !(this.apiVersions.isEmpty()); + } + public boolean hasMatchingApiGroup(Predicate predicate) { for (String item : apiGroups) { if (predicate.test(item)) { @@ -104,6 +361,238 @@ public boolean hasMatchingApiGroup(Predicate predicate) { return false; } + public boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOperations() { + return this.operations != null && !(this.operations.isEmpty()); + } + + public boolean hasResourceNames() { + return this.resourceNames != null && !(this.resourceNames.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public boolean hasScope() { + return this.scope != null; + } + + public int hashCode() { + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.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 A removeAllFromOperations(Collection items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.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 A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; + } + + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; + } + + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; + } + + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; + } + + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; + } + + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(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 setToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(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 setToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(apiVersions == null) && !(apiVersions.isEmpty())) { + sb.append("apiVersions:"); + sb.append(apiVersions); + sb.append(","); + } + if (!(operations == null) && !(operations.isEmpty())) { + sb.append("operations:"); + sb.append(operations); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } + sb.append("}"); + return sb.toString(); + } + public A withApiGroups(List apiGroups) { if (apiGroups != null) { this.apiGroups = new ArrayList(); @@ -116,7 +605,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -129,75 +618,6 @@ public A withApiGroups(java.lang.String... apiGroups) { 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(); @@ -210,7 +630,7 @@ public A withApiVersions(List apiVersions) { return (A) this; } - public A withApiVersions(java.lang.String... apiVersions) { + public A withApiVersions(String... apiVersions) { if (this.apiVersions != null) { this.apiVersions.clear(); _visitables.remove("apiVersions"); @@ -223,75 +643,6 @@ public A withApiVersions(java.lang.String... apiVersions) { 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(); @@ -304,7 +655,7 @@ public A withOperations(List operations) { return (A) this; } - public A withOperations(java.lang.String... operations) { + public A withOperations(String... operations) { if (this.operations != null) { this.operations.clear(); _visitables.remove("operations"); @@ -317,75 +668,6 @@ public A withOperations(java.lang.String... operations) { 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(); @@ -398,7 +680,7 @@ public A withResourceNames(List resourceNames) { return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { + public A withResourceNames(String... resourceNames) { if (this.resourceNames != null) { this.resourceNames.clear(); _visitables.remove("resourceNames"); @@ -411,75 +693,6 @@ public A withResourceNames(java.lang.String... resourceNames) { 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(); @@ -492,7 +705,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -505,53 +718,9 @@ public A withResources(java.lang.String... resources) { 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; - V1alpha1NamedRuleWithOperationsFluent that = (V1alpha1NamedRuleWithOperationsFluent) 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/V1alpha1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java index 9afbf58e4e..dac4c528f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ParamKindBuilder extends V1alpha1ParamKindFluent implements VisitableBuilder{ + + V1alpha1ParamKindFluent fluent; + public V1alpha1ParamKindBuilder() { this(new V1alpha1ParamKind()); } @@ -10,17 +14,16 @@ public V1alpha1ParamKindBuilder(V1alpha1ParamKindFluent fluent) { this(fluent, new V1alpha1ParamKind()); } - public V1alpha1ParamKindBuilder(V1alpha1ParamKindFluent fluent,V1alpha1ParamKind instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ParamKindBuilder(V1alpha1ParamKind instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ParamKindFluent fluent; + public V1alpha1ParamKindBuilder(V1alpha1ParamKindFluent fluent,V1alpha1ParamKind instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ParamKind build() { V1alpha1ParamKind buildable = new V1alpha1ParamKind(); buildable.setApiVersion(fluent.getApiVersion()); @@ -28,5 +31,4 @@ public V1alpha1ParamKind build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java index cbc9a83cde..7d1d591cd7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ParamKindFluent> extends BaseFluent{ +public class V1alpha1ParamKindFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + public V1alpha1ParamKindFluent() { } public V1alpha1ParamKindFluent(V1alpha1ParamKind instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - + protected void copyInstance(V1alpha1ParamKind instance) { - instance = (instance != null ? instance : new V1alpha1ParamKind()); + instance = instance != null ? instance : new V1alpha1ParamKind(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1ParamKindFluent that = (V1alpha1ParamKindFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } 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; - V1alpha1ParamKindFluent that = (V1alpha1ParamKindFluent) 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()); + return Objects.hash(apiVersion, kind); } 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 (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + } sb.append("}"); return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java index 6b2e4b3df5..7a41459a29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ParamRefBuilder extends V1alpha1ParamRefFluent implements VisitableBuilder{ + + V1alpha1ParamRefFluent fluent; + public V1alpha1ParamRefBuilder() { this(new V1alpha1ParamRef()); } @@ -10,17 +14,16 @@ public V1alpha1ParamRefBuilder(V1alpha1ParamRefFluent fluent) { this(fluent, new V1alpha1ParamRef()); } - public V1alpha1ParamRefBuilder(V1alpha1ParamRefFluent fluent,V1alpha1ParamRef instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ParamRefBuilder(V1alpha1ParamRef instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ParamRefFluent fluent; + public V1alpha1ParamRefBuilder(V1alpha1ParamRefFluent fluent,V1alpha1ParamRef instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ParamRef build() { V1alpha1ParamRef buildable = new V1alpha1ParamRef(); buildable.setName(fluent.getName()); @@ -30,5 +33,4 @@ public V1alpha1ParamRef build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java index 682ef2e813..c833d779e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java @@ -1,94 +1,150 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ParamRefFluent> extends BaseFluent{ +public class V1alpha1ParamRefFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String parameterNotFoundAction; + private V1LabelSelectorBuilder selector; + public V1alpha1ParamRefFluent() { } public V1alpha1ParamRefFluent(V1alpha1ParamRef instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String parameterNotFoundAction; - private V1LabelSelectorBuilder selector; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V1alpha1ParamRef instance) { - instance = (instance != null ? instance : new V1alpha1ParamRef()); + instance = instance != null ? instance : new V1alpha1ParamRef(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); - this.withSelector(instance.getSelector()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); + this.withSelector(instance.getSelector()); + } } - public String getName() { - return this.name; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withName(String name) { - this.name = name; - return (A) this; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public boolean hasName() { - return this.name != null; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public String getNamespace() { - return this.namespace; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1ParamRefFluent that = (V1alpha1ParamRefFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + return true; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public String getName() { + return this.name; } - public boolean hasNamespace() { - return this.namespace != null; + public String getNamespace() { + return this.namespace; } public String getParameterNotFoundAction() { return this.parameterNotFoundAction; } - public A withParameterNotFoundAction(String parameterNotFoundAction) { - this.parameterNotFoundAction = parameterNotFoundAction; - return (A) this; + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; } public boolean hasParameterNotFoundAction() { return this.parameterNotFoundAction != null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public boolean hasSelector() { + return this.selector != 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); + public int hashCode() { + return Objects.hash(name, namespace, parameterNotFoundAction, selector); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); } + if (!(parameterNotFoundAction == null)) { + sb.append("parameterNotFoundAction:"); + sb.append(parameterNotFoundAction); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; return (A) this; } - public boolean hasSelector() { - return this.selector != null; + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; } public SelectorNested withNewSelector() { @@ -99,50 +155,30 @@ 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 A withParameterNotFoundAction(String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1ParamRefFluent that = (V1alpha1ParamRefFluent) 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 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 class SelectorNested extends V1LabelSelectorFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(name, namespace, parameterNotFoundAction, selector, super.hashCode()); - } + V1LabelSelectorBuilder builder; - 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) V1alpha1ParamRefFluent.this.withSelector(builder.build()); } @@ -151,7 +187,5 @@ public N endSelector() { 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 35a52ec807..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReferenceBuilder.java +++ /dev/null @@ -1,34 +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()); - 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 a99f9217a2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReferenceFluent.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 V1alpha1ParentReferenceFluent> extends BaseFluent{ - public V1alpha1ParentReferenceFluent() { - } - - public V1alpha1ParentReferenceFluent(V1alpha1ParentReference instance) { - this.copyInstance(instance); - } - private String group; - private String name; - private String namespace; - private String resource; - - 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()); - } - } - - 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; - 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; - 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/V1alpha1PodGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupBuilder.java new file mode 100644 index 0000000000..7b06cae0b9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1PodGroupBuilder extends V1alpha1PodGroupFluent implements VisitableBuilder{ + + V1alpha1PodGroupFluent fluent; + + public V1alpha1PodGroupBuilder() { + this(new V1alpha1PodGroup()); + } + + public V1alpha1PodGroupBuilder(V1alpha1PodGroupFluent fluent) { + this(fluent, new V1alpha1PodGroup()); + } + + public V1alpha1PodGroupBuilder(V1alpha1PodGroup instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1PodGroupBuilder(V1alpha1PodGroupFluent fluent,V1alpha1PodGroup instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1PodGroup build() { + V1alpha1PodGroup buildable = new V1alpha1PodGroup(); + buildable.setName(fluent.getName()); + buildable.setPolicy(fluent.buildPolicy()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupFluent.java new file mode 100644 index 0000000000..f1fc5203ea --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupFluent.java @@ -0,0 +1,145 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1PodGroupFluent> extends BaseFluent{ + + private String name; + private V1alpha1PodGroupPolicyBuilder policy; + + public V1alpha1PodGroupFluent() { + } + + public V1alpha1PodGroupFluent(V1alpha1PodGroup instance) { + this.copyInstance(instance); + } + + public V1alpha1PodGroupPolicy buildPolicy() { + return this.policy != null ? this.policy.build() : null; + } + + protected void copyInstance(V1alpha1PodGroup instance) { + instance = instance != null ? instance : new V1alpha1PodGroup(); + if (instance != null) { + this.withName(instance.getName()); + this.withPolicy(instance.getPolicy()); + } + } + + public PolicyNested editOrNewPolicy() { + return this.withNewPolicyLike(Optional.ofNullable(this.buildPolicy()).orElse(new V1alpha1PodGroupPolicyBuilder().build())); + } + + public PolicyNested editOrNewPolicyLike(V1alpha1PodGroupPolicy item) { + return this.withNewPolicyLike(Optional.ofNullable(this.buildPolicy()).orElse(item)); + } + + public PolicyNested editPolicy() { + return this.withNewPolicyLike(Optional.ofNullable(this.buildPolicy()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1PodGroupFluent that = (V1alpha1PodGroupFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(policy, that.policy))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPolicy() { + return this.policy != null; + } + + public int hashCode() { + return Objects.hash(name, policy); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(policy == null)) { + sb.append("policy:"); + sb.append(policy); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public PolicyNested withNewPolicy() { + return new PolicyNested(null); + } + + public PolicyNested withNewPolicyLike(V1alpha1PodGroupPolicy item) { + return new PolicyNested(item); + } + + public A withPolicy(V1alpha1PodGroupPolicy policy) { + this._visitables.remove("policy"); + if (policy != null) { + this.policy = new V1alpha1PodGroupPolicyBuilder(policy); + this._visitables.get("policy").add(this.policy); + } else { + this.policy = null; + this._visitables.get("policy").remove(this.policy); + } + return (A) this; + } + public class PolicyNested extends V1alpha1PodGroupPolicyFluent> implements Nested{ + + V1alpha1PodGroupPolicyBuilder builder; + + PolicyNested(V1alpha1PodGroupPolicy item) { + this.builder = new V1alpha1PodGroupPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha1PodGroupFluent.this.withPolicy(builder.build()); + } + + public N endPolicy() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyBuilder.java new file mode 100644 index 0000000000..f6c48f595b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1PodGroupPolicyBuilder extends V1alpha1PodGroupPolicyFluent implements VisitableBuilder{ + + V1alpha1PodGroupPolicyFluent fluent; + + public V1alpha1PodGroupPolicyBuilder() { + this(new V1alpha1PodGroupPolicy()); + } + + public V1alpha1PodGroupPolicyBuilder(V1alpha1PodGroupPolicyFluent fluent) { + this(fluent, new V1alpha1PodGroupPolicy()); + } + + public V1alpha1PodGroupPolicyBuilder(V1alpha1PodGroupPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1PodGroupPolicyBuilder(V1alpha1PodGroupPolicyFluent fluent,V1alpha1PodGroupPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1PodGroupPolicy build() { + V1alpha1PodGroupPolicy buildable = new V1alpha1PodGroupPolicy(); + buildable.setBasic(fluent.getBasic()); + buildable.setGang(fluent.buildGang()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyFluent.java new file mode 100644 index 0000000000..265b132192 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyFluent.java @@ -0,0 +1,145 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1PodGroupPolicyFluent> extends BaseFluent{ + + private Object basic; + private V1alpha1GangSchedulingPolicyBuilder gang; + + public V1alpha1PodGroupPolicyFluent() { + } + + public V1alpha1PodGroupPolicyFluent(V1alpha1PodGroupPolicy instance) { + this.copyInstance(instance); + } + + public V1alpha1GangSchedulingPolicy buildGang() { + return this.gang != null ? this.gang.build() : null; + } + + protected void copyInstance(V1alpha1PodGroupPolicy instance) { + instance = instance != null ? instance : new V1alpha1PodGroupPolicy(); + if (instance != null) { + this.withBasic(instance.getBasic()); + this.withGang(instance.getGang()); + } + } + + public GangNested editGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(null)); + } + + public GangNested editOrNewGang() { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(new V1alpha1GangSchedulingPolicyBuilder().build())); + } + + public GangNested editOrNewGangLike(V1alpha1GangSchedulingPolicy item) { + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1PodGroupPolicyFluent that = (V1alpha1PodGroupPolicyFluent) o; + if (!(Objects.equals(basic, that.basic))) { + return false; + } + if (!(Objects.equals(gang, that.gang))) { + return false; + } + return true; + } + + public Object getBasic() { + return this.basic; + } + + public boolean hasBasic() { + return this.basic != null; + } + + public boolean hasGang() { + return this.gang != null; + } + + public int hashCode() { + return Objects.hash(basic, gang); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(basic == null)) { + sb.append("basic:"); + sb.append(basic); + sb.append(","); + } + if (!(gang == null)) { + sb.append("gang:"); + sb.append(gang); + } + sb.append("}"); + return sb.toString(); + } + + public A withBasic(Object basic) { + this.basic = basic; + return (A) this; + } + + public A withGang(V1alpha1GangSchedulingPolicy gang) { + this._visitables.remove("gang"); + if (gang != null) { + this.gang = new V1alpha1GangSchedulingPolicyBuilder(gang); + this._visitables.get("gang").add(this.gang); + } else { + this.gang = null; + this._visitables.get("gang").remove(this.gang); + } + return (A) this; + } + + public GangNested withNewGang() { + return new GangNested(null); + } + + public GangNested withNewGangLike(V1alpha1GangSchedulingPolicy item) { + return new GangNested(item); + } + public class GangNested extends V1alpha1GangSchedulingPolicyFluent> implements Nested{ + + V1alpha1GangSchedulingPolicyBuilder builder; + + GangNested(V1alpha1GangSchedulingPolicy item) { + this.builder = new V1alpha1GangSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha1PodGroupPolicyFluent.this.withGang(builder.build()); + } + + public N endGang() { + return and(); + } + + } +} \ 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/V1alpha1ServerStorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java index 5bf9747028..288d39fc86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1ServerStorageVersionBuilder extends V1alpha1ServerStorageVersionFluent implements VisitableBuilder{ + + V1alpha1ServerStorageVersionFluent fluent; + public V1alpha1ServerStorageVersionBuilder() { this(new V1alpha1ServerStorageVersion()); } @@ -10,17 +14,16 @@ public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent this(fluent, new V1alpha1ServerStorageVersion()); } - public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent fluent,V1alpha1ServerStorageVersion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersion instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1ServerStorageVersionFluent fluent; + public V1alpha1ServerStorageVersionBuilder(V1alpha1ServerStorageVersionFluent fluent,V1alpha1ServerStorageVersion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1ServerStorageVersion build() { V1alpha1ServerStorageVersion buildable = new V1alpha1ServerStorageVersion(); buildable.setApiServerID(fluent.getApiServerID()); @@ -30,5 +33,4 @@ public V1alpha1ServerStorageVersion build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java index 73fcec1729..180266dc54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java @@ -1,100 +1,158 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1ServerStorageVersionFluent> extends BaseFluent{ - public V1alpha1ServerStorageVersionFluent() { - } - - public V1alpha1ServerStorageVersionFluent(V1alpha1ServerStorageVersion instance) { - this.copyInstance(instance); - } +public class V1alpha1ServerStorageVersionFluent> extends BaseFluent{ + private String apiServerID; private List decodableVersions; private String encodingVersion; private List servedVersions; - - protected void copyInstance(V1alpha1ServerStorageVersion instance) { - instance = (instance != null ? instance : new V1alpha1ServerStorageVersion()); - if (instance != null) { - this.withApiServerID(instance.getApiServerID()); - this.withDecodableVersions(instance.getDecodableVersions()); - this.withEncodingVersion(instance.getEncodingVersion()); - this.withServedVersions(instance.getServedVersions()); - } + + public V1alpha1ServerStorageVersionFluent() { } - public String getApiServerID() { - return this.apiServerID; + public V1alpha1ServerStorageVersionFluent(V1alpha1ServerStorageVersion instance) { + this.copyInstance(instance); + } + + public A addAllToDecodableVersions(Collection items) { + if (this.decodableVersions == null) { + this.decodableVersions = new ArrayList(); + } + for (String item : items) { + this.decodableVersions.add(item); + } + return (A) this; } - public A withApiServerID(String apiServerID) { - this.apiServerID = apiServerID; + public A addAllToServedVersions(Collection items) { + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } + for (String item : items) { + this.servedVersions.add(item); + } return (A) this; } - public boolean hasApiServerID() { - return this.apiServerID != null; + public A addToDecodableVersions(String... items) { + if (this.decodableVersions == null) { + this.decodableVersions = new ArrayList(); + } + for (String item : items) { + this.decodableVersions.add(item); + } + return (A) this; } public A addToDecodableVersions(int index,String item) { - if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} + if (this.decodableVersions == null) { + this.decodableVersions = new ArrayList(); + } this.decodableVersions.add(index, item); - return (A)this; + return (A) this; } - public A setToDecodableVersions(int index,String item) { - if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} - this.decodableVersions.set(index, item); return (A)this; + public A addToServedVersions(String... items) { + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } + for (String item : items) { + this.servedVersions.add(item); + } + return (A) this; } - public A addToDecodableVersions(java.lang.String... items) { - if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} - for (String item : items) {this.decodableVersions.add(item);} return (A)this; + public A addToServedVersions(int index,String item) { + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } + this.servedVersions.add(index, item); + return (A) this; } - public A addAllToDecodableVersions(Collection items) { - if (this.decodableVersions == null) {this.decodableVersions = new ArrayList();} - for (String item : items) {this.decodableVersions.add(item);} return (A)this; + protected void copyInstance(V1alpha1ServerStorageVersion instance) { + instance = instance != null ? instance : new V1alpha1ServerStorageVersion(); + if (instance != null) { + this.withApiServerID(instance.getApiServerID()); + this.withDecodableVersions(instance.getDecodableVersions()); + this.withEncodingVersion(instance.getEncodingVersion()); + this.withServedVersions(instance.getServedVersions()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1ServerStorageVersionFluent that = (V1alpha1ServerStorageVersionFluent) o; + if (!(Objects.equals(apiServerID, that.apiServerID))) { + return false; + } + if (!(Objects.equals(decodableVersions, that.decodableVersions))) { + return false; + } + if (!(Objects.equals(encodingVersion, that.encodingVersion))) { + return false; + } + if (!(Objects.equals(servedVersions, that.servedVersions))) { + return false; + } + return true; } - public A removeFromDecodableVersions(java.lang.String... items) { - if (this.decodableVersions == null) return (A)this; - for (String item : items) { this.decodableVersions.remove(item);} return (A)this; + public String getApiServerID() { + return this.apiServerID; } - public A removeAllFromDecodableVersions(Collection items) { - if (this.decodableVersions == null) return (A)this; - for (String item : items) { this.decodableVersions.remove(item);} return (A)this; + public String getDecodableVersion(int index) { + return this.decodableVersions.get(index); } public List getDecodableVersions() { return this.decodableVersions; } - public String getDecodableVersion(int index) { - return this.decodableVersions.get(index); + public String getEncodingVersion() { + return this.encodingVersion; } public String getFirstDecodableVersion() { return this.decodableVersions.get(0); } + public String getFirstServedVersion() { + return this.servedVersions.get(0); + } + public String getLastDecodableVersion() { return this.decodableVersions.get(decodableVersions.size() - 1); } + public String getLastServedVersion() { + return this.servedVersions.get(servedVersions.size() - 1); + } + public String getMatchingDecodableVersion(Predicate predicate) { for (String item : decodableVersions) { if (predicate.test(item)) { @@ -104,120 +162,176 @@ public String getMatchingDecodableVersion(Predicate predicate) { return null; } - public boolean hasMatchingDecodableVersion(Predicate predicate) { - for (String item : decodableVersions) { + public String getMatchingServedVersion(Predicate predicate) { + for (String item : servedVersions) { if (predicate.test(item)) { - return true; + return item; } } - return false; - } - - public A withDecodableVersions(List decodableVersions) { - if (decodableVersions != null) { - this.decodableVersions = new ArrayList(); - for (String item : decodableVersions) { - this.addToDecodableVersions(item); - } - } else { - this.decodableVersions = null; - } - return (A) this; + return null; } - public A withDecodableVersions(java.lang.String... decodableVersions) { - if (this.decodableVersions != null) { - this.decodableVersions.clear(); - _visitables.remove("decodableVersions"); - } - if (decodableVersions != null) { - for (String item : decodableVersions) { - this.addToDecodableVersions(item); - } - } - return (A) this; + public String getServedVersion(int index) { + return this.servedVersions.get(index); } - public boolean hasDecodableVersions() { - return this.decodableVersions != null && !this.decodableVersions.isEmpty(); + public List getServedVersions() { + return this.servedVersions; } - public String getEncodingVersion() { - return this.encodingVersion; + public boolean hasApiServerID() { + return this.apiServerID != null; } - public A withEncodingVersion(String encodingVersion) { - this.encodingVersion = encodingVersion; - return (A) this; + public boolean hasDecodableVersions() { + return this.decodableVersions != null && !(this.decodableVersions.isEmpty()); } public boolean hasEncodingVersion() { return this.encodingVersion != null; } - public A addToServedVersions(int index,String item) { - if (this.servedVersions == null) {this.servedVersions = new ArrayList();} - this.servedVersions.add(index, item); - return (A)this; + public boolean hasMatchingDecodableVersion(Predicate predicate) { + for (String item : decodableVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A setToServedVersions(int index,String item) { - if (this.servedVersions == null) {this.servedVersions = new ArrayList();} - this.servedVersions.set(index, item); return (A)this; + public boolean hasMatchingServedVersion(Predicate predicate) { + for (String item : servedVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToServedVersions(java.lang.String... items) { - if (this.servedVersions == null) {this.servedVersions = new ArrayList();} - for (String item : items) {this.servedVersions.add(item);} return (A)this; + public boolean hasServedVersions() { + return this.servedVersions != null && !(this.servedVersions.isEmpty()); } - public A addAllToServedVersions(Collection items) { - if (this.servedVersions == null) {this.servedVersions = new ArrayList();} - for (String item : items) {this.servedVersions.add(item);} return (A)this; + public int hashCode() { + return Objects.hash(apiServerID, decodableVersions, encodingVersion, servedVersions); } - public A removeFromServedVersions(java.lang.String... items) { - if (this.servedVersions == null) return (A)this; - for (String item : items) { this.servedVersions.remove(item);} return (A)this; + public A removeAllFromDecodableVersions(Collection items) { + if (this.decodableVersions == null) { + return (A) this; + } + for (String item : items) { + this.decodableVersions.remove(item); + } + return (A) this; } public A removeAllFromServedVersions(Collection items) { - if (this.servedVersions == null) return (A)this; - for (String item : items) { this.servedVersions.remove(item);} return (A)this; + if (this.servedVersions == null) { + return (A) this; + } + for (String item : items) { + this.servedVersions.remove(item); + } + return (A) this; } - public List getServedVersions() { - return this.servedVersions; + public A removeFromDecodableVersions(String... items) { + if (this.decodableVersions == null) { + return (A) this; + } + for (String item : items) { + this.decodableVersions.remove(item); + } + return (A) this; } - public String getServedVersion(int index) { - return this.servedVersions.get(index); + public A removeFromServedVersions(String... items) { + if (this.servedVersions == null) { + return (A) this; + } + for (String item : items) { + this.servedVersions.remove(item); + } + return (A) this; } - public String getFirstServedVersion() { - return this.servedVersions.get(0); + public A setToDecodableVersions(int index,String item) { + if (this.decodableVersions == null) { + this.decodableVersions = new ArrayList(); + } + this.decodableVersions.set(index, item); + return (A) this; } - public String getLastServedVersion() { - return this.servedVersions.get(servedVersions.size() - 1); + public A setToServedVersions(int index,String item) { + if (this.servedVersions == null) { + this.servedVersions = new ArrayList(); + } + this.servedVersions.set(index, item); + return (A) this; } - public String getMatchingServedVersion(Predicate predicate) { - for (String item : servedVersions) { - if (predicate.test(item)) { - return item; - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiServerID == null)) { + sb.append("apiServerID:"); + sb.append(apiServerID); + sb.append(","); + } + if (!(decodableVersions == null) && !(decodableVersions.isEmpty())) { + sb.append("decodableVersions:"); + sb.append(decodableVersions); + sb.append(","); + } + if (!(encodingVersion == null)) { + sb.append("encodingVersion:"); + sb.append(encodingVersion); + sb.append(","); + } + if (!(servedVersions == null) && !(servedVersions.isEmpty())) { + sb.append("servedVersions:"); + sb.append(servedVersions); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingServedVersion(Predicate predicate) { - for (String item : servedVersions) { - if (predicate.test(item)) { - return true; + public A withApiServerID(String apiServerID) { + this.apiServerID = apiServerID; + return (A) this; + } + + public A withDecodableVersions(List decodableVersions) { + if (decodableVersions != null) { + this.decodableVersions = new ArrayList(); + for (String item : decodableVersions) { + this.addToDecodableVersions(item); } + } else { + this.decodableVersions = null; + } + return (A) this; + } + + public A withDecodableVersions(String... decodableVersions) { + if (this.decodableVersions != null) { + this.decodableVersions.clear(); + _visitables.remove("decodableVersions"); + } + if (decodableVersions != null) { + for (String item : decodableVersions) { + this.addToDecodableVersions(item); } - return false; + } + return (A) this; + } + + public A withEncodingVersion(String encodingVersion) { + this.encodingVersion = encodingVersion; + return (A) this; } public A withServedVersions(List servedVersions) { @@ -232,7 +346,7 @@ public A withServedVersions(List servedVersions) { return (A) this; } - public A withServedVersions(java.lang.String... servedVersions) { + public A withServedVersions(String... servedVersions) { if (this.servedVersions != null) { this.servedVersions.clear(); _visitables.remove("servedVersions"); @@ -245,36 +359,4 @@ public A withServedVersions(java.lang.String... servedVersions) { return (A) this; } - public boolean hasServedVersions() { - return this.servedVersions != null && !this.servedVersions.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; - V1alpha1ServerStorageVersionFluent that = (V1alpha1ServerStorageVersionFluent) o; - if (!java.util.Objects.equals(apiServerID, that.apiServerID)) return false; - if (!java.util.Objects.equals(decodableVersions, that.decodableVersions)) return false; - if (!java.util.Objects.equals(encodingVersion, that.encodingVersion)) return false; - if (!java.util.Objects.equals(servedVersions, that.servedVersions)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiServerID, decodableVersions, encodingVersion, servedVersions, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiServerID != null) { sb.append("apiServerID:"); sb.append(apiServerID + ","); } - if (decodableVersions != null && !decodableVersions.isEmpty()) { sb.append("decodableVersions:"); sb.append(decodableVersions + ","); } - if (encodingVersion != null) { sb.append("encodingVersion:"); sb.append(encodingVersion + ","); } - if (servedVersions != null && !servedVersions.isEmpty()) { sb.append("servedVersions:"); sb.append(servedVersions); } - sb.append("}"); - return sb.toString(); - } - - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRBuilder.java deleted file mode 100644 index 074d398ec4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ServiceCIDRBuilder extends V1alpha1ServiceCIDRFluent implements VisitableBuilder{ - public V1alpha1ServiceCIDRBuilder() { - this(new V1alpha1ServiceCIDR()); - } - - public V1alpha1ServiceCIDRBuilder(V1alpha1ServiceCIDRFluent fluent) { - this(fluent, new V1alpha1ServiceCIDR()); - } - - public V1alpha1ServiceCIDRBuilder(V1alpha1ServiceCIDRFluent fluent,V1alpha1ServiceCIDR instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ServiceCIDRBuilder(V1alpha1ServiceCIDR instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ServiceCIDRFluent fluent; - - public V1alpha1ServiceCIDR build() { - V1alpha1ServiceCIDR buildable = new V1alpha1ServiceCIDR(); - 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/V1alpha1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRFluent.java deleted file mode 100644 index 215b164ac4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRFluent.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 V1alpha1ServiceCIDRFluent> extends BaseFluent{ - public V1alpha1ServiceCIDRFluent() { - } - - public V1alpha1ServiceCIDRFluent(V1alpha1ServiceCIDR instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha1ServiceCIDRSpecBuilder spec; - private V1alpha1ServiceCIDRStatusBuilder status; - - protected void copyInstance(V1alpha1ServiceCIDR instance) { - instance = (instance != null ? instance : new V1alpha1ServiceCIDR()); - 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 V1alpha1ServiceCIDRSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1alpha1ServiceCIDRSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1alpha1ServiceCIDRSpecBuilder(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(V1alpha1ServiceCIDRSpec 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 V1alpha1ServiceCIDRSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1alpha1ServiceCIDRSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1alpha1ServiceCIDRStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1alpha1ServiceCIDRStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1alpha1ServiceCIDRStatusBuilder(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(V1alpha1ServiceCIDRStatus 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 V1alpha1ServiceCIDRStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1alpha1ServiceCIDRStatus 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; - V1alpha1ServiceCIDRFluent that = (V1alpha1ServiceCIDRFluent) 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) V1alpha1ServiceCIDRFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1alpha1ServiceCIDRSpecFluent> implements Nested{ - SpecNested(V1alpha1ServiceCIDRSpec item) { - this.builder = new V1alpha1ServiceCIDRSpecBuilder(this, item); - } - V1alpha1ServiceCIDRSpecBuilder builder; - - public N and() { - return (N) V1alpha1ServiceCIDRFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1alpha1ServiceCIDRStatusFluent> implements Nested{ - StatusNested(V1alpha1ServiceCIDRStatus item) { - this.builder = new V1alpha1ServiceCIDRStatusBuilder(this, item); - } - V1alpha1ServiceCIDRStatusBuilder builder; - - public N and() { - return (N) V1alpha1ServiceCIDRFluent.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/V1alpha1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRListBuilder.java deleted file mode 100644 index fde078a5c2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ServiceCIDRListBuilder extends V1alpha1ServiceCIDRListFluent implements VisitableBuilder{ - public V1alpha1ServiceCIDRListBuilder() { - this(new V1alpha1ServiceCIDRList()); - } - - public V1alpha1ServiceCIDRListBuilder(V1alpha1ServiceCIDRListFluent fluent) { - this(fluent, new V1alpha1ServiceCIDRList()); - } - - public V1alpha1ServiceCIDRListBuilder(V1alpha1ServiceCIDRListFluent fluent,V1alpha1ServiceCIDRList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ServiceCIDRListBuilder(V1alpha1ServiceCIDRList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ServiceCIDRListFluent fluent; - - public V1alpha1ServiceCIDRList build() { - V1alpha1ServiceCIDRList buildable = new V1alpha1ServiceCIDRList(); - 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/V1alpha1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRListFluent.java deleted file mode 100644 index 3998534f21..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRListFluent.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 V1alpha1ServiceCIDRListFluent> extends BaseFluent{ - public V1alpha1ServiceCIDRListFluent() { - } - - public V1alpha1ServiceCIDRListFluent(V1alpha1ServiceCIDRList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1ServiceCIDRList instance) { - instance = (instance != null ? instance : new V1alpha1ServiceCIDRList()); - 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,V1alpha1ServiceCIDR item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1ServiceCIDRBuilder builder = new V1alpha1ServiceCIDRBuilder(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,V1alpha1ServiceCIDR item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha1ServiceCIDRBuilder builder = new V1alpha1ServiceCIDRBuilder(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.V1alpha1ServiceCIDR... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1ServiceCIDR item : items) {V1alpha1ServiceCIDRBuilder builder = new V1alpha1ServiceCIDRBuilder(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 (V1alpha1ServiceCIDR item : items) {V1alpha1ServiceCIDRBuilder builder = new V1alpha1ServiceCIDRBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1ServiceCIDR... items) { - if (this.items == null) return (A)this; - for (V1alpha1ServiceCIDR item : items) {V1alpha1ServiceCIDRBuilder builder = new V1alpha1ServiceCIDRBuilder(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 (V1alpha1ServiceCIDR item : items) {V1alpha1ServiceCIDRBuilder builder = new V1alpha1ServiceCIDRBuilder(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()) { - V1alpha1ServiceCIDRBuilder 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 V1alpha1ServiceCIDR buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha1ServiceCIDR buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha1ServiceCIDR buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha1ServiceCIDR buildMatchingItem(Predicate predicate) { - for (V1alpha1ServiceCIDRBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha1ServiceCIDRBuilder 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 (V1alpha1ServiceCIDR item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha1ServiceCIDR... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha1ServiceCIDR 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(V1alpha1ServiceCIDR item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1ServiceCIDR 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; - V1alpha1ServiceCIDRListFluent that = (V1alpha1ServiceCIDRListFluent) 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 V1alpha1ServiceCIDRFluent> implements Nested{ - ItemsNested(int index,V1alpha1ServiceCIDR item) { - this.index = index; - this.builder = new V1alpha1ServiceCIDRBuilder(this, item); - } - V1alpha1ServiceCIDRBuilder builder; - int index; - - public N and() { - return (N) V1alpha1ServiceCIDRListFluent.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) V1alpha1ServiceCIDRListFluent.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/V1alpha1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRSpecBuilder.java deleted file mode 100644 index 39756ee15e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRSpecBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ServiceCIDRSpecBuilder extends V1alpha1ServiceCIDRSpecFluent implements VisitableBuilder{ - public V1alpha1ServiceCIDRSpecBuilder() { - this(new V1alpha1ServiceCIDRSpec()); - } - - public V1alpha1ServiceCIDRSpecBuilder(V1alpha1ServiceCIDRSpecFluent fluent) { - this(fluent, new V1alpha1ServiceCIDRSpec()); - } - - public V1alpha1ServiceCIDRSpecBuilder(V1alpha1ServiceCIDRSpecFluent fluent,V1alpha1ServiceCIDRSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ServiceCIDRSpecBuilder(V1alpha1ServiceCIDRSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ServiceCIDRSpecFluent fluent; - - public V1alpha1ServiceCIDRSpec build() { - V1alpha1ServiceCIDRSpec buildable = new V1alpha1ServiceCIDRSpec(); - buildable.setCidrs(fluent.getCidrs()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRSpecFluent.java deleted file mode 100644 index 694b3c75cf..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRSpecFluent.java +++ /dev/null @@ -1,148 +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 V1alpha1ServiceCIDRSpecFluent> extends BaseFluent{ - public V1alpha1ServiceCIDRSpecFluent() { - } - - public V1alpha1ServiceCIDRSpecFluent(V1alpha1ServiceCIDRSpec instance) { - this.copyInstance(instance); - } - private List cidrs; - - protected void copyInstance(V1alpha1ServiceCIDRSpec instance) { - instance = (instance != null ? instance : new V1alpha1ServiceCIDRSpec()); - 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; - V1alpha1ServiceCIDRSpecFluent that = (V1alpha1ServiceCIDRSpecFluent) 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/V1alpha1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRStatusBuilder.java deleted file mode 100644 index 98a1901d93..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRStatusBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha1ServiceCIDRStatusBuilder extends V1alpha1ServiceCIDRStatusFluent implements VisitableBuilder{ - public V1alpha1ServiceCIDRStatusBuilder() { - this(new V1alpha1ServiceCIDRStatus()); - } - - public V1alpha1ServiceCIDRStatusBuilder(V1alpha1ServiceCIDRStatusFluent fluent) { - this(fluent, new V1alpha1ServiceCIDRStatus()); - } - - public V1alpha1ServiceCIDRStatusBuilder(V1alpha1ServiceCIDRStatusFluent fluent,V1alpha1ServiceCIDRStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1ServiceCIDRStatusBuilder(V1alpha1ServiceCIDRStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha1ServiceCIDRStatusFluent fluent; - - public V1alpha1ServiceCIDRStatus build() { - V1alpha1ServiceCIDRStatus buildable = new V1alpha1ServiceCIDRStatus(); - buildable.setConditions(fluent.buildConditions()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRStatusFluent.java deleted file mode 100644 index ec2668be00..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRStatusFluent.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 V1alpha1ServiceCIDRStatusFluent> extends BaseFluent{ - public V1alpha1ServiceCIDRStatusFluent() { - } - - public V1alpha1ServiceCIDRStatusFluent(V1alpha1ServiceCIDRStatus instance) { - this.copyInstance(instance); - } - private ArrayList conditions; - - protected void copyInstance(V1alpha1ServiceCIDRStatus instance) { - instance = (instance != null ? instance : new V1alpha1ServiceCIDRStatus()); - 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(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 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) V1alpha1ServiceCIDRStatusFluent.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/V1alpha1StorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java index 6eab0ecbec..d641bcbb71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionBuilder extends V1alpha1StorageVersionFluent implements VisitableBuilder{ + + V1alpha1StorageVersionFluent fluent; + public V1alpha1StorageVersionBuilder() { this(new V1alpha1StorageVersion()); } @@ -10,17 +14,16 @@ public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent) { this(fluent, new V1alpha1StorageVersion()); } - public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent,V1alpha1StorageVersion instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionBuilder(V1alpha1StorageVersion instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionFluent fluent; + public V1alpha1StorageVersionBuilder(V1alpha1StorageVersionFluent fluent,V1alpha1StorageVersion instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersion build() { V1alpha1StorageVersion buildable = new V1alpha1StorageVersion(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V1alpha1StorageVersion build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java index 0cfa69d91e..56ed256af1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionConditionBuilder extends V1alpha1StorageVersionConditionFluent implements VisitableBuilder{ + + V1alpha1StorageVersionConditionFluent fluent; + public V1alpha1StorageVersionConditionBuilder() { this(new V1alpha1StorageVersionCondition()); } @@ -10,17 +14,16 @@ public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFlu this(fluent, new V1alpha1StorageVersionCondition()); } - public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFluent fluent,V1alpha1StorageVersionCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionConditionFluent fluent; + public V1alpha1StorageVersionConditionBuilder(V1alpha1StorageVersionConditionFluent fluent,V1alpha1StorageVersionCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionCondition build() { V1alpha1StorageVersionCondition buildable = new V1alpha1StorageVersionCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -32,5 +35,4 @@ public V1alpha1StorageVersionCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java index bb0e3c2880..08c4672f13 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java @@ -1,150 +1,194 @@ package io.kubernetes.client.openapi.models; -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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionConditionFluent> extends BaseFluent{ - public V1alpha1StorageVersionConditionFluent() { - } - - public V1alpha1StorageVersionConditionFluent(V1alpha1StorageVersionCondition instance) { - this.copyInstance(instance); - } +public class V1alpha1StorageVersionConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private Long observedGeneration; private String reason; private String status; private String type; + + public V1alpha1StorageVersionConditionFluent() { + } + public V1alpha1StorageVersionConditionFluent(V1alpha1StorageVersionCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V1alpha1StorageVersionCondition instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionCondition()); + instance = instance != null ? instance : new V1alpha1StorageVersionCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withObservedGeneration(instance.getObservedGeneration()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } - } - - public OffsetDateTime getLastTransitionTime() { - return this.lastTransitionTime; + this.withLastTransitionTime(instance.getLastTransitionTime()); + this.withMessage(instance.getMessage()); + this.withObservedGeneration(instance.getObservedGeneration()); + this.withReason(instance.getReason()); + this.withStatus(instance.getStatus()); + this.withType(instance.getType()); + } } - public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { - this.lastTransitionTime = lastTransitionTime; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1StorageVersionConditionFluent that = (V1alpha1StorageVersionConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public Long getObservedGeneration() { + return this.observedGeneration; } - public boolean hasMessage() { - return this.message != null; + public String getReason() { + return this.reason; } - public Long getObservedGeneration() { - return this.observedGeneration; + public String getStatus() { + return this.status; } - public A withObservedGeneration(Long observedGeneration) { - this.observedGeneration = observedGeneration; - return (A) this; + public String getType() { + return this.type; } - public boolean hasObservedGeneration() { - return this.observedGeneration != null; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; } - public String getReason() { - return this.reason; + public boolean hasMessage() { + return this.message != null; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasObservedGeneration() { + return this.observedGeneration != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1alpha1StorageVersionConditionFluent that = (V1alpha1StorageVersionConditionFluent) 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(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; - return true; + public A withObservedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, observedGeneration, reason, status, type, super.hashCode()); + public A withReason(String reason) { + this.reason = reason; + return (A) this; } - 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 (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); } - sb.append("}"); - return sb.toString(); + public A withStatus(String status) { + this.status = status; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java index 1a1ec6f5ea..8d20d63bc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java @@ -1,67 +1,180 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionFluent> extends BaseFluent{ +public class V1alpha1StorageVersionFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private Object spec; + private V1alpha1StorageVersionStatusBuilder status; + public V1alpha1StorageVersionFluent() { } public V1alpha1StorageVersionFluent(V1alpha1StorageVersion instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private Object spec; - private V1alpha1StorageVersionStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1StorageVersionStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V1alpha1StorageVersion instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersion()); + instance = instance != null ? instance : new V1alpha1StorageVersion(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha1StorageVersionStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1alpha1StorageVersionStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1StorageVersionFluent that = (V1alpha1StorageVersionFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public Object getSpec() { + return this.spec; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +189,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +197,12 @@ 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 StatusNested withNewStatus() { + return new StatusNested(null); } - public Object getSpec() { - return this.spec; + public StatusNested withNewStatusLike(V1alpha1StorageVersionStatus item) { + return new StatusNested(item); } public A withSpec(Object spec) { @@ -109,14 +210,6 @@ public A withSpec(Object spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public V1alpha1StorageVersionStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V1alpha1StorageVersionStatus status) { this._visitables.remove("status"); if (status != null) { @@ -128,65 +221,14 @@ public A withStatus(V1alpha1StorageVersionStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V1alpha1StorageVersionStatus 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 V1alpha1StorageVersionStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1alpha1StorageVersionStatus 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; - V1alpha1StorageVersionFluent that = (V1alpha1StorageVersionFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V1alpha1StorageVersionFluent.this.withMetadata(builder.build()); } @@ -195,14 +237,15 @@ public N endMetadata() { return and(); } - } public class StatusNested extends V1alpha1StorageVersionStatusFluent> implements Nested{ + + V1alpha1StorageVersionStatusBuilder builder; + StatusNested(V1alpha1StorageVersionStatus item) { this.builder = new V1alpha1StorageVersionStatusBuilder(this, item); } - V1alpha1StorageVersionStatusBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionFluent.this.withStatus(builder.build()); } @@ -211,7 +254,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java index cb22fcb241..6ad5af7cd4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionListBuilder extends V1alpha1StorageVersionListFluent implements VisitableBuilder{ + + V1alpha1StorageVersionListFluent fluent; + public V1alpha1StorageVersionListBuilder() { this(new V1alpha1StorageVersionList()); } @@ -10,17 +14,16 @@ public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent flu this(fluent, new V1alpha1StorageVersionList()); } - public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent fluent,V1alpha1StorageVersionList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionList instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionListFluent fluent; + public V1alpha1StorageVersionListBuilder(V1alpha1StorageVersionListFluent fluent,V1alpha1StorageVersionList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionList build() { V1alpha1StorageVersionList buildable = new V1alpha1StorageVersionList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V1alpha1StorageVersionList build() { return buildable; } - } \ 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..45ed933aa2 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionListFluent> extends BaseFluent{ +public class V1alpha1StorageVersionListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V1alpha1StorageVersionListFluent() { } public V1alpha1StorageVersionListFluent(V1alpha1StorageVersionList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha1StorageVersionList instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V1alpha1StorageVersion item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V1alpha1StorageVersion... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V1alpha1StorageVersion item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V1alpha1StorageVersion buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V1alpha1StorageVersion buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { - if (this.items == null) return (A)this; - for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1alpha1StorageVersion buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V1alpha1StorageVersion item : items) {V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V1alpha1StorageVersion buildMatchingItem(Predicate predicate) { + for (V1alpha1StorageVersionBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V1alpha1StorageVersionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1alpha1StorageVersionList instance) { + instance = instance != null ? instance : new V1alpha1StorageVersionList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V1alpha1StorageVersion buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V1alpha1StorageVersion buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V1alpha1StorageVersion buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1StorageVersionListFluent that = (V1alpha1StorageVersionListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V1alpha1StorageVersion buildMatchingItem(Predicate predicate) { - for (V1alpha1StorageVersionBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predicat return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1StorageVersion... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1StorageVersion item : items) { + V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1StorageVersionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1StorageVersion item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... items) { + public A withItems(V1alpha1StorageVersion... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V1alpha1StorageVersion... return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V1alpha1StorageVersion item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha1StorageVersion 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V1alpha1StorageVersionFluent> implements Nested{ - 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; - V1alpha1StorageVersionListFluent that = (V1alpha1StorageVersionListFluent) 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()); - } + V1alpha1StorageVersionBuilder builder; + int index; - 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 V1alpha1StorageVersionFluent> implements Nested{ ItemsNested(int index,V1alpha1StorageVersion item) { this.index = index; this.builder = new V1alpha1StorageVersionBuilder(this, item); } - V1alpha1StorageVersionBuilder builder; - int index; - + public N and() { - return (N) V1alpha1StorageVersionListFluent.this.setToItems(index,builder.build()); + return (N) V1alpha1StorageVersionListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V1alpha1StorageVersionListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file 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 deleted file mode 100644 index 0ed34cde79..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -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 deleted file mode 100644 index 196024de18..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationFluent.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 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 deleted file mode 100644 index af864cecf0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -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 deleted file mode 100644 index d52fc38891..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationListFluent.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 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(index, 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").set(index, 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 deleted file mode 100644 index 1431914912..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -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 deleted file mode 100644 index 0f2def270c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpecFluent.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 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 deleted file mode 100644 index 83a57589e2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -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 deleted file mode 100644 index 8dce48c089..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatusFluent.java +++ /dev/null @@ -1,242 +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 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(index, 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").set(index, 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/V1alpha1StorageVersionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java index 46985e5646..e2d235cb05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1StorageVersionStatusBuilder extends V1alpha1StorageVersionStatusFluent implements VisitableBuilder{ + + V1alpha1StorageVersionStatusFluent fluent; + public V1alpha1StorageVersionStatusBuilder() { this(new V1alpha1StorageVersionStatus()); } @@ -10,17 +14,16 @@ public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent this(fluent, new V1alpha1StorageVersionStatus()); } - public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent fluent,V1alpha1StorageVersionStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatus instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1StorageVersionStatusFluent fluent; + public V1alpha1StorageVersionStatusBuilder(V1alpha1StorageVersionStatusFluent fluent,V1alpha1StorageVersionStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1StorageVersionStatus build() { V1alpha1StorageVersionStatus buildable = new V1alpha1StorageVersionStatus(); buildable.setCommonEncodingVersion(fluent.getCommonEncodingVersion()); @@ -29,5 +32,4 @@ public V1alpha1StorageVersionStatus build() { return buildable; } - } \ 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..67c9ab34c7 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 @@ -1,118 +1,154 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1StorageVersionStatusFluent> extends BaseFluent{ - public V1alpha1StorageVersionStatusFluent() { - } - - public V1alpha1StorageVersionStatusFluent(V1alpha1StorageVersionStatus instance) { - this.copyInstance(instance); - } +public class V1alpha1StorageVersionStatusFluent> extends BaseFluent{ + private String commonEncodingVersion; private ArrayList conditions; private ArrayList storageVersions; - - protected void copyInstance(V1alpha1StorageVersionStatus instance) { - instance = (instance != null ? instance : new V1alpha1StorageVersionStatus()); - if (instance != null) { - this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); - this.withConditions(instance.getConditions()); - this.withStorageVersions(instance.getStorageVersions()); - } + + public V1alpha1StorageVersionStatusFluent() { } - public String getCommonEncodingVersion() { - return this.commonEncodingVersion; + public V1alpha1StorageVersionStatusFluent(V1alpha1StorageVersionStatus instance) { + this.copyInstance(instance); } - - public A withCommonEncodingVersion(String commonEncodingVersion) { - this.commonEncodingVersion = commonEncodingVersion; + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } return (A) this; } - public boolean hasCommonEncodingVersion() { - return this.commonEncodingVersion != null; + public A addAllToStorageVersions(Collection items) { + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); + } + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").add(builder); + this.storageVersions.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - 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);} - return (A)this; + public ConditionsNested addNewConditionLike(V1alpha1StorageVersionCondition item) { + return new ConditionsNested(-1, item); } - public A addToConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public StorageVersionsNested addNewStorageVersion() { + return new StorageVersionsNested(-1, null); } - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public StorageVersionsNested addNewStorageVersionLike(V1alpha1ServerStorageVersion item) { + return new StorageVersionsNested(-1, item); } - public A removeFromConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... items) { - if (this.conditions == null) return (A)this; - for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A addToConditions(V1alpha1StorageVersionCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V1alpha1StorageVersionCondition item : items) {V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + 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(builder); + conditions.add(index, 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()) { - V1alpha1StorageVersionConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToStorageVersions(V1alpha1ServerStorageVersion... items) { + if (this.storageVersions == null) { + this.storageVersions = new ArrayList(); } - return (A)this; + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").add(builder); + this.storageVersions.add(builder); + } + return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + public A addToStorageVersions(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").add(builder); + storageVersions.add(index, builder); + } + return (A) this; } public V1alpha1StorageVersionCondition buildCondition(int index) { return this.conditions.get(index).build(); } + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + public V1alpha1StorageVersionCondition buildFirstCondition() { return this.conditions.get(0).build(); } + public V1alpha1ServerStorageVersion buildFirstStorageVersion() { + return this.storageVersions.get(0).build(); + } + public V1alpha1StorageVersionCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } + public V1alpha1ServerStorageVersion buildLastStorageVersion() { + return this.storageVersions.get(storageVersions.size() - 1).build(); + } + public V1alpha1StorageVersionCondition buildMatchingCondition(Predicate predicate) { for (V1alpha1StorageVersionConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -122,164 +158,335 @@ public V1alpha1StorageVersionCondition buildMatchingCondition(Predicate predicate) { - for (V1alpha1StorageVersionConditionBuilder item : conditions) { + public V1alpha1ServerStorageVersion buildMatchingStorageVersion(Predicate predicate) { + for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); + public V1alpha1ServerStorageVersion buildStorageVersion(int index) { + return this.storageVersions.get(index).build(); + } + + public List buildStorageVersions() { + return this.storageVersions != null ? build(storageVersions) : null; + } + + protected void copyInstance(V1alpha1StorageVersionStatus instance) { + instance = instance != null ? instance : new V1alpha1StorageVersionStatus(); + if (instance != null) { + this.withCommonEncodingVersion(instance.getCommonEncodingVersion()); + this.withConditions(instance.getConditions()); + this.withStorageVersions(instance.getStorageVersions()); } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V1alpha1StorageVersionCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public A withConditions(io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); } - if (conditions != null) { - for (V1alpha1StorageVersionCondition item : conditions) { - this.addToConditions(item); - } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public StorageVersionsNested editFirstStorageVersion() { + if (storageVersions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "storageVersions")); } - return (A) this; + return this.setNewStorageVersionLike(0, this.buildStorageVersion(0)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); + public StorageVersionsNested editLastStorageVersion() { + int index = storageVersions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "storageVersions")); + } + return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); } - public ConditionsNested addNewConditionLike(V1alpha1StorageVersionCondition item) { - return new ConditionsNested(-1, item); + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); } - public ConditionsNested setNewConditionLike(int index,V1alpha1StorageVersionCondition item) { - return new ConditionsNested(index, item); + public StorageVersionsNested editMatchingStorageVersion(Predicate predicate) { + int index = -1; + for (int i = 0;i < storageVersions.size();i++) { + if (predicate.test(storageVersions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "storageVersions")); + } + return this.setNewStorageVersionLike(index, this.buildStorageVersion(index)); } - 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 StorageVersionsNested editStorageVersion(int index) { + if (storageVersions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "storageVersions")); + } + return this.setNewStorageVersionLike(index, this.buildStorageVersion(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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1StorageVersionStatusFluent that = (V1alpha1StorageVersionStatusFluent) o; + if (!(Objects.equals(commonEncodingVersion, that.commonEncodingVersion))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(storageVersions, that.storageVersions))) { + return false; + } + return true; } - 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 String getCommonEncodingVersion() { + return this.commonEncodingVersion; } - public ConditionsNested editMatchingCondition(Predicate predicate) { - int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - 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);} - return (A)this; + public boolean hasMatchingCondition(Predicate predicate) { + for (V1alpha1StorageVersionConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addToStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { - if (this.storageVersions == null) {this.storageVersions = new ArrayList();} - for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").add(builder);this.storageVersions.add(builder);} return (A)this; + public boolean hasMatchingStorageVersion(Predicate predicate) { + for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A addAllToStorageVersions(Collection items) { - if (this.storageVersions == null) {this.storageVersions = new ArrayList();} - for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").add(builder);this.storageVersions.add(builder);} return (A)this; + public boolean hasStorageVersions() { + return this.storageVersions != null && !(this.storageVersions.isEmpty()); } - public A removeFromStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... items) { - if (this.storageVersions == null) return (A)this; - for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").remove(builder); this.storageVersions.remove(builder);} return (A)this; + public int hashCode() { + return Objects.hash(commonEncodingVersion, conditions, storageVersions); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } public A removeAllFromStorageVersions(Collection items) { - if (this.storageVersions == null) return (A)this; - for (V1alpha1ServerStorageVersion item : items) {V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item);_visitables.get("storageVersions").remove(builder); this.storageVersions.remove(builder);} return (A)this; + if (this.storageVersions == null) { + return (A) this; + } + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").remove(builder); + this.storageVersions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1alpha1StorageVersionCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1alpha1StorageVersionCondition item : items) { + V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromStorageVersions(V1alpha1ServerStorageVersion... items) { + if (this.storageVersions == null) { + return (A) this; + } + for (V1alpha1ServerStorageVersion item : items) { + V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); + _visitables.get("storageVersions").remove(builder); + this.storageVersions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V1alpha1StorageVersionConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } public A removeMatchingFromStorageVersions(Predicate predicate) { - if (storageVersions == null) return (A) this; - final Iterator each = storageVersions.iterator(); - final List visitables = _visitables.get("storageVersions"); + if (storageVersions == null) { + return (A) this; + } + Iterator each = storageVersions.iterator(); + List visitables = _visitables.get("storageVersions"); while (each.hasNext()) { - V1alpha1ServerStorageVersionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V1alpha1ServerStorageVersionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; + return (A) this; } - public List buildStorageVersions() { - return this.storageVersions != null ? build(storageVersions) : null; + public ConditionsNested setNewConditionLike(int index,V1alpha1StorageVersionCondition item) { + return new ConditionsNested(index, item); } - public V1alpha1ServerStorageVersion buildStorageVersion(int index) { - return this.storageVersions.get(index).build(); + public StorageVersionsNested setNewStorageVersionLike(int index,V1alpha1ServerStorageVersion item) { + return new StorageVersionsNested(index, item); } - public V1alpha1ServerStorageVersion buildFirstStorageVersion() { - return this.storageVersions.get(0).build(); + 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").add(builder); + conditions.set(index, builder); + } + return (A) this; } - public V1alpha1ServerStorageVersion buildLastStorageVersion() { - return this.storageVersions.get(storageVersions.size() - 1).build(); + 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").add(builder); + storageVersions.set(index, builder); + } + return (A) this; } - public V1alpha1ServerStorageVersion buildMatchingStorageVersion(Predicate predicate) { - for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(commonEncodingVersion == null)) { + sb.append("commonEncodingVersion:"); + sb.append(commonEncodingVersion); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(storageVersions == null) && !(storageVersions.isEmpty())) { + sb.append("storageVersions:"); + sb.append(storageVersions); + } + sb.append("}"); + return sb.toString(); } - public boolean hasMatchingStorageVersion(Predicate predicate) { - for (V1alpha1ServerStorageVersionBuilder item : storageVersions) { - if (predicate.test(item)) { - return true; + public A withCommonEncodingVersion(String commonEncodingVersion) { + this.commonEncodingVersion = commonEncodingVersion; + return (A) this; + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1alpha1StorageVersionCondition item : conditions) { + this.addToConditions(item); } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1alpha1StorageVersionCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1alpha1StorageVersionCondition item : conditions) { + this.addToConditions(item); } - return false; + } + return (A) this; } public A withStorageVersions(List storageVersions) { @@ -297,7 +504,7 @@ public A withStorageVersions(List storageVersions) return (A) this; } - public A withStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion... storageVersions) { + public A withStorageVersions(V1alpha1ServerStorageVersion... storageVersions) { if (this.storageVersions != null) { this.storageVersions.clear(); _visitables.remove("storageVersions"); @@ -309,107 +516,42 @@ public A withStorageVersions(io.kubernetes.client.openapi.models.V1alpha1ServerS } return (A) this; } + public class ConditionsNested extends V1alpha1StorageVersionConditionFluent> implements Nested{ - public boolean hasStorageVersions() { - return this.storageVersions != null && !this.storageVersions.isEmpty(); - } - - public StorageVersionsNested addNewStorageVersion() { - return new StorageVersionsNested(-1, null); - } - - public StorageVersionsNested addNewStorageVersionLike(V1alpha1ServerStorageVersion item) { - return new StorageVersionsNested(-1, item); - } - - public StorageVersionsNested setNewStorageVersionLike(int index,V1alpha1ServerStorageVersion item) { - return new StorageVersionsNested(index, item); - } - - public StorageVersionsNested editStorageVersion(int index) { - if (storageVersions.size() <= index) throw new RuntimeException("Can't edit storageVersions. Index exceeds size."); - return setNewStorageVersionLike(index, buildStorageVersion(index)); - } - - public StorageVersionsNested editFirstStorageVersion() { - if (storageVersions.size() == 0) throw new RuntimeException("Can't edit first storageVersions. The list is empty."); - return setNewStorageVersionLike(0, buildStorageVersion(0)); - } - - public StorageVersionsNested editLastStorageVersion() { - int index = storageVersions.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last storageVersions. The list is empty."); - return setNewStorageVersionLike(index, buildStorageVersion(index)); - } - - public StorageVersionsNested editMatchingStorageVersion(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha1StorageVersionConditionFluent> implements Nested{ ConditionsNested(int index,V1alpha1StorageVersionCondition item) { this.index = index; this.builder = new V1alpha1StorageVersionConditionBuilder(this, item); } - V1alpha1StorageVersionConditionBuilder builder; - int index; - + public N and() { - return (N) V1alpha1StorageVersionStatusFluent.this.setToConditions(index,builder.build()); + return (N) V1alpha1StorageVersionStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { return and(); } - } public class StorageVersionsNested extends V1alpha1ServerStorageVersionFluent> implements Nested{ + + V1alpha1ServerStorageVersionBuilder builder; + int index; + StorageVersionsNested(int index,V1alpha1ServerStorageVersion item) { this.index = index; this.builder = new V1alpha1ServerStorageVersionBuilder(this, item); } - V1alpha1ServerStorageVersionBuilder builder; - int index; - + public N and() { - return (N) V1alpha1StorageVersionStatusFluent.this.setToStorageVersions(index,builder.build()); + return (N) V1alpha1StorageVersionStatusFluent.this.setToStorageVersions(index, builder.build()); } public N endStorageVersion() { return and(); } - } - } \ No newline at end of file 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/V1alpha1TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceBuilder.java new file mode 100644 index 0000000000..dcb136d9ed --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1TypedLocalObjectReferenceBuilder extends V1alpha1TypedLocalObjectReferenceFluent implements VisitableBuilder{ + + V1alpha1TypedLocalObjectReferenceFluent fluent; + + public V1alpha1TypedLocalObjectReferenceBuilder() { + this(new V1alpha1TypedLocalObjectReference()); + } + + public V1alpha1TypedLocalObjectReferenceBuilder(V1alpha1TypedLocalObjectReferenceFluent fluent) { + this(fluent, new V1alpha1TypedLocalObjectReference()); + } + + public V1alpha1TypedLocalObjectReferenceBuilder(V1alpha1TypedLocalObjectReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1TypedLocalObjectReferenceBuilder(V1alpha1TypedLocalObjectReferenceFluent fluent,V1alpha1TypedLocalObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1TypedLocalObjectReference build() { + V1alpha1TypedLocalObjectReference buildable = new V1alpha1TypedLocalObjectReference(); + 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/V1alpha1TypedLocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceFluent.java new file mode 100644 index 0000000000..a44c9ec27f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1TypedLocalObjectReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String kind; + private String name; + + public V1alpha1TypedLocalObjectReferenceFluent() { + } + + public V1alpha1TypedLocalObjectReferenceFluent(V1alpha1TypedLocalObjectReference instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha1TypedLocalObjectReference instance) { + instance = instance != null ? instance : new V1alpha1TypedLocalObjectReference(); + if (instance != null) { + this.withApiGroup(instance.getApiGroup()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1TypedLocalObjectReferenceFluent that = (V1alpha1TypedLocalObjectReferenceFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getApiGroup() { + return this.apiGroup; + } + + public String getKind() { + return this.kind; + } + + public String getName() { + return this.name; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(apiGroup, kind, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ 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/V1alpha1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java index 1b7adc925d..c88d9d5d5f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1alpha1VariableBuilder extends V1alpha1VariableFluent implements VisitableBuilder{ + + V1alpha1VariableFluent fluent; + public V1alpha1VariableBuilder() { this(new V1alpha1Variable()); } @@ -10,17 +14,16 @@ public V1alpha1VariableBuilder(V1alpha1VariableFluent fluent) { this(fluent, new V1alpha1Variable()); } - public V1alpha1VariableBuilder(V1alpha1VariableFluent fluent,V1alpha1Variable instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1alpha1VariableBuilder(V1alpha1Variable instance) { this.fluent = this; this.copyInstance(instance); } - V1alpha1VariableFluent fluent; + public V1alpha1VariableBuilder(V1alpha1VariableFluent fluent,V1alpha1Variable instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1alpha1Variable build() { V1alpha1Variable buildable = new V1alpha1Variable(); buildable.setExpression(fluent.getExpression()); @@ -28,5 +31,4 @@ public V1alpha1Variable build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java index b869589a3f..9864529fc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1VariableFluent> extends BaseFluent{ +public class V1alpha1VariableFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1alpha1VariableFluent() { } public V1alpha1VariableFluent(V1alpha1Variable instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1alpha1Variable instance) { - instance = (instance != null ? instance : new V1alpha1Variable()); + instance = instance != null ? instance : new V1alpha1Variable(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1VariableFluent that = (V1alpha1VariableFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasExpression() { - return this.expression != null; + public String getExpression() { + return this.expression; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasExpression() { + return this.expression != null; } 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; - V1alpha1VariableFluent that = (V1alpha1VariableFluent) 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()); + return Objects.hash(expression, name); } 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); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ 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 deleted file mode 100644 index 821957ff6b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -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 deleted file mode 100644 index 1bc795b869..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassFluent.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 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 deleted file mode 100644 index 69afc7976d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -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 deleted file mode 100644 index 4a4cd8c336..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassListFluent.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 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(index, 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").set(index, 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/V1alpha1WorkloadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadBuilder.java new file mode 100644 index 0000000000..40aa78042a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1WorkloadBuilder extends V1alpha1WorkloadFluent implements VisitableBuilder{ + + V1alpha1WorkloadFluent fluent; + + public V1alpha1WorkloadBuilder() { + this(new V1alpha1Workload()); + } + + public V1alpha1WorkloadBuilder(V1alpha1WorkloadFluent fluent) { + this(fluent, new V1alpha1Workload()); + } + + public V1alpha1WorkloadBuilder(V1alpha1Workload instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1WorkloadBuilder(V1alpha1WorkloadFluent fluent,V1alpha1Workload instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1Workload build() { + V1alpha1Workload buildable = new V1alpha1Workload(); + 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/V1alpha1WorkloadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadFluent.java new file mode 100644 index 0000000000..ae6f628b32 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1WorkloadFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha1WorkloadSpecBuilder spec; + + public V1alpha1WorkloadFluent() { + } + + public V1alpha1WorkloadFluent(V1alpha1Workload instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha1WorkloadSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1alpha1Workload instance) { + instance = instance != null ? instance : new V1alpha1Workload(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1WorkloadSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha1WorkloadSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1WorkloadFluent that = (V1alpha1WorkloadFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha1WorkloadSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1alpha1WorkloadSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha1WorkloadSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha1WorkloadFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1alpha1WorkloadSpecFluent> implements Nested{ + + V1alpha1WorkloadSpecBuilder builder; + + SpecNested(V1alpha1WorkloadSpec item) { + this.builder = new V1alpha1WorkloadSpecBuilder(this, item); + } + + public N and() { + return (N) V1alpha1WorkloadFluent.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/V1alpha1WorkloadListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListBuilder.java new file mode 100644 index 0000000000..3a4e57e91d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1WorkloadListBuilder extends V1alpha1WorkloadListFluent implements VisitableBuilder{ + + V1alpha1WorkloadListFluent fluent; + + public V1alpha1WorkloadListBuilder() { + this(new V1alpha1WorkloadList()); + } + + public V1alpha1WorkloadListBuilder(V1alpha1WorkloadListFluent fluent) { + this(fluent, new V1alpha1WorkloadList()); + } + + public V1alpha1WorkloadListBuilder(V1alpha1WorkloadList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1WorkloadListBuilder(V1alpha1WorkloadListFluent fluent,V1alpha1WorkloadList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1WorkloadList build() { + V1alpha1WorkloadList buildable = new V1alpha1WorkloadList(); + 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/V1alpha1WorkloadListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListFluent.java new file mode 100644 index 0000000000..f0f1506694 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1WorkloadListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1alpha1WorkloadListFluent() { + } + + public V1alpha1WorkloadListFluent(V1alpha1WorkloadList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1Workload item : items) { + V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha1Workload item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1alpha1Workload... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha1Workload item : items) { + V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1alpha1Workload item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(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 V1alpha1Workload buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha1Workload buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha1Workload buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha1Workload buildMatchingItem(Predicate predicate) { + for (V1alpha1WorkloadBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1alpha1WorkloadList instance) { + instance = instance != null ? instance : new V1alpha1WorkloadList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1WorkloadListFluent that = (V1alpha1WorkloadListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha1WorkloadBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1Workload item : items) { + V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha1Workload... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha1Workload item : items) { + V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1alpha1WorkloadBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha1Workload item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha1Workload item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha1Workload item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha1Workload... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha1Workload item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1alpha1WorkloadFluent> implements Nested{ + + V1alpha1WorkloadBuilder builder; + int index; + + ItemsNested(int index,V1alpha1Workload item) { + this.index = index; + this.builder = new V1alpha1WorkloadBuilder(this, item); + } + + public N and() { + return (N) V1alpha1WorkloadListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha1WorkloadListFluent.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/V1alpha1WorkloadSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecBuilder.java new file mode 100644 index 0000000000..f459c7df6a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha1WorkloadSpecBuilder extends V1alpha1WorkloadSpecFluent implements VisitableBuilder{ + + V1alpha1WorkloadSpecFluent fluent; + + public V1alpha1WorkloadSpecBuilder() { + this(new V1alpha1WorkloadSpec()); + } + + public V1alpha1WorkloadSpecBuilder(V1alpha1WorkloadSpecFluent fluent) { + this(fluent, new V1alpha1WorkloadSpec()); + } + + public V1alpha1WorkloadSpecBuilder(V1alpha1WorkloadSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha1WorkloadSpecBuilder(V1alpha1WorkloadSpecFluent fluent,V1alpha1WorkloadSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha1WorkloadSpec build() { + V1alpha1WorkloadSpec buildable = new V1alpha1WorkloadSpec(); + buildable.setControllerRef(fluent.buildControllerRef()); + buildable.setPodGroups(fluent.buildPodGroups()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecFluent.java new file mode 100644 index 0000000000..29147dddb7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecFluent.java @@ -0,0 +1,365 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha1WorkloadSpecFluent> extends BaseFluent{ + + private V1alpha1TypedLocalObjectReferenceBuilder controllerRef; + private ArrayList podGroups; + + public V1alpha1WorkloadSpecFluent() { + } + + public V1alpha1WorkloadSpecFluent(V1alpha1WorkloadSpec instance) { + this.copyInstance(instance); + } + + public A addAllToPodGroups(Collection items) { + if (this.podGroups == null) { + this.podGroups = new ArrayList(); + } + for (V1alpha1PodGroup item : items) { + V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); + _visitables.get("podGroups").add(builder); + this.podGroups.add(builder); + } + return (A) this; + } + + public PodGroupsNested addNewPodGroup() { + return new PodGroupsNested(-1, null); + } + + public PodGroupsNested addNewPodGroupLike(V1alpha1PodGroup item) { + return new PodGroupsNested(-1, item); + } + + public A addToPodGroups(V1alpha1PodGroup... items) { + if (this.podGroups == null) { + this.podGroups = new ArrayList(); + } + for (V1alpha1PodGroup item : items) { + V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); + _visitables.get("podGroups").add(builder); + this.podGroups.add(builder); + } + return (A) this; + } + + public A addToPodGroups(int index,V1alpha1PodGroup item) { + if (this.podGroups == null) { + this.podGroups = new ArrayList(); + } + V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); + if (index < 0 || index >= podGroups.size()) { + _visitables.get("podGroups").add(builder); + podGroups.add(builder); + } else { + _visitables.get("podGroups").add(builder); + podGroups.add(index, builder); + } + return (A) this; + } + + public V1alpha1TypedLocalObjectReference buildControllerRef() { + return this.controllerRef != null ? this.controllerRef.build() : null; + } + + public V1alpha1PodGroup buildFirstPodGroup() { + return this.podGroups.get(0).build(); + } + + public V1alpha1PodGroup buildLastPodGroup() { + return this.podGroups.get(podGroups.size() - 1).build(); + } + + public V1alpha1PodGroup buildMatchingPodGroup(Predicate predicate) { + for (V1alpha1PodGroupBuilder item : podGroups) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha1PodGroup buildPodGroup(int index) { + return this.podGroups.get(index).build(); + } + + public List buildPodGroups() { + return this.podGroups != null ? build(podGroups) : null; + } + + protected void copyInstance(V1alpha1WorkloadSpec instance) { + instance = instance != null ? instance : new V1alpha1WorkloadSpec(); + if (instance != null) { + this.withControllerRef(instance.getControllerRef()); + this.withPodGroups(instance.getPodGroups()); + } + } + + public ControllerRefNested editControllerRef() { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(null)); + } + + public PodGroupsNested editFirstPodGroup() { + if (podGroups.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podGroups")); + } + return this.setNewPodGroupLike(0, this.buildPodGroup(0)); + } + + public PodGroupsNested editLastPodGroup() { + int index = podGroups.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podGroups")); + } + return this.setNewPodGroupLike(index, this.buildPodGroup(index)); + } + + public PodGroupsNested editMatchingPodGroup(Predicate predicate) { + int index = -1; + for (int i = 0;i < podGroups.size();i++) { + if (predicate.test(podGroups.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podGroups")); + } + return this.setNewPodGroupLike(index, this.buildPodGroup(index)); + } + + public ControllerRefNested editOrNewControllerRef() { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(new V1alpha1TypedLocalObjectReferenceBuilder().build())); + } + + public ControllerRefNested editOrNewControllerRefLike(V1alpha1TypedLocalObjectReference item) { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(item)); + } + + public PodGroupsNested editPodGroup(int index) { + if (podGroups.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podGroups")); + } + return this.setNewPodGroupLike(index, this.buildPodGroup(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha1WorkloadSpecFluent that = (V1alpha1WorkloadSpecFluent) o; + if (!(Objects.equals(controllerRef, that.controllerRef))) { + return false; + } + if (!(Objects.equals(podGroups, that.podGroups))) { + return false; + } + return true; + } + + public boolean hasControllerRef() { + return this.controllerRef != null; + } + + public boolean hasMatchingPodGroup(Predicate predicate) { + for (V1alpha1PodGroupBuilder item : podGroups) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPodGroups() { + return this.podGroups != null && !(this.podGroups.isEmpty()); + } + + public int hashCode() { + return Objects.hash(controllerRef, podGroups); + } + + public A removeAllFromPodGroups(Collection items) { + if (this.podGroups == null) { + return (A) this; + } + for (V1alpha1PodGroup item : items) { + V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); + _visitables.get("podGroups").remove(builder); + this.podGroups.remove(builder); + } + return (A) this; + } + + public A removeFromPodGroups(V1alpha1PodGroup... items) { + if (this.podGroups == null) { + return (A) this; + } + for (V1alpha1PodGroup item : items) { + V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); + _visitables.get("podGroups").remove(builder); + this.podGroups.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPodGroups(Predicate predicate) { + if (podGroups == null) { + return (A) this; + } + Iterator each = podGroups.iterator(); + List visitables = _visitables.get("podGroups"); + while (each.hasNext()) { + V1alpha1PodGroupBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PodGroupsNested setNewPodGroupLike(int index,V1alpha1PodGroup item) { + return new PodGroupsNested(index, item); + } + + public A setToPodGroups(int index,V1alpha1PodGroup item) { + if (this.podGroups == null) { + this.podGroups = new ArrayList(); + } + V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); + if (index < 0 || index >= podGroups.size()) { + _visitables.get("podGroups").add(builder); + podGroups.add(builder); + } else { + _visitables.get("podGroups").add(builder); + podGroups.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(controllerRef == null)) { + sb.append("controllerRef:"); + sb.append(controllerRef); + sb.append(","); + } + if (!(podGroups == null) && !(podGroups.isEmpty())) { + sb.append("podGroups:"); + sb.append(podGroups); + } + sb.append("}"); + return sb.toString(); + } + + public A withControllerRef(V1alpha1TypedLocalObjectReference controllerRef) { + this._visitables.remove("controllerRef"); + if (controllerRef != null) { + this.controllerRef = new V1alpha1TypedLocalObjectReferenceBuilder(controllerRef); + this._visitables.get("controllerRef").add(this.controllerRef); + } else { + this.controllerRef = null; + this._visitables.get("controllerRef").remove(this.controllerRef); + } + return (A) this; + } + + public ControllerRefNested withNewControllerRef() { + return new ControllerRefNested(null); + } + + public ControllerRefNested withNewControllerRefLike(V1alpha1TypedLocalObjectReference item) { + return new ControllerRefNested(item); + } + + public A withPodGroups(List podGroups) { + if (this.podGroups != null) { + this._visitables.get("podGroups").clear(); + } + if (podGroups != null) { + this.podGroups = new ArrayList(); + for (V1alpha1PodGroup item : podGroups) { + this.addToPodGroups(item); + } + } else { + this.podGroups = null; + } + return (A) this; + } + + public A withPodGroups(V1alpha1PodGroup... podGroups) { + if (this.podGroups != null) { + this.podGroups.clear(); + _visitables.remove("podGroups"); + } + if (podGroups != null) { + for (V1alpha1PodGroup item : podGroups) { + this.addToPodGroups(item); + } + } + return (A) this; + } + public class ControllerRefNested extends V1alpha1TypedLocalObjectReferenceFluent> implements Nested{ + + V1alpha1TypedLocalObjectReferenceBuilder builder; + + ControllerRefNested(V1alpha1TypedLocalObjectReference item) { + this.builder = new V1alpha1TypedLocalObjectReferenceBuilder(this, item); + } + + public N and() { + return (N) V1alpha1WorkloadSpecFluent.this.withControllerRef(builder.build()); + } + + public N endControllerRef() { + return and(); + } + + } + public class PodGroupsNested extends V1alpha1PodGroupFluent> implements Nested{ + + V1alpha1PodGroupBuilder builder; + int index; + + PodGroupsNested(int index,V1alpha1PodGroup item) { + this.index = index; + this.builder = new V1alpha1PodGroupBuilder(this, item); + } + + public N and() { + return (N) V1alpha1WorkloadSpecFluent.this.setToPodGroups(index, builder.build()); + } + + public N endPodGroup() { + 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/V1alpha2DriverAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverAllocationResultBuilder.java deleted file mode 100644 index 8eb960c094..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverAllocationResultBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2DriverAllocationResultBuilder extends V1alpha2DriverAllocationResultFluent implements VisitableBuilder{ - public V1alpha2DriverAllocationResultBuilder() { - this(new V1alpha2DriverAllocationResult()); - } - - public V1alpha2DriverAllocationResultBuilder(V1alpha2DriverAllocationResultFluent fluent) { - this(fluent, new V1alpha2DriverAllocationResult()); - } - - public V1alpha2DriverAllocationResultBuilder(V1alpha2DriverAllocationResultFluent fluent,V1alpha2DriverAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2DriverAllocationResultBuilder(V1alpha2DriverAllocationResult instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2DriverAllocationResultFluent fluent; - - public V1alpha2DriverAllocationResult build() { - V1alpha2DriverAllocationResult buildable = new V1alpha2DriverAllocationResult(); - buildable.setNamedResources(fluent.buildNamedResources()); - buildable.setVendorRequestParameters(fluent.getVendorRequestParameters()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverAllocationResultFluent.java deleted file mode 100644 index 4814d5b327..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverAllocationResultFluent.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 V1alpha2DriverAllocationResultFluent> extends BaseFluent{ - public V1alpha2DriverAllocationResultFluent() { - } - - public V1alpha2DriverAllocationResultFluent(V1alpha2DriverAllocationResult instance) { - this.copyInstance(instance); - } - private V1alpha2NamedResourcesAllocationResultBuilder namedResources; - private Object vendorRequestParameters; - - protected void copyInstance(V1alpha2DriverAllocationResult instance) { - instance = (instance != null ? instance : new V1alpha2DriverAllocationResult()); - if (instance != null) { - this.withNamedResources(instance.getNamedResources()); - this.withVendorRequestParameters(instance.getVendorRequestParameters()); - } - } - - public V1alpha2NamedResourcesAllocationResult buildNamedResources() { - return this.namedResources != null ? this.namedResources.build() : null; - } - - public A withNamedResources(V1alpha2NamedResourcesAllocationResult namedResources) { - this._visitables.remove("namedResources"); - if (namedResources != null) { - this.namedResources = new V1alpha2NamedResourcesAllocationResultBuilder(namedResources); - this._visitables.get("namedResources").add(this.namedResources); - } else { - this.namedResources = null; - this._visitables.get("namedResources").remove(this.namedResources); - } - return (A) this; - } - - public boolean hasNamedResources() { - return this.namedResources != null; - } - - public NamedResourcesNested withNewNamedResources() { - return new NamedResourcesNested(null); - } - - public NamedResourcesNested withNewNamedResourcesLike(V1alpha2NamedResourcesAllocationResult item) { - return new NamedResourcesNested(item); - } - - public NamedResourcesNested editNamedResources() { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(null)); - } - - public NamedResourcesNested editOrNewNamedResources() { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(new V1alpha2NamedResourcesAllocationResultBuilder().build())); - } - - public NamedResourcesNested editOrNewNamedResourcesLike(V1alpha2NamedResourcesAllocationResult item) { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(item)); - } - - public Object getVendorRequestParameters() { - return this.vendorRequestParameters; - } - - public A withVendorRequestParameters(Object vendorRequestParameters) { - this.vendorRequestParameters = vendorRequestParameters; - return (A) this; - } - - public boolean hasVendorRequestParameters() { - return this.vendorRequestParameters != 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; - V1alpha2DriverAllocationResultFluent that = (V1alpha2DriverAllocationResultFluent) o; - if (!java.util.Objects.equals(namedResources, that.namedResources)) return false; - if (!java.util.Objects.equals(vendorRequestParameters, that.vendorRequestParameters)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(namedResources, vendorRequestParameters, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (namedResources != null) { sb.append("namedResources:"); sb.append(namedResources + ","); } - if (vendorRequestParameters != null) { sb.append("vendorRequestParameters:"); sb.append(vendorRequestParameters); } - sb.append("}"); - return sb.toString(); - } - public class NamedResourcesNested extends V1alpha2NamedResourcesAllocationResultFluent> implements Nested{ - NamedResourcesNested(V1alpha2NamedResourcesAllocationResult item) { - this.builder = new V1alpha2NamedResourcesAllocationResultBuilder(this, item); - } - V1alpha2NamedResourcesAllocationResultBuilder builder; - - public N and() { - return (N) V1alpha2DriverAllocationResultFluent.this.withNamedResources(builder.build()); - } - - public N endNamedResources() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverRequestsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverRequestsBuilder.java deleted file mode 100644 index 7befc25915..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverRequestsBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2DriverRequestsBuilder extends V1alpha2DriverRequestsFluent implements VisitableBuilder{ - public V1alpha2DriverRequestsBuilder() { - this(new V1alpha2DriverRequests()); - } - - public V1alpha2DriverRequestsBuilder(V1alpha2DriverRequestsFluent fluent) { - this(fluent, new V1alpha2DriverRequests()); - } - - public V1alpha2DriverRequestsBuilder(V1alpha2DriverRequestsFluent fluent,V1alpha2DriverRequests instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2DriverRequestsBuilder(V1alpha2DriverRequests instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2DriverRequestsFluent fluent; - - public V1alpha2DriverRequests build() { - V1alpha2DriverRequests buildable = new V1alpha2DriverRequests(); - buildable.setDriverName(fluent.getDriverName()); - buildable.setRequests(fluent.buildRequests()); - buildable.setVendorParameters(fluent.getVendorParameters()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverRequestsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverRequestsFluent.java deleted file mode 100644 index d278e204d7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverRequestsFluent.java +++ /dev/null @@ -1,259 +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 V1alpha2DriverRequestsFluent> extends BaseFluent{ - public V1alpha2DriverRequestsFluent() { - } - - public V1alpha2DriverRequestsFluent(V1alpha2DriverRequests instance) { - this.copyInstance(instance); - } - private String driverName; - private ArrayList requests; - private Object vendorParameters; - - protected void copyInstance(V1alpha2DriverRequests instance) { - instance = (instance != null ? instance : new V1alpha2DriverRequests()); - if (instance != null) { - this.withDriverName(instance.getDriverName()); - this.withRequests(instance.getRequests()); - this.withVendorParameters(instance.getVendorParameters()); - } - } - - 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 addToRequests(int index,V1alpha2ResourceRequest item) { - if (this.requests == null) {this.requests = new ArrayList();} - V1alpha2ResourceRequestBuilder builder = new V1alpha2ResourceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); requests.add(builder); } else { _visitables.get("requests").add(index, builder); requests.add(index, builder);} - return (A)this; - } - - public A setToRequests(int index,V1alpha2ResourceRequest item) { - if (this.requests == null) {this.requests = new ArrayList();} - V1alpha2ResourceRequestBuilder builder = new V1alpha2ResourceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { _visitables.get("requests").add(builder); requests.add(builder); } else { _visitables.get("requests").set(index, builder); requests.set(index, builder);} - return (A)this; - } - - public A addToRequests(io.kubernetes.client.openapi.models.V1alpha2ResourceRequest... items) { - if (this.requests == null) {this.requests = new ArrayList();} - for (V1alpha2ResourceRequest item : items) {V1alpha2ResourceRequestBuilder builder = new V1alpha2ResourceRequestBuilder(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 (V1alpha2ResourceRequest item : items) {V1alpha2ResourceRequestBuilder builder = new V1alpha2ResourceRequestBuilder(item);_visitables.get("requests").add(builder);this.requests.add(builder);} return (A)this; - } - - public A removeFromRequests(io.kubernetes.client.openapi.models.V1alpha2ResourceRequest... items) { - if (this.requests == null) return (A)this; - for (V1alpha2ResourceRequest item : items) {V1alpha2ResourceRequestBuilder builder = new V1alpha2ResourceRequestBuilder(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 (V1alpha2ResourceRequest item : items) {V1alpha2ResourceRequestBuilder builder = new V1alpha2ResourceRequestBuilder(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()) { - V1alpha2ResourceRequestBuilder 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 V1alpha2ResourceRequest buildRequest(int index) { - return this.requests.get(index).build(); - } - - public V1alpha2ResourceRequest buildFirstRequest() { - return this.requests.get(0).build(); - } - - public V1alpha2ResourceRequest buildLastRequest() { - return this.requests.get(requests.size() - 1).build(); - } - - public V1alpha2ResourceRequest buildMatchingRequest(Predicate predicate) { - for (V1alpha2ResourceRequestBuilder item : requests) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingRequest(Predicate predicate) { - for (V1alpha2ResourceRequestBuilder 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 (V1alpha2ResourceRequest item : requests) { - this.addToRequests(item); - } - } else { - this.requests = null; - } - return (A) this; - } - - public A withRequests(io.kubernetes.client.openapi.models.V1alpha2ResourceRequest... requests) { - if (this.requests != null) { - this.requests.clear(); - _visitables.remove("requests"); - } - if (requests != null) { - for (V1alpha2ResourceRequest 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(V1alpha2ResourceRequest item) { - return new RequestsNested(-1, item); - } - - public RequestsNested setNewRequestLike(int index,V1alpha2ResourceRequest 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 V1alpha2ResourceRequestFluent> implements Nested{ - RequestsNested(int index,V1alpha2ResourceRequest item) { - this.index = index; - this.builder = new V1alpha2ResourceRequestBuilder(this, item); - } - V1alpha2ResourceRequestBuilder builder; - int index; - - public N and() { - return (N) V1alpha2DriverRequestsFluent.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/V1alpha2LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java new file mode 100644 index 0000000000..73a5b7ee4c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2LeaseCandidateBuilder extends V1alpha2LeaseCandidateFluent implements VisitableBuilder{ + + V1alpha2LeaseCandidateFluent fluent; + + public V1alpha2LeaseCandidateBuilder() { + this(new V1alpha2LeaseCandidate()); + } + + public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidateFluent fluent) { + this(fluent, new V1alpha2LeaseCandidate()); + } + + public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidate instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2LeaseCandidateBuilder(V1alpha2LeaseCandidateFluent fluent,V1alpha2LeaseCandidate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..271295b48b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2LeaseCandidateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha2LeaseCandidateSpecBuilder spec; + + public V1alpha2LeaseCandidateFluent() { + } + + public V1alpha2LeaseCandidateFluent(V1alpha2LeaseCandidate instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha2LeaseCandidateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha2LeaseCandidateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha2LeaseCandidateSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2LeaseCandidateFluent that = (V1alpha2LeaseCandidateFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha2LeaseCandidateSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha2LeaseCandidateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1alpha2LeaseCandidateSpecFluent> implements Nested{ + + V1alpha2LeaseCandidateSpecBuilder builder; + + SpecNested(V1alpha2LeaseCandidateSpec item) { + this.builder = new V1alpha2LeaseCandidateSpecBuilder(this, item); + } + + 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..c1a1ed9493 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2LeaseCandidateListBuilder extends V1alpha2LeaseCandidateListFluent implements VisitableBuilder{ + + V1alpha2LeaseCandidateListFluent fluent; + + public V1alpha2LeaseCandidateListBuilder() { + this(new V1alpha2LeaseCandidateList()); + } + + public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateListFluent fluent) { + this(fluent, new V1alpha2LeaseCandidateList()); + } + + public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2LeaseCandidateListBuilder(V1alpha2LeaseCandidateListFluent fluent,V1alpha2LeaseCandidateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..9945514296 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2LeaseCandidateListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1alpha2LeaseCandidateListFluent() { + } + + public V1alpha2LeaseCandidateListFluent(V1alpha2LeaseCandidateList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha2LeaseCandidate item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1alpha2LeaseCandidate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha2LeaseCandidate buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2LeaseCandidateListFluent that = (V1alpha2LeaseCandidateListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha2LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1alpha2LeaseCandidate item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1alpha2LeaseCandidateFluent> implements Nested{ + + V1alpha2LeaseCandidateBuilder builder; + int index; + + ItemsNested(int index,V1alpha2LeaseCandidate item) { + this.index = index; + this.builder = new V1alpha2LeaseCandidateBuilder(this, item); + } + + public N and() { + return (N) V1alpha2LeaseCandidateListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..51994c11a4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2LeaseCandidateSpecBuilder extends V1alpha2LeaseCandidateSpecFluent implements VisitableBuilder{ + + V1alpha2LeaseCandidateSpecFluent fluent; + + public V1alpha2LeaseCandidateSpecBuilder() { + this(new V1alpha2LeaseCandidateSpec()); + } + + public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpecFluent fluent) { + this(fluent, new V1alpha2LeaseCandidateSpec()); + } + + public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2LeaseCandidateSpecBuilder(V1alpha2LeaseCandidateSpecFluent fluent,V1alpha2LeaseCandidateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..65cfc6e776 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java @@ -0,0 +1,193 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2LeaseCandidateSpecFluent> extends BaseFluent{ + + private String binaryVersion; + private String emulationVersion; + private String leaseName; + private OffsetDateTime pingTime; + private OffsetDateTime renewTime; + private String strategy; + + public V1alpha2LeaseCandidateSpecFluent() { + } + + public V1alpha2LeaseCandidateSpecFluent(V1alpha2LeaseCandidateSpec instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2LeaseCandidateSpecFluent that = (V1alpha2LeaseCandidateSpecFluent) o; + if (!(Objects.equals(binaryVersion, that.binaryVersion))) { + return false; + } + if (!(Objects.equals(emulationVersion, that.emulationVersion))) { + return false; + } + if (!(Objects.equals(leaseName, that.leaseName))) { + return false; + } + if (!(Objects.equals(pingTime, that.pingTime))) { + return false; + } + if (!(Objects.equals(renewTime, that.renewTime))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + return true; + } + + public String getBinaryVersion() { + return this.binaryVersion; + } + + public String getEmulationVersion() { + return this.emulationVersion; + } + + public String getLeaseName() { + return this.leaseName; + } + + public OffsetDateTime getPingTime() { + return this.pingTime; + } + + public OffsetDateTime getRenewTime() { + return this.renewTime; + } + + public String getStrategy() { + return this.strategy; + } + + public boolean hasBinaryVersion() { + return this.binaryVersion != null; + } + + public boolean hasEmulationVersion() { + return this.emulationVersion != null; + } + + public boolean hasLeaseName() { + return this.leaseName != null; + } + + public boolean hasPingTime() { + return this.pingTime != null; + } + + public boolean hasRenewTime() { + return this.renewTime != null; + } + + public boolean hasStrategy() { + return this.strategy != null; + } + + public int hashCode() { + return Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(binaryVersion == null)) { + sb.append("binaryVersion:"); + sb.append(binaryVersion); + sb.append(","); + } + if (!(emulationVersion == null)) { + sb.append("emulationVersion:"); + sb.append(emulationVersion); + sb.append(","); + } + if (!(leaseName == null)) { + sb.append("leaseName:"); + sb.append(leaseName); + sb.append(","); + } + if (!(pingTime == null)) { + sb.append("pingTime:"); + sb.append(pingTime); + sb.append(","); + } + if (!(renewTime == null)) { + sb.append("renewTime:"); + sb.append(renewTime); + sb.append(","); + } + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + } + sb.append("}"); + return sb.toString(); + } + + public A withBinaryVersion(String binaryVersion) { + this.binaryVersion = binaryVersion; + return (A) this; + } + + public A withEmulationVersion(String emulationVersion) { + this.emulationVersion = emulationVersion; + return (A) this; + } + + public A withLeaseName(String leaseName) { + this.leaseName = leaseName; + return (A) this; + } + + public A withPingTime(OffsetDateTime pingTime) { + this.pingTime = pingTime; + return (A) this; + } + + public A withRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + return (A) this; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAllocationResultBuilder.java deleted file mode 100644 index 27a1779cfc..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAllocationResultBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2NamedResourcesAllocationResultBuilder extends V1alpha2NamedResourcesAllocationResultFluent implements VisitableBuilder{ - public V1alpha2NamedResourcesAllocationResultBuilder() { - this(new V1alpha2NamedResourcesAllocationResult()); - } - - public V1alpha2NamedResourcesAllocationResultBuilder(V1alpha2NamedResourcesAllocationResultFluent fluent) { - this(fluent, new V1alpha2NamedResourcesAllocationResult()); - } - - public V1alpha2NamedResourcesAllocationResultBuilder(V1alpha2NamedResourcesAllocationResultFluent fluent,V1alpha2NamedResourcesAllocationResult instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2NamedResourcesAllocationResultBuilder(V1alpha2NamedResourcesAllocationResult instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2NamedResourcesAllocationResultFluent fluent; - - public V1alpha2NamedResourcesAllocationResult build() { - V1alpha2NamedResourcesAllocationResult buildable = new V1alpha2NamedResourcesAllocationResult(); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAllocationResultFluent.java deleted file mode 100644 index 0d5c115cf2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAllocationResultFluent.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 V1alpha2NamedResourcesAllocationResultFluent> extends BaseFluent{ - public V1alpha2NamedResourcesAllocationResultFluent() { - } - - public V1alpha2NamedResourcesAllocationResultFluent(V1alpha2NamedResourcesAllocationResult instance) { - this.copyInstance(instance); - } - private String name; - - protected void copyInstance(V1alpha2NamedResourcesAllocationResult instance) { - instance = (instance != null ? instance : new V1alpha2NamedResourcesAllocationResult()); - 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; - V1alpha2NamedResourcesAllocationResultFluent that = (V1alpha2NamedResourcesAllocationResultFluent) 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/V1alpha2NamedResourcesAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAttributeBuilder.java deleted file mode 100644 index 1e414f95e5..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAttributeBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2NamedResourcesAttributeBuilder extends V1alpha2NamedResourcesAttributeFluent implements VisitableBuilder{ - public V1alpha2NamedResourcesAttributeBuilder() { - this(new V1alpha2NamedResourcesAttribute()); - } - - public V1alpha2NamedResourcesAttributeBuilder(V1alpha2NamedResourcesAttributeFluent fluent) { - this(fluent, new V1alpha2NamedResourcesAttribute()); - } - - public V1alpha2NamedResourcesAttributeBuilder(V1alpha2NamedResourcesAttributeFluent fluent,V1alpha2NamedResourcesAttribute instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2NamedResourcesAttributeBuilder(V1alpha2NamedResourcesAttribute instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2NamedResourcesAttributeFluent fluent; - - public V1alpha2NamedResourcesAttribute build() { - V1alpha2NamedResourcesAttribute buildable = new V1alpha2NamedResourcesAttribute(); - buildable.setBool(fluent.getBool()); - buildable.setInt(fluent.getInt()); - buildable.setIntSlice(fluent.buildIntSlice()); - buildable.setName(fluent.getName()); - buildable.setQuantity(fluent.getQuantity()); - buildable.setString(fluent.getString()); - buildable.setStringSlice(fluent.buildStringSlice()); - buildable.setVersion(fluent.getVersion()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAttributeFluent.java deleted file mode 100644 index 4181f5da07..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAttributeFluent.java +++ /dev/null @@ -1,279 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.Nested; -import io.kubernetes.client.custom.Quantity; -import java.lang.String; -import io.kubernetes.client.fluent.BaseFluent; -import java.lang.Long; -import java.lang.Object; -import java.lang.Boolean; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2NamedResourcesAttributeFluent> extends BaseFluent{ - public V1alpha2NamedResourcesAttributeFluent() { - } - - public V1alpha2NamedResourcesAttributeFluent(V1alpha2NamedResourcesAttribute instance) { - this.copyInstance(instance); - } - private Boolean bool; - private Long _int; - private V1alpha2NamedResourcesIntSliceBuilder intSlice; - private String name; - private Quantity quantity; - private String string; - private V1alpha2NamedResourcesStringSliceBuilder stringSlice; - private String version; - - protected void copyInstance(V1alpha2NamedResourcesAttribute instance) { - instance = (instance != null ? instance : new V1alpha2NamedResourcesAttribute()); - if (instance != null) { - this.withBool(instance.getBool()); - this.withInt(instance.getInt()); - this.withIntSlice(instance.getIntSlice()); - this.withName(instance.getName()); - this.withQuantity(instance.getQuantity()); - this.withString(instance.getString()); - this.withStringSlice(instance.getStringSlice()); - 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 V1alpha2NamedResourcesIntSlice buildIntSlice() { - return this.intSlice != null ? this.intSlice.build() : null; - } - - public A withIntSlice(V1alpha2NamedResourcesIntSlice intSlice) { - this._visitables.remove("intSlice"); - if (intSlice != null) { - this.intSlice = new V1alpha2NamedResourcesIntSliceBuilder(intSlice); - this._visitables.get("intSlice").add(this.intSlice); - } else { - this.intSlice = null; - this._visitables.get("intSlice").remove(this.intSlice); - } - return (A) this; - } - - public boolean hasIntSlice() { - return this.intSlice != null; - } - - public IntSliceNested withNewIntSlice() { - return new IntSliceNested(null); - } - - public IntSliceNested withNewIntSliceLike(V1alpha2NamedResourcesIntSlice item) { - return new IntSliceNested(item); - } - - public IntSliceNested editIntSlice() { - return withNewIntSliceLike(java.util.Optional.ofNullable(buildIntSlice()).orElse(null)); - } - - public IntSliceNested editOrNewIntSlice() { - return withNewIntSliceLike(java.util.Optional.ofNullable(buildIntSlice()).orElse(new V1alpha2NamedResourcesIntSliceBuilder().build())); - } - - public IntSliceNested editOrNewIntSliceLike(V1alpha2NamedResourcesIntSlice item) { - return withNewIntSliceLike(java.util.Optional.ofNullable(buildIntSlice()).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 Quantity getQuantity() { - return this.quantity; - } - - public A withQuantity(Quantity quantity) { - this.quantity = quantity; - return (A) this; - } - - public boolean hasQuantity() { - return this.quantity != null; - } - - public A withNewQuantity(String value) { - return (A)withQuantity(new Quantity(value)); - } - - 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 V1alpha2NamedResourcesStringSlice buildStringSlice() { - return this.stringSlice != null ? this.stringSlice.build() : null; - } - - public A withStringSlice(V1alpha2NamedResourcesStringSlice stringSlice) { - this._visitables.remove("stringSlice"); - if (stringSlice != null) { - this.stringSlice = new V1alpha2NamedResourcesStringSliceBuilder(stringSlice); - this._visitables.get("stringSlice").add(this.stringSlice); - } else { - this.stringSlice = null; - this._visitables.get("stringSlice").remove(this.stringSlice); - } - return (A) this; - } - - public boolean hasStringSlice() { - return this.stringSlice != null; - } - - public StringSliceNested withNewStringSlice() { - return new StringSliceNested(null); - } - - public StringSliceNested withNewStringSliceLike(V1alpha2NamedResourcesStringSlice item) { - return new StringSliceNested(item); - } - - public StringSliceNested editStringSlice() { - return withNewStringSliceLike(java.util.Optional.ofNullable(buildStringSlice()).orElse(null)); - } - - public StringSliceNested editOrNewStringSlice() { - return withNewStringSliceLike(java.util.Optional.ofNullable(buildStringSlice()).orElse(new V1alpha2NamedResourcesStringSliceBuilder().build())); - } - - public StringSliceNested editOrNewStringSliceLike(V1alpha2NamedResourcesStringSlice item) { - return withNewStringSliceLike(java.util.Optional.ofNullable(buildStringSlice()).orElse(item)); - } - - 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; - V1alpha2NamedResourcesAttributeFluent that = (V1alpha2NamedResourcesAttributeFluent) 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(intSlice, that.intSlice)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(quantity, that.quantity)) return false; - if (!java.util.Objects.equals(string, that.string)) return false; - if (!java.util.Objects.equals(stringSlice, that.stringSlice)) return false; - if (!java.util.Objects.equals(version, that.version)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(bool, _int, intSlice, name, quantity, string, stringSlice, 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 (intSlice != null) { sb.append("intSlice:"); sb.append(intSlice + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (quantity != null) { sb.append("quantity:"); sb.append(quantity + ","); } - if (string != null) { sb.append("string:"); sb.append(string + ","); } - if (stringSlice != null) { sb.append("stringSlice:"); sb.append(stringSlice + ","); } - if (version != null) { sb.append("version:"); sb.append(version); } - sb.append("}"); - return sb.toString(); - } - - public A withBool() { - return withBool(true); - } - public class IntSliceNested extends V1alpha2NamedResourcesIntSliceFluent> implements Nested{ - IntSliceNested(V1alpha2NamedResourcesIntSlice item) { - this.builder = new V1alpha2NamedResourcesIntSliceBuilder(this, item); - } - V1alpha2NamedResourcesIntSliceBuilder builder; - - public N and() { - return (N) V1alpha2NamedResourcesAttributeFluent.this.withIntSlice(builder.build()); - } - - public N endIntSlice() { - return and(); - } - - - } - public class StringSliceNested extends V1alpha2NamedResourcesStringSliceFluent> implements Nested{ - StringSliceNested(V1alpha2NamedResourcesStringSlice item) { - this.builder = new V1alpha2NamedResourcesStringSliceBuilder(this, item); - } - V1alpha2NamedResourcesStringSliceBuilder builder; - - public N and() { - return (N) V1alpha2NamedResourcesAttributeFluent.this.withStringSlice(builder.build()); - } - - public N endStringSlice() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesFilterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesFilterBuilder.java deleted file mode 100644 index 2dfc2bb66e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesFilterBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2NamedResourcesFilterBuilder extends V1alpha2NamedResourcesFilterFluent implements VisitableBuilder{ - public V1alpha2NamedResourcesFilterBuilder() { - this(new V1alpha2NamedResourcesFilter()); - } - - public V1alpha2NamedResourcesFilterBuilder(V1alpha2NamedResourcesFilterFluent fluent) { - this(fluent, new V1alpha2NamedResourcesFilter()); - } - - public V1alpha2NamedResourcesFilterBuilder(V1alpha2NamedResourcesFilterFluent fluent,V1alpha2NamedResourcesFilter instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2NamedResourcesFilterBuilder(V1alpha2NamedResourcesFilter instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2NamedResourcesFilterFluent fluent; - - public V1alpha2NamedResourcesFilter build() { - V1alpha2NamedResourcesFilter buildable = new V1alpha2NamedResourcesFilter(); - buildable.setSelector(fluent.getSelector()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesFilterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesFilterFluent.java deleted file mode 100644 index 9cee321690..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesFilterFluent.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 V1alpha2NamedResourcesFilterFluent> extends BaseFluent{ - public V1alpha2NamedResourcesFilterFluent() { - } - - public V1alpha2NamedResourcesFilterFluent(V1alpha2NamedResourcesFilter instance) { - this.copyInstance(instance); - } - private String selector; - - protected void copyInstance(V1alpha2NamedResourcesFilter instance) { - instance = (instance != null ? instance : new V1alpha2NamedResourcesFilter()); - if (instance != null) { - this.withSelector(instance.getSelector()); - } - } - - public String getSelector() { - return this.selector; - } - - public A withSelector(String selector) { - this.selector = selector; - return (A) this; - } - - public boolean hasSelector() { - return this.selector != 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; - V1alpha2NamedResourcesFilterFluent that = (V1alpha2NamedResourcesFilterFluent) o; - if (!java.util.Objects.equals(selector, that.selector)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(selector, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (selector != null) { sb.append("selector:"); sb.append(selector); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesInstanceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesInstanceBuilder.java deleted file mode 100644 index 1efeb3ca4b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesInstanceBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2NamedResourcesInstanceBuilder extends V1alpha2NamedResourcesInstanceFluent implements VisitableBuilder{ - public V1alpha2NamedResourcesInstanceBuilder() { - this(new V1alpha2NamedResourcesInstance()); - } - - public V1alpha2NamedResourcesInstanceBuilder(V1alpha2NamedResourcesInstanceFluent fluent) { - this(fluent, new V1alpha2NamedResourcesInstance()); - } - - public V1alpha2NamedResourcesInstanceBuilder(V1alpha2NamedResourcesInstanceFluent fluent,V1alpha2NamedResourcesInstance instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2NamedResourcesInstanceBuilder(V1alpha2NamedResourcesInstance instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2NamedResourcesInstanceFluent fluent; - - public V1alpha2NamedResourcesInstance build() { - V1alpha2NamedResourcesInstance buildable = new V1alpha2NamedResourcesInstance(); - buildable.setAttributes(fluent.buildAttributes()); - buildable.setName(fluent.getName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesInstanceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesInstanceFluent.java deleted file mode 100644 index 6cb76b8938..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesInstanceFluent.java +++ /dev/null @@ -1,242 +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 V1alpha2NamedResourcesInstanceFluent> extends BaseFluent{ - public V1alpha2NamedResourcesInstanceFluent() { - } - - public V1alpha2NamedResourcesInstanceFluent(V1alpha2NamedResourcesInstance instance) { - this.copyInstance(instance); - } - private ArrayList attributes; - private String name; - - protected void copyInstance(V1alpha2NamedResourcesInstance instance) { - instance = (instance != null ? instance : new V1alpha2NamedResourcesInstance()); - if (instance != null) { - this.withAttributes(instance.getAttributes()); - this.withName(instance.getName()); - } - } - - public A addToAttributes(int index,V1alpha2NamedResourcesAttribute item) { - if (this.attributes == null) {this.attributes = new ArrayList();} - V1alpha2NamedResourcesAttributeBuilder builder = new V1alpha2NamedResourcesAttributeBuilder(item); - if (index < 0 || index >= attributes.size()) { _visitables.get("attributes").add(builder); attributes.add(builder); } else { _visitables.get("attributes").add(index, builder); attributes.add(index, builder);} - return (A)this; - } - - public A setToAttributes(int index,V1alpha2NamedResourcesAttribute item) { - if (this.attributes == null) {this.attributes = new ArrayList();} - V1alpha2NamedResourcesAttributeBuilder builder = new V1alpha2NamedResourcesAttributeBuilder(item); - if (index < 0 || index >= attributes.size()) { _visitables.get("attributes").add(builder); attributes.add(builder); } else { _visitables.get("attributes").set(index, builder); attributes.set(index, builder);} - return (A)this; - } - - public A addToAttributes(io.kubernetes.client.openapi.models.V1alpha2NamedResourcesAttribute... items) { - if (this.attributes == null) {this.attributes = new ArrayList();} - for (V1alpha2NamedResourcesAttribute item : items) {V1alpha2NamedResourcesAttributeBuilder builder = new V1alpha2NamedResourcesAttributeBuilder(item);_visitables.get("attributes").add(builder);this.attributes.add(builder);} return (A)this; - } - - public A addAllToAttributes(Collection items) { - if (this.attributes == null) {this.attributes = new ArrayList();} - for (V1alpha2NamedResourcesAttribute item : items) {V1alpha2NamedResourcesAttributeBuilder builder = new V1alpha2NamedResourcesAttributeBuilder(item);_visitables.get("attributes").add(builder);this.attributes.add(builder);} return (A)this; - } - - public A removeFromAttributes(io.kubernetes.client.openapi.models.V1alpha2NamedResourcesAttribute... items) { - if (this.attributes == null) return (A)this; - for (V1alpha2NamedResourcesAttribute item : items) {V1alpha2NamedResourcesAttributeBuilder builder = new V1alpha2NamedResourcesAttributeBuilder(item);_visitables.get("attributes").remove(builder); this.attributes.remove(builder);} return (A)this; - } - - public A removeAllFromAttributes(Collection items) { - if (this.attributes == null) return (A)this; - for (V1alpha2NamedResourcesAttribute item : items) {V1alpha2NamedResourcesAttributeBuilder builder = new V1alpha2NamedResourcesAttributeBuilder(item);_visitables.get("attributes").remove(builder); this.attributes.remove(builder);} return (A)this; - } - - public A removeMatchingFromAttributes(Predicate predicate) { - if (attributes == null) return (A) this; - final Iterator each = attributes.iterator(); - final List visitables = _visitables.get("attributes"); - while (each.hasNext()) { - V1alpha2NamedResourcesAttributeBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildAttributes() { - return this.attributes != null ? build(attributes) : null; - } - - public V1alpha2NamedResourcesAttribute buildAttribute(int index) { - return this.attributes.get(index).build(); - } - - public V1alpha2NamedResourcesAttribute buildFirstAttribute() { - return this.attributes.get(0).build(); - } - - public V1alpha2NamedResourcesAttribute buildLastAttribute() { - return this.attributes.get(attributes.size() - 1).build(); - } - - public V1alpha2NamedResourcesAttribute buildMatchingAttribute(Predicate predicate) { - for (V1alpha2NamedResourcesAttributeBuilder item : attributes) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingAttribute(Predicate predicate) { - for (V1alpha2NamedResourcesAttributeBuilder item : attributes) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withAttributes(List attributes) { - if (this.attributes != null) { - this._visitables.get("attributes").clear(); - } - if (attributes != null) { - this.attributes = new ArrayList(); - for (V1alpha2NamedResourcesAttribute item : attributes) { - this.addToAttributes(item); - } - } else { - this.attributes = null; - } - return (A) this; - } - - public A withAttributes(io.kubernetes.client.openapi.models.V1alpha2NamedResourcesAttribute... attributes) { - if (this.attributes != null) { - this.attributes.clear(); - _visitables.remove("attributes"); - } - if (attributes != null) { - for (V1alpha2NamedResourcesAttribute item : attributes) { - this.addToAttributes(item); - } - } - return (A) this; - } - - public boolean hasAttributes() { - return this.attributes != null && !this.attributes.isEmpty(); - } - - public AttributesNested addNewAttribute() { - return new AttributesNested(-1, null); - } - - public AttributesNested addNewAttributeLike(V1alpha2NamedResourcesAttribute item) { - return new AttributesNested(-1, item); - } - - public AttributesNested setNewAttributeLike(int index,V1alpha2NamedResourcesAttribute item) { - return new AttributesNested(index, item); - } - - public AttributesNested editAttribute(int index) { - if (attributes.size() <= index) throw new RuntimeException("Can't edit attributes. Index exceeds size."); - return setNewAttributeLike(index, buildAttribute(index)); - } - - public AttributesNested editFirstAttribute() { - if (attributes.size() == 0) throw new RuntimeException("Can't edit first attributes. The list is empty."); - return setNewAttributeLike(0, buildAttribute(0)); - } - - public AttributesNested editLastAttribute() { - int index = attributes.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last attributes. The list is empty."); - return setNewAttributeLike(index, buildAttribute(index)); - } - - public AttributesNested editMatchingAttribute(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha2NamedResourcesAttributeFluent> implements Nested{ - AttributesNested(int index,V1alpha2NamedResourcesAttribute item) { - this.index = index; - this.builder = new V1alpha2NamedResourcesAttributeBuilder(this, item); - } - V1alpha2NamedResourcesAttributeBuilder builder; - int index; - - public N and() { - return (N) V1alpha2NamedResourcesInstanceFluent.this.setToAttributes(index,builder.build()); - } - - public N endAttribute() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesIntSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesIntSliceBuilder.java deleted file mode 100644 index da4a2b5abb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesIntSliceBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2NamedResourcesIntSliceBuilder extends V1alpha2NamedResourcesIntSliceFluent implements VisitableBuilder{ - public V1alpha2NamedResourcesIntSliceBuilder() { - this(new V1alpha2NamedResourcesIntSlice()); - } - - public V1alpha2NamedResourcesIntSliceBuilder(V1alpha2NamedResourcesIntSliceFluent fluent) { - this(fluent, new V1alpha2NamedResourcesIntSlice()); - } - - public V1alpha2NamedResourcesIntSliceBuilder(V1alpha2NamedResourcesIntSliceFluent fluent,V1alpha2NamedResourcesIntSlice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2NamedResourcesIntSliceBuilder(V1alpha2NamedResourcesIntSlice instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2NamedResourcesIntSliceFluent fluent; - - public V1alpha2NamedResourcesIntSlice build() { - V1alpha2NamedResourcesIntSlice buildable = new V1alpha2NamedResourcesIntSlice(); - buildable.setInts(fluent.getInts()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesIntSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesIntSliceFluent.java deleted file mode 100644 index 4f9761da1a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesIntSliceFluent.java +++ /dev/null @@ -1,149 +0,0 @@ -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 V1alpha2NamedResourcesIntSliceFluent> extends BaseFluent{ - public V1alpha2NamedResourcesIntSliceFluent() { - } - - public V1alpha2NamedResourcesIntSliceFluent(V1alpha2NamedResourcesIntSlice instance) { - this.copyInstance(instance); - } - private List ints; - - protected void copyInstance(V1alpha2NamedResourcesIntSlice instance) { - instance = (instance != null ? instance : new V1alpha2NamedResourcesIntSlice()); - if (instance != null) { - this.withInts(instance.getInts()); - } - } - - public A addToInts(int index,Long item) { - if (this.ints == null) {this.ints = new ArrayList();} - this.ints.add(index, item); - return (A)this; - } - - public A setToInts(int index,Long item) { - if (this.ints == null) {this.ints = new ArrayList();} - this.ints.set(index, item); return (A)this; - } - - public A addToInts(java.lang.Long... items) { - if (this.ints == null) {this.ints = new ArrayList();} - for (Long item : items) {this.ints.add(item);} return (A)this; - } - - public A addAllToInts(Collection items) { - if (this.ints == null) {this.ints = new ArrayList();} - for (Long item : items) {this.ints.add(item);} return (A)this; - } - - public A removeFromInts(java.lang.Long... items) { - if (this.ints == null) return (A)this; - for (Long item : items) { this.ints.remove(item);} return (A)this; - } - - public A removeAllFromInts(Collection items) { - if (this.ints == null) return (A)this; - for (Long item : items) { this.ints.remove(item);} return (A)this; - } - - public List getInts() { - return this.ints; - } - - public Long getInt(int index) { - return this.ints.get(index); - } - - public Long getFirstInt() { - return this.ints.get(0); - } - - public Long getLastInt() { - return this.ints.get(ints.size() - 1); - } - - public Long getMatchingInt(Predicate predicate) { - for (Long item : ints) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingInt(Predicate predicate) { - for (Long item : ints) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withInts(List ints) { - if (ints != null) { - this.ints = new ArrayList(); - for (Long item : ints) { - this.addToInts(item); - } - } else { - this.ints = null; - } - return (A) this; - } - - public A withInts(java.lang.Long... ints) { - if (this.ints != null) { - this.ints.clear(); - _visitables.remove("ints"); - } - if (ints != null) { - for (Long item : ints) { - this.addToInts(item); - } - } - return (A) this; - } - - public boolean hasInts() { - return this.ints != null && !this.ints.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; - V1alpha2NamedResourcesIntSliceFluent that = (V1alpha2NamedResourcesIntSliceFluent) o; - if (!java.util.Objects.equals(ints, that.ints)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(ints, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (ints != null && !ints.isEmpty()) { sb.append("ints:"); sb.append(ints); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesRequestBuilder.java deleted file mode 100644 index ac9cb5eb1d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesRequestBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2NamedResourcesRequestBuilder extends V1alpha2NamedResourcesRequestFluent implements VisitableBuilder{ - public V1alpha2NamedResourcesRequestBuilder() { - this(new V1alpha2NamedResourcesRequest()); - } - - public V1alpha2NamedResourcesRequestBuilder(V1alpha2NamedResourcesRequestFluent fluent) { - this(fluent, new V1alpha2NamedResourcesRequest()); - } - - public V1alpha2NamedResourcesRequestBuilder(V1alpha2NamedResourcesRequestFluent fluent,V1alpha2NamedResourcesRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2NamedResourcesRequestBuilder(V1alpha2NamedResourcesRequest instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2NamedResourcesRequestFluent fluent; - - public V1alpha2NamedResourcesRequest build() { - V1alpha2NamedResourcesRequest buildable = new V1alpha2NamedResourcesRequest(); - buildable.setSelector(fluent.getSelector()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesRequestFluent.java deleted file mode 100644 index 5412bdec70..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesRequestFluent.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 V1alpha2NamedResourcesRequestFluent> extends BaseFluent{ - public V1alpha2NamedResourcesRequestFluent() { - } - - public V1alpha2NamedResourcesRequestFluent(V1alpha2NamedResourcesRequest instance) { - this.copyInstance(instance); - } - private String selector; - - protected void copyInstance(V1alpha2NamedResourcesRequest instance) { - instance = (instance != null ? instance : new V1alpha2NamedResourcesRequest()); - if (instance != null) { - this.withSelector(instance.getSelector()); - } - } - - public String getSelector() { - return this.selector; - } - - public A withSelector(String selector) { - this.selector = selector; - return (A) this; - } - - public boolean hasSelector() { - return this.selector != 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; - V1alpha2NamedResourcesRequestFluent that = (V1alpha2NamedResourcesRequestFluent) o; - if (!java.util.Objects.equals(selector, that.selector)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(selector, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (selector != null) { sb.append("selector:"); sb.append(selector); } - sb.append("}"); - return sb.toString(); - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesResourcesBuilder.java deleted file mode 100644 index b6e833acbb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesResourcesBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2NamedResourcesResourcesBuilder extends V1alpha2NamedResourcesResourcesFluent implements VisitableBuilder{ - public V1alpha2NamedResourcesResourcesBuilder() { - this(new V1alpha2NamedResourcesResources()); - } - - public V1alpha2NamedResourcesResourcesBuilder(V1alpha2NamedResourcesResourcesFluent fluent) { - this(fluent, new V1alpha2NamedResourcesResources()); - } - - public V1alpha2NamedResourcesResourcesBuilder(V1alpha2NamedResourcesResourcesFluent fluent,V1alpha2NamedResourcesResources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2NamedResourcesResourcesBuilder(V1alpha2NamedResourcesResources instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2NamedResourcesResourcesFluent fluent; - - public V1alpha2NamedResourcesResources build() { - V1alpha2NamedResourcesResources buildable = new V1alpha2NamedResourcesResources(); - buildable.setInstances(fluent.buildInstances()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesResourcesFluent.java deleted file mode 100644 index 41f2625cc6..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesResourcesFluent.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 V1alpha2NamedResourcesResourcesFluent> extends BaseFluent{ - public V1alpha2NamedResourcesResourcesFluent() { - } - - public V1alpha2NamedResourcesResourcesFluent(V1alpha2NamedResourcesResources instance) { - this.copyInstance(instance); - } - private ArrayList instances; - - protected void copyInstance(V1alpha2NamedResourcesResources instance) { - instance = (instance != null ? instance : new V1alpha2NamedResourcesResources()); - if (instance != null) { - this.withInstances(instance.getInstances()); - } - } - - public A addToInstances(int index,V1alpha2NamedResourcesInstance item) { - if (this.instances == null) {this.instances = new ArrayList();} - V1alpha2NamedResourcesInstanceBuilder builder = new V1alpha2NamedResourcesInstanceBuilder(item); - if (index < 0 || index >= instances.size()) { _visitables.get("instances").add(builder); instances.add(builder); } else { _visitables.get("instances").add(index, builder); instances.add(index, builder);} - return (A)this; - } - - public A setToInstances(int index,V1alpha2NamedResourcesInstance item) { - if (this.instances == null) {this.instances = new ArrayList();} - V1alpha2NamedResourcesInstanceBuilder builder = new V1alpha2NamedResourcesInstanceBuilder(item); - if (index < 0 || index >= instances.size()) { _visitables.get("instances").add(builder); instances.add(builder); } else { _visitables.get("instances").set(index, builder); instances.set(index, builder);} - return (A)this; - } - - public A addToInstances(io.kubernetes.client.openapi.models.V1alpha2NamedResourcesInstance... items) { - if (this.instances == null) {this.instances = new ArrayList();} - for (V1alpha2NamedResourcesInstance item : items) {V1alpha2NamedResourcesInstanceBuilder builder = new V1alpha2NamedResourcesInstanceBuilder(item);_visitables.get("instances").add(builder);this.instances.add(builder);} return (A)this; - } - - public A addAllToInstances(Collection items) { - if (this.instances == null) {this.instances = new ArrayList();} - for (V1alpha2NamedResourcesInstance item : items) {V1alpha2NamedResourcesInstanceBuilder builder = new V1alpha2NamedResourcesInstanceBuilder(item);_visitables.get("instances").add(builder);this.instances.add(builder);} return (A)this; - } - - public A removeFromInstances(io.kubernetes.client.openapi.models.V1alpha2NamedResourcesInstance... items) { - if (this.instances == null) return (A)this; - for (V1alpha2NamedResourcesInstance item : items) {V1alpha2NamedResourcesInstanceBuilder builder = new V1alpha2NamedResourcesInstanceBuilder(item);_visitables.get("instances").remove(builder); this.instances.remove(builder);} return (A)this; - } - - public A removeAllFromInstances(Collection items) { - if (this.instances == null) return (A)this; - for (V1alpha2NamedResourcesInstance item : items) {V1alpha2NamedResourcesInstanceBuilder builder = new V1alpha2NamedResourcesInstanceBuilder(item);_visitables.get("instances").remove(builder); this.instances.remove(builder);} return (A)this; - } - - public A removeMatchingFromInstances(Predicate predicate) { - if (instances == null) return (A) this; - final Iterator each = instances.iterator(); - final List visitables = _visitables.get("instances"); - while (each.hasNext()) { - V1alpha2NamedResourcesInstanceBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildInstances() { - return this.instances != null ? build(instances) : null; - } - - public V1alpha2NamedResourcesInstance buildInstance(int index) { - return this.instances.get(index).build(); - } - - public V1alpha2NamedResourcesInstance buildFirstInstance() { - return this.instances.get(0).build(); - } - - public V1alpha2NamedResourcesInstance buildLastInstance() { - return this.instances.get(instances.size() - 1).build(); - } - - public V1alpha2NamedResourcesInstance buildMatchingInstance(Predicate predicate) { - for (V1alpha2NamedResourcesInstanceBuilder item : instances) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingInstance(Predicate predicate) { - for (V1alpha2NamedResourcesInstanceBuilder item : instances) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withInstances(List instances) { - if (this.instances != null) { - this._visitables.get("instances").clear(); - } - if (instances != null) { - this.instances = new ArrayList(); - for (V1alpha2NamedResourcesInstance item : instances) { - this.addToInstances(item); - } - } else { - this.instances = null; - } - return (A) this; - } - - public A withInstances(io.kubernetes.client.openapi.models.V1alpha2NamedResourcesInstance... instances) { - if (this.instances != null) { - this.instances.clear(); - _visitables.remove("instances"); - } - if (instances != null) { - for (V1alpha2NamedResourcesInstance item : instances) { - this.addToInstances(item); - } - } - return (A) this; - } - - public boolean hasInstances() { - return this.instances != null && !this.instances.isEmpty(); - } - - public InstancesNested addNewInstance() { - return new InstancesNested(-1, null); - } - - public InstancesNested addNewInstanceLike(V1alpha2NamedResourcesInstance item) { - return new InstancesNested(-1, item); - } - - public InstancesNested setNewInstanceLike(int index,V1alpha2NamedResourcesInstance item) { - return new InstancesNested(index, item); - } - - public InstancesNested editInstance(int index) { - if (instances.size() <= index) throw new RuntimeException("Can't edit instances. Index exceeds size."); - return setNewInstanceLike(index, buildInstance(index)); - } - - public InstancesNested editFirstInstance() { - if (instances.size() == 0) throw new RuntimeException("Can't edit first instances. The list is empty."); - return setNewInstanceLike(0, buildInstance(0)); - } - - public InstancesNested editLastInstance() { - int index = instances.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last instances. The list is empty."); - return setNewInstanceLike(index, buildInstance(index)); - } - - public InstancesNested editMatchingInstance(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha2NamedResourcesInstanceFluent> implements Nested{ - InstancesNested(int index,V1alpha2NamedResourcesInstance item) { - this.index = index; - this.builder = new V1alpha2NamedResourcesInstanceBuilder(this, item); - } - V1alpha2NamedResourcesInstanceBuilder builder; - int index; - - public N and() { - return (N) V1alpha2NamedResourcesResourcesFluent.this.setToInstances(index,builder.build()); - } - - public N endInstance() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesStringSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesStringSliceBuilder.java deleted file mode 100644 index d67500c9e9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesStringSliceBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2NamedResourcesStringSliceBuilder extends V1alpha2NamedResourcesStringSliceFluent implements VisitableBuilder{ - public V1alpha2NamedResourcesStringSliceBuilder() { - this(new V1alpha2NamedResourcesStringSlice()); - } - - public V1alpha2NamedResourcesStringSliceBuilder(V1alpha2NamedResourcesStringSliceFluent fluent) { - this(fluent, new V1alpha2NamedResourcesStringSlice()); - } - - public V1alpha2NamedResourcesStringSliceBuilder(V1alpha2NamedResourcesStringSliceFluent fluent,V1alpha2NamedResourcesStringSlice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2NamedResourcesStringSliceBuilder(V1alpha2NamedResourcesStringSlice instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2NamedResourcesStringSliceFluent fluent; - - public V1alpha2NamedResourcesStringSlice build() { - V1alpha2NamedResourcesStringSlice buildable = new V1alpha2NamedResourcesStringSlice(); - buildable.setStrings(fluent.getStrings()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesStringSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesStringSliceFluent.java deleted file mode 100644 index 50e84a35b4..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesStringSliceFluent.java +++ /dev/null @@ -1,148 +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 V1alpha2NamedResourcesStringSliceFluent> extends BaseFluent{ - public V1alpha2NamedResourcesStringSliceFluent() { - } - - public V1alpha2NamedResourcesStringSliceFluent(V1alpha2NamedResourcesStringSlice instance) { - this.copyInstance(instance); - } - private List strings; - - protected void copyInstance(V1alpha2NamedResourcesStringSlice instance) { - instance = (instance != null ? instance : new V1alpha2NamedResourcesStringSlice()); - if (instance != null) { - this.withStrings(instance.getStrings()); - } - } - - public A addToStrings(int index,String item) { - if (this.strings == null) {this.strings = new ArrayList();} - this.strings.add(index, item); - return (A)this; - } - - public A setToStrings(int index,String item) { - if (this.strings == null) {this.strings = new ArrayList();} - this.strings.set(index, item); return (A)this; - } - - public A addToStrings(java.lang.String... items) { - if (this.strings == null) {this.strings = new ArrayList();} - for (String item : items) {this.strings.add(item);} return (A)this; - } - - public A addAllToStrings(Collection items) { - if (this.strings == null) {this.strings = new ArrayList();} - for (String item : items) {this.strings.add(item);} return (A)this; - } - - public A removeFromStrings(java.lang.String... items) { - if (this.strings == null) return (A)this; - for (String item : items) { this.strings.remove(item);} return (A)this; - } - - public A removeAllFromStrings(Collection items) { - if (this.strings == null) return (A)this; - for (String item : items) { this.strings.remove(item);} return (A)this; - } - - public List getStrings() { - return this.strings; - } - - public String getString(int index) { - return this.strings.get(index); - } - - public String getFirstString() { - return this.strings.get(0); - } - - public String getLastString() { - return this.strings.get(strings.size() - 1); - } - - public String getMatchingString(Predicate predicate) { - for (String item : strings) { - if (predicate.test(item)) { - return item; - } - } - return null; - } - - public boolean hasMatchingString(Predicate predicate) { - for (String item : strings) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withStrings(List strings) { - if (strings != null) { - this.strings = new ArrayList(); - for (String item : strings) { - this.addToStrings(item); - } - } else { - this.strings = null; - } - return (A) this; - } - - public A withStrings(java.lang.String... strings) { - if (this.strings != null) { - this.strings.clear(); - _visitables.remove("strings"); - } - if (strings != null) { - for (String item : strings) { - this.addToStrings(item); - } - } - return (A) this; - } - - public boolean hasStrings() { - return this.strings != null && !this.strings.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; - V1alpha2NamedResourcesStringSliceFluent that = (V1alpha2NamedResourcesStringSliceFluent) o; - if (!java.util.Objects.equals(strings, that.strings)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(strings, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (strings != null && !strings.isEmpty()) { sb.append("strings:"); sb.append(strings); } - 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/V1alpha2ResourceClaimParametersBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersBuilder.java deleted file mode 100644 index a7f934ea81..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimParametersBuilder extends V1alpha2ResourceClaimParametersFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimParametersBuilder() { - this(new V1alpha2ResourceClaimParameters()); - } - - public V1alpha2ResourceClaimParametersBuilder(V1alpha2ResourceClaimParametersFluent fluent) { - this(fluent, new V1alpha2ResourceClaimParameters()); - } - - public V1alpha2ResourceClaimParametersBuilder(V1alpha2ResourceClaimParametersFluent fluent,V1alpha2ResourceClaimParameters instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimParametersBuilder(V1alpha2ResourceClaimParameters instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimParametersFluent fluent; - - public V1alpha2ResourceClaimParameters build() { - V1alpha2ResourceClaimParameters buildable = new V1alpha2ResourceClaimParameters(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setDriverRequests(fluent.buildDriverRequests()); - buildable.setGeneratedFrom(fluent.buildGeneratedFrom()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setShareable(fluent.getShareable()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersFluent.java deleted file mode 100644 index 6cf98d8425..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersFluent.java +++ /dev/null @@ -1,401 +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.Boolean; -import java.util.Collection; -import java.lang.Object; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha2ResourceClaimParametersFluent> extends BaseFluent{ - public V1alpha2ResourceClaimParametersFluent() { - } - - public V1alpha2ResourceClaimParametersFluent(V1alpha2ResourceClaimParameters instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList driverRequests; - private V1alpha2ResourceClaimParametersReferenceBuilder generatedFrom; - private String kind; - private V1ObjectMetaBuilder metadata; - private Boolean shareable; - - protected void copyInstance(V1alpha2ResourceClaimParameters instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimParameters()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDriverRequests(instance.getDriverRequests()); - this.withGeneratedFrom(instance.getGeneratedFrom()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withShareable(instance.getShareable()); - } - } - - 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 addToDriverRequests(int index,V1alpha2DriverRequests item) { - if (this.driverRequests == null) {this.driverRequests = new ArrayList();} - V1alpha2DriverRequestsBuilder builder = new V1alpha2DriverRequestsBuilder(item); - if (index < 0 || index >= driverRequests.size()) { _visitables.get("driverRequests").add(builder); driverRequests.add(builder); } else { _visitables.get("driverRequests").add(index, builder); driverRequests.add(index, builder);} - return (A)this; - } - - public A setToDriverRequests(int index,V1alpha2DriverRequests item) { - if (this.driverRequests == null) {this.driverRequests = new ArrayList();} - V1alpha2DriverRequestsBuilder builder = new V1alpha2DriverRequestsBuilder(item); - if (index < 0 || index >= driverRequests.size()) { _visitables.get("driverRequests").add(builder); driverRequests.add(builder); } else { _visitables.get("driverRequests").set(index, builder); driverRequests.set(index, builder);} - return (A)this; - } - - public A addToDriverRequests(io.kubernetes.client.openapi.models.V1alpha2DriverRequests... items) { - if (this.driverRequests == null) {this.driverRequests = new ArrayList();} - for (V1alpha2DriverRequests item : items) {V1alpha2DriverRequestsBuilder builder = new V1alpha2DriverRequestsBuilder(item);_visitables.get("driverRequests").add(builder);this.driverRequests.add(builder);} return (A)this; - } - - public A addAllToDriverRequests(Collection items) { - if (this.driverRequests == null) {this.driverRequests = new ArrayList();} - for (V1alpha2DriverRequests item : items) {V1alpha2DriverRequestsBuilder builder = new V1alpha2DriverRequestsBuilder(item);_visitables.get("driverRequests").add(builder);this.driverRequests.add(builder);} return (A)this; - } - - public A removeFromDriverRequests(io.kubernetes.client.openapi.models.V1alpha2DriverRequests... items) { - if (this.driverRequests == null) return (A)this; - for (V1alpha2DriverRequests item : items) {V1alpha2DriverRequestsBuilder builder = new V1alpha2DriverRequestsBuilder(item);_visitables.get("driverRequests").remove(builder); this.driverRequests.remove(builder);} return (A)this; - } - - public A removeAllFromDriverRequests(Collection items) { - if (this.driverRequests == null) return (A)this; - for (V1alpha2DriverRequests item : items) {V1alpha2DriverRequestsBuilder builder = new V1alpha2DriverRequestsBuilder(item);_visitables.get("driverRequests").remove(builder); this.driverRequests.remove(builder);} return (A)this; - } - - public A removeMatchingFromDriverRequests(Predicate predicate) { - if (driverRequests == null) return (A) this; - final Iterator each = driverRequests.iterator(); - final List visitables = _visitables.get("driverRequests"); - while (each.hasNext()) { - V1alpha2DriverRequestsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildDriverRequests() { - return this.driverRequests != null ? build(driverRequests) : null; - } - - public V1alpha2DriverRequests buildDriverRequest(int index) { - return this.driverRequests.get(index).build(); - } - - public V1alpha2DriverRequests buildFirstDriverRequest() { - return this.driverRequests.get(0).build(); - } - - public V1alpha2DriverRequests buildLastDriverRequest() { - return this.driverRequests.get(driverRequests.size() - 1).build(); - } - - public V1alpha2DriverRequests buildMatchingDriverRequest(Predicate predicate) { - for (V1alpha2DriverRequestsBuilder item : driverRequests) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingDriverRequest(Predicate predicate) { - for (V1alpha2DriverRequestsBuilder item : driverRequests) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withDriverRequests(List driverRequests) { - if (this.driverRequests != null) { - this._visitables.get("driverRequests").clear(); - } - if (driverRequests != null) { - this.driverRequests = new ArrayList(); - for (V1alpha2DriverRequests item : driverRequests) { - this.addToDriverRequests(item); - } - } else { - this.driverRequests = null; - } - return (A) this; - } - - public A withDriverRequests(io.kubernetes.client.openapi.models.V1alpha2DriverRequests... driverRequests) { - if (this.driverRequests != null) { - this.driverRequests.clear(); - _visitables.remove("driverRequests"); - } - if (driverRequests != null) { - for (V1alpha2DriverRequests item : driverRequests) { - this.addToDriverRequests(item); - } - } - return (A) this; - } - - public boolean hasDriverRequests() { - return this.driverRequests != null && !this.driverRequests.isEmpty(); - } - - public DriverRequestsNested addNewDriverRequest() { - return new DriverRequestsNested(-1, null); - } - - public DriverRequestsNested addNewDriverRequestLike(V1alpha2DriverRequests item) { - return new DriverRequestsNested(-1, item); - } - - public DriverRequestsNested setNewDriverRequestLike(int index,V1alpha2DriverRequests item) { - return new DriverRequestsNested(index, item); - } - - public DriverRequestsNested editDriverRequest(int index) { - if (driverRequests.size() <= index) throw new RuntimeException("Can't edit driverRequests. Index exceeds size."); - return setNewDriverRequestLike(index, buildDriverRequest(index)); - } - - public DriverRequestsNested editFirstDriverRequest() { - if (driverRequests.size() == 0) throw new RuntimeException("Can't edit first driverRequests. The list is empty."); - return setNewDriverRequestLike(0, buildDriverRequest(0)); - } - - public DriverRequestsNested editLastDriverRequest() { - int index = driverRequests.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last driverRequests. The list is empty."); - return setNewDriverRequestLike(index, buildDriverRequest(index)); - } - - public DriverRequestsNested editMatchingDriverRequest(Predicate predicate) { - int index = -1; - for (int i=0;i withNewGeneratedFrom() { - return new GeneratedFromNested(null); - } - - public GeneratedFromNested withNewGeneratedFromLike(V1alpha2ResourceClaimParametersReference item) { - return new GeneratedFromNested(item); - } - - public GeneratedFromNested editGeneratedFrom() { - return withNewGeneratedFromLike(java.util.Optional.ofNullable(buildGeneratedFrom()).orElse(null)); - } - - public GeneratedFromNested editOrNewGeneratedFrom() { - return withNewGeneratedFromLike(java.util.Optional.ofNullable(buildGeneratedFrom()).orElse(new V1alpha2ResourceClaimParametersReferenceBuilder().build())); - } - - public GeneratedFromNested editOrNewGeneratedFromLike(V1alpha2ResourceClaimParametersReference item) { - return withNewGeneratedFromLike(java.util.Optional.ofNullable(buildGeneratedFrom()).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 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 Boolean getShareable() { - return this.shareable; - } - - public A withShareable(Boolean shareable) { - this.shareable = shareable; - return (A) this; - } - - public boolean hasShareable() { - return this.shareable != 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; - V1alpha2ResourceClaimParametersFluent that = (V1alpha2ResourceClaimParametersFluent) o; - if (!java.util.Objects.equals(apiVersion, that.apiVersion)) return false; - if (!java.util.Objects.equals(driverRequests, that.driverRequests)) return false; - if (!java.util.Objects.equals(generatedFrom, that.generatedFrom)) 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(shareable, that.shareable)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, driverRequests, generatedFrom, kind, metadata, shareable, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (apiVersion != null) { sb.append("apiVersion:"); sb.append(apiVersion + ","); } - if (driverRequests != null && !driverRequests.isEmpty()) { sb.append("driverRequests:"); sb.append(driverRequests + ","); } - if (generatedFrom != null) { sb.append("generatedFrom:"); sb.append(generatedFrom + ","); } - if (kind != null) { sb.append("kind:"); sb.append(kind + ","); } - if (metadata != null) { sb.append("metadata:"); sb.append(metadata + ","); } - if (shareable != null) { sb.append("shareable:"); sb.append(shareable); } - sb.append("}"); - return sb.toString(); - } - - public A withShareable() { - return withShareable(true); - } - public class DriverRequestsNested extends V1alpha2DriverRequestsFluent> implements Nested{ - DriverRequestsNested(int index,V1alpha2DriverRequests item) { - this.index = index; - this.builder = new V1alpha2DriverRequestsBuilder(this, item); - } - V1alpha2DriverRequestsBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceClaimParametersFluent.this.setToDriverRequests(index,builder.build()); - } - - public N endDriverRequest() { - return and(); - } - - - } - public class GeneratedFromNested extends V1alpha2ResourceClaimParametersReferenceFluent> implements Nested{ - GeneratedFromNested(V1alpha2ResourceClaimParametersReference item) { - this.builder = new V1alpha2ResourceClaimParametersReferenceBuilder(this, item); - } - V1alpha2ResourceClaimParametersReferenceBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimParametersFluent.this.withGeneratedFrom(builder.build()); - } - - public N endGeneratedFrom() { - return and(); - } - - - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClaimParametersFluent.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/V1alpha2ResourceClaimParametersListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersListBuilder.java deleted file mode 100644 index 0ec934589a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClaimParametersListBuilder extends V1alpha2ResourceClaimParametersListFluent implements VisitableBuilder{ - public V1alpha2ResourceClaimParametersListBuilder() { - this(new V1alpha2ResourceClaimParametersList()); - } - - public V1alpha2ResourceClaimParametersListBuilder(V1alpha2ResourceClaimParametersListFluent fluent) { - this(fluent, new V1alpha2ResourceClaimParametersList()); - } - - public V1alpha2ResourceClaimParametersListBuilder(V1alpha2ResourceClaimParametersListFluent fluent,V1alpha2ResourceClaimParametersList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClaimParametersListBuilder(V1alpha2ResourceClaimParametersList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClaimParametersListFluent fluent; - - public V1alpha2ResourceClaimParametersList build() { - V1alpha2ResourceClaimParametersList buildable = new V1alpha2ResourceClaimParametersList(); - 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/V1alpha2ResourceClaimParametersListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersListFluent.java deleted file mode 100644 index f97e98b815..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersListFluent.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 V1alpha2ResourceClaimParametersListFluent> extends BaseFluent{ - public V1alpha2ResourceClaimParametersListFluent() { - } - - public V1alpha2ResourceClaimParametersListFluent(V1alpha2ResourceClaimParametersList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha2ResourceClaimParametersList instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClaimParametersList()); - 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,V1alpha2ResourceClaimParameters item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClaimParametersBuilder builder = new V1alpha2ResourceClaimParametersBuilder(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,V1alpha2ResourceClaimParameters item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClaimParametersBuilder builder = new V1alpha2ResourceClaimParametersBuilder(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.V1alpha2ResourceClaimParameters... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2ResourceClaimParameters item : items) {V1alpha2ResourceClaimParametersBuilder builder = new V1alpha2ResourceClaimParametersBuilder(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 (V1alpha2ResourceClaimParameters item : items) {V1alpha2ResourceClaimParametersBuilder builder = new V1alpha2ResourceClaimParametersBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimParameters... items) { - if (this.items == null) return (A)this; - for (V1alpha2ResourceClaimParameters item : items) {V1alpha2ResourceClaimParametersBuilder builder = new V1alpha2ResourceClaimParametersBuilder(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 (V1alpha2ResourceClaimParameters item : items) {V1alpha2ResourceClaimParametersBuilder builder = new V1alpha2ResourceClaimParametersBuilder(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()) { - V1alpha2ResourceClaimParametersBuilder 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 V1alpha2ResourceClaimParameters buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha2ResourceClaimParameters buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha2ResourceClaimParameters buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha2ResourceClaimParameters buildMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClaimParametersBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClaimParametersBuilder 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 (V1alpha2ResourceClaimParameters item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClaimParameters... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha2ResourceClaimParameters 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(V1alpha2ResourceClaimParameters item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha2ResourceClaimParameters 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; - V1alpha2ResourceClaimParametersListFluent that = (V1alpha2ResourceClaimParametersListFluent) 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 V1alpha2ResourceClaimParametersFluent> implements Nested{ - ItemsNested(int index,V1alpha2ResourceClaimParameters item) { - this.index = index; - this.builder = new V1alpha2ResourceClaimParametersBuilder(this, item); - } - V1alpha2ResourceClaimParametersBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceClaimParametersListFluent.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) V1alpha2ResourceClaimParametersListFluent.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 fc45567958..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassBuilder.java +++ /dev/null @@ -1,37 +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.setStructuredParameters(fluent.getStructuredParameters()); - 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 1e77fd88cb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassFluent.java +++ /dev/null @@ -1,299 +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; -import java.lang.Boolean; - -/** - * 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 Boolean structuredParameters; - 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.withStructuredParameters(instance.getStructuredParameters()); - 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 Boolean getStructuredParameters() { - return this.structuredParameters; - } - - public A withStructuredParameters(Boolean structuredParameters) { - this.structuredParameters = structuredParameters; - return (A) this; - } - - public boolean hasStructuredParameters() { - return this.structuredParameters != null; - } - - 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(structuredParameters, that.structuredParameters)) 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, structuredParameters, 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 (structuredParameters != null) { sb.append("structuredParameters:"); sb.append(structuredParameters + ","); } - if (suitableNodes != null) { sb.append("suitableNodes:"); sb.append(suitableNodes); } - sb.append("}"); - return sb.toString(); - } - - public A withStructuredParameters() { - return withStructuredParameters(true); - } - 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/V1alpha2ResourceClassParametersBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersBuilder.java deleted file mode 100644 index 3a35a7338d..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClassParametersBuilder extends V1alpha2ResourceClassParametersFluent implements VisitableBuilder{ - public V1alpha2ResourceClassParametersBuilder() { - this(new V1alpha2ResourceClassParameters()); - } - - public V1alpha2ResourceClassParametersBuilder(V1alpha2ResourceClassParametersFluent fluent) { - this(fluent, new V1alpha2ResourceClassParameters()); - } - - public V1alpha2ResourceClassParametersBuilder(V1alpha2ResourceClassParametersFluent fluent,V1alpha2ResourceClassParameters instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClassParametersBuilder(V1alpha2ResourceClassParameters instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClassParametersFluent fluent; - - public V1alpha2ResourceClassParameters build() { - V1alpha2ResourceClassParameters buildable = new V1alpha2ResourceClassParameters(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setFilters(fluent.buildFilters()); - buildable.setGeneratedFrom(fluent.buildGeneratedFrom()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setVendorParameters(fluent.buildVendorParameters()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersFluent.java deleted file mode 100644 index 3e2b70f8d7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersFluent.java +++ /dev/null @@ -1,552 +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 V1alpha2ResourceClassParametersFluent> extends BaseFluent{ - public V1alpha2ResourceClassParametersFluent() { - } - - public V1alpha2ResourceClassParametersFluent(V1alpha2ResourceClassParameters instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList filters; - private V1alpha2ResourceClassParametersReferenceBuilder generatedFrom; - private String kind; - private V1ObjectMetaBuilder metadata; - private ArrayList vendorParameters; - - protected void copyInstance(V1alpha2ResourceClassParameters instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClassParameters()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withFilters(instance.getFilters()); - this.withGeneratedFrom(instance.getGeneratedFrom()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withVendorParameters(instance.getVendorParameters()); - } - } - - 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 addToFilters(int index,V1alpha2ResourceFilter item) { - if (this.filters == null) {this.filters = new ArrayList();} - V1alpha2ResourceFilterBuilder builder = new V1alpha2ResourceFilterBuilder(item); - if (index < 0 || index >= filters.size()) { _visitables.get("filters").add(builder); filters.add(builder); } else { _visitables.get("filters").add(index, builder); filters.add(index, builder);} - return (A)this; - } - - public A setToFilters(int index,V1alpha2ResourceFilter item) { - if (this.filters == null) {this.filters = new ArrayList();} - V1alpha2ResourceFilterBuilder builder = new V1alpha2ResourceFilterBuilder(item); - if (index < 0 || index >= filters.size()) { _visitables.get("filters").add(builder); filters.add(builder); } else { _visitables.get("filters").set(index, builder); filters.set(index, builder);} - return (A)this; - } - - public A addToFilters(io.kubernetes.client.openapi.models.V1alpha2ResourceFilter... items) { - if (this.filters == null) {this.filters = new ArrayList();} - for (V1alpha2ResourceFilter item : items) {V1alpha2ResourceFilterBuilder builder = new V1alpha2ResourceFilterBuilder(item);_visitables.get("filters").add(builder);this.filters.add(builder);} return (A)this; - } - - public A addAllToFilters(Collection items) { - if (this.filters == null) {this.filters = new ArrayList();} - for (V1alpha2ResourceFilter item : items) {V1alpha2ResourceFilterBuilder builder = new V1alpha2ResourceFilterBuilder(item);_visitables.get("filters").add(builder);this.filters.add(builder);} return (A)this; - } - - public A removeFromFilters(io.kubernetes.client.openapi.models.V1alpha2ResourceFilter... items) { - if (this.filters == null) return (A)this; - for (V1alpha2ResourceFilter item : items) {V1alpha2ResourceFilterBuilder builder = new V1alpha2ResourceFilterBuilder(item);_visitables.get("filters").remove(builder); this.filters.remove(builder);} return (A)this; - } - - public A removeAllFromFilters(Collection items) { - if (this.filters == null) return (A)this; - for (V1alpha2ResourceFilter item : items) {V1alpha2ResourceFilterBuilder builder = new V1alpha2ResourceFilterBuilder(item);_visitables.get("filters").remove(builder); this.filters.remove(builder);} return (A)this; - } - - public A removeMatchingFromFilters(Predicate predicate) { - if (filters == null) return (A) this; - final Iterator each = filters.iterator(); - final List visitables = _visitables.get("filters"); - while (each.hasNext()) { - V1alpha2ResourceFilterBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildFilters() { - return this.filters != null ? build(filters) : null; - } - - public V1alpha2ResourceFilter buildFilter(int index) { - return this.filters.get(index).build(); - } - - public V1alpha2ResourceFilter buildFirstFilter() { - return this.filters.get(0).build(); - } - - public V1alpha2ResourceFilter buildLastFilter() { - return this.filters.get(filters.size() - 1).build(); - } - - public V1alpha2ResourceFilter buildMatchingFilter(Predicate predicate) { - for (V1alpha2ResourceFilterBuilder item : filters) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingFilter(Predicate predicate) { - for (V1alpha2ResourceFilterBuilder item : filters) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withFilters(List filters) { - if (this.filters != null) { - this._visitables.get("filters").clear(); - } - if (filters != null) { - this.filters = new ArrayList(); - for (V1alpha2ResourceFilter item : filters) { - this.addToFilters(item); - } - } else { - this.filters = null; - } - return (A) this; - } - - public A withFilters(io.kubernetes.client.openapi.models.V1alpha2ResourceFilter... filters) { - if (this.filters != null) { - this.filters.clear(); - _visitables.remove("filters"); - } - if (filters != null) { - for (V1alpha2ResourceFilter item : filters) { - this.addToFilters(item); - } - } - return (A) this; - } - - public boolean hasFilters() { - return this.filters != null && !this.filters.isEmpty(); - } - - public FiltersNested addNewFilter() { - return new FiltersNested(-1, null); - } - - public FiltersNested addNewFilterLike(V1alpha2ResourceFilter item) { - return new FiltersNested(-1, item); - } - - public FiltersNested setNewFilterLike(int index,V1alpha2ResourceFilter item) { - return new FiltersNested(index, item); - } - - public FiltersNested editFilter(int index) { - if (filters.size() <= index) throw new RuntimeException("Can't edit filters. Index exceeds size."); - return setNewFilterLike(index, buildFilter(index)); - } - - public FiltersNested editFirstFilter() { - if (filters.size() == 0) throw new RuntimeException("Can't edit first filters. The list is empty."); - return setNewFilterLike(0, buildFilter(0)); - } - - public FiltersNested editLastFilter() { - int index = filters.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last filters. The list is empty."); - return setNewFilterLike(index, buildFilter(index)); - } - - public FiltersNested editMatchingFilter(Predicate predicate) { - int index = -1; - for (int i=0;i withNewGeneratedFrom() { - return new GeneratedFromNested(null); - } - - public GeneratedFromNested withNewGeneratedFromLike(V1alpha2ResourceClassParametersReference item) { - return new GeneratedFromNested(item); - } - - public GeneratedFromNested editGeneratedFrom() { - return withNewGeneratedFromLike(java.util.Optional.ofNullable(buildGeneratedFrom()).orElse(null)); - } - - public GeneratedFromNested editOrNewGeneratedFrom() { - return withNewGeneratedFromLike(java.util.Optional.ofNullable(buildGeneratedFrom()).orElse(new V1alpha2ResourceClassParametersReferenceBuilder().build())); - } - - public GeneratedFromNested editOrNewGeneratedFromLike(V1alpha2ResourceClassParametersReference item) { - return withNewGeneratedFromLike(java.util.Optional.ofNullable(buildGeneratedFrom()).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 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 addToVendorParameters(int index,V1alpha2VendorParameters item) { - if (this.vendorParameters == null) {this.vendorParameters = new ArrayList();} - V1alpha2VendorParametersBuilder builder = new V1alpha2VendorParametersBuilder(item); - if (index < 0 || index >= vendorParameters.size()) { _visitables.get("vendorParameters").add(builder); vendorParameters.add(builder); } else { _visitables.get("vendorParameters").add(index, builder); vendorParameters.add(index, builder);} - return (A)this; - } - - public A setToVendorParameters(int index,V1alpha2VendorParameters item) { - if (this.vendorParameters == null) {this.vendorParameters = new ArrayList();} - V1alpha2VendorParametersBuilder builder = new V1alpha2VendorParametersBuilder(item); - if (index < 0 || index >= vendorParameters.size()) { _visitables.get("vendorParameters").add(builder); vendorParameters.add(builder); } else { _visitables.get("vendorParameters").set(index, builder); vendorParameters.set(index, builder);} - return (A)this; - } - - public A addToVendorParameters(io.kubernetes.client.openapi.models.V1alpha2VendorParameters... items) { - if (this.vendorParameters == null) {this.vendorParameters = new ArrayList();} - for (V1alpha2VendorParameters item : items) {V1alpha2VendorParametersBuilder builder = new V1alpha2VendorParametersBuilder(item);_visitables.get("vendorParameters").add(builder);this.vendorParameters.add(builder);} return (A)this; - } - - public A addAllToVendorParameters(Collection items) { - if (this.vendorParameters == null) {this.vendorParameters = new ArrayList();} - for (V1alpha2VendorParameters item : items) {V1alpha2VendorParametersBuilder builder = new V1alpha2VendorParametersBuilder(item);_visitables.get("vendorParameters").add(builder);this.vendorParameters.add(builder);} return (A)this; - } - - public A removeFromVendorParameters(io.kubernetes.client.openapi.models.V1alpha2VendorParameters... items) { - if (this.vendorParameters == null) return (A)this; - for (V1alpha2VendorParameters item : items) {V1alpha2VendorParametersBuilder builder = new V1alpha2VendorParametersBuilder(item);_visitables.get("vendorParameters").remove(builder); this.vendorParameters.remove(builder);} return (A)this; - } - - public A removeAllFromVendorParameters(Collection items) { - if (this.vendorParameters == null) return (A)this; - for (V1alpha2VendorParameters item : items) {V1alpha2VendorParametersBuilder builder = new V1alpha2VendorParametersBuilder(item);_visitables.get("vendorParameters").remove(builder); this.vendorParameters.remove(builder);} return (A)this; - } - - public A removeMatchingFromVendorParameters(Predicate predicate) { - if (vendorParameters == null) return (A) this; - final Iterator each = vendorParameters.iterator(); - final List visitables = _visitables.get("vendorParameters"); - while (each.hasNext()) { - V1alpha2VendorParametersBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; - } - - public List buildVendorParameters() { - return this.vendorParameters != null ? build(vendorParameters) : null; - } - - public V1alpha2VendorParameters buildVendorParameter(int index) { - return this.vendorParameters.get(index).build(); - } - - public V1alpha2VendorParameters buildFirstVendorParameter() { - return this.vendorParameters.get(0).build(); - } - - public V1alpha2VendorParameters buildLastVendorParameter() { - return this.vendorParameters.get(vendorParameters.size() - 1).build(); - } - - public V1alpha2VendorParameters buildMatchingVendorParameter(Predicate predicate) { - for (V1alpha2VendorParametersBuilder item : vendorParameters) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingVendorParameter(Predicate predicate) { - for (V1alpha2VendorParametersBuilder item : vendorParameters) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public A withVendorParameters(List vendorParameters) { - if (this.vendorParameters != null) { - this._visitables.get("vendorParameters").clear(); - } - if (vendorParameters != null) { - this.vendorParameters = new ArrayList(); - for (V1alpha2VendorParameters item : vendorParameters) { - this.addToVendorParameters(item); - } - } else { - this.vendorParameters = null; - } - return (A) this; - } - - public A withVendorParameters(io.kubernetes.client.openapi.models.V1alpha2VendorParameters... vendorParameters) { - if (this.vendorParameters != null) { - this.vendorParameters.clear(); - _visitables.remove("vendorParameters"); - } - if (vendorParameters != null) { - for (V1alpha2VendorParameters item : vendorParameters) { - this.addToVendorParameters(item); - } - } - return (A) this; - } - - public boolean hasVendorParameters() { - return this.vendorParameters != null && !this.vendorParameters.isEmpty(); - } - - public VendorParametersNested addNewVendorParameter() { - return new VendorParametersNested(-1, null); - } - - public VendorParametersNested addNewVendorParameterLike(V1alpha2VendorParameters item) { - return new VendorParametersNested(-1, item); - } - - public VendorParametersNested setNewVendorParameterLike(int index,V1alpha2VendorParameters item) { - return new VendorParametersNested(index, item); - } - - public VendorParametersNested editVendorParameter(int index) { - if (vendorParameters.size() <= index) throw new RuntimeException("Can't edit vendorParameters. Index exceeds size."); - return setNewVendorParameterLike(index, buildVendorParameter(index)); - } - - public VendorParametersNested editFirstVendorParameter() { - if (vendorParameters.size() == 0) throw new RuntimeException("Can't edit first vendorParameters. The list is empty."); - return setNewVendorParameterLike(0, buildVendorParameter(0)); - } - - public VendorParametersNested editLastVendorParameter() { - int index = vendorParameters.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last vendorParameters. The list is empty."); - return setNewVendorParameterLike(index, buildVendorParameter(index)); - } - - public VendorParametersNested editMatchingVendorParameter(Predicate predicate) { - int index = -1; - for (int i=0;i extends V1alpha2ResourceFilterFluent> implements Nested{ - FiltersNested(int index,V1alpha2ResourceFilter item) { - this.index = index; - this.builder = new V1alpha2ResourceFilterBuilder(this, item); - } - V1alpha2ResourceFilterBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceClassParametersFluent.this.setToFilters(index,builder.build()); - } - - public N endFilter() { - return and(); - } - - - } - public class GeneratedFromNested extends V1alpha2ResourceClassParametersReferenceFluent> implements Nested{ - GeneratedFromNested(V1alpha2ResourceClassParametersReference item) { - this.builder = new V1alpha2ResourceClassParametersReferenceBuilder(this, item); - } - V1alpha2ResourceClassParametersReferenceBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClassParametersFluent.this.withGeneratedFrom(builder.build()); - } - - public N endGeneratedFrom() { - return and(); - } - - - } - public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - MetadataNested(V1ObjectMeta item) { - this.builder = new V1ObjectMetaBuilder(this, item); - } - V1ObjectMetaBuilder builder; - - public N and() { - return (N) V1alpha2ResourceClassParametersFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class VendorParametersNested extends V1alpha2VendorParametersFluent> implements Nested{ - VendorParametersNested(int index,V1alpha2VendorParameters item) { - this.index = index; - this.builder = new V1alpha2VendorParametersBuilder(this, item); - } - V1alpha2VendorParametersBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceClassParametersFluent.this.setToVendorParameters(index,builder.build()); - } - - public N endVendorParameter() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersListBuilder.java deleted file mode 100644 index 84349a65ac..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceClassParametersListBuilder extends V1alpha2ResourceClassParametersListFluent implements VisitableBuilder{ - public V1alpha2ResourceClassParametersListBuilder() { - this(new V1alpha2ResourceClassParametersList()); - } - - public V1alpha2ResourceClassParametersListBuilder(V1alpha2ResourceClassParametersListFluent fluent) { - this(fluent, new V1alpha2ResourceClassParametersList()); - } - - public V1alpha2ResourceClassParametersListBuilder(V1alpha2ResourceClassParametersListFluent fluent,V1alpha2ResourceClassParametersList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceClassParametersListBuilder(V1alpha2ResourceClassParametersList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceClassParametersListFluent fluent; - - public V1alpha2ResourceClassParametersList build() { - V1alpha2ResourceClassParametersList buildable = new V1alpha2ResourceClassParametersList(); - 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/V1alpha2ResourceClassParametersListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersListFluent.java deleted file mode 100644 index 551340aa5b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersListFluent.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 V1alpha2ResourceClassParametersListFluent> extends BaseFluent{ - public V1alpha2ResourceClassParametersListFluent() { - } - - public V1alpha2ResourceClassParametersListFluent(V1alpha2ResourceClassParametersList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha2ResourceClassParametersList instance) { - instance = (instance != null ? instance : new V1alpha2ResourceClassParametersList()); - 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,V1alpha2ResourceClassParameters item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClassParametersBuilder builder = new V1alpha2ResourceClassParametersBuilder(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,V1alpha2ResourceClassParameters item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceClassParametersBuilder builder = new V1alpha2ResourceClassParametersBuilder(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.V1alpha2ResourceClassParameters... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2ResourceClassParameters item : items) {V1alpha2ResourceClassParametersBuilder builder = new V1alpha2ResourceClassParametersBuilder(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 (V1alpha2ResourceClassParameters item : items) {V1alpha2ResourceClassParametersBuilder builder = new V1alpha2ResourceClassParametersBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClassParameters... items) { - if (this.items == null) return (A)this; - for (V1alpha2ResourceClassParameters item : items) {V1alpha2ResourceClassParametersBuilder builder = new V1alpha2ResourceClassParametersBuilder(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 (V1alpha2ResourceClassParameters item : items) {V1alpha2ResourceClassParametersBuilder builder = new V1alpha2ResourceClassParametersBuilder(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()) { - V1alpha2ResourceClassParametersBuilder 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 V1alpha2ResourceClassParameters buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha2ResourceClassParameters buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha2ResourceClassParameters buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha2ResourceClassParameters buildMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClassParametersBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha2ResourceClassParametersBuilder 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 (V1alpha2ResourceClassParameters item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha2ResourceClassParameters... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha2ResourceClassParameters 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(V1alpha2ResourceClassParameters item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha2ResourceClassParameters 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; - V1alpha2ResourceClassParametersListFluent that = (V1alpha2ResourceClassParametersListFluent) 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 V1alpha2ResourceClassParametersFluent> implements Nested{ - ItemsNested(int index,V1alpha2ResourceClassParameters item) { - this.index = index; - this.builder = new V1alpha2ResourceClassParametersBuilder(this, item); - } - V1alpha2ResourceClassParametersBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceClassParametersListFluent.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) V1alpha2ResourceClassParametersListFluent.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/V1alpha2ResourceFilterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceFilterBuilder.java deleted file mode 100644 index 36ec8b650e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceFilterBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceFilterBuilder extends V1alpha2ResourceFilterFluent implements VisitableBuilder{ - public V1alpha2ResourceFilterBuilder() { - this(new V1alpha2ResourceFilter()); - } - - public V1alpha2ResourceFilterBuilder(V1alpha2ResourceFilterFluent fluent) { - this(fluent, new V1alpha2ResourceFilter()); - } - - public V1alpha2ResourceFilterBuilder(V1alpha2ResourceFilterFluent fluent,V1alpha2ResourceFilter instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceFilterBuilder(V1alpha2ResourceFilter instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceFilterFluent fluent; - - public V1alpha2ResourceFilter build() { - V1alpha2ResourceFilter buildable = new V1alpha2ResourceFilter(); - buildable.setDriverName(fluent.getDriverName()); - buildable.setNamedResources(fluent.buildNamedResources()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceFilterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceFilterFluent.java deleted file mode 100644 index 9644670b0b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceFilterFluent.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 V1alpha2ResourceFilterFluent> extends BaseFluent{ - public V1alpha2ResourceFilterFluent() { - } - - public V1alpha2ResourceFilterFluent(V1alpha2ResourceFilter instance) { - this.copyInstance(instance); - } - private String driverName; - private V1alpha2NamedResourcesFilterBuilder namedResources; - - protected void copyInstance(V1alpha2ResourceFilter instance) { - instance = (instance != null ? instance : new V1alpha2ResourceFilter()); - if (instance != null) { - this.withDriverName(instance.getDriverName()); - this.withNamedResources(instance.getNamedResources()); - } - } - - 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 V1alpha2NamedResourcesFilter buildNamedResources() { - return this.namedResources != null ? this.namedResources.build() : null; - } - - public A withNamedResources(V1alpha2NamedResourcesFilter namedResources) { - this._visitables.remove("namedResources"); - if (namedResources != null) { - this.namedResources = new V1alpha2NamedResourcesFilterBuilder(namedResources); - this._visitables.get("namedResources").add(this.namedResources); - } else { - this.namedResources = null; - this._visitables.get("namedResources").remove(this.namedResources); - } - return (A) this; - } - - public boolean hasNamedResources() { - return this.namedResources != null; - } - - public NamedResourcesNested withNewNamedResources() { - return new NamedResourcesNested(null); - } - - public NamedResourcesNested withNewNamedResourcesLike(V1alpha2NamedResourcesFilter item) { - return new NamedResourcesNested(item); - } - - public NamedResourcesNested editNamedResources() { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(null)); - } - - public NamedResourcesNested editOrNewNamedResources() { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(new V1alpha2NamedResourcesFilterBuilder().build())); - } - - public NamedResourcesNested editOrNewNamedResourcesLike(V1alpha2NamedResourcesFilter item) { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).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; - V1alpha2ResourceFilterFluent that = (V1alpha2ResourceFilterFluent) o; - if (!java.util.Objects.equals(driverName, that.driverName)) return false; - if (!java.util.Objects.equals(namedResources, that.namedResources)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(driverName, namedResources, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (driverName != null) { sb.append("driverName:"); sb.append(driverName + ","); } - if (namedResources != null) { sb.append("namedResources:"); sb.append(namedResources); } - sb.append("}"); - return sb.toString(); - } - public class NamedResourcesNested extends V1alpha2NamedResourcesFilterFluent> implements Nested{ - NamedResourcesNested(V1alpha2NamedResourcesFilter item) { - this.builder = new V1alpha2NamedResourcesFilterBuilder(this, item); - } - V1alpha2NamedResourcesFilterBuilder builder; - - public N and() { - return (N) V1alpha2ResourceFilterFluent.this.withNamedResources(builder.build()); - } - - public N endNamedResources() { - return and(); - } - - - } - -} \ 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 265c9831f1..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandleBuilder.java +++ /dev/null @@ -1,33 +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()); - buildable.setStructuredData(fluent.buildStructuredData()); - 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 8f81425297..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandleFluent.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 V1alpha2ResourceHandleFluent> extends BaseFluent{ - public V1alpha2ResourceHandleFluent() { - } - - public V1alpha2ResourceHandleFluent(V1alpha2ResourceHandle instance) { - this.copyInstance(instance); - } - private String data; - private String driverName; - private V1alpha2StructuredResourceHandleBuilder structuredData; - - protected void copyInstance(V1alpha2ResourceHandle instance) { - instance = (instance != null ? instance : new V1alpha2ResourceHandle()); - if (instance != null) { - this.withData(instance.getData()); - this.withDriverName(instance.getDriverName()); - this.withStructuredData(instance.getStructuredData()); - } - } - - 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 V1alpha2StructuredResourceHandle buildStructuredData() { - return this.structuredData != null ? this.structuredData.build() : null; - } - - public A withStructuredData(V1alpha2StructuredResourceHandle structuredData) { - this._visitables.remove("structuredData"); - if (structuredData != null) { - this.structuredData = new V1alpha2StructuredResourceHandleBuilder(structuredData); - this._visitables.get("structuredData").add(this.structuredData); - } else { - this.structuredData = null; - this._visitables.get("structuredData").remove(this.structuredData); - } - return (A) this; - } - - public boolean hasStructuredData() { - return this.structuredData != null; - } - - public StructuredDataNested withNewStructuredData() { - return new StructuredDataNested(null); - } - - public StructuredDataNested withNewStructuredDataLike(V1alpha2StructuredResourceHandle item) { - return new StructuredDataNested(item); - } - - public StructuredDataNested editStructuredData() { - return withNewStructuredDataLike(java.util.Optional.ofNullable(buildStructuredData()).orElse(null)); - } - - public StructuredDataNested editOrNewStructuredData() { - return withNewStructuredDataLike(java.util.Optional.ofNullable(buildStructuredData()).orElse(new V1alpha2StructuredResourceHandleBuilder().build())); - } - - public StructuredDataNested editOrNewStructuredDataLike(V1alpha2StructuredResourceHandle item) { - return withNewStructuredDataLike(java.util.Optional.ofNullable(buildStructuredData()).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; - V1alpha2ResourceHandleFluent that = (V1alpha2ResourceHandleFluent) o; - if (!java.util.Objects.equals(data, that.data)) return false; - if (!java.util.Objects.equals(driverName, that.driverName)) return false; - if (!java.util.Objects.equals(structuredData, that.structuredData)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(data, driverName, structuredData, 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 + ","); } - if (structuredData != null) { sb.append("structuredData:"); sb.append(structuredData); } - sb.append("}"); - return sb.toString(); - } - public class StructuredDataNested extends V1alpha2StructuredResourceHandleFluent> implements Nested{ - StructuredDataNested(V1alpha2StructuredResourceHandle item) { - this.builder = new V1alpha2StructuredResourceHandleBuilder(this, item); - } - V1alpha2StructuredResourceHandleBuilder builder; - - public N and() { - return (N) V1alpha2ResourceHandleFluent.this.withStructuredData(builder.build()); - } - - public N endStructuredData() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceRequestBuilder.java deleted file mode 100644 index a0f7430880..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceRequestBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceRequestBuilder extends V1alpha2ResourceRequestFluent implements VisitableBuilder{ - public V1alpha2ResourceRequestBuilder() { - this(new V1alpha2ResourceRequest()); - } - - public V1alpha2ResourceRequestBuilder(V1alpha2ResourceRequestFluent fluent) { - this(fluent, new V1alpha2ResourceRequest()); - } - - public V1alpha2ResourceRequestBuilder(V1alpha2ResourceRequestFluent fluent,V1alpha2ResourceRequest instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceRequestBuilder(V1alpha2ResourceRequest instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceRequestFluent fluent; - - public V1alpha2ResourceRequest build() { - V1alpha2ResourceRequest buildable = new V1alpha2ResourceRequest(); - buildable.setNamedResources(fluent.buildNamedResources()); - buildable.setVendorParameters(fluent.getVendorParameters()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceRequestFluent.java deleted file mode 100644 index 8bf093726e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceRequestFluent.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 V1alpha2ResourceRequestFluent> extends BaseFluent{ - public V1alpha2ResourceRequestFluent() { - } - - public V1alpha2ResourceRequestFluent(V1alpha2ResourceRequest instance) { - this.copyInstance(instance); - } - private V1alpha2NamedResourcesRequestBuilder namedResources; - private Object vendorParameters; - - protected void copyInstance(V1alpha2ResourceRequest instance) { - instance = (instance != null ? instance : new V1alpha2ResourceRequest()); - if (instance != null) { - this.withNamedResources(instance.getNamedResources()); - this.withVendorParameters(instance.getVendorParameters()); - } - } - - public V1alpha2NamedResourcesRequest buildNamedResources() { - return this.namedResources != null ? this.namedResources.build() : null; - } - - public A withNamedResources(V1alpha2NamedResourcesRequest namedResources) { - this._visitables.remove("namedResources"); - if (namedResources != null) { - this.namedResources = new V1alpha2NamedResourcesRequestBuilder(namedResources); - this._visitables.get("namedResources").add(this.namedResources); - } else { - this.namedResources = null; - this._visitables.get("namedResources").remove(this.namedResources); - } - return (A) this; - } - - public boolean hasNamedResources() { - return this.namedResources != null; - } - - public NamedResourcesNested withNewNamedResources() { - return new NamedResourcesNested(null); - } - - public NamedResourcesNested withNewNamedResourcesLike(V1alpha2NamedResourcesRequest item) { - return new NamedResourcesNested(item); - } - - public NamedResourcesNested editNamedResources() { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(null)); - } - - public NamedResourcesNested editOrNewNamedResources() { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(new V1alpha2NamedResourcesRequestBuilder().build())); - } - - public NamedResourcesNested editOrNewNamedResourcesLike(V1alpha2NamedResourcesRequest item) { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(item)); - } - - public Object getVendorParameters() { - return this.vendorParameters; - } - - public A withVendorParameters(Object vendorParameters) { - this.vendorParameters = vendorParameters; - return (A) this; - } - - public boolean hasVendorParameters() { - return this.vendorParameters != 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; - V1alpha2ResourceRequestFluent that = (V1alpha2ResourceRequestFluent) o; - if (!java.util.Objects.equals(namedResources, that.namedResources)) return false; - if (!java.util.Objects.equals(vendorParameters, that.vendorParameters)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(namedResources, vendorParameters, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (namedResources != null) { sb.append("namedResources:"); sb.append(namedResources + ","); } - if (vendorParameters != null) { sb.append("vendorParameters:"); sb.append(vendorParameters); } - sb.append("}"); - return sb.toString(); - } - public class NamedResourcesNested extends V1alpha2NamedResourcesRequestFluent> implements Nested{ - NamedResourcesNested(V1alpha2NamedResourcesRequest item) { - this.builder = new V1alpha2NamedResourcesRequestBuilder(this, item); - } - V1alpha2NamedResourcesRequestBuilder builder; - - public N and() { - return (N) V1alpha2ResourceRequestFluent.this.withNamedResources(builder.build()); - } - - public N endNamedResources() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceBuilder.java deleted file mode 100644 index 54941b8e63..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceSliceBuilder extends V1alpha2ResourceSliceFluent implements VisitableBuilder{ - public V1alpha2ResourceSliceBuilder() { - this(new V1alpha2ResourceSlice()); - } - - public V1alpha2ResourceSliceBuilder(V1alpha2ResourceSliceFluent fluent) { - this(fluent, new V1alpha2ResourceSlice()); - } - - public V1alpha2ResourceSliceBuilder(V1alpha2ResourceSliceFluent fluent,V1alpha2ResourceSlice instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceSliceBuilder(V1alpha2ResourceSlice instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceSliceFluent fluent; - - public V1alpha2ResourceSlice build() { - V1alpha2ResourceSlice buildable = new V1alpha2ResourceSlice(); - buildable.setApiVersion(fluent.getApiVersion()); - buildable.setDriverName(fluent.getDriverName()); - buildable.setKind(fluent.getKind()); - buildable.setMetadata(fluent.buildMetadata()); - buildable.setNamedResources(fluent.buildNamedResources()); - buildable.setNodeName(fluent.getNodeName()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceFluent.java deleted file mode 100644 index 7a84b017d9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceFluent.java +++ /dev/null @@ -1,234 +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 V1alpha2ResourceSliceFluent> extends BaseFluent{ - public V1alpha2ResourceSliceFluent() { - } - - public V1alpha2ResourceSliceFluent(V1alpha2ResourceSlice instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String driverName; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1alpha2NamedResourcesResourcesBuilder namedResources; - private String nodeName; - - protected void copyInstance(V1alpha2ResourceSlice instance) { - instance = (instance != null ? instance : new V1alpha2ResourceSlice()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withDriverName(instance.getDriverName()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withNamedResources(instance.getNamedResources()); - this.withNodeName(instance.getNodeName()); - } - } - - 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 V1alpha2NamedResourcesResources buildNamedResources() { - return this.namedResources != null ? this.namedResources.build() : null; - } - - public A withNamedResources(V1alpha2NamedResourcesResources namedResources) { - this._visitables.remove("namedResources"); - if (namedResources != null) { - this.namedResources = new V1alpha2NamedResourcesResourcesBuilder(namedResources); - this._visitables.get("namedResources").add(this.namedResources); - } else { - this.namedResources = null; - this._visitables.get("namedResources").remove(this.namedResources); - } - return (A) this; - } - - public boolean hasNamedResources() { - return this.namedResources != null; - } - - public NamedResourcesNested withNewNamedResources() { - return new NamedResourcesNested(null); - } - - public NamedResourcesNested withNewNamedResourcesLike(V1alpha2NamedResourcesResources item) { - return new NamedResourcesNested(item); - } - - public NamedResourcesNested editNamedResources() { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(null)); - } - - public NamedResourcesNested editOrNewNamedResources() { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(new V1alpha2NamedResourcesResourcesBuilder().build())); - } - - public NamedResourcesNested editOrNewNamedResourcesLike(V1alpha2NamedResourcesResources item) { - return withNewNamedResourcesLike(java.util.Optional.ofNullable(buildNamedResources()).orElse(item)); - } - - public String getNodeName() { - return this.nodeName; - } - - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; - } - - public boolean hasNodeName() { - return this.nodeName != 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; - V1alpha2ResourceSliceFluent that = (V1alpha2ResourceSliceFluent) 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(namedResources, that.namedResources)) return false; - if (!java.util.Objects.equals(nodeName, that.nodeName)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(apiVersion, driverName, kind, metadata, namedResources, nodeName, 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 (namedResources != null) { sb.append("namedResources:"); sb.append(namedResources + ","); } - if (nodeName != null) { sb.append("nodeName:"); sb.append(nodeName); } - 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) V1alpha2ResourceSliceFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class NamedResourcesNested extends V1alpha2NamedResourcesResourcesFluent> implements Nested{ - NamedResourcesNested(V1alpha2NamedResourcesResources item) { - this.builder = new V1alpha2NamedResourcesResourcesBuilder(this, item); - } - V1alpha2NamedResourcesResourcesBuilder builder; - - public N and() { - return (N) V1alpha2ResourceSliceFluent.this.withNamedResources(builder.build()); - } - - public N endNamedResources() { - return and(); - } - - - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceListBuilder.java deleted file mode 100644 index 918b2b012b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2ResourceSliceListBuilder extends V1alpha2ResourceSliceListFluent implements VisitableBuilder{ - public V1alpha2ResourceSliceListBuilder() { - this(new V1alpha2ResourceSliceList()); - } - - public V1alpha2ResourceSliceListBuilder(V1alpha2ResourceSliceListFluent fluent) { - this(fluent, new V1alpha2ResourceSliceList()); - } - - public V1alpha2ResourceSliceListBuilder(V1alpha2ResourceSliceListFluent fluent,V1alpha2ResourceSliceList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2ResourceSliceListBuilder(V1alpha2ResourceSliceList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2ResourceSliceListFluent fluent; - - public V1alpha2ResourceSliceList build() { - V1alpha2ResourceSliceList buildable = new V1alpha2ResourceSliceList(); - 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/V1alpha2ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceListFluent.java deleted file mode 100644 index 044a6b9374..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceListFluent.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 V1alpha2ResourceSliceListFluent> extends BaseFluent{ - public V1alpha2ResourceSliceListFluent() { - } - - public V1alpha2ResourceSliceListFluent(V1alpha2ResourceSliceList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1alpha2ResourceSliceList instance) { - instance = (instance != null ? instance : new V1alpha2ResourceSliceList()); - 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,V1alpha2ResourceSlice item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceSliceBuilder builder = new V1alpha2ResourceSliceBuilder(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,V1alpha2ResourceSlice item) { - if (this.items == null) {this.items = new ArrayList();} - V1alpha2ResourceSliceBuilder builder = new V1alpha2ResourceSliceBuilder(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.V1alpha2ResourceSlice... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1alpha2ResourceSlice item : items) {V1alpha2ResourceSliceBuilder builder = new V1alpha2ResourceSliceBuilder(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 (V1alpha2ResourceSlice item : items) {V1alpha2ResourceSliceBuilder builder = new V1alpha2ResourceSliceBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1alpha2ResourceSlice... items) { - if (this.items == null) return (A)this; - for (V1alpha2ResourceSlice item : items) {V1alpha2ResourceSliceBuilder builder = new V1alpha2ResourceSliceBuilder(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 (V1alpha2ResourceSlice item : items) {V1alpha2ResourceSliceBuilder builder = new V1alpha2ResourceSliceBuilder(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()) { - V1alpha2ResourceSliceBuilder 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 V1alpha2ResourceSlice buildItem(int index) { - return this.items.get(index).build(); - } - - public V1alpha2ResourceSlice buildFirstItem() { - return this.items.get(0).build(); - } - - public V1alpha2ResourceSlice buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1alpha2ResourceSlice buildMatchingItem(Predicate predicate) { - for (V1alpha2ResourceSliceBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha2ResourceSliceBuilder 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 (V1alpha2ResourceSlice item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1alpha2ResourceSlice... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1alpha2ResourceSlice 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(V1alpha2ResourceSlice item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1alpha2ResourceSlice 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; - V1alpha2ResourceSliceListFluent that = (V1alpha2ResourceSliceListFluent) 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 V1alpha2ResourceSliceFluent> implements Nested{ - ItemsNested(int index,V1alpha2ResourceSlice item) { - this.index = index; - this.builder = new V1alpha2ResourceSliceBuilder(this, item); - } - V1alpha2ResourceSliceBuilder builder; - int index; - - public N and() { - return (N) V1alpha2ResourceSliceListFluent.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) V1alpha2ResourceSliceListFluent.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/V1alpha2StructuredResourceHandleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2StructuredResourceHandleBuilder.java deleted file mode 100644 index b2eebce7dc..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2StructuredResourceHandleBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2StructuredResourceHandleBuilder extends V1alpha2StructuredResourceHandleFluent implements VisitableBuilder{ - public V1alpha2StructuredResourceHandleBuilder() { - this(new V1alpha2StructuredResourceHandle()); - } - - public V1alpha2StructuredResourceHandleBuilder(V1alpha2StructuredResourceHandleFluent fluent) { - this(fluent, new V1alpha2StructuredResourceHandle()); - } - - public V1alpha2StructuredResourceHandleBuilder(V1alpha2StructuredResourceHandleFluent fluent,V1alpha2StructuredResourceHandle instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2StructuredResourceHandleBuilder(V1alpha2StructuredResourceHandle instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2StructuredResourceHandleFluent fluent; - - public V1alpha2StructuredResourceHandle build() { - V1alpha2StructuredResourceHandle buildable = new V1alpha2StructuredResourceHandle(); - buildable.setNodeName(fluent.getNodeName()); - buildable.setResults(fluent.buildResults()); - buildable.setVendorClaimParameters(fluent.getVendorClaimParameters()); - buildable.setVendorClassParameters(fluent.getVendorClassParameters()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2StructuredResourceHandleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2StructuredResourceHandleFluent.java deleted file mode 100644 index 464575388a..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2StructuredResourceHandleFluent.java +++ /dev/null @@ -1,276 +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 V1alpha2StructuredResourceHandleFluent> extends BaseFluent{ - public V1alpha2StructuredResourceHandleFluent() { - } - - public V1alpha2StructuredResourceHandleFluent(V1alpha2StructuredResourceHandle instance) { - this.copyInstance(instance); - } - private String nodeName; - private ArrayList results; - private Object vendorClaimParameters; - private Object vendorClassParameters; - - protected void copyInstance(V1alpha2StructuredResourceHandle instance) { - instance = (instance != null ? instance : new V1alpha2StructuredResourceHandle()); - if (instance != null) { - this.withNodeName(instance.getNodeName()); - this.withResults(instance.getResults()); - this.withVendorClaimParameters(instance.getVendorClaimParameters()); - this.withVendorClassParameters(instance.getVendorClassParameters()); - } - } - - public String getNodeName() { - return this.nodeName; - } - - public A withNodeName(String nodeName) { - this.nodeName = nodeName; - return (A) this; - } - - public boolean hasNodeName() { - return this.nodeName != null; - } - - public A addToResults(int index,V1alpha2DriverAllocationResult item) { - if (this.results == null) {this.results = new ArrayList();} - V1alpha2DriverAllocationResultBuilder builder = new V1alpha2DriverAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); results.add(builder); } else { _visitables.get("results").add(index, builder); results.add(index, builder);} - return (A)this; - } - - public A setToResults(int index,V1alpha2DriverAllocationResult item) { - if (this.results == null) {this.results = new ArrayList();} - V1alpha2DriverAllocationResultBuilder builder = new V1alpha2DriverAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { _visitables.get("results").add(builder); results.add(builder); } else { _visitables.get("results").set(index, builder); results.set(index, builder);} - return (A)this; - } - - public A addToResults(io.kubernetes.client.openapi.models.V1alpha2DriverAllocationResult... items) { - if (this.results == null) {this.results = new ArrayList();} - for (V1alpha2DriverAllocationResult item : items) {V1alpha2DriverAllocationResultBuilder builder = new V1alpha2DriverAllocationResultBuilder(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 (V1alpha2DriverAllocationResult item : items) {V1alpha2DriverAllocationResultBuilder builder = new V1alpha2DriverAllocationResultBuilder(item);_visitables.get("results").add(builder);this.results.add(builder);} return (A)this; - } - - public A removeFromResults(io.kubernetes.client.openapi.models.V1alpha2DriverAllocationResult... items) { - if (this.results == null) return (A)this; - for (V1alpha2DriverAllocationResult item : items) {V1alpha2DriverAllocationResultBuilder builder = new V1alpha2DriverAllocationResultBuilder(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 (V1alpha2DriverAllocationResult item : items) {V1alpha2DriverAllocationResultBuilder builder = new V1alpha2DriverAllocationResultBuilder(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()) { - V1alpha2DriverAllocationResultBuilder 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 V1alpha2DriverAllocationResult buildResult(int index) { - return this.results.get(index).build(); - } - - public V1alpha2DriverAllocationResult buildFirstResult() { - return this.results.get(0).build(); - } - - public V1alpha2DriverAllocationResult buildLastResult() { - return this.results.get(results.size() - 1).build(); - } - - public V1alpha2DriverAllocationResult buildMatchingResult(Predicate predicate) { - for (V1alpha2DriverAllocationResultBuilder item : results) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingResult(Predicate predicate) { - for (V1alpha2DriverAllocationResultBuilder 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 (V1alpha2DriverAllocationResult item : results) { - this.addToResults(item); - } - } else { - this.results = null; - } - return (A) this; - } - - public A withResults(io.kubernetes.client.openapi.models.V1alpha2DriverAllocationResult... results) { - if (this.results != null) { - this.results.clear(); - _visitables.remove("results"); - } - if (results != null) { - for (V1alpha2DriverAllocationResult 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(V1alpha2DriverAllocationResult item) { - return new ResultsNested(-1, item); - } - - public ResultsNested setNewResultLike(int index,V1alpha2DriverAllocationResult 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 V1alpha2DriverAllocationResultFluent> implements Nested{ - ResultsNested(int index,V1alpha2DriverAllocationResult item) { - this.index = index; - this.builder = new V1alpha2DriverAllocationResultBuilder(this, item); - } - V1alpha2DriverAllocationResultBuilder builder; - int index; - - public N and() { - return (N) V1alpha2StructuredResourceHandleFluent.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/V1alpha2VendorParametersBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2VendorParametersBuilder.java deleted file mode 100644 index fabdd97cb7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2VendorParametersBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1alpha2VendorParametersBuilder extends V1alpha2VendorParametersFluent implements VisitableBuilder{ - public V1alpha2VendorParametersBuilder() { - this(new V1alpha2VendorParameters()); - } - - public V1alpha2VendorParametersBuilder(V1alpha2VendorParametersFluent fluent) { - this(fluent, new V1alpha2VendorParameters()); - } - - public V1alpha2VendorParametersBuilder(V1alpha2VendorParametersFluent fluent,V1alpha2VendorParameters instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha2VendorParametersBuilder(V1alpha2VendorParameters instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1alpha2VendorParametersFluent fluent; - - public V1alpha2VendorParameters build() { - V1alpha2VendorParameters buildable = new V1alpha2VendorParameters(); - buildable.setDriverName(fluent.getDriverName()); - buildable.setParameters(fluent.getParameters()); - return buildable; - } - - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2VendorParametersFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2VendorParametersFluent.java deleted file mode 100644 index 9e00a6abe9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2VendorParametersFluent.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 V1alpha2VendorParametersFluent> extends BaseFluent{ - public V1alpha2VendorParametersFluent() { - } - - public V1alpha2VendorParametersFluent(V1alpha2VendorParameters instance) { - this.copyInstance(instance); - } - private String driverName; - private Object parameters; - - protected void copyInstance(V1alpha2VendorParameters instance) { - instance = (instance != null ? instance : new V1alpha2VendorParameters()); - if (instance != null) { - this.withDriverName(instance.getDriverName()); - this.withParameters(instance.getParameters()); - } - } - - 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 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; - V1alpha2VendorParametersFluent that = (V1alpha2VendorParametersFluent) o; - if (!java.util.Objects.equals(driverName, that.driverName)) return false; - if (!java.util.Objects.equals(parameters, that.parameters)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(driverName, parameters, super.hashCode()); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (driverName != null) { sb.append("driverName:"); sb.append(driverName + ","); } - 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/V1alpha3DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java new file mode 100644 index 0000000000..c59b6a48e7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3DeviceTaintBuilder extends V1alpha3DeviceTaintFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintFluent fluent; + + public V1alpha3DeviceTaintBuilder() { + this(new V1alpha3DeviceTaint()); + } + + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaintFluent fluent) { + this(fluent, new V1alpha3DeviceTaint()); + } + + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3DeviceTaintBuilder(V1alpha3DeviceTaintFluent fluent,V1alpha3DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..22f7c3d970 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java @@ -0,0 +1,147 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + public V1alpha3DeviceTaintFluent() { + } + + public V1alpha3DeviceTaintFluent(V1alpha3DeviceTaint instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3DeviceTaintFluent that = (V1alpha3DeviceTaintFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(effect, key, timeAdded, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + +} \ 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..8f04cc211c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3DeviceTaintRuleBuilder extends V1alpha3DeviceTaintRuleFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintRuleFluent fluent; + + public V1alpha3DeviceTaintRuleBuilder() { + this(new V1alpha3DeviceTaintRule()); + } + + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRuleFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRule()); + } + + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleBuilder(V1alpha3DeviceTaintRuleFluent fluent,V1alpha3DeviceTaintRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintRule build() { + V1alpha3DeviceTaintRule buildable = new V1alpha3DeviceTaintRule(); + 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/V1alpha3DeviceTaintRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java new file mode 100644 index 0000000000..398f543708 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java @@ -0,0 +1,302 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3DeviceTaintRuleSpecBuilder spec; + private V1alpha3DeviceTaintRuleStatusBuilder status; + + public V1alpha3DeviceTaintRuleFluent() { + } + + public V1alpha3DeviceTaintRuleFluent(V1alpha3DeviceTaintRule instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha3DeviceTaintRuleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1alpha3DeviceTaintRuleStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + 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()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha3DeviceTaintRuleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha3DeviceTaintRuleStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1alpha3DeviceTaintRuleStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3DeviceTaintRuleFluent that = (V1alpha3DeviceTaintRuleFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3DeviceTaintRuleSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1alpha3DeviceTaintRuleStatus item) { + return new StatusNested(item); + } + + 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 A withStatus(V1alpha3DeviceTaintRuleStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha3DeviceTaintRuleStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha3DeviceTaintRuleFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1alpha3DeviceTaintRuleSpecFluent> implements Nested{ + + V1alpha3DeviceTaintRuleSpecBuilder builder; + + SpecNested(V1alpha3DeviceTaintRuleSpec item) { + this.builder = new V1alpha3DeviceTaintRuleSpecBuilder(this, item); + } + + public N and() { + return (N) V1alpha3DeviceTaintRuleFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1alpha3DeviceTaintRuleStatusFluent> implements Nested{ + + V1alpha3DeviceTaintRuleStatusBuilder builder; + + StatusNested(V1alpha3DeviceTaintRuleStatus item) { + this.builder = new V1alpha3DeviceTaintRuleStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha3DeviceTaintRuleFluent.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/V1alpha3DeviceTaintRuleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java new file mode 100644 index 0000000000..96e479f422 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3DeviceTaintRuleListBuilder extends V1alpha3DeviceTaintRuleListFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintRuleListFluent fluent; + + public V1alpha3DeviceTaintRuleListBuilder() { + this(new V1alpha3DeviceTaintRuleList()); + } + + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleListFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRuleList()); + } + + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleListBuilder(V1alpha3DeviceTaintRuleListFluent fluent,V1alpha3DeviceTaintRuleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..2b11a10ad7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1alpha3DeviceTaintRuleListFluent() { + } + + public V1alpha3DeviceTaintRuleListFluent(V1alpha3DeviceTaintRuleList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3DeviceTaintRule item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1alpha3DeviceTaintRule buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha3DeviceTaintRule buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3DeviceTaintRuleListFluent that = (V1alpha3DeviceTaintRuleListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1alpha3DeviceTaintRule item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1alpha3DeviceTaintRuleFluent> implements Nested{ + + V1alpha3DeviceTaintRuleBuilder builder; + int index; + + ItemsNested(int index,V1alpha3DeviceTaintRule item) { + this.index = index; + this.builder = new V1alpha3DeviceTaintRuleBuilder(this, item); + } + + public N and() { + return (N) V1alpha3DeviceTaintRuleListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..24ef7eae07 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3DeviceTaintRuleSpecBuilder extends V1alpha3DeviceTaintRuleSpecFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintRuleSpecFluent fluent; + + public V1alpha3DeviceTaintRuleSpecBuilder() { + this(new V1alpha3DeviceTaintRuleSpec()); + } + + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpecFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRuleSpec()); + } + + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleSpecBuilder(V1alpha3DeviceTaintRuleSpecFluent fluent,V1alpha3DeviceTaintRuleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..33c1d520ad --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java @@ -0,0 +1,189 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleSpecFluent> extends BaseFluent{ + + private V1alpha3DeviceTaintSelectorBuilder deviceSelector; + private V1alpha3DeviceTaintBuilder taint; + + public V1alpha3DeviceTaintRuleSpecFluent() { + } + + public V1alpha3DeviceTaintRuleSpecFluent(V1alpha3DeviceTaintRuleSpec instance) { + this.copyInstance(instance); + } + + public V1alpha3DeviceTaintSelector buildDeviceSelector() { + return this.deviceSelector != null ? this.deviceSelector.build() : null; + } + + public V1alpha3DeviceTaint buildTaint() { + return this.taint != null ? this.taint.build() : null; + } + + protected void copyInstance(V1alpha3DeviceTaintRuleSpec instance) { + instance = instance != null ? instance : new V1alpha3DeviceTaintRuleSpec(); + if (instance != null) { + this.withDeviceSelector(instance.getDeviceSelector()); + this.withTaint(instance.getTaint()); + } + } + + public DeviceSelectorNested editDeviceSelector() { + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(null)); + } + + public DeviceSelectorNested editOrNewDeviceSelector() { + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(new V1alpha3DeviceTaintSelectorBuilder().build())); + } + + public DeviceSelectorNested editOrNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(item)); + } + + public TaintNested editOrNewTaint() { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(new V1alpha3DeviceTaintBuilder().build())); + } + + public TaintNested editOrNewTaintLike(V1alpha3DeviceTaint item) { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(item)); + } + + public TaintNested editTaint() { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3DeviceTaintRuleSpecFluent that = (V1alpha3DeviceTaintRuleSpecFluent) o; + if (!(Objects.equals(deviceSelector, that.deviceSelector))) { + return false; + } + if (!(Objects.equals(taint, that.taint))) { + return false; + } + return true; + } + + public boolean hasDeviceSelector() { + return this.deviceSelector != null; + } + + public boolean hasTaint() { + return this.taint != null; + } + + public int hashCode() { + return Objects.hash(deviceSelector, taint); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(deviceSelector == null)) { + sb.append("deviceSelector:"); + sb.append(deviceSelector); + sb.append(","); + } + if (!(taint == null)) { + sb.append("taint:"); + sb.append(taint); + } + sb.append("}"); + return sb.toString(); + } + + 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 DeviceSelectorNested withNewDeviceSelector() { + return new DeviceSelectorNested(null); + } + + public DeviceSelectorNested withNewDeviceSelectorLike(V1alpha3DeviceTaintSelector item) { + return new DeviceSelectorNested(item); + } + + public TaintNested withNewTaint() { + return new TaintNested(null); + } + + public TaintNested withNewTaintLike(V1alpha3DeviceTaint item) { + return new TaintNested(item); + } + + 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 class DeviceSelectorNested extends V1alpha3DeviceTaintSelectorFluent> implements Nested{ + + V1alpha3DeviceTaintSelectorBuilder builder; + + DeviceSelectorNested(V1alpha3DeviceTaintSelector item) { + this.builder = new V1alpha3DeviceTaintSelectorBuilder(this, item); + } + + public N and() { + return (N) V1alpha3DeviceTaintRuleSpecFluent.this.withDeviceSelector(builder.build()); + } + + public N endDeviceSelector() { + return and(); + } + + } + public class TaintNested extends V1alpha3DeviceTaintFluent> implements Nested{ + + V1alpha3DeviceTaintBuilder builder; + + TaintNested(V1alpha3DeviceTaint item) { + this.builder = new V1alpha3DeviceTaintBuilder(this, item); + } + + 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/V1alpha3DeviceTaintRuleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java new file mode 100644 index 0000000000..c366c604e5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3DeviceTaintRuleStatusBuilder extends V1alpha3DeviceTaintRuleStatusFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintRuleStatusFluent fluent; + + public V1alpha3DeviceTaintRuleStatusBuilder() { + this(new V1alpha3DeviceTaintRuleStatus()); + } + + public V1alpha3DeviceTaintRuleStatusBuilder(V1alpha3DeviceTaintRuleStatusFluent fluent) { + this(fluent, new V1alpha3DeviceTaintRuleStatus()); + } + + public V1alpha3DeviceTaintRuleStatusBuilder(V1alpha3DeviceTaintRuleStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleStatusBuilder(V1alpha3DeviceTaintRuleStatusFluent fluent,V1alpha3DeviceTaintRuleStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintRuleStatus build() { + V1alpha3DeviceTaintRuleStatus buildable = new V1alpha3DeviceTaintRuleStatus(); + buildable.setConditions(fluent.buildConditions()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java new file mode 100644 index 0000000000..3ceeed1e7c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java @@ -0,0 +1,297 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintRuleStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + + public V1alpha3DeviceTaintRuleStatusFluent() { + } + + public V1alpha3DeviceTaintRuleStatusFluent(V1alpha3DeviceTaintRuleStatus instance) { + this.copyInstance(instance); + } + + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(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 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 V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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; + } + + protected void copyInstance(V1alpha3DeviceTaintRuleStatus instance) { + instance = instance != null ? instance : new V1alpha3DeviceTaintRuleStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3DeviceTaintRuleStatusFluent that = (V1alpha3DeviceTaintRuleStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(conditions); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1alpha3DeviceTaintRuleStatusFluent.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/V1alpha3DeviceTaintSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java new file mode 100644 index 0000000000..ea5c172864 --- /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; +import java.lang.Object; +public class V1alpha3DeviceTaintSelectorBuilder extends V1alpha3DeviceTaintSelectorFluent implements VisitableBuilder{ + + V1alpha3DeviceTaintSelectorFluent fluent; + + public V1alpha3DeviceTaintSelectorBuilder() { + this(new V1alpha3DeviceTaintSelector()); + } + + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelectorFluent fluent) { + this(fluent, new V1alpha3DeviceTaintSelector()); + } + + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3DeviceTaintSelectorBuilder(V1alpha3DeviceTaintSelectorFluent fluent,V1alpha3DeviceTaintSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3DeviceTaintSelector build() { + V1alpha3DeviceTaintSelector buildable = new V1alpha3DeviceTaintSelector(); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + 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..edeb341b8a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java @@ -0,0 +1,123 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3DeviceTaintSelectorFluent> extends BaseFluent{ + + private String device; + private String driver; + private String pool; + + public V1alpha3DeviceTaintSelectorFluent() { + } + + public V1alpha3DeviceTaintSelectorFluent(V1alpha3DeviceTaintSelector instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3DeviceTaintSelector instance) { + instance = instance != null ? instance : new V1alpha3DeviceTaintSelector(); + if (instance != null) { + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3DeviceTaintSelectorFluent that = (V1alpha3DeviceTaintSelectorFluent) o; + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + return true; + } + + public String getDevice() { + return this.device; + } + + public String getDriver() { + return this.driver; + } + + public String getPool() { + return this.pool; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasPool() { + return this.pool != null; + } + + public int hashCode() { + return Objects.hash(device, driver, pool); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(device == null)) { + sb.append("device:"); + sb.append(device); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + } + sb.append("}"); + return sb.toString(); + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + +} \ 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..821a4b6040 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1AllocatedDeviceStatusBuilder extends V1beta1AllocatedDeviceStatusFluent implements VisitableBuilder{ + + V1beta1AllocatedDeviceStatusFluent fluent; + + public V1beta1AllocatedDeviceStatusBuilder() { + this(new V1beta1AllocatedDeviceStatus()); + } + + public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatusFluent fluent) { + this(fluent, new V1beta1AllocatedDeviceStatus()); + } + + public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1AllocatedDeviceStatusBuilder(V1beta1AllocatedDeviceStatusFluent fluent,V1beta1AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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()); + buildable.setShareID(fluent.getShareID()); + 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..46b1d40948 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java @@ -0,0 +1,480 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1AllocatedDeviceStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private Object data; + private String device; + private String driver; + private V1beta1NetworkDeviceDataBuilder networkData; + private String pool; + private String shareID; + + public V1beta1AllocatedDeviceStatusFluent() { + } + + public V1beta1AllocatedDeviceStatusFluent(V1beta1AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(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 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 V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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 V1beta1NetworkDeviceData buildNetworkData() { + return this.networkData != null ? this.networkData.build() : null; + } + + 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()); + this.withShareID(instance.getShareID()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public NetworkDataNested editNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); + } + + public NetworkDataNested editOrNewNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1beta1NetworkDeviceDataBuilder().build())); + } + + public NetworkDataNested editOrNewNetworkDataLike(V1beta1NetworkDeviceData item) { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1AllocatedDeviceStatusFluent that = (V1beta1AllocatedDeviceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(networkData, that.networkData))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + return true; + } + + public Object getData() { + return this.data; + } + + public String getDevice() { + return this.device; + } + + public String getDriver() { + return this.driver; + } + + public String getPool() { + return this.pool; + } + + public String getShareID() { + return this.shareID; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasData() { + return this.data != null; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNetworkData() { + return this.networkData != null; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasShareID() { + return this.shareID != null; + } + + public int hashCode() { + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(data == null)) { + sb.append("data:"); + sb.append(data); + sb.append(","); + } + if (!(device == null)) { + sb.append("device:"); + sb.append(device); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(networkData == null)) { + sb.append("networkData:"); + sb.append(networkData); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withData(Object data) { + this.data = data; + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withNetworkData(V1beta1NetworkDeviceData networkData) { + this._visitables.remove("networkData"); + if (networkData != null) { + this.networkData = new V1beta1NetworkDeviceDataBuilder(networkData); + this._visitables.get("networkData").add(this.networkData); + } else { + this.networkData = null; + this._visitables.get("networkData").remove(this.networkData); + } + return (A) this; + } + + public NetworkDataNested withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1beta1NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1beta1AllocatedDeviceStatusFluent.this.setToConditions(index, builder.build()); + } + + public N endCondition() { + return and(); + } + + } + public class NetworkDataNested extends V1beta1NetworkDeviceDataFluent> implements Nested{ + + V1beta1NetworkDeviceDataBuilder builder; + + NetworkDataNested(V1beta1NetworkDeviceData item) { + this.builder = new V1beta1NetworkDeviceDataBuilder(this, item); + } + + 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..a218494575 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1AllocationResultBuilder extends V1beta1AllocationResultFluent implements VisitableBuilder{ + + V1beta1AllocationResultFluent fluent; + + public V1beta1AllocationResultBuilder() { + this(new V1beta1AllocationResult()); + } + + public V1beta1AllocationResultBuilder(V1beta1AllocationResultFluent fluent) { + this(fluent, new V1beta1AllocationResult()); + } + + public V1beta1AllocationResultBuilder(V1beta1AllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1AllocationResultBuilder(V1beta1AllocationResultFluent fluent,V1beta1AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1AllocationResult build() { + V1beta1AllocationResult buildable = new V1beta1AllocationResult(); + buildable.setAllocationTimestamp(fluent.getAllocationTimestamp()); + 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..7d59d1d10d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java @@ -0,0 +1,213 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1AllocationResultFluent> extends BaseFluent{ + + private OffsetDateTime allocationTimestamp; + private V1beta1DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + + public V1beta1AllocationResultFluent() { + } + + public V1beta1AllocationResultFluent(V1beta1AllocationResult instance) { + this.copyInstance(instance); + } + + public V1beta1DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + protected void copyInstance(V1beta1AllocationResult instance) { + instance = instance != null ? instance : new V1beta1AllocationResult(); + if (instance != null) { + this.withAllocationTimestamp(instance.getAllocationTimestamp()); + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public DevicesNested editDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta1DeviceAllocationResultBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta1DeviceAllocationResult item) { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1AllocationResultFluent that = (V1beta1AllocationResultFluent) o; + if (!(Objects.equals(allocationTimestamp, that.allocationTimestamp))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + return true; + } + + public OffsetDateTime getAllocationTimestamp() { + return this.allocationTimestamp; + } + + public boolean hasAllocationTimestamp() { + return this.allocationTimestamp != null; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public int hashCode() { + return Objects.hash(allocationTimestamp, devices, nodeSelector); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationTimestamp == null)) { + sb.append("allocationTimestamp:"); + sb.append(allocationTimestamp); + sb.append(","); + } + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return (A) this; + } + + 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 DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta1DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + 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 class DevicesNested extends V1beta1DeviceAllocationResultFluent> implements Nested{ + + V1beta1DeviceAllocationResultBuilder builder; + + DevicesNested(V1beta1DeviceAllocationResult item) { + this.builder = new V1beta1DeviceAllocationResultBuilder(this, item); + } + + public N and() { + return (N) V1beta1AllocationResultFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + 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/V1beta1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java new file mode 100644 index 0000000000..1b60a69197 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ApplyConfigurationBuilder extends V1beta1ApplyConfigurationFluent implements VisitableBuilder{ + + V1beta1ApplyConfigurationFluent fluent; + + public V1beta1ApplyConfigurationBuilder() { + this(new V1beta1ApplyConfiguration()); + } + + public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfigurationFluent fluent) { + this(fluent, new V1beta1ApplyConfiguration()); + } + + public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ApplyConfigurationBuilder(V1beta1ApplyConfigurationFluent fluent,V1beta1ApplyConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1ApplyConfiguration build() { + V1beta1ApplyConfiguration buildable = new V1beta1ApplyConfiguration(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java new file mode 100644 index 0000000000..6246154f4d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java @@ -0,0 +1,77 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ApplyConfigurationFluent> extends BaseFluent{ + + private String expression; + + public V1beta1ApplyConfigurationFluent() { + } + + public V1beta1ApplyConfigurationFluent(V1beta1ApplyConfiguration instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1ApplyConfiguration instance) { + instance = instance != null ? instance : new V1beta1ApplyConfiguration(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ApplyConfigurationFluent that = (V1beta1ApplyConfigurationFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationBuilder.java deleted file mode 100644 index 163138b010..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1AuditAnnotationBuilder extends V1beta1AuditAnnotationFluent implements VisitableBuilder{ - public V1beta1AuditAnnotationBuilder() { - this(new V1beta1AuditAnnotation()); - } - - public V1beta1AuditAnnotationBuilder(V1beta1AuditAnnotationFluent fluent) { - this(fluent, new V1beta1AuditAnnotation()); - } - - public V1beta1AuditAnnotationBuilder(V1beta1AuditAnnotationFluent fluent,V1beta1AuditAnnotation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1AuditAnnotationBuilder(V1beta1AuditAnnotation instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1AuditAnnotationFluent fluent; - - public V1beta1AuditAnnotation build() { - V1beta1AuditAnnotation buildable = new V1beta1AuditAnnotation(); - 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/V1beta1AuditAnnotationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationFluent.java deleted file mode 100644 index 9753edff26..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotationFluent.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 V1beta1AuditAnnotationFluent> extends BaseFluent{ - public V1beta1AuditAnnotationFluent() { - } - - public V1beta1AuditAnnotationFluent(V1beta1AuditAnnotation instance) { - this.copyInstance(instance); - } - private String key; - private String valueExpression; - - protected void copyInstance(V1beta1AuditAnnotation instance) { - instance = (instance != null ? instance : new V1beta1AuditAnnotation()); - 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; - V1beta1AuditAnnotationFluent that = (V1beta1AuditAnnotationFluent) 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/V1beta1BasicDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java new file mode 100644 index 0000000000..67080dbafb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java @@ -0,0 +1,43 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1BasicDeviceBuilder extends V1beta1BasicDeviceFluent implements VisitableBuilder{ + + V1beta1BasicDeviceFluent fluent; + + public V1beta1BasicDeviceBuilder() { + this(new V1beta1BasicDevice()); + } + + public V1beta1BasicDeviceBuilder(V1beta1BasicDeviceFluent fluent) { + this(fluent, new V1beta1BasicDevice()); + } + + public V1beta1BasicDeviceBuilder(V1beta1BasicDevice instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1BasicDeviceBuilder(V1beta1BasicDeviceFluent fluent,V1beta1BasicDevice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1BasicDevice build() { + V1beta1BasicDevice buildable = new V1beta1BasicDevice(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAllowMultipleAllocations(fluent.getAllowMultipleAllocations()); + buildable.setAttributes(fluent.getAttributes()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setBindsToNode(fluent.getBindsToNode()); + 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..2917d14716 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java @@ -0,0 +1,1109 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1BasicDeviceFluent> extends BaseFluent{ + + private Boolean allNodes; + private Boolean allowMultipleAllocations; + private Map attributes; + private List bindingConditions; + private List bindingFailureConditions; + private Boolean bindsToNode; + private Map capacity; + private ArrayList consumesCounters; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; + + public V1beta1BasicDeviceFluent() { + } + + public V1beta1BasicDeviceFluent(V1beta1BasicDevice instance) { + this.copyInstance(instance); + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + 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 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 ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1beta1DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1beta1DeviceTaint item) { + return new TaintsNested(-1, item); + } + + 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 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 addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + 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 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 addToConsumesCounters(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 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 addToTaints(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 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 V1beta1DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1beta1DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1beta1DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1beta1DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1beta1DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1beta1DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1beta1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1beta1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public V1beta1DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + protected void copyInstance(V1beta1BasicDevice instance) { + instance = instance != null ? instance : new V1beta1BasicDevice(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); + this.withAttributes(instance.getAttributes()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withBindsToNode(instance.getBindsToNode()); + this.withCapacity(instance.getCapacity()); + this.withConsumesCounters(instance.getConsumesCounters()); + this.withNodeName(instance.getNodeName()); + this.withNodeSelector(instance.getNodeSelector()); + this.withTaints(instance.getTaints()); + } + } + + public ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(0, this.buildTaint(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < consumesCounters.size();i++) { + if (predicate.test(consumesCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i = 0;i < taints.size();i++) { + if (predicate.test(taints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1BasicDeviceFluent that = (V1beta1BasicDeviceFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { + return false; + } + if (!(Objects.equals(attributes, that.attributes))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(bindsToNode, that.bindsToNode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(consumesCounters, that.consumesCounters))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(taints, that.taints))) { + return false; + } + return true; + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public Boolean getAllowMultipleAllocations() { + return this.allowMultipleAllocations; + } + + public Map getAttributes() { + return this.attributes; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public Boolean getBindsToNode() { + return this.bindsToNode; + } + + public Map getCapacity() { + return this.capacity; + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getNodeName() { + return this.nodeName; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public boolean hasAllowMultipleAllocations() { + return this.allowMultipleAllocations != null; + } + + public boolean hasAttributes() { + return this.attributes != null; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public boolean hasBindsToNode() { + return this.bindsToNode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1beta1DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1beta1DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public boolean hasTaints() { + return this.taints != null && !(this.taints.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeName, nodeSelector, taints); + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + 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 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 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 A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + 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 A removeFromConsumesCounters(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 removeFromTaints(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 removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) { + return (A) this; + } + Iterator each = consumesCounters.iterator(); + 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 A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) { + return (A) this; + } + Iterator each = taints.iterator(); + 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 ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta1DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public TaintsNested setNewTaintLike(int index,V1beta1DeviceTaint item) { + return new TaintsNested(index, item); + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allNodes == null)) { + sb.append("allNodes:"); + sb.append(allNodes); + sb.append(","); + } + if (!(allowMultipleAllocations == null)) { + sb.append("allowMultipleAllocations:"); + sb.append(allowMultipleAllocations); + sb.append(","); + } + if (!(attributes == null) && !(attributes.isEmpty())) { + sb.append("attributes:"); + sb.append(attributes); + sb.append(","); + } + if (!(bindingConditions == null) && !(bindingConditions.isEmpty())) { + sb.append("bindingConditions:"); + sb.append(bindingConditions); + sb.append(","); + } + if (!(bindingFailureConditions == null) && !(bindingFailureConditions.isEmpty())) { + sb.append("bindingFailureConditions:"); + sb.append(bindingFailureConditions); + sb.append(","); + } + if (!(bindsToNode == null)) { + sb.append("bindsToNode:"); + sb.append(bindsToNode); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(consumesCounters == null) && !(consumesCounters.isEmpty())) { + sb.append("consumesCounters:"); + sb.append(consumesCounters); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(taints == null) && !(taints.isEmpty())) { + sb.append("taints:"); + sb.append(taints); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllNodes() { + return withAllNodes(true); + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public A withAllowMultipleAllocations() { + return withAllowMultipleAllocations(true); + } + + public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return (A) this; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public A withBindsToNode() { + return withBindsToNode(true); + } + + public A withBindsToNode(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return (A) this; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + 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(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 NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + 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 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(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 class ConsumesCountersNested extends V1beta1DeviceCounterConsumptionFluent> implements Nested{ + + V1beta1DeviceCounterConsumptionBuilder builder; + int index; + + ConsumesCountersNested(int index,V1beta1DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1beta1DeviceCounterConsumptionBuilder(this, item); + } + + public N and() { + return (N) V1beta1BasicDeviceFluent.this.setToConsumesCounters(index, builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + public N and() { + return (N) V1beta1BasicDeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + } + public class TaintsNested extends V1beta1DeviceTaintFluent> implements Nested{ + + V1beta1DeviceTaintBuilder builder; + int index; + + TaintsNested(int index,V1beta1DeviceTaint item) { + this.index = index; + this.builder = new V1beta1DeviceTaintBuilder(this, item); + } + + 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..8ace464ec7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1CELDeviceSelectorBuilder extends V1beta1CELDeviceSelectorFluent implements VisitableBuilder{ + + V1beta1CELDeviceSelectorFluent fluent; + + public V1beta1CELDeviceSelectorBuilder() { + this(new V1beta1CELDeviceSelector()); + } + + public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelectorFluent fluent) { + this(fluent, new V1beta1CELDeviceSelector()); + } + + public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CELDeviceSelectorBuilder(V1beta1CELDeviceSelectorFluent fluent,V1beta1CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..01e019c341 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java @@ -0,0 +1,77 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CELDeviceSelectorFluent> extends BaseFluent{ + + private String expression; + + public V1beta1CELDeviceSelectorFluent() { + } + + public V1beta1CELDeviceSelectorFluent(V1beta1CELDeviceSelector instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1CELDeviceSelector instance) { + instance = instance != null ? instance : new V1beta1CELDeviceSelector(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CELDeviceSelectorFluent that = (V1beta1CELDeviceSelectorFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java new file mode 100644 index 0000000000..5598577098 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1CapacityRequestPolicyBuilder extends V1beta1CapacityRequestPolicyFluent implements VisitableBuilder{ + + V1beta1CapacityRequestPolicyFluent fluent; + + public V1beta1CapacityRequestPolicyBuilder() { + this(new V1beta1CapacityRequestPolicy()); + } + + public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicyFluent fluent) { + this(fluent, new V1beta1CapacityRequestPolicy()); + } + + public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CapacityRequestPolicyBuilder(V1beta1CapacityRequestPolicyFluent fluent,V1beta1CapacityRequestPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CapacityRequestPolicy build() { + V1beta1CapacityRequestPolicy buildable = new V1beta1CapacityRequestPolicy(); + buildable.setDefault(fluent.getDefault()); + buildable.setValidRange(fluent.buildValidRange()); + buildable.setValidValues(fluent.getValidValues()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java new file mode 100644 index 0000000000..fe96416cef --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java @@ -0,0 +1,287 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CapacityRequestPolicyFluent> extends BaseFluent{ + + private Quantity _default; + private V1beta1CapacityRequestPolicyRangeBuilder validRange; + private List validValues; + + public V1beta1CapacityRequestPolicyFluent() { + } + + public V1beta1CapacityRequestPolicyFluent(V1beta1CapacityRequestPolicy instance) { + this.copyInstance(instance); + } + + public A addAllToValidValues(Collection items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A addNewValidValue(String value) { + return (A) this.addToValidValues(new Quantity(value)); + } + + public A addToValidValues(Quantity... items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A addToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.add(index, item); + return (A) this; + } + + public V1beta1CapacityRequestPolicyRange buildValidRange() { + return this.validRange != null ? this.validRange.build() : null; + } + + protected void copyInstance(V1beta1CapacityRequestPolicy instance) { + instance = instance != null ? instance : new V1beta1CapacityRequestPolicy(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withValidRange(instance.getValidRange()); + this.withValidValues(instance.getValidValues()); + } + } + + public ValidRangeNested editOrNewValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(new V1beta1CapacityRequestPolicyRangeBuilder().build())); + } + + public ValidRangeNested editOrNewValidRangeLike(V1beta1CapacityRequestPolicyRange item) { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(item)); + } + + public ValidRangeNested editValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CapacityRequestPolicyFluent that = (V1beta1CapacityRequestPolicyFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(validRange, that.validRange))) { + return false; + } + if (!(Objects.equals(validValues, that.validValues))) { + return false; + } + return true; + } + + public Quantity getDefault() { + return this._default; + } + + public Quantity getFirstValidValue() { + return this.validValues.get(0); + } + + public Quantity getLastValidValue() { + return this.validValues.get(validValues.size() - 1); + } + + public Quantity getMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Quantity getValidValue(int index) { + return this.validValues.get(index); + } + + public List getValidValues() { + return this.validValues; + } + + public boolean hasDefault() { + return this._default != null; + } + + public boolean hasMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasValidRange() { + return this.validRange != null; + } + + public boolean hasValidValues() { + return this.validValues != null && !(this.validValues.isEmpty()); + } + + public int hashCode() { + return Objects.hash(_default, validRange, validValues); + } + + public A removeAllFromValidValues(Collection items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public A removeFromValidValues(Quantity... items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public A setToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(_default == null)) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(validRange == null)) { + sb.append("validRange:"); + sb.append(validRange); + sb.append(","); + } + if (!(validValues == null) && !(validValues.isEmpty())) { + sb.append("validValues:"); + sb.append(validValues); + } + sb.append("}"); + return sb.toString(); + } + + public A withDefault(Quantity _default) { + this._default = _default; + return (A) this; + } + + public A withNewDefault(String value) { + return (A) this.withDefault(new Quantity(value)); + } + + public ValidRangeNested withNewValidRange() { + return new ValidRangeNested(null); + } + + public ValidRangeNested withNewValidRangeLike(V1beta1CapacityRequestPolicyRange item) { + return new ValidRangeNested(item); + } + + public A withValidRange(V1beta1CapacityRequestPolicyRange validRange) { + this._visitables.remove("validRange"); + if (validRange != null) { + this.validRange = new V1beta1CapacityRequestPolicyRangeBuilder(validRange); + this._visitables.get("validRange").add(this.validRange); + } else { + this.validRange = null; + this._visitables.get("validRange").remove(this.validRange); + } + return (A) this; + } + + public A withValidValues(List validValues) { + if (validValues != null) { + this.validValues = new ArrayList(); + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } else { + this.validValues = null; + } + return (A) this; + } + + public A withValidValues(Quantity... validValues) { + if (this.validValues != null) { + this.validValues.clear(); + _visitables.remove("validValues"); + } + if (validValues != null) { + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } + return (A) this; + } + public class ValidRangeNested extends V1beta1CapacityRequestPolicyRangeFluent> implements Nested{ + + V1beta1CapacityRequestPolicyRangeBuilder builder; + + ValidRangeNested(V1beta1CapacityRequestPolicyRange item) { + this.builder = new V1beta1CapacityRequestPolicyRangeBuilder(this, item); + } + + public N and() { + return (N) V1beta1CapacityRequestPolicyFluent.this.withValidRange(builder.build()); + } + + public N endValidRange() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java new file mode 100644 index 0000000000..0a8db9231f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1CapacityRequestPolicyRangeBuilder extends V1beta1CapacityRequestPolicyRangeFluent implements VisitableBuilder{ + + V1beta1CapacityRequestPolicyRangeFluent fluent; + + public V1beta1CapacityRequestPolicyRangeBuilder() { + this(new V1beta1CapacityRequestPolicyRange()); + } + + public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRangeFluent fluent) { + this(fluent, new V1beta1CapacityRequestPolicyRange()); + } + + public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRange instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CapacityRequestPolicyRangeBuilder(V1beta1CapacityRequestPolicyRangeFluent fluent,V1beta1CapacityRequestPolicyRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CapacityRequestPolicyRange build() { + V1beta1CapacityRequestPolicyRange buildable = new V1beta1CapacityRequestPolicyRange(); + buildable.setMax(fluent.getMax()); + buildable.setMin(fluent.getMin()); + buildable.setStep(fluent.getStep()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java new file mode 100644 index 0000000000..b73f8f2ff5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java @@ -0,0 +1,136 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CapacityRequestPolicyRangeFluent> extends BaseFluent{ + + private Quantity max; + private Quantity min; + private Quantity step; + + public V1beta1CapacityRequestPolicyRangeFluent() { + } + + public V1beta1CapacityRequestPolicyRangeFluent(V1beta1CapacityRequestPolicyRange instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1CapacityRequestPolicyRange instance) { + instance = instance != null ? instance : new V1beta1CapacityRequestPolicyRange(); + if (instance != null) { + this.withMax(instance.getMax()); + this.withMin(instance.getMin()); + this.withStep(instance.getStep()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CapacityRequestPolicyRangeFluent that = (V1beta1CapacityRequestPolicyRangeFluent) o; + if (!(Objects.equals(max, that.max))) { + return false; + } + if (!(Objects.equals(min, that.min))) { + return false; + } + if (!(Objects.equals(step, that.step))) { + return false; + } + return true; + } + + public Quantity getMax() { + return this.max; + } + + public Quantity getMin() { + return this.min; + } + + public Quantity getStep() { + return this.step; + } + + public boolean hasMax() { + return this.max != null; + } + + public boolean hasMin() { + return this.min != null; + } + + public boolean hasStep() { + return this.step != null; + } + + public int hashCode() { + return Objects.hash(max, min, step); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(max == null)) { + sb.append("max:"); + sb.append(max); + sb.append(","); + } + if (!(min == null)) { + sb.append("min:"); + sb.append(min); + sb.append(","); + } + if (!(step == null)) { + sb.append("step:"); + sb.append(step); + } + sb.append("}"); + return sb.toString(); + } + + public A withMax(Quantity max) { + this.max = max; + return (A) this; + } + + public A withMin(Quantity min) { + this.min = min; + return (A) this; + } + + public A withNewMax(String value) { + return (A) this.withMax(new Quantity(value)); + } + + public A withNewMin(String value) { + return (A) this.withMin(new Quantity(value)); + } + + public A withNewStep(String value) { + return (A) this.withStep(new Quantity(value)); + } + + public A withStep(Quantity step) { + this.step = step; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java new file mode 100644 index 0000000000..32e818888c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1CapacityRequirementsBuilder extends V1beta1CapacityRequirementsFluent implements VisitableBuilder{ + + V1beta1CapacityRequirementsFluent fluent; + + public V1beta1CapacityRequirementsBuilder() { + this(new V1beta1CapacityRequirements()); + } + + public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirementsFluent fluent) { + this(fluent, new V1beta1CapacityRequirements()); + } + + public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirements instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CapacityRequirementsBuilder(V1beta1CapacityRequirementsFluent fluent,V1beta1CapacityRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1CapacityRequirements build() { + V1beta1CapacityRequirements buildable = new V1beta1CapacityRequirements(); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java new file mode 100644 index 0000000000..f4b21e42bb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java @@ -0,0 +1,128 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CapacityRequirementsFluent> extends BaseFluent{ + + private Map requests; + + public V1beta1CapacityRequirementsFluent() { + } + + public V1beta1CapacityRequirementsFluent(V1beta1CapacityRequirements instance) { + this.copyInstance(instance); + } + + 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 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; + } + + protected void copyInstance(V1beta1CapacityRequirements instance) { + instance = instance != null ? instance : new V1beta1CapacityRequirements(); + if (instance != null) { + this.withRequests(instance.getRequests()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CapacityRequirementsFluent that = (V1beta1CapacityRequirementsFluent) o; + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public Map getRequests() { + return this.requests; + } + + public boolean hasRequests() { + return this.requests != null; + } + + public int hashCode() { + return Objects.hash(requests); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + +} \ 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..5174a8a95b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ClusterTrustBundleBuilder extends V1beta1ClusterTrustBundleFluent implements VisitableBuilder{ + + V1beta1ClusterTrustBundleFluent fluent; + + public V1beta1ClusterTrustBundleBuilder() { + this(new V1beta1ClusterTrustBundle()); + } + + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundleFluent fluent) { + this(fluent, new V1beta1ClusterTrustBundle()); + } + + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundle instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ClusterTrustBundleBuilder(V1beta1ClusterTrustBundleFluent fluent,V1beta1ClusterTrustBundle instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..82592d4cd3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ClusterTrustBundleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ClusterTrustBundleSpecBuilder spec; + + public V1beta1ClusterTrustBundleFluent() { + } + + public V1beta1ClusterTrustBundleFluent(V1beta1ClusterTrustBundle instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ClusterTrustBundleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ClusterTrustBundleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ClusterTrustBundleSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ClusterTrustBundleFluent that = (V1beta1ClusterTrustBundleFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ClusterTrustBundleSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1ClusterTrustBundleFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1ClusterTrustBundleSpecFluent> implements Nested{ + + V1beta1ClusterTrustBundleSpecBuilder builder; + + SpecNested(V1beta1ClusterTrustBundleSpec item) { + this.builder = new V1beta1ClusterTrustBundleSpecBuilder(this, item); + } + + 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..289f9f4114 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ClusterTrustBundleListBuilder extends V1beta1ClusterTrustBundleListFluent implements VisitableBuilder{ + + V1beta1ClusterTrustBundleListFluent fluent; + + public V1beta1ClusterTrustBundleListBuilder() { + this(new V1beta1ClusterTrustBundleList()); + } + + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleListFluent fluent) { + this(fluent, new V1beta1ClusterTrustBundleList()); + } + + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ClusterTrustBundleListBuilder(V1beta1ClusterTrustBundleListFluent fluent,V1beta1ClusterTrustBundleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..2eca0df0df --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ClusterTrustBundleListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1ClusterTrustBundleListFluent() { + } + + public V1beta1ClusterTrustBundleListFluent(V1beta1ClusterTrustBundleList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ClusterTrustBundle item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta1ClusterTrustBundle buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ClusterTrustBundle buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ClusterTrustBundleListFluent that = (V1beta1ClusterTrustBundleListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ClusterTrustBundleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta1ClusterTrustBundle item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1ClusterTrustBundleFluent> implements Nested{ + + V1beta1ClusterTrustBundleBuilder builder; + int index; + + ItemsNested(int index,V1beta1ClusterTrustBundle item) { + this.index = index; + this.builder = new V1beta1ClusterTrustBundleBuilder(this, item); + } + + public N and() { + return (N) V1beta1ClusterTrustBundleListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..3e00c049c5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ClusterTrustBundleSpecBuilder extends V1beta1ClusterTrustBundleSpecFluent implements VisitableBuilder{ + + V1beta1ClusterTrustBundleSpecFluent fluent; + + public V1beta1ClusterTrustBundleSpecBuilder() { + this(new V1beta1ClusterTrustBundleSpec()); + } + + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpecFluent fluent) { + this(fluent, new V1beta1ClusterTrustBundleSpec()); + } + + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ClusterTrustBundleSpecBuilder(V1beta1ClusterTrustBundleSpecFluent fluent,V1beta1ClusterTrustBundleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b7eb83bdc5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java @@ -0,0 +1,100 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ClusterTrustBundleSpecFluent> extends BaseFluent{ + + private String signerName; + private String trustBundle; + + public V1beta1ClusterTrustBundleSpecFluent() { + } + + public V1beta1ClusterTrustBundleSpecFluent(V1beta1ClusterTrustBundleSpec instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1ClusterTrustBundleSpec instance) { + instance = instance != null ? instance : new V1beta1ClusterTrustBundleSpec(); + if (instance != null) { + this.withSignerName(instance.getSignerName()); + this.withTrustBundle(instance.getTrustBundle()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ClusterTrustBundleSpecFluent that = (V1beta1ClusterTrustBundleSpecFluent) o; + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(trustBundle, that.trustBundle))) { + return false; + } + return true; + } + + public String getSignerName() { + return this.signerName; + } + + public String getTrustBundle() { + return this.trustBundle; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public boolean hasTrustBundle() { + return this.trustBundle != null; + } + + public int hashCode() { + return Objects.hash(signerName, trustBundle); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + sb.append(","); + } + if (!(trustBundle == null)) { + sb.append("trustBundle:"); + sb.append(trustBundle); + } + sb.append("}"); + return sb.toString(); + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public A withTrustBundle(String trustBundle) { + this.trustBundle = trustBundle; + return (A) this; + } + +} \ 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..acaa5335a5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1CounterBuilder extends V1beta1CounterFluent implements VisitableBuilder{ + + V1beta1CounterFluent fluent; + + public V1beta1CounterBuilder() { + this(new V1beta1Counter()); + } + + public V1beta1CounterBuilder(V1beta1CounterFluent fluent) { + this(fluent, new V1beta1Counter()); + } + + public V1beta1CounterBuilder(V1beta1Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CounterBuilder(V1beta1CounterFluent fluent,V1beta1Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..4d429012cb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java @@ -0,0 +1,82 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CounterFluent> extends BaseFluent{ + + private Quantity value; + + public V1beta1CounterFluent() { + } + + public V1beta1CounterFluent(V1beta1Counter instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1Counter instance) { + instance = instance != null ? instance : new V1beta1Counter(); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CounterFluent that = (V1beta1CounterFluent) o; + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public Quantity getValue() { + return this.value; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + +} \ 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..3c2550cb38 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1CounterSetBuilder extends V1beta1CounterSetFluent implements VisitableBuilder{ + + V1beta1CounterSetFluent fluent; + + public V1beta1CounterSetBuilder() { + this(new V1beta1CounterSet()); + } + + public V1beta1CounterSetBuilder(V1beta1CounterSetFluent fluent) { + this(fluent, new V1beta1CounterSet()); + } + + public V1beta1CounterSetBuilder(V1beta1CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1CounterSetBuilder(V1beta1CounterSetFluent fluent,V1beta1CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..72d7059e04 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1CounterSetFluent> extends BaseFluent{ + + private Map counters; + private String name; + + public V1beta1CounterSetFluent() { + } + + public V1beta1CounterSetFluent(V1beta1CounterSet instance) { + this.copyInstance(instance); + } + + 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 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; + } + + protected void copyInstance(V1beta1CounterSet instance) { + instance = instance != null ? instance : new V1beta1CounterSet(); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1CounterSetFluent that = (V1beta1CounterSetFluent) o; + if (!(Objects.equals(counters, that.counters))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public Map getCounters() { + return this.counters; + } + + public String getName() { + return this.name; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(counters, name); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ 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..99efeaa68c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceAllocationConfigurationBuilder extends V1beta1DeviceAllocationConfigurationFluent implements VisitableBuilder{ + + V1beta1DeviceAllocationConfigurationFluent fluent; + + public V1beta1DeviceAllocationConfigurationBuilder() { + this(new V1beta1DeviceAllocationConfiguration()); + } + + public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfigurationFluent fluent) { + this(fluent, new V1beta1DeviceAllocationConfiguration()); + } + + public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceAllocationConfigurationBuilder(V1beta1DeviceAllocationConfigurationFluent fluent,V1beta1DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..9f9b93739d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java @@ -0,0 +1,278 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceAllocationConfigurationFluent> extends BaseFluent{ + + private V1beta1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + + public V1beta1DeviceAllocationConfigurationFluent() { + } + + public V1beta1DeviceAllocationConfigurationFluent(V1beta1DeviceAllocationConfiguration instance) { + this.copyInstance(instance); + } + + 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 addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + public V1beta1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + 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 OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceAllocationConfigurationFluent that = (V1beta1DeviceAllocationConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } + return true; + } + + 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 String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public String getSource() { + return this.source; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public boolean hasSource() { + return this.source != null; + } + + public int hashCode() { + return Objects.hash(opaque, requests, source); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + } + sb.append("}"); + return sb.toString(); + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + 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 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(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 A withSource(String source) { + this.source = source; + return (A) this; + } + public class OpaqueNested extends V1beta1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta1OpaqueDeviceConfigurationBuilder builder; + + OpaqueNested(V1beta1OpaqueDeviceConfiguration item) { + this.builder = new V1beta1OpaqueDeviceConfigurationBuilder(this, item); + } + + 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..f41b252d2c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceAllocationResultBuilder extends V1beta1DeviceAllocationResultFluent implements VisitableBuilder{ + + V1beta1DeviceAllocationResultFluent fluent; + + public V1beta1DeviceAllocationResultBuilder() { + this(new V1beta1DeviceAllocationResult()); + } + + public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResultFluent fluent) { + this(fluent, new V1beta1DeviceAllocationResult()); + } + + public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceAllocationResultBuilder(V1beta1DeviceAllocationResultFluent fluent,V1beta1DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..8bb6c00e34 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java @@ -0,0 +1,534 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceAllocationResultFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList results; + + public V1beta1DeviceAllocationResultFluent() { + } + + public V1beta1DeviceAllocationResultFluent(V1beta1DeviceAllocationResult instance) { + this.copyInstance(instance); + } + + 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 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 ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta1DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1beta1DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + + public A addToConfig(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 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 addToResults(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 addToResults(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.add(index, builder); + } + 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 V1beta1DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + + public V1beta1DeviceAllocationConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta1DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + + public V1beta1DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1beta1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); + } + + public List buildResults() { + return this.results != null ? build(results) : null; + } + + protected void copyInstance(V1beta1DeviceAllocationResult instance) { + instance = instance != null ? instance : new V1beta1DeviceAllocationResult(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public ResultsNested editFirstResult() { + if (results.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); + } + return this.setNewResultLike(0, this.buildResult(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ResultsNested editMatchingResult(Predicate predicate) { + int index = -1; + for (int i = 0;i < results.size();i++) { + if (predicate.test(results.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public ResultsNested editResult(int index) { + if (results.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceAllocationResultFluent that = (V1beta1DeviceAllocationResultFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(results, that.results))) { + return false; + } + return true; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta1DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1beta1DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResults() { + return this.results != null && !(this.results.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, results); + } + + 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 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 removeFromConfig(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 removeFromResults(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 removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + 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 A removeMatchingFromResults(Predicate predicate) { + if (results == null) { + return (A) this; + } + Iterator each = results.iterator(); + 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 ConfigNested setNewConfigLike(int index,V1beta1DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); + } + + public ResultsNested setNewResultLike(int index,V1beta1DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(results == null) && !(results.isEmpty())) { + sb.append("results:"); + sb.append(results); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 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(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 class ConfigNested extends V1beta1DeviceAllocationConfigurationFluent> implements Nested{ + + V1beta1DeviceAllocationConfigurationBuilder builder; + int index; + + ConfigNested(int index,V1beta1DeviceAllocationConfiguration item) { + this.index = index; + this.builder = new V1beta1DeviceAllocationConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceAllocationResultFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + } + public class ResultsNested extends V1beta1DeviceRequestAllocationResultFluent> implements Nested{ + + V1beta1DeviceRequestAllocationResultBuilder builder; + int index; + + ResultsNested(int index,V1beta1DeviceRequestAllocationResult item) { + this.index = index; + this.builder = new V1beta1DeviceRequestAllocationResultBuilder(this, item); + } + + 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..00373538c8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceAttributeBuilder extends V1beta1DeviceAttributeFluent implements VisitableBuilder{ + + V1beta1DeviceAttributeFluent fluent; + + public V1beta1DeviceAttributeBuilder() { + this(new V1beta1DeviceAttribute()); + } + + public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttributeFluent fluent) { + this(fluent, new V1beta1DeviceAttribute()); + } + + public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttributeFluent fluent,V1beta1DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..76bb1c8cb3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java @@ -0,0 +1,152 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceAttributeFluent> extends BaseFluent{ + + private Long _int; + private Boolean bool; + private String string; + private String version; + + public V1beta1DeviceAttributeFluent() { + } + + public V1beta1DeviceAttributeFluent(V1beta1DeviceAttribute instance) { + this.copyInstance(instance); + } + + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceAttributeFluent that = (V1beta1DeviceAttributeFluent) o; + if (!(Objects.equals(bool, that.bool))) { + return false; + } + if (!(Objects.equals(_int, that._int))) { + return false; + } + if (!(Objects.equals(string, that.string))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; + } + + public Boolean getBool() { + return this.bool; + } + + public Long getInt() { + return this._int; + } + + public String getString() { + return this.string; + } + + public String getVersion() { + return this.version; + } + + public boolean hasBool() { + return this.bool != null; + } + + public boolean hasInt() { + return this._int != null; + } + + public boolean hasString() { + return this.string != null; + } + + public boolean hasVersion() { + return this.version != null; + } + + public int hashCode() { + return Objects.hash(bool, _int, string, version); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(bool == null)) { + sb.append("bool:"); + sb.append(bool); + sb.append(","); + } + if (!(_int == null)) { + sb.append("_int:"); + sb.append(_int); + sb.append(","); + } + if (!(string == null)) { + sb.append("string:"); + sb.append(string); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } + sb.append("}"); + return sb.toString(); + } + + public A withBool() { + return withBool(true); + } + + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + +} \ 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..d3a785b60c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceBuilder extends V1beta1DeviceFluent implements VisitableBuilder{ + + V1beta1DeviceFluent fluent; + + public V1beta1DeviceBuilder() { + this(new V1beta1Device()); + } + + public V1beta1DeviceBuilder(V1beta1DeviceFluent fluent) { + this(fluent, new V1beta1Device()); + } + + public V1beta1DeviceBuilder(V1beta1Device instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceBuilder(V1beta1DeviceFluent fluent,V1beta1Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..49a670cfc8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceCapacityBuilder extends V1beta1DeviceCapacityFluent implements VisitableBuilder{ + + V1beta1DeviceCapacityFluent fluent; + + public V1beta1DeviceCapacityBuilder() { + this(new V1beta1DeviceCapacity()); + } + + public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacityFluent fluent) { + this(fluent, new V1beta1DeviceCapacity()); + } + + public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacity instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceCapacityBuilder(V1beta1DeviceCapacityFluent fluent,V1beta1DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceCapacity build() { + V1beta1DeviceCapacity buildable = new V1beta1DeviceCapacity(); + buildable.setRequestPolicy(fluent.buildRequestPolicy()); + 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..014879205b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceCapacityFluent> extends BaseFluent{ + + private V1beta1CapacityRequestPolicyBuilder requestPolicy; + private Quantity value; + + public V1beta1DeviceCapacityFluent() { + } + + public V1beta1DeviceCapacityFluent(V1beta1DeviceCapacity instance) { + this.copyInstance(instance); + } + + public V1beta1CapacityRequestPolicy buildRequestPolicy() { + return this.requestPolicy != null ? this.requestPolicy.build() : null; + } + + protected void copyInstance(V1beta1DeviceCapacity instance) { + instance = instance != null ? instance : new V1beta1DeviceCapacity(); + if (instance != null) { + this.withRequestPolicy(instance.getRequestPolicy()); + this.withValue(instance.getValue()); + } + } + + public RequestPolicyNested editOrNewRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(new V1beta1CapacityRequestPolicyBuilder().build())); + } + + public RequestPolicyNested editOrNewRequestPolicyLike(V1beta1CapacityRequestPolicy item) { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(item)); + } + + public RequestPolicyNested editRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceCapacityFluent that = (V1beta1DeviceCapacityFluent) o; + if (!(Objects.equals(requestPolicy, that.requestPolicy))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public Quantity getValue() { + return this.value; + } + + public boolean hasRequestPolicy() { + return this.requestPolicy != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(requestPolicy, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requestPolicy == null)) { + sb.append("requestPolicy:"); + sb.append(requestPolicy); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public RequestPolicyNested withNewRequestPolicy() { + return new RequestPolicyNested(null); + } + + public RequestPolicyNested withNewRequestPolicyLike(V1beta1CapacityRequestPolicy item) { + return new RequestPolicyNested(item); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withRequestPolicy(V1beta1CapacityRequestPolicy requestPolicy) { + this._visitables.remove("requestPolicy"); + if (requestPolicy != null) { + this.requestPolicy = new V1beta1CapacityRequestPolicyBuilder(requestPolicy); + this._visitables.get("requestPolicy").add(this.requestPolicy); + } else { + this.requestPolicy = null; + this._visitables.get("requestPolicy").remove(this.requestPolicy); + } + return (A) this; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + public class RequestPolicyNested extends V1beta1CapacityRequestPolicyFluent> implements Nested{ + + V1beta1CapacityRequestPolicyBuilder builder; + + RequestPolicyNested(V1beta1CapacityRequestPolicy item) { + this.builder = new V1beta1CapacityRequestPolicyBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceCapacityFluent.this.withRequestPolicy(builder.build()); + } + + public N endRequestPolicy() { + return and(); + } + + } +} \ 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..818a33c4d8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceClaimBuilder extends V1beta1DeviceClaimFluent implements VisitableBuilder{ + + V1beta1DeviceClaimFluent fluent; + + public V1beta1DeviceClaimBuilder() { + this(new V1beta1DeviceClaim()); + } + + public V1beta1DeviceClaimBuilder(V1beta1DeviceClaimFluent fluent) { + this(fluent, new V1beta1DeviceClaim()); + } + + public V1beta1DeviceClaimBuilder(V1beta1DeviceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceClaimBuilder(V1beta1DeviceClaimFluent fluent,V1beta1DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..3c6babedbe --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceClaimConfigurationBuilder extends V1beta1DeviceClaimConfigurationFluent implements VisitableBuilder{ + + V1beta1DeviceClaimConfigurationFluent fluent; + + public V1beta1DeviceClaimConfigurationBuilder() { + this(new V1beta1DeviceClaimConfiguration()); + } + + public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfigurationFluent fluent) { + this(fluent, new V1beta1DeviceClaimConfiguration()); + } + + public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceClaimConfigurationBuilder(V1beta1DeviceClaimConfigurationFluent fluent,V1beta1DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..c5d8eda9a2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java @@ -0,0 +1,255 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClaimConfigurationFluent> extends BaseFluent{ + + private V1beta1OpaqueDeviceConfigurationBuilder opaque; + private List requests; + + public V1beta1DeviceClaimConfigurationFluent() { + } + + public V1beta1DeviceClaimConfigurationFluent(V1beta1DeviceClaimConfiguration instance) { + this.copyInstance(instance); + } + + 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 addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + public V1beta1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + protected void copyInstance(V1beta1DeviceClaimConfiguration instance) { + instance = instance != null ? instance : new V1beta1DeviceClaimConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceClaimConfigurationFluent that = (V1beta1DeviceClaimConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + 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 String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(opaque, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + 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 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(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 class OpaqueNested extends V1beta1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta1OpaqueDeviceConfigurationBuilder builder; + + OpaqueNested(V1beta1OpaqueDeviceConfiguration item) { + this.builder = new V1beta1OpaqueDeviceConfigurationBuilder(this, item); + } + + 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..f8829eb700 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java @@ -0,0 +1,771 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClaimFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + + public V1beta1DeviceClaimFluent() { + } + + public V1beta1DeviceClaimFluent(V1beta1DeviceClaim instance) { + this.copyInstance(instance); + } + + 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 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 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 ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta1DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1beta1DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1beta1DeviceRequest item) { + return new RequestsNested(-1, item); + } + + public A addToConfig(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 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 addToConstraints(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 addToConstraints(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.add(index, builder); + } + return (A) this; + } + + public A addToRequests(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 addToRequests(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.add(index, builder); + } + 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 V1beta1DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + + public V1beta1DeviceClaimConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta1DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1beta1DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + + public V1beta1DeviceClaimConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta1DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1beta1DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + + public V1beta1DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1beta1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1beta1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); + } + + public List buildRequests() { + return this.requests != null ? build(requests) : null; + } + + 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 ConfigNested editConfig(int index) { + if (config.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(0, this.buildConstraint(0)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(0, this.buildRequest(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConstraintsNested editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i = 0;i < constraints.size();i++) { + if (predicate.test(constraints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i = 0;i < requests.size();i++) { + if (predicate.test(requests.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceClaimFluent that = (V1beta1DeviceClaimFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(constraints, that.constraints))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasConstraints() { + return this.constraints != null && !(this.constraints.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1beta1DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1beta1DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, constraints, requests); + } + + 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 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 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 removeFromConfig(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 removeFromConstraints(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 removeFromRequests(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 removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + 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 A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) { + return (A) this; + } + Iterator each = constraints.iterator(); + 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 A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) { + return (A) this; + } + Iterator each = requests.iterator(); + 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 ConfigNested setNewConfigLike(int index,V1beta1DeviceClaimConfiguration item) { + return new ConfigNested(index, item); + } + + public ConstraintsNested setNewConstraintLike(int index,V1beta1DeviceConstraint item) { + return new ConstraintsNested(index, item); + } + + public RequestsNested setNewRequestLike(int index,V1beta1DeviceRequest item) { + return new RequestsNested(index, item); + } + + 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 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(constraints == null) && !(constraints.isEmpty())) { + sb.append("constraints:"); + sb.append(constraints); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 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(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 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(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 class ConfigNested extends V1beta1DeviceClaimConfigurationFluent> implements Nested{ + + V1beta1DeviceClaimConfigurationBuilder builder; + int index; + + ConfigNested(int index,V1beta1DeviceClaimConfiguration item) { + this.index = index; + this.builder = new V1beta1DeviceClaimConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceClaimFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + } + public class ConstraintsNested extends V1beta1DeviceConstraintFluent> implements Nested{ + + V1beta1DeviceConstraintBuilder builder; + int index; + + ConstraintsNested(int index,V1beta1DeviceConstraint item) { + this.index = index; + this.builder = new V1beta1DeviceConstraintBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceClaimFluent.this.setToConstraints(index, builder.build()); + } + + public N endConstraint() { + return and(); + } + + } + public class RequestsNested extends V1beta1DeviceRequestFluent> implements Nested{ + + V1beta1DeviceRequestBuilder builder; + int index; + + RequestsNested(int index,V1beta1DeviceRequest item) { + this.index = index; + this.builder = new V1beta1DeviceRequestBuilder(this, item); + } + + 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..4dcc6094bb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceClassBuilder extends V1beta1DeviceClassFluent implements VisitableBuilder{ + + V1beta1DeviceClassFluent fluent; + + public V1beta1DeviceClassBuilder() { + this(new V1beta1DeviceClass()); + } + + public V1beta1DeviceClassBuilder(V1beta1DeviceClassFluent fluent) { + this(fluent, new V1beta1DeviceClass()); + } + + public V1beta1DeviceClassBuilder(V1beta1DeviceClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceClassBuilder(V1beta1DeviceClassFluent fluent,V1beta1DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..d03ecf352f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceClassConfigurationBuilder extends V1beta1DeviceClassConfigurationFluent implements VisitableBuilder{ + + V1beta1DeviceClassConfigurationFluent fluent; + + public V1beta1DeviceClassConfigurationBuilder() { + this(new V1beta1DeviceClassConfiguration()); + } + + public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfigurationFluent fluent) { + this(fluent, new V1beta1DeviceClassConfiguration()); + } + + public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceClassConfigurationBuilder(V1beta1DeviceClassConfigurationFluent fluent,V1beta1DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..4ed9d1d59c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClassConfigurationFluent> extends BaseFluent{ + + private V1beta1OpaqueDeviceConfigurationBuilder opaque; + + public V1beta1DeviceClassConfigurationFluent() { + } + + public V1beta1DeviceClassConfigurationFluent(V1beta1DeviceClassConfiguration instance) { + this.copyInstance(instance); + } + + public V1beta1OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + protected void copyInstance(V1beta1DeviceClassConfiguration instance) { + instance = instance != null ? instance : new V1beta1DeviceClassConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + } + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta1OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceClassConfigurationFluent that = (V1beta1DeviceClassConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + return true; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public int hashCode() { + return Objects.hash(opaque); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + } + sb.append("}"); + return sb.toString(); + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta1OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + 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 class OpaqueNested extends V1beta1OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta1OpaqueDeviceConfigurationBuilder builder; + + OpaqueNested(V1beta1OpaqueDeviceConfiguration item) { + this.builder = new V1beta1OpaqueDeviceConfigurationBuilder(this, item); + } + + 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..f72302eef6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClassFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1DeviceClassSpecBuilder spec; + + public V1beta1DeviceClassFluent() { + } + + public V1beta1DeviceClassFluent(V1beta1DeviceClass instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1DeviceClassSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1DeviceClassSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceClassFluent that = (V1beta1DeviceClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1DeviceClassSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceClassFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1DeviceClassSpecFluent> implements Nested{ + + V1beta1DeviceClassSpecBuilder builder; + + SpecNested(V1beta1DeviceClassSpec item) { + this.builder = new V1beta1DeviceClassSpecBuilder(this, item); + } + + 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..b87a683d8d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceClassListBuilder extends V1beta1DeviceClassListFluent implements VisitableBuilder{ + + V1beta1DeviceClassListFluent fluent; + + public V1beta1DeviceClassListBuilder() { + this(new V1beta1DeviceClassList()); + } + + public V1beta1DeviceClassListBuilder(V1beta1DeviceClassListFluent fluent) { + this(fluent, new V1beta1DeviceClassList()); + } + + public V1beta1DeviceClassListBuilder(V1beta1DeviceClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceClassListBuilder(V1beta1DeviceClassListFluent fluent,V1beta1DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..d24fc4d3c3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClassListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1DeviceClassListFluent() { + } + + public V1beta1DeviceClassListFluent(V1beta1DeviceClassList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1DeviceClass item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta1DeviceClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1DeviceClass buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceClassListFluent that = (V1beta1DeviceClassListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta1DeviceClass item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1DeviceClassFluent> implements Nested{ + + V1beta1DeviceClassBuilder builder; + int index; + + ItemsNested(int index,V1beta1DeviceClass item) { + this.index = index; + this.builder = new V1beta1DeviceClassBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceClassListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..282215eba3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceClassSpecBuilder extends V1beta1DeviceClassSpecFluent implements VisitableBuilder{ + + V1beta1DeviceClassSpecFluent fluent; + + public V1beta1DeviceClassSpecBuilder() { + this(new V1beta1DeviceClassSpec()); + } + + public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpecFluent fluent) { + this(fluent, new V1beta1DeviceClassSpec()); + } + + public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceClassSpecBuilder(V1beta1DeviceClassSpecFluent fluent,V1beta1DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceClassSpec build() { + V1beta1DeviceClassSpec buildable = new V1beta1DeviceClassSpec(); + buildable.setConfig(fluent.buildConfig()); + buildable.setExtendedResourceName(fluent.getExtendedResourceName()); + 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..964458e8c2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java @@ -0,0 +1,557 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceClassSpecFluent> extends BaseFluent{ + + private ArrayList config; + private String extendedResourceName; + private ArrayList selectors; + + public V1beta1DeviceClassSpecFluent() { + } + + public V1beta1DeviceClassSpecFluent(V1beta1DeviceClassSpec instance) { + this.copyInstance(instance); + } + + 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 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 ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta1DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public A addToConfig(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 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 addToSelectors(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 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 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 V1beta1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta1DeviceClassConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta1DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + protected void copyInstance(V1beta1DeviceClassSpec instance) { + instance = instance != null ? instance : new V1beta1DeviceClassSpec(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withExtendedResourceName(instance.getExtendedResourceName()); + this.withSelectors(instance.getSelectors()); + } + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceClassSpecFluent that = (V1beta1DeviceClassSpecFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + return true; + } + + public String getExtendedResourceName() { + return this.extendedResourceName; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasExtendedResourceName() { + return this.extendedResourceName != null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta1DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, extendedResourceName, selectors); + } + + 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 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 removeFromConfig(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 removeFromSelectors(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 removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + 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 A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + 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 ConfigNested setNewConfigLike(int index,V1beta1DeviceClassConfiguration item) { + return new ConfigNested(index, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(extendedResourceName == null)) { + sb.append("extendedResourceName:"); + sb.append(extendedResourceName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withExtendedResourceName(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + return (A) this; + } + + 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(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 class ConfigNested extends V1beta1DeviceClassConfigurationFluent> implements Nested{ + + V1beta1DeviceClassConfigurationBuilder builder; + int index; + + ConfigNested(int index,V1beta1DeviceClassConfiguration item) { + this.index = index; + this.builder = new V1beta1DeviceClassConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceClassSpecFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + } + public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ + + V1beta1DeviceSelectorBuilder builder; + int index; + + SelectorsNested(int index,V1beta1DeviceSelector item) { + this.index = index; + this.builder = new V1beta1DeviceSelectorBuilder(this, item); + } + + 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..662cf69aa0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceConstraintBuilder extends V1beta1DeviceConstraintFluent implements VisitableBuilder{ + + V1beta1DeviceConstraintFluent fluent; + + public V1beta1DeviceConstraintBuilder() { + this(new V1beta1DeviceConstraint()); + } + + public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraintFluent fluent) { + this(fluent, new V1beta1DeviceConstraint()); + } + + public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceConstraintBuilder(V1beta1DeviceConstraintFluent fluent,V1beta1DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceConstraint build() { + V1beta1DeviceConstraint buildable = new V1beta1DeviceConstraint(); + buildable.setDistinctAttribute(fluent.getDistinctAttribute()); + 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..486983584e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java @@ -0,0 +1,233 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceConstraintFluent> extends BaseFluent{ + + private String distinctAttribute; + private String matchAttribute; + private List requests; + + public V1beta1DeviceConstraintFluent() { + } + + public V1beta1DeviceConstraintFluent(V1beta1DeviceConstraint instance) { + this.copyInstance(instance); + } + + 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 addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + protected void copyInstance(V1beta1DeviceConstraint instance) { + instance = instance != null ? instance : new V1beta1DeviceConstraint(); + if (instance != null) { + this.withDistinctAttribute(instance.getDistinctAttribute()); + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceConstraintFluent that = (V1beta1DeviceConstraintFluent) o; + if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { + return false; + } + if (!(Objects.equals(matchAttribute, that.matchAttribute))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public String getDistinctAttribute() { + return this.distinctAttribute; + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchAttribute() { + return this.matchAttribute; + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public boolean hasDistinctAttribute() { + return this.distinctAttribute != null; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(distinctAttribute, matchAttribute, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(distinctAttribute == null)) { + sb.append("distinctAttribute:"); + sb.append(distinctAttribute); + sb.append(","); + } + if (!(matchAttribute == null)) { + sb.append("matchAttribute:"); + sb.append(matchAttribute); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public A withDistinctAttribute(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return (A) this; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + 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(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; + } + +} \ 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..5dbf4206cd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceCounterConsumptionBuilder extends V1beta1DeviceCounterConsumptionFluent implements VisitableBuilder{ + + V1beta1DeviceCounterConsumptionFluent fluent; + + public V1beta1DeviceCounterConsumptionBuilder() { + this(new V1beta1DeviceCounterConsumption()); + } + + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1beta1DeviceCounterConsumption()); + } + + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceCounterConsumptionBuilder(V1beta1DeviceCounterConsumptionFluent fluent,V1beta1DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..47de4c3987 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceCounterConsumptionFluent> extends BaseFluent{ + + private String counterSet; + private Map counters; + + public V1beta1DeviceCounterConsumptionFluent() { + } + + public V1beta1DeviceCounterConsumptionFluent(V1beta1DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + + 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 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; + } + + protected void copyInstance(V1beta1DeviceCounterConsumption instance) { + instance = instance != null ? instance : new V1beta1DeviceCounterConsumption(); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceCounterConsumptionFluent that = (V1beta1DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(counterSet, that.counterSet))) { + return false; + } + if (!(Objects.equals(counters, that.counters))) { + return false; + } + return true; + } + + public String getCounterSet() { + return this.counterSet; + } + + public Map getCounters() { + return this.counters; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public int hashCode() { + return Objects.hash(counterSet, counters); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(counterSet == null)) { + sb.append("counterSet:"); + sb.append(counterSet); + sb.append(","); + } + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + } + sb.append("}"); + return sb.toString(); + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + +} \ 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..12fbb1ba42 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java @@ -0,0 +1,145 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceFluent> extends BaseFluent{ + + private V1beta1BasicDeviceBuilder basic; + private String name; + + public V1beta1DeviceFluent() { + } + + public V1beta1DeviceFluent(V1beta1Device instance) { + this.copyInstance(instance); + } + + public V1beta1BasicDevice buildBasic() { + return this.basic != null ? this.basic.build() : null; + } + + protected void copyInstance(V1beta1Device instance) { + instance = instance != null ? instance : new V1beta1Device(); + if (instance != null) { + this.withBasic(instance.getBasic()); + this.withName(instance.getName()); + } + } + + public BasicNested editBasic() { + return this.withNewBasicLike(Optional.ofNullable(this.buildBasic()).orElse(null)); + } + + public BasicNested editOrNewBasic() { + return this.withNewBasicLike(Optional.ofNullable(this.buildBasic()).orElse(new V1beta1BasicDeviceBuilder().build())); + } + + public BasicNested editOrNewBasicLike(V1beta1BasicDevice item) { + return this.withNewBasicLike(Optional.ofNullable(this.buildBasic()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceFluent that = (V1beta1DeviceFluent) o; + if (!(Objects.equals(basic, that.basic))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public boolean hasBasic() { + return this.basic != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(basic, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(basic == null)) { + sb.append("basic:"); + sb.append(basic); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + 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 A withName(String name) { + this.name = name; + return (A) this; + } + + public BasicNested withNewBasic() { + return new BasicNested(null); + } + + public BasicNested withNewBasicLike(V1beta1BasicDevice item) { + return new BasicNested(item); + } + public class BasicNested extends V1beta1BasicDeviceFluent> implements Nested{ + + V1beta1BasicDeviceBuilder builder; + + BasicNested(V1beta1BasicDevice item) { + this.builder = new V1beta1BasicDeviceBuilder(this, item); + } + + 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..06fd04badf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java @@ -0,0 +1,42 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceRequestAllocationResultBuilder extends V1beta1DeviceRequestAllocationResultFluent implements VisitableBuilder{ + + V1beta1DeviceRequestAllocationResultFluent fluent; + + public V1beta1DeviceRequestAllocationResultBuilder() { + this(new V1beta1DeviceRequestAllocationResult()); + } + + public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocationResultFluent fluent) { + this(fluent, new V1beta1DeviceRequestAllocationResult()); + } + + public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceRequestAllocationResultBuilder(V1beta1DeviceRequestAllocationResultFluent fluent,V1beta1DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceRequestAllocationResult build() { + V1beta1DeviceRequestAllocationResult buildable = new V1beta1DeviceRequestAllocationResult(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setConsumedCapacity(fluent.getConsumedCapacity()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setRequest(fluent.getRequest()); + buildable.setShareID(fluent.getShareID()); + 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..0afa1ecf3d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java @@ -0,0 +1,772 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceRequestAllocationResultFluent> extends BaseFluent{ + + private Boolean adminAccess; + private List bindingConditions; + private List bindingFailureConditions; + private Map consumedCapacity; + private String device; + private String driver; + private String pool; + private String request; + private String shareID; + private ArrayList tolerations; + + public V1beta1DeviceRequestAllocationResultFluent() { + } + + public V1beta1DeviceRequestAllocationResultFluent(V1beta1DeviceRequestAllocationResult instance) { + this.copyInstance(instance); + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + 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 TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; + } + + public A addToConsumedCapacity(Map map) { + if (this.consumedCapacity == null && map != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (map != null) { + this.consumedCapacity.putAll(map); + } + return (A) this; + } + + public A addToConsumedCapacity(String key,Quantity value) { + if (this.consumedCapacity == null && key != null && value != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.consumedCapacity.put(key, value); + } + return (A) this; + } + + public A addToTolerations(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 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 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 V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + protected void copyInstance(V1beta1DeviceRequestAllocationResult instance) { + instance = instance != null ? instance : new V1beta1DeviceRequestAllocationResult(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withConsumedCapacity(instance.getConsumedCapacity()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withShareID(instance.getShareID()); + this.withTolerations(instance.getTolerations()); + } + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceRequestAllocationResultFluent that = (V1beta1DeviceRequestAllocationResultFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public Map getConsumedCapacity() { + return this.consumedCapacity; + } + + public String getDevice() { + return this.device; + } + + public String getDriver() { + return this.driver; + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getPool() { + return this.pool; + } + + public String getRequest() { + return this.request; + } + + public String getShareID() { + return this.shareID; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public boolean hasConsumedCapacity() { + return this.consumedCapacity != null; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasRequest() { + return this.request != null; + } + + public boolean hasShareID() { + return this.shareID != null; + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + 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 removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeFromConsumedCapacity(String key) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (key != null && this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + return (A) this; + } + + public A removeFromConsumedCapacity(Map map) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + } + } + return (A) this; + } + + public A removeFromTolerations(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 removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + 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 TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(adminAccess == null)) { + sb.append("adminAccess:"); + sb.append(adminAccess); + sb.append(","); + } + if (!(bindingConditions == null) && !(bindingConditions.isEmpty())) { + sb.append("bindingConditions:"); + sb.append(bindingConditions); + sb.append(","); + } + if (!(bindingFailureConditions == null) && !(bindingFailureConditions.isEmpty())) { + sb.append("bindingFailureConditions:"); + sb.append(bindingFailureConditions); + sb.append(","); + } + if (!(consumedCapacity == null) && !(consumedCapacity.isEmpty())) { + sb.append("consumedCapacity:"); + sb.append(consumedCapacity); + sb.append(","); + } + if (!(device == null)) { + sb.append("device:"); + sb.append(device); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(request == null)) { + sb.append("request:"); + sb.append(request); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdminAccess() { + return withAdminAccess(true); + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public A withConsumedCapacity(Map consumedCapacity) { + if (consumedCapacity == null) { + this.consumedCapacity = null; + } else { + this.consumedCapacity = new LinkedHashMap(consumedCapacity); + } + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + 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(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 class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + + V1beta1DeviceTolerationBuilder builder; + int index; + + TolerationsNested(int index,V1beta1DeviceToleration item) { + this.index = index; + this.builder = new V1beta1DeviceTolerationBuilder(this, item); + } + + 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..0e1d491815 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java @@ -0,0 +1,41 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceRequestBuilder extends V1beta1DeviceRequestFluent implements VisitableBuilder{ + + V1beta1DeviceRequestFluent fluent; + + public V1beta1DeviceRequestBuilder() { + this(new V1beta1DeviceRequest()); + } + + public V1beta1DeviceRequestBuilder(V1beta1DeviceRequestFluent fluent) { + this(fluent, new V1beta1DeviceRequest()); + } + + public V1beta1DeviceRequestBuilder(V1beta1DeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceRequestBuilder(V1beta1DeviceRequestFluent fluent,V1beta1DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceRequest build() { + V1beta1DeviceRequest buildable = new V1beta1DeviceRequest(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); + 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..20fc7a7f1e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java @@ -0,0 +1,960 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceRequestFluent> extends BaseFluent{ + + private Boolean adminAccess; + private String allocationMode; + private V1beta1CapacityRequirementsBuilder capacity; + private Long count; + private String deviceClassName; + private ArrayList firstAvailable; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + public V1beta1DeviceRequestFluent() { + } + + public V1beta1DeviceRequestFluent(V1beta1DeviceRequest instance) { + this.copyInstance(instance); + } + + 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 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 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 FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1beta1DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public A addToFirstAvailable(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 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 addToSelectors(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 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 addToTolerations(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 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 V1beta1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + 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 V1beta1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta1DeviceSubRequest buildLastFirstAvailable() { + return this.firstAvailable.get(firstAvailable.size() - 1).build(); + } + + public V1beta1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta1DeviceSubRequest buildMatchingFirstAvailable(Predicate predicate) { + for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + protected void copyInstance(V1beta1DeviceRequest instance) { + instance = instance != null ? instance : new V1beta1DeviceRequest(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + 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 CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (firstAvailable.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(0, this.buildFirstAvailable(0)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i = 0;i < firstAvailable.size();i++) { + if (predicate.test(firstAvailable.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta1CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1beta1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceRequestFluent that = (V1beta1DeviceRequestFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(firstAvailable, that.firstAvailable))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public Long getCount() { + return this.count; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public String getName() { + return this.name; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1beta1DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, firstAvailable, name, selectors, tolerations); + } + + 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 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 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 removeFromFirstAvailable(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 removeFromSelectors(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 removeFromTolerations(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 removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) { + return (A) this; + } + Iterator each = firstAvailable.iterator(); + 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 A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + 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 A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + 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 FirstAvailableNested setNewFirstAvailableLike(int index,V1beta1DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + 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 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(adminAccess == null)) { + sb.append("adminAccess:"); + sb.append(adminAccess); + sb.append(","); + } + if (!(allocationMode == null)) { + sb.append("allocationMode:"); + sb.append(allocationMode); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(deviceClassName == null)) { + sb.append("deviceClassName:"); + sb.append(deviceClassName); + sb.append(","); + } + if (!(firstAvailable == null) && !(firstAvailable.isEmpty())) { + sb.append("firstAvailable:"); + sb.append(firstAvailable); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdminAccess() { + return withAdminAccess(true); + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1beta1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + 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(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 A withName(String name) { + this.name = name; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { + return new CapacityNested(item); + } + + 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(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 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(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 class CapacityNested extends V1beta1CapacityRequirementsFluent> implements Nested{ + + V1beta1CapacityRequirementsBuilder builder; + + CapacityNested(V1beta1CapacityRequirements item) { + this.builder = new V1beta1CapacityRequirementsBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } + public class FirstAvailableNested extends V1beta1DeviceSubRequestFluent> implements Nested{ + + V1beta1DeviceSubRequestBuilder builder; + int index; + + FirstAvailableNested(int index,V1beta1DeviceSubRequest item) { + this.index = index; + this.builder = new V1beta1DeviceSubRequestBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.setToFirstAvailable(index, builder.build()); + } + + public N endFirstAvailable() { + return and(); + } + + } + public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ + + V1beta1DeviceSelectorBuilder builder; + int index; + + SelectorsNested(int index,V1beta1DeviceSelector item) { + this.index = index; + this.builder = new V1beta1DeviceSelectorBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceRequestFluent.this.setToSelectors(index, builder.build()); + } + + public N endSelector() { + return and(); + } + + } + public class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + + V1beta1DeviceTolerationBuilder builder; + int index; + + TolerationsNested(int index,V1beta1DeviceToleration item) { + this.index = index; + this.builder = new V1beta1DeviceTolerationBuilder(this, item); + } + + 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..8029d3fc15 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceSelectorBuilder extends V1beta1DeviceSelectorFluent implements VisitableBuilder{ + + V1beta1DeviceSelectorFluent fluent; + + public V1beta1DeviceSelectorBuilder() { + this(new V1beta1DeviceSelector()); + } + + public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelectorFluent fluent) { + this(fluent, new V1beta1DeviceSelector()); + } + + public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceSelectorBuilder(V1beta1DeviceSelectorFluent fluent,V1beta1DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..4ee804c7d7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceSelectorFluent> extends BaseFluent{ + + private V1beta1CELDeviceSelectorBuilder cel; + + public V1beta1DeviceSelectorFluent() { + } + + public V1beta1DeviceSelectorFluent(V1beta1DeviceSelector instance) { + this.copyInstance(instance); + } + + public V1beta1CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } + + protected void copyInstance(V1beta1DeviceSelector instance) { + instance = instance != null ? instance : new V1beta1DeviceSelector(); + if (instance != null) { + this.withCel(instance.getCel()); + } + } + + public CelNested editCel() { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); + } + + public CelNested editOrNewCel() { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(new V1beta1CELDeviceSelectorBuilder().build())); + } + + public CelNested editOrNewCelLike(V1beta1CELDeviceSelector item) { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceSelectorFluent that = (V1beta1DeviceSelectorFluent) o; + if (!(Objects.equals(cel, that.cel))) { + return false; + } + return true; + } + + public boolean hasCel() { + return this.cel != null; + } + + public int hashCode() { + return Objects.hash(cel); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cel == null)) { + sb.append("cel:"); + sb.append(cel); + } + sb.append("}"); + return sb.toString(); + } + + 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 CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1beta1CELDeviceSelector item) { + return new CelNested(item); + } + public class CelNested extends V1beta1CELDeviceSelectorFluent> implements Nested{ + + V1beta1CELDeviceSelectorBuilder builder; + + CelNested(V1beta1CELDeviceSelector item) { + this.builder = new V1beta1CELDeviceSelectorBuilder(this, item); + } + + 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..0427800ec4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceSubRequestBuilder extends V1beta1DeviceSubRequestFluent implements VisitableBuilder{ + + V1beta1DeviceSubRequestFluent fluent; + + public V1beta1DeviceSubRequestBuilder() { + this(new V1beta1DeviceSubRequest()); + } + + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequestFluent fluent) { + this(fluent, new V1beta1DeviceSubRequest()); + } + + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceSubRequestBuilder(V1beta1DeviceSubRequestFluent fluent,V1beta1DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1DeviceSubRequest build() { + V1beta1DeviceSubRequest buildable = new V1beta1DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); + 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..09ad782631 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java @@ -0,0 +1,695 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceSubRequestFluent> extends BaseFluent{ + + private String allocationMode; + private V1beta1CapacityRequirementsBuilder capacity; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + public V1beta1DeviceSubRequestFluent() { + } + + public V1beta1DeviceSubRequestFluent(V1beta1DeviceSubRequest instance) { + this.copyInstance(instance); + } + + 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 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 SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta1DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta1DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public A addToSelectors(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 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 addToTolerations(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 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 V1beta1CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public V1beta1DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta1DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta1DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta1DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta1DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta1DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + protected void copyInstance(V1beta1DeviceSubRequest instance) { + instance = instance != null ? instance : new V1beta1DeviceSubRequest(); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta1CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1beta1CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceSubRequestFluent that = (V1beta1DeviceSubRequestFluent) o; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public Long getCount() { + return this.count; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public String getName() { + return this.name; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta1DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta1DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + } + + 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 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 removeFromSelectors(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 removeFromTolerations(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 removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + 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 A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + 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 SelectorsNested setNewSelectorLike(int index,V1beta1DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta1DeviceToleration item) { + return new TolerationsNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationMode == null)) { + sb.append("allocationMode:"); + sb.append(allocationMode); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(deviceClassName == null)) { + sb.append("deviceClassName:"); + sb.append(deviceClassName); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1beta1CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta1CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta1CapacityRequirements item) { + return new CapacityNested(item); + } + + 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(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 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(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 class CapacityNested extends V1beta1CapacityRequirementsFluent> implements Nested{ + + V1beta1CapacityRequirementsBuilder builder; + + CapacityNested(V1beta1CapacityRequirements item) { + this.builder = new V1beta1CapacityRequirementsBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceSubRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } + public class SelectorsNested extends V1beta1DeviceSelectorFluent> implements Nested{ + + V1beta1DeviceSelectorBuilder builder; + int index; + + SelectorsNested(int index,V1beta1DeviceSelector item) { + this.index = index; + this.builder = new V1beta1DeviceSelectorBuilder(this, item); + } + + public N and() { + return (N) V1beta1DeviceSubRequestFluent.this.setToSelectors(index, builder.build()); + } + + public N endSelector() { + return and(); + } + + } + public class TolerationsNested extends V1beta1DeviceTolerationFluent> implements Nested{ + + V1beta1DeviceTolerationBuilder builder; + int index; + + TolerationsNested(int index,V1beta1DeviceToleration item) { + this.index = index; + this.builder = new V1beta1DeviceTolerationBuilder(this, item); + } + + 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..daf42a2147 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceTaintBuilder extends V1beta1DeviceTaintFluent implements VisitableBuilder{ + + V1beta1DeviceTaintFluent fluent; + + public V1beta1DeviceTaintBuilder() { + this(new V1beta1DeviceTaint()); + } + + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaintFluent fluent) { + this(fluent, new V1beta1DeviceTaint()); + } + + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceTaintBuilder(V1beta1DeviceTaintFluent fluent,V1beta1DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..892d606258 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java @@ -0,0 +1,147 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceTaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + public V1beta1DeviceTaintFluent() { + } + + public V1beta1DeviceTaintFluent(V1beta1DeviceTaint instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceTaintFluent that = (V1beta1DeviceTaintFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(effect, key, timeAdded, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + +} \ 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..eef3c1800b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1DeviceTolerationBuilder extends V1beta1DeviceTolerationFluent implements VisitableBuilder{ + + V1beta1DeviceTolerationFluent fluent; + + public V1beta1DeviceTolerationBuilder() { + this(new V1beta1DeviceToleration()); + } + + public V1beta1DeviceTolerationBuilder(V1beta1DeviceTolerationFluent fluent) { + this(fluent, new V1beta1DeviceToleration()); + } + + public V1beta1DeviceTolerationBuilder(V1beta1DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1DeviceTolerationBuilder(V1beta1DeviceTolerationFluent fluent,V1beta1DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b03ab7d49c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java @@ -0,0 +1,170 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1DeviceTolerationFluent> extends BaseFluent{ + + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + public V1beta1DeviceTolerationFluent() { + } + + public V1beta1DeviceTolerationFluent(V1beta1DeviceToleration instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1DeviceTolerationFluent that = (V1beta1DeviceTolerationFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(tolerationSeconds, that.tolerationSeconds))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public String getOperator() { + return this.operator; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(effect, key, operator, tolerationSeconds, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(tolerationSeconds == null)) { + sb.append("tolerationSeconds:"); + sb.append(tolerationSeconds); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningBuilder.java deleted file mode 100644 index 19778b58eb..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningBuilder.java +++ /dev/null @@ -1,32 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ExpressionWarningBuilder extends V1beta1ExpressionWarningFluent implements VisitableBuilder{ - public V1beta1ExpressionWarningBuilder() { - this(new V1beta1ExpressionWarning()); - } - - public V1beta1ExpressionWarningBuilder(V1beta1ExpressionWarningFluent fluent) { - this(fluent, new V1beta1ExpressionWarning()); - } - - public V1beta1ExpressionWarningBuilder(V1beta1ExpressionWarningFluent fluent,V1beta1ExpressionWarning instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ExpressionWarningBuilder(V1beta1ExpressionWarning instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ExpressionWarningFluent fluent; - - public V1beta1ExpressionWarning build() { - V1beta1ExpressionWarning buildable = new V1beta1ExpressionWarning(); - 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/V1beta1ExpressionWarningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningFluent.java deleted file mode 100644 index 8343d88e29..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarningFluent.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 V1beta1ExpressionWarningFluent> extends BaseFluent{ - public V1beta1ExpressionWarningFluent() { - } - - public V1beta1ExpressionWarningFluent(V1beta1ExpressionWarning instance) { - this.copyInstance(instance); - } - private String fieldRef; - private String warning; - - protected void copyInstance(V1beta1ExpressionWarning instance) { - instance = (instance != null ? instance : new V1beta1ExpressionWarning()); - 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; - V1beta1ExpressionWarningFluent that = (V1beta1ExpressionWarningFluent) 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/V1beta1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java new file mode 100644 index 0000000000..10af9cad24 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1IPAddressBuilder extends V1beta1IPAddressFluent implements VisitableBuilder{ + + V1beta1IPAddressFluent fluent; + + public V1beta1IPAddressBuilder() { + this(new V1beta1IPAddress()); + } + + public V1beta1IPAddressBuilder(V1beta1IPAddressFluent fluent) { + this(fluent, new V1beta1IPAddress()); + } + + public V1beta1IPAddressBuilder(V1beta1IPAddress instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1IPAddressBuilder(V1beta1IPAddressFluent fluent,V1beta1IPAddress instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..005ea0cb16 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1IPAddressFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1IPAddressSpecBuilder spec; + + public V1beta1IPAddressFluent() { + } + + public V1beta1IPAddressFluent(V1beta1IPAddress instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1IPAddressSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1IPAddressSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1IPAddressSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1IPAddressFluent that = (V1beta1IPAddressFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1IPAddressSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1IPAddressFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1IPAddressSpecFluent> implements Nested{ + + V1beta1IPAddressSpecBuilder builder; + + SpecNested(V1beta1IPAddressSpec item) { + this.builder = new V1beta1IPAddressSpecBuilder(this, item); + } + + 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..19f7b48c23 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1IPAddressListBuilder extends V1beta1IPAddressListFluent implements VisitableBuilder{ + + V1beta1IPAddressListFluent fluent; + + public V1beta1IPAddressListBuilder() { + this(new V1beta1IPAddressList()); + } + + public V1beta1IPAddressListBuilder(V1beta1IPAddressListFluent fluent) { + this(fluent, new V1beta1IPAddressList()); + } + + public V1beta1IPAddressListBuilder(V1beta1IPAddressList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1IPAddressListBuilder(V1beta1IPAddressListFluent fluent,V1beta1IPAddressList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..53ce13e1e8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1IPAddressListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1IPAddressListFluent() { + } + + public V1beta1IPAddressListFluent(V1beta1IPAddressList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1IPAddress item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta1IPAddress buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1IPAddress buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1IPAddressListFluent that = (V1beta1IPAddressListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1IPAddressBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta1IPAddress item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1IPAddressFluent> implements Nested{ + + V1beta1IPAddressBuilder builder; + int index; + + ItemsNested(int index,V1beta1IPAddress item) { + this.index = index; + this.builder = new V1beta1IPAddressBuilder(this, item); + } + + public N and() { + return (N) V1beta1IPAddressListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..9710417637 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1IPAddressSpecBuilder extends V1beta1IPAddressSpecFluent implements VisitableBuilder{ + + V1beta1IPAddressSpecFluent fluent; + + public V1beta1IPAddressSpecBuilder() { + this(new V1beta1IPAddressSpec()); + } + + public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpecFluent fluent) { + this(fluent, new V1beta1IPAddressSpec()); + } + + public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1IPAddressSpecBuilder(V1beta1IPAddressSpecFluent fluent,V1beta1IPAddressSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..ebe082e5e3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1IPAddressSpecFluent> extends BaseFluent{ + + private V1beta1ParentReferenceBuilder parentRef; + + public V1beta1IPAddressSpecFluent() { + } + + public V1beta1IPAddressSpecFluent(V1beta1IPAddressSpec instance) { + this.copyInstance(instance); + } + + public V1beta1ParentReference buildParentRef() { + return this.parentRef != null ? this.parentRef.build() : null; + } + + protected void copyInstance(V1beta1IPAddressSpec instance) { + instance = instance != null ? instance : new V1beta1IPAddressSpec(); + if (instance != null) { + this.withParentRef(instance.getParentRef()); + } + } + + public ParentRefNested editOrNewParentRef() { + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(new V1beta1ParentReferenceBuilder().build())); + } + + public ParentRefNested editOrNewParentRefLike(V1beta1ParentReference item) { + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(item)); + } + + public ParentRefNested editParentRef() { + return this.withNewParentRefLike(Optional.ofNullable(this.buildParentRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1IPAddressSpecFluent that = (V1beta1IPAddressSpecFluent) o; + if (!(Objects.equals(parentRef, that.parentRef))) { + return false; + } + return true; + } + + public boolean hasParentRef() { + return this.parentRef != null; + } + + public int hashCode() { + return Objects.hash(parentRef); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(parentRef == null)) { + sb.append("parentRef:"); + sb.append(parentRef); + } + sb.append("}"); + return sb.toString(); + } + + public ParentRefNested withNewParentRef() { + return new ParentRefNested(null); + } + + public ParentRefNested withNewParentRefLike(V1beta1ParentReference item) { + return new ParentRefNested(item); + } + + 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 class ParentRefNested extends V1beta1ParentReferenceFluent> implements Nested{ + + V1beta1ParentReferenceBuilder builder; + + ParentRefNested(V1beta1ParentReference item) { + this.builder = new V1beta1ParentReferenceBuilder(this, item); + } + + 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/V1beta1JSONPatchBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java new file mode 100644 index 0000000000..f441187d56 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1JSONPatchBuilder extends V1beta1JSONPatchFluent implements VisitableBuilder{ + + V1beta1JSONPatchFluent fluent; + + public V1beta1JSONPatchBuilder() { + this(new V1beta1JSONPatch()); + } + + public V1beta1JSONPatchBuilder(V1beta1JSONPatchFluent fluent) { + this(fluent, new V1beta1JSONPatch()); + } + + public V1beta1JSONPatchBuilder(V1beta1JSONPatch instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1JSONPatchBuilder(V1beta1JSONPatchFluent fluent,V1beta1JSONPatch instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1JSONPatch build() { + V1beta1JSONPatch buildable = new V1beta1JSONPatch(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java new file mode 100644 index 0000000000..e944ad4b09 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java @@ -0,0 +1,77 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1JSONPatchFluent> extends BaseFluent{ + + private String expression; + + public V1beta1JSONPatchFluent() { + } + + public V1beta1JSONPatchFluent(V1beta1JSONPatch instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1JSONPatch instance) { + instance = instance != null ? instance : new V1beta1JSONPatch(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1JSONPatchFluent that = (V1beta1JSONPatchFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + +} \ 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..fa36de2ee3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1LeaseCandidateBuilder extends V1beta1LeaseCandidateFluent implements VisitableBuilder{ + + V1beta1LeaseCandidateFluent fluent; + + public V1beta1LeaseCandidateBuilder() { + this(new V1beta1LeaseCandidate()); + } + + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidateFluent fluent) { + this(fluent, new V1beta1LeaseCandidate()); + } + + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidate instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1LeaseCandidateBuilder(V1beta1LeaseCandidateFluent fluent,V1beta1LeaseCandidate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..08dca52042 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1LeaseCandidateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1LeaseCandidateSpecBuilder spec; + + public V1beta1LeaseCandidateFluent() { + } + + public V1beta1LeaseCandidateFluent(V1beta1LeaseCandidate instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1LeaseCandidateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1LeaseCandidateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1LeaseCandidateSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1LeaseCandidateFluent that = (V1beta1LeaseCandidateFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1LeaseCandidateSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1LeaseCandidateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1LeaseCandidateSpecFluent> implements Nested{ + + V1beta1LeaseCandidateSpecBuilder builder; + + SpecNested(V1beta1LeaseCandidateSpec item) { + this.builder = new V1beta1LeaseCandidateSpecBuilder(this, item); + } + + 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..0c712c2d32 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1LeaseCandidateListBuilder extends V1beta1LeaseCandidateListFluent implements VisitableBuilder{ + + V1beta1LeaseCandidateListFluent fluent; + + public V1beta1LeaseCandidateListBuilder() { + this(new V1beta1LeaseCandidateList()); + } + + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateListFluent fluent) { + this(fluent, new V1beta1LeaseCandidateList()); + } + + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1LeaseCandidateListBuilder(V1beta1LeaseCandidateListFluent fluent,V1beta1LeaseCandidateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..65e8974498 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1LeaseCandidateListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1LeaseCandidateListFluent() { + } + + public V1beta1LeaseCandidateListFluent(V1beta1LeaseCandidateList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1LeaseCandidate item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta1LeaseCandidate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1LeaseCandidate buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1LeaseCandidateListFluent that = (V1beta1LeaseCandidateListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1LeaseCandidateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta1LeaseCandidate item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1LeaseCandidateFluent> implements Nested{ + + V1beta1LeaseCandidateBuilder builder; + int index; + + ItemsNested(int index,V1beta1LeaseCandidate item) { + this.index = index; + this.builder = new V1beta1LeaseCandidateBuilder(this, item); + } + + public N and() { + return (N) V1beta1LeaseCandidateListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..d5ea0072d3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java @@ -0,0 +1,38 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1LeaseCandidateSpecBuilder extends V1beta1LeaseCandidateSpecFluent implements VisitableBuilder{ + + V1beta1LeaseCandidateSpecFluent fluent; + + public V1beta1LeaseCandidateSpecBuilder() { + this(new V1beta1LeaseCandidateSpec()); + } + + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpecFluent fluent) { + this(fluent, new V1beta1LeaseCandidateSpec()); + } + + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1LeaseCandidateSpecBuilder(V1beta1LeaseCandidateSpecFluent fluent,V1beta1LeaseCandidateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b8b7717df4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java @@ -0,0 +1,193 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1LeaseCandidateSpecFluent> extends BaseFluent{ + + private String binaryVersion; + private String emulationVersion; + private String leaseName; + private OffsetDateTime pingTime; + private OffsetDateTime renewTime; + private String strategy; + + public V1beta1LeaseCandidateSpecFluent() { + } + + public V1beta1LeaseCandidateSpecFluent(V1beta1LeaseCandidateSpec instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1LeaseCandidateSpecFluent that = (V1beta1LeaseCandidateSpecFluent) o; + if (!(Objects.equals(binaryVersion, that.binaryVersion))) { + return false; + } + if (!(Objects.equals(emulationVersion, that.emulationVersion))) { + return false; + } + if (!(Objects.equals(leaseName, that.leaseName))) { + return false; + } + if (!(Objects.equals(pingTime, that.pingTime))) { + return false; + } + if (!(Objects.equals(renewTime, that.renewTime))) { + return false; + } + if (!(Objects.equals(strategy, that.strategy))) { + return false; + } + return true; + } + + public String getBinaryVersion() { + return this.binaryVersion; + } + + public String getEmulationVersion() { + return this.emulationVersion; + } + + public String getLeaseName() { + return this.leaseName; + } + + public OffsetDateTime getPingTime() { + return this.pingTime; + } + + public OffsetDateTime getRenewTime() { + return this.renewTime; + } + + public String getStrategy() { + return this.strategy; + } + + public boolean hasBinaryVersion() { + return this.binaryVersion != null; + } + + public boolean hasEmulationVersion() { + return this.emulationVersion != null; + } + + public boolean hasLeaseName() { + return this.leaseName != null; + } + + public boolean hasPingTime() { + return this.pingTime != null; + } + + public boolean hasRenewTime() { + return this.renewTime != null; + } + + public boolean hasStrategy() { + return this.strategy != null; + } + + public int hashCode() { + return Objects.hash(binaryVersion, emulationVersion, leaseName, pingTime, renewTime, strategy); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(binaryVersion == null)) { + sb.append("binaryVersion:"); + sb.append(binaryVersion); + sb.append(","); + } + if (!(emulationVersion == null)) { + sb.append("emulationVersion:"); + sb.append(emulationVersion); + sb.append(","); + } + if (!(leaseName == null)) { + sb.append("leaseName:"); + sb.append(leaseName); + sb.append(","); + } + if (!(pingTime == null)) { + sb.append("pingTime:"); + sb.append(pingTime); + sb.append(","); + } + if (!(renewTime == null)) { + sb.append("renewTime:"); + sb.append(renewTime); + sb.append(","); + } + if (!(strategy == null)) { + sb.append("strategy:"); + sb.append(strategy); + } + sb.append("}"); + return sb.toString(); + } + + public A withBinaryVersion(String binaryVersion) { + this.binaryVersion = binaryVersion; + return (A) this; + } + + public A withEmulationVersion(String emulationVersion) { + this.emulationVersion = emulationVersion; + return (A) this; + } + + public A withLeaseName(String leaseName) { + this.leaseName = leaseName; + return (A) this; + } + + public A withPingTime(OffsetDateTime pingTime) { + this.pingTime = pingTime; + return (A) this; + } + + public A withRenewTime(OffsetDateTime renewTime) { + this.renewTime = renewTime; + return (A) this; + } + + public A withStrategy(String strategy) { + this.strategy = strategy; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java index 60d6b67652..91f538dc97 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1MatchConditionBuilder extends V1beta1MatchConditionFluent implements VisitableBuilder{ + + V1beta1MatchConditionFluent fluent; + public V1beta1MatchConditionBuilder() { this(new V1beta1MatchCondition()); } @@ -10,17 +14,16 @@ public V1beta1MatchConditionBuilder(V1beta1MatchConditionFluent fluent) { this(fluent, new V1beta1MatchCondition()); } - public V1beta1MatchConditionBuilder(V1beta1MatchConditionFluent fluent,V1beta1MatchCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MatchConditionBuilder(V1beta1MatchCondition instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MatchConditionFluent fluent; + public V1beta1MatchConditionBuilder(V1beta1MatchConditionFluent fluent,V1beta1MatchCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MatchCondition build() { V1beta1MatchCondition buildable = new V1beta1MatchCondition(); buildable.setExpression(fluent.getExpression()); @@ -28,5 +31,4 @@ public V1beta1MatchCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java index 314a60cb9c..8ea179ca2e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1MatchConditionFluent> extends BaseFluent{ +public class V1beta1MatchConditionFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1beta1MatchConditionFluent() { } public V1beta1MatchConditionFluent(V1beta1MatchCondition instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1beta1MatchCondition instance) { - instance = (instance != null ? instance : new V1beta1MatchCondition()); + instance = instance != null ? instance : new V1beta1MatchCondition(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MatchConditionFluent that = (V1beta1MatchConditionFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasExpression() { - return this.expression != null; + public String getExpression() { + return this.expression; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasExpression() { + return this.expression != null; } 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; - V1beta1MatchConditionFluent that = (V1beta1MatchConditionFluent) 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()); + return Objects.hash(expression, name); } 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); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java index 15a160c6b2..472e29112d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1MatchResourcesBuilder extends V1beta1MatchResourcesFluent implements VisitableBuilder{ + + V1beta1MatchResourcesFluent fluent; + public V1beta1MatchResourcesBuilder() { this(new V1beta1MatchResources()); } @@ -10,17 +14,16 @@ public V1beta1MatchResourcesBuilder(V1beta1MatchResourcesFluent fluent) { this(fluent, new V1beta1MatchResources()); } - public V1beta1MatchResourcesBuilder(V1beta1MatchResourcesFluent fluent,V1beta1MatchResources instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1MatchResourcesBuilder(V1beta1MatchResources instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1MatchResourcesFluent fluent; + public V1beta1MatchResourcesBuilder(V1beta1MatchResourcesFluent fluent,V1beta1MatchResources instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1MatchResources build() { V1beta1MatchResources buildable = new V1beta1MatchResources(); buildable.setExcludeResourceRules(fluent.buildExcludeResourceRules()); @@ -31,5 +34,4 @@ public V1beta1MatchResources build() { return buildable; } - } \ 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..e501e2966b 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 @@ -1,109 +1,157 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1MatchResourcesFluent> extends BaseFluent{ +public class V1beta1MatchResourcesFluent> extends BaseFluent{ + + private ArrayList excludeResourceRules; + private String matchPolicy; + private V1LabelSelectorBuilder namespaceSelector; + private V1LabelSelectorBuilder objectSelector; + private ArrayList resourceRules; + public V1beta1MatchResourcesFluent() { } public V1beta1MatchResourcesFluent(V1beta1MatchResources instance) { this.copyInstance(instance); } - private ArrayList excludeResourceRules; - private String matchPolicy; - private V1LabelSelectorBuilder namespaceSelector; - private V1LabelSelectorBuilder objectSelector; - private ArrayList resourceRules; + + public A addAllToExcludeResourceRules(Collection items) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; + } - protected void copyInstance(V1beta1MatchResources instance) { - instance = (instance != null ? instance : new V1beta1MatchResources()); - 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 addAllToResourceRules(Collection items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public ExcludeResourceRulesNested addNewExcludeResourceRule() { + return new ExcludeResourceRulesNested(-1, null); } - 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);} - return (A)this; + public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1beta1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(-1, item); } - public A addToExcludeResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + public ResourceRulesNested addNewResourceRule() { + return new ResourceRulesNested(-1, null); } - public A addAllToExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) {this.excludeResourceRules = new ArrayList();} - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").add(builder);this.excludeResourceRules.add(builder);} return (A)this; + public ResourceRulesNested addNewResourceRuleLike(V1beta1NamedRuleWithOperations item) { + return new ResourceRulesNested(-1, item); } - public A removeFromExcludeResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + public A addToExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = new ArrayList(); + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); + } + return (A) this; } - public A removeAllFromExcludeResourceRules(Collection items) { - if (this.excludeResourceRules == null) return (A)this; - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("excludeResourceRules").remove(builder); this.excludeResourceRules.remove(builder);} return (A)this; + 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(builder); + excludeResourceRules.add(index, 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()) { - V1beta1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A addToResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + this.resourceRules = new ArrayList(); } - return (A)this; + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); + } + return (A) this; } - public List buildExcludeResourceRules() { - return this.excludeResourceRules != null ? build(excludeResourceRules) : null; + 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(builder); + resourceRules.add(index, builder); + } + return (A) this; } public V1beta1NamedRuleWithOperations buildExcludeResourceRule(int index) { return this.excludeResourceRules.get(index).build(); } + public List buildExcludeResourceRules() { + return this.excludeResourceRules != null ? build(excludeResourceRules) : null; + } + public V1beta1NamedRuleWithOperations buildFirstExcludeResourceRule() { return this.excludeResourceRules.get(0).build(); } + public V1beta1NamedRuleWithOperations buildFirstResourceRule() { + return this.resourceRules.get(0).build(); + } + public V1beta1NamedRuleWithOperations buildLastExcludeResourceRule() { return this.excludeResourceRules.get(excludeResourceRules.size() - 1).build(); } + public V1beta1NamedRuleWithOperations buildLastResourceRule() { + return this.resourceRules.get(resourceRules.size() - 1).build(); + } + public V1beta1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate predicate) { for (V1beta1NamedRuleWithOperationsBuilder item : excludeResourceRules) { if (predicate.test(item)) { @@ -113,257 +161,433 @@ public V1beta1NamedRuleWithOperations buildMatchingExcludeResourceRule(Predicate return null; } - public boolean hasMatchingExcludeResourceRule(Predicate predicate) { - for (V1beta1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + public V1beta1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { + for (V1beta1NamedRuleWithOperationsBuilder item : resourceRules) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withExcludeResourceRules(List excludeResourceRules) { - if (this.excludeResourceRules != null) { - this._visitables.get("excludeResourceRules").clear(); + public V1LabelSelector buildNamespaceSelector() { + return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + } + + public V1LabelSelector buildObjectSelector() { + return this.objectSelector != null ? this.objectSelector.build() : null; + } + + public V1beta1NamedRuleWithOperations buildResourceRule(int index) { + return this.resourceRules.get(index).build(); + } + + public List buildResourceRules() { + return this.resourceRules != null ? build(resourceRules) : null; + } + + protected void copyInstance(V1beta1MatchResources instance) { + instance = instance != null ? instance : new V1beta1MatchResources(); + if (instance != null) { + this.withExcludeResourceRules(instance.getExcludeResourceRules()); + this.withMatchPolicy(instance.getMatchPolicy()); + this.withNamespaceSelector(instance.getNamespaceSelector()); + this.withObjectSelector(instance.getObjectSelector()); + this.withResourceRules(instance.getResourceRules()); } - if (excludeResourceRules != null) { - this.excludeResourceRules = new ArrayList(); - for (V1beta1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); - } - } else { - this.excludeResourceRules = null; + } + + public ExcludeResourceRulesNested editExcludeResourceRule(int index) { + if (excludeResourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "excludeResourceRules")); } - return (A) this; + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } - public A withExcludeResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... excludeResourceRules) { - if (this.excludeResourceRules != null) { - this.excludeResourceRules.clear(); - _visitables.remove("excludeResourceRules"); + public ExcludeResourceRulesNested editFirstExcludeResourceRule() { + if (excludeResourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "excludeResourceRules")); } - if (excludeResourceRules != null) { - for (V1beta1NamedRuleWithOperations item : excludeResourceRules) { - this.addToExcludeResourceRules(item); + return this.setNewExcludeResourceRuleLike(0, this.buildExcludeResourceRule(0)); + } + + public ResourceRulesNested editFirstResourceRule() { + if (resourceRules.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(0, this.buildResourceRule(0)); + } + + public ExcludeResourceRulesNested editLastExcludeResourceRule() { + int index = excludeResourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); + } + + public ResourceRulesNested editLastResourceRule() { + int index = resourceRules.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + + public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < excludeResourceRules.size();i++) { + if (predicate.test(excludeResourceRules.get(i))) { + index = i; + break; } } - return (A) this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "excludeResourceRules")); + } + return this.setNewExcludeResourceRuleLike(index, this.buildExcludeResourceRule(index)); } - public boolean hasExcludeResourceRules() { - return this.excludeResourceRules != null && !this.excludeResourceRules.isEmpty(); + public ResourceRulesNested editMatchingResourceRule(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceRules.size();i++) { + if (predicate.test(resourceRules.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); } - public ExcludeResourceRulesNested addNewExcludeResourceRule() { - return new ExcludeResourceRulesNested(-1, null); + public NamespaceSelectorNested editNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(null)); } - public ExcludeResourceRulesNested addNewExcludeResourceRuleLike(V1beta1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(-1, item); + public ObjectSelectorNested editObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(null)); } - public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1beta1NamedRuleWithOperations item) { - return new ExcludeResourceRulesNested(index, item); + public NamespaceSelectorNested editOrNewNamespaceSelector() { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); } - 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 NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { + return this.withNewNamespaceSelectorLike(Optional.ofNullable(this.buildNamespaceSelector()).orElse(item)); } - 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 ObjectSelectorNested editOrNewObjectSelector() { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); } - 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 ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { + return this.withNewObjectSelectorLike(Optional.ofNullable(this.buildObjectSelector()).orElse(item)); } - public ExcludeResourceRulesNested editMatchingExcludeResourceRule(Predicate predicate) { - int index = -1; - for (int i=0;i editResourceRule(int index) { + if (resourceRules.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceRules")); + } + return this.setNewResourceRuleLike(index, this.buildResourceRule(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MatchResourcesFluent that = (V1beta1MatchResourcesFluent) o; + if (!(Objects.equals(excludeResourceRules, that.excludeResourceRules))) { + return false; + } + if (!(Objects.equals(matchPolicy, that.matchPolicy))) { + return false; + } + if (!(Objects.equals(namespaceSelector, that.namespaceSelector))) { + return false; + } + if (!(Objects.equals(objectSelector, that.objectSelector))) { + return false; + } + if (!(Objects.equals(resourceRules, that.resourceRules))) { + return false; + } + return true; } public String getMatchPolicy() { return this.matchPolicy; } - public A withMatchPolicy(String matchPolicy) { - this.matchPolicy = matchPolicy; - return (A) this; + public boolean hasExcludeResourceRules() { + return this.excludeResourceRules != null && !(this.excludeResourceRules.isEmpty()); } public boolean hasMatchPolicy() { return this.matchPolicy != null; } - public V1LabelSelector buildNamespaceSelector() { - return this.namespaceSelector != null ? this.namespaceSelector.build() : null; + public boolean hasMatchingExcludeResourceRule(Predicate predicate) { + for (V1beta1NamedRuleWithOperationsBuilder item : excludeResourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } - public A withNamespaceSelector(V1LabelSelector namespaceSelector) { - this._visitables.remove("namespaceSelector"); - if (namespaceSelector != null) { - this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); - this._visitables.get("namespaceSelector").add(this.namespaceSelector); - } else { - this.namespaceSelector = null; - this._visitables.get("namespaceSelector").remove(this.namespaceSelector); - } - return (A) this; + public boolean hasMatchingResourceRule(Predicate predicate) { + for (V1beta1NamedRuleWithOperationsBuilder item : resourceRules) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasNamespaceSelector() { return this.namespaceSelector != null; } - public NamespaceSelectorNested 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 boolean hasObjectSelector() { + return this.objectSelector != null; } - public NamespaceSelectorNested editOrNewNamespaceSelector() { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(new V1LabelSelectorBuilder().build())); + public boolean hasResourceRules() { + return this.resourceRules != null && !(this.resourceRules.isEmpty()); } - public NamespaceSelectorNested editOrNewNamespaceSelectorLike(V1LabelSelector item) { - return withNewNamespaceSelectorLike(java.util.Optional.ofNullable(buildNamespaceSelector()).orElse(item)); + public int hashCode() { + return Objects.hash(excludeResourceRules, matchPolicy, namespaceSelector, objectSelector, resourceRules); } - public V1LabelSelector buildObjectSelector() { - return this.objectSelector != null ? this.objectSelector.build() : null; + public A removeAllFromExcludeResourceRules(Collection items) { + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } - 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); + public A removeAllFromResourceRules(Collection items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); } return (A) this; } - public boolean hasObjectSelector() { - return this.objectSelector != null; + public A removeFromExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.excludeResourceRules == null) { + return (A) this; + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("excludeResourceRules").remove(builder); + this.excludeResourceRules.remove(builder); + } + return (A) this; } - public ObjectSelectorNested withNewObjectSelector() { - return new ObjectSelectorNested(null); + public A removeFromResourceRules(V1beta1NamedRuleWithOperations... items) { + if (this.resourceRules == null) { + return (A) this; + } + for (V1beta1NamedRuleWithOperations item : items) { + V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); + _visitables.get("resourceRules").remove(builder); + this.resourceRules.remove(builder); + } + return (A) this; } - public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { - return new ObjectSelectorNested(item); + public A removeMatchingFromExcludeResourceRules(Predicate predicate) { + if (excludeResourceRules == null) { + return (A) this; + } + Iterator each = excludeResourceRules.iterator(); + List visitables = _visitables.get("excludeResourceRules"); + while (each.hasNext()) { + V1beta1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ObjectSelectorNested editObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(null)); + public A removeMatchingFromResourceRules(Predicate predicate) { + if (resourceRules == null) { + return (A) this; + } + Iterator each = resourceRules.iterator(); + List visitables = _visitables.get("resourceRules"); + while (each.hasNext()) { + V1beta1NamedRuleWithOperationsBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public ObjectSelectorNested editOrNewObjectSelector() { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(new V1LabelSelectorBuilder().build())); + public ExcludeResourceRulesNested setNewExcludeResourceRuleLike(int index,V1beta1NamedRuleWithOperations item) { + return new ExcludeResourceRulesNested(index, item); } - public ObjectSelectorNested editOrNewObjectSelectorLike(V1LabelSelector item) { - return withNewObjectSelectorLike(java.util.Optional.ofNullable(buildObjectSelector()).orElse(item)); + public ResourceRulesNested setNewResourceRuleLike(int index,V1beta1NamedRuleWithOperations item) { + return new ResourceRulesNested(index, item); } - public A addToResourceRules(int index,V1beta1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item) { + if (this.excludeResourceRules == null) { + this.excludeResourceRules = 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);} - return (A)this; + 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 setToResourceRules(int index,V1beta1NamedRuleWithOperations item) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} + 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);} - return (A)this; + 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.V1beta1NamedRuleWithOperations... items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(excludeResourceRules == null) && !(excludeResourceRules.isEmpty())) { + sb.append("excludeResourceRules:"); + sb.append(excludeResourceRules); + sb.append(","); + } + if (!(matchPolicy == null)) { + sb.append("matchPolicy:"); + sb.append(matchPolicy); + sb.append(","); + } + if (!(namespaceSelector == null)) { + sb.append("namespaceSelector:"); + sb.append(namespaceSelector); + sb.append(","); + } + if (!(objectSelector == null)) { + sb.append("objectSelector:"); + sb.append(objectSelector); + sb.append(","); + } + if (!(resourceRules == null) && !(resourceRules.isEmpty())) { + sb.append("resourceRules:"); + sb.append(resourceRules); + } + sb.append("}"); + return sb.toString(); } - public A addAllToResourceRules(Collection items) { - if (this.resourceRules == null) {this.resourceRules = new ArrayList();} - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").add(builder);this.resourceRules.add(builder);} return (A)this; + public A withExcludeResourceRules(List excludeResourceRules) { + if (this.excludeResourceRules != null) { + this._visitables.get("excludeResourceRules").clear(); + } + if (excludeResourceRules != null) { + this.excludeResourceRules = new ArrayList(); + for (V1beta1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); + } + } else { + this.excludeResourceRules = null; + } + return (A) this; } - public A removeFromResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... items) { - if (this.resourceRules == null) return (A)this; - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public A withExcludeResourceRules(V1beta1NamedRuleWithOperations... excludeResourceRules) { + if (this.excludeResourceRules != null) { + this.excludeResourceRules.clear(); + _visitables.remove("excludeResourceRules"); + } + if (excludeResourceRules != null) { + for (V1beta1NamedRuleWithOperations item : excludeResourceRules) { + this.addToExcludeResourceRules(item); + } + } + return (A) this; } - public A removeAllFromResourceRules(Collection items) { - if (this.resourceRules == null) return (A)this; - for (V1beta1NamedRuleWithOperations item : items) {V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item);_visitables.get("resourceRules").remove(builder); this.resourceRules.remove(builder);} return (A)this; + public A withMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + 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()) { - V1beta1NamedRuleWithOperationsBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + public A withNamespaceSelector(V1LabelSelector namespaceSelector) { + this._visitables.remove("namespaceSelector"); + if (namespaceSelector != null) { + this.namespaceSelector = new V1LabelSelectorBuilder(namespaceSelector); + this._visitables.get("namespaceSelector").add(this.namespaceSelector); + } else { + this.namespaceSelector = null; + this._visitables.get("namespaceSelector").remove(this.namespaceSelector); } - return (A)this; - } - - public List buildResourceRules() { - return this.resourceRules != null ? build(resourceRules) : null; + return (A) this; } - public V1beta1NamedRuleWithOperations buildResourceRule(int index) { - return this.resourceRules.get(index).build(); + public NamespaceSelectorNested withNewNamespaceSelector() { + return new NamespaceSelectorNested(null); } - public V1beta1NamedRuleWithOperations buildFirstResourceRule() { - return this.resourceRules.get(0).build(); + public NamespaceSelectorNested withNewNamespaceSelectorLike(V1LabelSelector item) { + return new NamespaceSelectorNested(item); } - public V1beta1NamedRuleWithOperations buildLastResourceRule() { - return this.resourceRules.get(resourceRules.size() - 1).build(); + public ObjectSelectorNested withNewObjectSelector() { + return new ObjectSelectorNested(null); } - public V1beta1NamedRuleWithOperations buildMatchingResourceRule(Predicate predicate) { - for (V1beta1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public ObjectSelectorNested withNewObjectSelectorLike(V1LabelSelector item) { + return new ObjectSelectorNested(item); } - public boolean hasMatchingResourceRule(Predicate predicate) { - for (V1beta1NamedRuleWithOperationsBuilder item : resourceRules) { - if (predicate.test(item)) { - return true; - } - } - return false; + 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 A withResourceRules(List resourceRules) { @@ -381,7 +605,7 @@ public A withResourceRules(List resourceRules) { return (A) this; } - public A withResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations... resourceRules) { + public A withResourceRules(V1beta1NamedRuleWithOperations... resourceRules) { if (this.resourceRules != null) { this.resourceRules.clear(); _visitables.remove("resourceRules"); @@ -393,100 +617,33 @@ public A withResourceRules(io.kubernetes.client.openapi.models.V1beta1NamedRuleW } return (A) this; } + public class ExcludeResourceRulesNested extends V1beta1NamedRuleWithOperationsFluent> implements Nested{ - public boolean hasResourceRules() { - return this.resourceRules != null && !this.resourceRules.isEmpty(); - } - - public ResourceRulesNested addNewResourceRule() { - return new ResourceRulesNested(-1, null); - } - - public ResourceRulesNested addNewResourceRuleLike(V1beta1NamedRuleWithOperations item) { - return new ResourceRulesNested(-1, item); - } - - public ResourceRulesNested setNewResourceRuleLike(int index,V1beta1NamedRuleWithOperations 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 V1beta1NamedRuleWithOperationsFluent> implements Nested{ ExcludeResourceRulesNested(int index,V1beta1NamedRuleWithOperations item) { this.index = index; this.builder = new V1beta1NamedRuleWithOperationsBuilder(this, item); } - V1beta1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { - return (N) V1beta1MatchResourcesFluent.this.setToExcludeResourceRules(index,builder.build()); + return (N) V1beta1MatchResourcesFluent.this.setToExcludeResourceRules(index, builder.build()); } public N endExcludeResourceRule() { return and(); } - } public class NamespaceSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + NamespaceSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1beta1MatchResourcesFluent.this.withNamespaceSelector(builder.build()); } @@ -495,14 +652,15 @@ public N endNamespaceSelector() { return and(); } - } public class ObjectSelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + ObjectSelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V1beta1MatchResourcesFluent.this.withObjectSelector(builder.build()); } @@ -511,25 +669,24 @@ public N endObjectSelector() { return and(); } - } public class ResourceRulesNested extends V1beta1NamedRuleWithOperationsFluent> implements Nested{ + + V1beta1NamedRuleWithOperationsBuilder builder; + int index; + ResourceRulesNested(int index,V1beta1NamedRuleWithOperations item) { this.index = index; this.builder = new V1beta1NamedRuleWithOperationsBuilder(this, item); } - V1beta1NamedRuleWithOperationsBuilder builder; - int index; - + public N and() { - return (N) V1beta1MatchResourcesFluent.this.setToResourceRules(index,builder.build()); + return (N) V1beta1MatchResourcesFluent.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/V1beta1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java new file mode 100644 index 0000000000..2de891bb8f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyBindingBuilder extends V1beta1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyBindingFluent fluent; + + public V1beta1MutatingAdmissionPolicyBindingBuilder() { + this(new V1beta1MutatingAdmissionPolicyBinding()); + } + + public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPolicyBindingFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicyBinding()); + } + + public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPolicyBinding instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBindingBuilder(V1beta1MutatingAdmissionPolicyBindingFluent fluent,V1beta1MutatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBinding build() { + V1beta1MutatingAdmissionPolicyBinding buildable = new V1beta1MutatingAdmissionPolicyBinding(); + 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/V1beta1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java new file mode 100644 index 0000000000..59e4b2af68 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1MutatingAdmissionPolicyBindingSpecBuilder spec; + + public V1beta1MutatingAdmissionPolicyBindingFluent() { + } + + public V1beta1MutatingAdmissionPolicyBindingFluent(V1beta1MutatingAdmissionPolicyBinding instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1MutatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1beta1MutatingAdmissionPolicyBinding instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBinding(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1MutatingAdmissionPolicyBindingSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1MutatingAdmissionPolicyBindingSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MutatingAdmissionPolicyBindingFluent that = (V1beta1MutatingAdmissionPolicyBindingFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1MutatingAdmissionPolicyBindingSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1MutatingAdmissionPolicyBindingSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1MutatingAdmissionPolicyBindingSpecFluent> implements Nested{ + + V1beta1MutatingAdmissionPolicyBindingSpecBuilder builder; + + SpecNested(V1beta1MutatingAdmissionPolicyBindingSpec item) { + this.builder = new V1beta1MutatingAdmissionPolicyBindingSpecBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingFluent.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/V1beta1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java new file mode 100644 index 0000000000..233eaacca0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyBindingListBuilder extends V1beta1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyBindingListFluent fluent; + + public V1beta1MutatingAdmissionPolicyBindingListBuilder() { + this(new V1beta1MutatingAdmissionPolicyBindingList()); + } + + public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmissionPolicyBindingListFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicyBindingList()); + } + + public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmissionPolicyBindingList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBindingListBuilder(V1beta1MutatingAdmissionPolicyBindingListFluent fluent,V1beta1MutatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBindingList build() { + V1beta1MutatingAdmissionPolicyBindingList buildable = new V1beta1MutatingAdmissionPolicyBindingList(); + 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/V1beta1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java new file mode 100644 index 0000000000..88cbc04860 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1MutatingAdmissionPolicyBindingListFluent() { + } + + public V1beta1MutatingAdmissionPolicyBindingListFluent(V1beta1MutatingAdmissionPolicyBindingList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1beta1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(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 V1beta1MutatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1MutatingAdmissionPolicyBinding buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1MutatingAdmissionPolicyBinding buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1MutatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1beta1MutatingAdmissionPolicyBindingList instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MutatingAdmissionPolicyBindingListFluent that = (V1beta1MutatingAdmissionPolicyBindingListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1MutatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1MutatingAdmissionPolicyBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1MutatingAdmissionPolicyBindingFluent> implements Nested{ + + V1beta1MutatingAdmissionPolicyBindingBuilder builder; + int index; + + ItemsNested(int index,V1beta1MutatingAdmissionPolicyBinding item) { + this.index = index; + this.builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingListFluent.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/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java new file mode 100644 index 0000000000..80a91011e3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyBindingSpecBuilder extends V1beta1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent; + + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder() { + this(new V1beta1MutatingAdmissionPolicyBindingSpec()); + } + + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicyBindingSpec()); + } + + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBindingSpecBuilder(V1beta1MutatingAdmissionPolicyBindingSpecFluent fluent,V1beta1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBindingSpec build() { + V1beta1MutatingAdmissionPolicyBindingSpec buildable = new V1beta1MutatingAdmissionPolicyBindingSpec(); + 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/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java new file mode 100644 index 0000000000..1b4c09c5c6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java @@ -0,0 +1,212 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + + private V1beta1MatchResourcesBuilder matchResources; + private V1beta1ParamRefBuilder paramRef; + private String policyName; + + public V1beta1MutatingAdmissionPolicyBindingSpecFluent() { + } + + public V1beta1MutatingAdmissionPolicyBindingSpecFluent(V1beta1MutatingAdmissionPolicyBindingSpec instance) { + this.copyInstance(instance); + } + + public V1beta1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; + } + + public V1beta1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; + } + + protected void copyInstance(V1beta1MutatingAdmissionPolicyBindingSpec instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyBindingSpec(); + if (instance != null) { + this.withMatchResources(instance.getMatchResources()); + this.withParamRef(instance.getParamRef()); + this.withPolicyName(instance.getPolicyName()); + } + } + + public MatchResourcesNested editMatchResources() { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(null)); + } + + public MatchResourcesNested editOrNewMatchResources() { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(new V1beta1MatchResourcesBuilder().build())); + } + + public MatchResourcesNested editOrNewMatchResourcesLike(V1beta1MatchResources item) { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); + } + + public ParamRefNested editOrNewParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1beta1ParamRefBuilder().build())); + } + + public ParamRefNested editOrNewParamRefLike(V1beta1ParamRef item) { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); + } + + public ParamRefNested editParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MutatingAdmissionPolicyBindingSpecFluent that = (V1beta1MutatingAdmissionPolicyBindingSpecFluent) o; + if (!(Objects.equals(matchResources, that.matchResources))) { + return false; + } + if (!(Objects.equals(paramRef, that.paramRef))) { + return false; + } + if (!(Objects.equals(policyName, that.policyName))) { + return false; + } + return true; + } + + public String getPolicyName() { + return this.policyName; + } + + public boolean hasMatchResources() { + return this.matchResources != null; + } + + public boolean hasParamRef() { + return this.paramRef != null; + } + + public boolean hasPolicyName() { + return this.policyName != null; + } + + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchResources == null)) { + sb.append("matchResources:"); + sb.append(matchResources); + sb.append(","); + } + if (!(paramRef == null)) { + sb.append("paramRef:"); + sb.append(paramRef); + sb.append(","); + } + if (!(policyName == null)) { + sb.append("policyName:"); + sb.append(policyName); + } + sb.append("}"); + return sb.toString(); + } + + public A withMatchResources(V1beta1MatchResources matchResources) { + this._visitables.remove("matchResources"); + if (matchResources != null) { + this.matchResources = new V1beta1MatchResourcesBuilder(matchResources); + this._visitables.get("matchResources").add(this.matchResources); + } else { + this.matchResources = null; + this._visitables.get("matchResources").remove(this.matchResources); + } + return (A) this; + } + + public MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); + } + + public MatchResourcesNested withNewMatchResourcesLike(V1beta1MatchResources item) { + return new MatchResourcesNested(item); + } + + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); + } + + public ParamRefNested withNewParamRefLike(V1beta1ParamRef item) { + return new ParamRefNested(item); + } + + public A withParamRef(V1beta1ParamRef paramRef) { + this._visitables.remove("paramRef"); + if (paramRef != null) { + this.paramRef = new V1beta1ParamRefBuilder(paramRef); + this._visitables.get("paramRef").add(this.paramRef); + } else { + this.paramRef = null; + this._visitables.get("paramRef").remove(this.paramRef); + } + return (A) this; + } + + public A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; + } + public class MatchResourcesNested extends V1beta1MatchResourcesFluent> implements Nested{ + + V1beta1MatchResourcesBuilder builder; + + MatchResourcesNested(V1beta1MatchResources item) { + this.builder = new V1beta1MatchResourcesBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); + } + + public N endMatchResources() { + return and(); + } + + } + public class ParamRefNested extends V1beta1ParamRefFluent> implements Nested{ + + V1beta1ParamRefBuilder builder; + + ParamRefNested(V1beta1ParamRef item) { + this.builder = new V1beta1ParamRefBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyBindingSpecFluent.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/V1beta1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java new file mode 100644 index 0000000000..3abdf7f2e4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyBuilder extends V1beta1MutatingAdmissionPolicyFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyFluent fluent; + + public V1beta1MutatingAdmissionPolicyBuilder() { + this(new V1beta1MutatingAdmissionPolicy()); + } + + public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicyFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicy()); + } + + public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyBuilder(V1beta1MutatingAdmissionPolicyFluent fluent,V1beta1MutatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicy build() { + V1beta1MutatingAdmissionPolicy buildable = new V1beta1MutatingAdmissionPolicy(); + 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/V1beta1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java new file mode 100644 index 0000000000..ba777758d0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicyFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1MutatingAdmissionPolicySpecBuilder spec; + + public V1beta1MutatingAdmissionPolicyFluent() { + } + + public V1beta1MutatingAdmissionPolicyFluent(V1beta1MutatingAdmissionPolicy instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1MutatingAdmissionPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1beta1MutatingAdmissionPolicy instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicy(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1MutatingAdmissionPolicySpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1MutatingAdmissionPolicySpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MutatingAdmissionPolicyFluent that = (V1beta1MutatingAdmissionPolicyFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1MutatingAdmissionPolicySpec item) { + return new SpecNested(item); + } + + public A withSpec(V1beta1MutatingAdmissionPolicySpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1MutatingAdmissionPolicySpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1MutatingAdmissionPolicySpecFluent> implements Nested{ + + V1beta1MutatingAdmissionPolicySpecBuilder builder; + + SpecNested(V1beta1MutatingAdmissionPolicySpec item) { + this.builder = new V1beta1MutatingAdmissionPolicySpecBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyFluent.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/V1beta1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java new file mode 100644 index 0000000000..85a6e36278 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicyListBuilder extends V1beta1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicyListFluent fluent; + + public V1beta1MutatingAdmissionPolicyListBuilder() { + this(new V1beta1MutatingAdmissionPolicyList()); + } + + public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyListFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicyList()); + } + + public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyListBuilder(V1beta1MutatingAdmissionPolicyListFluent fluent,V1beta1MutatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicyList build() { + V1beta1MutatingAdmissionPolicyList buildable = new V1beta1MutatingAdmissionPolicyList(); + 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/V1beta1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java new file mode 100644 index 0000000000..663f120512 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicyListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1MutatingAdmissionPolicyListFluent() { + } + + public V1beta1MutatingAdmissionPolicyListFluent(V1beta1MutatingAdmissionPolicyList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1MutatingAdmissionPolicy item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1beta1MutatingAdmissionPolicy... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1beta1MutatingAdmissionPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(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 V1beta1MutatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1MutatingAdmissionPolicy buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1MutatingAdmissionPolicy buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1MutatingAdmissionPolicy buildMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1beta1MutatingAdmissionPolicyList instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicyList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MutatingAdmissionPolicyListFluent that = (V1beta1MutatingAdmissionPolicyListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1MutatingAdmissionPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1MutatingAdmissionPolicy item : items) { + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1MutatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1MutatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1MutatingAdmissionPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1MutatingAdmissionPolicy... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1MutatingAdmissionPolicyFluent> implements Nested{ + + V1beta1MutatingAdmissionPolicyBuilder builder; + int index; + + ItemsNested(int index,V1beta1MutatingAdmissionPolicy item) { + this.index = index; + this.builder = new V1beta1MutatingAdmissionPolicyBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicyListFluent.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/V1beta1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java new file mode 100644 index 0000000000..b98e2f81d0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutatingAdmissionPolicySpecBuilder extends V1beta1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ + + V1beta1MutatingAdmissionPolicySpecFluent fluent; + + public V1beta1MutatingAdmissionPolicySpecBuilder() { + this(new V1beta1MutatingAdmissionPolicySpec()); + } + + public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicySpecFluent fluent) { + this(fluent, new V1beta1MutatingAdmissionPolicySpec()); + } + + public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicySpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicySpecBuilder(V1beta1MutatingAdmissionPolicySpecFluent fluent,V1beta1MutatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1MutatingAdmissionPolicySpec build() { + V1beta1MutatingAdmissionPolicySpec buildable = new V1beta1MutatingAdmissionPolicySpec(); + 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/V1beta1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java new file mode 100644 index 0000000000..10ff7a5c0d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java @@ -0,0 +1,952 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ + + private String failurePolicy; + private ArrayList matchConditions; + private V1beta1MatchResourcesBuilder matchConstraints; + private ArrayList mutations; + private V1beta1ParamKindBuilder paramKind; + private String reinvocationPolicy; + private ArrayList variables; + + public V1beta1MutatingAdmissionPolicySpecFluent() { + } + + public V1beta1MutatingAdmissionPolicySpecFluent(V1beta1MutatingAdmissionPolicySpec instance) { + this.copyInstance(instance); + } + + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; + } + + public A addAllToMutations(Collection items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; + } + + public A addAllToVariables(Collection items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; + } + + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); + } + + public MatchConditionsNested addNewMatchConditionLike(V1beta1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public MutationsNested addNewMutation() { + return new MutationsNested(-1, null); + } + + public MutationsNested addNewMutationLike(V1beta1Mutation item) { + return new MutationsNested(-1, item); + } + + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); + } + + public VariablesNested addNewVariableLike(V1beta1Variable item) { + return new VariablesNested(-1, item); + } + + public A addToMatchConditions(V1beta1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; + } + + 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(builder); + matchConditions.add(index, builder); + } + return (A) this; + } + + public A addToMutations(V1beta1Mutation... items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; + } + + public A addToMutations(int index,V1beta1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(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 addToVariables(V1beta1Variable... items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; + } + + public A addToVariables(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").add(builder); + variables.add(index, builder); + } + return (A) this; + } + + public V1beta1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); + } + + public V1beta1Mutation buildFirstMutation() { + return this.mutations.get(0).build(); + } + + public V1beta1Variable buildFirstVariable() { + return this.variables.get(0).build(); + } + + public V1beta1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); + } + + public V1beta1Mutation buildLastMutation() { + return this.mutations.get(mutations.size() - 1).build(); + } + + public V1beta1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); + } + + public V1beta1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); + } + + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; + } + + public V1beta1MatchResources buildMatchConstraints() { + return this.matchConstraints != null ? this.matchConstraints.build() : null; + } + + public V1beta1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1beta1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1Mutation buildMatchingMutation(Predicate predicate) { + for (V1beta1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1Variable buildMatchingVariable(Predicate predicate) { + for (V1beta1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1Mutation buildMutation(int index) { + return this.mutations.get(index).build(); + } + + public List buildMutations() { + return this.mutations != null ? build(mutations) : null; + } + + public V1beta1ParamKind buildParamKind() { + return this.paramKind != null ? this.paramKind.build() : null; + } + + public V1beta1Variable buildVariable(int index) { + return this.variables.get(index).build(); + } + + public List buildVariables() { + return this.variables != null ? build(variables) : null; + } + + protected void copyInstance(V1beta1MutatingAdmissionPolicySpec instance) { + instance = instance != null ? instance : new V1beta1MutatingAdmissionPolicySpec(); + 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 MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); + } + + public MutationsNested editFirstMutation() { + if (mutations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(0, this.buildMutation(0)); + } + + public VariablesNested editFirstVariable() { + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(0, this.buildVariable(0)); + } + + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MutationsNested editLastMutation() { + int index = mutations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MatchConstraintsNested editMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + } + + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchConditions.size();i++) { + if (predicate.test(matchConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MutationsNested editMatchingMutation(Predicate predicate) { + int index = -1; + for (int i = 0;i < mutations.size();i++) { + if (predicate.test(mutations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i = 0;i < variables.size();i++) { + if (predicate.test(variables.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MutationsNested editMutation(int index) { + if (mutations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public MatchConstraintsNested editOrNewMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1beta1MatchResourcesBuilder().build())); + } + + public MatchConstraintsNested editOrNewMatchConstraintsLike(V1beta1MatchResources item) { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); + } + + public ParamKindNested editOrNewParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1beta1ParamKindBuilder().build())); + } + + public ParamKindNested editOrNewParamKindLike(V1beta1ParamKind item) { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); + } + + public ParamKindNested editParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); + } + + public VariablesNested editVariable(int index) { + if (variables.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MutatingAdmissionPolicySpecFluent that = (V1beta1MutatingAdmissionPolicySpecFluent) o; + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; + } + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; + } + if (!(Objects.equals(matchConstraints, that.matchConstraints))) { + return false; + } + if (!(Objects.equals(mutations, that.mutations))) { + return false; + } + if (!(Objects.equals(paramKind, that.paramKind))) { + return false; + } + if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { + return false; + } + if (!(Objects.equals(variables, that.variables))) { + return false; + } + return true; + } + + public String getFailurePolicy() { + return this.failurePolicy; + } + + public String getReinvocationPolicy() { + return this.reinvocationPolicy; + } + + public boolean hasFailurePolicy() { + return this.failurePolicy != null; + } + + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); + } + + public boolean hasMatchConstraints() { + return this.matchConstraints != null; + } + + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1beta1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingMutation(Predicate predicate) { + for (V1beta1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVariable(Predicate predicate) { + for (V1beta1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMutations() { + return this.mutations != null && !(this.mutations.isEmpty()); + } + + public boolean hasParamKind() { + return this.paramKind != null; + } + + public boolean hasReinvocationPolicy() { + return this.reinvocationPolicy != null; + } + + public boolean hasVariables() { + return this.variables != null && !(this.variables.isEmpty()); + } + + public int hashCode() { + return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); + } + + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; + } + + public A removeAllFromMutations(Collection items) { + if (this.mutations == null) { + return (A) this; + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; + } + + public A removeAllFromVariables(Collection items) { + if (this.variables == null) { + return (A) this; + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; + } + + public A removeFromMatchConditions(V1beta1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1beta1MatchCondition item : items) { + V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; + } + + public A removeFromMutations(V1beta1Mutation... items) { + if (this.mutations == null) { + return (A) this; + } + for (V1beta1Mutation item : items) { + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; + } + + public A removeFromVariables(V1beta1Variable... items) { + if (this.variables == null) { + return (A) this; + } + for (V1beta1Variable item : items) { + V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = _visitables.get("matchConditions"); + while (each.hasNext()) { + V1beta1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromMutations(Predicate predicate) { + if (mutations == null) { + return (A) this; + } + Iterator each = mutations.iterator(); + List visitables = _visitables.get("mutations"); + while (each.hasNext()) { + V1beta1MutationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) { + return (A) this; + } + Iterator each = variables.iterator(); + List visitables = _visitables.get("variables"); + while (each.hasNext()) { + V1beta1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1beta1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public MutationsNested setNewMutationLike(int index,V1beta1Mutation item) { + return new MutationsNested(index, item); + } + + public VariablesNested setNewVariableLike(int index,V1beta1Variable item) { + return new VariablesNested(index, item); + } + + 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").add(builder); + matchConditions.set(index, builder); + } + return (A) this; + } + + public A setToMutations(int index,V1beta1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + V1beta1MutationBuilder builder = new V1beta1MutationBuilder(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 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").add(builder); + variables.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(failurePolicy == null)) { + sb.append("failurePolicy:"); + sb.append(failurePolicy); + sb.append(","); + } + if (!(matchConditions == null) && !(matchConditions.isEmpty())) { + sb.append("matchConditions:"); + sb.append(matchConditions); + sb.append(","); + } + if (!(matchConstraints == null)) { + sb.append("matchConstraints:"); + sb.append(matchConstraints); + sb.append(","); + } + if (!(mutations == null) && !(mutations.isEmpty())) { + sb.append("mutations:"); + sb.append(mutations); + sb.append(","); + } + if (!(paramKind == null)) { + sb.append("paramKind:"); + sb.append(paramKind); + sb.append(","); + } + if (!(reinvocationPolicy == null)) { + sb.append("reinvocationPolicy:"); + sb.append(reinvocationPolicy); + sb.append(","); + } + if (!(variables == null) && !(variables.isEmpty())) { + sb.append("variables:"); + sb.append(variables); + } + sb.append("}"); + return sb.toString(); + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); + } + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1beta1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; + } + return (A) this; + } + + public A withMatchConditions(V1beta1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); + } + if (matchConditions != null) { + for (V1beta1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public A withMatchConstraints(V1beta1MatchResources matchConstraints) { + this._visitables.remove("matchConstraints"); + if (matchConstraints != null) { + this.matchConstraints = new V1beta1MatchResourcesBuilder(matchConstraints); + this._visitables.get("matchConstraints").add(this.matchConstraints); + } else { + this.matchConstraints = null; + this._visitables.get("matchConstraints").remove(this.matchConstraints); + } + return (A) this; + } + + public A withMutations(List mutations) { + if (this.mutations != null) { + this._visitables.get("mutations").clear(); + } + if (mutations != null) { + this.mutations = new ArrayList(); + for (V1beta1Mutation item : mutations) { + this.addToMutations(item); + } + } else { + this.mutations = null; + } + return (A) this; + } + + public A withMutations(V1beta1Mutation... mutations) { + if (this.mutations != null) { + this.mutations.clear(); + _visitables.remove("mutations"); + } + if (mutations != null) { + for (V1beta1Mutation item : mutations) { + this.addToMutations(item); + } + } + return (A) this; + } + + public MatchConstraintsNested withNewMatchConstraints() { + return new MatchConstraintsNested(null); + } + + public MatchConstraintsNested withNewMatchConstraintsLike(V1beta1MatchResources item) { + return new MatchConstraintsNested(item); + } + + public ParamKindNested withNewParamKind() { + return new ParamKindNested(null); + } + + public ParamKindNested withNewParamKindLike(V1beta1ParamKind item) { + return new ParamKindNested(item); + } + + public A withParamKind(V1beta1ParamKind paramKind) { + this._visitables.remove("paramKind"); + if (paramKind != null) { + this.paramKind = new V1beta1ParamKindBuilder(paramKind); + this._visitables.get("paramKind").add(this.paramKind); + } else { + this.paramKind = null; + this._visitables.get("paramKind").remove(this.paramKind); + } + return (A) this; + } + + public A withReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + return (A) this; + } + + public A withVariables(List variables) { + if (this.variables != null) { + this._visitables.get("variables").clear(); + } + if (variables != null) { + this.variables = new ArrayList(); + for (V1beta1Variable item : variables) { + this.addToVariables(item); + } + } else { + this.variables = null; + } + return (A) this; + } + + public A withVariables(V1beta1Variable... variables) { + if (this.variables != null) { + this.variables.clear(); + _visitables.remove("variables"); + } + if (variables != null) { + for (V1beta1Variable item : variables) { + this.addToVariables(item); + } + } + return (A) this; + } + public class MatchConditionsNested extends V1beta1MatchConditionFluent> implements Nested{ + + V1beta1MatchConditionBuilder builder; + int index; + + MatchConditionsNested(int index,V1beta1MatchCondition item) { + this.index = index; + this.builder = new V1beta1MatchConditionBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.setToMatchConditions(index, builder.build()); + } + + public N endMatchCondition() { + return and(); + } + + } + public class MatchConstraintsNested extends V1beta1MatchResourcesFluent> implements Nested{ + + V1beta1MatchResourcesBuilder builder; + + MatchConstraintsNested(V1beta1MatchResources item) { + this.builder = new V1beta1MatchResourcesBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); + } + + public N endMatchConstraints() { + return and(); + } + + } + public class MutationsNested extends V1beta1MutationFluent> implements Nested{ + + V1beta1MutationBuilder builder; + int index; + + MutationsNested(int index,V1beta1Mutation item) { + this.index = index; + this.builder = new V1beta1MutationBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.setToMutations(index, builder.build()); + } + + public N endMutation() { + return and(); + } + + } + public class ParamKindNested extends V1beta1ParamKindFluent> implements Nested{ + + V1beta1ParamKindBuilder builder; + + ParamKindNested(V1beta1ParamKind item) { + this.builder = new V1beta1ParamKindBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); + } + + public N endParamKind() { + return and(); + } + + } + public class VariablesNested extends V1beta1VariableFluent> implements Nested{ + + V1beta1VariableBuilder builder; + int index; + + VariablesNested(int index,V1beta1Variable item) { + this.index = index; + this.builder = new V1beta1VariableBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutatingAdmissionPolicySpecFluent.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/V1beta1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java new file mode 100644 index 0000000000..d6848bc81a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1MutationBuilder extends V1beta1MutationFluent implements VisitableBuilder{ + + V1beta1MutationFluent fluent; + + public V1beta1MutationBuilder() { + this(new V1beta1Mutation()); + } + + public V1beta1MutationBuilder(V1beta1MutationFluent fluent) { + this(fluent, new V1beta1Mutation()); + } + + public V1beta1MutationBuilder(V1beta1Mutation instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1MutationBuilder(V1beta1MutationFluent fluent,V1beta1Mutation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1Mutation build() { + V1beta1Mutation buildable = new V1beta1Mutation(); + 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/V1beta1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java new file mode 100644 index 0000000000..777b45c029 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java @@ -0,0 +1,212 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1MutationFluent> extends BaseFluent{ + + private V1beta1ApplyConfigurationBuilder applyConfiguration; + private V1beta1JSONPatchBuilder jsonPatch; + private String patchType; + + public V1beta1MutationFluent() { + } + + public V1beta1MutationFluent(V1beta1Mutation instance) { + this.copyInstance(instance); + } + + public V1beta1ApplyConfiguration buildApplyConfiguration() { + return this.applyConfiguration != null ? this.applyConfiguration.build() : null; + } + + public V1beta1JSONPatch buildJsonPatch() { + return this.jsonPatch != null ? this.jsonPatch.build() : null; + } + + protected void copyInstance(V1beta1Mutation instance) { + instance = instance != null ? instance : new V1beta1Mutation(); + if (instance != null) { + this.withApplyConfiguration(instance.getApplyConfiguration()); + this.withJsonPatch(instance.getJsonPatch()); + this.withPatchType(instance.getPatchType()); + } + } + + public ApplyConfigurationNested editApplyConfiguration() { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(null)); + } + + public JsonPatchNested editJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(null)); + } + + public ApplyConfigurationNested editOrNewApplyConfiguration() { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(new V1beta1ApplyConfigurationBuilder().build())); + } + + public ApplyConfigurationNested editOrNewApplyConfigurationLike(V1beta1ApplyConfiguration item) { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(item)); + } + + public JsonPatchNested editOrNewJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(new V1beta1JSONPatchBuilder().build())); + } + + public JsonPatchNested editOrNewJsonPatchLike(V1beta1JSONPatch item) { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1MutationFluent that = (V1beta1MutationFluent) o; + if (!(Objects.equals(applyConfiguration, that.applyConfiguration))) { + return false; + } + if (!(Objects.equals(jsonPatch, that.jsonPatch))) { + return false; + } + if (!(Objects.equals(patchType, that.patchType))) { + return false; + } + return true; + } + + public String getPatchType() { + return this.patchType; + } + + public boolean hasApplyConfiguration() { + return this.applyConfiguration != null; + } + + public boolean hasJsonPatch() { + return this.jsonPatch != null; + } + + public boolean hasPatchType() { + return this.patchType != null; + } + + public int hashCode() { + return Objects.hash(applyConfiguration, jsonPatch, patchType); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(applyConfiguration == null)) { + sb.append("applyConfiguration:"); + sb.append(applyConfiguration); + sb.append(","); + } + if (!(jsonPatch == null)) { + sb.append("jsonPatch:"); + sb.append(jsonPatch); + sb.append(","); + } + if (!(patchType == null)) { + sb.append("patchType:"); + sb.append(patchType); + } + sb.append("}"); + return sb.toString(); + } + + public A withApplyConfiguration(V1beta1ApplyConfiguration applyConfiguration) { + this._visitables.remove("applyConfiguration"); + if (applyConfiguration != null) { + this.applyConfiguration = new V1beta1ApplyConfigurationBuilder(applyConfiguration); + this._visitables.get("applyConfiguration").add(this.applyConfiguration); + } else { + this.applyConfiguration = null; + this._visitables.get("applyConfiguration").remove(this.applyConfiguration); + } + return (A) this; + } + + public A withJsonPatch(V1beta1JSONPatch jsonPatch) { + this._visitables.remove("jsonPatch"); + if (jsonPatch != null) { + this.jsonPatch = new V1beta1JSONPatchBuilder(jsonPatch); + this._visitables.get("jsonPatch").add(this.jsonPatch); + } else { + this.jsonPatch = null; + this._visitables.get("jsonPatch").remove(this.jsonPatch); + } + return (A) this; + } + + public ApplyConfigurationNested withNewApplyConfiguration() { + return new ApplyConfigurationNested(null); + } + + public ApplyConfigurationNested withNewApplyConfigurationLike(V1beta1ApplyConfiguration item) { + return new ApplyConfigurationNested(item); + } + + public JsonPatchNested withNewJsonPatch() { + return new JsonPatchNested(null); + } + + public JsonPatchNested withNewJsonPatchLike(V1beta1JSONPatch item) { + return new JsonPatchNested(item); + } + + public A withPatchType(String patchType) { + this.patchType = patchType; + return (A) this; + } + public class ApplyConfigurationNested extends V1beta1ApplyConfigurationFluent> implements Nested{ + + V1beta1ApplyConfigurationBuilder builder; + + ApplyConfigurationNested(V1beta1ApplyConfiguration item) { + this.builder = new V1beta1ApplyConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutationFluent.this.withApplyConfiguration(builder.build()); + } + + public N endApplyConfiguration() { + return and(); + } + + } + public class JsonPatchNested extends V1beta1JSONPatchFluent> implements Nested{ + + V1beta1JSONPatchBuilder builder; + + JsonPatchNested(V1beta1JSONPatch item) { + this.builder = new V1beta1JSONPatchBuilder(this, item); + } + + public N and() { + return (N) V1beta1MutationFluent.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/V1beta1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java index 55248dd26c..663ef22f37 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1NamedRuleWithOperationsBuilder extends V1beta1NamedRuleWithOperationsFluent implements VisitableBuilder{ + + V1beta1NamedRuleWithOperationsFluent fluent; + public V1beta1NamedRuleWithOperationsBuilder() { this(new V1beta1NamedRuleWithOperations()); } @@ -10,17 +14,16 @@ public V1beta1NamedRuleWithOperationsBuilder(V1beta1NamedRuleWithOperationsFluen this(fluent, new V1beta1NamedRuleWithOperations()); } - public V1beta1NamedRuleWithOperationsBuilder(V1beta1NamedRuleWithOperationsFluent fluent,V1beta1NamedRuleWithOperations instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1NamedRuleWithOperationsBuilder(V1beta1NamedRuleWithOperations instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1NamedRuleWithOperationsFluent fluent; + public V1beta1NamedRuleWithOperationsBuilder(V1beta1NamedRuleWithOperationsFluent fluent,V1beta1NamedRuleWithOperations instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1NamedRuleWithOperations build() { V1beta1NamedRuleWithOperations buildable = new V1beta1NamedRuleWithOperations(); buildable.setApiGroups(fluent.getApiGroups()); @@ -32,5 +35,4 @@ public V1beta1NamedRuleWithOperations build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java index 0a6c0dda6e..443be58e0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java @@ -1,91 +1,276 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; import java.util.List; -import java.lang.String; +import java.util.Objects; import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1NamedRuleWithOperationsFluent> extends BaseFluent{ - public V1beta1NamedRuleWithOperationsFluent() { - } - - public V1beta1NamedRuleWithOperationsFluent(V1beta1NamedRuleWithOperations instance) { - this.copyInstance(instance); - } +public class V1beta1NamedRuleWithOperationsFluent> extends BaseFluent{ + private List apiGroups; private List apiVersions; private List operations; private List resourceNames; private List resources; private String scope; + + public V1beta1NamedRuleWithOperationsFluent() { + } - protected void copyInstance(V1beta1NamedRuleWithOperations instance) { - instance = (instance != null ? instance : new V1beta1NamedRuleWithOperations()); - 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 V1beta1NamedRuleWithOperationsFluent(V1beta1NamedRuleWithOperations instance) { + this.copyInstance(instance); + } + + 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 addAllToApiVersions(Collection items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.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 addAllToResourceNames(Collection items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.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 addToApiGroups(String... items) { + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } + for (String item : items) { + this.apiGroups.add(item); + } + return (A) this; } public A addToApiGroups(int index,String item) { - if (this.apiGroups == null) {this.apiGroups = new ArrayList();} + if (this.apiGroups == null) { + this.apiGroups = new ArrayList(); + } this.apiGroups.add(index, item); - return (A)this; + 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 addToApiVersions(String... items) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + for (String item : items) { + this.apiVersions.add(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 addToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.add(index, 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 addToOperations(String... items) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + for (String item : items) { + this.operations.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 addToOperations(int index,String item) { + if (this.operations == null) { + this.operations = new ArrayList(); + } + this.operations.add(index, 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 A addToResourceNames(String... items) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + for (String item : items) { + this.resourceNames.add(item); + } + return (A) this; } - public List getApiGroups() { - return this.apiGroups; + 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 addToResources(String... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (String item : items) { + this.resources.add(item); + } + return (A) this; + } + + public A addToResources(int index,String item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + this.resources.add(index, item); + return (A) this; + } + + protected void copyInstance(V1beta1NamedRuleWithOperations instance) { + instance = instance != null ? instance : new V1beta1NamedRuleWithOperations(); + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1NamedRuleWithOperationsFluent that = (V1beta1NamedRuleWithOperationsFluent) o; + if (!(Objects.equals(apiGroups, that.apiGroups))) { + return false; + } + if (!(Objects.equals(apiVersions, that.apiVersions))) { + return false; + } + if (!(Objects.equals(operations, that.operations))) { + return false; + } + if (!(Objects.equals(resourceNames, that.resourceNames))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + return true; } public String getApiGroup(int index) { return this.apiGroups.get(index); } + public List getApiGroups() { + return this.apiGroups; + } + + public String getApiVersion(int index) { + return this.apiVersions.get(index); + } + + public List getApiVersions() { + return this.apiVersions; + } + public String getFirstApiGroup() { return this.apiGroups.get(0); } + public String getFirstApiVersion() { + return this.apiVersions.get(0); + } + + public String getFirstOperation() { + return this.operations.get(0); + } + + public String getFirstResource() { + return this.resources.get(0); + } + + public String getFirstResourceName() { + return this.resourceNames.get(0); + } + public String getLastApiGroup() { return this.apiGroups.get(apiGroups.size() - 1); } + public String getLastApiVersion() { + return this.apiVersions.get(apiVersions.size() - 1); + } + + public String getLastOperation() { + return this.operations.get(operations.size() - 1); + } + + public String getLastResource() { + return this.resources.get(resources.size() - 1); + } + + public String getLastResourceName() { + return this.resourceNames.get(resourceNames.size() - 1); + } + public String getMatchingApiGroup(Predicate predicate) { for (String item : apiGroups) { if (predicate.test(item)) { @@ -95,6 +280,78 @@ public String getMatchingApiGroup(Predicate predicate) { return null; } + public String getMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getOperation(int index) { + return this.operations.get(index); + } + + public List getOperations() { + return this.operations; + } + + public String getResource(int index) { + return this.resources.get(index); + } + + public String getResourceName(int index) { + return this.resourceNames.get(index); + } + + public List getResourceNames() { + return this.resourceNames; + } + + public List getResources() { + return this.resources; + } + + public String getScope() { + return this.scope; + } + + public boolean hasApiGroups() { + return this.apiGroups != null && !(this.apiGroups.isEmpty()); + } + + public boolean hasApiVersions() { + return this.apiVersions != null && !(this.apiVersions.isEmpty()); + } + public boolean hasMatchingApiGroup(Predicate predicate) { for (String item : apiGroups) { if (predicate.test(item)) { @@ -104,6 +361,238 @@ public boolean hasMatchingApiGroup(Predicate predicate) { return false; } + public boolean hasMatchingApiVersion(Predicate predicate) { + for (String item : apiVersions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingOperation(Predicate predicate) { + for (String item : operations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (String item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResourceName(Predicate predicate) { + for (String item : resourceNames) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOperations() { + return this.operations != null && !(this.operations.isEmpty()); + } + + public boolean hasResourceNames() { + return this.resourceNames != null && !(this.resourceNames.isEmpty()); + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public boolean hasScope() { + return this.scope != null; + } + + public int hashCode() { + return Objects.hash(apiGroups, apiVersions, operations, resourceNames, resources, scope); + } + + public A removeAllFromApiGroups(Collection items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.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 A removeAllFromOperations(Collection items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.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 A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(item); + } + return (A) this; + } + + public A removeFromApiGroups(String... items) { + if (this.apiGroups == null) { + return (A) this; + } + for (String item : items) { + this.apiGroups.remove(item); + } + return (A) this; + } + + public A removeFromApiVersions(String... items) { + if (this.apiVersions == null) { + return (A) this; + } + for (String item : items) { + this.apiVersions.remove(item); + } + return (A) this; + } + + public A removeFromOperations(String... items) { + if (this.operations == null) { + return (A) this; + } + for (String item : items) { + this.operations.remove(item); + } + return (A) this; + } + + public A removeFromResourceNames(String... items) { + if (this.resourceNames == null) { + return (A) this; + } + for (String item : items) { + this.resourceNames.remove(item); + } + return (A) this; + } + + public A removeFromResources(String... items) { + if (this.resources == null) { + return (A) this; + } + for (String item : items) { + this.resources.remove(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 setToApiVersions(int index,String item) { + if (this.apiVersions == null) { + this.apiVersions = new ArrayList(); + } + this.apiVersions.set(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 setToResourceNames(int index,String item) { + if (this.resourceNames == null) { + this.resourceNames = new ArrayList(); + } + this.resourceNames.set(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroups == null) && !(apiGroups.isEmpty())) { + sb.append("apiGroups:"); + sb.append(apiGroups); + sb.append(","); + } + if (!(apiVersions == null) && !(apiVersions.isEmpty())) { + sb.append("apiVersions:"); + sb.append(apiVersions); + sb.append(","); + } + if (!(operations == null) && !(operations.isEmpty())) { + sb.append("operations:"); + sb.append(operations); + sb.append(","); + } + if (!(resourceNames == null) && !(resourceNames.isEmpty())) { + sb.append("resourceNames:"); + sb.append(resourceNames); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + } + sb.append("}"); + return sb.toString(); + } + public A withApiGroups(List apiGroups) { if (apiGroups != null) { this.apiGroups = new ArrayList(); @@ -116,7 +605,7 @@ public A withApiGroups(List apiGroups) { return (A) this; } - public A withApiGroups(java.lang.String... apiGroups) { + public A withApiGroups(String... apiGroups) { if (this.apiGroups != null) { this.apiGroups.clear(); _visitables.remove("apiGroups"); @@ -129,75 +618,6 @@ public A withApiGroups(java.lang.String... apiGroups) { 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(); @@ -210,7 +630,7 @@ public A withApiVersions(List apiVersions) { return (A) this; } - public A withApiVersions(java.lang.String... apiVersions) { + public A withApiVersions(String... apiVersions) { if (this.apiVersions != null) { this.apiVersions.clear(); _visitables.remove("apiVersions"); @@ -223,75 +643,6 @@ public A withApiVersions(java.lang.String... apiVersions) { 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(); @@ -304,7 +655,7 @@ public A withOperations(List operations) { return (A) this; } - public A withOperations(java.lang.String... operations) { + public A withOperations(String... operations) { if (this.operations != null) { this.operations.clear(); _visitables.remove("operations"); @@ -317,75 +668,6 @@ public A withOperations(java.lang.String... operations) { 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(); @@ -398,7 +680,7 @@ public A withResourceNames(List resourceNames) { return (A) this; } - public A withResourceNames(java.lang.String... resourceNames) { + public A withResourceNames(String... resourceNames) { if (this.resourceNames != null) { this.resourceNames.clear(); _visitables.remove("resourceNames"); @@ -411,75 +693,6 @@ public A withResourceNames(java.lang.String... resourceNames) { 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(); @@ -492,7 +705,7 @@ public A withResources(List resources) { return (A) this; } - public A withResources(java.lang.String... resources) { + public A withResources(String... resources) { if (this.resources != null) { this.resources.clear(); _visitables.remove("resources"); @@ -505,53 +718,9 @@ public A withResources(java.lang.String... resources) { 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; - V1beta1NamedRuleWithOperationsFluent that = (V1beta1NamedRuleWithOperationsFluent) 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/V1beta1NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java new file mode 100644 index 0000000000..6affb3733b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1NetworkDeviceDataBuilder extends V1beta1NetworkDeviceDataFluent implements VisitableBuilder{ + + V1beta1NetworkDeviceDataFluent fluent; + + public V1beta1NetworkDeviceDataBuilder() { + this(new V1beta1NetworkDeviceData()); + } + + public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceDataFluent fluent) { + this(fluent, new V1beta1NetworkDeviceData()); + } + + public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceData instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1NetworkDeviceDataBuilder(V1beta1NetworkDeviceDataFluent fluent,V1beta1NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..12e0a1ead9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java @@ -0,0 +1,233 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1NetworkDeviceDataFluent> extends BaseFluent{ + + private String hardwareAddress; + private String interfaceName; + private List ips; + + public V1beta1NetworkDeviceDataFluent() { + } + + public V1beta1NetworkDeviceDataFluent(V1beta1NetworkDeviceData instance) { + this.copyInstance(instance); + } + + 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 addToIps(String... items) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + for (String item : items) { + this.ips.add(item); + } + return (A) this; + } + + public A addToIps(int index,String item) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + this.ips.add(index, item); + return (A) this; + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1NetworkDeviceDataFluent that = (V1beta1NetworkDeviceDataFluent) o; + if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { + return false; + } + if (!(Objects.equals(interfaceName, that.interfaceName))) { + return false; + } + if (!(Objects.equals(ips, that.ips))) { + return false; + } + return true; + } + + public String getFirstIp() { + return this.ips.get(0); + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public String getInterfaceName() { + return this.interfaceName; + } + + public String getIp(int index) { + return this.ips.get(index); + } + + public List getIps() { + return this.ips; + } + + 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 hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public boolean hasIps() { + return this.ips != null && !(this.ips.isEmpty()); + } + + public boolean hasMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(hardwareAddress, interfaceName, ips); + } + + public A removeAllFromIps(Collection items) { + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(item); + } + return (A) this; + } + + public A removeFromIps(String... items) { + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hardwareAddress == null)) { + sb.append("hardwareAddress:"); + sb.append(hardwareAddress); + sb.append(","); + } + if (!(interfaceName == null)) { + sb.append("interfaceName:"); + sb.append(interfaceName); + sb.append(","); + } + if (!(ips == null) && !(ips.isEmpty())) { + sb.append("ips:"); + sb.append(ips); + } + sb.append("}"); + return sb.toString(); + } + + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + 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(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; + } + +} \ 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..bdffcdf327 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1OpaqueDeviceConfigurationBuilder extends V1beta1OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + + V1beta1OpaqueDeviceConfigurationFluent fluent; + + public V1beta1OpaqueDeviceConfigurationBuilder() { + this(new V1beta1OpaqueDeviceConfiguration()); + } + + public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfigurationFluent fluent) { + this(fluent, new V1beta1OpaqueDeviceConfiguration()); + } + + public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1OpaqueDeviceConfigurationBuilder(V1beta1OpaqueDeviceConfigurationFluent fluent,V1beta1OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..878eda2e03 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java @@ -0,0 +1,100 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1OpaqueDeviceConfigurationFluent> extends BaseFluent{ + + private String driver; + private Object parameters; + + public V1beta1OpaqueDeviceConfigurationFluent() { + } + + public V1beta1OpaqueDeviceConfigurationFluent(V1beta1OpaqueDeviceConfiguration instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1OpaqueDeviceConfiguration instance) { + instance = instance != null ? instance : new V1beta1OpaqueDeviceConfiguration(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1OpaqueDeviceConfigurationFluent that = (V1beta1OpaqueDeviceConfigurationFluent) o; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; + } + + public String getDriver() { + return this.driver; + } + + public Object getParameters() { + return this.parameters; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public int hashCode() { + return Objects.hash(driver, parameters); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(parameters == null)) { + sb.append("parameters:"); + sb.append(parameters); + } + sb.append("}"); + return sb.toString(); + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java index b064e68bad..4d2ff983fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ParamKindBuilder extends V1beta1ParamKindFluent implements VisitableBuilder{ + + V1beta1ParamKindFluent fluent; + public V1beta1ParamKindBuilder() { this(new V1beta1ParamKind()); } @@ -10,17 +14,16 @@ public V1beta1ParamKindBuilder(V1beta1ParamKindFluent fluent) { this(fluent, new V1beta1ParamKind()); } - public V1beta1ParamKindBuilder(V1beta1ParamKindFluent fluent,V1beta1ParamKind instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ParamKindBuilder(V1beta1ParamKind instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ParamKindFluent fluent; + public V1beta1ParamKindBuilder(V1beta1ParamKindFluent fluent,V1beta1ParamKind instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ParamKind build() { V1beta1ParamKind buildable = new V1beta1ParamKind(); buildable.setApiVersion(fluent.getApiVersion()); @@ -28,5 +31,4 @@ public V1beta1ParamKind build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java index 4e503b27bd..0ced342452 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ParamKindFluent> extends BaseFluent{ +public class V1beta1ParamKindFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + public V1beta1ParamKindFluent() { } public V1beta1ParamKindFluent(V1beta1ParamKind instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - + protected void copyInstance(V1beta1ParamKind instance) { - instance = (instance != null ? instance : new V1beta1ParamKind()); + instance = instance != null ? instance : new V1beta1ParamKind(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ParamKindFluent that = (V1beta1ParamKindFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } 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; - V1beta1ParamKindFluent that = (V1beta1ParamKindFluent) 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()); + return Objects.hash(apiVersion, kind); } 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 (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + } sb.append("}"); return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java index 0d6fa5b388..cb9baf8576 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1ParamRefBuilder extends V1beta1ParamRefFluent implements VisitableBuilder{ + + V1beta1ParamRefFluent fluent; + public V1beta1ParamRefBuilder() { this(new V1beta1ParamRef()); } @@ -10,17 +14,16 @@ public V1beta1ParamRefBuilder(V1beta1ParamRefFluent fluent) { this(fluent, new V1beta1ParamRef()); } - public V1beta1ParamRefBuilder(V1beta1ParamRefFluent fluent,V1beta1ParamRef instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1ParamRefBuilder(V1beta1ParamRef instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1ParamRefFluent fluent; + public V1beta1ParamRefBuilder(V1beta1ParamRefFluent fluent,V1beta1ParamRef instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1ParamRef build() { V1beta1ParamRef buildable = new V1beta1ParamRef(); buildable.setName(fluent.getName()); @@ -30,5 +33,4 @@ public V1beta1ParamRef build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java index ba61ba39bb..51b999f482 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java @@ -1,94 +1,150 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1ParamRefFluent> extends BaseFluent{ +public class V1beta1ParamRefFluent> extends BaseFluent{ + + private String name; + private String namespace; + private String parameterNotFoundAction; + private V1LabelSelectorBuilder selector; + public V1beta1ParamRefFluent() { } public V1beta1ParamRefFluent(V1beta1ParamRef instance) { this.copyInstance(instance); } - private String name; - private String namespace; - private String parameterNotFoundAction; - private V1LabelSelectorBuilder selector; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V1beta1ParamRef instance) { - instance = (instance != null ? instance : new V1beta1ParamRef()); + instance = instance != null ? instance : new V1beta1ParamRef(); if (instance != null) { - this.withName(instance.getName()); - this.withNamespace(instance.getNamespace()); - this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); - this.withSelector(instance.getSelector()); - } + this.withName(instance.getName()); + this.withNamespace(instance.getNamespace()); + this.withParameterNotFoundAction(instance.getParameterNotFoundAction()); + this.withSelector(instance.getSelector()); + } } - public String getName() { - return this.name; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public A withName(String name) { - this.name = name; - return (A) this; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public boolean hasName() { - return this.name != null; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(null)); } - public String getNamespace() { - return this.namespace; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ParamRefFluent that = (V1beta1ParamRefFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(parameterNotFoundAction, that.parameterNotFoundAction))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + return true; } - public A withNamespace(String namespace) { - this.namespace = namespace; - return (A) this; + public String getName() { + return this.name; } - public boolean hasNamespace() { - return this.namespace != null; + public String getNamespace() { + return this.namespace; } public String getParameterNotFoundAction() { return this.parameterNotFoundAction; } - public A withParameterNotFoundAction(String parameterNotFoundAction) { - this.parameterNotFoundAction = parameterNotFoundAction; - return (A) this; + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; } public boolean hasParameterNotFoundAction() { return this.parameterNotFoundAction != null; } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public boolean hasSelector() { + return this.selector != 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); + public int hashCode() { + return Objects.hash(name, namespace, parameterNotFoundAction, selector); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); } + if (!(parameterNotFoundAction == null)) { + sb.append("parameterNotFoundAction:"); + sb.append(parameterNotFoundAction); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; return (A) this; } - public boolean hasSelector() { - return this.selector != null; + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; } public SelectorNested withNewSelector() { @@ -99,50 +155,30 @@ 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 A withParameterNotFoundAction(String parameterNotFoundAction) { + this.parameterNotFoundAction = parameterNotFoundAction; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V1beta1ParamRefFluent that = (V1beta1ParamRefFluent) 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 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 class SelectorNested extends V1LabelSelectorFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(name, namespace, parameterNotFoundAction, selector, super.hashCode()); - } + V1LabelSelectorBuilder builder; - 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) V1beta1ParamRefFluent.this.withSelector(builder.build()); } @@ -151,7 +187,5 @@ public N endSelector() { return and(); } - } - } \ 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..5db20f93c4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ParentReferenceBuilder extends V1beta1ParentReferenceFluent implements VisitableBuilder{ + + V1beta1ParentReferenceFluent fluent; + + public V1beta1ParentReferenceBuilder() { + this(new V1beta1ParentReference()); + } + + public V1beta1ParentReferenceBuilder(V1beta1ParentReferenceFluent fluent) { + this(fluent, new V1beta1ParentReference()); + } + + public V1beta1ParentReferenceBuilder(V1beta1ParentReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ParentReferenceBuilder(V1beta1ParentReferenceFluent fluent,V1beta1ParentReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..13b73897c5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java @@ -0,0 +1,146 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ParentReferenceFluent> extends BaseFluent{ + + private String group; + private String name; + private String namespace; + private String resource; + + public V1beta1ParentReferenceFluent() { + } + + public V1beta1ParentReferenceFluent(V1beta1ParentReference instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ParentReferenceFluent that = (V1beta1ParentReferenceFluent) o; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(namespace, that.namespace))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + return true; + } + + public String getGroup() { + return this.group; + } + + public String getName() { + return this.name; + } + + public String getNamespace() { + return this.namespace; + } + + public String getResource() { + return this.resource; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNamespace() { + return this.namespace != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public int hashCode() { + return Objects.hash(group, name, namespace, resource); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(namespace == null)) { + sb.append("namespace:"); + sb.append(namespace); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } + sb.append("}"); + return sb.toString(); + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withNamespace(String namespace) { + this.namespace = namespace; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java new file mode 100644 index 0000000000..6871d8a55f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1PodCertificateRequestBuilder extends V1beta1PodCertificateRequestFluent implements VisitableBuilder{ + + V1beta1PodCertificateRequestFluent fluent; + + public V1beta1PodCertificateRequestBuilder() { + this(new V1beta1PodCertificateRequest()); + } + + public V1beta1PodCertificateRequestBuilder(V1beta1PodCertificateRequestFluent fluent) { + this(fluent, new V1beta1PodCertificateRequest()); + } + + public V1beta1PodCertificateRequestBuilder(V1beta1PodCertificateRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodCertificateRequestBuilder(V1beta1PodCertificateRequestFluent fluent,V1beta1PodCertificateRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodCertificateRequest build() { + V1beta1PodCertificateRequest buildable = new V1beta1PodCertificateRequest(); + 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/V1beta1PodCertificateRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java new file mode 100644 index 0000000000..447dd31bbd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java @@ -0,0 +1,302 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1PodCertificateRequestFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1PodCertificateRequestSpecBuilder spec; + private V1beta1PodCertificateRequestStatusBuilder status; + + public V1beta1PodCertificateRequestFluent() { + } + + public V1beta1PodCertificateRequestFluent(V1beta1PodCertificateRequest instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1PodCertificateRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1beta1PodCertificateRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1beta1PodCertificateRequest instance) { + instance = instance != null ? instance : new V1beta1PodCertificateRequest(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1PodCertificateRequestSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1PodCertificateRequestSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1PodCertificateRequestStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta1PodCertificateRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodCertificateRequestFluent that = (V1beta1PodCertificateRequestFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1PodCertificateRequestSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta1PodCertificateRequestStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1beta1PodCertificateRequestSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1PodCertificateRequestSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1beta1PodCertificateRequestStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta1PodCertificateRequestStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodCertificateRequestFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1PodCertificateRequestSpecFluent> implements Nested{ + + V1beta1PodCertificateRequestSpecBuilder builder; + + SpecNested(V1beta1PodCertificateRequestSpec item) { + this.builder = new V1beta1PodCertificateRequestSpecBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodCertificateRequestFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1beta1PodCertificateRequestStatusFluent> implements Nested{ + + V1beta1PodCertificateRequestStatusBuilder builder; + + StatusNested(V1beta1PodCertificateRequestStatus item) { + this.builder = new V1beta1PodCertificateRequestStatusBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodCertificateRequestFluent.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/V1beta1PodCertificateRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java new file mode 100644 index 0000000000..0001ea9da8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1PodCertificateRequestListBuilder extends V1beta1PodCertificateRequestListFluent implements VisitableBuilder{ + + V1beta1PodCertificateRequestListFluent fluent; + + public V1beta1PodCertificateRequestListBuilder() { + this(new V1beta1PodCertificateRequestList()); + } + + public V1beta1PodCertificateRequestListBuilder(V1beta1PodCertificateRequestListFluent fluent) { + this(fluent, new V1beta1PodCertificateRequestList()); + } + + public V1beta1PodCertificateRequestListBuilder(V1beta1PodCertificateRequestList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodCertificateRequestListBuilder(V1beta1PodCertificateRequestListFluent fluent,V1beta1PodCertificateRequestList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodCertificateRequestList build() { + V1beta1PodCertificateRequestList buildable = new V1beta1PodCertificateRequestList(); + 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/V1beta1PodCertificateRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java new file mode 100644 index 0000000000..d2fc9cb628 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1PodCertificateRequestListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1PodCertificateRequestListFluent() { + } + + public V1beta1PodCertificateRequestListFluent(V1beta1PodCertificateRequestList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1PodCertificateRequest item : items) { + V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1PodCertificateRequest item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1beta1PodCertificateRequest... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1PodCertificateRequest item : items) { + V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1beta1PodCertificateRequest item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(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 V1beta1PodCertificateRequest buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1PodCertificateRequest buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1PodCertificateRequest buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1PodCertificateRequest buildMatchingItem(Predicate predicate) { + for (V1beta1PodCertificateRequestBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1beta1PodCertificateRequestList instance) { + instance = instance != null ? instance : new V1beta1PodCertificateRequestList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodCertificateRequestListFluent that = (V1beta1PodCertificateRequestListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1PodCertificateRequestBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1PodCertificateRequest item : items) { + V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1PodCertificateRequest... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1PodCertificateRequest item : items) { + V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1PodCertificateRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1PodCertificateRequest item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1PodCertificateRequest item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1PodCertificateRequest item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1PodCertificateRequest... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1PodCertificateRequest item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1PodCertificateRequestFluent> implements Nested{ + + V1beta1PodCertificateRequestBuilder builder; + int index; + + ItemsNested(int index,V1beta1PodCertificateRequest item) { + this.index = index; + this.builder = new V1beta1PodCertificateRequestBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodCertificateRequestListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodCertificateRequestListFluent.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/V1beta1PodCertificateRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java new file mode 100644 index 0000000000..83e95bfc42 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java @@ -0,0 +1,43 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1PodCertificateRequestSpecBuilder extends V1beta1PodCertificateRequestSpecFluent implements VisitableBuilder{ + + V1beta1PodCertificateRequestSpecFluent fluent; + + public V1beta1PodCertificateRequestSpecBuilder() { + this(new V1beta1PodCertificateRequestSpec()); + } + + public V1beta1PodCertificateRequestSpecBuilder(V1beta1PodCertificateRequestSpecFluent fluent) { + this(fluent, new V1beta1PodCertificateRequestSpec()); + } + + public V1beta1PodCertificateRequestSpecBuilder(V1beta1PodCertificateRequestSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodCertificateRequestSpecBuilder(V1beta1PodCertificateRequestSpecFluent fluent,V1beta1PodCertificateRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodCertificateRequestSpec build() { + V1beta1PodCertificateRequestSpec buildable = new V1beta1PodCertificateRequestSpec(); + buildable.setMaxExpirationSeconds(fluent.getMaxExpirationSeconds()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setNodeUID(fluent.getNodeUID()); + buildable.setPkixPublicKey(fluent.getPkixPublicKey()); + buildable.setPodName(fluent.getPodName()); + buildable.setPodUID(fluent.getPodUID()); + buildable.setProofOfPossession(fluent.getProofOfPossession()); + buildable.setServiceAccountName(fluent.getServiceAccountName()); + buildable.setServiceAccountUID(fluent.getServiceAccountUID()); + buildable.setSignerName(fluent.getSignerName()); + buildable.setUnverifiedUserAnnotations(fluent.getUnverifiedUserAnnotations()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java new file mode 100644 index 0000000000..5408c7e799 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java @@ -0,0 +1,508 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Byte; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1PodCertificateRequestSpecFluent> extends BaseFluent{ + + private Integer maxExpirationSeconds; + private String nodeName; + private String nodeUID; + private List pkixPublicKey; + private String podName; + private String podUID; + private List proofOfPossession; + private String serviceAccountName; + private String serviceAccountUID; + private String signerName; + private Map unverifiedUserAnnotations; + + public V1beta1PodCertificateRequestSpecFluent() { + } + + public V1beta1PodCertificateRequestSpecFluent(V1beta1PodCertificateRequestSpec instance) { + this.copyInstance(instance); + } + + public A addAllToPkixPublicKey(Collection items) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + for (Byte item : items) { + this.pkixPublicKey.add(item); + } + return (A) this; + } + + public A addAllToProofOfPossession(Collection items) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + for (Byte item : items) { + this.proofOfPossession.add(item); + } + return (A) this; + } + + public A addToPkixPublicKey(Byte... items) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + for (Byte item : items) { + this.pkixPublicKey.add(item); + } + return (A) this; + } + + public A addToPkixPublicKey(int index,Byte item) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + this.pkixPublicKey.add(index, item); + return (A) this; + } + + public A addToProofOfPossession(Byte... items) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + for (Byte item : items) { + this.proofOfPossession.add(item); + } + return (A) this; + } + + public A addToProofOfPossession(int index,Byte item) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + this.proofOfPossession.add(index, item); + return (A) this; + } + + public A addToUnverifiedUserAnnotations(Map map) { + if (this.unverifiedUserAnnotations == null && map != null) { + this.unverifiedUserAnnotations = new LinkedHashMap(); + } + if (map != null) { + this.unverifiedUserAnnotations.putAll(map); + } + return (A) this; + } + + public A addToUnverifiedUserAnnotations(String key,String value) { + if (this.unverifiedUserAnnotations == null && key != null && value != null) { + this.unverifiedUserAnnotations = new LinkedHashMap(); + } + if (key != null && value != null) { + this.unverifiedUserAnnotations.put(key, value); + } + return (A) this; + } + + protected void copyInstance(V1beta1PodCertificateRequestSpec instance) { + instance = instance != null ? instance : new V1beta1PodCertificateRequestSpec(); + if (instance != null) { + this.withMaxExpirationSeconds(instance.getMaxExpirationSeconds()); + this.withNodeName(instance.getNodeName()); + this.withNodeUID(instance.getNodeUID()); + this.withPkixPublicKey(instance.getPkixPublicKey()); + this.withPodName(instance.getPodName()); + this.withPodUID(instance.getPodUID()); + this.withProofOfPossession(instance.getProofOfPossession()); + this.withServiceAccountName(instance.getServiceAccountName()); + this.withServiceAccountUID(instance.getServiceAccountUID()); + this.withSignerName(instance.getSignerName()); + this.withUnverifiedUserAnnotations(instance.getUnverifiedUserAnnotations()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodCertificateRequestSpecFluent that = (V1beta1PodCertificateRequestSpecFluent) o; + if (!(Objects.equals(maxExpirationSeconds, that.maxExpirationSeconds))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeUID, that.nodeUID))) { + return false; + } + if (!(Objects.equals(pkixPublicKey, that.pkixPublicKey))) { + return false; + } + if (!(Objects.equals(podName, that.podName))) { + return false; + } + if (!(Objects.equals(podUID, that.podUID))) { + return false; + } + if (!(Objects.equals(proofOfPossession, that.proofOfPossession))) { + return false; + } + if (!(Objects.equals(serviceAccountName, that.serviceAccountName))) { + return false; + } + if (!(Objects.equals(serviceAccountUID, that.serviceAccountUID))) { + return false; + } + if (!(Objects.equals(signerName, that.signerName))) { + return false; + } + if (!(Objects.equals(unverifiedUserAnnotations, that.unverifiedUserAnnotations))) { + return false; + } + return true; + } + + public Integer getMaxExpirationSeconds() { + return this.maxExpirationSeconds; + } + + public String getNodeName() { + return this.nodeName; + } + + public String getNodeUID() { + return this.nodeUID; + } + + public byte[] getPkixPublicKey() { + int size = pkixPublicKey != null ? pkixPublicKey.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : pkixPublicKey) { + result[index++] = item; + } + return result; + } + + public String getPodName() { + return this.podName; + } + + public String getPodUID() { + return this.podUID; + } + + public byte[] getProofOfPossession() { + int size = proofOfPossession != null ? proofOfPossession.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : proofOfPossession) { + result[index++] = item; + } + return result; + } + + public String getServiceAccountName() { + return this.serviceAccountName; + } + + public String getServiceAccountUID() { + return this.serviceAccountUID; + } + + public String getSignerName() { + return this.signerName; + } + + public Map getUnverifiedUserAnnotations() { + return this.unverifiedUserAnnotations; + } + + public boolean hasMaxExpirationSeconds() { + return this.maxExpirationSeconds != null; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeUID() { + return this.nodeUID != null; + } + + public boolean hasPkixPublicKey() { + return this.pkixPublicKey != null && !(this.pkixPublicKey.isEmpty()); + } + + public boolean hasPodName() { + return this.podName != null; + } + + public boolean hasPodUID() { + return this.podUID != null; + } + + public boolean hasProofOfPossession() { + return this.proofOfPossession != null && !(this.proofOfPossession.isEmpty()); + } + + public boolean hasServiceAccountName() { + return this.serviceAccountName != null; + } + + public boolean hasServiceAccountUID() { + return this.serviceAccountUID != null; + } + + public boolean hasSignerName() { + return this.signerName != null; + } + + public boolean hasUnverifiedUserAnnotations() { + return this.unverifiedUserAnnotations != null; + } + + public int hashCode() { + return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, pkixPublicKey, podName, podUID, proofOfPossession, serviceAccountName, serviceAccountUID, signerName, unverifiedUserAnnotations); + } + + public A removeAllFromPkixPublicKey(Collection items) { + if (this.pkixPublicKey == null) { + return (A) this; + } + for (Byte item : items) { + this.pkixPublicKey.remove(item); + } + return (A) this; + } + + public A removeAllFromProofOfPossession(Collection items) { + if (this.proofOfPossession == null) { + return (A) this; + } + for (Byte item : items) { + this.proofOfPossession.remove(item); + } + return (A) this; + } + + public A removeFromPkixPublicKey(Byte... items) { + if (this.pkixPublicKey == null) { + return (A) this; + } + for (Byte item : items) { + this.pkixPublicKey.remove(item); + } + return (A) this; + } + + public A removeFromProofOfPossession(Byte... items) { + if (this.proofOfPossession == null) { + return (A) this; + } + for (Byte item : items) { + this.proofOfPossession.remove(item); + } + return (A) this; + } + + public A removeFromUnverifiedUserAnnotations(String key) { + if (this.unverifiedUserAnnotations == null) { + return (A) this; + } + if (key != null && this.unverifiedUserAnnotations != null) { + this.unverifiedUserAnnotations.remove(key); + } + return (A) this; + } + + public A removeFromUnverifiedUserAnnotations(Map map) { + if (this.unverifiedUserAnnotations == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.unverifiedUserAnnotations != null) { + this.unverifiedUserAnnotations.remove(key); + } + } + } + return (A) this; + } + + public A setToPkixPublicKey(int index,Byte item) { + if (this.pkixPublicKey == null) { + this.pkixPublicKey = new ArrayList(); + } + this.pkixPublicKey.set(index, item); + return (A) this; + } + + public A setToProofOfPossession(int index,Byte item) { + if (this.proofOfPossession == null) { + this.proofOfPossession = new ArrayList(); + } + this.proofOfPossession.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(maxExpirationSeconds == null)) { + sb.append("maxExpirationSeconds:"); + sb.append(maxExpirationSeconds); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeUID == null)) { + sb.append("nodeUID:"); + sb.append(nodeUID); + sb.append(","); + } + if (!(pkixPublicKey == null) && !(pkixPublicKey.isEmpty())) { + sb.append("pkixPublicKey:"); + sb.append(pkixPublicKey); + sb.append(","); + } + if (!(podName == null)) { + sb.append("podName:"); + sb.append(podName); + sb.append(","); + } + if (!(podUID == null)) { + sb.append("podUID:"); + sb.append(podUID); + sb.append(","); + } + if (!(proofOfPossession == null) && !(proofOfPossession.isEmpty())) { + sb.append("proofOfPossession:"); + sb.append(proofOfPossession); + sb.append(","); + } + if (!(serviceAccountName == null)) { + sb.append("serviceAccountName:"); + sb.append(serviceAccountName); + sb.append(","); + } + if (!(serviceAccountUID == null)) { + sb.append("serviceAccountUID:"); + sb.append(serviceAccountUID); + sb.append(","); + } + if (!(signerName == null)) { + sb.append("signerName:"); + sb.append(signerName); + sb.append(","); + } + if (!(unverifiedUserAnnotations == null) && !(unverifiedUserAnnotations.isEmpty())) { + sb.append("unverifiedUserAnnotations:"); + sb.append(unverifiedUserAnnotations); + } + sb.append("}"); + return sb.toString(); + } + + public A withMaxExpirationSeconds(Integer maxExpirationSeconds) { + this.maxExpirationSeconds = maxExpirationSeconds; + return (A) this; + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withNodeUID(String nodeUID) { + this.nodeUID = nodeUID; + return (A) this; + } + + public A withPkixPublicKey(byte... pkixPublicKey) { + if (this.pkixPublicKey != null) { + this.pkixPublicKey.clear(); + _visitables.remove("pkixPublicKey"); + } + if (pkixPublicKey != null) { + for (byte item : pkixPublicKey) { + this.addToPkixPublicKey(item); + } + } + return (A) this; + } + + public A withPodName(String podName) { + this.podName = podName; + return (A) this; + } + + public A withPodUID(String podUID) { + this.podUID = podUID; + return (A) this; + } + + public A withProofOfPossession(byte... proofOfPossession) { + if (this.proofOfPossession != null) { + this.proofOfPossession.clear(); + _visitables.remove("proofOfPossession"); + } + if (proofOfPossession != null) { + for (byte item : proofOfPossession) { + this.addToProofOfPossession(item); + } + } + return (A) this; + } + + public A withServiceAccountName(String serviceAccountName) { + this.serviceAccountName = serviceAccountName; + return (A) this; + } + + public A withServiceAccountUID(String serviceAccountUID) { + this.serviceAccountUID = serviceAccountUID; + return (A) this; + } + + public A withSignerName(String signerName) { + this.signerName = signerName; + return (A) this; + } + + public A withUnverifiedUserAnnotations(Map unverifiedUserAnnotations) { + if (unverifiedUserAnnotations == null) { + this.unverifiedUserAnnotations = null; + } else { + this.unverifiedUserAnnotations = new LinkedHashMap(unverifiedUserAnnotations); + } + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java new file mode 100644 index 0000000000..4418ff7069 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1PodCertificateRequestStatusBuilder extends V1beta1PodCertificateRequestStatusFluent implements VisitableBuilder{ + + V1beta1PodCertificateRequestStatusFluent fluent; + + public V1beta1PodCertificateRequestStatusBuilder() { + this(new V1beta1PodCertificateRequestStatus()); + } + + public V1beta1PodCertificateRequestStatusBuilder(V1beta1PodCertificateRequestStatusFluent fluent) { + this(fluent, new V1beta1PodCertificateRequestStatus()); + } + + public V1beta1PodCertificateRequestStatusBuilder(V1beta1PodCertificateRequestStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1PodCertificateRequestStatusBuilder(V1beta1PodCertificateRequestStatusFluent fluent,V1beta1PodCertificateRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1PodCertificateRequestStatus build() { + V1beta1PodCertificateRequestStatus buildable = new V1beta1PodCertificateRequestStatus(); + buildable.setBeginRefreshAt(fluent.getBeginRefreshAt()); + buildable.setCertificateChain(fluent.getCertificateChain()); + buildable.setConditions(fluent.buildConditions()); + buildable.setNotAfter(fluent.getNotAfter()); + buildable.setNotBefore(fluent.getNotBefore()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java new file mode 100644 index 0000000000..6983e53c31 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java @@ -0,0 +1,390 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1PodCertificateRequestStatusFluent> extends BaseFluent{ + + private OffsetDateTime beginRefreshAt; + private String certificateChain; + private ArrayList conditions; + private OffsetDateTime notAfter; + private OffsetDateTime notBefore; + + public V1beta1PodCertificateRequestStatusFluent() { + } + + public V1beta1PodCertificateRequestStatusFluent(V1beta1PodCertificateRequestStatus instance) { + this.copyInstance(instance); + } + + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(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 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 V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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; + } + + protected void copyInstance(V1beta1PodCertificateRequestStatus instance) { + instance = instance != null ? instance : new V1beta1PodCertificateRequestStatus(); + if (instance != null) { + this.withBeginRefreshAt(instance.getBeginRefreshAt()); + this.withCertificateChain(instance.getCertificateChain()); + this.withConditions(instance.getConditions()); + this.withNotAfter(instance.getNotAfter()); + this.withNotBefore(instance.getNotBefore()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1PodCertificateRequestStatusFluent that = (V1beta1PodCertificateRequestStatusFluent) o; + if (!(Objects.equals(beginRefreshAt, that.beginRefreshAt))) { + return false; + } + if (!(Objects.equals(certificateChain, that.certificateChain))) { + return false; + } + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(notAfter, that.notAfter))) { + return false; + } + if (!(Objects.equals(notBefore, that.notBefore))) { + return false; + } + return true; + } + + public OffsetDateTime getBeginRefreshAt() { + return this.beginRefreshAt; + } + + public String getCertificateChain() { + return this.certificateChain; + } + + public OffsetDateTime getNotAfter() { + return this.notAfter; + } + + public OffsetDateTime getNotBefore() { + return this.notBefore; + } + + public boolean hasBeginRefreshAt() { + return this.beginRefreshAt != null; + } + + public boolean hasCertificateChain() { + return this.certificateChain != null; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNotAfter() { + return this.notAfter != null; + } + + public boolean hasNotBefore() { + return this.notBefore != null; + } + + public int hashCode() { + return Objects.hash(beginRefreshAt, certificateChain, conditions, notAfter, notBefore); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(beginRefreshAt == null)) { + sb.append("beginRefreshAt:"); + sb.append(beginRefreshAt); + sb.append(","); + } + if (!(certificateChain == null)) { + sb.append("certificateChain:"); + sb.append(certificateChain); + sb.append(","); + } + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(notAfter == null)) { + sb.append("notAfter:"); + sb.append(notAfter); + sb.append(","); + } + if (!(notBefore == null)) { + sb.append("notBefore:"); + sb.append(notBefore); + } + sb.append("}"); + return sb.toString(); + } + + public A withBeginRefreshAt(OffsetDateTime beginRefreshAt) { + this.beginRefreshAt = beginRefreshAt; + return (A) this; + } + + public A withCertificateChain(String certificateChain) { + this.certificateChain = certificateChain; + return (A) this; + } + + 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(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 A withNotAfter(OffsetDateTime notAfter) { + this.notAfter = notAfter; + return (A) this; + } + + public A withNotBefore(OffsetDateTime notBefore) { + this.notBefore = notBefore; + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1beta1PodCertificateRequestStatusFluent.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/V1beta1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java new file mode 100644 index 0000000000..c5b248fcca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceClaimBuilder extends V1beta1ResourceClaimFluent implements VisitableBuilder{ + + V1beta1ResourceClaimFluent fluent; + + public V1beta1ResourceClaimBuilder() { + this(new V1beta1ResourceClaim()); + } + + public V1beta1ResourceClaimBuilder(V1beta1ResourceClaimFluent fluent) { + this(fluent, new V1beta1ResourceClaim()); + } + + public V1beta1ResourceClaimBuilder(V1beta1ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceClaimBuilder(V1beta1ResourceClaimFluent fluent,V1beta1ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b7c91daab9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceClaimConsumerReferenceBuilder extends V1beta1ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + + V1beta1ResourceClaimConsumerReferenceFluent fluent; + + public V1beta1ResourceClaimConsumerReferenceBuilder() { + this(new V1beta1ResourceClaimConsumerReference()); + } + + public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumerReferenceFluent fluent) { + this(fluent, new V1beta1ResourceClaimConsumerReference()); + } + + public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumerReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceClaimConsumerReferenceBuilder(V1beta1ResourceClaimConsumerReferenceFluent fluent,V1beta1ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..7fd8796cb3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java @@ -0,0 +1,146 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String name; + private String resource; + private String uid; + + public V1beta1ResourceClaimConsumerReferenceFluent() { + } + + public V1beta1ResourceClaimConsumerReferenceFluent(V1beta1ResourceClaimConsumerReference instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceClaimConsumerReferenceFluent that = (V1beta1ResourceClaimConsumerReferenceFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; + } + + public String getApiGroup() { + return this.apiGroup; + } + + public String getName() { + return this.name; + } + + public String getResource() { + return this.resource; + } + + public String getUid() { + return this.uid; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasUid() { + return this.uid != null; + } + + public int hashCode() { + return Objects.hash(apiGroup, name, resource, uid); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + +} \ 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..488d59c0c3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java @@ -0,0 +1,302 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceClaimSpecBuilder spec; + private V1beta1ResourceClaimStatusBuilder status; + + public V1beta1ResourceClaimFluent() { + } + + public V1beta1ResourceClaimFluent(V1beta1ResourceClaim instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1beta1ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ResourceClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1ResourceClaimStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta1ResourceClaimStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceClaimFluent that = (V1beta1ResourceClaimFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta1ResourceClaimStatus item) { + return new StatusNested(item); + } + + 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 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceClaimFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1ResourceClaimSpecFluent> implements Nested{ + + V1beta1ResourceClaimSpecBuilder builder; + + SpecNested(V1beta1ResourceClaimSpec item) { + this.builder = new V1beta1ResourceClaimSpecBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceClaimFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1beta1ResourceClaimStatusFluent> implements Nested{ + + V1beta1ResourceClaimStatusBuilder builder; + + StatusNested(V1beta1ResourceClaimStatus item) { + this.builder = new V1beta1ResourceClaimStatusBuilder(this, item); + } + + 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..4a53459f39 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceClaimListBuilder extends V1beta1ResourceClaimListFluent implements VisitableBuilder{ + + V1beta1ResourceClaimListFluent fluent; + + public V1beta1ResourceClaimListBuilder() { + this(new V1beta1ResourceClaimList()); + } + + public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimListFluent fluent) { + this(fluent, new V1beta1ResourceClaimList()); + } + + public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceClaimListBuilder(V1beta1ResourceClaimListFluent fluent,V1beta1ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..fbe55dfa07 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1ResourceClaimListFluent() { + } + + public V1beta1ResourceClaimListFluent(V1beta1ResourceClaimList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ResourceClaim item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta1ResourceClaim buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ResourceClaim buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceClaimListFluent that = (V1beta1ResourceClaimListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta1ResourceClaim item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1ResourceClaimFluent> implements Nested{ + + V1beta1ResourceClaimBuilder builder; + int index; + + ItemsNested(int index,V1beta1ResourceClaim item) { + this.index = index; + this.builder = new V1beta1ResourceClaimBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceClaimListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..da7d215de2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceClaimSpecBuilder extends V1beta1ResourceClaimSpecFluent implements VisitableBuilder{ + + V1beta1ResourceClaimSpecFluent fluent; + + public V1beta1ResourceClaimSpecBuilder() { + this(new V1beta1ResourceClaimSpec()); + } + + public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpecFluent fluent) { + this(fluent, new V1beta1ResourceClaimSpec()); + } + + public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceClaimSpecBuilder(V1beta1ResourceClaimSpecFluent fluent,V1beta1ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..d1a0e8dc13 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimSpecFluent> extends BaseFluent{ + + private V1beta1DeviceClaimBuilder devices; + + public V1beta1ResourceClaimSpecFluent() { + } + + public V1beta1ResourceClaimSpecFluent(V1beta1ResourceClaimSpec instance) { + this.copyInstance(instance); + } + + public V1beta1DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + protected void copyInstance(V1beta1ResourceClaimSpec instance) { + instance = instance != null ? instance : new V1beta1ResourceClaimSpec(); + if (instance != null) { + this.withDevices(instance.getDevices()); + } + } + + public DevicesNested editDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta1DeviceClaimBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta1DeviceClaim item) { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceClaimSpecFluent that = (V1beta1ResourceClaimSpecFluent) o; + if (!(Objects.equals(devices, that.devices))) { + return false; + } + return true; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public int hashCode() { + return Objects.hash(devices); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + } + sb.append("}"); + return sb.toString(); + } + + 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 DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta1DeviceClaim item) { + return new DevicesNested(item); + } + public class DevicesNested extends V1beta1DeviceClaimFluent> implements Nested{ + + V1beta1DeviceClaimBuilder builder; + + DevicesNested(V1beta1DeviceClaim item) { + this.builder = new V1beta1DeviceClaimBuilder(this, item); + } + + 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..134ded6056 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceClaimStatusBuilder extends V1beta1ResourceClaimStatusFluent implements VisitableBuilder{ + + V1beta1ResourceClaimStatusFluent fluent; + + public V1beta1ResourceClaimStatusBuilder() { + this(new V1beta1ResourceClaimStatus()); + } + + public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatusFluent fluent) { + this(fluent, new V1beta1ResourceClaimStatus()); + } + + public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceClaimStatusBuilder(V1beta1ResourceClaimStatusFluent fluent,V1beta1ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..17e3a1bc04 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java @@ -0,0 +1,602 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimStatusFluent> extends BaseFluent{ + + private V1beta1AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + + public V1beta1ResourceClaimStatusFluent() { + } + + public V1beta1ResourceClaimStatusFluent(V1beta1ResourceClaimStatus instance) { + this.copyInstance(instance); + } + + 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 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 DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta1AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); + } + + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); + } + + public ReservedForNested addNewReservedForLike(V1beta1ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); + } + + public A addToDevices(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 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 addToReservedFor(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 addToReservedFor(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.add(index, builder); + } + return (A) this; + } + + public V1beta1AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; + } + + public V1beta1AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta1AllocatedDeviceStatus buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta1ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + + public V1beta1AllocatedDeviceStatus buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta1ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + + public V1beta1AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { + for (V1beta1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1beta1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; + } + + public V1beta1ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); + } + + 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 AllocationNested editAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); + } + + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(0, this.buildReservedFor(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < devices.size();i++) { + if (predicate.test(devices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public ReservedForNested editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i = 0;i < reservedFor.size();i++) { + if (predicate.test(reservedFor.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public AllocationNested editOrNewAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1beta1AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1beta1AllocationResult item) { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceClaimStatusFluent that = (V1beta1ResourceClaimStatusFluent) o; + if (!(Objects.equals(allocation, that.allocation))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(reservedFor, that.reservedFor))) { + return false; + } + return true; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta1AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1beta1ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !(this.reservedFor.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocation, devices, reservedFor); + } + + 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 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 removeFromDevices(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 removeFromReservedFor(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 removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + 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 A removeMatchingFromReservedFor(Predicate predicate) { + if (reservedFor == null) { + return (A) this; + } + Iterator each = reservedFor.iterator(); + 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 DevicesNested setNewDeviceLike(int index,V1beta1AllocatedDeviceStatus item) { + return new DevicesNested(index, item); + } + + public ReservedForNested setNewReservedForLike(int index,V1beta1ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocation == null)) { + sb.append("allocation:"); + sb.append(allocation); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(reservedFor == null) && !(reservedFor.isEmpty())) { + sb.append("reservedFor:"); + sb.append(reservedFor); + } + sb.append("}"); + return sb.toString(); + } + + 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 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(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 AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1beta1AllocationResult item) { + return new AllocationNested(item); + } + + 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(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 class AllocationNested extends V1beta1AllocationResultFluent> implements Nested{ + + V1beta1AllocationResultBuilder builder; + + AllocationNested(V1beta1AllocationResult item) { + this.builder = new V1beta1AllocationResultBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceClaimStatusFluent.this.withAllocation(builder.build()); + } + + public N endAllocation() { + return and(); + } + + } + public class DevicesNested extends V1beta1AllocatedDeviceStatusFluent> implements Nested{ + + V1beta1AllocatedDeviceStatusBuilder builder; + int index; + + DevicesNested(int index,V1beta1AllocatedDeviceStatus item) { + this.index = index; + this.builder = new V1beta1AllocatedDeviceStatusBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceClaimStatusFluent.this.setToDevices(index, builder.build()); + } + + public N endDevice() { + return and(); + } + + } + public class ReservedForNested extends V1beta1ResourceClaimConsumerReferenceFluent> implements Nested{ + + V1beta1ResourceClaimConsumerReferenceBuilder builder; + int index; + + ReservedForNested(int index,V1beta1ResourceClaimConsumerReference item) { + this.index = index; + this.builder = new V1beta1ResourceClaimConsumerReferenceBuilder(this, item); + } + + 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..c869e45685 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceClaimTemplateBuilder extends V1beta1ResourceClaimTemplateFluent implements VisitableBuilder{ + + V1beta1ResourceClaimTemplateFluent fluent; + + public V1beta1ResourceClaimTemplateBuilder() { + this(new V1beta1ResourceClaimTemplate()); + } + + public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplateFluent fluent) { + this(fluent, new V1beta1ResourceClaimTemplate()); + } + + public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceClaimTemplateBuilder(V1beta1ResourceClaimTemplateFluent fluent,V1beta1ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..3b3a50740d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimTemplateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceClaimTemplateSpecBuilder spec; + + public V1beta1ResourceClaimTemplateFluent() { + } + + public V1beta1ResourceClaimTemplateFluent(V1beta1ResourceClaimTemplate instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceClaimTemplateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceClaimTemplateFluent that = (V1beta1ResourceClaimTemplateFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceClaimTemplateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1ResourceClaimTemplateSpecFluent> implements Nested{ + + V1beta1ResourceClaimTemplateSpecBuilder builder; + + SpecNested(V1beta1ResourceClaimTemplateSpec item) { + this.builder = new V1beta1ResourceClaimTemplateSpecBuilder(this, item); + } + + 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..e2a84b5751 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceClaimTemplateListBuilder extends V1beta1ResourceClaimTemplateListFluent implements VisitableBuilder{ + + V1beta1ResourceClaimTemplateListFluent fluent; + + public V1beta1ResourceClaimTemplateListBuilder() { + this(new V1beta1ResourceClaimTemplateList()); + } + + public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateListFluent fluent) { + this(fluent, new V1beta1ResourceClaimTemplateList()); + } + + public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceClaimTemplateListBuilder(V1beta1ResourceClaimTemplateListFluent fluent,V1beta1ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..f446e57a7e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimTemplateListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1ResourceClaimTemplateListFluent() { + } + + public V1beta1ResourceClaimTemplateListFluent(V1beta1ResourceClaimTemplateList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ResourceClaimTemplate item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta1ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ResourceClaimTemplate buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceClaimTemplateListFluent that = (V1beta1ResourceClaimTemplateListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta1ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1ResourceClaimTemplateFluent> implements Nested{ + + V1beta1ResourceClaimTemplateBuilder builder; + int index; + + ItemsNested(int index,V1beta1ResourceClaimTemplate item) { + this.index = index; + this.builder = new V1beta1ResourceClaimTemplateBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceClaimTemplateListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..7558f64a72 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceClaimTemplateSpecBuilder extends V1beta1ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + + V1beta1ResourceClaimTemplateSpecFluent fluent; + + public V1beta1ResourceClaimTemplateSpecBuilder() { + this(new V1beta1ResourceClaimTemplateSpec()); + } + + public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpecFluent fluent) { + this(fluent, new V1beta1ResourceClaimTemplateSpec()); + } + + public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceClaimTemplateSpecBuilder(V1beta1ResourceClaimTemplateSpecFluent fluent,V1beta1ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..edf5770c35 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java @@ -0,0 +1,189 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceClaimTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceClaimSpecBuilder spec; + + public V1beta1ResourceClaimTemplateSpecFluent() { + } + + public V1beta1ResourceClaimTemplateSpecFluent(V1beta1ResourceClaimTemplateSpec instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1beta1ResourceClaimTemplateSpec instance) { + instance = instance != null ? instance : new V1beta1ResourceClaimTemplateSpec(); + if (instance != null) { + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ResourceClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceClaimTemplateSpecFluent that = (V1beta1ResourceClaimTemplateSpecFluent) o; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceClaimSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1ResourceClaimSpecFluent> implements Nested{ + + V1beta1ResourceClaimSpecBuilder builder; + + SpecNested(V1beta1ResourceClaimSpec item) { + this.builder = new V1beta1ResourceClaimSpecBuilder(this, item); + } + + 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..602d67ce0b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourcePoolBuilder extends V1beta1ResourcePoolFluent implements VisitableBuilder{ + + V1beta1ResourcePoolFluent fluent; + + public V1beta1ResourcePoolBuilder() { + this(new V1beta1ResourcePool()); + } + + public V1beta1ResourcePoolBuilder(V1beta1ResourcePoolFluent fluent) { + this(fluent, new V1beta1ResourcePool()); + } + + public V1beta1ResourcePoolBuilder(V1beta1ResourcePool instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourcePoolBuilder(V1beta1ResourcePoolFluent fluent,V1beta1ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..970689f7db --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java @@ -0,0 +1,124 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourcePoolFluent> extends BaseFluent{ + + private Long generation; + private String name; + private Long resourceSliceCount; + + public V1beta1ResourcePoolFluent() { + } + + public V1beta1ResourcePoolFluent(V1beta1ResourcePool instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourcePoolFluent that = (V1beta1ResourcePoolFluent) o; + if (!(Objects.equals(generation, that.generation))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceSliceCount, that.resourceSliceCount))) { + return false; + } + return true; + } + + public Long getGeneration() { + return this.generation; + } + + public String getName() { + return this.name; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + + public int hashCode() { + return Objects.hash(generation, name, resourceSliceCount); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(generation == null)) { + sb.append("generation:"); + sb.append(generation); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceSliceCount == null)) { + sb.append("resourceSliceCount:"); + sb.append(resourceSliceCount); + } + sb.append("}"); + return sb.toString(); + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + +} \ 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..7064eff0da --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceSliceBuilder extends V1beta1ResourceSliceFluent implements VisitableBuilder{ + + V1beta1ResourceSliceFluent fluent; + + public V1beta1ResourceSliceBuilder() { + this(new V1beta1ResourceSlice()); + } + + public V1beta1ResourceSliceBuilder(V1beta1ResourceSliceFluent fluent) { + this(fluent, new V1beta1ResourceSlice()); + } + + public V1beta1ResourceSliceBuilder(V1beta1ResourceSlice instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceSliceBuilder(V1beta1ResourceSliceFluent fluent,V1beta1ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..20a02da6ff --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceSliceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ResourceSliceSpecBuilder spec; + + public V1beta1ResourceSliceFluent() { + } + + public V1beta1ResourceSliceFluent(V1beta1ResourceSlice instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ResourceSliceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ResourceSliceSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceSliceFluent that = (V1beta1ResourceSliceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ResourceSliceSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceSliceFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1ResourceSliceSpecFluent> implements Nested{ + + V1beta1ResourceSliceSpecBuilder builder; + + SpecNested(V1beta1ResourceSliceSpec item) { + this.builder = new V1beta1ResourceSliceSpecBuilder(this, item); + } + + 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..e26b107fad --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceSliceListBuilder extends V1beta1ResourceSliceListFluent implements VisitableBuilder{ + + V1beta1ResourceSliceListFluent fluent; + + public V1beta1ResourceSliceListBuilder() { + this(new V1beta1ResourceSliceList()); + } + + public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceListFluent fluent) { + this(fluent, new V1beta1ResourceSliceList()); + } + + public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceSliceListBuilder(V1beta1ResourceSliceListFluent fluent,V1beta1ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..3fc949cc30 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceSliceListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1ResourceSliceListFluent() { + } + + public V1beta1ResourceSliceListFluent(V1beta1ResourceSliceList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ResourceSlice item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta1ResourceSlice buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ResourceSlice buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceSliceListFluent that = (V1beta1ResourceSliceListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta1ResourceSlice item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1ResourceSliceFluent> implements Nested{ + + V1beta1ResourceSliceBuilder builder; + int index; + + ItemsNested(int index,V1beta1ResourceSlice item) { + this.index = index; + this.builder = new V1beta1ResourceSliceBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceSliceListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..ded64a8203 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java @@ -0,0 +1,40 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ResourceSliceSpecBuilder extends V1beta1ResourceSliceSpecFluent implements VisitableBuilder{ + + V1beta1ResourceSliceSpecFluent fluent; + + public V1beta1ResourceSliceSpecBuilder() { + this(new V1beta1ResourceSliceSpec()); + } + + public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpecFluent fluent) { + this(fluent, new V1beta1ResourceSliceSpec()); + } + + public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ResourceSliceSpecBuilder(V1beta1ResourceSliceSpecFluent fluent,V1beta1ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b04b498f87 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java @@ -0,0 +1,770 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ResourceSliceSpecFluent> extends BaseFluent{ + + private Boolean allNodes; + private ArrayList devices; + private String driver; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; + private V1beta1ResourcePoolBuilder pool; + private ArrayList sharedCounters; + + public V1beta1ResourceSliceSpecFluent() { + } + + public V1beta1ResourceSliceSpecFluent(V1beta1ResourceSliceSpec instance) { + this.copyInstance(instance); + } + + 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 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 DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta1Device item) { + return new DevicesNested(-1, item); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1beta1CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public A addToDevices(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 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 addToSharedCounters(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 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 V1beta1Device buildDevice(int index) { + return this.devices.get(index).build(); + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta1Device buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta1CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1beta1Device buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta1CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1beta1Device buildMatchingDevice(Predicate predicate) { + for (V1beta1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta1CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1beta1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public V1beta1ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; + } + + public V1beta1CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + 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 DevicesNested editDevice(int index) { + if (devices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < devices.size();i++) { + if (predicate.test(devices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < sharedCounters.size();i++) { + if (predicate.test(sharedCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public PoolNested editOrNewPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1beta1ResourcePoolBuilder().build())); + } + + public PoolNested editOrNewPoolLike(V1beta1ResourcePool item) { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); + } + + public PoolNested editPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); + } + + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ResourceSliceSpecFluent that = (V1beta1ResourceSliceSpecFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(sharedCounters, that.sharedCounters))) { + return false; + } + return true; + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public String getDriver() { + return this.driver; + } + + public String getNodeName() { + return this.nodeName; + } + + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta1DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1beta1CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + } + + 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 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 removeFromDevices(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 removeFromSharedCounters(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 removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + 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 A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) { + return (A) this; + } + Iterator each = sharedCounters.iterator(); + 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 DevicesNested setNewDeviceLike(int index,V1beta1Device item) { + return new DevicesNested(index, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1beta1CounterSet item) { + return new SharedCountersNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allNodes == null)) { + sb.append("allNodes:"); + sb.append(allNodes); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(perDeviceNodeSelection == null)) { + sb.append("perDeviceNodeSelection:"); + sb.append(perDeviceNodeSelection); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(sharedCounters == null) && !(sharedCounters.isEmpty())) { + sb.append("sharedCounters:"); + sb.append(sharedCounters); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllNodes() { + return withAllNodes(true); + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + 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(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 A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1beta1ResourcePool item) { + return new PoolNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + 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 A withPerDeviceNodeSelection() { + return withPerDeviceNodeSelection(true); + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + 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 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(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 class DevicesNested extends V1beta1DeviceFluent> implements Nested{ + + V1beta1DeviceBuilder builder; + int index; + + DevicesNested(int index,V1beta1Device item) { + this.index = index; + this.builder = new V1beta1DeviceBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceSliceSpecFluent.this.setToDevices(index, builder.build()); + } + + public N endDevice() { + return and(); + } + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + } + public class PoolNested extends V1beta1ResourcePoolFluent> implements Nested{ + + V1beta1ResourcePoolBuilder builder; + + PoolNested(V1beta1ResourcePool item) { + this.builder = new V1beta1ResourcePoolBuilder(this, item); + } + + public N and() { + return (N) V1beta1ResourceSliceSpecFluent.this.withPool(builder.build()); + } + + public N endPool() { + return and(); + } + + } + public class SharedCountersNested extends V1beta1CounterSetFluent> implements Nested{ + + V1beta1CounterSetBuilder builder; + int index; + + SharedCountersNested(int index,V1beta1CounterSet item) { + this.index = index; + this.builder = new V1beta1CounterSetBuilder(this, item); + } + + 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..b1bfd548c6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ServiceCIDRBuilder extends V1beta1ServiceCIDRFluent implements VisitableBuilder{ + + V1beta1ServiceCIDRFluent fluent; + + public V1beta1ServiceCIDRBuilder() { + this(new V1beta1ServiceCIDR()); + } + + public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDRFluent fluent) { + this(fluent, new V1beta1ServiceCIDR()); + } + + public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDR instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ServiceCIDRBuilder(V1beta1ServiceCIDRFluent fluent,V1beta1ServiceCIDR instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..eb6e352785 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java @@ -0,0 +1,302 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ServiceCIDRFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1ServiceCIDRSpecBuilder spec; + private V1beta1ServiceCIDRStatusBuilder status; + + public V1beta1ServiceCIDRFluent() { + } + + public V1beta1ServiceCIDRFluent(V1beta1ServiceCIDR instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1ServiceCIDRSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1beta1ServiceCIDRStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1ServiceCIDRSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1ServiceCIDRSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1ServiceCIDRStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta1ServiceCIDRStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ServiceCIDRFluent that = (V1beta1ServiceCIDRFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1ServiceCIDRSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta1ServiceCIDRStatus item) { + return new StatusNested(item); + } + + 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 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1ServiceCIDRFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1ServiceCIDRSpecFluent> implements Nested{ + + V1beta1ServiceCIDRSpecBuilder builder; + + SpecNested(V1beta1ServiceCIDRSpec item) { + this.builder = new V1beta1ServiceCIDRSpecBuilder(this, item); + } + + public N and() { + return (N) V1beta1ServiceCIDRFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1beta1ServiceCIDRStatusFluent> implements Nested{ + + V1beta1ServiceCIDRStatusBuilder builder; + + StatusNested(V1beta1ServiceCIDRStatus item) { + this.builder = new V1beta1ServiceCIDRStatusBuilder(this, item); + } + + 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..471a00dd59 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ServiceCIDRListBuilder extends V1beta1ServiceCIDRListFluent implements VisitableBuilder{ + + V1beta1ServiceCIDRListFluent fluent; + + public V1beta1ServiceCIDRListBuilder() { + this(new V1beta1ServiceCIDRList()); + } + + public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRListFluent fluent) { + this(fluent, new V1beta1ServiceCIDRList()); + } + + public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ServiceCIDRListBuilder(V1beta1ServiceCIDRListFluent fluent,V1beta1ServiceCIDRList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..9283129dfa --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ServiceCIDRListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1ServiceCIDRListFluent() { + } + + public V1beta1ServiceCIDRListFluent(V1beta1ServiceCIDRList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1ServiceCIDR item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta1ServiceCIDR buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1ServiceCIDR buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ServiceCIDRListFluent that = (V1beta1ServiceCIDRListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1ServiceCIDRBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta1ServiceCIDR item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1ServiceCIDRFluent> implements Nested{ + + V1beta1ServiceCIDRBuilder builder; + int index; + + ItemsNested(int index,V1beta1ServiceCIDR item) { + this.index = index; + this.builder = new V1beta1ServiceCIDRBuilder(this, item); + } + + public N and() { + return (N) V1beta1ServiceCIDRListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..3167695e73 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ServiceCIDRSpecBuilder extends V1beta1ServiceCIDRSpecFluent implements VisitableBuilder{ + + V1beta1ServiceCIDRSpecFluent fluent; + + public V1beta1ServiceCIDRSpecBuilder() { + this(new V1beta1ServiceCIDRSpec()); + } + + public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpecFluent fluent) { + this(fluent, new V1beta1ServiceCIDRSpec()); + } + + public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ServiceCIDRSpecBuilder(V1beta1ServiceCIDRSpecFluent fluent,V1beta1ServiceCIDRSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..16c524ed0f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java @@ -0,0 +1,187 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ServiceCIDRSpecFluent> extends BaseFluent{ + + private List cidrs; + + public V1beta1ServiceCIDRSpecFluent() { + } + + public V1beta1ServiceCIDRSpecFluent(V1beta1ServiceCIDRSpec instance) { + this.copyInstance(instance); + } + + 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 addToCidrs(String... items) { + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + for (String item : items) { + this.cidrs.add(item); + } + return (A) this; + } + + public A addToCidrs(int index,String item) { + if (this.cidrs == null) { + this.cidrs = new ArrayList(); + } + this.cidrs.add(index, item); + return (A) this; + } + + protected void copyInstance(V1beta1ServiceCIDRSpec instance) { + instance = instance != null ? instance : new V1beta1ServiceCIDRSpec(); + if (instance != null) { + this.withCidrs(instance.getCidrs()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ServiceCIDRSpecFluent that = (V1beta1ServiceCIDRSpecFluent) o; + if (!(Objects.equals(cidrs, that.cidrs))) { + return false; + } + return true; + } + + public String getCidr(int index) { + return this.cidrs.get(index); + } + + public List getCidrs() { + return this.cidrs; + } + + 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 hasCidrs() { + return this.cidrs != null && !(this.cidrs.isEmpty()); + } + + public boolean hasMatchingCidr(Predicate predicate) { + for (String item : cidrs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(cidrs); + } + + public A removeAllFromCidrs(Collection items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(item); + } + return (A) this; + } + + public A removeFromCidrs(String... items) { + if (this.cidrs == null) { + return (A) this; + } + for (String item : items) { + this.cidrs.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cidrs == null) && !(cidrs.isEmpty())) { + sb.append("cidrs:"); + sb.append(cidrs); + } + sb.append("}"); + return sb.toString(); + } + + 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(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; + } + +} \ 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..00e5ac46ed --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1ServiceCIDRStatusBuilder extends V1beta1ServiceCIDRStatusFluent implements VisitableBuilder{ + + V1beta1ServiceCIDRStatusFluent fluent; + + public V1beta1ServiceCIDRStatusBuilder() { + this(new V1beta1ServiceCIDRStatus()); + } + + public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatusFluent fluent) { + this(fluent, new V1beta1ServiceCIDRStatus()); + } + + public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1ServiceCIDRStatusBuilder(V1beta1ServiceCIDRStatusFluent fluent,V1beta1ServiceCIDRStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..e79fbe8793 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java @@ -0,0 +1,297 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1ServiceCIDRStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + + public V1beta1ServiceCIDRStatusFluent() { + } + + public V1beta1ServiceCIDRStatusFluent(V1beta1ServiceCIDRStatus instance) { + this.copyInstance(instance); + } + + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(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 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 V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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; + } + + protected void copyInstance(V1beta1ServiceCIDRStatus instance) { + instance = instance != null ? instance : new V1beta1ServiceCIDRStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1ServiceCIDRStatusFluent that = (V1beta1ServiceCIDRStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(conditions); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + 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/V1beta1StorageVersionMigrationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java new file mode 100644 index 0000000000..d2ace9def2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1StorageVersionMigrationBuilder extends V1beta1StorageVersionMigrationFluent implements VisitableBuilder{ + + V1beta1StorageVersionMigrationFluent fluent; + + public V1beta1StorageVersionMigrationBuilder() { + this(new V1beta1StorageVersionMigration()); + } + + public V1beta1StorageVersionMigrationBuilder(V1beta1StorageVersionMigrationFluent fluent) { + this(fluent, new V1beta1StorageVersionMigration()); + } + + public V1beta1StorageVersionMigrationBuilder(V1beta1StorageVersionMigration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1StorageVersionMigrationBuilder(V1beta1StorageVersionMigrationFluent fluent,V1beta1StorageVersionMigration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1StorageVersionMigration build() { + V1beta1StorageVersionMigration buildable = new V1beta1StorageVersionMigration(); + 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/V1beta1StorageVersionMigrationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java new file mode 100644 index 0000000000..00ec72ba64 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java @@ -0,0 +1,302 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1StorageVersionMigrationFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta1StorageVersionMigrationSpecBuilder spec; + private V1beta1StorageVersionMigrationStatusBuilder status; + + public V1beta1StorageVersionMigrationFluent() { + } + + public V1beta1StorageVersionMigrationFluent(V1beta1StorageVersionMigration instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta1StorageVersionMigrationSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1beta1StorageVersionMigrationStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1beta1StorageVersionMigration instance) { + instance = instance != null ? instance : new V1beta1StorageVersionMigration(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta1StorageVersionMigrationSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta1StorageVersionMigrationSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta1StorageVersionMigrationStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta1StorageVersionMigrationStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1StorageVersionMigrationFluent that = (V1beta1StorageVersionMigrationFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta1StorageVersionMigrationSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta1StorageVersionMigrationStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1beta1StorageVersionMigrationSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta1StorageVersionMigrationSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1beta1StorageVersionMigrationStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta1StorageVersionMigrationStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1StorageVersionMigrationFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta1StorageVersionMigrationSpecFluent> implements Nested{ + + V1beta1StorageVersionMigrationSpecBuilder builder; + + SpecNested(V1beta1StorageVersionMigrationSpec item) { + this.builder = new V1beta1StorageVersionMigrationSpecBuilder(this, item); + } + + public N and() { + return (N) V1beta1StorageVersionMigrationFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1beta1StorageVersionMigrationStatusFluent> implements Nested{ + + V1beta1StorageVersionMigrationStatusBuilder builder; + + StatusNested(V1beta1StorageVersionMigrationStatus item) { + this.builder = new V1beta1StorageVersionMigrationStatusBuilder(this, item); + } + + public N and() { + return (N) V1beta1StorageVersionMigrationFluent.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/V1beta1StorageVersionMigrationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java new file mode 100644 index 0000000000..8d5d3e4b9f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1StorageVersionMigrationListBuilder extends V1beta1StorageVersionMigrationListFluent implements VisitableBuilder{ + + V1beta1StorageVersionMigrationListFluent fluent; + + public V1beta1StorageVersionMigrationListBuilder() { + this(new V1beta1StorageVersionMigrationList()); + } + + public V1beta1StorageVersionMigrationListBuilder(V1beta1StorageVersionMigrationListFluent fluent) { + this(fluent, new V1beta1StorageVersionMigrationList()); + } + + public V1beta1StorageVersionMigrationListBuilder(V1beta1StorageVersionMigrationList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1StorageVersionMigrationListBuilder(V1beta1StorageVersionMigrationListFluent fluent,V1beta1StorageVersionMigrationList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1StorageVersionMigrationList build() { + V1beta1StorageVersionMigrationList buildable = new V1beta1StorageVersionMigrationList(); + 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/V1beta1StorageVersionMigrationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java new file mode 100644 index 0000000000..80167d8d9e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1StorageVersionMigrationListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1StorageVersionMigrationListFluent() { + } + + public V1beta1StorageVersionMigrationListFluent(V1beta1StorageVersionMigrationList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1StorageVersionMigration item : items) { + V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1StorageVersionMigration item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1beta1StorageVersionMigration... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta1StorageVersionMigration item : items) { + V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1beta1StorageVersionMigration item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(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 V1beta1StorageVersionMigration buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1StorageVersionMigration buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta1StorageVersionMigration buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta1StorageVersionMigration buildMatchingItem(Predicate predicate) { + for (V1beta1StorageVersionMigrationBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1beta1StorageVersionMigrationList instance) { + instance = instance != null ? instance : new V1beta1StorageVersionMigrationList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1StorageVersionMigrationListFluent that = (V1beta1StorageVersionMigrationListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1StorageVersionMigrationBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1StorageVersionMigration item : items) { + V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta1StorageVersionMigration... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta1StorageVersionMigration item : items) { + V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V1beta1StorageVersionMigrationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta1StorageVersionMigration item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta1StorageVersionMigration item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta1StorageVersionMigration item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta1StorageVersionMigration... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta1StorageVersionMigration item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1StorageVersionMigrationFluent> implements Nested{ + + V1beta1StorageVersionMigrationBuilder builder; + int index; + + ItemsNested(int index,V1beta1StorageVersionMigration item) { + this.index = index; + this.builder = new V1beta1StorageVersionMigrationBuilder(this, item); + } + + public N and() { + return (N) V1beta1StorageVersionMigrationListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta1StorageVersionMigrationListFluent.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/V1beta1StorageVersionMigrationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java new file mode 100644 index 0000000000..a51baf1b1e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1StorageVersionMigrationSpecBuilder extends V1beta1StorageVersionMigrationSpecFluent implements VisitableBuilder{ + + V1beta1StorageVersionMigrationSpecFluent fluent; + + public V1beta1StorageVersionMigrationSpecBuilder() { + this(new V1beta1StorageVersionMigrationSpec()); + } + + public V1beta1StorageVersionMigrationSpecBuilder(V1beta1StorageVersionMigrationSpecFluent fluent) { + this(fluent, new V1beta1StorageVersionMigrationSpec()); + } + + public V1beta1StorageVersionMigrationSpecBuilder(V1beta1StorageVersionMigrationSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1StorageVersionMigrationSpecBuilder(V1beta1StorageVersionMigrationSpecFluent fluent,V1beta1StorageVersionMigrationSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1StorageVersionMigrationSpec build() { + V1beta1StorageVersionMigrationSpec buildable = new V1beta1StorageVersionMigrationSpec(); + buildable.setResource(fluent.buildResource()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java new file mode 100644 index 0000000000..0a688f836a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1StorageVersionMigrationSpecFluent> extends BaseFluent{ + + private V1GroupResourceBuilder resource; + + public V1beta1StorageVersionMigrationSpecFluent() { + } + + public V1beta1StorageVersionMigrationSpecFluent(V1beta1StorageVersionMigrationSpec instance) { + this.copyInstance(instance); + } + + public V1GroupResource buildResource() { + return this.resource != null ? this.resource.build() : null; + } + + protected void copyInstance(V1beta1StorageVersionMigrationSpec instance) { + instance = instance != null ? instance : new V1beta1StorageVersionMigrationSpec(); + if (instance != null) { + this.withResource(instance.getResource()); + } + } + + public ResourceNested editOrNewResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V1GroupResourceBuilder().build())); + } + + public ResourceNested editOrNewResourceLike(V1GroupResource item) { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); + } + + public ResourceNested editResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1StorageVersionMigrationSpecFluent that = (V1beta1StorageVersionMigrationSpecFluent) o; + if (!(Objects.equals(resource, that.resource))) { + return false; + } + return true; + } + + public boolean hasResource() { + return this.resource != null; + } + + public int hashCode() { + return Objects.hash(resource); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + } + sb.append("}"); + return sb.toString(); + } + + public ResourceNested withNewResource() { + return new ResourceNested(null); + } + + public ResourceNested withNewResourceLike(V1GroupResource item) { + return new ResourceNested(item); + } + + public A withResource(V1GroupResource resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V1GroupResourceBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this.resource = null; + this._visitables.get("resource").remove(this.resource); + } + return (A) this; + } + public class ResourceNested extends V1GroupResourceFluent> implements Nested{ + + V1GroupResourceBuilder builder; + + ResourceNested(V1GroupResource item) { + this.builder = new V1GroupResourceBuilder(this, item); + } + + public N and() { + return (N) V1beta1StorageVersionMigrationSpecFluent.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/V1beta1StorageVersionMigrationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java new file mode 100644 index 0000000000..e8c0169d45 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1StorageVersionMigrationStatusBuilder extends V1beta1StorageVersionMigrationStatusFluent implements VisitableBuilder{ + + V1beta1StorageVersionMigrationStatusFluent fluent; + + public V1beta1StorageVersionMigrationStatusBuilder() { + this(new V1beta1StorageVersionMigrationStatus()); + } + + public V1beta1StorageVersionMigrationStatusBuilder(V1beta1StorageVersionMigrationStatusFluent fluent) { + this(fluent, new V1beta1StorageVersionMigrationStatus()); + } + + public V1beta1StorageVersionMigrationStatusBuilder(V1beta1StorageVersionMigrationStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1StorageVersionMigrationStatusBuilder(V1beta1StorageVersionMigrationStatusFluent fluent,V1beta1StorageVersionMigrationStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1StorageVersionMigrationStatus build() { + V1beta1StorageVersionMigrationStatus buildable = new V1beta1StorageVersionMigrationStatus(); + 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/V1beta1StorageVersionMigrationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java new file mode 100644 index 0000000000..880fcebf93 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java @@ -0,0 +1,320 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1StorageVersionMigrationStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private String resourceVersion; + + public V1beta1StorageVersionMigrationStatusFluent() { + } + + public V1beta1StorageVersionMigrationStatusFluent(V1beta1StorageVersionMigrationStatus instance) { + this.copyInstance(instance); + } + + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(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 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 V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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; + } + + protected void copyInstance(V1beta1StorageVersionMigrationStatus instance) { + instance = instance != null ? instance : new V1beta1StorageVersionMigrationStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withResourceVersion(instance.getResourceVersion()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1StorageVersionMigrationStatusFluent that = (V1beta1StorageVersionMigrationStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(resourceVersion, that.resourceVersion))) { + return false; + } + return true; + } + + public String getResourceVersion() { + return this.resourceVersion; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResourceVersion() { + return this.resourceVersion != null; + } + + public int hashCode() { + return Objects.hash(conditions, resourceVersion); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(resourceVersion == null)) { + sb.append("resourceVersion:"); + sb.append(resourceVersion); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withResourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1beta1StorageVersionMigrationStatusFluent.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/V1beta1TypeCheckingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingBuilder.java deleted file mode 100644 index b146a4ff47..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1TypeCheckingBuilder extends V1beta1TypeCheckingFluent implements VisitableBuilder{ - public V1beta1TypeCheckingBuilder() { - this(new V1beta1TypeChecking()); - } - - public V1beta1TypeCheckingBuilder(V1beta1TypeCheckingFluent fluent) { - this(fluent, new V1beta1TypeChecking()); - } - - public V1beta1TypeCheckingBuilder(V1beta1TypeCheckingFluent fluent,V1beta1TypeChecking instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1TypeCheckingBuilder(V1beta1TypeChecking instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1TypeCheckingFluent fluent; - - public V1beta1TypeChecking build() { - V1beta1TypeChecking buildable = new V1beta1TypeChecking(); - buildable.setExpressionWarnings(fluent.buildExpressionWarnings()); - return buildable; - } - - -} \ 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 deleted file mode 100644 index e7ab629351..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeCheckingFluent.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 V1beta1TypeCheckingFluent> extends BaseFluent{ - public V1beta1TypeCheckingFluent() { - } - - public V1beta1TypeCheckingFluent(V1beta1TypeChecking instance) { - this.copyInstance(instance); - } - private ArrayList expressionWarnings; - - protected void copyInstance(V1beta1TypeChecking instance) { - instance = (instance != null ? instance : new V1beta1TypeChecking()); - if (instance != null) { - this.withExpressionWarnings(instance.getExpressionWarnings()); - } - } - - 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);} - 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);} - return (A)this; - } - - public A addToExpressionWarnings(io.kubernetes.client.openapi.models.V1beta1ExpressionWarning... items) { - if (this.expressionWarnings == null) {this.expressionWarnings = new ArrayList();} - for (V1beta1ExpressionWarning item : items) {V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(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 (V1beta1ExpressionWarning item : items) {V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(item);_visitables.get("expressionWarnings").add(builder);this.expressionWarnings.add(builder);} return (A)this; - } - - public A removeFromExpressionWarnings(io.kubernetes.client.openapi.models.V1beta1ExpressionWarning... items) { - if (this.expressionWarnings == null) return (A)this; - for (V1beta1ExpressionWarning item : items) {V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(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 (V1beta1ExpressionWarning item : items) {V1beta1ExpressionWarningBuilder builder = new V1beta1ExpressionWarningBuilder(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()) { - V1beta1ExpressionWarningBuilder 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 V1beta1ExpressionWarning buildExpressionWarning(int index) { - return this.expressionWarnings.get(index).build(); - } - - public V1beta1ExpressionWarning buildFirstExpressionWarning() { - return this.expressionWarnings.get(0).build(); - } - - public V1beta1ExpressionWarning buildLastExpressionWarning() { - return this.expressionWarnings.get(expressionWarnings.size() - 1).build(); - } - - public V1beta1ExpressionWarning buildMatchingExpressionWarning(Predicate predicate) { - for (V1beta1ExpressionWarningBuilder item : expressionWarnings) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingExpressionWarning(Predicate predicate) { - for (V1beta1ExpressionWarningBuilder 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 (V1beta1ExpressionWarning item : expressionWarnings) { - this.addToExpressionWarnings(item); - } - } else { - this.expressionWarnings = null; - } - return (A) this; - } - - public A withExpressionWarnings(io.kubernetes.client.openapi.models.V1beta1ExpressionWarning... expressionWarnings) { - if (this.expressionWarnings != null) { - this.expressionWarnings.clear(); - _visitables.remove("expressionWarnings"); - } - if (expressionWarnings != null) { - for (V1beta1ExpressionWarning 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(V1beta1ExpressionWarning item) { - return new ExpressionWarningsNested(-1, item); - } - - public ExpressionWarningsNested setNewExpressionWarningLike(int index,V1beta1ExpressionWarning 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 V1beta1ExpressionWarningFluent> implements Nested{ - ExpressionWarningsNested(int index,V1beta1ExpressionWarning item) { - this.index = index; - this.builder = new V1beta1ExpressionWarningBuilder(this, item); - } - V1beta1ExpressionWarningBuilder builder; - int index; - - public N and() { - return (N) V1beta1TypeCheckingFluent.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/V1beta1ValidatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingBuilder.java deleted file mode 100644 index 0025d41770..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyBindingBuilder extends V1beta1ValidatingAdmissionPolicyBindingFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyBindingBuilder() { - this(new V1beta1ValidatingAdmissionPolicyBinding()); - } - - public V1beta1ValidatingAdmissionPolicyBindingBuilder(V1beta1ValidatingAdmissionPolicyBindingFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyBinding()); - } - - public V1beta1ValidatingAdmissionPolicyBindingBuilder(V1beta1ValidatingAdmissionPolicyBindingFluent fluent,V1beta1ValidatingAdmissionPolicyBinding instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyBindingBuilder(V1beta1ValidatingAdmissionPolicyBinding instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyBindingFluent fluent; - - public V1beta1ValidatingAdmissionPolicyBinding build() { - V1beta1ValidatingAdmissionPolicyBinding buildable = new V1beta1ValidatingAdmissionPolicyBinding(); - 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/V1beta1ValidatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingFluent.java deleted file mode 100644 index 0f0ba17faa..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingFluent.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 V1beta1ValidatingAdmissionPolicyBindingFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyBindingFluent() { - } - - public V1beta1ValidatingAdmissionPolicyBindingFluent(V1beta1ValidatingAdmissionPolicyBinding instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1ValidatingAdmissionPolicyBindingSpecBuilder spec; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicyBinding instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyBinding()); - 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 V1beta1ValidatingAdmissionPolicyBindingSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1ValidatingAdmissionPolicyBindingSpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(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(V1beta1ValidatingAdmissionPolicyBindingSpec 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 V1beta1ValidatingAdmissionPolicyBindingSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1beta1ValidatingAdmissionPolicyBindingSpec 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; - V1beta1ValidatingAdmissionPolicyBindingFluent that = (V1beta1ValidatingAdmissionPolicyBindingFluent) 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) V1beta1ValidatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1beta1ValidatingAdmissionPolicyBindingSpecFluent> implements Nested{ - SpecNested(V1beta1ValidatingAdmissionPolicyBindingSpec item) { - this.builder = new V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(this, item); - } - V1beta1ValidatingAdmissionPolicyBindingSpecBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingFluent.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/V1beta1ValidatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListBuilder.java deleted file mode 100644 index da4dbc7721..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyBindingListBuilder extends V1beta1ValidatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyBindingListBuilder() { - this(new V1beta1ValidatingAdmissionPolicyBindingList()); - } - - public V1beta1ValidatingAdmissionPolicyBindingListBuilder(V1beta1ValidatingAdmissionPolicyBindingListFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyBindingList()); - } - - public V1beta1ValidatingAdmissionPolicyBindingListBuilder(V1beta1ValidatingAdmissionPolicyBindingListFluent fluent,V1beta1ValidatingAdmissionPolicyBindingList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyBindingListBuilder(V1beta1ValidatingAdmissionPolicyBindingList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyBindingListFluent fluent; - - public V1beta1ValidatingAdmissionPolicyBindingList build() { - V1beta1ValidatingAdmissionPolicyBindingList buildable = new V1beta1ValidatingAdmissionPolicyBindingList(); - 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/V1beta1ValidatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.java deleted file mode 100644 index d4fffbf36e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingListFluent.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 V1beta1ValidatingAdmissionPolicyBindingListFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyBindingListFluent() { - } - - public V1beta1ValidatingAdmissionPolicyBindingListFluent(V1beta1ValidatingAdmissionPolicyBindingList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicyBindingList instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyBindingList()); - 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,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);} - 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);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ValidatingAdmissionPolicyBinding item : items) {V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(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 (V1beta1ValidatingAdmissionPolicyBinding item : items) {V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding... items) { - if (this.items == null) return (A)this; - for (V1beta1ValidatingAdmissionPolicyBinding item : items) {V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(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 (V1beta1ValidatingAdmissionPolicyBinding item : items) {V1beta1ValidatingAdmissionPolicyBindingBuilder builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(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()) { - V1beta1ValidatingAdmissionPolicyBindingBuilder 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 V1beta1ValidatingAdmissionPolicyBinding buildItem(int index) { - return this.items.get(index).build(); - } - - public V1beta1ValidatingAdmissionPolicyBinding buildFirstItem() { - return this.items.get(0).build(); - } - - public V1beta1ValidatingAdmissionPolicyBinding buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1beta1ValidatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { - for (V1beta1ValidatingAdmissionPolicyBindingBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1ValidatingAdmissionPolicyBindingBuilder 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 (V1beta1ValidatingAdmissionPolicyBinding item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1ValidatingAdmissionPolicyBinding 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(V1beta1ValidatingAdmissionPolicyBinding item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1ValidatingAdmissionPolicyBinding 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; - V1beta1ValidatingAdmissionPolicyBindingListFluent that = (V1beta1ValidatingAdmissionPolicyBindingListFluent) 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 V1beta1ValidatingAdmissionPolicyBindingFluent> implements Nested{ - ItemsNested(int index,V1beta1ValidatingAdmissionPolicyBinding item) { - this.index = index; - this.builder = new V1beta1ValidatingAdmissionPolicyBindingBuilder(this, item); - } - V1beta1ValidatingAdmissionPolicyBindingBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingListFluent.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) V1beta1ValidatingAdmissionPolicyBindingListFluent.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/V1beta1ValidatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpecBuilder.java deleted file mode 100644 index c4cfe3f665..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpecBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyBindingSpecBuilder extends V1beta1ValidatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyBindingSpecBuilder() { - this(new V1beta1ValidatingAdmissionPolicyBindingSpec()); - } - - public V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(V1beta1ValidatingAdmissionPolicyBindingSpecFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyBindingSpec()); - } - - public V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(V1beta1ValidatingAdmissionPolicyBindingSpecFluent fluent,V1beta1ValidatingAdmissionPolicyBindingSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyBindingSpecBuilder(V1beta1ValidatingAdmissionPolicyBindingSpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyBindingSpecFluent fluent; - - public V1beta1ValidatingAdmissionPolicyBindingSpec build() { - V1beta1ValidatingAdmissionPolicyBindingSpec buildable = new V1beta1ValidatingAdmissionPolicyBindingSpec(); - 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/V1beta1ValidatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpecFluent.java deleted file mode 100644 index 3e131d4d9e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpecFluent.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 V1beta1ValidatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyBindingSpecFluent() { - } - - public V1beta1ValidatingAdmissionPolicyBindingSpecFluent(V1beta1ValidatingAdmissionPolicyBindingSpec instance) { - this.copyInstance(instance); - } - private V1beta1MatchResourcesBuilder matchResources; - private V1beta1ParamRefBuilder paramRef; - private String policyName; - private List validationActions; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicyBindingSpec instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyBindingSpec()); - if (instance != null) { - this.withMatchResources(instance.getMatchResources()); - this.withParamRef(instance.getParamRef()); - this.withPolicyName(instance.getPolicyName()); - this.withValidationActions(instance.getValidationActions()); - } - } - - public V1beta1MatchResources buildMatchResources() { - return this.matchResources != null ? this.matchResources.build() : null; - } - - public A withMatchResources(V1beta1MatchResources matchResources) { - this._visitables.remove("matchResources"); - if (matchResources != null) { - this.matchResources = new V1beta1MatchResourcesBuilder(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(V1beta1MatchResources 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 V1beta1MatchResourcesBuilder().build())); - } - - public MatchResourcesNested editOrNewMatchResourcesLike(V1beta1MatchResources item) { - return withNewMatchResourcesLike(java.util.Optional.ofNullable(buildMatchResources()).orElse(item)); - } - - public V1beta1ParamRef buildParamRef() { - return this.paramRef != null ? this.paramRef.build() : null; - } - - public A withParamRef(V1beta1ParamRef paramRef) { - this._visitables.remove("paramRef"); - if (paramRef != null) { - this.paramRef = new V1beta1ParamRefBuilder(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(V1beta1ParamRef 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 V1beta1ParamRefBuilder().build())); - } - - public ParamRefNested editOrNewParamRefLike(V1beta1ParamRef 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; - V1beta1ValidatingAdmissionPolicyBindingSpecFluent that = (V1beta1ValidatingAdmissionPolicyBindingSpecFluent) 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 V1beta1MatchResourcesFluent> implements Nested{ - MatchResourcesNested(V1beta1MatchResources item) { - this.builder = new V1beta1MatchResourcesBuilder(this, item); - } - V1beta1MatchResourcesBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); - } - - public N endMatchResources() { - return and(); - } - - - } - public class ParamRefNested extends V1beta1ParamRefFluent> implements Nested{ - ParamRefNested(V1beta1ParamRef item) { - this.builder = new V1beta1ParamRefBuilder(this, item); - } - V1beta1ParamRefBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyBindingSpecFluent.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/V1beta1ValidatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBuilder.java deleted file mode 100644 index 422df88d62..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyBuilder extends V1beta1ValidatingAdmissionPolicyFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyBuilder() { - this(new V1beta1ValidatingAdmissionPolicy()); - } - - public V1beta1ValidatingAdmissionPolicyBuilder(V1beta1ValidatingAdmissionPolicyFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicy()); - } - - public V1beta1ValidatingAdmissionPolicyBuilder(V1beta1ValidatingAdmissionPolicyFluent fluent,V1beta1ValidatingAdmissionPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyBuilder(V1beta1ValidatingAdmissionPolicy instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyFluent fluent; - - public V1beta1ValidatingAdmissionPolicy build() { - V1beta1ValidatingAdmissionPolicy buildable = new V1beta1ValidatingAdmissionPolicy(); - 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/V1beta1ValidatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyFluent.java deleted file mode 100644 index fb026287d3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyFluent.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 V1beta1ValidatingAdmissionPolicyFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyFluent() { - } - - public V1beta1ValidatingAdmissionPolicyFluent(V1beta1ValidatingAdmissionPolicy instance) { - this.copyInstance(instance); - } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V1beta1ValidatingAdmissionPolicySpecBuilder spec; - private V1beta1ValidatingAdmissionPolicyStatusBuilder status; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicy instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicy()); - 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 V1beta1ValidatingAdmissionPolicySpec buildSpec() { - return this.spec != null ? this.spec.build() : null; - } - - public A withSpec(V1beta1ValidatingAdmissionPolicySpec spec) { - this._visitables.remove("spec"); - if (spec != null) { - this.spec = new V1beta1ValidatingAdmissionPolicySpecBuilder(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(V1beta1ValidatingAdmissionPolicySpec 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 V1beta1ValidatingAdmissionPolicySpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V1beta1ValidatingAdmissionPolicySpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V1beta1ValidatingAdmissionPolicyStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - - public A withStatus(V1beta1ValidatingAdmissionPolicyStatus status) { - this._visitables.remove("status"); - if (status != null) { - this.status = new V1beta1ValidatingAdmissionPolicyStatusBuilder(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(V1beta1ValidatingAdmissionPolicyStatus 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 V1beta1ValidatingAdmissionPolicyStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V1beta1ValidatingAdmissionPolicyStatus 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; - V1beta1ValidatingAdmissionPolicyFluent that = (V1beta1ValidatingAdmissionPolicyFluent) 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) V1beta1ValidatingAdmissionPolicyFluent.this.withMetadata(builder.build()); - } - - public N endMetadata() { - return and(); - } - - - } - public class SpecNested extends V1beta1ValidatingAdmissionPolicySpecFluent> implements Nested{ - SpecNested(V1beta1ValidatingAdmissionPolicySpec item) { - this.builder = new V1beta1ValidatingAdmissionPolicySpecBuilder(this, item); - } - V1beta1ValidatingAdmissionPolicySpecBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyFluent.this.withSpec(builder.build()); - } - - public N endSpec() { - return and(); - } - - - } - public class StatusNested extends V1beta1ValidatingAdmissionPolicyStatusFluent> implements Nested{ - StatusNested(V1beta1ValidatingAdmissionPolicyStatus item) { - this.builder = new V1beta1ValidatingAdmissionPolicyStatusBuilder(this, item); - } - V1beta1ValidatingAdmissionPolicyStatusBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyFluent.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/V1beta1ValidatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListBuilder.java deleted file mode 100644 index bc311bf4f3..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyListBuilder extends V1beta1ValidatingAdmissionPolicyListFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyListBuilder() { - this(new V1beta1ValidatingAdmissionPolicyList()); - } - - public V1beta1ValidatingAdmissionPolicyListBuilder(V1beta1ValidatingAdmissionPolicyListFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyList()); - } - - public V1beta1ValidatingAdmissionPolicyListBuilder(V1beta1ValidatingAdmissionPolicyListFluent fluent,V1beta1ValidatingAdmissionPolicyList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyListBuilder(V1beta1ValidatingAdmissionPolicyList instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyListFluent fluent; - - public V1beta1ValidatingAdmissionPolicyList build() { - V1beta1ValidatingAdmissionPolicyList buildable = new V1beta1ValidatingAdmissionPolicyList(); - 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/V1beta1ValidatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.java deleted file mode 100644 index 7353e234bc..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyListFluent.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 V1beta1ValidatingAdmissionPolicyListFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyListFluent() { - } - - public V1beta1ValidatingAdmissionPolicyListFluent(V1beta1ValidatingAdmissionPolicyList instance) { - this.copyInstance(instance); - } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicyList instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyList()); - 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,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);} - 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);} - return (A)this; - } - - public A addToItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicy... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V1beta1ValidatingAdmissionPolicy item : items) {V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(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 (V1beta1ValidatingAdmissionPolicy item : items) {V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; - } - - public A removeFromItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicy... items) { - if (this.items == null) return (A)this; - for (V1beta1ValidatingAdmissionPolicy item : items) {V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(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 (V1beta1ValidatingAdmissionPolicy item : items) {V1beta1ValidatingAdmissionPolicyBuilder builder = new V1beta1ValidatingAdmissionPolicyBuilder(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()) { - V1beta1ValidatingAdmissionPolicyBuilder 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 V1beta1ValidatingAdmissionPolicy buildItem(int index) { - return this.items.get(index).build(); - } - - public V1beta1ValidatingAdmissionPolicy buildFirstItem() { - return this.items.get(0).build(); - } - - public V1beta1ValidatingAdmissionPolicy buildLastItem() { - return this.items.get(items.size() - 1).build(); - } - - public V1beta1ValidatingAdmissionPolicy buildMatchingItem(Predicate predicate) { - for (V1beta1ValidatingAdmissionPolicyBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingItem(Predicate predicate) { - for (V1beta1ValidatingAdmissionPolicyBuilder 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 (V1beta1ValidatingAdmissionPolicy item : items) { - this.addToItems(item); - } - } else { - this.items = null; - } - return (A) this; - } - - public A withItems(io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicy... items) { - if (this.items != null) { - this.items.clear(); - _visitables.remove("items"); - } - if (items != null) { - for (V1beta1ValidatingAdmissionPolicy 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(V1beta1ValidatingAdmissionPolicy item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V1beta1ValidatingAdmissionPolicy 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; - V1beta1ValidatingAdmissionPolicyListFluent that = (V1beta1ValidatingAdmissionPolicyListFluent) 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 V1beta1ValidatingAdmissionPolicyFluent> implements Nested{ - ItemsNested(int index,V1beta1ValidatingAdmissionPolicy item) { - this.index = index; - this.builder = new V1beta1ValidatingAdmissionPolicyBuilder(this, item); - } - V1beta1ValidatingAdmissionPolicyBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyListFluent.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) V1beta1ValidatingAdmissionPolicyListFluent.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/V1beta1ValidatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecBuilder.java deleted file mode 100644 index 06379dfea9..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicySpecBuilder extends V1beta1ValidatingAdmissionPolicySpecFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicySpecBuilder() { - this(new V1beta1ValidatingAdmissionPolicySpec()); - } - - public V1beta1ValidatingAdmissionPolicySpecBuilder(V1beta1ValidatingAdmissionPolicySpecFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicySpec()); - } - - public V1beta1ValidatingAdmissionPolicySpecBuilder(V1beta1ValidatingAdmissionPolicySpecFluent fluent,V1beta1ValidatingAdmissionPolicySpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicySpecBuilder(V1beta1ValidatingAdmissionPolicySpec instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicySpecFluent fluent; - - public V1beta1ValidatingAdmissionPolicySpec build() { - V1beta1ValidatingAdmissionPolicySpec buildable = new V1beta1ValidatingAdmissionPolicySpec(); - 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/V1beta1ValidatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.java deleted file mode 100644 index 7e37dfeeb2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpecFluent.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 V1beta1ValidatingAdmissionPolicySpecFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicySpecFluent() { - } - - public V1beta1ValidatingAdmissionPolicySpecFluent(V1beta1ValidatingAdmissionPolicySpec instance) { - this.copyInstance(instance); - } - private ArrayList auditAnnotations; - private String failurePolicy; - private ArrayList matchConditions; - private V1beta1MatchResourcesBuilder matchConstraints; - private V1beta1ParamKindBuilder paramKind; - private ArrayList validations; - private ArrayList variables; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicySpec instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicySpec()); - 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,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);} - 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);} - return (A)this; - } - - public A addToAuditAnnotations(io.kubernetes.client.openapi.models.V1beta1AuditAnnotation... items) { - if (this.auditAnnotations == null) {this.auditAnnotations = new ArrayList();} - for (V1beta1AuditAnnotation item : items) {V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(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 (V1beta1AuditAnnotation item : items) {V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(item);_visitables.get("auditAnnotations").add(builder);this.auditAnnotations.add(builder);} return (A)this; - } - - public A removeFromAuditAnnotations(io.kubernetes.client.openapi.models.V1beta1AuditAnnotation... items) { - if (this.auditAnnotations == null) return (A)this; - for (V1beta1AuditAnnotation item : items) {V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(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 (V1beta1AuditAnnotation item : items) {V1beta1AuditAnnotationBuilder builder = new V1beta1AuditAnnotationBuilder(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()) { - V1beta1AuditAnnotationBuilder 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 V1beta1AuditAnnotation buildAuditAnnotation(int index) { - return this.auditAnnotations.get(index).build(); - } - - public V1beta1AuditAnnotation buildFirstAuditAnnotation() { - return this.auditAnnotations.get(0).build(); - } - - public V1beta1AuditAnnotation buildLastAuditAnnotation() { - return this.auditAnnotations.get(auditAnnotations.size() - 1).build(); - } - - public V1beta1AuditAnnotation buildMatchingAuditAnnotation(Predicate predicate) { - for (V1beta1AuditAnnotationBuilder item : auditAnnotations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingAuditAnnotation(Predicate predicate) { - for (V1beta1AuditAnnotationBuilder 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 (V1beta1AuditAnnotation item : auditAnnotations) { - this.addToAuditAnnotations(item); - } - } else { - this.auditAnnotations = null; - } - return (A) this; - } - - public A withAuditAnnotations(io.kubernetes.client.openapi.models.V1beta1AuditAnnotation... auditAnnotations) { - if (this.auditAnnotations != null) { - this.auditAnnotations.clear(); - _visitables.remove("auditAnnotations"); - } - if (auditAnnotations != null) { - for (V1beta1AuditAnnotation 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(V1beta1AuditAnnotation item) { - return new AuditAnnotationsNested(-1, item); - } - - public AuditAnnotationsNested setNewAuditAnnotationLike(int index,V1beta1AuditAnnotation 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();} - 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);} - 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);} - return (A)this; - } - - public A addToMatchConditions(io.kubernetes.client.openapi.models.V1beta1MatchCondition... items) { - if (this.matchConditions == null) {this.matchConditions = new ArrayList();} - for (V1beta1MatchCondition item : items) {V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(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 (V1beta1MatchCondition item : items) {V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item);_visitables.get("matchConditions").add(builder);this.matchConditions.add(builder);} return (A)this; - } - - public A removeFromMatchConditions(io.kubernetes.client.openapi.models.V1beta1MatchCondition... items) { - if (this.matchConditions == null) return (A)this; - for (V1beta1MatchCondition item : items) {V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(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 (V1beta1MatchCondition item : items) {V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(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()) { - V1beta1MatchConditionBuilder 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 V1beta1MatchCondition buildMatchCondition(int index) { - return this.matchConditions.get(index).build(); - } - - public V1beta1MatchCondition buildFirstMatchCondition() { - return this.matchConditions.get(0).build(); - } - - public V1beta1MatchCondition buildLastMatchCondition() { - return this.matchConditions.get(matchConditions.size() - 1).build(); - } - - public V1beta1MatchCondition buildMatchingMatchCondition(Predicate predicate) { - for (V1beta1MatchConditionBuilder item : matchConditions) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingMatchCondition(Predicate predicate) { - for (V1beta1MatchConditionBuilder 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 (V1beta1MatchCondition item : matchConditions) { - this.addToMatchConditions(item); - } - } else { - this.matchConditions = null; - } - return (A) this; - } - - public A withMatchConditions(io.kubernetes.client.openapi.models.V1beta1MatchCondition... matchConditions) { - if (this.matchConditions != null) { - this.matchConditions.clear(); - _visitables.remove("matchConditions"); - } - if (matchConditions != null) { - for (V1beta1MatchCondition 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(V1beta1MatchCondition item) { - return new MatchConditionsNested(-1, item); - } - - public MatchConditionsNested setNewMatchConditionLike(int index,V1beta1MatchCondition 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(V1beta1MatchResources 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 V1beta1MatchResourcesBuilder().build())); - } - - public MatchConstraintsNested editOrNewMatchConstraintsLike(V1beta1MatchResources item) { - return withNewMatchConstraintsLike(java.util.Optional.ofNullable(buildMatchConstraints()).orElse(item)); - } - - public V1beta1ParamKind buildParamKind() { - return this.paramKind != null ? this.paramKind.build() : null; - } - - public A withParamKind(V1beta1ParamKind paramKind) { - this._visitables.remove("paramKind"); - if (paramKind != null) { - this.paramKind = new V1beta1ParamKindBuilder(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(V1beta1ParamKind 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 V1beta1ParamKindBuilder().build())); - } - - public ParamKindNested editOrNewParamKindLike(V1beta1ParamKind item) { - return withNewParamKindLike(java.util.Optional.ofNullable(buildParamKind()).orElse(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);} - 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);} - return (A)this; - } - - public A addToValidations(io.kubernetes.client.openapi.models.V1beta1Validation... items) { - if (this.validations == null) {this.validations = new ArrayList();} - for (V1beta1Validation item : items) {V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(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 (V1beta1Validation item : items) {V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(item);_visitables.get("validations").add(builder);this.validations.add(builder);} return (A)this; - } - - public A removeFromValidations(io.kubernetes.client.openapi.models.V1beta1Validation... items) { - if (this.validations == null) return (A)this; - for (V1beta1Validation item : items) {V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(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 (V1beta1Validation item : items) {V1beta1ValidationBuilder builder = new V1beta1ValidationBuilder(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()) { - V1beta1ValidationBuilder 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 V1beta1Validation buildValidation(int index) { - return this.validations.get(index).build(); - } - - public V1beta1Validation buildFirstValidation() { - return this.validations.get(0).build(); - } - - public V1beta1Validation buildLastValidation() { - return this.validations.get(validations.size() - 1).build(); - } - - public V1beta1Validation buildMatchingValidation(Predicate predicate) { - for (V1beta1ValidationBuilder item : validations) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingValidation(Predicate predicate) { - for (V1beta1ValidationBuilder 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 (V1beta1Validation item : validations) { - this.addToValidations(item); - } - } else { - this.validations = null; - } - return (A) this; - } - - public A withValidations(io.kubernetes.client.openapi.models.V1beta1Validation... validations) { - if (this.validations != null) { - this.validations.clear(); - _visitables.remove("validations"); - } - if (validations != null) { - for (V1beta1Validation 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(V1beta1Validation item) { - return new ValidationsNested(-1, item); - } - - public ValidationsNested setNewValidationLike(int index,V1beta1Validation 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();} - 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);} - 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);} - return (A)this; - } - - public A addToVariables(io.kubernetes.client.openapi.models.V1beta1Variable... items) { - if (this.variables == null) {this.variables = new ArrayList();} - for (V1beta1Variable item : items) {V1beta1VariableBuilder builder = new V1beta1VariableBuilder(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 (V1beta1Variable item : items) {V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item);_visitables.get("variables").add(builder);this.variables.add(builder);} return (A)this; - } - - public A removeFromVariables(io.kubernetes.client.openapi.models.V1beta1Variable... items) { - if (this.variables == null) return (A)this; - for (V1beta1Variable item : items) {V1beta1VariableBuilder builder = new V1beta1VariableBuilder(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 (V1beta1Variable item : items) {V1beta1VariableBuilder builder = new V1beta1VariableBuilder(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()) { - V1beta1VariableBuilder 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 V1beta1Variable buildVariable(int index) { - return this.variables.get(index).build(); - } - - public V1beta1Variable buildFirstVariable() { - return this.variables.get(0).build(); - } - - public V1beta1Variable buildLastVariable() { - return this.variables.get(variables.size() - 1).build(); - } - - public V1beta1Variable buildMatchingVariable(Predicate predicate) { - for (V1beta1VariableBuilder item : variables) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public boolean hasMatchingVariable(Predicate predicate) { - for (V1beta1VariableBuilder 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 (V1beta1Variable item : variables) { - this.addToVariables(item); - } - } else { - this.variables = null; - } - return (A) this; - } - - public A withVariables(io.kubernetes.client.openapi.models.V1beta1Variable... variables) { - if (this.variables != null) { - this.variables.clear(); - _visitables.remove("variables"); - } - if (variables != null) { - for (V1beta1Variable 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(V1beta1Variable item) { - return new VariablesNested(-1, item); - } - - public VariablesNested setNewVariableLike(int index,V1beta1Variable 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 V1beta1AuditAnnotationFluent> implements Nested{ - AuditAnnotationsNested(int index,V1beta1AuditAnnotation item) { - this.index = index; - this.builder = new V1beta1AuditAnnotationBuilder(this, item); - } - V1beta1AuditAnnotationBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.setToAuditAnnotations(index,builder.build()); - } - - public N endAuditAnnotation() { - return and(); - } - - - } - public class MatchConditionsNested extends V1beta1MatchConditionFluent> implements Nested{ - MatchConditionsNested(int index,V1beta1MatchCondition item) { - this.index = index; - this.builder = new V1beta1MatchConditionBuilder(this, item); - } - V1beta1MatchConditionBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.setToMatchConditions(index,builder.build()); - } - - public N endMatchCondition() { - return and(); - } - - - } - public class MatchConstraintsNested extends V1beta1MatchResourcesFluent> implements Nested{ - MatchConstraintsNested(V1beta1MatchResources item) { - this.builder = new V1beta1MatchResourcesBuilder(this, item); - } - V1beta1MatchResourcesBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); - } - - public N endMatchConstraints() { - return and(); - } - - - } - public class ParamKindNested extends V1beta1ParamKindFluent> implements Nested{ - ParamKindNested(V1beta1ParamKind item) { - this.builder = new V1beta1ParamKindBuilder(this, item); - } - V1beta1ParamKindBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); - } - - public N endParamKind() { - return and(); - } - - - } - public class ValidationsNested extends V1beta1ValidationFluent> implements Nested{ - ValidationsNested(int index,V1beta1Validation item) { - this.index = index; - this.builder = new V1beta1ValidationBuilder(this, item); - } - V1beta1ValidationBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.this.setToValidations(index,builder.build()); - } - - public N endValidation() { - return and(); - } - - - } - public class VariablesNested extends V1beta1VariableFluent> implements Nested{ - VariablesNested(int index,V1beta1Variable item) { - this.index = index; - this.builder = new V1beta1VariableBuilder(this, item); - } - V1beta1VariableBuilder builder; - int index; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicySpecFluent.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/V1beta1ValidatingAdmissionPolicyStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusBuilder.java deleted file mode 100644 index 09b6037cf2..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidatingAdmissionPolicyStatusBuilder extends V1beta1ValidatingAdmissionPolicyStatusFluent implements VisitableBuilder{ - public V1beta1ValidatingAdmissionPolicyStatusBuilder() { - this(new V1beta1ValidatingAdmissionPolicyStatus()); - } - - public V1beta1ValidatingAdmissionPolicyStatusBuilder(V1beta1ValidatingAdmissionPolicyStatusFluent fluent) { - this(fluent, new V1beta1ValidatingAdmissionPolicyStatus()); - } - - public V1beta1ValidatingAdmissionPolicyStatusBuilder(V1beta1ValidatingAdmissionPolicyStatusFluent fluent,V1beta1ValidatingAdmissionPolicyStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidatingAdmissionPolicyStatusBuilder(V1beta1ValidatingAdmissionPolicyStatus instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidatingAdmissionPolicyStatusFluent fluent; - - public V1beta1ValidatingAdmissionPolicyStatus build() { - V1beta1ValidatingAdmissionPolicyStatus buildable = new V1beta1ValidatingAdmissionPolicyStatus(); - 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/V1beta1ValidatingAdmissionPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.java deleted file mode 100644 index 9ffa73097e..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatusFluent.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 V1beta1ValidatingAdmissionPolicyStatusFluent> extends BaseFluent{ - public V1beta1ValidatingAdmissionPolicyStatusFluent() { - } - - public V1beta1ValidatingAdmissionPolicyStatusFluent(V1beta1ValidatingAdmissionPolicyStatus instance) { - this.copyInstance(instance); - } - private ArrayList conditions; - private Long observedGeneration; - private V1beta1TypeCheckingBuilder typeChecking; - - protected void copyInstance(V1beta1ValidatingAdmissionPolicyStatus instance) { - instance = (instance != null ? instance : new V1beta1ValidatingAdmissionPolicyStatus()); - 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(V1beta1TypeChecking 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 V1beta1TypeCheckingBuilder().build())); - } - - public TypeCheckingNested editOrNewTypeCheckingLike(V1beta1TypeChecking 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; - V1beta1ValidatingAdmissionPolicyStatusFluent that = (V1beta1ValidatingAdmissionPolicyStatusFluent) 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) V1beta1ValidatingAdmissionPolicyStatusFluent.this.setToConditions(index,builder.build()); - } - - public N endCondition() { - return and(); - } - - - } - public class TypeCheckingNested extends V1beta1TypeCheckingFluent> implements Nested{ - TypeCheckingNested(V1beta1TypeChecking item) { - this.builder = new V1beta1TypeCheckingBuilder(this, item); - } - V1beta1TypeCheckingBuilder builder; - - public N and() { - return (N) V1beta1ValidatingAdmissionPolicyStatusFluent.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/V1beta1ValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationBuilder.java deleted file mode 100644 index 3eca24a127..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -public class V1beta1ValidationBuilder extends V1beta1ValidationFluent implements VisitableBuilder{ - public V1beta1ValidationBuilder() { - this(new V1beta1Validation()); - } - - public V1beta1ValidationBuilder(V1beta1ValidationFluent fluent) { - this(fluent, new V1beta1Validation()); - } - - public V1beta1ValidationBuilder(V1beta1ValidationFluent fluent,V1beta1Validation instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1beta1ValidationBuilder(V1beta1Validation instance) { - this.fluent = this; - this.copyInstance(instance); - } - V1beta1ValidationFluent fluent; - - public V1beta1Validation build() { - V1beta1Validation buildable = new V1beta1Validation(); - 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/V1beta1ValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationFluent.java deleted file mode 100644 index 7599756be0..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidationFluent.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 V1beta1ValidationFluent> extends BaseFluent{ - public V1beta1ValidationFluent() { - } - - public V1beta1ValidationFluent(V1beta1Validation instance) { - this.copyInstance(instance); - } - private String expression; - private String message; - private String messageExpression; - private String reason; - - protected void copyInstance(V1beta1Validation instance) { - instance = (instance != null ? instance : new V1beta1Validation()); - 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; - V1beta1ValidationFluent that = (V1beta1ValidationFluent) 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/V1beta1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java index 02c0dad473..5fbf3bc40e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V1beta1VariableBuilder extends V1beta1VariableFluent implements VisitableBuilder{ + + V1beta1VariableFluent fluent; + public V1beta1VariableBuilder() { this(new V1beta1Variable()); } @@ -10,17 +14,16 @@ public V1beta1VariableBuilder(V1beta1VariableFluent fluent) { this(fluent, new V1beta1Variable()); } - public V1beta1VariableBuilder(V1beta1VariableFluent fluent,V1beta1Variable instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V1beta1VariableBuilder(V1beta1Variable instance) { this.fluent = this; this.copyInstance(instance); } - V1beta1VariableFluent fluent; + public V1beta1VariableBuilder(V1beta1VariableFluent fluent,V1beta1Variable instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V1beta1Variable build() { V1beta1Variable buildable = new V1beta1Variable(); buildable.setExpression(fluent.getExpression()); @@ -28,5 +31,4 @@ public V1beta1Variable build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java index f8ff4bcefe..acf88c22b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java @@ -1,80 +1,100 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V1beta1VariableFluent> extends BaseFluent{ +public class V1beta1VariableFluent> extends BaseFluent{ + + private String expression; + private String name; + public V1beta1VariableFluent() { } public V1beta1VariableFluent(V1beta1Variable instance) { this.copyInstance(instance); } - private String expression; - private String name; - + protected void copyInstance(V1beta1Variable instance) { - instance = (instance != null ? instance : new V1beta1Variable()); + instance = instance != null ? instance : new V1beta1Variable(); if (instance != null) { - this.withExpression(instance.getExpression()); - this.withName(instance.getName()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1VariableFluent that = (V1beta1VariableFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasExpression() { - return this.expression != null; + public String getExpression() { + return this.expression; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasExpression() { + return this.expression != null; } 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; - V1beta1VariableFluent that = (V1beta1VariableFluent) 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()); + return Objects.hash(expression, name); } 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); } + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file 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..f499bb16f5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1VolumeAttributesClassBuilder extends V1beta1VolumeAttributesClassFluent implements VisitableBuilder{ + + V1beta1VolumeAttributesClassFluent fluent; + + public V1beta1VolumeAttributesClassBuilder() { + this(new V1beta1VolumeAttributesClass()); + } + + public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClassFluent fluent) { + this(fluent, new V1beta1VolumeAttributesClass()); + } + + public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1VolumeAttributesClassBuilder(V1beta1VolumeAttributesClassFluent fluent,V1beta1VolumeAttributesClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..82aab7e832 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java @@ -0,0 +1,264 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1VolumeAttributesClassFluent> extends BaseFluent{ + + private String apiVersion; + private String driverName; + private String kind; + private V1ObjectMetaBuilder metadata; + private Map parameters; + + public V1beta1VolumeAttributesClassFluent() { + } + + public V1beta1VolumeAttributesClassFluent(V1beta1VolumeAttributesClass instance) { + this.copyInstance(instance); + } + + 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 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 V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1VolumeAttributesClassFluent that = (V1beta1VolumeAttributesClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(driverName, that.driverName))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getDriverName() { + return this.driverName; + } + + public String getKind() { + return this.kind; + } + + public Map getParameters() { + return this.parameters; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasDriverName() { + return this.driverName != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, driverName, kind, metadata, parameters); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(driverName == null)) { + sb.append("driverName:"); + sb.append(driverName); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(parameters == null) && !(parameters.isEmpty())) { + sb.append("parameters:"); + sb.append(parameters); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withDriverName(String driverName) { + this.driverName = driverName; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withParameters(Map parameters) { + if (parameters == null) { + this.parameters = null; + } else { + this.parameters = new LinkedHashMap(parameters); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + 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..e112ee6c41 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1VolumeAttributesClassListBuilder extends V1beta1VolumeAttributesClassListFluent implements VisitableBuilder{ + + V1beta1VolumeAttributesClassListFluent fluent; + + public V1beta1VolumeAttributesClassListBuilder() { + this(new V1beta1VolumeAttributesClassList()); + } + + public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassListFluent fluent) { + this(fluent, new V1beta1VolumeAttributesClassList()); + } + + public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1VolumeAttributesClassListBuilder(V1beta1VolumeAttributesClassListFluent fluent,V1beta1VolumeAttributesClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..ef0fe2177b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1VolumeAttributesClassListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta1VolumeAttributesClassListFluent() { + } + + public V1beta1VolumeAttributesClassListFluent(V1beta1VolumeAttributesClassList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta1VolumeAttributesClass item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta1VolumeAttributesClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta1VolumeAttributesClass buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1VolumeAttributesClassListFluent that = (V1beta1VolumeAttributesClassListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta1VolumeAttributesClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta1VolumeAttributesClass item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta1VolumeAttributesClassFluent> implements Nested{ + + V1beta1VolumeAttributesClassBuilder builder; + int index; + + ItemsNested(int index,V1beta1VolumeAttributesClass item) { + this.index = index; + this.builder = new V1beta1VolumeAttributesClassBuilder(this, item); + } + + public N and() { + return (N) V1beta1VolumeAttributesClassListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..83f52c5a59 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2AllocatedDeviceStatusBuilder extends V1beta2AllocatedDeviceStatusFluent implements VisitableBuilder{ + + V1beta2AllocatedDeviceStatusFluent fluent; + + public V1beta2AllocatedDeviceStatusBuilder() { + this(new V1beta2AllocatedDeviceStatus()); + } + + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatusFluent fluent) { + this(fluent, new V1beta2AllocatedDeviceStatus()); + } + + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2AllocatedDeviceStatusBuilder(V1beta2AllocatedDeviceStatusFluent fluent,V1beta2AllocatedDeviceStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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()); + buildable.setShareID(fluent.getShareID()); + 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..52762561e1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java @@ -0,0 +1,480 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2AllocatedDeviceStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private Object data; + private String device; + private String driver; + private V1beta2NetworkDeviceDataBuilder networkData; + private String pool; + private String shareID; + + public V1beta2AllocatedDeviceStatusFluent() { + } + + public V1beta2AllocatedDeviceStatusFluent(V1beta2AllocatedDeviceStatus instance) { + this.copyInstance(instance); + } + + 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 ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(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 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 V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + 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 V1beta2NetworkDeviceData buildNetworkData() { + return this.networkData != null ? this.networkData.build() : null; + } + + 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()); + this.withShareID(instance.getShareID()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public NetworkDataNested editNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(null)); + } + + public NetworkDataNested editOrNewNetworkData() { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(new V1beta2NetworkDeviceDataBuilder().build())); + } + + public NetworkDataNested editOrNewNetworkDataLike(V1beta2NetworkDeviceData item) { + return this.withNewNetworkDataLike(Optional.ofNullable(this.buildNetworkData()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2AllocatedDeviceStatusFluent that = (V1beta2AllocatedDeviceStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(data, that.data))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(networkData, that.networkData))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + return true; + } + + public Object getData() { + return this.data; + } + + public String getDevice() { + return this.device; + } + + public String getDriver() { + return this.driver; + } + + public String getPool() { + return this.pool; + } + + public String getShareID() { + return this.shareID; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasData() { + return this.data != null; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNetworkData() { + return this.networkData != null; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasShareID() { + return this.shareID != null; + } + + public int hashCode() { + return Objects.hash(conditions, data, device, driver, networkData, pool, shareID); + } + + 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 removeFromConditions(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 removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + 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 ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(data == null)) { + sb.append("data:"); + sb.append(data); + sb.append(","); + } + if (!(device == null)) { + sb.append("device:"); + sb.append(device); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(networkData == null)) { + sb.append("networkData:"); + sb.append(networkData); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withData(Object data) { + this.data = data; + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withNetworkData(V1beta2NetworkDeviceData networkData) { + this._visitables.remove("networkData"); + if (networkData != null) { + this.networkData = new V1beta2NetworkDeviceDataBuilder(networkData); + this._visitables.get("networkData").add(this.networkData); + } else { + this.networkData = null; + this._visitables.get("networkData").remove(this.networkData); + } + return (A) this; + } + + public NetworkDataNested withNewNetworkData() { + return new NetworkDataNested(null); + } + + public NetworkDataNested withNewNetworkDataLike(V1beta2NetworkDeviceData item) { + return new NetworkDataNested(item); + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1beta2AllocatedDeviceStatusFluent.this.setToConditions(index, builder.build()); + } + + public N endCondition() { + return and(); + } + + } + public class NetworkDataNested extends V1beta2NetworkDeviceDataFluent> implements Nested{ + + V1beta2NetworkDeviceDataBuilder builder; + + NetworkDataNested(V1beta2NetworkDeviceData item) { + this.builder = new V1beta2NetworkDeviceDataBuilder(this, item); + } + + 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..f5f92637f6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2AllocationResultBuilder extends V1beta2AllocationResultFluent implements VisitableBuilder{ + + V1beta2AllocationResultFluent fluent; + + public V1beta2AllocationResultBuilder() { + this(new V1beta2AllocationResult()); + } + + public V1beta2AllocationResultBuilder(V1beta2AllocationResultFluent fluent) { + this(fluent, new V1beta2AllocationResult()); + } + + public V1beta2AllocationResultBuilder(V1beta2AllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2AllocationResultBuilder(V1beta2AllocationResultFluent fluent,V1beta2AllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2AllocationResult build() { + V1beta2AllocationResult buildable = new V1beta2AllocationResult(); + buildable.setAllocationTimestamp(fluent.getAllocationTimestamp()); + 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..4a60bcc10b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java @@ -0,0 +1,213 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2AllocationResultFluent> extends BaseFluent{ + + private OffsetDateTime allocationTimestamp; + private V1beta2DeviceAllocationResultBuilder devices; + private V1NodeSelectorBuilder nodeSelector; + + public V1beta2AllocationResultFluent() { + } + + public V1beta2AllocationResultFluent(V1beta2AllocationResult instance) { + this.copyInstance(instance); + } + + public V1beta2DeviceAllocationResult buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + protected void copyInstance(V1beta2AllocationResult instance) { + instance = instance != null ? instance : new V1beta2AllocationResult(); + if (instance != null) { + this.withAllocationTimestamp(instance.getAllocationTimestamp()); + this.withDevices(instance.getDevices()); + this.withNodeSelector(instance.getNodeSelector()); + } + } + + public DevicesNested editDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta2DeviceAllocationResultBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta2DeviceAllocationResult item) { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2AllocationResultFluent that = (V1beta2AllocationResultFluent) o; + if (!(Objects.equals(allocationTimestamp, that.allocationTimestamp))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + return true; + } + + public OffsetDateTime getAllocationTimestamp() { + return this.allocationTimestamp; + } + + public boolean hasAllocationTimestamp() { + return this.allocationTimestamp != null; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public int hashCode() { + return Objects.hash(allocationTimestamp, devices, nodeSelector); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationTimestamp == null)) { + sb.append("allocationTimestamp:"); + sb.append(allocationTimestamp); + sb.append(","); + } + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocationTimestamp(OffsetDateTime allocationTimestamp) { + this.allocationTimestamp = allocationTimestamp; + return (A) this; + } + + 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 DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta2DeviceAllocationResult item) { + return new DevicesNested(item); + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + 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 class DevicesNested extends V1beta2DeviceAllocationResultFluent> implements Nested{ + + V1beta2DeviceAllocationResultBuilder builder; + + DevicesNested(V1beta2DeviceAllocationResult item) { + this.builder = new V1beta2DeviceAllocationResultBuilder(this, item); + } + + public N and() { + return (N) V1beta2AllocationResultFluent.this.withDevices(builder.build()); + } + + public N endDevices() { + return and(); + } + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + 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..76bebca264 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2CELDeviceSelectorBuilder extends V1beta2CELDeviceSelectorFluent implements VisitableBuilder{ + + V1beta2CELDeviceSelectorFluent fluent; + + public V1beta2CELDeviceSelectorBuilder() { + this(new V1beta2CELDeviceSelector()); + } + + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelectorFluent fluent) { + this(fluent, new V1beta2CELDeviceSelector()); + } + + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2CELDeviceSelectorBuilder(V1beta2CELDeviceSelectorFluent fluent,V1beta2CELDeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..0658535892 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java @@ -0,0 +1,77 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CELDeviceSelectorFluent> extends BaseFluent{ + + private String expression; + + public V1beta2CELDeviceSelectorFluent() { + } + + public V1beta2CELDeviceSelectorFluent(V1beta2CELDeviceSelector instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta2CELDeviceSelector instance) { + instance = instance != null ? instance : new V1beta2CELDeviceSelector(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2CELDeviceSelectorFluent that = (V1beta2CELDeviceSelectorFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java new file mode 100644 index 0000000000..37f6ca8e96 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2CapacityRequestPolicyBuilder extends V1beta2CapacityRequestPolicyFluent implements VisitableBuilder{ + + V1beta2CapacityRequestPolicyFluent fluent; + + public V1beta2CapacityRequestPolicyBuilder() { + this(new V1beta2CapacityRequestPolicy()); + } + + public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicyFluent fluent) { + this(fluent, new V1beta2CapacityRequestPolicy()); + } + + public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2CapacityRequestPolicyBuilder(V1beta2CapacityRequestPolicyFluent fluent,V1beta2CapacityRequestPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CapacityRequestPolicy build() { + V1beta2CapacityRequestPolicy buildable = new V1beta2CapacityRequestPolicy(); + buildable.setDefault(fluent.getDefault()); + buildable.setValidRange(fluent.buildValidRange()); + buildable.setValidValues(fluent.getValidValues()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java new file mode 100644 index 0000000000..13f73dfb2c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java @@ -0,0 +1,287 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CapacityRequestPolicyFluent> extends BaseFluent{ + + private Quantity _default; + private V1beta2CapacityRequestPolicyRangeBuilder validRange; + private List validValues; + + public V1beta2CapacityRequestPolicyFluent() { + } + + public V1beta2CapacityRequestPolicyFluent(V1beta2CapacityRequestPolicy instance) { + this.copyInstance(instance); + } + + public A addAllToValidValues(Collection items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A addNewValidValue(String value) { + return (A) this.addToValidValues(new Quantity(value)); + } + + public A addToValidValues(Quantity... items) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + for (Quantity item : items) { + this.validValues.add(item); + } + return (A) this; + } + + public A addToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.add(index, item); + return (A) this; + } + + public V1beta2CapacityRequestPolicyRange buildValidRange() { + return this.validRange != null ? this.validRange.build() : null; + } + + protected void copyInstance(V1beta2CapacityRequestPolicy instance) { + instance = instance != null ? instance : new V1beta2CapacityRequestPolicy(); + if (instance != null) { + this.withDefault(instance.getDefault()); + this.withValidRange(instance.getValidRange()); + this.withValidValues(instance.getValidValues()); + } + } + + public ValidRangeNested editOrNewValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(new V1beta2CapacityRequestPolicyRangeBuilder().build())); + } + + public ValidRangeNested editOrNewValidRangeLike(V1beta2CapacityRequestPolicyRange item) { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(item)); + } + + public ValidRangeNested editValidRange() { + return this.withNewValidRangeLike(Optional.ofNullable(this.buildValidRange()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2CapacityRequestPolicyFluent that = (V1beta2CapacityRequestPolicyFluent) o; + if (!(Objects.equals(_default, that._default))) { + return false; + } + if (!(Objects.equals(validRange, that.validRange))) { + return false; + } + if (!(Objects.equals(validValues, that.validValues))) { + return false; + } + return true; + } + + public Quantity getDefault() { + return this._default; + } + + public Quantity getFirstValidValue() { + return this.validValues.get(0); + } + + public Quantity getLastValidValue() { + return this.validValues.get(validValues.size() - 1); + } + + public Quantity getMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Quantity getValidValue(int index) { + return this.validValues.get(index); + } + + public List getValidValues() { + return this.validValues; + } + + public boolean hasDefault() { + return this._default != null; + } + + public boolean hasMatchingValidValue(Predicate predicate) { + for (Quantity item : validValues) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasValidRange() { + return this.validRange != null; + } + + public boolean hasValidValues() { + return this.validValues != null && !(this.validValues.isEmpty()); + } + + public int hashCode() { + return Objects.hash(_default, validRange, validValues); + } + + public A removeAllFromValidValues(Collection items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public A removeFromValidValues(Quantity... items) { + if (this.validValues == null) { + return (A) this; + } + for (Quantity item : items) { + this.validValues.remove(item); + } + return (A) this; + } + + public A setToValidValues(int index,Quantity item) { + if (this.validValues == null) { + this.validValues = new ArrayList(); + } + this.validValues.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(_default == null)) { + sb.append("_default:"); + sb.append(_default); + sb.append(","); + } + if (!(validRange == null)) { + sb.append("validRange:"); + sb.append(validRange); + sb.append(","); + } + if (!(validValues == null) && !(validValues.isEmpty())) { + sb.append("validValues:"); + sb.append(validValues); + } + sb.append("}"); + return sb.toString(); + } + + public A withDefault(Quantity _default) { + this._default = _default; + return (A) this; + } + + public A withNewDefault(String value) { + return (A) this.withDefault(new Quantity(value)); + } + + public ValidRangeNested withNewValidRange() { + return new ValidRangeNested(null); + } + + public ValidRangeNested withNewValidRangeLike(V1beta2CapacityRequestPolicyRange item) { + return new ValidRangeNested(item); + } + + public A withValidRange(V1beta2CapacityRequestPolicyRange validRange) { + this._visitables.remove("validRange"); + if (validRange != null) { + this.validRange = new V1beta2CapacityRequestPolicyRangeBuilder(validRange); + this._visitables.get("validRange").add(this.validRange); + } else { + this.validRange = null; + this._visitables.get("validRange").remove(this.validRange); + } + return (A) this; + } + + public A withValidValues(List validValues) { + if (validValues != null) { + this.validValues = new ArrayList(); + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } else { + this.validValues = null; + } + return (A) this; + } + + public A withValidValues(Quantity... validValues) { + if (this.validValues != null) { + this.validValues.clear(); + _visitables.remove("validValues"); + } + if (validValues != null) { + for (Quantity item : validValues) { + this.addToValidValues(item); + } + } + return (A) this; + } + public class ValidRangeNested extends V1beta2CapacityRequestPolicyRangeFluent> implements Nested{ + + V1beta2CapacityRequestPolicyRangeBuilder builder; + + ValidRangeNested(V1beta2CapacityRequestPolicyRange item) { + this.builder = new V1beta2CapacityRequestPolicyRangeBuilder(this, item); + } + + public N and() { + return (N) V1beta2CapacityRequestPolicyFluent.this.withValidRange(builder.build()); + } + + public N endValidRange() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java new file mode 100644 index 0000000000..97c8b15733 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2CapacityRequestPolicyRangeBuilder extends V1beta2CapacityRequestPolicyRangeFluent implements VisitableBuilder{ + + V1beta2CapacityRequestPolicyRangeFluent fluent; + + public V1beta2CapacityRequestPolicyRangeBuilder() { + this(new V1beta2CapacityRequestPolicyRange()); + } + + public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRangeFluent fluent) { + this(fluent, new V1beta2CapacityRequestPolicyRange()); + } + + public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRange instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2CapacityRequestPolicyRangeBuilder(V1beta2CapacityRequestPolicyRangeFluent fluent,V1beta2CapacityRequestPolicyRange instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CapacityRequestPolicyRange build() { + V1beta2CapacityRequestPolicyRange buildable = new V1beta2CapacityRequestPolicyRange(); + buildable.setMax(fluent.getMax()); + buildable.setMin(fluent.getMin()); + buildable.setStep(fluent.getStep()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java new file mode 100644 index 0000000000..181d3ed69c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java @@ -0,0 +1,136 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CapacityRequestPolicyRangeFluent> extends BaseFluent{ + + private Quantity max; + private Quantity min; + private Quantity step; + + public V1beta2CapacityRequestPolicyRangeFluent() { + } + + public V1beta2CapacityRequestPolicyRangeFluent(V1beta2CapacityRequestPolicyRange instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta2CapacityRequestPolicyRange instance) { + instance = instance != null ? instance : new V1beta2CapacityRequestPolicyRange(); + if (instance != null) { + this.withMax(instance.getMax()); + this.withMin(instance.getMin()); + this.withStep(instance.getStep()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2CapacityRequestPolicyRangeFluent that = (V1beta2CapacityRequestPolicyRangeFluent) o; + if (!(Objects.equals(max, that.max))) { + return false; + } + if (!(Objects.equals(min, that.min))) { + return false; + } + if (!(Objects.equals(step, that.step))) { + return false; + } + return true; + } + + public Quantity getMax() { + return this.max; + } + + public Quantity getMin() { + return this.min; + } + + public Quantity getStep() { + return this.step; + } + + public boolean hasMax() { + return this.max != null; + } + + public boolean hasMin() { + return this.min != null; + } + + public boolean hasStep() { + return this.step != null; + } + + public int hashCode() { + return Objects.hash(max, min, step); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(max == null)) { + sb.append("max:"); + sb.append(max); + sb.append(","); + } + if (!(min == null)) { + sb.append("min:"); + sb.append(min); + sb.append(","); + } + if (!(step == null)) { + sb.append("step:"); + sb.append(step); + } + sb.append("}"); + return sb.toString(); + } + + public A withMax(Quantity max) { + this.max = max; + return (A) this; + } + + public A withMin(Quantity min) { + this.min = min; + return (A) this; + } + + public A withNewMax(String value) { + return (A) this.withMax(new Quantity(value)); + } + + public A withNewMin(String value) { + return (A) this.withMin(new Quantity(value)); + } + + public A withNewStep(String value) { + return (A) this.withStep(new Quantity(value)); + } + + public A withStep(Quantity step) { + this.step = step; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java new file mode 100644 index 0000000000..f38a88452a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2CapacityRequirementsBuilder extends V1beta2CapacityRequirementsFluent implements VisitableBuilder{ + + V1beta2CapacityRequirementsFluent fluent; + + public V1beta2CapacityRequirementsBuilder() { + this(new V1beta2CapacityRequirements()); + } + + public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirementsFluent fluent) { + this(fluent, new V1beta2CapacityRequirements()); + } + + public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirements instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2CapacityRequirementsBuilder(V1beta2CapacityRequirementsFluent fluent,V1beta2CapacityRequirements instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2CapacityRequirements build() { + V1beta2CapacityRequirements buildable = new V1beta2CapacityRequirements(); + buildable.setRequests(fluent.getRequests()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java new file mode 100644 index 0000000000..d26555d770 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java @@ -0,0 +1,128 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CapacityRequirementsFluent> extends BaseFluent{ + + private Map requests; + + public V1beta2CapacityRequirementsFluent() { + } + + public V1beta2CapacityRequirementsFluent(V1beta2CapacityRequirements instance) { + this.copyInstance(instance); + } + + 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 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; + } + + protected void copyInstance(V1beta2CapacityRequirements instance) { + instance = instance != null ? instance : new V1beta2CapacityRequirements(); + if (instance != null) { + this.withRequests(instance.getRequests()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2CapacityRequirementsFluent that = (V1beta2CapacityRequirementsFluent) o; + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public Map getRequests() { + return this.requests; + } + + public boolean hasRequests() { + return this.requests != null; + } + + public int hashCode() { + return Objects.hash(requests); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public A withRequests(Map requests) { + if (requests == null) { + this.requests = null; + } else { + this.requests = new LinkedHashMap(requests); + } + return (A) this; + } + +} \ 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..a2266f4b92 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2CounterBuilder extends V1beta2CounterFluent implements VisitableBuilder{ + + V1beta2CounterFluent fluent; + + public V1beta2CounterBuilder() { + this(new V1beta2Counter()); + } + + public V1beta2CounterBuilder(V1beta2CounterFluent fluent) { + this(fluent, new V1beta2Counter()); + } + + public V1beta2CounterBuilder(V1beta2Counter instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2CounterBuilder(V1beta2CounterFluent fluent,V1beta2Counter instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..1d9ae073c6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java @@ -0,0 +1,82 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CounterFluent> extends BaseFluent{ + + private Quantity value; + + public V1beta2CounterFluent() { + } + + public V1beta2CounterFluent(V1beta2Counter instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta2Counter instance) { + instance = instance != null ? instance : new V1beta2Counter(); + if (instance != null) { + this.withValue(instance.getValue()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2CounterFluent that = (V1beta2CounterFluent) o; + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public Quantity getValue() { + return this.value; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + +} \ 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..bf0aaa1042 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2CounterSetBuilder extends V1beta2CounterSetFluent implements VisitableBuilder{ + + V1beta2CounterSetFluent fluent; + + public V1beta2CounterSetBuilder() { + this(new V1beta2CounterSet()); + } + + public V1beta2CounterSetBuilder(V1beta2CounterSetFluent fluent) { + this(fluent, new V1beta2CounterSet()); + } + + public V1beta2CounterSetBuilder(V1beta2CounterSet instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2CounterSetBuilder(V1beta2CounterSetFluent fluent,V1beta2CounterSet instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..c286c8b691 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2CounterSetFluent> extends BaseFluent{ + + private Map counters; + private String name; + + public V1beta2CounterSetFluent() { + } + + public V1beta2CounterSetFluent(V1beta2CounterSet instance) { + this.copyInstance(instance); + } + + 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 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; + } + + protected void copyInstance(V1beta2CounterSet instance) { + instance = instance != null ? instance : new V1beta2CounterSet(); + if (instance != null) { + this.withCounters(instance.getCounters()); + this.withName(instance.getName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2CounterSetFluent that = (V1beta2CounterSetFluent) o; + if (!(Objects.equals(counters, that.counters))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public Map getCounters() { + return this.counters; + } + + public String getName() { + return this.name; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(counters, name); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + +} \ 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..c61f40938a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceAllocationConfigurationBuilder extends V1beta2DeviceAllocationConfigurationFluent implements VisitableBuilder{ + + V1beta2DeviceAllocationConfigurationFluent fluent; + + public V1beta2DeviceAllocationConfigurationBuilder() { + this(new V1beta2DeviceAllocationConfiguration()); + } + + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfigurationFluent fluent) { + this(fluent, new V1beta2DeviceAllocationConfiguration()); + } + + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceAllocationConfigurationBuilder(V1beta2DeviceAllocationConfigurationFluent fluent,V1beta2DeviceAllocationConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..f36e83a7bd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java @@ -0,0 +1,278 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceAllocationConfigurationFluent> extends BaseFluent{ + + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + private List requests; + private String source; + + public V1beta2DeviceAllocationConfigurationFluent() { + } + + public V1beta2DeviceAllocationConfigurationFluent(V1beta2DeviceAllocationConfiguration instance) { + this.copyInstance(instance); + } + + 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 addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + 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 OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceAllocationConfigurationFluent that = (V1beta2DeviceAllocationConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + if (!(Objects.equals(source, that.source))) { + return false; + } + return true; + } + + 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 String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public String getSource() { + return this.source; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public boolean hasSource() { + return this.source != null; + } + + public int hashCode() { + return Objects.hash(opaque, requests, source); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + sb.append(","); + } + if (!(source == null)) { + sb.append("source:"); + sb.append(source); + } + sb.append("}"); + return sb.toString(); + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + 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 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(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 A withSource(String source) { + this.source = source; + return (A) this; + } + public class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta2OpaqueDeviceConfigurationBuilder builder; + + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { + this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); + } + + 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..fbd9e9886a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceAllocationResultBuilder extends V1beta2DeviceAllocationResultFluent implements VisitableBuilder{ + + V1beta2DeviceAllocationResultFluent fluent; + + public V1beta2DeviceAllocationResultBuilder() { + this(new V1beta2DeviceAllocationResult()); + } + + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResultFluent fluent) { + this(fluent, new V1beta2DeviceAllocationResult()); + } + + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceAllocationResultBuilder(V1beta2DeviceAllocationResultFluent fluent,V1beta2DeviceAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..10252d0599 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java @@ -0,0 +1,534 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceAllocationResultFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList results; + + public V1beta2DeviceAllocationResultFluent() { + } + + public V1beta2DeviceAllocationResultFluent(V1beta2DeviceAllocationResult instance) { + this.copyInstance(instance); + } + + 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 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 ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceAllocationConfiguration item) { + return new ConfigNested(-1, item); + } + + public ResultsNested addNewResult() { + return new ResultsNested(-1, null); + } + + public ResultsNested addNewResultLike(V1beta2DeviceRequestAllocationResult item) { + return new ResultsNested(-1, item); + } + + public A addToConfig(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 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 addToResults(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 addToResults(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.add(index, builder); + } + 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 V1beta2DeviceRequestAllocationResult buildFirstResult() { + return this.results.get(0).build(); + } + + public V1beta2DeviceAllocationConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta2DeviceRequestAllocationResult buildLastResult() { + return this.results.get(results.size() - 1).build(); + } + + public V1beta2DeviceAllocationConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta2DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceRequestAllocationResult buildMatchingResult(Predicate predicate) { + for (V1beta2DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceRequestAllocationResult buildResult(int index) { + return this.results.get(index).build(); + } + + public List buildResults() { + return this.results != null ? build(results) : null; + } + + protected void copyInstance(V1beta2DeviceAllocationResult instance) { + instance = instance != null ? instance : new V1beta2DeviceAllocationResult(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withResults(instance.getResults()); + } + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public ResultsNested editFirstResult() { + if (results.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "results")); + } + return this.setNewResultLike(0, this.buildResult(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ResultsNested editLastResult() { + int index = results.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ResultsNested editMatchingResult(Predicate predicate) { + int index = -1; + for (int i = 0;i < results.size();i++) { + if (predicate.test(results.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public ResultsNested editResult(int index) { + if (results.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "results")); + } + return this.setNewResultLike(index, this.buildResult(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceAllocationResultFluent that = (V1beta2DeviceAllocationResultFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(results, that.results))) { + return false; + } + return true; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceAllocationConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResult(Predicate predicate) { + for (V1beta2DeviceRequestAllocationResultBuilder item : results) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResults() { + return this.results != null && !(this.results.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, results); + } + + 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 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 removeFromConfig(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 removeFromResults(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 removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + 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 A removeMatchingFromResults(Predicate predicate) { + if (results == null) { + return (A) this; + } + Iterator each = results.iterator(); + 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 ConfigNested setNewConfigLike(int index,V1beta2DeviceAllocationConfiguration item) { + return new ConfigNested(index, item); + } + + public ResultsNested setNewResultLike(int index,V1beta2DeviceRequestAllocationResult item) { + return new ResultsNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(results == null) && !(results.isEmpty())) { + sb.append("results:"); + sb.append(results); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 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(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 class ConfigNested extends V1beta2DeviceAllocationConfigurationFluent> implements Nested{ + + V1beta2DeviceAllocationConfigurationBuilder builder; + int index; + + ConfigNested(int index,V1beta2DeviceAllocationConfiguration item) { + this.index = index; + this.builder = new V1beta2DeviceAllocationConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceAllocationResultFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + } + public class ResultsNested extends V1beta2DeviceRequestAllocationResultFluent> implements Nested{ + + V1beta2DeviceRequestAllocationResultBuilder builder; + int index; + + ResultsNested(int index,V1beta2DeviceRequestAllocationResult item) { + this.index = index; + this.builder = new V1beta2DeviceRequestAllocationResultBuilder(this, item); + } + + 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..f99640c17a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceAttributeBuilder extends V1beta2DeviceAttributeFluent implements VisitableBuilder{ + + V1beta2DeviceAttributeFluent fluent; + + public V1beta2DeviceAttributeBuilder() { + this(new V1beta2DeviceAttribute()); + } + + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent) { + this(fluent, new V1beta2DeviceAttribute()); + } + + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttribute instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent,V1beta2DeviceAttribute instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b94fd2a211 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java @@ -0,0 +1,152 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceAttributeFluent> extends BaseFluent{ + + private Long _int; + private Boolean bool; + private String string; + private String version; + + public V1beta2DeviceAttributeFluent() { + } + + public V1beta2DeviceAttributeFluent(V1beta2DeviceAttribute instance) { + this.copyInstance(instance); + } + + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceAttributeFluent that = (V1beta2DeviceAttributeFluent) o; + if (!(Objects.equals(bool, that.bool))) { + return false; + } + if (!(Objects.equals(_int, that._int))) { + return false; + } + if (!(Objects.equals(string, that.string))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; + } + + public Boolean getBool() { + return this.bool; + } + + public Long getInt() { + return this._int; + } + + public String getString() { + return this.string; + } + + public String getVersion() { + return this.version; + } + + public boolean hasBool() { + return this.bool != null; + } + + public boolean hasInt() { + return this._int != null; + } + + public boolean hasString() { + return this.string != null; + } + + public boolean hasVersion() { + return this.version != null; + } + + public int hashCode() { + return Objects.hash(bool, _int, string, version); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(bool == null)) { + sb.append("bool:"); + sb.append(bool); + sb.append(","); + } + if (!(_int == null)) { + sb.append("_int:"); + sb.append(_int); + sb.append(","); + } + if (!(string == null)) { + sb.append("string:"); + sb.append(string); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } + sb.append("}"); + return sb.toString(); + } + + public A withBool() { + return withBool(true); + } + + public A withBool(Boolean bool) { + this.bool = bool; + return (A) this; + } + + public A withInt(Long _int) { + this._int = _int; + return (A) this; + } + + public A withString(String string) { + this.string = string; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + +} \ 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..1ae4f9f0c1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java @@ -0,0 +1,44 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceBuilder extends V1beta2DeviceFluent implements VisitableBuilder{ + + V1beta2DeviceFluent fluent; + + public V1beta2DeviceBuilder() { + this(new V1beta2Device()); + } + + public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent) { + this(fluent, new V1beta2Device()); + } + + public V1beta2DeviceBuilder(V1beta2Device instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceBuilder(V1beta2DeviceFluent fluent,V1beta2Device instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2Device build() { + V1beta2Device buildable = new V1beta2Device(); + buildable.setAllNodes(fluent.getAllNodes()); + buildable.setAllowMultipleAllocations(fluent.getAllowMultipleAllocations()); + buildable.setAttributes(fluent.getAttributes()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setBindsToNode(fluent.getBindsToNode()); + 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..a4aac9fa50 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceCapacityBuilder extends V1beta2DeviceCapacityFluent implements VisitableBuilder{ + + V1beta2DeviceCapacityFluent fluent; + + public V1beta2DeviceCapacityBuilder() { + this(new V1beta2DeviceCapacity()); + } + + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacityFluent fluent) { + this(fluent, new V1beta2DeviceCapacity()); + } + + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacity instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceCapacityBuilder(V1beta2DeviceCapacityFluent fluent,V1beta2DeviceCapacity instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceCapacity build() { + V1beta2DeviceCapacity buildable = new V1beta2DeviceCapacity(); + buildable.setRequestPolicy(fluent.buildRequestPolicy()); + 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..c0e1503b06 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceCapacityFluent> extends BaseFluent{ + + private V1beta2CapacityRequestPolicyBuilder requestPolicy; + private Quantity value; + + public V1beta2DeviceCapacityFluent() { + } + + public V1beta2DeviceCapacityFluent(V1beta2DeviceCapacity instance) { + this.copyInstance(instance); + } + + public V1beta2CapacityRequestPolicy buildRequestPolicy() { + return this.requestPolicy != null ? this.requestPolicy.build() : null; + } + + protected void copyInstance(V1beta2DeviceCapacity instance) { + instance = instance != null ? instance : new V1beta2DeviceCapacity(); + if (instance != null) { + this.withRequestPolicy(instance.getRequestPolicy()); + this.withValue(instance.getValue()); + } + } + + public RequestPolicyNested editOrNewRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(new V1beta2CapacityRequestPolicyBuilder().build())); + } + + public RequestPolicyNested editOrNewRequestPolicyLike(V1beta2CapacityRequestPolicy item) { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(item)); + } + + public RequestPolicyNested editRequestPolicy() { + return this.withNewRequestPolicyLike(Optional.ofNullable(this.buildRequestPolicy()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceCapacityFluent that = (V1beta2DeviceCapacityFluent) o; + if (!(Objects.equals(requestPolicy, that.requestPolicy))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public Quantity getValue() { + return this.value; + } + + public boolean hasRequestPolicy() { + return this.requestPolicy != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(requestPolicy, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(requestPolicy == null)) { + sb.append("requestPolicy:"); + sb.append(requestPolicy); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public RequestPolicyNested withNewRequestPolicy() { + return new RequestPolicyNested(null); + } + + public RequestPolicyNested withNewRequestPolicyLike(V1beta2CapacityRequestPolicy item) { + return new RequestPolicyNested(item); + } + + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); + } + + public A withRequestPolicy(V1beta2CapacityRequestPolicy requestPolicy) { + this._visitables.remove("requestPolicy"); + if (requestPolicy != null) { + this.requestPolicy = new V1beta2CapacityRequestPolicyBuilder(requestPolicy); + this._visitables.get("requestPolicy").add(this.requestPolicy); + } else { + this.requestPolicy = null; + this._visitables.get("requestPolicy").remove(this.requestPolicy); + } + return (A) this; + } + + public A withValue(Quantity value) { + this.value = value; + return (A) this; + } + public class RequestPolicyNested extends V1beta2CapacityRequestPolicyFluent> implements Nested{ + + V1beta2CapacityRequestPolicyBuilder builder; + + RequestPolicyNested(V1beta2CapacityRequestPolicy item) { + this.builder = new V1beta2CapacityRequestPolicyBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceCapacityFluent.this.withRequestPolicy(builder.build()); + } + + public N endRequestPolicy() { + return and(); + } + + } +} \ 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..af8aedffe4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceClaimBuilder extends V1beta2DeviceClaimFluent implements VisitableBuilder{ + + V1beta2DeviceClaimFluent fluent; + + public V1beta2DeviceClaimBuilder() { + this(new V1beta2DeviceClaim()); + } + + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaimFluent fluent) { + this(fluent, new V1beta2DeviceClaim()); + } + + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceClaimBuilder(V1beta2DeviceClaimFluent fluent,V1beta2DeviceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..ed10641198 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceClaimConfigurationBuilder extends V1beta2DeviceClaimConfigurationFluent implements VisitableBuilder{ + + V1beta2DeviceClaimConfigurationFluent fluent; + + public V1beta2DeviceClaimConfigurationBuilder() { + this(new V1beta2DeviceClaimConfiguration()); + } + + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfigurationFluent fluent) { + this(fluent, new V1beta2DeviceClaimConfiguration()); + } + + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceClaimConfigurationBuilder(V1beta2DeviceClaimConfigurationFluent fluent,V1beta2DeviceClaimConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..35ddbd62ed --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java @@ -0,0 +1,255 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClaimConfigurationFluent> extends BaseFluent{ + + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + private List requests; + + public V1beta2DeviceClaimConfigurationFluent() { + } + + public V1beta2DeviceClaimConfigurationFluent(V1beta2DeviceClaimConfiguration instance) { + this.copyInstance(instance); + } + + 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 addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + protected void copyInstance(V1beta2DeviceClaimConfiguration instance) { + instance = instance != null ? instance : new V1beta2DeviceClaimConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + this.withRequests(instance.getRequests()); + } + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceClaimConfigurationFluent that = (V1beta2DeviceClaimConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + 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 String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(opaque, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + 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 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(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 class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta2OpaqueDeviceConfigurationBuilder builder; + + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { + this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); + } + + 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..f82c89a14d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java @@ -0,0 +1,771 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClaimFluent> extends BaseFluent{ + + private ArrayList config; + private ArrayList constraints; + private ArrayList requests; + + public V1beta2DeviceClaimFluent() { + } + + public V1beta2DeviceClaimFluent(V1beta2DeviceClaim instance) { + this.copyInstance(instance); + } + + 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 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 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 ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceClaimConfiguration item) { + return new ConfigNested(-1, item); + } + + public ConstraintsNested addNewConstraint() { + return new ConstraintsNested(-1, null); + } + + public ConstraintsNested addNewConstraintLike(V1beta2DeviceConstraint item) { + return new ConstraintsNested(-1, item); + } + + public RequestsNested addNewRequest() { + return new RequestsNested(-1, null); + } + + public RequestsNested addNewRequestLike(V1beta2DeviceRequest item) { + return new RequestsNested(-1, item); + } + + public A addToConfig(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 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 addToConstraints(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 addToConstraints(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.add(index, builder); + } + return (A) this; + } + + public A addToRequests(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 addToRequests(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.add(index, builder); + } + 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 V1beta2DeviceConstraint buildConstraint(int index) { + return this.constraints.get(index).build(); + } + + public List buildConstraints() { + return this.constraints != null ? build(constraints) : null; + } + + public V1beta2DeviceClaimConfiguration buildFirstConfig() { + return this.config.get(0).build(); + } + + public V1beta2DeviceConstraint buildFirstConstraint() { + return this.constraints.get(0).build(); + } + + public V1beta2DeviceRequest buildFirstRequest() { + return this.requests.get(0).build(); + } + + public V1beta2DeviceClaimConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta2DeviceConstraint buildLastConstraint() { + return this.constraints.get(constraints.size() - 1).build(); + } + + public V1beta2DeviceRequest buildLastRequest() { + return this.requests.get(requests.size() - 1).build(); + } + + public V1beta2DeviceClaimConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceConstraint buildMatchingConstraint(Predicate predicate) { + for (V1beta2DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceRequest buildMatchingRequest(Predicate predicate) { + for (V1beta2DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceRequest buildRequest(int index) { + return this.requests.get(index).build(); + } + + public List buildRequests() { + return this.requests != null ? build(requests) : null; + } + + 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 ConfigNested editConfig(int index) { + if (config.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConstraintsNested editConstraint(int index) { + if (constraints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public ConstraintsNested editFirstConstraint() { + if (constraints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(0, this.buildConstraint(0)); + } + + public RequestsNested editFirstRequest() { + if (requests.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(0, this.buildRequest(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConstraintsNested editLastConstraint() { + int index = constraints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public RequestsNested editLastRequest() { + int index = requests.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConstraintsNested editMatchingConstraint(Predicate predicate) { + int index = -1; + for (int i = 0;i < constraints.size();i++) { + if (predicate.test(constraints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "constraints")); + } + return this.setNewConstraintLike(index, this.buildConstraint(index)); + } + + public RequestsNested editMatchingRequest(Predicate predicate) { + int index = -1; + for (int i = 0;i < requests.size();i++) { + if (predicate.test(requests.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public RequestsNested editRequest(int index) { + if (requests.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "requests")); + } + return this.setNewRequestLike(index, this.buildRequest(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceClaimFluent that = (V1beta2DeviceClaimFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(constraints, that.constraints))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasConstraints() { + return this.constraints != null && !(this.constraints.isEmpty()); + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClaimConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingConstraint(Predicate predicate) { + for (V1beta2DeviceConstraintBuilder item : constraints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (V1beta2DeviceRequestBuilder item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, constraints, requests); + } + + 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 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 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 removeFromConfig(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 removeFromConstraints(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 removeFromRequests(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 removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + 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 A removeMatchingFromConstraints(Predicate predicate) { + if (constraints == null) { + return (A) this; + } + Iterator each = constraints.iterator(); + 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 A removeMatchingFromRequests(Predicate predicate) { + if (requests == null) { + return (A) this; + } + Iterator each = requests.iterator(); + 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 ConfigNested setNewConfigLike(int index,V1beta2DeviceClaimConfiguration item) { + return new ConfigNested(index, item); + } + + public ConstraintsNested setNewConstraintLike(int index,V1beta2DeviceConstraint item) { + return new ConstraintsNested(index, item); + } + + public RequestsNested setNewRequestLike(int index,V1beta2DeviceRequest item) { + return new RequestsNested(index, item); + } + + 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 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(constraints == null) && !(constraints.isEmpty())) { + sb.append("constraints:"); + sb.append(constraints); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 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(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 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(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 class ConfigNested extends V1beta2DeviceClaimConfigurationFluent> implements Nested{ + + V1beta2DeviceClaimConfigurationBuilder builder; + int index; + + ConfigNested(int index,V1beta2DeviceClaimConfiguration item) { + this.index = index; + this.builder = new V1beta2DeviceClaimConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceClaimFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + } + public class ConstraintsNested extends V1beta2DeviceConstraintFluent> implements Nested{ + + V1beta2DeviceConstraintBuilder builder; + int index; + + ConstraintsNested(int index,V1beta2DeviceConstraint item) { + this.index = index; + this.builder = new V1beta2DeviceConstraintBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceClaimFluent.this.setToConstraints(index, builder.build()); + } + + public N endConstraint() { + return and(); + } + + } + public class RequestsNested extends V1beta2DeviceRequestFluent> implements Nested{ + + V1beta2DeviceRequestBuilder builder; + int index; + + RequestsNested(int index,V1beta2DeviceRequest item) { + this.index = index; + this.builder = new V1beta2DeviceRequestBuilder(this, item); + } + + 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..8f4199b6e1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceClassBuilder extends V1beta2DeviceClassFluent implements VisitableBuilder{ + + V1beta2DeviceClassFluent fluent; + + public V1beta2DeviceClassBuilder() { + this(new V1beta2DeviceClass()); + } + + public V1beta2DeviceClassBuilder(V1beta2DeviceClassFluent fluent) { + this(fluent, new V1beta2DeviceClass()); + } + + public V1beta2DeviceClassBuilder(V1beta2DeviceClass instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceClassBuilder(V1beta2DeviceClassFluent fluent,V1beta2DeviceClass instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..392b1657f8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceClassConfigurationBuilder extends V1beta2DeviceClassConfigurationFluent implements VisitableBuilder{ + + V1beta2DeviceClassConfigurationFluent fluent; + + public V1beta2DeviceClassConfigurationBuilder() { + this(new V1beta2DeviceClassConfiguration()); + } + + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfigurationFluent fluent) { + this(fluent, new V1beta2DeviceClassConfiguration()); + } + + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceClassConfigurationBuilder(V1beta2DeviceClassConfigurationFluent fluent,V1beta2DeviceClassConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..4aa886ca51 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassConfigurationFluent> extends BaseFluent{ + + private V1beta2OpaqueDeviceConfigurationBuilder opaque; + + public V1beta2DeviceClassConfigurationFluent() { + } + + public V1beta2DeviceClassConfigurationFluent(V1beta2DeviceClassConfiguration instance) { + this.copyInstance(instance); + } + + public V1beta2OpaqueDeviceConfiguration buildOpaque() { + return this.opaque != null ? this.opaque.build() : null; + } + + protected void copyInstance(V1beta2DeviceClassConfiguration instance) { + instance = instance != null ? instance : new V1beta2DeviceClassConfiguration(); + if (instance != null) { + this.withOpaque(instance.getOpaque()); + } + } + + public OpaqueNested editOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(null)); + } + + public OpaqueNested editOrNewOpaque() { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(new V1beta2OpaqueDeviceConfigurationBuilder().build())); + } + + public OpaqueNested editOrNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return this.withNewOpaqueLike(Optional.ofNullable(this.buildOpaque()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceClassConfigurationFluent that = (V1beta2DeviceClassConfigurationFluent) o; + if (!(Objects.equals(opaque, that.opaque))) { + return false; + } + return true; + } + + public boolean hasOpaque() { + return this.opaque != null; + } + + public int hashCode() { + return Objects.hash(opaque); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(opaque == null)) { + sb.append("opaque:"); + sb.append(opaque); + } + sb.append("}"); + return sb.toString(); + } + + public OpaqueNested withNewOpaque() { + return new OpaqueNested(null); + } + + public OpaqueNested withNewOpaqueLike(V1beta2OpaqueDeviceConfiguration item) { + return new OpaqueNested(item); + } + + 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 class OpaqueNested extends V1beta2OpaqueDeviceConfigurationFluent> implements Nested{ + + V1beta2OpaqueDeviceConfigurationBuilder builder; + + OpaqueNested(V1beta2OpaqueDeviceConfiguration item) { + this.builder = new V1beta2OpaqueDeviceConfigurationBuilder(this, item); + } + + 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..b4a7c50e1e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2DeviceClassSpecBuilder spec; + + public V1beta2DeviceClassFluent() { + } + + public V1beta2DeviceClassFluent(V1beta2DeviceClass instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2DeviceClassSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2DeviceClassSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2DeviceClassSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceClassFluent that = (V1beta2DeviceClassFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2DeviceClassSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceClassFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta2DeviceClassSpecFluent> implements Nested{ + + V1beta2DeviceClassSpecBuilder builder; + + SpecNested(V1beta2DeviceClassSpec item) { + this.builder = new V1beta2DeviceClassSpecBuilder(this, item); + } + + 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..2ad89816f2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceClassListBuilder extends V1beta2DeviceClassListFluent implements VisitableBuilder{ + + V1beta2DeviceClassListFluent fluent; + + public V1beta2DeviceClassListBuilder() { + this(new V1beta2DeviceClassList()); + } + + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassListFluent fluent) { + this(fluent, new V1beta2DeviceClassList()); + } + + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceClassListBuilder(V1beta2DeviceClassListFluent fluent,V1beta2DeviceClassList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..4fe9016ba1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta2DeviceClassListFluent() { + } + + public V1beta2DeviceClassListFluent(V1beta2DeviceClassList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2DeviceClass item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta2DeviceClass buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2DeviceClass buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceClassListFluent that = (V1beta2DeviceClassListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2DeviceClassBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta2DeviceClass item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta2DeviceClassFluent> implements Nested{ + + V1beta2DeviceClassBuilder builder; + int index; + + ItemsNested(int index,V1beta2DeviceClass item) { + this.index = index; + this.builder = new V1beta2DeviceClassBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceClassListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..8a1b91ee83 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceClassSpecBuilder extends V1beta2DeviceClassSpecFluent implements VisitableBuilder{ + + V1beta2DeviceClassSpecFluent fluent; + + public V1beta2DeviceClassSpecBuilder() { + this(new V1beta2DeviceClassSpec()); + } + + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpecFluent fluent) { + this(fluent, new V1beta2DeviceClassSpec()); + } + + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceClassSpecBuilder(V1beta2DeviceClassSpecFluent fluent,V1beta2DeviceClassSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceClassSpec build() { + V1beta2DeviceClassSpec buildable = new V1beta2DeviceClassSpec(); + buildable.setConfig(fluent.buildConfig()); + buildable.setExtendedResourceName(fluent.getExtendedResourceName()); + 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..9436928127 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java @@ -0,0 +1,557 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceClassSpecFluent> extends BaseFluent{ + + private ArrayList config; + private String extendedResourceName; + private ArrayList selectors; + + public V1beta2DeviceClassSpecFluent() { + } + + public V1beta2DeviceClassSpecFluent(V1beta2DeviceClassSpec instance) { + this.copyInstance(instance); + } + + 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 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 ConfigNested addNewConfig() { + return new ConfigNested(-1, null); + } + + public ConfigNested addNewConfigLike(V1beta2DeviceClassConfiguration item) { + return new ConfigNested(-1, item); + } + + public SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public A addToConfig(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 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 addToSelectors(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 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 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 V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta2DeviceClassConfiguration buildLastConfig() { + return this.config.get(config.size() - 1).build(); + } + + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta2DeviceClassConfiguration buildMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + protected void copyInstance(V1beta2DeviceClassSpec instance) { + instance = instance != null ? instance : new V1beta2DeviceClassSpec(); + if (instance != null) { + this.withConfig(instance.getConfig()); + this.withExtendedResourceName(instance.getExtendedResourceName()); + this.withSelectors(instance.getSelectors()); + } + } + + public ConfigNested editConfig(int index) { + if (config.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public ConfigNested editFirstConfig() { + if (config.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "config")); + } + return this.setNewConfigLike(0, this.buildConfig(0)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public ConfigNested editLastConfig() { + int index = config.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public ConfigNested editMatchingConfig(Predicate predicate) { + int index = -1; + for (int i = 0;i < config.size();i++) { + if (predicate.test(config.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "config")); + } + return this.setNewConfigLike(index, this.buildConfig(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceClassSpecFluent that = (V1beta2DeviceClassSpecFluent) o; + if (!(Objects.equals(config, that.config))) { + return false; + } + if (!(Objects.equals(extendedResourceName, that.extendedResourceName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + return true; + } + + public String getExtendedResourceName() { + return this.extendedResourceName; + } + + public boolean hasConfig() { + return this.config != null && !(this.config.isEmpty()); + } + + public boolean hasExtendedResourceName() { + return this.extendedResourceName != null; + } + + public boolean hasMatchingConfig(Predicate predicate) { + for (V1beta2DeviceClassConfigurationBuilder item : config) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public int hashCode() { + return Objects.hash(config, extendedResourceName, selectors); + } + + 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 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 removeFromConfig(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 removeFromSelectors(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 removeMatchingFromConfig(Predicate predicate) { + if (config == null) { + return (A) this; + } + Iterator each = config.iterator(); + 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 A removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + 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 ConfigNested setNewConfigLike(int index,V1beta2DeviceClassConfiguration item) { + return new ConfigNested(index, item); + } + + public SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(config == null) && !(config.isEmpty())) { + sb.append("config:"); + sb.append(config); + sb.append(","); + } + if (!(extendedResourceName == null)) { + sb.append("extendedResourceName:"); + sb.append(extendedResourceName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + } + sb.append("}"); + return sb.toString(); + } + + 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(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 A withExtendedResourceName(String extendedResourceName) { + this.extendedResourceName = extendedResourceName; + return (A) this; + } + + 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(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 class ConfigNested extends V1beta2DeviceClassConfigurationFluent> implements Nested{ + + V1beta2DeviceClassConfigurationBuilder builder; + int index; + + ConfigNested(int index,V1beta2DeviceClassConfiguration item) { + this.index = index; + this.builder = new V1beta2DeviceClassConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceClassSpecFluent.this.setToConfig(index, builder.build()); + } + + public N endConfig() { + return and(); + } + + } + public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ + + V1beta2DeviceSelectorBuilder builder; + int index; + + SelectorsNested(int index,V1beta2DeviceSelector item) { + this.index = index; + this.builder = new V1beta2DeviceSelectorBuilder(this, item); + } + + 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..3f351fc81b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceConstraintBuilder extends V1beta2DeviceConstraintFluent implements VisitableBuilder{ + + V1beta2DeviceConstraintFluent fluent; + + public V1beta2DeviceConstraintBuilder() { + this(new V1beta2DeviceConstraint()); + } + + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraintFluent fluent) { + this(fluent, new V1beta2DeviceConstraint()); + } + + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceConstraintBuilder(V1beta2DeviceConstraintFluent fluent,V1beta2DeviceConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceConstraint build() { + V1beta2DeviceConstraint buildable = new V1beta2DeviceConstraint(); + buildable.setDistinctAttribute(fluent.getDistinctAttribute()); + 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..793d99a63f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java @@ -0,0 +1,233 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceConstraintFluent> extends BaseFluent{ + + private String distinctAttribute; + private String matchAttribute; + private List requests; + + public V1beta2DeviceConstraintFluent() { + } + + public V1beta2DeviceConstraintFluent(V1beta2DeviceConstraint instance) { + this.copyInstance(instance); + } + + 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 addToRequests(String... items) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + for (String item : items) { + this.requests.add(item); + } + return (A) this; + } + + public A addToRequests(int index,String item) { + if (this.requests == null) { + this.requests = new ArrayList(); + } + this.requests.add(index, item); + return (A) this; + } + + protected void copyInstance(V1beta2DeviceConstraint instance) { + instance = instance != null ? instance : new V1beta2DeviceConstraint(); + if (instance != null) { + this.withDistinctAttribute(instance.getDistinctAttribute()); + this.withMatchAttribute(instance.getMatchAttribute()); + this.withRequests(instance.getRequests()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceConstraintFluent that = (V1beta2DeviceConstraintFluent) o; + if (!(Objects.equals(distinctAttribute, that.distinctAttribute))) { + return false; + } + if (!(Objects.equals(matchAttribute, that.matchAttribute))) { + return false; + } + if (!(Objects.equals(requests, that.requests))) { + return false; + } + return true; + } + + public String getDistinctAttribute() { + return this.distinctAttribute; + } + + public String getFirstRequest() { + return this.requests.get(0); + } + + public String getLastRequest() { + return this.requests.get(requests.size() - 1); + } + + public String getMatchAttribute() { + return this.matchAttribute; + } + + public String getMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getRequest(int index) { + return this.requests.get(index); + } + + public List getRequests() { + return this.requests; + } + + public boolean hasDistinctAttribute() { + return this.distinctAttribute != null; + } + + public boolean hasMatchAttribute() { + return this.matchAttribute != null; + } + + public boolean hasMatchingRequest(Predicate predicate) { + for (String item : requests) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasRequests() { + return this.requests != null && !(this.requests.isEmpty()); + } + + public int hashCode() { + return Objects.hash(distinctAttribute, matchAttribute, requests); + } + + public A removeAllFromRequests(Collection items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(item); + } + return (A) this; + } + + public A removeFromRequests(String... items) { + if (this.requests == null) { + return (A) this; + } + for (String item : items) { + this.requests.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(distinctAttribute == null)) { + sb.append("distinctAttribute:"); + sb.append(distinctAttribute); + sb.append(","); + } + if (!(matchAttribute == null)) { + sb.append("matchAttribute:"); + sb.append(matchAttribute); + sb.append(","); + } + if (!(requests == null) && !(requests.isEmpty())) { + sb.append("requests:"); + sb.append(requests); + } + sb.append("}"); + return sb.toString(); + } + + public A withDistinctAttribute(String distinctAttribute) { + this.distinctAttribute = distinctAttribute; + return (A) this; + } + + public A withMatchAttribute(String matchAttribute) { + this.matchAttribute = matchAttribute; + return (A) this; + } + + 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(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; + } + +} \ 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..b6ad15370c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceCounterConsumptionBuilder extends V1beta2DeviceCounterConsumptionFluent implements VisitableBuilder{ + + V1beta2DeviceCounterConsumptionFluent fluent; + + public V1beta2DeviceCounterConsumptionBuilder() { + this(new V1beta2DeviceCounterConsumption()); + } + + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFluent fluent) { + this(fluent, new V1beta2DeviceCounterConsumption()); + } + + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumption instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceCounterConsumptionBuilder(V1beta2DeviceCounterConsumptionFluent fluent,V1beta2DeviceCounterConsumption instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..1c00d849d3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java @@ -0,0 +1,150 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.LinkedHashMap; +import java.util.Map; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceCounterConsumptionFluent> extends BaseFluent{ + + private String counterSet; + private Map counters; + + public V1beta2DeviceCounterConsumptionFluent() { + } + + public V1beta2DeviceCounterConsumptionFluent(V1beta2DeviceCounterConsumption instance) { + this.copyInstance(instance); + } + + 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 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; + } + + protected void copyInstance(V1beta2DeviceCounterConsumption instance) { + instance = instance != null ? instance : new V1beta2DeviceCounterConsumption(); + if (instance != null) { + this.withCounterSet(instance.getCounterSet()); + this.withCounters(instance.getCounters()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceCounterConsumptionFluent that = (V1beta2DeviceCounterConsumptionFluent) o; + if (!(Objects.equals(counterSet, that.counterSet))) { + return false; + } + if (!(Objects.equals(counters, that.counters))) { + return false; + } + return true; + } + + public String getCounterSet() { + return this.counterSet; + } + + public Map getCounters() { + return this.counters; + } + + public boolean hasCounterSet() { + return this.counterSet != null; + } + + public boolean hasCounters() { + return this.counters != null; + } + + public int hashCode() { + return Objects.hash(counterSet, counters); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(counterSet == null)) { + sb.append("counterSet:"); + sb.append(counterSet); + sb.append(","); + } + if (!(counters == null) && !(counters.isEmpty())) { + sb.append("counters:"); + sb.append(counters); + } + sb.append("}"); + return sb.toString(); + } + + public A withCounterSet(String counterSet) { + this.counterSet = counterSet; + return (A) this; + } + + public A withCounters(Map counters) { + if (counters == null) { + this.counters = null; + } else { + this.counters = new LinkedHashMap(counters); + } + return (A) this; + } + +} \ 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..8515da9cd5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java @@ -0,0 +1,1132 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceFluent> extends BaseFluent{ + + private Boolean allNodes; + private Boolean allowMultipleAllocations; + private Map attributes; + private List bindingConditions; + private List bindingFailureConditions; + private Boolean bindsToNode; + private Map capacity; + private ArrayList consumesCounters; + private String name; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private ArrayList taints; + + public V1beta2DeviceFluent() { + } + + public V1beta2DeviceFluent(V1beta2Device instance) { + this.copyInstance(instance); + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + 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 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 ConsumesCountersNested addNewConsumesCounter() { + return new ConsumesCountersNested(-1, null); + } + + public ConsumesCountersNested addNewConsumesCounterLike(V1beta2DeviceCounterConsumption item) { + return new ConsumesCountersNested(-1, item); + } + + public TaintsNested addNewTaint() { + return new TaintsNested(-1, null); + } + + public TaintsNested addNewTaintLike(V1beta2DeviceTaint item) { + return new TaintsNested(-1, item); + } + + 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 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 addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + 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 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 addToConsumesCounters(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 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 addToTaints(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 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 V1beta2DeviceCounterConsumption buildConsumesCounter(int index) { + return this.consumesCounters.get(index).build(); + } + + public List buildConsumesCounters() { + return this.consumesCounters != null ? build(consumesCounters) : null; + } + + public V1beta2DeviceCounterConsumption buildFirstConsumesCounter() { + return this.consumesCounters.get(0).build(); + } + + public V1beta2DeviceTaint buildFirstTaint() { + return this.taints.get(0).build(); + } + + public V1beta2DeviceCounterConsumption buildLastConsumesCounter() { + return this.consumesCounters.get(consumesCounters.size() - 1).build(); + } + + public V1beta2DeviceTaint buildLastTaint() { + return this.taints.get(taints.size() - 1).build(); + } + + public V1beta2DeviceCounterConsumption buildMatchingConsumesCounter(Predicate predicate) { + for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceTaint buildMatchingTaint(Predicate predicate) { + for (V1beta2DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public V1beta2DeviceTaint buildTaint(int index) { + return this.taints.get(index).build(); + } + + public List buildTaints() { + return this.taints != null ? build(taints) : null; + } + + protected void copyInstance(V1beta2Device instance) { + instance = instance != null ? instance : new V1beta2Device(); + if (instance != null) { + this.withAllNodes(instance.getAllNodes()); + this.withAllowMultipleAllocations(instance.getAllowMultipleAllocations()); + this.withAttributes(instance.getAttributes()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withBindsToNode(instance.getBindsToNode()); + 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 ConsumesCountersNested editConsumesCounter(int index) { + if (consumesCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public ConsumesCountersNested editFirstConsumesCounter() { + if (consumesCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(0, this.buildConsumesCounter(0)); + } + + public TaintsNested editFirstTaint() { + if (taints.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(0, this.buildTaint(0)); + } + + public ConsumesCountersNested editLastConsumesCounter() { + int index = consumesCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public TaintsNested editLastTaint() { + int index = taints.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public ConsumesCountersNested editMatchingConsumesCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < consumesCounters.size();i++) { + if (predicate.test(consumesCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "consumesCounters")); + } + return this.setNewConsumesCounterLike(index, this.buildConsumesCounter(index)); + } + + public TaintsNested editMatchingTaint(Predicate predicate) { + int index = -1; + for (int i = 0;i < taints.size();i++) { + if (predicate.test(taints.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public TaintsNested editTaint(int index) { + if (taints.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "taints")); + } + return this.setNewTaintLike(index, this.buildTaint(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceFluent that = (V1beta2DeviceFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(allowMultipleAllocations, that.allowMultipleAllocations))) { + return false; + } + if (!(Objects.equals(attributes, that.attributes))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(bindsToNode, that.bindsToNode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(consumesCounters, that.consumesCounters))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(taints, that.taints))) { + return false; + } + return true; + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public Boolean getAllowMultipleAllocations() { + return this.allowMultipleAllocations; + } + + public Map getAttributes() { + return this.attributes; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public Boolean getBindsToNode() { + return this.bindsToNode; + } + + public Map getCapacity() { + return this.capacity; + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getName() { + return this.name; + } + + public String getNodeName() { + return this.nodeName; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public boolean hasAllowMultipleAllocations() { + return this.allowMultipleAllocations != null; + } + + public boolean hasAttributes() { + return this.attributes != null; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public boolean hasBindsToNode() { + return this.bindsToNode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasConsumesCounters() { + return this.consumesCounters != null && !(this.consumesCounters.isEmpty()); + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingConsumesCounter(Predicate predicate) { + for (V1beta2DeviceCounterConsumptionBuilder item : consumesCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingTaint(Predicate predicate) { + for (V1beta2DeviceTaintBuilder item : taints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public boolean hasTaints() { + return this.taints != null && !(this.taints.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + 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 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 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 A removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + 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 A removeFromConsumesCounters(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 removeFromTaints(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 removeMatchingFromConsumesCounters(Predicate predicate) { + if (consumesCounters == null) { + return (A) this; + } + Iterator each = consumesCounters.iterator(); + 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 A removeMatchingFromTaints(Predicate predicate) { + if (taints == null) { + return (A) this; + } + Iterator each = taints.iterator(); + 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 ConsumesCountersNested setNewConsumesCounterLike(int index,V1beta2DeviceCounterConsumption item) { + return new ConsumesCountersNested(index, item); + } + + public TaintsNested setNewTaintLike(int index,V1beta2DeviceTaint item) { + return new TaintsNested(index, item); + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allNodes == null)) { + sb.append("allNodes:"); + sb.append(allNodes); + sb.append(","); + } + if (!(allowMultipleAllocations == null)) { + sb.append("allowMultipleAllocations:"); + sb.append(allowMultipleAllocations); + sb.append(","); + } + if (!(attributes == null) && !(attributes.isEmpty())) { + sb.append("attributes:"); + sb.append(attributes); + sb.append(","); + } + if (!(bindingConditions == null) && !(bindingConditions.isEmpty())) { + sb.append("bindingConditions:"); + sb.append(bindingConditions); + sb.append(","); + } + if (!(bindingFailureConditions == null) && !(bindingFailureConditions.isEmpty())) { + sb.append("bindingFailureConditions:"); + sb.append(bindingFailureConditions); + sb.append(","); + } + if (!(bindsToNode == null)) { + sb.append("bindsToNode:"); + sb.append(bindsToNode); + sb.append(","); + } + if (!(capacity == null) && !(capacity.isEmpty())) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(consumesCounters == null) && !(consumesCounters.isEmpty())) { + sb.append("consumesCounters:"); + sb.append(consumesCounters); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(taints == null) && !(taints.isEmpty())) { + sb.append("taints:"); + sb.append(taints); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllNodes() { + return withAllNodes(true); + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + public A withAllowMultipleAllocations() { + return withAllowMultipleAllocations(true); + } + + public A withAllowMultipleAllocations(Boolean allowMultipleAllocations) { + this.allowMultipleAllocations = allowMultipleAllocations; + return (A) this; + } + + public A withAttributes(Map attributes) { + if (attributes == null) { + this.attributes = null; + } else { + this.attributes = new LinkedHashMap(attributes); + } + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public A withBindsToNode() { + return withBindsToNode(true); + } + + public A withBindsToNode(Boolean bindsToNode) { + this.bindsToNode = bindsToNode; + return (A) this; + } + + public A withCapacity(Map capacity) { + if (capacity == null) { + this.capacity = null; + } else { + this.capacity = new LinkedHashMap(capacity); + } + return (A) this; + } + + 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(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 A withName(String name) { + this.name = name; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + 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 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(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 class ConsumesCountersNested extends V1beta2DeviceCounterConsumptionFluent> implements Nested{ + + V1beta2DeviceCounterConsumptionBuilder builder; + int index; + + ConsumesCountersNested(int index,V1beta2DeviceCounterConsumption item) { + this.index = index; + this.builder = new V1beta2DeviceCounterConsumptionBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceFluent.this.setToConsumesCounters(index, builder.build()); + } + + public N endConsumesCounter() { + return and(); + } + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + } + public class TaintsNested extends V1beta2DeviceTaintFluent> implements Nested{ + + V1beta2DeviceTaintBuilder builder; + int index; + + TaintsNested(int index,V1beta2DeviceTaint item) { + this.index = index; + this.builder = new V1beta2DeviceTaintBuilder(this, item); + } + + 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..9270a90cb9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java @@ -0,0 +1,42 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceRequestAllocationResultBuilder extends V1beta2DeviceRequestAllocationResultFluent implements VisitableBuilder{ + + V1beta2DeviceRequestAllocationResultFluent fluent; + + public V1beta2DeviceRequestAllocationResultBuilder() { + this(new V1beta2DeviceRequestAllocationResult()); + } + + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResultFluent fluent) { + this(fluent, new V1beta2DeviceRequestAllocationResult()); + } + + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResult instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceRequestAllocationResultBuilder(V1beta2DeviceRequestAllocationResultFluent fluent,V1beta2DeviceRequestAllocationResult instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceRequestAllocationResult build() { + V1beta2DeviceRequestAllocationResult buildable = new V1beta2DeviceRequestAllocationResult(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setBindingConditions(fluent.getBindingConditions()); + buildable.setBindingFailureConditions(fluent.getBindingFailureConditions()); + buildable.setConsumedCapacity(fluent.getConsumedCapacity()); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + buildable.setRequest(fluent.getRequest()); + buildable.setShareID(fluent.getShareID()); + 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..74d8df1c76 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java @@ -0,0 +1,772 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceRequestAllocationResultFluent> extends BaseFluent{ + + private Boolean adminAccess; + private List bindingConditions; + private List bindingFailureConditions; + private Map consumedCapacity; + private String device; + private String driver; + private String pool; + private String request; + private String shareID; + private ArrayList tolerations; + + public V1beta2DeviceRequestAllocationResultFluent() { + } + + public V1beta2DeviceRequestAllocationResultFluent(V1beta2DeviceRequestAllocationResult instance) { + this.copyInstance(instance); + } + + public A addAllToBindingConditions(Collection items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addAllToBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + 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 TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public A addToBindingConditions(String... items) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + for (String item : items) { + this.bindingConditions.add(item); + } + return (A) this; + } + + public A addToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.add(index, item); + return (A) this; + } + + public A addToBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + for (String item : items) { + this.bindingFailureConditions.add(item); + } + return (A) this; + } + + public A addToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.add(index, item); + return (A) this; + } + + public A addToConsumedCapacity(Map map) { + if (this.consumedCapacity == null && map != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (map != null) { + this.consumedCapacity.putAll(map); + } + return (A) this; + } + + public A addToConsumedCapacity(String key,Quantity value) { + if (this.consumedCapacity == null && key != null && value != null) { + this.consumedCapacity = new LinkedHashMap(); + } + if (key != null && value != null) { + this.consumedCapacity.put(key, value); + } + return (A) this; + } + + public A addToTolerations(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 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 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 V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + protected void copyInstance(V1beta2DeviceRequestAllocationResult instance) { + instance = instance != null ? instance : new V1beta2DeviceRequestAllocationResult(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withBindingConditions(instance.getBindingConditions()); + this.withBindingFailureConditions(instance.getBindingFailureConditions()); + this.withConsumedCapacity(instance.getConsumedCapacity()); + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + this.withRequest(instance.getRequest()); + this.withShareID(instance.getShareID()); + this.withTolerations(instance.getTolerations()); + } + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceRequestAllocationResultFluent that = (V1beta2DeviceRequestAllocationResultFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(bindingConditions, that.bindingConditions))) { + return false; + } + if (!(Objects.equals(bindingFailureConditions, that.bindingFailureConditions))) { + return false; + } + if (!(Objects.equals(consumedCapacity, that.consumedCapacity))) { + return false; + } + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(request, that.request))) { + return false; + } + if (!(Objects.equals(shareID, that.shareID))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public String getBindingCondition(int index) { + return this.bindingConditions.get(index); + } + + public List getBindingConditions() { + return this.bindingConditions; + } + + public String getBindingFailureCondition(int index) { + return this.bindingFailureConditions.get(index); + } + + public List getBindingFailureConditions() { + return this.bindingFailureConditions; + } + + public Map getConsumedCapacity() { + return this.consumedCapacity; + } + + public String getDevice() { + return this.device; + } + + public String getDriver() { + return this.driver; + } + + public String getFirstBindingCondition() { + return this.bindingConditions.get(0); + } + + public String getFirstBindingFailureCondition() { + return this.bindingFailureConditions.get(0); + } + + public String getLastBindingCondition() { + return this.bindingConditions.get(bindingConditions.size() - 1); + } + + public String getLastBindingFailureCondition() { + return this.bindingFailureConditions.get(bindingFailureConditions.size() - 1); + } + + public String getMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getPool() { + return this.pool; + } + + public String getRequest() { + return this.request; + } + + public String getShareID() { + return this.shareID; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasBindingConditions() { + return this.bindingConditions != null && !(this.bindingConditions.isEmpty()); + } + + public boolean hasBindingFailureConditions() { + return this.bindingFailureConditions != null && !(this.bindingFailureConditions.isEmpty()); + } + + public boolean hasConsumedCapacity() { + return this.consumedCapacity != null; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingBindingCondition(Predicate predicate) { + for (String item : bindingConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingBindingFailureCondition(Predicate predicate) { + for (String item : bindingFailureConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasRequest() { + return this.request != null; + } + + public boolean hasShareID() { + return this.shareID != null; + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(adminAccess, bindingConditions, bindingFailureConditions, consumedCapacity, device, driver, pool, request, shareID, tolerations); + } + + public A removeAllFromBindingConditions(Collection items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeAllFromBindingFailureConditions(Collection items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + 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 removeFromBindingConditions(String... items) { + if (this.bindingConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingConditions.remove(item); + } + return (A) this; + } + + public A removeFromBindingFailureConditions(String... items) { + if (this.bindingFailureConditions == null) { + return (A) this; + } + for (String item : items) { + this.bindingFailureConditions.remove(item); + } + return (A) this; + } + + public A removeFromConsumedCapacity(String key) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (key != null && this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + return (A) this; + } + + public A removeFromConsumedCapacity(Map map) { + if (this.consumedCapacity == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.consumedCapacity != null) { + this.consumedCapacity.remove(key); + } + } + } + return (A) this; + } + + public A removeFromTolerations(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 removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + 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 TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { + return new TolerationsNested(index, item); + } + + public A setToBindingConditions(int index,String item) { + if (this.bindingConditions == null) { + this.bindingConditions = new ArrayList(); + } + this.bindingConditions.set(index, item); + return (A) this; + } + + public A setToBindingFailureConditions(int index,String item) { + if (this.bindingFailureConditions == null) { + this.bindingFailureConditions = new ArrayList(); + } + this.bindingFailureConditions.set(index, item); + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(adminAccess == null)) { + sb.append("adminAccess:"); + sb.append(adminAccess); + sb.append(","); + } + if (!(bindingConditions == null) && !(bindingConditions.isEmpty())) { + sb.append("bindingConditions:"); + sb.append(bindingConditions); + sb.append(","); + } + if (!(bindingFailureConditions == null) && !(bindingFailureConditions.isEmpty())) { + sb.append("bindingFailureConditions:"); + sb.append(bindingFailureConditions); + sb.append(","); + } + if (!(consumedCapacity == null) && !(consumedCapacity.isEmpty())) { + sb.append("consumedCapacity:"); + sb.append(consumedCapacity); + sb.append(","); + } + if (!(device == null)) { + sb.append("device:"); + sb.append(device); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(request == null)) { + sb.append("request:"); + sb.append(request); + sb.append(","); + } + if (!(shareID == null)) { + sb.append("shareID:"); + sb.append(shareID); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdminAccess() { + return withAdminAccess(true); + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withBindingConditions(List bindingConditions) { + if (bindingConditions != null) { + this.bindingConditions = new ArrayList(); + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } else { + this.bindingConditions = null; + } + return (A) this; + } + + public A withBindingConditions(String... bindingConditions) { + if (this.bindingConditions != null) { + this.bindingConditions.clear(); + _visitables.remove("bindingConditions"); + } + if (bindingConditions != null) { + for (String item : bindingConditions) { + this.addToBindingConditions(item); + } + } + return (A) this; + } + + public A withBindingFailureConditions(List bindingFailureConditions) { + if (bindingFailureConditions != null) { + this.bindingFailureConditions = new ArrayList(); + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } else { + this.bindingFailureConditions = null; + } + return (A) this; + } + + public A withBindingFailureConditions(String... bindingFailureConditions) { + if (this.bindingFailureConditions != null) { + this.bindingFailureConditions.clear(); + _visitables.remove("bindingFailureConditions"); + } + if (bindingFailureConditions != null) { + for (String item : bindingFailureConditions) { + this.addToBindingFailureConditions(item); + } + } + return (A) this; + } + + public A withConsumedCapacity(Map consumedCapacity) { + if (consumedCapacity == null) { + this.consumedCapacity = null; + } else { + this.consumedCapacity = new LinkedHashMap(consumedCapacity); + } + return (A) this; + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + + public A withRequest(String request) { + this.request = request; + return (A) this; + } + + public A withShareID(String shareID) { + this.shareID = shareID; + return (A) this; + } + + 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(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 class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + + V1beta2DeviceTolerationBuilder builder; + int index; + + TolerationsNested(int index,V1beta2DeviceToleration item) { + this.index = index; + this.builder = new V1beta2DeviceTolerationBuilder(this, item); + } + + 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..cc462e783c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceRequestBuilder extends V1beta2DeviceRequestFluent implements VisitableBuilder{ + + V1beta2DeviceRequestFluent fluent; + + public V1beta2DeviceRequestBuilder() { + this(new V1beta2DeviceRequest()); + } + + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequestFluent fluent) { + this(fluent, new V1beta2DeviceRequest()); + } + + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceRequestBuilder(V1beta2DeviceRequestFluent fluent,V1beta2DeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..29962ec0b7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java @@ -0,0 +1,388 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceRequestFluent> extends BaseFluent{ + + private V1beta2ExactDeviceRequestBuilder exactly; + private ArrayList firstAvailable; + private String name; + + public V1beta2DeviceRequestFluent() { + } + + public V1beta2DeviceRequestFluent(V1beta2DeviceRequest instance) { + this.copyInstance(instance); + } + + 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 FirstAvailableNested addNewFirstAvailable() { + return new FirstAvailableNested(-1, null); + } + + public FirstAvailableNested addNewFirstAvailableLike(V1beta2DeviceSubRequest item) { + return new FirstAvailableNested(-1, item); + } + + public A addToFirstAvailable(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 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 V1beta2ExactDeviceRequest buildExactly() { + return this.exactly != null ? this.exactly.build() : null; + } + + 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; + } + + 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 ExactlyNested editExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(null)); + } + + public FirstAvailableNested editFirstAvailable(int index) { + if (firstAvailable.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public FirstAvailableNested editFirstFirstAvailable() { + if (firstAvailable.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(0, this.buildFirstAvailable(0)); + } + + public FirstAvailableNested editLastFirstAvailable() { + int index = firstAvailable.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public FirstAvailableNested editMatchingFirstAvailable(Predicate predicate) { + int index = -1; + for (int i = 0;i < firstAvailable.size();i++) { + if (predicate.test(firstAvailable.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "firstAvailable")); + } + return this.setNewFirstAvailableLike(index, this.buildFirstAvailable(index)); + } + + public ExactlyNested editOrNewExactly() { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(new V1beta2ExactDeviceRequestBuilder().build())); + } + + public ExactlyNested editOrNewExactlyLike(V1beta2ExactDeviceRequest item) { + return this.withNewExactlyLike(Optional.ofNullable(this.buildExactly()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceRequestFluent that = (V1beta2DeviceRequestFluent) o; + if (!(Objects.equals(exactly, that.exactly))) { + return false; + } + if (!(Objects.equals(firstAvailable, that.firstAvailable))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public boolean hasExactly() { + return this.exactly != null; + } + + public boolean hasFirstAvailable() { + return this.firstAvailable != null && !(this.firstAvailable.isEmpty()); + } + + public boolean hasMatchingFirstAvailable(Predicate predicate) { + for (V1beta2DeviceSubRequestBuilder item : firstAvailable) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(exactly, firstAvailable, name); + } + + 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 removeFromFirstAvailable(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 removeMatchingFromFirstAvailable(Predicate predicate) { + if (firstAvailable == null) { + return (A) this; + } + Iterator each = firstAvailable.iterator(); + 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 FirstAvailableNested setNewFirstAvailableLike(int index,V1beta2DeviceSubRequest item) { + return new FirstAvailableNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(exactly == null)) { + sb.append("exactly:"); + sb.append(exactly); + sb.append(","); + } + if (!(firstAvailable == null) && !(firstAvailable.isEmpty())) { + sb.append("firstAvailable:"); + sb.append(firstAvailable); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + 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 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(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 A withName(String name) { + this.name = name; + return (A) this; + } + + public ExactlyNested withNewExactly() { + return new ExactlyNested(null); + } + + public ExactlyNested withNewExactlyLike(V1beta2ExactDeviceRequest item) { + return new ExactlyNested(item); + } + public class ExactlyNested extends V1beta2ExactDeviceRequestFluent> implements Nested{ + + V1beta2ExactDeviceRequestBuilder builder; + + ExactlyNested(V1beta2ExactDeviceRequest item) { + this.builder = new V1beta2ExactDeviceRequestBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceRequestFluent.this.withExactly(builder.build()); + } + + public N endExactly() { + return and(); + } + + } + public class FirstAvailableNested extends V1beta2DeviceSubRequestFluent> implements Nested{ + + V1beta2DeviceSubRequestBuilder builder; + int index; + + FirstAvailableNested(int index,V1beta2DeviceSubRequest item) { + this.index = index; + this.builder = new V1beta2DeviceSubRequestBuilder(this, item); + } + + 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..8ac1837540 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceSelectorBuilder extends V1beta2DeviceSelectorFluent implements VisitableBuilder{ + + V1beta2DeviceSelectorFluent fluent; + + public V1beta2DeviceSelectorBuilder() { + this(new V1beta2DeviceSelector()); + } + + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelectorFluent fluent) { + this(fluent, new V1beta2DeviceSelector()); + } + + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceSelectorBuilder(V1beta2DeviceSelectorFluent fluent,V1beta2DeviceSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b7b58d59a5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceSelectorFluent> extends BaseFluent{ + + private V1beta2CELDeviceSelectorBuilder cel; + + public V1beta2DeviceSelectorFluent() { + } + + public V1beta2DeviceSelectorFluent(V1beta2DeviceSelector instance) { + this.copyInstance(instance); + } + + public V1beta2CELDeviceSelector buildCel() { + return this.cel != null ? this.cel.build() : null; + } + + protected void copyInstance(V1beta2DeviceSelector instance) { + instance = instance != null ? instance : new V1beta2DeviceSelector(); + if (instance != null) { + this.withCel(instance.getCel()); + } + } + + public CelNested editCel() { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(null)); + } + + public CelNested editOrNewCel() { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(new V1beta2CELDeviceSelectorBuilder().build())); + } + + public CelNested editOrNewCelLike(V1beta2CELDeviceSelector item) { + return this.withNewCelLike(Optional.ofNullable(this.buildCel()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceSelectorFluent that = (V1beta2DeviceSelectorFluent) o; + if (!(Objects.equals(cel, that.cel))) { + return false; + } + return true; + } + + public boolean hasCel() { + return this.cel != null; + } + + public int hashCode() { + return Objects.hash(cel); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(cel == null)) { + sb.append("cel:"); + sb.append(cel); + } + sb.append("}"); + return sb.toString(); + } + + 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 CelNested withNewCel() { + return new CelNested(null); + } + + public CelNested withNewCelLike(V1beta2CELDeviceSelector item) { + return new CelNested(item); + } + public class CelNested extends V1beta2CELDeviceSelectorFluent> implements Nested{ + + V1beta2CELDeviceSelectorBuilder builder; + + CelNested(V1beta2CELDeviceSelector item) { + this.builder = new V1beta2CELDeviceSelectorBuilder(this, item); + } + + 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..9e41e8a7af --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceSubRequestBuilder extends V1beta2DeviceSubRequestFluent implements VisitableBuilder{ + + V1beta2DeviceSubRequestFluent fluent; + + public V1beta2DeviceSubRequestBuilder() { + this(new V1beta2DeviceSubRequest()); + } + + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequestFluent fluent) { + this(fluent, new V1beta2DeviceSubRequest()); + } + + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceSubRequestBuilder(V1beta2DeviceSubRequestFluent fluent,V1beta2DeviceSubRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceSubRequest build() { + V1beta2DeviceSubRequest buildable = new V1beta2DeviceSubRequest(); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); + 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..8132d030b3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java @@ -0,0 +1,695 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceSubRequestFluent> extends BaseFluent{ + + private String allocationMode; + private V1beta2CapacityRequirementsBuilder capacity; + private Long count; + private String deviceClassName; + private String name; + private ArrayList selectors; + private ArrayList tolerations; + + public V1beta2DeviceSubRequestFluent() { + } + + public V1beta2DeviceSubRequestFluent(V1beta2DeviceSubRequest instance) { + this.copyInstance(instance); + } + + 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 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 SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public A addToSelectors(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 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 addToTolerations(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 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 V1beta2CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + protected void copyInstance(V1beta2DeviceSubRequest instance) { + instance = instance != null ? instance : new V1beta2DeviceSubRequest(); + if (instance != null) { + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withName(instance.getName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta2CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1beta2CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceSubRequestFluent that = (V1beta2DeviceSubRequestFluent) o; + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public Long getCount() { + return this.count; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public String getName() { + return this.name; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocationMode, capacity, count, deviceClassName, name, selectors, tolerations); + } + + 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 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 removeFromSelectors(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 removeFromTolerations(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 removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + 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 A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + 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 SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { + return new TolerationsNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationMode == null)) { + sb.append("allocationMode:"); + sb.append(allocationMode); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(deviceClassName == null)) { + sb.append("deviceClassName:"); + sb.append(deviceClassName); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1beta2CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { + return new CapacityNested(item); + } + + 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(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 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(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 class CapacityNested extends V1beta2CapacityRequirementsFluent> implements Nested{ + + V1beta2CapacityRequirementsBuilder builder; + + CapacityNested(V1beta2CapacityRequirements item) { + this.builder = new V1beta2CapacityRequirementsBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceSubRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } + public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ + + V1beta2DeviceSelectorBuilder builder; + int index; + + SelectorsNested(int index,V1beta2DeviceSelector item) { + this.index = index; + this.builder = new V1beta2DeviceSelectorBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceSubRequestFluent.this.setToSelectors(index, builder.build()); + } + + public N endSelector() { + return and(); + } + + } + public class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + + V1beta2DeviceTolerationBuilder builder; + int index; + + TolerationsNested(int index,V1beta2DeviceToleration item) { + this.index = index; + this.builder = new V1beta2DeviceTolerationBuilder(this, item); + } + + 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..42cb090136 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceTaintBuilder extends V1beta2DeviceTaintFluent implements VisitableBuilder{ + + V1beta2DeviceTaintFluent fluent; + + public V1beta2DeviceTaintBuilder() { + this(new V1beta2DeviceTaint()); + } + + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaintFluent fluent) { + this(fluent, new V1beta2DeviceTaint()); + } + + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaint instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceTaintBuilder(V1beta2DeviceTaintFluent fluent,V1beta2DeviceTaint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..a04bd6157f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java @@ -0,0 +1,147 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTaintFluent> extends BaseFluent{ + + private String effect; + private String key; + private OffsetDateTime timeAdded; + private String value; + + public V1beta2DeviceTaintFluent() { + } + + public V1beta2DeviceTaintFluent(V1beta2DeviceTaint instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceTaintFluent that = (V1beta2DeviceTaintFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(timeAdded, that.timeAdded))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public OffsetDateTime getTimeAdded() { + return this.timeAdded; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasTimeAdded() { + return this.timeAdded != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(effect, key, timeAdded, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(timeAdded == null)) { + sb.append("timeAdded:"); + sb.append(timeAdded); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withTimeAdded(OffsetDateTime timeAdded) { + this.timeAdded = timeAdded; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + +} \ 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..b92611e109 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceTolerationBuilder extends V1beta2DeviceTolerationFluent implements VisitableBuilder{ + + V1beta2DeviceTolerationFluent fluent; + + public V1beta2DeviceTolerationBuilder() { + this(new V1beta2DeviceToleration()); + } + + public V1beta2DeviceTolerationBuilder(V1beta2DeviceTolerationFluent fluent) { + this(fluent, new V1beta2DeviceToleration()); + } + + public V1beta2DeviceTolerationBuilder(V1beta2DeviceToleration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceTolerationBuilder(V1beta2DeviceTolerationFluent fluent,V1beta2DeviceToleration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..1a3bb66cce --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java @@ -0,0 +1,170 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTolerationFluent> extends BaseFluent{ + + private String effect; + private String key; + private String operator; + private Long tolerationSeconds; + private String value; + + public V1beta2DeviceTolerationFluent() { + } + + public V1beta2DeviceTolerationFluent(V1beta2DeviceToleration instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceTolerationFluent that = (V1beta2DeviceTolerationFluent) o; + if (!(Objects.equals(effect, that.effect))) { + return false; + } + if (!(Objects.equals(key, that.key))) { + return false; + } + if (!(Objects.equals(operator, that.operator))) { + return false; + } + if (!(Objects.equals(tolerationSeconds, that.tolerationSeconds))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; + } + + public String getEffect() { + return this.effect; + } + + public String getKey() { + return this.key; + } + + public String getOperator() { + return this.operator; + } + + public Long getTolerationSeconds() { + return this.tolerationSeconds; + } + + public String getValue() { + return this.value; + } + + public boolean hasEffect() { + return this.effect != null; + } + + public boolean hasKey() { + return this.key != null; + } + + public boolean hasOperator() { + return this.operator != null; + } + + public boolean hasTolerationSeconds() { + return this.tolerationSeconds != null; + } + + public boolean hasValue() { + return this.value != null; + } + + public int hashCode() { + return Objects.hash(effect, key, operator, tolerationSeconds, value); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(effect == null)) { + sb.append("effect:"); + sb.append(effect); + sb.append(","); + } + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + sb.append(","); + } + if (!(operator == null)) { + sb.append("operator:"); + sb.append(operator); + sb.append(","); + } + if (!(tolerationSeconds == null)) { + sb.append("tolerationSeconds:"); + sb.append(tolerationSeconds); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); + } + + public A withEffect(String effect) { + this.effect = effect; + return (A) this; + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + + public A withOperator(String operator) { + this.operator = operator; + return (A) this; + } + + public A withTolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; + return (A) this; + } + + public A withValue(String value) { + this.value = value; + return (A) this; + } + +} \ 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..112ad1db21 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java @@ -0,0 +1,39 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ExactDeviceRequestBuilder extends V1beta2ExactDeviceRequestFluent implements VisitableBuilder{ + + V1beta2ExactDeviceRequestFluent fluent; + + public V1beta2ExactDeviceRequestBuilder() { + this(new V1beta2ExactDeviceRequest()); + } + + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequestFluent fluent) { + this(fluent, new V1beta2ExactDeviceRequest()); + } + + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ExactDeviceRequestBuilder(V1beta2ExactDeviceRequestFluent fluent,V1beta2ExactDeviceRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2ExactDeviceRequest build() { + V1beta2ExactDeviceRequest buildable = new V1beta2ExactDeviceRequest(); + buildable.setAdminAccess(fluent.getAdminAccess()); + buildable.setAllocationMode(fluent.getAllocationMode()); + buildable.setCapacity(fluent.buildCapacity()); + 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..7d1a8d3aca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java @@ -0,0 +1,700 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ExactDeviceRequestFluent> extends BaseFluent{ + + private Boolean adminAccess; + private String allocationMode; + private V1beta2CapacityRequirementsBuilder capacity; + private Long count; + private String deviceClassName; + private ArrayList selectors; + private ArrayList tolerations; + + public V1beta2ExactDeviceRequestFluent() { + } + + public V1beta2ExactDeviceRequestFluent(V1beta2ExactDeviceRequest instance) { + this.copyInstance(instance); + } + + 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 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 SelectorsNested addNewSelector() { + return new SelectorsNested(-1, null); + } + + public SelectorsNested addNewSelectorLike(V1beta2DeviceSelector item) { + return new SelectorsNested(-1, item); + } + + public TolerationsNested addNewToleration() { + return new TolerationsNested(-1, null); + } + + public TolerationsNested addNewTolerationLike(V1beta2DeviceToleration item) { + return new TolerationsNested(-1, item); + } + + public A addToSelectors(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 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 addToTolerations(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 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 V1beta2CapacityRequirements buildCapacity() { + return this.capacity != null ? this.capacity.build() : null; + } + + public V1beta2DeviceSelector buildFirstSelector() { + return this.selectors.get(0).build(); + } + + public V1beta2DeviceToleration buildFirstToleration() { + return this.tolerations.get(0).build(); + } + + public V1beta2DeviceSelector buildLastSelector() { + return this.selectors.get(selectors.size() - 1).build(); + } + + public V1beta2DeviceToleration buildLastToleration() { + return this.tolerations.get(tolerations.size() - 1).build(); + } + + public V1beta2DeviceSelector buildMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceToleration buildMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2DeviceSelector buildSelector(int index) { + return this.selectors.get(index).build(); + } + + public List buildSelectors() { + return this.selectors != null ? build(selectors) : null; + } + + public V1beta2DeviceToleration buildToleration(int index) { + return this.tolerations.get(index).build(); + } + + public List buildTolerations() { + return this.tolerations != null ? build(tolerations) : null; + } + + protected void copyInstance(V1beta2ExactDeviceRequest instance) { + instance = instance != null ? instance : new V1beta2ExactDeviceRequest(); + if (instance != null) { + this.withAdminAccess(instance.getAdminAccess()); + this.withAllocationMode(instance.getAllocationMode()); + this.withCapacity(instance.getCapacity()); + this.withCount(instance.getCount()); + this.withDeviceClassName(instance.getDeviceClassName()); + this.withSelectors(instance.getSelectors()); + this.withTolerations(instance.getTolerations()); + } + } + + public CapacityNested editCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(null)); + } + + public SelectorsNested editFirstSelector() { + if (selectors.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(0, this.buildSelector(0)); + } + + public TolerationsNested editFirstToleration() { + if (tolerations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(0, this.buildToleration(0)); + } + + public SelectorsNested editLastSelector() { + int index = selectors.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editLastToleration() { + int index = tolerations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public SelectorsNested editMatchingSelector(Predicate predicate) { + int index = -1; + for (int i = 0;i < selectors.size();i++) { + if (predicate.test(selectors.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editMatchingToleration(Predicate predicate) { + int index = -1; + for (int i = 0;i < tolerations.size();i++) { + if (predicate.test(tolerations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public CapacityNested editOrNewCapacity() { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(new V1beta2CapacityRequirementsBuilder().build())); + } + + public CapacityNested editOrNewCapacityLike(V1beta2CapacityRequirements item) { + return this.withNewCapacityLike(Optional.ofNullable(this.buildCapacity()).orElse(item)); + } + + public SelectorsNested editSelector(int index) { + if (selectors.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "selectors")); + } + return this.setNewSelectorLike(index, this.buildSelector(index)); + } + + public TolerationsNested editToleration(int index) { + if (tolerations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "tolerations")); + } + return this.setNewTolerationLike(index, this.buildToleration(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ExactDeviceRequestFluent that = (V1beta2ExactDeviceRequestFluent) o; + if (!(Objects.equals(adminAccess, that.adminAccess))) { + return false; + } + if (!(Objects.equals(allocationMode, that.allocationMode))) { + return false; + } + if (!(Objects.equals(capacity, that.capacity))) { + return false; + } + if (!(Objects.equals(count, that.count))) { + return false; + } + if (!(Objects.equals(deviceClassName, that.deviceClassName))) { + return false; + } + if (!(Objects.equals(selectors, that.selectors))) { + return false; + } + if (!(Objects.equals(tolerations, that.tolerations))) { + return false; + } + return true; + } + + public Boolean getAdminAccess() { + return this.adminAccess; + } + + public String getAllocationMode() { + return this.allocationMode; + } + + public Long getCount() { + return this.count; + } + + public String getDeviceClassName() { + return this.deviceClassName; + } + + public boolean hasAdminAccess() { + return this.adminAccess != null; + } + + public boolean hasAllocationMode() { + return this.allocationMode != null; + } + + public boolean hasCapacity() { + return this.capacity != null; + } + + public boolean hasCount() { + return this.count != null; + } + + public boolean hasDeviceClassName() { + return this.deviceClassName != null; + } + + public boolean hasMatchingSelector(Predicate predicate) { + for (V1beta2DeviceSelectorBuilder item : selectors) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingToleration(Predicate predicate) { + for (V1beta2DeviceTolerationBuilder item : tolerations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasSelectors() { + return this.selectors != null && !(this.selectors.isEmpty()); + } + + public boolean hasTolerations() { + return this.tolerations != null && !(this.tolerations.isEmpty()); + } + + public int hashCode() { + return Objects.hash(adminAccess, allocationMode, capacity, count, deviceClassName, selectors, tolerations); + } + + 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 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 removeFromSelectors(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 removeFromTolerations(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 removeMatchingFromSelectors(Predicate predicate) { + if (selectors == null) { + return (A) this; + } + Iterator each = selectors.iterator(); + 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 A removeMatchingFromTolerations(Predicate predicate) { + if (tolerations == null) { + return (A) this; + } + Iterator each = tolerations.iterator(); + 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 SelectorsNested setNewSelectorLike(int index,V1beta2DeviceSelector item) { + return new SelectorsNested(index, item); + } + + public TolerationsNested setNewTolerationLike(int index,V1beta2DeviceToleration item) { + return new TolerationsNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(adminAccess == null)) { + sb.append("adminAccess:"); + sb.append(adminAccess); + sb.append(","); + } + if (!(allocationMode == null)) { + sb.append("allocationMode:"); + sb.append(allocationMode); + sb.append(","); + } + if (!(capacity == null)) { + sb.append("capacity:"); + sb.append(capacity); + sb.append(","); + } + if (!(count == null)) { + sb.append("count:"); + sb.append(count); + sb.append(","); + } + if (!(deviceClassName == null)) { + sb.append("deviceClassName:"); + sb.append(deviceClassName); + sb.append(","); + } + if (!(selectors == null) && !(selectors.isEmpty())) { + sb.append("selectors:"); + sb.append(selectors); + sb.append(","); + } + if (!(tolerations == null) && !(tolerations.isEmpty())) { + sb.append("tolerations:"); + sb.append(tolerations); + } + sb.append("}"); + return sb.toString(); + } + + public A withAdminAccess() { + return withAdminAccess(true); + } + + public A withAdminAccess(Boolean adminAccess) { + this.adminAccess = adminAccess; + return (A) this; + } + + public A withAllocationMode(String allocationMode) { + this.allocationMode = allocationMode; + return (A) this; + } + + public A withCapacity(V1beta2CapacityRequirements capacity) { + this._visitables.remove("capacity"); + if (capacity != null) { + this.capacity = new V1beta2CapacityRequirementsBuilder(capacity); + this._visitables.get("capacity").add(this.capacity); + } else { + this.capacity = null; + this._visitables.get("capacity").remove(this.capacity); + } + return (A) this; + } + + public A withCount(Long count) { + this.count = count; + return (A) this; + } + + public A withDeviceClassName(String deviceClassName) { + this.deviceClassName = deviceClassName; + return (A) this; + } + + public CapacityNested withNewCapacity() { + return new CapacityNested(null); + } + + public CapacityNested withNewCapacityLike(V1beta2CapacityRequirements item) { + return new CapacityNested(item); + } + + 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(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 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(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 class CapacityNested extends V1beta2CapacityRequirementsFluent> implements Nested{ + + V1beta2CapacityRequirementsBuilder builder; + + CapacityNested(V1beta2CapacityRequirements item) { + this.builder = new V1beta2CapacityRequirementsBuilder(this, item); + } + + public N and() { + return (N) V1beta2ExactDeviceRequestFluent.this.withCapacity(builder.build()); + } + + public N endCapacity() { + return and(); + } + + } + public class SelectorsNested extends V1beta2DeviceSelectorFluent> implements Nested{ + + V1beta2DeviceSelectorBuilder builder; + int index; + + SelectorsNested(int index,V1beta2DeviceSelector item) { + this.index = index; + this.builder = new V1beta2DeviceSelectorBuilder(this, item); + } + + public N and() { + return (N) V1beta2ExactDeviceRequestFluent.this.setToSelectors(index, builder.build()); + } + + public N endSelector() { + return and(); + } + + } + public class TolerationsNested extends V1beta2DeviceTolerationFluent> implements Nested{ + + V1beta2DeviceTolerationBuilder builder; + int index; + + TolerationsNested(int index,V1beta2DeviceToleration item) { + this.index = index; + this.builder = new V1beta2DeviceTolerationBuilder(this, item); + } + + 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/V1beta2NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java new file mode 100644 index 0000000000..91a425dec6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2NetworkDeviceDataBuilder extends V1beta2NetworkDeviceDataFluent implements VisitableBuilder{ + + V1beta2NetworkDeviceDataFluent fluent; + + public V1beta2NetworkDeviceDataBuilder() { + this(new V1beta2NetworkDeviceData()); + } + + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceDataFluent fluent) { + this(fluent, new V1beta2NetworkDeviceData()); + } + + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceData instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2NetworkDeviceDataBuilder(V1beta2NetworkDeviceDataFluent fluent,V1beta2NetworkDeviceData instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..be7cef40f2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java @@ -0,0 +1,233 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2NetworkDeviceDataFluent> extends BaseFluent{ + + private String hardwareAddress; + private String interfaceName; + private List ips; + + public V1beta2NetworkDeviceDataFluent() { + } + + public V1beta2NetworkDeviceDataFluent(V1beta2NetworkDeviceData instance) { + this.copyInstance(instance); + } + + 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 addToIps(String... items) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + for (String item : items) { + this.ips.add(item); + } + return (A) this; + } + + public A addToIps(int index,String item) { + if (this.ips == null) { + this.ips = new ArrayList(); + } + this.ips.add(index, item); + return (A) this; + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2NetworkDeviceDataFluent that = (V1beta2NetworkDeviceDataFluent) o; + if (!(Objects.equals(hardwareAddress, that.hardwareAddress))) { + return false; + } + if (!(Objects.equals(interfaceName, that.interfaceName))) { + return false; + } + if (!(Objects.equals(ips, that.ips))) { + return false; + } + return true; + } + + public String getFirstIp() { + return this.ips.get(0); + } + + public String getHardwareAddress() { + return this.hardwareAddress; + } + + public String getInterfaceName() { + return this.interfaceName; + } + + public String getIp(int index) { + return this.ips.get(index); + } + + public List getIps() { + return this.ips; + } + + 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 hasHardwareAddress() { + return this.hardwareAddress != null; + } + + public boolean hasInterfaceName() { + return this.interfaceName != null; + } + + public boolean hasIps() { + return this.ips != null && !(this.ips.isEmpty()); + } + + public boolean hasMatchingIp(Predicate predicate) { + for (String item : ips) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(hardwareAddress, interfaceName, ips); + } + + public A removeAllFromIps(Collection items) { + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(item); + } + return (A) this; + } + + public A removeFromIps(String... items) { + if (this.ips == null) { + return (A) this; + } + for (String item : items) { + this.ips.remove(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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(hardwareAddress == null)) { + sb.append("hardwareAddress:"); + sb.append(hardwareAddress); + sb.append(","); + } + if (!(interfaceName == null)) { + sb.append("interfaceName:"); + sb.append(interfaceName); + sb.append(","); + } + if (!(ips == null) && !(ips.isEmpty())) { + sb.append("ips:"); + sb.append(ips); + } + sb.append("}"); + return sb.toString(); + } + + public A withHardwareAddress(String hardwareAddress) { + this.hardwareAddress = hardwareAddress; + return (A) this; + } + + public A withInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return (A) this; + } + + 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(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; + } + +} \ 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..aa5177b30d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2OpaqueDeviceConfigurationBuilder extends V1beta2OpaqueDeviceConfigurationFluent implements VisitableBuilder{ + + V1beta2OpaqueDeviceConfigurationFluent fluent; + + public V1beta2OpaqueDeviceConfigurationBuilder() { + this(new V1beta2OpaqueDeviceConfiguration()); + } + + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfigurationFluent fluent) { + this(fluent, new V1beta2OpaqueDeviceConfiguration()); + } + + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2OpaqueDeviceConfigurationBuilder(V1beta2OpaqueDeviceConfigurationFluent fluent,V1beta2OpaqueDeviceConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..688de917b4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java @@ -0,0 +1,100 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2OpaqueDeviceConfigurationFluent> extends BaseFluent{ + + private String driver; + private Object parameters; + + public V1beta2OpaqueDeviceConfigurationFluent() { + } + + public V1beta2OpaqueDeviceConfigurationFluent(V1beta2OpaqueDeviceConfiguration instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta2OpaqueDeviceConfiguration instance) { + instance = instance != null ? instance : new V1beta2OpaqueDeviceConfiguration(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withParameters(instance.getParameters()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2OpaqueDeviceConfigurationFluent that = (V1beta2OpaqueDeviceConfigurationFluent) o; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(parameters, that.parameters))) { + return false; + } + return true; + } + + public String getDriver() { + return this.driver; + } + + public Object getParameters() { + return this.parameters; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasParameters() { + return this.parameters != null; + } + + public int hashCode() { + return Objects.hash(driver, parameters); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(parameters == null)) { + sb.append("parameters:"); + sb.append(parameters); + } + sb.append("}"); + return sb.toString(); + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withParameters(Object parameters) { + this.parameters = parameters; + return (A) this; + } + +} \ 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..daa0d00c85 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java @@ -0,0 +1,37 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceClaimBuilder extends V1beta2ResourceClaimFluent implements VisitableBuilder{ + + V1beta2ResourceClaimFluent fluent; + + public V1beta2ResourceClaimBuilder() { + this(new V1beta2ResourceClaim()); + } + + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaimFluent fluent) { + this(fluent, new V1beta2ResourceClaim()); + } + + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceClaimBuilder(V1beta2ResourceClaimFluent fluent,V1beta2ResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b5858bb771 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceClaimConsumerReferenceBuilder extends V1beta2ResourceClaimConsumerReferenceFluent implements VisitableBuilder{ + + V1beta2ResourceClaimConsumerReferenceFluent fluent; + + public V1beta2ResourceClaimConsumerReferenceBuilder() { + this(new V1beta2ResourceClaimConsumerReference()); + } + + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReferenceFluent fluent) { + this(fluent, new V1beta2ResourceClaimConsumerReference()); + } + + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceClaimConsumerReferenceBuilder(V1beta2ResourceClaimConsumerReferenceFluent fluent,V1beta2ResourceClaimConsumerReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..b9f896bf11 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java @@ -0,0 +1,146 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimConsumerReferenceFluent> extends BaseFluent{ + + private String apiGroup; + private String name; + private String resource; + private String uid; + + public V1beta2ResourceClaimConsumerReferenceFluent() { + } + + public V1beta2ResourceClaimConsumerReferenceFluent(V1beta2ResourceClaimConsumerReference instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceClaimConsumerReferenceFluent that = (V1beta2ResourceClaimConsumerReferenceFluent) o; + if (!(Objects.equals(apiGroup, that.apiGroup))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(uid, that.uid))) { + return false; + } + return true; + } + + public String getApiGroup() { + return this.apiGroup; + } + + public String getName() { + return this.name; + } + + public String getResource() { + return this.resource; + } + + public String getUid() { + return this.uid; + } + + public boolean hasApiGroup() { + return this.apiGroup != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasUid() { + return this.uid != null; + } + + public int hashCode() { + return Objects.hash(apiGroup, name, resource, uid); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiGroup == null)) { + sb.append("apiGroup:"); + sb.append(apiGroup); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(uid == null)) { + sb.append("uid:"); + sb.append(uid); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiGroup(String apiGroup) { + this.apiGroup = apiGroup; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withUid(String uid) { + this.uid = uid; + return (A) this; + } + +} \ 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..0bb29b33f5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java @@ -0,0 +1,302 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimSpecBuilder spec; + private V1beta2ResourceClaimStatusBuilder status; + + public V1beta2ResourceClaimFluent() { + } + + public V1beta2ResourceClaimFluent(V1beta2ResourceClaim instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1beta2ResourceClaimStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta2ResourceClaimStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta2ResourceClaimStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceClaimFluent that = (V1beta2ResourceClaimFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta2ResourceClaimStatus item) { + return new StatusNested(item); + } + + 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 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceClaimFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta2ResourceClaimSpecFluent> implements Nested{ + + V1beta2ResourceClaimSpecBuilder builder; + + SpecNested(V1beta2ResourceClaimSpec item) { + this.builder = new V1beta2ResourceClaimSpecBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceClaimFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1beta2ResourceClaimStatusFluent> implements Nested{ + + V1beta2ResourceClaimStatusBuilder builder; + + StatusNested(V1beta2ResourceClaimStatus item) { + this.builder = new V1beta2ResourceClaimStatusBuilder(this, item); + } + + 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..8ccda4aa9b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceClaimListBuilder extends V1beta2ResourceClaimListFluent implements VisitableBuilder{ + + V1beta2ResourceClaimListFluent fluent; + + public V1beta2ResourceClaimListBuilder() { + this(new V1beta2ResourceClaimList()); + } + + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimListFluent fluent) { + this(fluent, new V1beta2ResourceClaimList()); + } + + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceClaimListBuilder(V1beta2ResourceClaimListFluent fluent,V1beta2ResourceClaimList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..4c26e3f295 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta2ResourceClaimListFluent() { + } + + public V1beta2ResourceClaimListFluent(V1beta2ResourceClaimList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceClaim item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta2ResourceClaim buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2ResourceClaim buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceClaimListFluent that = (V1beta2ResourceClaimListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta2ResourceClaim item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta2ResourceClaimFluent> implements Nested{ + + V1beta2ResourceClaimBuilder builder; + int index; + + ItemsNested(int index,V1beta2ResourceClaim item) { + this.index = index; + this.builder = new V1beta2ResourceClaimBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceClaimListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..3fc44c94d7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java @@ -0,0 +1,33 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceClaimSpecBuilder extends V1beta2ResourceClaimSpecFluent implements VisitableBuilder{ + + V1beta2ResourceClaimSpecFluent fluent; + + public V1beta2ResourceClaimSpecBuilder() { + this(new V1beta2ResourceClaimSpec()); + } + + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpecFluent fluent) { + this(fluent, new V1beta2ResourceClaimSpec()); + } + + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceClaimSpecBuilder(V1beta2ResourceClaimSpecFluent fluent,V1beta2ResourceClaimSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..bde918aaeb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java @@ -0,0 +1,122 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimSpecFluent> extends BaseFluent{ + + private V1beta2DeviceClaimBuilder devices; + + public V1beta2ResourceClaimSpecFluent() { + } + + public V1beta2ResourceClaimSpecFluent(V1beta2ResourceClaimSpec instance) { + this.copyInstance(instance); + } + + public V1beta2DeviceClaim buildDevices() { + return this.devices != null ? this.devices.build() : null; + } + + protected void copyInstance(V1beta2ResourceClaimSpec instance) { + instance = instance != null ? instance : new V1beta2ResourceClaimSpec(); + if (instance != null) { + this.withDevices(instance.getDevices()); + } + } + + public DevicesNested editDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(null)); + } + + public DevicesNested editOrNewDevices() { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(new V1beta2DeviceClaimBuilder().build())); + } + + public DevicesNested editOrNewDevicesLike(V1beta2DeviceClaim item) { + return this.withNewDevicesLike(Optional.ofNullable(this.buildDevices()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceClaimSpecFluent that = (V1beta2ResourceClaimSpecFluent) o; + if (!(Objects.equals(devices, that.devices))) { + return false; + } + return true; + } + + public boolean hasDevices() { + return this.devices != null; + } + + public int hashCode() { + return Objects.hash(devices); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(devices == null)) { + sb.append("devices:"); + sb.append(devices); + } + sb.append("}"); + return sb.toString(); + } + + 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 DevicesNested withNewDevices() { + return new DevicesNested(null); + } + + public DevicesNested withNewDevicesLike(V1beta2DeviceClaim item) { + return new DevicesNested(item); + } + public class DevicesNested extends V1beta2DeviceClaimFluent> implements Nested{ + + V1beta2DeviceClaimBuilder builder; + + DevicesNested(V1beta2DeviceClaim item) { + this.builder = new V1beta2DeviceClaimBuilder(this, item); + } + + 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..dec82ecf7a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceClaimStatusBuilder extends V1beta2ResourceClaimStatusFluent implements VisitableBuilder{ + + V1beta2ResourceClaimStatusFluent fluent; + + public V1beta2ResourceClaimStatusBuilder() { + this(new V1beta2ResourceClaimStatus()); + } + + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatusFluent fluent) { + this(fluent, new V1beta2ResourceClaimStatus()); + } + + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceClaimStatusBuilder(V1beta2ResourceClaimStatusFluent fluent,V1beta2ResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..acad62c8ce --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java @@ -0,0 +1,602 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimStatusFluent> extends BaseFluent{ + + private V1beta2AllocationResultBuilder allocation; + private ArrayList devices; + private ArrayList reservedFor; + + public V1beta2ResourceClaimStatusFluent() { + } + + public V1beta2ResourceClaimStatusFluent(V1beta2ResourceClaimStatus instance) { + this.copyInstance(instance); + } + + 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 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 DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta2AllocatedDeviceStatus item) { + return new DevicesNested(-1, item); + } + + public ReservedForNested addNewReservedFor() { + return new ReservedForNested(-1, null); + } + + public ReservedForNested addNewReservedForLike(V1beta2ResourceClaimConsumerReference item) { + return new ReservedForNested(-1, item); + } + + public A addToDevices(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 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 addToReservedFor(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 addToReservedFor(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.add(index, builder); + } + return (A) this; + } + + public V1beta2AllocationResult buildAllocation() { + return this.allocation != null ? this.allocation.build() : null; + } + + public V1beta2AllocatedDeviceStatus buildDevice(int index) { + return this.devices.get(index).build(); + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta2AllocatedDeviceStatus buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta2ResourceClaimConsumerReference buildFirstReservedFor() { + return this.reservedFor.get(0).build(); + } + + public V1beta2AllocatedDeviceStatus buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta2ResourceClaimConsumerReference buildLastReservedFor() { + return this.reservedFor.get(reservedFor.size() - 1).build(); + } + + public V1beta2AllocatedDeviceStatus buildMatchingDevice(Predicate predicate) { + for (V1beta2AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2ResourceClaimConsumerReference buildMatchingReservedFor(Predicate predicate) { + for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildReservedFor() { + return this.reservedFor != null ? build(reservedFor) : null; + } + + public V1beta2ResourceClaimConsumerReference buildReservedFor(int index) { + return this.reservedFor.get(index).build(); + } + + 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 AllocationNested editAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(null)); + } + + public DevicesNested editDevice(int index) { + if (devices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); + } + + public ReservedForNested editFirstReservedFor() { + if (reservedFor.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(0, this.buildReservedFor(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public ReservedForNested editLastReservedFor() { + int index = reservedFor.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < devices.size();i++) { + if (predicate.test(devices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public ReservedForNested editMatchingReservedFor(Predicate predicate) { + int index = -1; + for (int i = 0;i < reservedFor.size();i++) { + if (predicate.test(reservedFor.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public AllocationNested editOrNewAllocation() { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(new V1beta2AllocationResultBuilder().build())); + } + + public AllocationNested editOrNewAllocationLike(V1beta2AllocationResult item) { + return this.withNewAllocationLike(Optional.ofNullable(this.buildAllocation()).orElse(item)); + } + + public ReservedForNested editReservedFor(int index) { + if (reservedFor.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "reservedFor")); + } + return this.setNewReservedForLike(index, this.buildReservedFor(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceClaimStatusFluent that = (V1beta2ResourceClaimStatusFluent) o; + if (!(Objects.equals(allocation, that.allocation))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(reservedFor, that.reservedFor))) { + return false; + } + return true; + } + + public boolean hasAllocation() { + return this.allocation != null; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta2AllocatedDeviceStatusBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingReservedFor(Predicate predicate) { + for (V1beta2ResourceClaimConsumerReferenceBuilder item : reservedFor) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasReservedFor() { + return this.reservedFor != null && !(this.reservedFor.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allocation, devices, reservedFor); + } + + 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 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 removeFromDevices(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 removeFromReservedFor(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 removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + 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 A removeMatchingFromReservedFor(Predicate predicate) { + if (reservedFor == null) { + return (A) this; + } + Iterator each = reservedFor.iterator(); + 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 DevicesNested setNewDeviceLike(int index,V1beta2AllocatedDeviceStatus item) { + return new DevicesNested(index, item); + } + + public ReservedForNested setNewReservedForLike(int index,V1beta2ResourceClaimConsumerReference item) { + return new ReservedForNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocation == null)) { + sb.append("allocation:"); + sb.append(allocation); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(reservedFor == null) && !(reservedFor.isEmpty())) { + sb.append("reservedFor:"); + sb.append(reservedFor); + } + sb.append("}"); + return sb.toString(); + } + + 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 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(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 AllocationNested withNewAllocation() { + return new AllocationNested(null); + } + + public AllocationNested withNewAllocationLike(V1beta2AllocationResult item) { + return new AllocationNested(item); + } + + 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(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 class AllocationNested extends V1beta2AllocationResultFluent> implements Nested{ + + V1beta2AllocationResultBuilder builder; + + AllocationNested(V1beta2AllocationResult item) { + this.builder = new V1beta2AllocationResultBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceClaimStatusFluent.this.withAllocation(builder.build()); + } + + public N endAllocation() { + return and(); + } + + } + public class DevicesNested extends V1beta2AllocatedDeviceStatusFluent> implements Nested{ + + V1beta2AllocatedDeviceStatusBuilder builder; + int index; + + DevicesNested(int index,V1beta2AllocatedDeviceStatus item) { + this.index = index; + this.builder = new V1beta2AllocatedDeviceStatusBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceClaimStatusFluent.this.setToDevices(index, builder.build()); + } + + public N endDevice() { + return and(); + } + + } + public class ReservedForNested extends V1beta2ResourceClaimConsumerReferenceFluent> implements Nested{ + + V1beta2ResourceClaimConsumerReferenceBuilder builder; + int index; + + ReservedForNested(int index,V1beta2ResourceClaimConsumerReference item) { + this.index = index; + this.builder = new V1beta2ResourceClaimConsumerReferenceBuilder(this, item); + } + + 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..ac0b1f4ab9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceClaimTemplateBuilder extends V1beta2ResourceClaimTemplateFluent implements VisitableBuilder{ + + V1beta2ResourceClaimTemplateFluent fluent; + + public V1beta2ResourceClaimTemplateBuilder() { + this(new V1beta2ResourceClaimTemplate()); + } + + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplateFluent fluent) { + this(fluent, new V1beta2ResourceClaimTemplate()); + } + + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceClaimTemplateBuilder(V1beta2ResourceClaimTemplateFluent fluent,V1beta2ResourceClaimTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..1739bd2975 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimTemplateFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimTemplateSpecBuilder spec; + + public V1beta2ResourceClaimTemplateFluent() { + } + + public V1beta2ResourceClaimTemplateFluent(V1beta2ResourceClaimTemplate instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2ResourceClaimTemplateSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceClaimTemplateSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceClaimTemplateFluent that = (V1beta2ResourceClaimTemplateFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimTemplateSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceClaimTemplateFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta2ResourceClaimTemplateSpecFluent> implements Nested{ + + V1beta2ResourceClaimTemplateSpecBuilder builder; + + SpecNested(V1beta2ResourceClaimTemplateSpec item) { + this.builder = new V1beta2ResourceClaimTemplateSpecBuilder(this, item); + } + + 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..cef2d71382 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceClaimTemplateListBuilder extends V1beta2ResourceClaimTemplateListFluent implements VisitableBuilder{ + + V1beta2ResourceClaimTemplateListFluent fluent; + + public V1beta2ResourceClaimTemplateListBuilder() { + this(new V1beta2ResourceClaimTemplateList()); + } + + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateListFluent fluent) { + this(fluent, new V1beta2ResourceClaimTemplateList()); + } + + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceClaimTemplateListBuilder(V1beta2ResourceClaimTemplateListFluent fluent,V1beta2ResourceClaimTemplateList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..bd4cdf9b3d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimTemplateListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta2ResourceClaimTemplateListFluent() { + } + + public V1beta2ResourceClaimTemplateListFluent(V1beta2ResourceClaimTemplateList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceClaimTemplate item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta2ResourceClaimTemplate buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2ResourceClaimTemplate buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceClaimTemplateListFluent that = (V1beta2ResourceClaimTemplateListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceClaimTemplateBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta2ResourceClaimTemplate item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta2ResourceClaimTemplateFluent> implements Nested{ + + V1beta2ResourceClaimTemplateBuilder builder; + int index; + + ItemsNested(int index,V1beta2ResourceClaimTemplate item) { + this.index = index; + this.builder = new V1beta2ResourceClaimTemplateBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceClaimTemplateListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..8df9b443dd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java @@ -0,0 +1,34 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceClaimTemplateSpecBuilder extends V1beta2ResourceClaimTemplateSpecFluent implements VisitableBuilder{ + + V1beta2ResourceClaimTemplateSpecFluent fluent; + + public V1beta2ResourceClaimTemplateSpecBuilder() { + this(new V1beta2ResourceClaimTemplateSpec()); + } + + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpecFluent fluent) { + this(fluent, new V1beta2ResourceClaimTemplateSpec()); + } + + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceClaimTemplateSpecBuilder(V1beta2ResourceClaimTemplateSpecFluent fluent,V1beta2ResourceClaimTemplateSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..aebc840215 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java @@ -0,0 +1,189 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceClaimTemplateSpecFluent> extends BaseFluent{ + + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceClaimSpecBuilder spec; + + public V1beta2ResourceClaimTemplateSpecFluent() { + } + + public V1beta2ResourceClaimTemplateSpecFluent(V1beta2ResourceClaimTemplateSpec instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2ResourceClaimSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1beta2ResourceClaimTemplateSpec instance) { + instance = instance != null ? instance : new V1beta2ResourceClaimTemplateSpec(); + if (instance != null) { + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceClaimSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceClaimSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceClaimTemplateSpecFluent that = (V1beta2ResourceClaimTemplateSpecFluent) o; + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceClaimSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceClaimTemplateSpecFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta2ResourceClaimSpecFluent> implements Nested{ + + V1beta2ResourceClaimSpecBuilder builder; + + SpecNested(V1beta2ResourceClaimSpec item) { + this.builder = new V1beta2ResourceClaimSpecBuilder(this, item); + } + + 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/V1beta2ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java new file mode 100644 index 0000000000..c4709f15f9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java @@ -0,0 +1,35 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourcePoolBuilder extends V1beta2ResourcePoolFluent implements VisitableBuilder{ + + V1beta2ResourcePoolFluent fluent; + + public V1beta2ResourcePoolBuilder() { + this(new V1beta2ResourcePool()); + } + + public V1beta2ResourcePoolBuilder(V1beta2ResourcePoolFluent fluent) { + this(fluent, new V1beta2ResourcePool()); + } + + public V1beta2ResourcePoolBuilder(V1beta2ResourcePool instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourcePoolBuilder(V1beta2ResourcePoolFluent fluent,V1beta2ResourcePool instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..5611678a38 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java @@ -0,0 +1,124 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourcePoolFluent> extends BaseFluent{ + + private Long generation; + private String name; + private Long resourceSliceCount; + + public V1beta2ResourcePoolFluent() { + } + + public V1beta2ResourcePoolFluent(V1beta2ResourcePool instance) { + this.copyInstance(instance); + } + + 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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourcePoolFluent that = (V1beta2ResourcePoolFluent) o; + if (!(Objects.equals(generation, that.generation))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceSliceCount, that.resourceSliceCount))) { + return false; + } + return true; + } + + public Long getGeneration() { + return this.generation; + } + + public String getName() { + return this.name; + } + + public Long getResourceSliceCount() { + return this.resourceSliceCount; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + + public int hashCode() { + return Objects.hash(generation, name, resourceSliceCount); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(generation == null)) { + sb.append("generation:"); + sb.append(generation); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceSliceCount == null)) { + sb.append("resourceSliceCount:"); + sb.append(resourceSliceCount); + } + sb.append("}"); + return sb.toString(); + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceSliceCount(Long resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + +} \ 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..07a7952cb3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceSliceBuilder extends V1beta2ResourceSliceFluent implements VisitableBuilder{ + + V1beta2ResourceSliceFluent fluent; + + public V1beta2ResourceSliceBuilder() { + this(new V1beta2ResourceSlice()); + } + + public V1beta2ResourceSliceBuilder(V1beta2ResourceSliceFluent fluent) { + this(fluent, new V1beta2ResourceSlice()); + } + + public V1beta2ResourceSliceBuilder(V1beta2ResourceSlice instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceSliceBuilder(V1beta2ResourceSliceFluent fluent,V1beta2ResourceSlice instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..afd73c972b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java @@ -0,0 +1,235 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceSliceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2ResourceSliceSpecBuilder spec; + + public V1beta2ResourceSliceFluent() { + } + + public V1beta2ResourceSliceFluent(V1beta2ResourceSlice instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2ResourceSliceSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2ResourceSliceSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2ResourceSliceSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceSliceFluent that = (V1beta2ResourceSliceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + 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 MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2ResourceSliceSpec item) { + return new SpecNested(item); + } + + 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 class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceSliceFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta2ResourceSliceSpecFluent> implements Nested{ + + V1beta2ResourceSliceSpecBuilder builder; + + SpecNested(V1beta2ResourceSliceSpec item) { + this.builder = new V1beta2ResourceSliceSpecBuilder(this, item); + } + + 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..d0a549f008 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java @@ -0,0 +1,36 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceSliceListBuilder extends V1beta2ResourceSliceListFluent implements VisitableBuilder{ + + V1beta2ResourceSliceListFluent fluent; + + public V1beta2ResourceSliceListBuilder() { + this(new V1beta2ResourceSliceList()); + } + + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceListFluent fluent) { + this(fluent, new V1beta2ResourceSliceList()); + } + + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceSliceListBuilder(V1beta2ResourceSliceListFluent fluent,V1beta2ResourceSliceList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..af68edcc2d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java @@ -0,0 +1,411 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceSliceListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta2ResourceSliceListFluent() { + } + + public V1beta2ResourceSliceListFluent(V1beta2ResourceSliceList instance) { + this.copyInstance(instance); + } + + 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 ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2ResourceSlice item) { + return new ItemsNested(-1, item); + } + + public A addToItems(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 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 V1beta2ResourceSlice buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2ResourceSlice buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + 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 V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + 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 ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceSliceListFluent that = (V1beta2ResourceSliceListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2ResourceSliceBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + 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 removeFromItems(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 removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + 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 ItemsNested setNewItemLike(int index,V1beta2ResourceSlice item) { + return new ItemsNested(index, item); + } + + 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + 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(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 A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta2ResourceSliceFluent> implements Nested{ + + V1beta2ResourceSliceBuilder builder; + int index; + + ItemsNested(int index,V1beta2ResourceSlice item) { + this.index = index; + this.builder = new V1beta2ResourceSliceBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceSliceListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + 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..a6745935d2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java @@ -0,0 +1,40 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2ResourceSliceSpecBuilder extends V1beta2ResourceSliceSpecFluent implements VisitableBuilder{ + + V1beta2ResourceSliceSpecFluent fluent; + + public V1beta2ResourceSliceSpecBuilder() { + this(new V1beta2ResourceSliceSpec()); + } + + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpecFluent fluent) { + this(fluent, new V1beta2ResourceSliceSpec()); + } + + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2ResourceSliceSpecBuilder(V1beta2ResourceSliceSpecFluent fluent,V1beta2ResourceSliceSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + 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..857eaae185 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java @@ -0,0 +1,770 @@ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Boolean; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2ResourceSliceSpecFluent> extends BaseFluent{ + + private Boolean allNodes; + private ArrayList devices; + private String driver; + private String nodeName; + private V1NodeSelectorBuilder nodeSelector; + private Boolean perDeviceNodeSelection; + private V1beta2ResourcePoolBuilder pool; + private ArrayList sharedCounters; + + public V1beta2ResourceSliceSpecFluent() { + } + + public V1beta2ResourceSliceSpecFluent(V1beta2ResourceSliceSpec instance) { + this.copyInstance(instance); + } + + 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 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 DevicesNested addNewDevice() { + return new DevicesNested(-1, null); + } + + public DevicesNested addNewDeviceLike(V1beta2Device item) { + return new DevicesNested(-1, item); + } + + public SharedCountersNested addNewSharedCounter() { + return new SharedCountersNested(-1, null); + } + + public SharedCountersNested addNewSharedCounterLike(V1beta2CounterSet item) { + return new SharedCountersNested(-1, item); + } + + public A addToDevices(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 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 addToSharedCounters(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 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 V1beta2Device buildDevice(int index) { + return this.devices.get(index).build(); + } + + public List buildDevices() { + return this.devices != null ? build(devices) : null; + } + + public V1beta2Device buildFirstDevice() { + return this.devices.get(0).build(); + } + + public V1beta2CounterSet buildFirstSharedCounter() { + return this.sharedCounters.get(0).build(); + } + + public V1beta2Device buildLastDevice() { + return this.devices.get(devices.size() - 1).build(); + } + + public V1beta2CounterSet buildLastSharedCounter() { + return this.sharedCounters.get(sharedCounters.size() - 1).build(); + } + + public V1beta2Device buildMatchingDevice(Predicate predicate) { + for (V1beta2DeviceBuilder item : devices) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1beta2CounterSet buildMatchingSharedCounter(Predicate predicate) { + for (V1beta2CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1NodeSelector buildNodeSelector() { + return this.nodeSelector != null ? this.nodeSelector.build() : null; + } + + public V1beta2ResourcePool buildPool() { + return this.pool != null ? this.pool.build() : null; + } + + public V1beta2CounterSet buildSharedCounter(int index) { + return this.sharedCounters.get(index).build(); + } + + public List buildSharedCounters() { + return this.sharedCounters != null ? build(sharedCounters) : null; + } + + 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 DevicesNested editDevice(int index) { + if (devices.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public DevicesNested editFirstDevice() { + if (devices.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(0, this.buildDevice(0)); + } + + public SharedCountersNested editFirstSharedCounter() { + if (sharedCounters.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(0, this.buildSharedCounter(0)); + } + + public DevicesNested editLastDevice() { + int index = devices.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public SharedCountersNested editLastSharedCounter() { + int index = sharedCounters.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public DevicesNested editMatchingDevice(Predicate predicate) { + int index = -1; + for (int i = 0;i < devices.size();i++) { + if (predicate.test(devices.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "devices")); + } + return this.setNewDeviceLike(index, this.buildDevice(index)); + } + + public SharedCountersNested editMatchingSharedCounter(Predicate predicate) { + int index = -1; + for (int i = 0;i < sharedCounters.size();i++) { + if (predicate.test(sharedCounters.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public NodeSelectorNested editNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(null)); + } + + public NodeSelectorNested editOrNewNodeSelector() { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(new V1NodeSelectorBuilder().build())); + } + + public NodeSelectorNested editOrNewNodeSelectorLike(V1NodeSelector item) { + return this.withNewNodeSelectorLike(Optional.ofNullable(this.buildNodeSelector()).orElse(item)); + } + + public PoolNested editOrNewPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(new V1beta2ResourcePoolBuilder().build())); + } + + public PoolNested editOrNewPoolLike(V1beta2ResourcePool item) { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(item)); + } + + public PoolNested editPool() { + return this.withNewPoolLike(Optional.ofNullable(this.buildPool()).orElse(null)); + } + + public SharedCountersNested editSharedCounter(int index) { + if (sharedCounters.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "sharedCounters")); + } + return this.setNewSharedCounterLike(index, this.buildSharedCounter(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2ResourceSliceSpecFluent that = (V1beta2ResourceSliceSpecFluent) o; + if (!(Objects.equals(allNodes, that.allNodes))) { + return false; + } + if (!(Objects.equals(devices, that.devices))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(nodeSelector, that.nodeSelector))) { + return false; + } + if (!(Objects.equals(perDeviceNodeSelection, that.perDeviceNodeSelection))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + if (!(Objects.equals(sharedCounters, that.sharedCounters))) { + return false; + } + return true; + } + + public Boolean getAllNodes() { + return this.allNodes; + } + + public String getDriver() { + return this.driver; + } + + public String getNodeName() { + return this.nodeName; + } + + public Boolean getPerDeviceNodeSelection() { + return this.perDeviceNodeSelection; + } + + public boolean hasAllNodes() { + return this.allNodes != null; + } + + public boolean hasDevices() { + return this.devices != null && !(this.devices.isEmpty()); + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasMatchingDevice(Predicate predicate) { + for (V1beta2DeviceBuilder item : devices) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSharedCounter(Predicate predicate) { + for (V1beta2CounterSetBuilder item : sharedCounters) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasNodeSelector() { + return this.nodeSelector != null; + } + + public boolean hasPerDeviceNodeSelection() { + return this.perDeviceNodeSelection != null; + } + + public boolean hasPool() { + return this.pool != null; + } + + public boolean hasSharedCounters() { + return this.sharedCounters != null && !(this.sharedCounters.isEmpty()); + } + + public int hashCode() { + return Objects.hash(allNodes, devices, driver, nodeName, nodeSelector, perDeviceNodeSelection, pool, sharedCounters); + } + + 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 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 removeFromDevices(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 removeFromSharedCounters(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 removeMatchingFromDevices(Predicate predicate) { + if (devices == null) { + return (A) this; + } + Iterator each = devices.iterator(); + 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 A removeMatchingFromSharedCounters(Predicate predicate) { + if (sharedCounters == null) { + return (A) this; + } + Iterator each = sharedCounters.iterator(); + 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 DevicesNested setNewDeviceLike(int index,V1beta2Device item) { + return new DevicesNested(index, item); + } + + public SharedCountersNested setNewSharedCounterLike(int index,V1beta2CounterSet item) { + return new SharedCountersNested(index, item); + } + + 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 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 String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allNodes == null)) { + sb.append("allNodes:"); + sb.append(allNodes); + sb.append(","); + } + if (!(devices == null) && !(devices.isEmpty())) { + sb.append("devices:"); + sb.append(devices); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(nodeSelector == null)) { + sb.append("nodeSelector:"); + sb.append(nodeSelector); + sb.append(","); + } + if (!(perDeviceNodeSelection == null)) { + sb.append("perDeviceNodeSelection:"); + sb.append(perDeviceNodeSelection); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + sb.append(","); + } + if (!(sharedCounters == null) && !(sharedCounters.isEmpty())) { + sb.append("sharedCounters:"); + sb.append(sharedCounters); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllNodes() { + return withAllNodes(true); + } + + public A withAllNodes(Boolean allNodes) { + this.allNodes = allNodes; + return (A) this; + } + + 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(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 A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public NodeSelectorNested withNewNodeSelector() { + return new NodeSelectorNested(null); + } + + public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { + return new NodeSelectorNested(item); + } + + public PoolNested withNewPool() { + return new PoolNested(null); + } + + public PoolNested withNewPoolLike(V1beta2ResourcePool item) { + return new PoolNested(item); + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + 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 A withPerDeviceNodeSelection() { + return withPerDeviceNodeSelection(true); + } + + public A withPerDeviceNodeSelection(Boolean perDeviceNodeSelection) { + this.perDeviceNodeSelection = perDeviceNodeSelection; + return (A) this; + } + + 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 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(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 class DevicesNested extends V1beta2DeviceFluent> implements Nested{ + + V1beta2DeviceBuilder builder; + int index; + + DevicesNested(int index,V1beta2Device item) { + this.index = index; + this.builder = new V1beta2DeviceBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.setToDevices(index, builder.build()); + } + + public N endDevice() { + return and(); + } + + } + public class NodeSelectorNested extends V1NodeSelectorFluent> implements Nested{ + + V1NodeSelectorBuilder builder; + + NodeSelectorNested(V1NodeSelector item) { + this.builder = new V1NodeSelectorBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.withNodeSelector(builder.build()); + } + + public N endNodeSelector() { + return and(); + } + + } + public class PoolNested extends V1beta2ResourcePoolFluent> implements Nested{ + + V1beta2ResourcePoolBuilder builder; + + PoolNested(V1beta2ResourcePool item) { + this.builder = new V1beta2ResourcePoolBuilder(this, item); + } + + public N and() { + return (N) V1beta2ResourceSliceSpecFluent.this.withPool(builder.build()); + } + + public N endPool() { + return and(); + } + + } + public class SharedCountersNested extends V1beta2CounterSetFluent> implements Nested{ + + V1beta2CounterSetBuilder builder; + int index; + + SharedCountersNested(int index,V1beta2CounterSet item) { + this.index = index; + this.builder = new V1beta2CounterSetBuilder(this, item); + } + + 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/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/V2ContainerResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java index 4e52908186..a522f13644 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ContainerResourceMetricSourceBuilder extends V2ContainerResourceMetricSourceFluent implements VisitableBuilder{ + + V2ContainerResourceMetricSourceFluent fluent; + public V2ContainerResourceMetricSourceBuilder() { this(new V2ContainerResourceMetricSource()); } @@ -10,17 +14,16 @@ public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFlu this(fluent, new V2ContainerResourceMetricSource()); } - public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFluent fluent,V2ContainerResourceMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2ContainerResourceMetricSourceFluent fluent; + public V2ContainerResourceMetricSourceBuilder(V2ContainerResourceMetricSourceFluent fluent,V2ContainerResourceMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ContainerResourceMetricSource build() { V2ContainerResourceMetricSource buildable = new V2ContainerResourceMetricSource(); buildable.setContainer(fluent.getContainer()); @@ -29,5 +32,4 @@ public V2ContainerResourceMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java index d4c17a6d93..04be4e714c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java @@ -1,79 +1,132 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ContainerResourceMetricSourceFluent> extends BaseFluent{ +public class V2ContainerResourceMetricSourceFluent> extends BaseFluent{ + + private String container; + private String name; + private V2MetricTargetBuilder target; + public V2ContainerResourceMetricSourceFluent() { } public V2ContainerResourceMetricSourceFluent(V2ContainerResourceMetricSource instance) { this.copyInstance(instance); } - private String container; - private String name; - private V2MetricTargetBuilder target; + + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V2ContainerResourceMetricSource instance) { - instance = (instance != null ? instance : new V2ContainerResourceMetricSource()); + instance = instance != null ? instance : new V2ContainerResourceMetricSource(); if (instance != null) { - this.withContainer(instance.getContainer()); - this.withName(instance.getName()); - this.withTarget(instance.getTarget()); - } + this.withContainer(instance.getContainer()); + this.withName(instance.getName()); + this.withTarget(instance.getTarget()); + } } - public String getContainer() { - return this.container; + public TargetNested editOrNewTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } - public A withContainer(String container) { - this.container = container; - return (A) this; + public TargetNested editOrNewTargetLike(V2MetricTarget item) { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } - public boolean hasContainer() { - return this.container != null; + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2ContainerResourceMetricSourceFluent that = (V2ContainerResourceMetricSourceFluent) o; + if (!(Objects.equals(container, that.container))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } + return true; + } + + public String getContainer() { + return this.container; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasContainer() { + return this.container != null; } public boolean hasName() { return this.name != null; } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + public boolean hasTarget() { + return this.target != null; } - public A withTarget(V2MetricTarget target) { - this._visitables.remove("target"); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - this._visitables.get("target").add(this.target); - } else { - this.target = null; - this._visitables.get("target").remove(this.target); + public int hashCode() { + return Objects.hash(container, name, target); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(container == null)) { + sb.append("container:"); + sb.append(container); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); } + sb.append("}"); + return sb.toString(); + } + + public A withContainer(String container) { + this.container = container; return (A) this; } - public boolean hasTarget() { - return this.target != null; + public A withName(String name) { + this.name = name; + return (A) this; } public TargetNested withNewTarget() { @@ -84,48 +137,25 @@ public TargetNested withNewTargetLike(V2MetricTarget item) { return new TargetNested(item); } - public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); - } - - public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); - } - - public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).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; - V2ContainerResourceMetricSourceFluent that = (V2ContainerResourceMetricSourceFluent) o; - if (!java.util.Objects.equals(container, that.container)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; - return true; + public A withTarget(V2MetricTarget target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V2MetricTargetBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this.target = null; + this._visitables.get("target").remove(this.target); + } + return (A) this; } + public class TargetNested extends V2MetricTargetFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(container, name, target, super.hashCode()); - } + V2MetricTargetBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (container != null) { sb.append("container:"); sb.append(container + ","); } - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } - sb.append("}"); - return sb.toString(); - } - public class TargetNested extends V2MetricTargetFluent> implements Nested{ TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2ContainerResourceMetricSourceFluent.this.withTarget(builder.build()); } @@ -134,7 +164,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java index 16ed430ca0..332066dc56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ContainerResourceMetricStatusBuilder extends V2ContainerResourceMetricStatusFluent implements VisitableBuilder{ + + V2ContainerResourceMetricStatusFluent fluent; + public V2ContainerResourceMetricStatusBuilder() { this(new V2ContainerResourceMetricStatus()); } @@ -10,17 +14,16 @@ public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFlu this(fluent, new V2ContainerResourceMetricStatus()); } - public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFluent fluent,V2ContainerResourceMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2ContainerResourceMetricStatusFluent fluent; + public V2ContainerResourceMetricStatusBuilder(V2ContainerResourceMetricStatusFluent fluent,V2ContainerResourceMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ContainerResourceMetricStatus build() { V2ContainerResourceMetricStatus buildable = new V2ContainerResourceMetricStatus(); buildable.setContainer(fluent.getContainer()); @@ -29,5 +32,4 @@ public V2ContainerResourceMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java index 1b1c0d53cc..41989c10df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java @@ -1,50 +1,127 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ContainerResourceMetricStatusFluent> extends BaseFluent{ +public class V2ContainerResourceMetricStatusFluent> extends BaseFluent{ + + private String container; + private V2MetricValueStatusBuilder current; + private String name; + public V2ContainerResourceMetricStatusFluent() { } public V2ContainerResourceMetricStatusFluent(V2ContainerResourceMetricStatus instance) { this.copyInstance(instance); } - private String container; - private V2MetricValueStatusBuilder current; - private String name; + + public V2MetricValueStatus buildCurrent() { + return this.current != null ? this.current.build() : null; + } protected void copyInstance(V2ContainerResourceMetricStatus instance) { - instance = (instance != null ? instance : new V2ContainerResourceMetricStatus()); + instance = instance != null ? instance : new V2ContainerResourceMetricStatus(); if (instance != null) { - this.withContainer(instance.getContainer()); - this.withCurrent(instance.getCurrent()); - this.withName(instance.getName()); - } + this.withContainer(instance.getContainer()); + this.withCurrent(instance.getCurrent()); + this.withName(instance.getName()); + } + } + + public CurrentNested editCurrent() { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); + } + + public CurrentNested editOrNewCurrent() { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + } + + public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2ContainerResourceMetricStatusFluent that = (V2ContainerResourceMetricStatusFluent) o; + if (!(Objects.equals(container, that.container))) { + return false; + } + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } public String getContainer() { return this.container; } - public A withContainer(String container) { - this.container = container; - return (A) this; + public String getName() { + return this.name; } public boolean hasContainer() { return this.container != null; } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + public boolean hasCurrent() { + return this.current != null; + } + + public boolean hasName() { + return this.name != null; + } + + public int hashCode() { + return Objects.hash(container, current, name); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(container == null)) { + sb.append("container:"); + sb.append(container); + sb.append(","); + } + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } + sb.append("}"); + return sb.toString(); + } + + public A withContainer(String container) { + this.container = container; + return (A) this; } public A withCurrent(V2MetricValueStatus current) { @@ -59,8 +136,9 @@ public A withCurrent(V2MetricValueStatus current) { return (A) this; } - public boolean hasCurrent() { - return this.current != null; + public A withName(String name) { + this.name = name; + return (A) this; } public CurrentNested withNewCurrent() { @@ -70,62 +148,14 @@ public CurrentNested withNewCurrent() { public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { return new CurrentNested(item); } + public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ - public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); - } - - public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); - } - - public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).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; - V2ContainerResourceMetricStatusFluent that = (V2ContainerResourceMetricStatusFluent) o; - if (!java.util.Objects.equals(container, that.container)) return false; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(container, current, name, super.hashCode()); - } + V2MetricValueStatusBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (container != null) { sb.append("container:"); sb.append(container + ","); } - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } - sb.append("}"); - return sb.toString(); - } - public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2ContainerResourceMetricStatusFluent.this.withCurrent(builder.build()); } @@ -134,7 +164,5 @@ public N endCurrent() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java index 367528df11..35665c26bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2CrossVersionObjectReferenceBuilder extends V2CrossVersionObjectReferenceFluent implements VisitableBuilder{ + + V2CrossVersionObjectReferenceFluent fluent; + public V2CrossVersionObjectReferenceBuilder() { this(new V2CrossVersionObjectReference()); } @@ -10,17 +14,16 @@ public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent< this(fluent, new V2CrossVersionObjectReference()); } - public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,V2CrossVersionObjectReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - V2CrossVersionObjectReferenceFluent fluent; + public V2CrossVersionObjectReferenceBuilder(V2CrossVersionObjectReferenceFluent fluent,V2CrossVersionObjectReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2CrossVersionObjectReference build() { V2CrossVersionObjectReference buildable = new V2CrossVersionObjectReference(); buildable.setApiVersion(fluent.getApiVersion()); @@ -29,5 +32,4 @@ public V2CrossVersionObjectReference build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java index 9e990e59c4..620d8950ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java @@ -1,97 +1,123 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V2CrossVersionObjectReferenceFluent> extends BaseFluent{ +public class V2CrossVersionObjectReferenceFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private String name; + public V2CrossVersionObjectReferenceFluent() { } public V2CrossVersionObjectReferenceFluent(V2CrossVersionObjectReference instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private String name; - + protected void copyInstance(V2CrossVersionObjectReference instance) { - instance = (instance != null ? instance : new V2CrossVersionObjectReference()); + instance = instance != null ? instance : new V2CrossVersionObjectReference(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withName(instance.getName()); - } - } - - public String getApiVersion() { - return this.apiVersion; + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withName(instance.getName()); + } } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2CrossVersionObjectReferenceFluent that = (V2CrossVersionObjectReferenceFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } - public boolean hasApiVersion() { - return this.apiVersion != null; + public String getApiVersion() { + return this.apiVersion; } 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 hasApiVersion() { + return this.apiVersion != null; } - public boolean hasName() { - return this.name != null; + 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; - V2CrossVersionObjectReferenceFluent that = (V2CrossVersionObjectReferenceFluent) 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(name, that.name)) return false; - return true; + public boolean hasName() { + return this.name != null; } public int hashCode() { - return java.util.Objects.hash(apiVersion, kind, name, super.hashCode()); + return Objects.hash(apiVersion, kind, name); } 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 (name != null) { sb.append("name:"); sb.append(name); } + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } - + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java index bdf132a7f8..e0055e702b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ExternalMetricSourceBuilder extends V2ExternalMetricSourceFluent implements VisitableBuilder{ + + V2ExternalMetricSourceFluent fluent; + public V2ExternalMetricSourceBuilder() { this(new V2ExternalMetricSource()); } @@ -10,17 +14,16 @@ public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent) { this(fluent, new V2ExternalMetricSource()); } - public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent,V2ExternalMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ExternalMetricSourceBuilder(V2ExternalMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2ExternalMetricSourceFluent fluent; + public V2ExternalMetricSourceBuilder(V2ExternalMetricSourceFluent fluent,V2ExternalMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ExternalMetricSource build() { V2ExternalMetricSource buildable = new V2ExternalMetricSource(); buildable.setMetric(fluent.buildMetric()); @@ -28,5 +31,4 @@ public V2ExternalMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java index e8661e0ec8..510a40f68b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java @@ -1,35 +1,116 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ExternalMetricSourceFluent> extends BaseFluent{ +public class V2ExternalMetricSourceFluent> extends BaseFluent{ + + private V2MetricIdentifierBuilder metric; + private V2MetricTargetBuilder target; + public V2ExternalMetricSourceFluent() { } public V2ExternalMetricSourceFluent(V2ExternalMetricSource instance) { this.copyInstance(instance); } - private V2MetricIdentifierBuilder metric; - private V2MetricTargetBuilder target; + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } + + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V2ExternalMetricSource instance) { - instance = (instance != null ? instance : new V2ExternalMetricSource()); + instance = instance != null ? instance : new V2ExternalMetricSource(); if (instance != null) { - this.withMetric(instance.getMetric()); - this.withTarget(instance.getTarget()); - } + this.withMetric(instance.getMetric()); + this.withTarget(instance.getTarget()); + } } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); + } + + public MetricNested editOrNewMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + } + + public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); + } + + public TargetNested editOrNewTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); + } + + public TargetNested editOrNewTargetLike(V2MetricTarget item) { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); + } + + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2ExternalMetricSourceFluent that = (V2ExternalMetricSourceFluent) o; + if (!(Objects.equals(metric, that.metric))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } + return true; + } + + public boolean hasMetric() { + return this.metric != null; + } + + public boolean hasTarget() { + return this.target != null; + } + + public int hashCode() { + return Objects.hash(metric, target); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } + sb.append("}"); + return sb.toString(); } public A withMetric(V2MetricIdentifier metric) { @@ -44,10 +125,6 @@ public A withMetric(V2MetricIdentifier metric) { return (A) this; } - public boolean hasMetric() { - return this.metric != null; - } - public MetricNested withNewMetric() { return new MetricNested(null); } @@ -56,20 +133,12 @@ public MetricNested withNewMetricLike(V2MetricIdentifier item) { return new MetricNested(item); } - public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); - } - - public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); - } - - public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + public TargetNested withNewTarget() { + return new TargetNested(null); } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + public TargetNested withNewTargetLike(V2MetricTarget item) { + return new TargetNested(item); } public A withTarget(V2MetricTarget target) { @@ -83,59 +152,14 @@ public A withTarget(V2MetricTarget target) { } return (A) this; } + public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); - } - - public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); - } - - public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).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; - V2ExternalMetricSourceFluent that = (V2ExternalMetricSourceFluent) o; - if (!java.util.Objects.equals(metric, that.metric)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(metric, target, super.hashCode()); - } + V2MetricIdentifierBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } - sb.append("}"); - return sb.toString(); - } - public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2ExternalMetricSourceFluent.this.withMetric(builder.build()); } @@ -144,14 +168,15 @@ public N endMetric() { return and(); } - } public class TargetNested extends V2MetricTargetFluent> implements Nested{ + + V2MetricTargetBuilder builder; + TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2ExternalMetricSourceFluent.this.withTarget(builder.build()); } @@ -160,7 +185,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java index 23ff22cb14..0f79837d9d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ExternalMetricStatusBuilder extends V2ExternalMetricStatusFluent implements VisitableBuilder{ + + V2ExternalMetricStatusFluent fluent; + public V2ExternalMetricStatusBuilder() { this(new V2ExternalMetricStatus()); } @@ -10,17 +14,16 @@ public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent) { this(fluent, new V2ExternalMetricStatus()); } - public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent,V2ExternalMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ExternalMetricStatusBuilder(V2ExternalMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2ExternalMetricStatusFluent fluent; + public V2ExternalMetricStatusBuilder(V2ExternalMetricStatusFluent fluent,V2ExternalMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ExternalMetricStatus build() { V2ExternalMetricStatus buildable = new V2ExternalMetricStatus(); buildable.setCurrent(fluent.buildCurrent()); @@ -28,5 +31,4 @@ public V2ExternalMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java index 9e7c5c1f44..e643233646 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java @@ -1,75 +1,128 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ExternalMetricStatusFluent> extends BaseFluent{ +public class V2ExternalMetricStatusFluent> extends BaseFluent{ + + private V2MetricValueStatusBuilder current; + private V2MetricIdentifierBuilder metric; + public V2ExternalMetricStatusFluent() { } public V2ExternalMetricStatusFluent(V2ExternalMetricStatus instance) { this.copyInstance(instance); } - private V2MetricValueStatusBuilder current; - private V2MetricIdentifierBuilder metric; + + public V2MetricValueStatus buildCurrent() { + return this.current != null ? this.current.build() : null; + } + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } protected void copyInstance(V2ExternalMetricStatus instance) { - instance = (instance != null ? instance : new V2ExternalMetricStatus()); + instance = instance != null ? instance : new V2ExternalMetricStatus(); if (instance != null) { - this.withCurrent(instance.getCurrent()); - this.withMetric(instance.getMetric()); - } + this.withCurrent(instance.getCurrent()); + this.withMetric(instance.getMetric()); + } } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + public CurrentNested editCurrent() { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } - public A withCurrent(V2MetricValueStatus current) { - this._visitables.remove("current"); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - this._visitables.get("current").add(this.current); - } else { - this.current = null; - this._visitables.get("current").remove(this.current); - } - return (A) this; + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } - public boolean hasCurrent() { - return this.current != null; + public CurrentNested editOrNewCurrent() { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } - public CurrentNested withNewCurrent() { - return new CurrentNested(null); + public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } - public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); + public MetricNested editOrNewMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } - public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); + public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } - public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2ExternalMetricStatusFluent that = (V2ExternalMetricStatusFluent) o; + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(metric, that.metric))) { + return false; + } + return true; } - public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(item)); + public boolean hasCurrent() { + return this.current != null; } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + public boolean hasMetric() { + return this.metric != null; + } + + public int hashCode() { + return Objects.hash(current, metric); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + } + sb.append("}"); + return sb.toString(); + } + + public A withCurrent(V2MetricValueStatus current) { + this._visitables.remove("current"); + if (current != null) { + this.current = new V2MetricValueStatusBuilder(current); + this._visitables.get("current").add(this.current); + } else { + this.current = null; + this._visitables.get("current").remove(this.current); + } + return (A) this; } public A withMetric(V2MetricIdentifier metric) { @@ -84,8 +137,12 @@ public A withMetric(V2MetricIdentifier metric) { return (A) this; } - public boolean hasMetric() { - return this.metric != null; + public CurrentNested withNewCurrent() { + return new CurrentNested(null); + } + + public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { + return new CurrentNested(item); } public MetricNested withNewMetric() { @@ -95,47 +152,14 @@ public MetricNested withNewMetric() { public MetricNested withNewMetricLike(V2MetricIdentifier item) { return new MetricNested(item); } + public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ - public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); - } - - public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); - } - - public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).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; - V2ExternalMetricStatusFluent that = (V2ExternalMetricStatusFluent) o; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(metric, that.metric)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(current, metric, super.hashCode()); - } + V2MetricValueStatusBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (metric != null) { sb.append("metric:"); sb.append(metric); } - sb.append("}"); - return sb.toString(); - } - public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2ExternalMetricStatusFluent.this.withCurrent(builder.build()); } @@ -144,14 +168,15 @@ public N endCurrent() { return and(); } - } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2ExternalMetricStatusFluent.this.withMetric(builder.build()); } @@ -160,7 +185,5 @@ public N endMetric() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java index b2fad800eb..bde73530b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HPAScalingPolicyBuilder extends V2HPAScalingPolicyFluent implements VisitableBuilder{ + + V2HPAScalingPolicyFluent fluent; + public V2HPAScalingPolicyBuilder() { this(new V2HPAScalingPolicy()); } @@ -10,17 +14,16 @@ public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent) { this(fluent, new V2HPAScalingPolicy()); } - public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent,V2HPAScalingPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HPAScalingPolicyBuilder(V2HPAScalingPolicy instance) { this.fluent = this; this.copyInstance(instance); } - V2HPAScalingPolicyFluent fluent; + public V2HPAScalingPolicyBuilder(V2HPAScalingPolicyFluent fluent,V2HPAScalingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HPAScalingPolicy build() { V2HPAScalingPolicy buildable = new V2HPAScalingPolicy(); buildable.setPeriodSeconds(fluent.getPeriodSeconds()); @@ -29,5 +32,4 @@ public V2HPAScalingPolicy build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java index ba8b87646e..76155444dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java @@ -1,98 +1,124 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HPAScalingPolicyFluent> extends BaseFluent{ +public class V2HPAScalingPolicyFluent> extends BaseFluent{ + + private Integer periodSeconds; + private String type; + private Integer value; + public V2HPAScalingPolicyFluent() { } public V2HPAScalingPolicyFluent(V2HPAScalingPolicy instance) { this.copyInstance(instance); } - private Integer periodSeconds; - private String type; - private Integer value; - + protected void copyInstance(V2HPAScalingPolicy instance) { - instance = (instance != null ? instance : new V2HPAScalingPolicy()); + instance = instance != null ? instance : new V2HPAScalingPolicy(); if (instance != null) { - this.withPeriodSeconds(instance.getPeriodSeconds()); - this.withType(instance.getType()); - this.withValue(instance.getValue()); - } - } - - public Integer getPeriodSeconds() { - return this.periodSeconds; + this.withPeriodSeconds(instance.getPeriodSeconds()); + this.withType(instance.getType()); + this.withValue(instance.getValue()); + } } - public A withPeriodSeconds(Integer periodSeconds) { - this.periodSeconds = periodSeconds; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HPAScalingPolicyFluent that = (V2HPAScalingPolicyFluent) o; + if (!(Objects.equals(periodSeconds, that.periodSeconds))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; } - public boolean hasPeriodSeconds() { - return this.periodSeconds != null; + public Integer getPeriodSeconds() { + return this.periodSeconds; } 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 Integer getValue() { return this.value; } - public A withValue(Integer value) { - this.value = value; - return (A) this; + public boolean hasPeriodSeconds() { + return this.periodSeconds != null; } - public boolean hasValue() { - return this.value != null; + 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; - V2HPAScalingPolicyFluent that = (V2HPAScalingPolicyFluent) o; - if (!java.util.Objects.equals(periodSeconds, that.periodSeconds)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - return true; + public boolean hasValue() { + return this.value != null; } public int hashCode() { - return java.util.Objects.hash(periodSeconds, type, value, super.hashCode()); + return Objects.hash(periodSeconds, type, value); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (periodSeconds != null) { sb.append("periodSeconds:"); sb.append(periodSeconds + ","); } - if (type != null) { sb.append("type:"); sb.append(type + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } + if (!(periodSeconds == null)) { + sb.append("periodSeconds:"); + sb.append(periodSeconds); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } sb.append("}"); return sb.toString(); } - + public A withPeriodSeconds(Integer periodSeconds) { + this.periodSeconds = periodSeconds; + return (A) this; + } + + public A withType(String type) { + this.type = type; + return (A) this; + } + + public A withValue(Integer value) { + this.value = value; + return (A) this; + } + } \ 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..1ed0ad9cc3 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HPAScalingRulesBuilder extends V2HPAScalingRulesFluent implements VisitableBuilder{ + + V2HPAScalingRulesFluent fluent; + public V2HPAScalingRulesBuilder() { this(new V2HPAScalingRules()); } @@ -10,24 +14,23 @@ public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent) { this(fluent, new V2HPAScalingRules()); } - public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent,V2HPAScalingRules instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HPAScalingRulesBuilder(V2HPAScalingRules instance) { this.fluent = this; this.copyInstance(instance); } - V2HPAScalingRulesFluent fluent; + public V2HPAScalingRulesBuilder(V2HPAScalingRulesFluent fluent,V2HPAScalingRules instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HPAScalingRules build() { V2HPAScalingRules buildable = new V2HPAScalingRules(); buildable.setPolicies(fluent.buildPolicies()); buildable.setSelectPolicy(fluent.getSelectPolicy()); buildable.setStabilizationWindowSeconds(fluent.getStabilizationWindowSeconds()); + buildable.setTolerance(fluent.getTolerance()); return buildable; } - } \ No newline at end of file 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..e4bfff9d50 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 @@ -1,88 +1,101 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; -import java.lang.String; -import java.util.function.Predicate; import java.lang.Integer; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HPAScalingRulesFluent> extends BaseFluent{ +public class V2HPAScalingRulesFluent> extends BaseFluent{ + + private ArrayList policies; + private String selectPolicy; + private Integer stabilizationWindowSeconds; + private Quantity tolerance; + public V2HPAScalingRulesFluent() { } public V2HPAScalingRulesFluent(V2HPAScalingRules instance) { this.copyInstance(instance); } - private ArrayList policies; - private String selectPolicy; - private Integer stabilizationWindowSeconds; - - protected void copyInstance(V2HPAScalingRules instance) { - instance = (instance != null ? instance : new V2HPAScalingRules()); - if (instance != null) { - this.withPolicies(instance.getPolicies()); - this.withSelectPolicy(instance.getSelectPolicy()); - this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); - } + + public A addAllToPolicies(Collection items) { + if (this.policies == null) { + this.policies = new ArrayList(); + } + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").add(builder); + this.policies.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public PoliciesNested addNewPolicy() { + return new PoliciesNested(-1, null); } - 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);} - return (A)this; + public PoliciesNested addNewPolicyLike(V2HPAScalingPolicy item) { + return new PoliciesNested(-1, item); } - public A addToPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items) { - if (this.policies == null) {this.policies = new ArrayList();} - for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(builder);this.policies.add(builder);} return (A)this; + public A addToPolicies(V2HPAScalingPolicy... items) { + if (this.policies == null) { + this.policies = new ArrayList(); + } + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").add(builder); + this.policies.add(builder); + } + return (A) this; } - public A addAllToPolicies(Collection items) { - if (this.policies == null) {this.policies = new ArrayList();} - for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").add(builder);this.policies.add(builder);} return (A)this; + 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(builder); + policies.add(index, builder); + } + return (A) this; } - public A removeFromPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... items) { - if (this.policies == null) return (A)this; - for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").remove(builder); this.policies.remove(builder);} return (A)this; + public V2HPAScalingPolicy buildFirstPolicy() { + return this.policies.get(0).build(); } - public A removeAllFromPolicies(Collection items) { - if (this.policies == null) return (A)this; - for (V2HPAScalingPolicy item : items) {V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item);_visitables.get("policies").remove(builder); this.policies.remove(builder);} return (A)this; + public V2HPAScalingPolicy buildLastPolicy() { + return this.policies.get(policies.size() - 1).build(); } - public A removeMatchingFromPolicies(Predicate predicate) { - if (policies == null) return (A) this; - final Iterator each = policies.iterator(); - final List visitables = _visitables.get("policies"); - while (each.hasNext()) { - V2HPAScalingPolicyBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V2HPAScalingPolicy buildMatchingPolicy(Predicate predicate) { + for (V2HPAScalingPolicyBuilder item : policies) { + if (predicate.test(item)) { + return item.build(); + } } - } - return (A)this; + return null; } public List buildPolicies() { @@ -93,21 +106,88 @@ public V2HPAScalingPolicy buildPolicy(int index) { return this.policies.get(index).build(); } - public V2HPAScalingPolicy buildFirstPolicy() { - return this.policies.get(0).build(); + protected void copyInstance(V2HPAScalingRules instance) { + instance = instance != null ? instance : new V2HPAScalingRules(); + if (instance != null) { + this.withPolicies(instance.getPolicies()); + this.withSelectPolicy(instance.getSelectPolicy()); + this.withStabilizationWindowSeconds(instance.getStabilizationWindowSeconds()); + this.withTolerance(instance.getTolerance()); + } } - public V2HPAScalingPolicy buildLastPolicy() { - return this.policies.get(policies.size() - 1).build(); + public PoliciesNested editFirstPolicy() { + if (policies.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "policies")); + } + return this.setNewPolicyLike(0, this.buildPolicy(0)); } - public V2HPAScalingPolicy buildMatchingPolicy(Predicate predicate) { - for (V2HPAScalingPolicyBuilder item : policies) { - if (predicate.test(item)) { - return item.build(); - } + public PoliciesNested editLastPolicy() { + int index = policies.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "policies")); + } + return this.setNewPolicyLike(index, this.buildPolicy(index)); + } + + public PoliciesNested editMatchingPolicy(Predicate predicate) { + int index = -1; + for (int i = 0;i < policies.size();i++) { + if (predicate.test(policies.get(i))) { + index = i; + break; } - return null; + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "policies")); + } + return this.setNewPolicyLike(index, this.buildPolicy(index)); + } + + public PoliciesNested editPolicy(int index) { + if (policies.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "policies")); + } + return this.setNewPolicyLike(index, this.buildPolicy(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HPAScalingRulesFluent that = (V2HPAScalingRulesFluent) o; + if (!(Objects.equals(policies, that.policies))) { + return false; + } + if (!(Objects.equals(selectPolicy, that.selectPolicy))) { + return false; + } + if (!(Objects.equals(stabilizationWindowSeconds, that.stabilizationWindowSeconds))) { + return false; + } + if (!(Objects.equals(tolerance, that.tolerance))) { + return false; + } + return true; + } + + public String getSelectPolicy() { + return this.selectPolicy; + } + + public Integer getStabilizationWindowSeconds() { + return this.stabilizationWindowSeconds; + } + + public Quantity getTolerance() { + return this.tolerance; } public boolean hasMatchingPolicy(Predicate predicate) { @@ -119,6 +199,115 @@ public boolean hasMatchingPolicy(Predicate predicate) return false; } + public boolean hasPolicies() { + return this.policies != null && !(this.policies.isEmpty()); + } + + public boolean hasSelectPolicy() { + return this.selectPolicy != null; + } + + public boolean hasStabilizationWindowSeconds() { + return this.stabilizationWindowSeconds != null; + } + + public boolean hasTolerance() { + return this.tolerance != null; + } + + public int hashCode() { + return Objects.hash(policies, selectPolicy, stabilizationWindowSeconds, tolerance); + } + + public A removeAllFromPolicies(Collection items) { + if (this.policies == null) { + return (A) this; + } + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").remove(builder); + this.policies.remove(builder); + } + return (A) this; + } + + public A removeFromPolicies(V2HPAScalingPolicy... items) { + if (this.policies == null) { + return (A) this; + } + for (V2HPAScalingPolicy item : items) { + V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); + _visitables.get("policies").remove(builder); + this.policies.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPolicies(Predicate predicate) { + if (policies == null) { + return (A) this; + } + Iterator each = policies.iterator(); + List visitables = _visitables.get("policies"); + while (each.hasNext()) { + V2HPAScalingPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PoliciesNested setNewPolicyLike(int index,V2HPAScalingPolicy item) { + return new PoliciesNested(index, item); + } + + 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").add(builder); + policies.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(policies == null) && !(policies.isEmpty())) { + sb.append("policies:"); + sb.append(policies); + sb.append(","); + } + if (!(selectPolicy == null)) { + sb.append("selectPolicy:"); + sb.append(selectPolicy); + sb.append(","); + } + if (!(stabilizationWindowSeconds == null)) { + sb.append("stabilizationWindowSeconds:"); + sb.append(stabilizationWindowSeconds); + sb.append(","); + } + if (!(tolerance == null)) { + sb.append("tolerance:"); + sb.append(tolerance); + } + sb.append("}"); + return sb.toString(); + } + + public A withNewTolerance(String value) { + return (A) this.withTolerance(new Quantity(value)); + } + public A withPolicies(List policies) { if (this.policies != null) { this._visitables.get("policies").clear(); @@ -134,7 +323,7 @@ public A withPolicies(List policies) { return (A) this; } - public A withPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... policies) { + public A withPolicies(V2HPAScalingPolicy... policies) { if (this.policies != null) { this.policies.clear(); _visitables.remove("policies"); @@ -147,114 +336,37 @@ public A withPolicies(io.kubernetes.client.openapi.models.V2HPAScalingPolicy... return (A) this; } - public boolean hasPolicies() { - return this.policies != null && !this.policies.isEmpty(); - } - - public PoliciesNested addNewPolicy() { - return new PoliciesNested(-1, null); - } - - public PoliciesNested addNewPolicyLike(V2HPAScalingPolicy item) { - return new PoliciesNested(-1, item); - } - - public PoliciesNested setNewPolicyLike(int index,V2HPAScalingPolicy item) { - return new PoliciesNested(index, item); - } - - public PoliciesNested editPolicy(int index) { - if (policies.size() <= index) throw new RuntimeException("Can't edit policies. Index exceeds size."); - return setNewPolicyLike(index, buildPolicy(index)); - } - - public PoliciesNested editFirstPolicy() { - if (policies.size() == 0) throw new RuntimeException("Can't edit first policies. The list is empty."); - return setNewPolicyLike(0, buildPolicy(0)); - } - - public PoliciesNested editLastPolicy() { - int index = policies.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last policies. The list is empty."); - return setNewPolicyLike(index, buildPolicy(index)); - } - - public PoliciesNested editMatchingPolicy(Predicate predicate) { - int index = -1; - for (int i=0;i extends V2HPAScalingPolicyFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(policies, selectPolicy, stabilizationWindowSeconds, super.hashCode()); - } + V2HPAScalingPolicyBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - 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); } - sb.append("}"); - return sb.toString(); - } - public class PoliciesNested extends V2HPAScalingPolicyFluent> implements Nested{ PoliciesNested(int index,V2HPAScalingPolicy item) { this.index = index; this.builder = new V2HPAScalingPolicyBuilder(this, item); } - V2HPAScalingPolicyBuilder builder; - int index; - + public N and() { - return (N) V2HPAScalingRulesFluent.this.setToPolicies(index,builder.build()); + return (N) V2HPAScalingRulesFluent.this.setToPolicies(index, builder.build()); } public N endPolicy() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java index 6b0e41693b..445ac2b790 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerBehaviorBuilder extends V2HorizontalPodAutoscalerBehaviorFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerBehaviorFluent fluent; + public V2HorizontalPodAutoscalerBehaviorBuilder() { this(new V2HorizontalPodAutoscalerBehavior()); } @@ -10,17 +14,16 @@ public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehavio this(fluent, new V2HorizontalPodAutoscalerBehavior()); } - public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehaviorFluent fluent,V2HorizontalPodAutoscalerBehavior instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehavior instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerBehaviorFluent fluent; + public V2HorizontalPodAutoscalerBehaviorBuilder(V2HorizontalPodAutoscalerBehaviorFluent fluent,V2HorizontalPodAutoscalerBehavior instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerBehavior build() { V2HorizontalPodAutoscalerBehavior buildable = new V2HorizontalPodAutoscalerBehavior(); buildable.setScaleDown(fluent.buildScaleDown()); @@ -28,5 +31,4 @@ public V2HorizontalPodAutoscalerBehavior build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java index fd484e2f98..6dd793b742 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java @@ -1,141 +1,165 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerBehaviorFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerBehaviorFluent> extends BaseFluent{ + + private V2HPAScalingRulesBuilder scaleDown; + private V2HPAScalingRulesBuilder scaleUp; + public V2HorizontalPodAutoscalerBehaviorFluent() { } public V2HorizontalPodAutoscalerBehaviorFluent(V2HorizontalPodAutoscalerBehavior instance) { this.copyInstance(instance); } - private V2HPAScalingRulesBuilder scaleDown; - private V2HPAScalingRulesBuilder scaleUp; - - protected void copyInstance(V2HorizontalPodAutoscalerBehavior instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerBehavior()); - if (instance != null) { - this.withScaleDown(instance.getScaleDown()); - this.withScaleUp(instance.getScaleUp()); - } - } - + public V2HPAScalingRules buildScaleDown() { return this.scaleDown != null ? this.scaleDown.build() : null; } - public A withScaleDown(V2HPAScalingRules scaleDown) { - this._visitables.remove("scaleDown"); - if (scaleDown != null) { - this.scaleDown = new V2HPAScalingRulesBuilder(scaleDown); - this._visitables.get("scaleDown").add(this.scaleDown); - } else { - this.scaleDown = null; - this._visitables.get("scaleDown").remove(this.scaleDown); - } - return (A) this; + public V2HPAScalingRules buildScaleUp() { + return this.scaleUp != null ? this.scaleUp.build() : null; } - public boolean hasScaleDown() { - return this.scaleDown != null; + protected void copyInstance(V2HorizontalPodAutoscalerBehavior instance) { + instance = instance != null ? instance : new V2HorizontalPodAutoscalerBehavior(); + if (instance != null) { + this.withScaleDown(instance.getScaleDown()); + this.withScaleUp(instance.getScaleUp()); + } } - public ScaleDownNested withNewScaleDown() { - return new ScaleDownNested(null); + public ScaleDownNested editOrNewScaleDown() { + return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(new V2HPAScalingRulesBuilder().build())); } - public ScaleDownNested withNewScaleDownLike(V2HPAScalingRules item) { - return new ScaleDownNested(item); + public ScaleDownNested editOrNewScaleDownLike(V2HPAScalingRules item) { + return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(item)); } - public ScaleDownNested editScaleDown() { - return withNewScaleDownLike(java.util.Optional.ofNullable(buildScaleDown()).orElse(null)); + public ScaleUpNested editOrNewScaleUp() { + return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(new V2HPAScalingRulesBuilder().build())); } - public ScaleDownNested editOrNewScaleDown() { - return withNewScaleDownLike(java.util.Optional.ofNullable(buildScaleDown()).orElse(new V2HPAScalingRulesBuilder().build())); + public ScaleUpNested editOrNewScaleUpLike(V2HPAScalingRules item) { + return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(item)); } - public ScaleDownNested editOrNewScaleDownLike(V2HPAScalingRules item) { - return withNewScaleDownLike(java.util.Optional.ofNullable(buildScaleDown()).orElse(item)); + public ScaleDownNested editScaleDown() { + return this.withNewScaleDownLike(Optional.ofNullable(this.buildScaleDown()).orElse(null)); } - public V2HPAScalingRules buildScaleUp() { - return this.scaleUp != null ? this.scaleUp.build() : null; + public ScaleUpNested editScaleUp() { + return this.withNewScaleUpLike(Optional.ofNullable(this.buildScaleUp()).orElse(null)); } - public A withScaleUp(V2HPAScalingRules scaleUp) { - this._visitables.remove("scaleUp"); - if (scaleUp != null) { - this.scaleUp = new V2HPAScalingRulesBuilder(scaleUp); - this._visitables.get("scaleUp").add(this.scaleUp); - } else { - this.scaleUp = null; - this._visitables.get("scaleUp").remove(this.scaleUp); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HorizontalPodAutoscalerBehaviorFluent that = (V2HorizontalPodAutoscalerBehaviorFluent) o; + if (!(Objects.equals(scaleDown, that.scaleDown))) { + return false; + } + if (!(Objects.equals(scaleUp, that.scaleUp))) { + return false; + } + return true; + } + + public boolean hasScaleDown() { + return this.scaleDown != null; } public boolean hasScaleUp() { return this.scaleUp != null; } - public ScaleUpNested withNewScaleUp() { - return new ScaleUpNested(null); + public int hashCode() { + return Objects.hash(scaleDown, scaleUp); } - public ScaleUpNested withNewScaleUpLike(V2HPAScalingRules item) { - return new ScaleUpNested(item); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(scaleDown == null)) { + sb.append("scaleDown:"); + sb.append(scaleDown); + sb.append(","); + } + if (!(scaleUp == null)) { + sb.append("scaleUp:"); + sb.append(scaleUp); + } + sb.append("}"); + return sb.toString(); } - public ScaleUpNested editScaleUp() { - return withNewScaleUpLike(java.util.Optional.ofNullable(buildScaleUp()).orElse(null)); + public ScaleDownNested withNewScaleDown() { + return new ScaleDownNested(null); } - public ScaleUpNested editOrNewScaleUp() { - return withNewScaleUpLike(java.util.Optional.ofNullable(buildScaleUp()).orElse(new V2HPAScalingRulesBuilder().build())); + public ScaleDownNested withNewScaleDownLike(V2HPAScalingRules item) { + return new ScaleDownNested(item); } - public ScaleUpNested editOrNewScaleUpLike(V2HPAScalingRules item) { - return withNewScaleUpLike(java.util.Optional.ofNullable(buildScaleUp()).orElse(item)); + public ScaleUpNested withNewScaleUp() { + return new ScaleUpNested(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; - V2HorizontalPodAutoscalerBehaviorFluent that = (V2HorizontalPodAutoscalerBehaviorFluent) o; - if (!java.util.Objects.equals(scaleDown, that.scaleDown)) return false; - if (!java.util.Objects.equals(scaleUp, that.scaleUp)) return false; - return true; + public ScaleUpNested withNewScaleUpLike(V2HPAScalingRules item) { + return new ScaleUpNested(item); } - public int hashCode() { - return java.util.Objects.hash(scaleDown, scaleUp, super.hashCode()); + public A withScaleDown(V2HPAScalingRules scaleDown) { + this._visitables.remove("scaleDown"); + if (scaleDown != null) { + this.scaleDown = new V2HPAScalingRulesBuilder(scaleDown); + this._visitables.get("scaleDown").add(this.scaleDown); + } else { + this.scaleDown = null; + this._visitables.get("scaleDown").remove(this.scaleDown); + } + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (scaleDown != null) { sb.append("scaleDown:"); sb.append(scaleDown + ","); } - if (scaleUp != null) { sb.append("scaleUp:"); sb.append(scaleUp); } - sb.append("}"); - return sb.toString(); + public A withScaleUp(V2HPAScalingRules scaleUp) { + this._visitables.remove("scaleUp"); + if (scaleUp != null) { + this.scaleUp = new V2HPAScalingRulesBuilder(scaleUp); + this._visitables.get("scaleUp").add(this.scaleUp); + } else { + this.scaleUp = null; + this._visitables.get("scaleUp").remove(this.scaleUp); + } + return (A) this; } public class ScaleDownNested extends V2HPAScalingRulesFluent> implements Nested{ + + V2HPAScalingRulesBuilder builder; + ScaleDownNested(V2HPAScalingRules item) { this.builder = new V2HPAScalingRulesBuilder(this, item); } - V2HPAScalingRulesBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerBehaviorFluent.this.withScaleDown(builder.build()); } @@ -144,14 +168,15 @@ public N endScaleDown() { return and(); } - } public class ScaleUpNested extends V2HPAScalingRulesFluent> implements Nested{ + + V2HPAScalingRulesBuilder builder; + ScaleUpNested(V2HPAScalingRules item) { this.builder = new V2HPAScalingRulesBuilder(this, item); } - V2HPAScalingRulesBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerBehaviorFluent.this.withScaleUp(builder.build()); } @@ -160,7 +185,5 @@ public N endScaleUp() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java index 9c5037028e..57f9ceb026 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerBuilder extends V2HorizontalPodAutoscalerFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerFluent fluent; + public V2HorizontalPodAutoscalerBuilder() { this(new V2HorizontalPodAutoscaler()); } @@ -10,17 +14,16 @@ public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluen this(fluent, new V2HorizontalPodAutoscaler()); } - public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluent,V2HorizontalPodAutoscaler instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscaler instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerFluent fluent; + public V2HorizontalPodAutoscalerBuilder(V2HorizontalPodAutoscalerFluent fluent,V2HorizontalPodAutoscaler instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscaler build() { V2HorizontalPodAutoscaler buildable = new V2HorizontalPodAutoscaler(); buildable.setApiVersion(fluent.getApiVersion()); @@ -31,5 +34,4 @@ public V2HorizontalPodAutoscaler build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java index cc2f2b61a5..d6fcce91ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerConditionBuilder extends V2HorizontalPodAutoscalerConditionFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerConditionFluent fluent; + public V2HorizontalPodAutoscalerConditionBuilder() { this(new V2HorizontalPodAutoscalerCondition()); } @@ -10,17 +14,16 @@ public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerCondit this(fluent, new V2HorizontalPodAutoscalerCondition()); } - public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerConditionFluent fluent,V2HorizontalPodAutoscalerCondition instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerCondition instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerConditionFluent fluent; + public V2HorizontalPodAutoscalerConditionBuilder(V2HorizontalPodAutoscalerConditionFluent fluent,V2HorizontalPodAutoscalerCondition instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerCondition build() { V2HorizontalPodAutoscalerCondition buildable = new V2HorizontalPodAutoscalerCondition(); buildable.setLastTransitionTime(fluent.getLastTransitionTime()); @@ -31,5 +34,4 @@ public V2HorizontalPodAutoscalerCondition build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java index f817f3593a..be68710bf4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java @@ -1,132 +1,170 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerConditionFluent> extends BaseFluent{ - public V2HorizontalPodAutoscalerConditionFluent() { - } - - public V2HorizontalPodAutoscalerConditionFluent(V2HorizontalPodAutoscalerCondition instance) { - this.copyInstance(instance); - } +public class V2HorizontalPodAutoscalerConditionFluent> extends BaseFluent{ + private OffsetDateTime lastTransitionTime; private String message; private String reason; private String status; private String type; + + public V2HorizontalPodAutoscalerConditionFluent() { + } + public V2HorizontalPodAutoscalerConditionFluent(V2HorizontalPodAutoscalerCondition instance) { + this.copyInstance(instance); + } + protected void copyInstance(V2HorizontalPodAutoscalerCondition instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerCondition()); + instance = instance != null ? instance : new V2HorizontalPodAutoscalerCondition(); if (instance != null) { - this.withLastTransitionTime(instance.getLastTransitionTime()); - this.withMessage(instance.getMessage()); - this.withReason(instance.getReason()); - this.withStatus(instance.getStatus()); - this.withType(instance.getType()); - } + 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 equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HorizontalPodAutoscalerConditionFluent that = (V2HorizontalPodAutoscalerConditionFluent) o; + if (!(Objects.equals(lastTransitionTime, that.lastTransitionTime))) { + return false; + } + if (!(Objects.equals(message, that.message))) { + return false; + } + if (!(Objects.equals(reason, that.reason))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasLastTransitionTime() { - return this.lastTransitionTime != null; + public OffsetDateTime getLastTransitionTime() { + return this.lastTransitionTime; } public String getMessage() { return this.message; } - public A withMessage(String message) { - this.message = message; - return (A) this; + public String getReason() { + return this.reason; } - public boolean hasMessage() { - return this.message != null; + public String getStatus() { + return this.status; } - public String getReason() { - return this.reason; + public String getType() { + return this.type; } - public A withReason(String reason) { - this.reason = reason; - return (A) this; + public boolean hasLastTransitionTime() { + return this.lastTransitionTime != null; + } + + public boolean hasMessage() { + return this.message != null; } public boolean hasReason() { return this.reason != null; } - public String getStatus() { - return this.status; + public boolean hasStatus() { + return this.status != null; } - public A withStatus(String status) { - this.status = status; - return (A) this; + public boolean hasType() { + return this.type != null; } - public boolean hasStatus() { - return this.status != null; + public int hashCode() { + return Objects.hash(lastTransitionTime, message, reason, status, type); } - public String getType() { - return this.type; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(lastTransitionTime == null)) { + sb.append("lastTransitionTime:"); + sb.append(lastTransitionTime); + sb.append(","); + } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } + if (!(reason == null)) { + sb.append("reason:"); + sb.append(reason); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); } - public A withType(String type) { - this.type = type; + public A withLastTransitionTime(OffsetDateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return (A) this; } - public boolean hasType() { - return this.type != null; + public A withMessage(String message) { + this.message = message; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V2HorizontalPodAutoscalerConditionFluent that = (V2HorizontalPodAutoscalerConditionFluent) 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 A withReason(String reason) { + this.reason = reason; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(lastTransitionTime, message, reason, status, type, super.hashCode()); + public A withStatus(String status) { + this.status = status; + return (A) this; } - 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(); + public A withType(String type) { + this.type = type; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java index 70b312c08a..de89b9a72c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java @@ -1,67 +1,192 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V2HorizontalPodAutoscalerSpecBuilder spec; + private V2HorizontalPodAutoscalerStatusBuilder status; + public V2HorizontalPodAutoscalerFluent() { } public V2HorizontalPodAutoscalerFluent(V2HorizontalPodAutoscaler instance) { this.copyInstance(instance); } - private String apiVersion; - private String kind; - private V1ObjectMetaBuilder metadata; - private V2HorizontalPodAutoscalerSpecBuilder spec; - private V2HorizontalPodAutoscalerStatusBuilder status; + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V2HorizontalPodAutoscalerSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V2HorizontalPodAutoscalerStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } protected void copyInstance(V2HorizontalPodAutoscaler instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscaler()); + instance = instance != null ? instance : new V2HorizontalPodAutoscaler(); if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - this.withSpec(instance.getSpec()); - this.withStatus(instance.getStatus()); - } + 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 MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V2HorizontalPodAutoscalerSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V2HorizontalPodAutoscalerSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V2HorizontalPodAutoscalerStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V2HorizontalPodAutoscalerStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HorizontalPodAutoscalerFluent that = (V2HorizontalPodAutoscalerFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; } public String getKind() { return this.kind; } - public A withKind(String kind) { - this.kind = kind; - return (A) this; + public boolean hasApiVersion() { + return this.apiVersion != null; } public boolean hasKind() { return this.kind != null; } - public V1ObjectMeta buildMetadata() { - return this.metadata != null ? this.metadata.build() : null; + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; } public A withMetadata(V1ObjectMeta metadata) { @@ -76,10 +201,6 @@ public A withMetadata(V1ObjectMeta metadata) { return (A) this; } - public boolean hasMetadata() { - return this.metadata != null; - } - public MetadataNested withNewMetadata() { return new MetadataNested(null); } @@ -88,20 +209,20 @@ public MetadataNested withNewMetadataLike(V1ObjectMeta item) { return new MetadataNested(item); } - public MetadataNested editMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(null)); + public SpecNested withNewSpec() { + return new SpecNested(null); } - public MetadataNested editOrNewMetadata() { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + public SpecNested withNewSpecLike(V2HorizontalPodAutoscalerSpec item) { + return new SpecNested(item); } - public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { - return withNewMetadataLike(java.util.Optional.ofNullable(buildMetadata()).orElse(item)); + public StatusNested withNewStatus() { + return new StatusNested(null); } - public V2HorizontalPodAutoscalerSpec buildSpec() { - return this.spec != null ? this.spec.build() : null; + public StatusNested withNewStatusLike(V2HorizontalPodAutoscalerStatus item) { + return new StatusNested(item); } public A withSpec(V2HorizontalPodAutoscalerSpec spec) { @@ -116,34 +237,6 @@ public A withSpec(V2HorizontalPodAutoscalerSpec spec) { return (A) this; } - public boolean hasSpec() { - return this.spec != null; - } - - public SpecNested withNewSpec() { - return new SpecNested(null); - } - - public SpecNested withNewSpecLike(V2HorizontalPodAutoscalerSpec 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 V2HorizontalPodAutoscalerSpecBuilder().build())); - } - - public SpecNested editOrNewSpecLike(V2HorizontalPodAutoscalerSpec item) { - return withNewSpecLike(java.util.Optional.ofNullable(buildSpec()).orElse(item)); - } - - public V2HorizontalPodAutoscalerStatus buildStatus() { - return this.status != null ? this.status.build() : null; - } - public A withStatus(V2HorizontalPodAutoscalerStatus status) { this._visitables.remove("status"); if (status != null) { @@ -155,65 +248,14 @@ public A withStatus(V2HorizontalPodAutoscalerStatus status) { } return (A) this; } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ - public boolean hasStatus() { - return this.status != null; - } - - public StatusNested withNewStatus() { - return new StatusNested(null); - } - - public StatusNested withNewStatusLike(V2HorizontalPodAutoscalerStatus 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 V2HorizontalPodAutoscalerStatusBuilder().build())); - } - - public StatusNested editOrNewStatusLike(V2HorizontalPodAutoscalerStatus 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; - V2HorizontalPodAutoscalerFluent that = (V2HorizontalPodAutoscalerFluent) 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()); - } + V1ObjectMetaBuilder builder; - 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) V2HorizontalPodAutoscalerFluent.this.withMetadata(builder.build()); } @@ -222,14 +264,15 @@ public N endMetadata() { return and(); } - } public class SpecNested extends V2HorizontalPodAutoscalerSpecFluent> implements Nested{ + + V2HorizontalPodAutoscalerSpecBuilder builder; + SpecNested(V2HorizontalPodAutoscalerSpec item) { this.builder = new V2HorizontalPodAutoscalerSpecBuilder(this, item); } - V2HorizontalPodAutoscalerSpecBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerFluent.this.withSpec(builder.build()); } @@ -238,14 +281,15 @@ public N endSpec() { return and(); } - } public class StatusNested extends V2HorizontalPodAutoscalerStatusFluent> implements Nested{ + + V2HorizontalPodAutoscalerStatusBuilder builder; + StatusNested(V2HorizontalPodAutoscalerStatus item) { this.builder = new V2HorizontalPodAutoscalerStatusBuilder(this, item); } - V2HorizontalPodAutoscalerStatusBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerFluent.this.withStatus(builder.build()); } @@ -254,7 +298,5 @@ public N endStatus() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java index 27b3eb929e..2c7ff1ed76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerListBuilder extends V2HorizontalPodAutoscalerListFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerListFluent fluent; + public V2HorizontalPodAutoscalerListBuilder() { this(new V2HorizontalPodAutoscalerList()); } @@ -10,17 +14,16 @@ public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent< this(fluent, new V2HorizontalPodAutoscalerList()); } - public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent fluent,V2HorizontalPodAutoscalerList instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerList instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerListFluent fluent; + public V2HorizontalPodAutoscalerListBuilder(V2HorizontalPodAutoscalerListFluent fluent,V2HorizontalPodAutoscalerList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerList build() { V2HorizontalPodAutoscalerList buildable = new V2HorizontalPodAutoscalerList(); buildable.setApiVersion(fluent.getApiVersion()); @@ -30,5 +33,4 @@ public V2HorizontalPodAutoscalerList build() { return buildable; } - } \ No newline at end of file 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..6f98895cc7 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 @@ -1,127 +1,216 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; -import java.util.Iterator; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; import java.util.Collection; -import java.lang.Object; +import java.util.Iterator; import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerListFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + public V2HorizontalPodAutoscalerListFluent() { } public V2HorizontalPodAutoscalerListFluent(V2HorizontalPodAutoscalerList instance) { this.copyInstance(instance); } - private String apiVersion; - private ArrayList items; - private String kind; - private V1ListMetaBuilder metadata; - - protected void copyInstance(V2HorizontalPodAutoscalerList instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerList()); - if (instance != null) { - this.withApiVersion(instance.getApiVersion()); - this.withItems(instance.getItems()); - this.withKind(instance.getKind()); - this.withMetadata(instance.getMetadata()); - } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } - public String getApiVersion() { - return this.apiVersion; + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); } - public A withApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return (A) this; + public ItemsNested addNewItemLike(V2HorizontalPodAutoscaler item) { + return new ItemsNested(-1, item); } - public boolean hasApiVersion() { - return this.apiVersion != null; + public A addToItems(V2HorizontalPodAutoscaler... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; } public A addToItems(int index,V2HorizontalPodAutoscaler item) { - if (this.items == null) {this.items = new ArrayList();} + 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);} - return (A)this; + 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);} - return (A)this; + public V2HorizontalPodAutoscaler buildFirstItem() { + return this.items.get(0).build(); } - public A addToItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { - if (this.items == null) {this.items = new ArrayList();} - for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public V2HorizontalPodAutoscaler buildItem(int index) { + return this.items.get(index).build(); } - public A addAllToItems(Collection items) { - if (this.items == null) {this.items = new ArrayList();} - for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").add(builder);this.items.add(builder);} return (A)this; + public List buildItems() { + return this.items != null ? build(items) : null; } - public A removeFromItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { - if (this.items == null) return (A)this; - for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V2HorizontalPodAutoscaler buildLastItem() { + return this.items.get(items.size() - 1).build(); } - public A removeAllFromItems(Collection items) { - if (this.items == null) return (A)this; - for (V2HorizontalPodAutoscaler item : items) {V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item);_visitables.get("items").remove(builder); this.items.remove(builder);} return (A)this; + public V2HorizontalPodAutoscaler buildMatchingItem(Predicate predicate) { + for (V2HorizontalPodAutoscalerBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; } - 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()) { - V2HorizontalPodAutoscalerBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V2HorizontalPodAutoscalerList instance) { + instance = instance != null ? instance : new V2HorizontalPodAutoscalerList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; } } - return (A)this; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); } - public List buildItems() { - return this.items != null ? build(items) : null; + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); } - public V2HorizontalPodAutoscaler buildItem(int index) { - return this.items.get(index).build(); + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); } - public V2HorizontalPodAutoscaler buildFirstItem() { - return this.items.get(0).build(); + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); } - public V2HorizontalPodAutoscaler buildLastItem() { - return this.items.get(items.size() - 1).build(); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HorizontalPodAutoscalerListFluent that = (V2HorizontalPodAutoscalerListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; } - public V2HorizontalPodAutoscaler buildMatchingItem(Predicate predicate) { - for (V2HorizontalPodAutoscalerBuilder item : items) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; } public boolean hasMatchingItem(Predicate predicate) { @@ -133,6 +222,104 @@ public boolean hasMatchingItem(Predicate predi return false; } + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V2HorizontalPodAutoscaler... items) { + if (this.items == null) { + return (A) this; + } + for (V2HorizontalPodAutoscaler item : items) { + V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = _visitables.get("items"); + while (each.hasNext()) { + V2HorizontalPodAutoscalerBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V2HorizontalPodAutoscaler item) { + return new ItemsNested(index, item); + } + + 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").add(builder); + items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); @@ -148,7 +335,7 @@ public A withItems(List items) { return (A) this; } - public A withItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler... items) { + public A withItems(V2HorizontalPodAutoscaler... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); @@ -161,64 +348,11 @@ public A withItems(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscaler return (A) this; } - public boolean hasItems() { - return this.items != null && !this.items.isEmpty(); - } - - public ItemsNested addNewItem() { - return new ItemsNested(-1, null); - } - - public ItemsNested addNewItemLike(V2HorizontalPodAutoscaler item) { - return new ItemsNested(-1, item); - } - - public ItemsNested setNewItemLike(int index,V2HorizontalPodAutoscaler 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); } @@ -242,69 +372,33 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } + public class ItemsNested extends V2HorizontalPodAutoscalerFluent> implements Nested{ - 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; - V2HorizontalPodAutoscalerListFluent that = (V2HorizontalPodAutoscalerListFluent) 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()); - } + V2HorizontalPodAutoscalerBuilder builder; + int index; - 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 V2HorizontalPodAutoscalerFluent> implements Nested{ ItemsNested(int index,V2HorizontalPodAutoscaler item) { this.index = index; this.builder = new V2HorizontalPodAutoscalerBuilder(this, item); } - V2HorizontalPodAutoscalerBuilder builder; - int index; - + public N and() { - return (N) V2HorizontalPodAutoscalerListFluent.this.setToItems(index,builder.build()); + return (N) V2HorizontalPodAutoscalerListFluent.this.setToItems(index, builder.build()); } public N endItem() { return and(); } - } public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + MetadataNested(V1ListMeta item) { this.builder = new V1ListMetaBuilder(this, item); } - V1ListMetaBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerListFluent.this.withMetadata(builder.build()); } @@ -313,7 +407,5 @@ public N endMetadata() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java index 00de8c8f39..b81e58b414 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerSpecBuilder extends V2HorizontalPodAutoscalerSpecFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerSpecFluent fluent; + public V2HorizontalPodAutoscalerSpecBuilder() { this(new V2HorizontalPodAutoscalerSpec()); } @@ -10,17 +14,16 @@ public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent< this(fluent, new V2HorizontalPodAutoscalerSpec()); } - public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent fluent,V2HorizontalPodAutoscalerSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpec instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerSpecFluent fluent; + public V2HorizontalPodAutoscalerSpecBuilder(V2HorizontalPodAutoscalerSpecFluent fluent,V2HorizontalPodAutoscalerSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerSpec build() { V2HorizontalPodAutoscalerSpec buildable = new V2HorizontalPodAutoscalerSpec(); buildable.setBehavior(fluent.buildBehavior()); @@ -31,5 +34,4 @@ public V2HorizontalPodAutoscalerSpec build() { return buildable; } - } \ No newline at end of file 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..0b31ac5cc1 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 @@ -1,179 +1,366 @@ package io.kubernetes.client.openapi.models; -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.SuppressWarnings; +import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.fluent.Nested; -import java.util.ArrayList; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; import java.lang.String; -import java.util.function.Predicate; -import io.kubernetes.client.fluent.BaseFluent; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; import java.util.Iterator; import java.util.List; -import java.lang.Integer; -import java.util.Collection; -import java.lang.Object; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ +public class V2HorizontalPodAutoscalerSpecFluent> extends BaseFluent{ + + private V2HorizontalPodAutoscalerBehaviorBuilder behavior; + private Integer maxReplicas; + private ArrayList metrics; + private Integer minReplicas; + private V2CrossVersionObjectReferenceBuilder scaleTargetRef; + public V2HorizontalPodAutoscalerSpecFluent() { } public V2HorizontalPodAutoscalerSpecFluent(V2HorizontalPodAutoscalerSpec instance) { this.copyInstance(instance); } - private V2HorizontalPodAutoscalerBehaviorBuilder behavior; - private Integer maxReplicas; - private ArrayList metrics; - private Integer minReplicas; - private V2CrossVersionObjectReferenceBuilder scaleTargetRef; + + public A addAllToMetrics(Collection items) { + if (this.metrics == null) { + this.metrics = new ArrayList(); + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").add(builder); + this.metrics.add(builder); + } + return (A) this; + } - protected void copyInstance(V2HorizontalPodAutoscalerSpec instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerSpec()); - if (instance != null) { - this.withBehavior(instance.getBehavior()); - this.withMaxReplicas(instance.getMaxReplicas()); - this.withMetrics(instance.getMetrics()); - this.withMinReplicas(instance.getMinReplicas()); - this.withScaleTargetRef(instance.getScaleTargetRef()); - } + public MetricsNested addNewMetric() { + return new MetricsNested(-1, null); } - public V2HorizontalPodAutoscalerBehavior buildBehavior() { - return this.behavior != null ? this.behavior.build() : null; + public MetricsNested addNewMetricLike(V2MetricSpec item) { + return new MetricsNested(-1, item); } - public A withBehavior(V2HorizontalPodAutoscalerBehavior behavior) { - this._visitables.remove("behavior"); - if (behavior != null) { - this.behavior = new V2HorizontalPodAutoscalerBehaviorBuilder(behavior); - this._visitables.get("behavior").add(this.behavior); + public A addToMetrics(V2MetricSpec... items) { + if (this.metrics == null) { + this.metrics = new ArrayList(); + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").add(builder); + this.metrics.add(builder); + } + return (A) this; + } + + 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 { - this.behavior = null; - this._visitables.get("behavior").remove(this.behavior); + _visitables.get("metrics").add(builder); + metrics.add(index, builder); } return (A) this; } - public boolean hasBehavior() { - return this.behavior != null; + public V2HorizontalPodAutoscalerBehavior buildBehavior() { + return this.behavior != null ? this.behavior.build() : null; } - public BehaviorNested withNewBehavior() { - return new BehaviorNested(null); + public V2MetricSpec buildFirstMetric() { + return this.metrics.get(0).build(); } - public BehaviorNested withNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { - return new BehaviorNested(item); + public V2MetricSpec buildLastMetric() { + return this.metrics.get(metrics.size() - 1).build(); + } + + public V2MetricSpec buildMatchingMetric(Predicate predicate) { + for (V2MetricSpecBuilder item : metrics) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V2MetricSpec buildMetric(int index) { + return this.metrics.get(index).build(); + } + + public List buildMetrics() { + return this.metrics != null ? build(metrics) : null; + } + + public V2CrossVersionObjectReference buildScaleTargetRef() { + return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; + } + + protected void copyInstance(V2HorizontalPodAutoscalerSpec instance) { + instance = instance != null ? instance : new V2HorizontalPodAutoscalerSpec(); + if (instance != null) { + this.withBehavior(instance.getBehavior()); + this.withMaxReplicas(instance.getMaxReplicas()); + this.withMetrics(instance.getMetrics()); + this.withMinReplicas(instance.getMinReplicas()); + this.withScaleTargetRef(instance.getScaleTargetRef()); + } } public BehaviorNested editBehavior() { - return withNewBehaviorLike(java.util.Optional.ofNullable(buildBehavior()).orElse(null)); + return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(null)); + } + + public MetricsNested editFirstMetric() { + if (metrics.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "metrics")); + } + return this.setNewMetricLike(0, this.buildMetric(0)); + } + + public MetricsNested editLastMetric() { + int index = metrics.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "metrics")); + } + return this.setNewMetricLike(index, this.buildMetric(index)); + } + + public MetricsNested editMatchingMetric(Predicate predicate) { + int index = -1; + for (int i = 0;i < metrics.size();i++) { + if (predicate.test(metrics.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "metrics")); + } + return this.setNewMetricLike(index, this.buildMetric(index)); + } + + public MetricsNested editMetric(int index) { + if (metrics.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "metrics")); + } + return this.setNewMetricLike(index, this.buildMetric(index)); } public BehaviorNested editOrNewBehavior() { - return withNewBehaviorLike(java.util.Optional.ofNullable(buildBehavior()).orElse(new V2HorizontalPodAutoscalerBehaviorBuilder().build())); + return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(new V2HorizontalPodAutoscalerBehaviorBuilder().build())); } public BehaviorNested editOrNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { - return withNewBehaviorLike(java.util.Optional.ofNullable(buildBehavior()).orElse(item)); + return this.withNewBehaviorLike(Optional.ofNullable(this.buildBehavior()).orElse(item)); + } + + public ScaleTargetRefNested editOrNewScaleTargetRef() { + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); + } + + public ScaleTargetRefNested editOrNewScaleTargetRefLike(V2CrossVersionObjectReference item) { + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(item)); + } + + public ScaleTargetRefNested editScaleTargetRef() { + return this.withNewScaleTargetRefLike(Optional.ofNullable(this.buildScaleTargetRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HorizontalPodAutoscalerSpecFluent that = (V2HorizontalPodAutoscalerSpecFluent) o; + if (!(Objects.equals(behavior, that.behavior))) { + return false; + } + if (!(Objects.equals(maxReplicas, that.maxReplicas))) { + return false; + } + if (!(Objects.equals(metrics, that.metrics))) { + return false; + } + if (!(Objects.equals(minReplicas, that.minReplicas))) { + return false; + } + if (!(Objects.equals(scaleTargetRef, that.scaleTargetRef))) { + return false; + } + return true; } public Integer getMaxReplicas() { return this.maxReplicas; } - public A withMaxReplicas(Integer maxReplicas) { - this.maxReplicas = maxReplicas; - return (A) this; + public Integer getMinReplicas() { + return this.minReplicas; + } + + public boolean hasBehavior() { + return this.behavior != null; + } + + public boolean hasMatchingMetric(Predicate predicate) { + for (V2MetricSpecBuilder item : metrics) { + if (predicate.test(item)) { + return true; + } + } + return false; } public boolean hasMaxReplicas() { return this.maxReplicas != null; } - 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);} - return (A)this; + public boolean hasMetrics() { + return this.metrics != null && !(this.metrics.isEmpty()); } - 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);} - return (A)this; + public boolean hasMinReplicas() { + return this.minReplicas != null; } - public A addToMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items) { - if (this.metrics == null) {this.metrics = new ArrayList();} - for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").add(builder);this.metrics.add(builder);} return (A)this; + public boolean hasScaleTargetRef() { + return this.scaleTargetRef != null; } - public A addAllToMetrics(Collection items) { - if (this.metrics == null) {this.metrics = new ArrayList();} - for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").add(builder);this.metrics.add(builder);} return (A)this; + public int hashCode() { + return Objects.hash(behavior, maxReplicas, metrics, minReplicas, scaleTargetRef); } - public A removeFromMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... items) { - if (this.metrics == null) return (A)this; - for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").remove(builder); this.metrics.remove(builder);} return (A)this; + public A removeAllFromMetrics(Collection items) { + if (this.metrics == null) { + return (A) this; + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").remove(builder); + this.metrics.remove(builder); + } + return (A) this; } - public A removeAllFromMetrics(Collection items) { - if (this.metrics == null) return (A)this; - for (V2MetricSpec item : items) {V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item);_visitables.get("metrics").remove(builder); this.metrics.remove(builder);} return (A)this; + public A removeFromMetrics(V2MetricSpec... items) { + if (this.metrics == null) { + return (A) this; + } + for (V2MetricSpec item : items) { + V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); + _visitables.get("metrics").remove(builder); + this.metrics.remove(builder); + } + return (A) this; } public A removeMatchingFromMetrics(Predicate predicate) { - if (metrics == null) return (A) this; - final Iterator each = metrics.iterator(); - final List visitables = _visitables.get("metrics"); + if (metrics == null) { + return (A) this; + } + Iterator each = metrics.iterator(); + List visitables = _visitables.get("metrics"); while (each.hasNext()) { - V2MetricSpecBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + V2MetricSpecBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } } - return (A)this; - } - - public List buildMetrics() { - return this.metrics != null ? build(metrics) : null; + return (A) this; } - public V2MetricSpec buildMetric(int index) { - return this.metrics.get(index).build(); + public MetricsNested setNewMetricLike(int index,V2MetricSpec item) { + return new MetricsNested(index, item); } - public V2MetricSpec buildFirstMetric() { - return this.metrics.get(0).build(); + 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").add(builder); + metrics.set(index, builder); + } + return (A) this; } - public V2MetricSpec buildLastMetric() { - return this.metrics.get(metrics.size() - 1).build(); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(behavior == null)) { + sb.append("behavior:"); + sb.append(behavior); + sb.append(","); + } + if (!(maxReplicas == null)) { + sb.append("maxReplicas:"); + sb.append(maxReplicas); + sb.append(","); + } + if (!(metrics == null) && !(metrics.isEmpty())) { + sb.append("metrics:"); + sb.append(metrics); + sb.append(","); + } + if (!(minReplicas == null)) { + sb.append("minReplicas:"); + sb.append(minReplicas); + sb.append(","); + } + if (!(scaleTargetRef == null)) { + sb.append("scaleTargetRef:"); + sb.append(scaleTargetRef); + } + sb.append("}"); + return sb.toString(); } - public V2MetricSpec buildMatchingMetric(Predicate predicate) { - for (V2MetricSpecBuilder item : metrics) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; + public A withBehavior(V2HorizontalPodAutoscalerBehavior behavior) { + this._visitables.remove("behavior"); + if (behavior != null) { + this.behavior = new V2HorizontalPodAutoscalerBehaviorBuilder(behavior); + this._visitables.get("behavior").add(this.behavior); + } else { + this.behavior = null; + this._visitables.get("behavior").remove(this.behavior); + } + return (A) this; } - public boolean hasMatchingMetric(Predicate predicate) { - for (V2MetricSpecBuilder item : metrics) { - if (predicate.test(item)) { - return true; - } - } - return false; + public A withMaxReplicas(Integer maxReplicas) { + this.maxReplicas = maxReplicas; + return (A) this; } public A withMetrics(List metrics) { @@ -191,7 +378,7 @@ public A withMetrics(List metrics) { return (A) this; } - public A withMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... metrics) { + public A withMetrics(V2MetricSpec... metrics) { if (this.metrics != null) { this.metrics.clear(); _visitables.remove("metrics"); @@ -204,62 +391,25 @@ public A withMetrics(io.kubernetes.client.openapi.models.V2MetricSpec... metrics return (A) this; } - public boolean hasMetrics() { - return this.metrics != null && !this.metrics.isEmpty(); - } - - public MetricsNested addNewMetric() { - return new MetricsNested(-1, null); - } - - public MetricsNested addNewMetricLike(V2MetricSpec item) { - return new MetricsNested(-1, item); - } - - public MetricsNested setNewMetricLike(int index,V2MetricSpec item) { - return new MetricsNested(index, item); - } - - public MetricsNested editMetric(int index) { - if (metrics.size() <= index) throw new RuntimeException("Can't edit metrics. Index exceeds size."); - return setNewMetricLike(index, buildMetric(index)); - } - - public MetricsNested editFirstMetric() { - if (metrics.size() == 0) throw new RuntimeException("Can't edit first metrics. The list is empty."); - return setNewMetricLike(0, buildMetric(0)); - } - - public MetricsNested editLastMetric() { - int index = metrics.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last metrics. The list is empty."); - return setNewMetricLike(index, buildMetric(index)); - } - - public MetricsNested editMatchingMetric(Predicate predicate) { - int index = -1; - for (int i=0;i withNewBehavior() { + return new BehaviorNested(null); } - public A withMinReplicas(Integer minReplicas) { - this.minReplicas = minReplicas; - return (A) this; + public BehaviorNested withNewBehaviorLike(V2HorizontalPodAutoscalerBehavior item) { + return new BehaviorNested(item); } - public boolean hasMinReplicas() { - return this.minReplicas != null; + public ScaleTargetRefNested withNewScaleTargetRef() { + return new ScaleTargetRefNested(null); } - public V2CrossVersionObjectReference buildScaleTargetRef() { - return this.scaleTargetRef != null ? this.scaleTargetRef.build() : null; + public ScaleTargetRefNested withNewScaleTargetRefLike(V2CrossVersionObjectReference item) { + return new ScaleTargetRefNested(item); } public A withScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef) { @@ -273,65 +423,14 @@ public A withScaleTargetRef(V2CrossVersionObjectReference scaleTargetRef) { } return (A) this; } + public class BehaviorNested extends V2HorizontalPodAutoscalerBehaviorFluent> implements Nested{ - public boolean hasScaleTargetRef() { - return this.scaleTargetRef != null; - } - - public ScaleTargetRefNested withNewScaleTargetRef() { - return new ScaleTargetRefNested(null); - } - - public ScaleTargetRefNested withNewScaleTargetRefLike(V2CrossVersionObjectReference item) { - return new ScaleTargetRefNested(item); - } - - public ScaleTargetRefNested editScaleTargetRef() { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(null)); - } - - public ScaleTargetRefNested editOrNewScaleTargetRef() { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); - } - - public ScaleTargetRefNested editOrNewScaleTargetRefLike(V2CrossVersionObjectReference item) { - return withNewScaleTargetRefLike(java.util.Optional.ofNullable(buildScaleTargetRef()).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; - V2HorizontalPodAutoscalerSpecFluent that = (V2HorizontalPodAutoscalerSpecFluent) o; - if (!java.util.Objects.equals(behavior, that.behavior)) return false; - if (!java.util.Objects.equals(maxReplicas, that.maxReplicas)) return false; - if (!java.util.Objects.equals(metrics, that.metrics)) return false; - if (!java.util.Objects.equals(minReplicas, that.minReplicas)) return false; - if (!java.util.Objects.equals(scaleTargetRef, that.scaleTargetRef)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(behavior, maxReplicas, metrics, minReplicas, scaleTargetRef, super.hashCode()); - } + V2HorizontalPodAutoscalerBehaviorBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (behavior != null) { sb.append("behavior:"); sb.append(behavior + ","); } - if (maxReplicas != null) { sb.append("maxReplicas:"); sb.append(maxReplicas + ","); } - if (metrics != null && !metrics.isEmpty()) { sb.append("metrics:"); sb.append(metrics + ","); } - if (minReplicas != null) { sb.append("minReplicas:"); sb.append(minReplicas + ","); } - if (scaleTargetRef != null) { sb.append("scaleTargetRef:"); sb.append(scaleTargetRef); } - sb.append("}"); - return sb.toString(); - } - public class BehaviorNested extends V2HorizontalPodAutoscalerBehaviorFluent> implements Nested{ BehaviorNested(V2HorizontalPodAutoscalerBehavior item) { this.builder = new V2HorizontalPodAutoscalerBehaviorBuilder(this, item); } - V2HorizontalPodAutoscalerBehaviorBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerSpecFluent.this.withBehavior(builder.build()); } @@ -340,32 +439,34 @@ public N endBehavior() { return and(); } - } public class MetricsNested extends V2MetricSpecFluent> implements Nested{ + + V2MetricSpecBuilder builder; + int index; + MetricsNested(int index,V2MetricSpec item) { this.index = index; this.builder = new V2MetricSpecBuilder(this, item); } - V2MetricSpecBuilder builder; - int index; - + public N and() { - return (N) V2HorizontalPodAutoscalerSpecFluent.this.setToMetrics(index,builder.build()); + return (N) V2HorizontalPodAutoscalerSpecFluent.this.setToMetrics(index, builder.build()); } public N endMetric() { return and(); } - } public class ScaleTargetRefNested extends V2CrossVersionObjectReferenceFluent> implements Nested{ + + V2CrossVersionObjectReferenceBuilder builder; + ScaleTargetRefNested(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } - V2CrossVersionObjectReferenceBuilder builder; - + public N and() { return (N) V2HorizontalPodAutoscalerSpecFluent.this.withScaleTargetRef(builder.build()); } @@ -374,7 +475,5 @@ public N endScaleTargetRef() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java index 58f0a5d50f..8a4dc81851 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2HorizontalPodAutoscalerStatusBuilder extends V2HorizontalPodAutoscalerStatusFluent implements VisitableBuilder{ + + V2HorizontalPodAutoscalerStatusFluent fluent; + public V2HorizontalPodAutoscalerStatusBuilder() { this(new V2HorizontalPodAutoscalerStatus()); } @@ -10,17 +14,16 @@ public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFlu this(fluent, new V2HorizontalPodAutoscalerStatus()); } - public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFluent fluent,V2HorizontalPodAutoscalerStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2HorizontalPodAutoscalerStatusFluent fluent; + public V2HorizontalPodAutoscalerStatusBuilder(V2HorizontalPodAutoscalerStatusFluent fluent,V2HorizontalPodAutoscalerStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2HorizontalPodAutoscalerStatus build() { V2HorizontalPodAutoscalerStatus buildable = new V2HorizontalPodAutoscalerStatus(); buildable.setConditions(fluent.buildConditions()); @@ -32,5 +35,4 @@ public V2HorizontalPodAutoscalerStatus build() { return buildable; } - } \ No newline at end of file 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..aad7610fc4 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 @@ -1,114 +1,168 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Integer; -import java.time.OffsetDateTime; import java.lang.Long; -import java.util.Collection; import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; /** * Generated */ @SuppressWarnings("unchecked") -public class V2HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ - public V2HorizontalPodAutoscalerStatusFluent() { - } - - public V2HorizontalPodAutoscalerStatusFluent(V2HorizontalPodAutoscalerStatus instance) { - this.copyInstance(instance); - } +public class V2HorizontalPodAutoscalerStatusFluent> extends BaseFluent{ + private ArrayList conditions; private ArrayList currentMetrics; private Integer currentReplicas; private Integer desiredReplicas; private OffsetDateTime lastScaleTime; private Long observedGeneration; + + public V2HorizontalPodAutoscalerStatusFluent() { + } - protected void copyInstance(V2HorizontalPodAutoscalerStatus instance) { - instance = (instance != null ? instance : new V2HorizontalPodAutoscalerStatus()); - if (instance != null) { - this.withConditions(instance.getConditions()); - this.withCurrentMetrics(instance.getCurrentMetrics()); - this.withCurrentReplicas(instance.getCurrentReplicas()); - this.withDesiredReplicas(instance.getDesiredReplicas()); - this.withLastScaleTime(instance.getLastScaleTime()); - this.withObservedGeneration(instance.getObservedGeneration()); - } + public V2HorizontalPodAutoscalerStatusFluent(V2HorizontalPodAutoscalerStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; } - 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);} - return (A)this; + public A addAllToCurrentMetrics(Collection items) { + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); + } + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").add(builder); + this.currentMetrics.add(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);} - return (A)this; + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); } - public A addToConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public ConditionsNested addNewConditionLike(V2HorizontalPodAutoscalerCondition item) { + return new ConditionsNested(-1, item); } - public A addAllToConditions(Collection items) { - if (this.conditions == null) {this.conditions = new ArrayList();} - for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").add(builder);this.conditions.add(builder);} return (A)this; + public CurrentMetricsNested addNewCurrentMetric() { + return new CurrentMetricsNested(-1, null); } - public A removeFromConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... items) { - if (this.conditions == null) return (A)this; - for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public CurrentMetricsNested addNewCurrentMetricLike(V2MetricStatus item) { + return new CurrentMetricsNested(-1, item); } - public A removeAllFromConditions(Collection items) { - if (this.conditions == null) return (A)this; - for (V2HorizontalPodAutoscalerCondition item : items) {V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item);_visitables.get("conditions").remove(builder); this.conditions.remove(builder);} return (A)this; + public A addToConditions(V2HorizontalPodAutoscalerCondition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").add(builder); + this.conditions.add(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()) { - V2HorizontalPodAutoscalerConditionBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } + 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(builder); + conditions.add(index, builder); } - return (A)this; + return (A) this; } - public List buildConditions() { - return this.conditions != null ? build(conditions) : null; + public A addToCurrentMetrics(V2MetricStatus... items) { + if (this.currentMetrics == null) { + this.currentMetrics = new ArrayList(); + } + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").add(builder); + this.currentMetrics.add(builder); + } + return (A) this; + } + + public A addToCurrentMetrics(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").add(builder); + currentMetrics.add(index, builder); + } + return (A) this; } public V2HorizontalPodAutoscalerCondition buildCondition(int index) { return this.conditions.get(index).build(); } + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V2MetricStatus buildCurrentMetric(int index) { + return this.currentMetrics.get(index).build(); + } + + public List buildCurrentMetrics() { + return this.currentMetrics != null ? build(currentMetrics) : null; + } + public V2HorizontalPodAutoscalerCondition buildFirstCondition() { return this.conditions.get(0).build(); } + public V2MetricStatus buildFirstCurrentMetric() { + return this.currentMetrics.get(0).build(); + } + public V2HorizontalPodAutoscalerCondition buildLastCondition() { return this.conditions.get(conditions.size() - 1).build(); } + public V2MetricStatus buildLastCurrentMetric() { + return this.currentMetrics.get(currentMetrics.size() - 1).build(); + } + public V2HorizontalPodAutoscalerCondition buildMatchingCondition(Predicate predicate) { for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { if (predicate.test(item)) { @@ -118,155 +172,174 @@ public V2HorizontalPodAutoscalerCondition buildMatchingCondition(Predicate predicate) { - for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { + public V2MetricStatus buildMatchingCurrentMetric(Predicate predicate) { + for (V2MetricStatusBuilder item : currentMetrics) { if (predicate.test(item)) { - return true; + return item.build(); } } - return false; + return null; } - public A withConditions(List conditions) { - if (this.conditions != null) { - this._visitables.get("conditions").clear(); - } - if (conditions != null) { - this.conditions = new ArrayList(); - for (V2HorizontalPodAutoscalerCondition item : conditions) { - this.addToConditions(item); - } - } else { - this.conditions = null; + protected void copyInstance(V2HorizontalPodAutoscalerStatus instance) { + instance = instance != null ? instance : new V2HorizontalPodAutoscalerStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withCurrentMetrics(instance.getCurrentMetrics()); + this.withCurrentReplicas(instance.getCurrentReplicas()); + this.withDesiredReplicas(instance.getDesiredReplicas()); + this.withLastScaleTime(instance.getLastScaleTime()); + this.withObservedGeneration(instance.getObservedGeneration()); } - return (A) this; } - public A withConditions(io.kubernetes.client.openapi.models.V2HorizontalPodAutoscalerCondition... conditions) { - if (this.conditions != null) { - this.conditions.clear(); - _visitables.remove("conditions"); - } - if (conditions != null) { - for (V2HorizontalPodAutoscalerCondition item : conditions) { - this.addToConditions(item); - } + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); } - return (A) this; + return this.setNewConditionLike(index, this.buildCondition(index)); } - public boolean hasConditions() { - return this.conditions != null && !this.conditions.isEmpty(); - } - - public ConditionsNested addNewCondition() { - return new ConditionsNested(-1, null); - } - - public ConditionsNested addNewConditionLike(V2HorizontalPodAutoscalerCondition item) { - return new ConditionsNested(-1, item); - } - - public ConditionsNested setNewConditionLike(int index,V2HorizontalPodAutoscalerCondition item) { - return new ConditionsNested(index, item); + public CurrentMetricsNested editCurrentMetric(int index) { + if (currentMetrics.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); } - 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(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); } - 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 CurrentMetricsNested editFirstCurrentMetric() { + if (currentMetrics.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(0, this.buildCurrentMetric(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)); + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public CurrentMetricsNested editLastCurrentMetric() { + int index = currentMetrics.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); } public ConditionsNested editMatchingCondition(Predicate predicate) { int index = -1; - for (int i=0;i();} - 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);} - return (A)this; + public CurrentMetricsNested editMatchingCurrentMetric(Predicate predicate) { + int index = -1; + for (int i = 0;i < currentMetrics.size();i++) { + if (predicate.test(currentMetrics.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "currentMetrics")); + } + return this.setNewCurrentMetricLike(index, this.buildCurrentMetric(index)); } - 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);} - return (A)this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2HorizontalPodAutoscalerStatusFluent that = (V2HorizontalPodAutoscalerStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(currentMetrics, that.currentMetrics))) { + return false; + } + if (!(Objects.equals(currentReplicas, that.currentReplicas))) { + return false; + } + if (!(Objects.equals(desiredReplicas, that.desiredReplicas))) { + return false; + } + if (!(Objects.equals(lastScaleTime, that.lastScaleTime))) { + return false; + } + if (!(Objects.equals(observedGeneration, that.observedGeneration))) { + return false; + } + return true; } - public A addToCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items) { - if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} - for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(builder);this.currentMetrics.add(builder);} return (A)this; + public Integer getCurrentReplicas() { + return this.currentReplicas; } - public A addAllToCurrentMetrics(Collection items) { - if (this.currentMetrics == null) {this.currentMetrics = new ArrayList();} - for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").add(builder);this.currentMetrics.add(builder);} return (A)this; + public Integer getDesiredReplicas() { + return this.desiredReplicas; } - public A removeFromCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... items) { - if (this.currentMetrics == null) return (A)this; - for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").remove(builder); this.currentMetrics.remove(builder);} return (A)this; + public OffsetDateTime getLastScaleTime() { + return this.lastScaleTime; } - public A removeAllFromCurrentMetrics(Collection items) { - if (this.currentMetrics == null) return (A)this; - for (V2MetricStatus item : items) {V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item);_visitables.get("currentMetrics").remove(builder); this.currentMetrics.remove(builder);} return (A)this; + public Long getObservedGeneration() { + return this.observedGeneration; } - public A removeMatchingFromCurrentMetrics(Predicate predicate) { - if (currentMetrics == null) return (A) this; - final Iterator each = currentMetrics.iterator(); - final List visitables = _visitables.get("currentMetrics"); - while (each.hasNext()) { - V2MetricStatusBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A)this; + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); } - public List buildCurrentMetrics() { - return this.currentMetrics != null ? build(currentMetrics) : null; + public boolean hasCurrentMetrics() { + return this.currentMetrics != null && !(this.currentMetrics.isEmpty()); } - public V2MetricStatus buildCurrentMetric(int index) { - return this.currentMetrics.get(index).build(); + public boolean hasCurrentReplicas() { + return this.currentReplicas != null; } - public V2MetricStatus buildFirstCurrentMetric() { - return this.currentMetrics.get(0).build(); + public boolean hasDesiredReplicas() { + return this.desiredReplicas != null; } - public V2MetricStatus buildLastCurrentMetric() { - return this.currentMetrics.get(currentMetrics.size() - 1).build(); + public boolean hasLastScaleTime() { + return this.lastScaleTime != null; } - public V2MetricStatus buildMatchingCurrentMetric(Predicate predicate) { - for (V2MetricStatusBuilder item : currentMetrics) { + public boolean hasMatchingCondition(Predicate predicate) { + for (V2HorizontalPodAutoscalerConditionBuilder item : conditions) { if (predicate.test(item)) { - return item.build(); + return true; } } - return null; + return false; } public boolean hasMatchingCurrentMetric(Predicate predicate) { @@ -278,103 +351,232 @@ public boolean hasMatchingCurrentMetric(Predicate predica return false; } - public A withCurrentMetrics(List currentMetrics) { - if (this.currentMetrics != null) { - this._visitables.get("currentMetrics").clear(); + public boolean hasObservedGeneration() { + return this.observedGeneration != null; + } + + public int hashCode() { + return Objects.hash(conditions, currentMetrics, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; } - if (currentMetrics != null) { - this.currentMetrics = new ArrayList(); - for (V2MetricStatus item : currentMetrics) { - this.addToCurrentMetrics(item); - } - } else { - this.currentMetrics = null; + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); } return (A) this; } - public A withCurrentMetrics(io.kubernetes.client.openapi.models.V2MetricStatus... currentMetrics) { - if (this.currentMetrics != null) { - this.currentMetrics.clear(); - _visitables.remove("currentMetrics"); + public A removeAllFromCurrentMetrics(Collection items) { + if (this.currentMetrics == null) { + return (A) this; } - if (currentMetrics != null) { - for (V2MetricStatus item : currentMetrics) { - this.addToCurrentMetrics(item); - } + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").remove(builder); + this.currentMetrics.remove(builder); } return (A) this; } - public boolean hasCurrentMetrics() { - return this.currentMetrics != null && !this.currentMetrics.isEmpty(); + public A removeFromConditions(V2HorizontalPodAutoscalerCondition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V2HorizontalPodAutoscalerCondition item : items) { + V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; } - public CurrentMetricsNested addNewCurrentMetric() { - return new CurrentMetricsNested(-1, null); + public A removeFromCurrentMetrics(V2MetricStatus... items) { + if (this.currentMetrics == null) { + return (A) this; + } + for (V2MetricStatus item : items) { + V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); + _visitables.get("currentMetrics").remove(builder); + this.currentMetrics.remove(builder); + } + return (A) this; } - public CurrentMetricsNested addNewCurrentMetricLike(V2MetricStatus item) { - return new CurrentMetricsNested(-1, item); + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = _visitables.get("conditions"); + while (each.hasNext()) { + V2HorizontalPodAutoscalerConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public CurrentMetricsNested setNewCurrentMetricLike(int index,V2MetricStatus item) { - return new CurrentMetricsNested(index, item); + public A removeMatchingFromCurrentMetrics(Predicate predicate) { + if (currentMetrics == null) { + return (A) this; + } + Iterator each = currentMetrics.iterator(); + List visitables = _visitables.get("currentMetrics"); + while (each.hasNext()) { + V2MetricStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; } - public CurrentMetricsNested editCurrentMetric(int index) { - if (currentMetrics.size() <= index) throw new RuntimeException("Can't edit currentMetrics. Index exceeds size."); - return setNewCurrentMetricLike(index, buildCurrentMetric(index)); + public ConditionsNested setNewConditionLike(int index,V2HorizontalPodAutoscalerCondition item) { + return new ConditionsNested(index, item); } - public CurrentMetricsNested editFirstCurrentMetric() { - if (currentMetrics.size() == 0) throw new RuntimeException("Can't edit first currentMetrics. The list is empty."); - return setNewCurrentMetricLike(0, buildCurrentMetric(0)); + public CurrentMetricsNested setNewCurrentMetricLike(int index,V2MetricStatus item) { + return new CurrentMetricsNested(index, item); } - public CurrentMetricsNested editLastCurrentMetric() { - int index = currentMetrics.size() - 1; - if (index < 0) throw new RuntimeException("Can't edit last currentMetrics. The list is empty."); - return setNewCurrentMetricLike(index, buildCurrentMetric(index)); + 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").add(builder); + conditions.set(index, builder); + } + return (A) this; } - public CurrentMetricsNested editMatchingCurrentMetric(Predicate predicate) { - int index = -1; - for (int i=0;i= currentMetrics.size()) { + _visitables.get("currentMetrics").add(builder); + currentMetrics.add(builder); + } else { + _visitables.get("currentMetrics").add(builder); + currentMetrics.set(index, builder); + } + return (A) this; } - public Integer getCurrentReplicas() { - return this.currentReplicas; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(currentMetrics == null) && !(currentMetrics.isEmpty())) { + sb.append("currentMetrics:"); + sb.append(currentMetrics); + sb.append(","); + } + if (!(currentReplicas == null)) { + sb.append("currentReplicas:"); + sb.append(currentReplicas); + sb.append(","); + } + if (!(desiredReplicas == null)) { + sb.append("desiredReplicas:"); + sb.append(desiredReplicas); + sb.append(","); + } + if (!(lastScaleTime == null)) { + sb.append("lastScaleTime:"); + sb.append(lastScaleTime); + sb.append(","); + } + if (!(observedGeneration == null)) { + sb.append("observedGeneration:"); + sb.append(observedGeneration); + } + sb.append("}"); + return sb.toString(); } - public A withCurrentReplicas(Integer currentReplicas) { - this.currentReplicas = currentReplicas; + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V2HorizontalPodAutoscalerCondition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } return (A) this; } - public boolean hasCurrentReplicas() { - return this.currentReplicas != null; + public A withConditions(V2HorizontalPodAutoscalerCondition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V2HorizontalPodAutoscalerCondition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; } - public Integer getDesiredReplicas() { - return this.desiredReplicas; + public A withCurrentMetrics(List currentMetrics) { + if (this.currentMetrics != null) { + this._visitables.get("currentMetrics").clear(); + } + if (currentMetrics != null) { + this.currentMetrics = new ArrayList(); + for (V2MetricStatus item : currentMetrics) { + this.addToCurrentMetrics(item); + } + } else { + this.currentMetrics = null; + } + return (A) this; } - public A withDesiredReplicas(Integer desiredReplicas) { - this.desiredReplicas = desiredReplicas; + public A withCurrentMetrics(V2MetricStatus... currentMetrics) { + if (this.currentMetrics != null) { + this.currentMetrics.clear(); + _visitables.remove("currentMetrics"); + } + if (currentMetrics != null) { + for (V2MetricStatus item : currentMetrics) { + this.addToCurrentMetrics(item); + } + } return (A) this; } - public boolean hasDesiredReplicas() { - return this.desiredReplicas != null; + public A withCurrentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; + return (A) this; } - public OffsetDateTime getLastScaleTime() { - return this.lastScaleTime; + public A withDesiredReplicas(Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; + return (A) this; } public A withLastScaleTime(OffsetDateTime lastScaleTime) { @@ -382,88 +584,46 @@ public A withLastScaleTime(OffsetDateTime lastScaleTime) { return (A) this; } - public boolean hasLastScaleTime() { - return this.lastScaleTime != null; - } - - public Long getObservedGeneration() { - return this.observedGeneration; - } - public A withObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; return (A) this; } + public class ConditionsNested extends V2HorizontalPodAutoscalerConditionFluent> implements Nested{ - public boolean hasObservedGeneration() { - return this.observedGeneration != 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; - V2HorizontalPodAutoscalerStatusFluent that = (V2HorizontalPodAutoscalerStatusFluent) o; - if (!java.util.Objects.equals(conditions, that.conditions)) return false; - if (!java.util.Objects.equals(currentMetrics, that.currentMetrics)) return false; - if (!java.util.Objects.equals(currentReplicas, that.currentReplicas)) return false; - if (!java.util.Objects.equals(desiredReplicas, that.desiredReplicas)) return false; - if (!java.util.Objects.equals(lastScaleTime, that.lastScaleTime)) return false; - if (!java.util.Objects.equals(observedGeneration, that.observedGeneration)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(conditions, currentMetrics, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration, super.hashCode()); - } + V2HorizontalPodAutoscalerConditionBuilder builder; + int index; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (conditions != null && !conditions.isEmpty()) { sb.append("conditions:"); sb.append(conditions + ","); } - if (currentMetrics != null && !currentMetrics.isEmpty()) { sb.append("currentMetrics:"); sb.append(currentMetrics + ","); } - if (currentReplicas != null) { sb.append("currentReplicas:"); sb.append(currentReplicas + ","); } - if (desiredReplicas != null) { sb.append("desiredReplicas:"); sb.append(desiredReplicas + ","); } - if (lastScaleTime != null) { sb.append("lastScaleTime:"); sb.append(lastScaleTime + ","); } - if (observedGeneration != null) { sb.append("observedGeneration:"); sb.append(observedGeneration); } - sb.append("}"); - return sb.toString(); - } - public class ConditionsNested extends V2HorizontalPodAutoscalerConditionFluent> implements Nested{ ConditionsNested(int index,V2HorizontalPodAutoscalerCondition item) { this.index = index; this.builder = new V2HorizontalPodAutoscalerConditionBuilder(this, item); } - V2HorizontalPodAutoscalerConditionBuilder builder; - int index; - + public N and() { - return (N) V2HorizontalPodAutoscalerStatusFluent.this.setToConditions(index,builder.build()); + return (N) V2HorizontalPodAutoscalerStatusFluent.this.setToConditions(index, builder.build()); } public N endCondition() { return and(); } - } public class CurrentMetricsNested extends V2MetricStatusFluent> implements Nested{ + + V2MetricStatusBuilder builder; + int index; + CurrentMetricsNested(int index,V2MetricStatus item) { this.index = index; this.builder = new V2MetricStatusBuilder(this, item); } - V2MetricStatusBuilder builder; - int index; - + public N and() { - return (N) V2HorizontalPodAutoscalerStatusFluent.this.setToCurrentMetrics(index,builder.build()); + return (N) V2HorizontalPodAutoscalerStatusFluent.this.setToCurrentMetrics(index, builder.build()); } public N endCurrentMetric() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java index b1753330f0..202d2ee1d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2MetricIdentifierBuilder extends V2MetricIdentifierFluent implements VisitableBuilder{ + + V2MetricIdentifierFluent fluent; + public V2MetricIdentifierBuilder() { this(new V2MetricIdentifier()); } @@ -10,17 +14,16 @@ public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent) { this(fluent, new V2MetricIdentifier()); } - public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent,V2MetricIdentifier instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricIdentifierBuilder(V2MetricIdentifier instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricIdentifierFluent fluent; + public V2MetricIdentifierBuilder(V2MetricIdentifierFluent fluent,V2MetricIdentifier instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricIdentifier build() { V2MetricIdentifier buildable = new V2MetricIdentifier(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V2MetricIdentifier build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java index 169195219c..88a40db435 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2MetricIdentifierFluent> extends BaseFluent{ +public class V2MetricIdentifierFluent> extends BaseFluent{ + + private String name; + private V1LabelSelectorBuilder selector; + public V2MetricIdentifierFluent() { } public V2MetricIdentifierFluent(V2MetricIdentifier instance) { this.copyInstance(instance); } - private String name; - private V1LabelSelectorBuilder selector; + + public V1LabelSelector buildSelector() { + return this.selector != null ? this.selector.build() : null; + } protected void copyInstance(V2MetricIdentifier instance) { - instance = (instance != null ? instance : new V2MetricIdentifier()); + instance = instance != null ? instance : new V2MetricIdentifier(); if (instance != null) { - this.withName(instance.getName()); - this.withSelector(instance.getSelector()); - } - } - - public String getName() { - return this.name; + this.withName(instance.getName()); + this.withSelector(instance.getSelector()); + } } - public A withName(String name) { - this.name = name; - return (A) this; + public SelectorNested editOrNewSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(new V1LabelSelectorBuilder().build())); } - public boolean hasName() { - return this.name != null; + public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(item)); } - public V1LabelSelector buildSelector() { - return this.selector != null ? this.selector.build() : null; + public SelectorNested editSelector() { + return this.withNewSelectorLike(Optional.ofNullable(this.buildSelector()).orElse(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); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2MetricIdentifierFluent that = (V2MetricIdentifierFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(selector, that.selector))) { + return false; + } + return true; } - public boolean hasSelector() { - return this.selector != null; + public String getName() { + return this.name; } - public SelectorNested withNewSelector() { - return new SelectorNested(null); + public boolean hasName() { + return this.name != null; } - public SelectorNested withNewSelectorLike(V1LabelSelector item) { - return new SelectorNested(item); + public boolean hasSelector() { + return this.selector != null; } - public SelectorNested editSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(null)); + public int hashCode() { + return Objects.hash(name, selector); } - public SelectorNested editOrNewSelector() { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(new V1LabelSelectorBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } + sb.append("}"); + return sb.toString(); } - public SelectorNested editOrNewSelectorLike(V1LabelSelector item) { - return withNewSelectorLike(java.util.Optional.ofNullable(buildSelector()).orElse(item)); + public A withName(String name) { + this.name = name; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V2MetricIdentifierFluent that = (V2MetricIdentifierFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(selector, that.selector)) return false; - return true; + public SelectorNested withNewSelector() { + return new SelectorNested(null); } - public int hashCode() { - return java.util.Objects.hash(name, selector, super.hashCode()); + public SelectorNested withNewSelectorLike(V1LabelSelector item) { + return new SelectorNested(item); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (selector != null) { sb.append("selector:"); sb.append(selector); } - sb.append("}"); - return sb.toString(); + 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 class SelectorNested extends V1LabelSelectorFluent> implements Nested{ + + V1LabelSelectorBuilder builder; + SelectorNested(V1LabelSelector item) { this.builder = new V1LabelSelectorBuilder(this, item); } - V1LabelSelectorBuilder builder; - + public N and() { return (N) V2MetricIdentifierFluent.this.withSelector(builder.build()); } @@ -117,7 +141,5 @@ public N endSelector() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java index 66dbf40191..2915b6171d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2MetricSpecBuilder extends V2MetricSpecFluent implements VisitableBuilder{ + + V2MetricSpecFluent fluent; + public V2MetricSpecBuilder() { this(new V2MetricSpec()); } @@ -10,17 +14,16 @@ public V2MetricSpecBuilder(V2MetricSpecFluent fluent) { this(fluent, new V2MetricSpec()); } - public V2MetricSpecBuilder(V2MetricSpecFluent fluent,V2MetricSpec instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricSpecBuilder(V2MetricSpec instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricSpecFluent fluent; + public V2MetricSpecBuilder(V2MetricSpecFluent fluent,V2MetricSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricSpec build() { V2MetricSpec buildable = new V2MetricSpec(); buildable.setContainerResource(fluent.buildContainerResource()); @@ -32,5 +35,4 @@ public V2MetricSpec build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java index 13cc598ba3..4d50915506 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java @@ -1,219 +1,280 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2MetricSpecFluent> extends BaseFluent{ - public V2MetricSpecFluent() { - } - - public V2MetricSpecFluent(V2MetricSpec instance) { - this.copyInstance(instance); - } +public class V2MetricSpecFluent> extends BaseFluent{ + + private V2ObjectMetricSourceBuilder _object; private V2ContainerResourceMetricSourceBuilder containerResource; private V2ExternalMetricSourceBuilder external; - private V2ObjectMetricSourceBuilder _object; private V2PodsMetricSourceBuilder pods; private V2ResourceMetricSourceBuilder resource; private String type; - - protected void copyInstance(V2MetricSpec instance) { - instance = (instance != null ? instance : new V2MetricSpec()); - if (instance != null) { - this.withContainerResource(instance.getContainerResource()); - this.withExternal(instance.getExternal()); - this.withObject(instance.getObject()); - this.withPods(instance.getPods()); - this.withResource(instance.getResource()); - this.withType(instance.getType()); - } + + public V2MetricSpecFluent() { } + public V2MetricSpecFluent(V2MetricSpec instance) { + this.copyInstance(instance); + } + public V2ContainerResourceMetricSource buildContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public A withContainerResource(V2ContainerResourceMetricSource containerResource) { - this._visitables.remove("containerResource"); - if (containerResource != null) { - this.containerResource = new V2ContainerResourceMetricSourceBuilder(containerResource); - this._visitables.get("containerResource").add(this.containerResource); - } else { - this.containerResource = null; - this._visitables.get("containerResource").remove(this.containerResource); - } - return (A) this; + public V2ExternalMetricSource buildExternal() { + return this.external != null ? this.external.build() : null; } - public boolean hasContainerResource() { - return this.containerResource != null; + public V2ObjectMetricSource buildObject() { + return this._object != null ? this._object.build() : null; } - public ContainerResourceNested withNewContainerResource() { - return new ContainerResourceNested(null); + public V2PodsMetricSource buildPods() { + return this.pods != null ? this.pods.build() : null; } - public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricSource item) { - return new ContainerResourceNested(item); + public V2ResourceMetricSource buildResource() { + return this.resource != null ? this.resource.build() : null; + } + + protected void copyInstance(V2MetricSpec instance) { + instance = instance != null ? instance : new V2MetricSpec(); + if (instance != null) { + this.withContainerResource(instance.getContainerResource()); + this.withExternal(instance.getExternal()); + this.withObject(instance.getObject()); + this.withPods(instance.getPods()); + this.withResource(instance.getResource()); + this.withType(instance.getType()); + } } public ContainerResourceNested editContainerResource() { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(null)); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(null)); + } + + public ExternalNested editExternal() { + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(null)); + } + + public ObjectNested editObject() { + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(null)); } public ContainerResourceNested editOrNewContainerResource() { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(new V2ContainerResourceMetricSourceBuilder().build())); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(new V2ContainerResourceMetricSourceBuilder().build())); } public ContainerResourceNested editOrNewContainerResourceLike(V2ContainerResourceMetricSource item) { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(item)); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(item)); } - public V2ExternalMetricSource buildExternal() { - return this.external != null ? this.external.build() : null; + public ExternalNested editOrNewExternal() { + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(new V2ExternalMetricSourceBuilder().build())); } - public A withExternal(V2ExternalMetricSource external) { - this._visitables.remove("external"); - if (external != null) { - this.external = new V2ExternalMetricSourceBuilder(external); - this._visitables.get("external").add(this.external); - } else { - this.external = null; - this._visitables.get("external").remove(this.external); - } - return (A) this; + public ExternalNested editOrNewExternalLike(V2ExternalMetricSource item) { + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(item)); } - public boolean hasExternal() { - return this.external != null; + public ObjectNested editOrNewObject() { + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(new V2ObjectMetricSourceBuilder().build())); } - public ExternalNested withNewExternal() { - return new ExternalNested(null); + public ObjectNested editOrNewObjectLike(V2ObjectMetricSource item) { + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(item)); } - public ExternalNested withNewExternalLike(V2ExternalMetricSource item) { - return new ExternalNested(item); + public PodsNested editOrNewPods() { + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(new V2PodsMetricSourceBuilder().build())); } - public ExternalNested editExternal() { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(null)); + public PodsNested editOrNewPodsLike(V2PodsMetricSource item) { + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(item)); } - public ExternalNested editOrNewExternal() { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(new V2ExternalMetricSourceBuilder().build())); + public ResourceNested editOrNewResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V2ResourceMetricSourceBuilder().build())); } - public ExternalNested editOrNewExternalLike(V2ExternalMetricSource item) { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(item)); + public ResourceNested editOrNewResourceLike(V2ResourceMetricSource item) { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } - public V2ObjectMetricSource buildObject() { - return this._object != null ? this._object.build() : null; + public PodsNested editPods() { + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(null)); } - public A withObject(V2ObjectMetricSource _object) { - this._visitables.remove("_object"); - if (_object != null) { - this._object = new V2ObjectMetricSourceBuilder(_object); - this._visitables.get("_object").add(this._object); - } else { - this._object = null; - this._visitables.get("_object").remove(this._object); + public ResourceNested editResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2MetricSpecFluent that = (V2MetricSpecFluent) o; + if (!(Objects.equals(containerResource, that.containerResource))) { + return false; + } + if (!(Objects.equals(external, that.external))) { + return false; + } + if (!(Objects.equals(_object, that._object))) { + return false; + } + if (!(Objects.equals(pods, that.pods))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasObject() { - return this._object != null; + public String getType() { + return this.type; } - public ObjectNested withNewObject() { - return new ObjectNested(null); + public boolean hasContainerResource() { + return this.containerResource != null; } - public ObjectNested withNewObjectLike(V2ObjectMetricSource item) { - return new ObjectNested(item); + public boolean hasExternal() { + return this.external != null; } - public ObjectNested editObject() { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(null)); + public boolean hasObject() { + return this._object != null; } - public ObjectNested editOrNewObject() { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(new V2ObjectMetricSourceBuilder().build())); + public boolean hasPods() { + return this.pods != null; } - public ObjectNested editOrNewObjectLike(V2ObjectMetricSource item) { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(item)); + public boolean hasResource() { + return this.resource != null; } - public V2PodsMetricSource buildPods() { - return this.pods != null ? this.pods.build() : null; + public boolean hasType() { + return this.type != null; } - public A withPods(V2PodsMetricSource pods) { - this._visitables.remove("pods"); - if (pods != null) { - this.pods = new V2PodsMetricSourceBuilder(pods); - this._visitables.get("pods").add(this.pods); + public int hashCode() { + return Objects.hash(containerResource, external, _object, pods, resource, type); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(containerResource == null)) { + sb.append("containerResource:"); + sb.append(containerResource); + sb.append(","); + } + if (!(external == null)) { + sb.append("external:"); + sb.append(external); + sb.append(","); + } + if (!(_object == null)) { + sb.append("_object:"); + sb.append(_object); + sb.append(","); + } + if (!(pods == null)) { + sb.append("pods:"); + sb.append(pods); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); + } + + public A withContainerResource(V2ContainerResourceMetricSource containerResource) { + this._visitables.remove("containerResource"); + if (containerResource != null) { + this.containerResource = new V2ContainerResourceMetricSourceBuilder(containerResource); + this._visitables.get("containerResource").add(this.containerResource); } else { - this.pods = null; - this._visitables.get("pods").remove(this.pods); + this.containerResource = null; + this._visitables.get("containerResource").remove(this.containerResource); } return (A) this; } - public boolean hasPods() { - return this.pods != null; + public A withExternal(V2ExternalMetricSource external) { + this._visitables.remove("external"); + if (external != null) { + this.external = new V2ExternalMetricSourceBuilder(external); + this._visitables.get("external").add(this.external); + } else { + this.external = null; + this._visitables.get("external").remove(this.external); + } + return (A) this; } - public PodsNested withNewPods() { - return new PodsNested(null); + public ContainerResourceNested withNewContainerResource() { + return new ContainerResourceNested(null); } - public PodsNested withNewPodsLike(V2PodsMetricSource item) { - return new PodsNested(item); + public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricSource item) { + return new ContainerResourceNested(item); } - public PodsNested editPods() { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(null)); + public ExternalNested withNewExternal() { + return new ExternalNested(null); } - public PodsNested editOrNewPods() { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(new V2PodsMetricSourceBuilder().build())); + public ExternalNested withNewExternalLike(V2ExternalMetricSource item) { + return new ExternalNested(item); } - public PodsNested editOrNewPodsLike(V2PodsMetricSource item) { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(item)); + public ObjectNested withNewObject() { + return new ObjectNested(null); } - public V2ResourceMetricSource buildResource() { - return this.resource != null ? this.resource.build() : null; + public ObjectNested withNewObjectLike(V2ObjectMetricSource item) { + return new ObjectNested(item); } - public A withResource(V2ResourceMetricSource resource) { - this._visitables.remove("resource"); - if (resource != null) { - this.resource = new V2ResourceMetricSourceBuilder(resource); - this._visitables.get("resource").add(this.resource); - } else { - this.resource = null; - this._visitables.get("resource").remove(this.resource); - } - return (A) this; + public PodsNested withNewPods() { + return new PodsNested(null); } - public boolean hasResource() { - return this.resource != null; + public PodsNested withNewPodsLike(V2PodsMetricSource item) { + return new PodsNested(item); } public ResourceNested withNewResource() { @@ -224,67 +285,54 @@ public ResourceNested withNewResourceLike(V2ResourceMetricSource 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 V2ResourceMetricSourceBuilder().build())); + public A withObject(V2ObjectMetricSource _object) { + this._visitables.remove("_object"); + if (_object != null) { + this._object = new V2ObjectMetricSourceBuilder(_object); + this._visitables.get("_object").add(this._object); + } else { + this._object = null; + this._visitables.get("_object").remove(this._object); + } + return (A) this; } - public ResourceNested editOrNewResourceLike(V2ResourceMetricSource item) { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(item)); + public A withPods(V2PodsMetricSource pods) { + this._visitables.remove("pods"); + if (pods != null) { + this.pods = new V2PodsMetricSourceBuilder(pods); + this._visitables.get("pods").add(this.pods); + } else { + this.pods = null; + this._visitables.get("pods").remove(this.pods); + } + return (A) this; } - public String getType() { - return this.type; + public A withResource(V2ResourceMetricSource resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V2ResourceMetricSourceBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this.resource = null; + this._visitables.get("resource").remove(this.resource); + } + return (A) this; } public A withType(String type) { this.type = type; return (A) this; } + public class ContainerResourceNested extends V2ContainerResourceMetricSourceFluent> implements Nested{ - 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; - V2MetricSpecFluent that = (V2MetricSpecFluent) o; - if (!java.util.Objects.equals(containerResource, that.containerResource)) return false; - if (!java.util.Objects.equals(external, that.external)) return false; - if (!java.util.Objects.equals(_object, that._object)) return false; - if (!java.util.Objects.equals(pods, that.pods)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(containerResource, external, _object, pods, resource, type, super.hashCode()); - } + V2ContainerResourceMetricSourceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (containerResource != null) { sb.append("containerResource:"); sb.append(containerResource + ","); } - if (external != null) { sb.append("external:"); sb.append(external + ","); } - if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } - if (pods != null) { sb.append("pods:"); sb.append(pods + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - public class ContainerResourceNested extends V2ContainerResourceMetricSourceFluent> implements Nested{ ContainerResourceNested(V2ContainerResourceMetricSource item) { this.builder = new V2ContainerResourceMetricSourceBuilder(this, item); } - V2ContainerResourceMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withContainerResource(builder.build()); } @@ -293,14 +341,15 @@ public N endContainerResource() { return and(); } - } public class ExternalNested extends V2ExternalMetricSourceFluent> implements Nested{ + + V2ExternalMetricSourceBuilder builder; + ExternalNested(V2ExternalMetricSource item) { this.builder = new V2ExternalMetricSourceBuilder(this, item); } - V2ExternalMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withExternal(builder.build()); } @@ -309,14 +358,15 @@ public N endExternal() { return and(); } - } public class ObjectNested extends V2ObjectMetricSourceFluent> implements Nested{ + + V2ObjectMetricSourceBuilder builder; + ObjectNested(V2ObjectMetricSource item) { this.builder = new V2ObjectMetricSourceBuilder(this, item); } - V2ObjectMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withObject(builder.build()); } @@ -325,14 +375,15 @@ public N endObject() { return and(); } - } public class PodsNested extends V2PodsMetricSourceFluent> implements Nested{ + + V2PodsMetricSourceBuilder builder; + PodsNested(V2PodsMetricSource item) { this.builder = new V2PodsMetricSourceBuilder(this, item); } - V2PodsMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withPods(builder.build()); } @@ -341,14 +392,15 @@ public N endPods() { return and(); } - } public class ResourceNested extends V2ResourceMetricSourceFluent> implements Nested{ + + V2ResourceMetricSourceBuilder builder; + ResourceNested(V2ResourceMetricSource item) { this.builder = new V2ResourceMetricSourceBuilder(this, item); } - V2ResourceMetricSourceBuilder builder; - + public N and() { return (N) V2MetricSpecFluent.this.withResource(builder.build()); } @@ -357,7 +409,5 @@ public N endResource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java index 53b73b229c..184d04579e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2MetricStatusBuilder extends V2MetricStatusFluent implements VisitableBuilder{ + + V2MetricStatusFluent fluent; + public V2MetricStatusBuilder() { this(new V2MetricStatus()); } @@ -10,17 +14,16 @@ public V2MetricStatusBuilder(V2MetricStatusFluent fluent) { this(fluent, new V2MetricStatus()); } - public V2MetricStatusBuilder(V2MetricStatusFluent fluent,V2MetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricStatusBuilder(V2MetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricStatusFluent fluent; + public V2MetricStatusBuilder(V2MetricStatusFluent fluent,V2MetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricStatus build() { V2MetricStatus buildable = new V2MetricStatus(); buildable.setContainerResource(fluent.buildContainerResource()); @@ -32,5 +35,4 @@ public V2MetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java index c51f29ae85..f32a272727 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java @@ -1,219 +1,280 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2MetricStatusFluent> extends BaseFluent{ - public V2MetricStatusFluent() { - } - - public V2MetricStatusFluent(V2MetricStatus instance) { - this.copyInstance(instance); - } +public class V2MetricStatusFluent> extends BaseFluent{ + + private V2ObjectMetricStatusBuilder _object; private V2ContainerResourceMetricStatusBuilder containerResource; private V2ExternalMetricStatusBuilder external; - private V2ObjectMetricStatusBuilder _object; private V2PodsMetricStatusBuilder pods; private V2ResourceMetricStatusBuilder resource; private String type; - - protected void copyInstance(V2MetricStatus instance) { - instance = (instance != null ? instance : new V2MetricStatus()); - if (instance != null) { - this.withContainerResource(instance.getContainerResource()); - this.withExternal(instance.getExternal()); - this.withObject(instance.getObject()); - this.withPods(instance.getPods()); - this.withResource(instance.getResource()); - this.withType(instance.getType()); - } + + public V2MetricStatusFluent() { } + public V2MetricStatusFluent(V2MetricStatus instance) { + this.copyInstance(instance); + } + public V2ContainerResourceMetricStatus buildContainerResource() { return this.containerResource != null ? this.containerResource.build() : null; } - public A withContainerResource(V2ContainerResourceMetricStatus containerResource) { - this._visitables.remove("containerResource"); - if (containerResource != null) { - this.containerResource = new V2ContainerResourceMetricStatusBuilder(containerResource); - this._visitables.get("containerResource").add(this.containerResource); - } else { - this.containerResource = null; - this._visitables.get("containerResource").remove(this.containerResource); - } - return (A) this; + public V2ExternalMetricStatus buildExternal() { + return this.external != null ? this.external.build() : null; } - public boolean hasContainerResource() { - return this.containerResource != null; + public V2ObjectMetricStatus buildObject() { + return this._object != null ? this._object.build() : null; } - public ContainerResourceNested withNewContainerResource() { - return new ContainerResourceNested(null); + public V2PodsMetricStatus buildPods() { + return this.pods != null ? this.pods.build() : null; } - public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricStatus item) { - return new ContainerResourceNested(item); + public V2ResourceMetricStatus buildResource() { + return this.resource != null ? this.resource.build() : null; + } + + protected void copyInstance(V2MetricStatus instance) { + instance = instance != null ? instance : new V2MetricStatus(); + if (instance != null) { + this.withContainerResource(instance.getContainerResource()); + this.withExternal(instance.getExternal()); + this.withObject(instance.getObject()); + this.withPods(instance.getPods()); + this.withResource(instance.getResource()); + this.withType(instance.getType()); + } } public ContainerResourceNested editContainerResource() { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(null)); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(null)); + } + + public ExternalNested editExternal() { + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(null)); + } + + public ObjectNested editObject() { + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(null)); } public ContainerResourceNested editOrNewContainerResource() { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(new V2ContainerResourceMetricStatusBuilder().build())); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(new V2ContainerResourceMetricStatusBuilder().build())); } public ContainerResourceNested editOrNewContainerResourceLike(V2ContainerResourceMetricStatus item) { - return withNewContainerResourceLike(java.util.Optional.ofNullable(buildContainerResource()).orElse(item)); + return this.withNewContainerResourceLike(Optional.ofNullable(this.buildContainerResource()).orElse(item)); } - public V2ExternalMetricStatus buildExternal() { - return this.external != null ? this.external.build() : null; + public ExternalNested editOrNewExternal() { + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(new V2ExternalMetricStatusBuilder().build())); } - public A withExternal(V2ExternalMetricStatus external) { - this._visitables.remove("external"); - if (external != null) { - this.external = new V2ExternalMetricStatusBuilder(external); - this._visitables.get("external").add(this.external); - } else { - this.external = null; - this._visitables.get("external").remove(this.external); - } - return (A) this; + public ExternalNested editOrNewExternalLike(V2ExternalMetricStatus item) { + return this.withNewExternalLike(Optional.ofNullable(this.buildExternal()).orElse(item)); } - public boolean hasExternal() { - return this.external != null; + public ObjectNested editOrNewObject() { + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(new V2ObjectMetricStatusBuilder().build())); } - public ExternalNested withNewExternal() { - return new ExternalNested(null); + public ObjectNested editOrNewObjectLike(V2ObjectMetricStatus item) { + return this.withNewObjectLike(Optional.ofNullable(this.buildObject()).orElse(item)); } - public ExternalNested withNewExternalLike(V2ExternalMetricStatus item) { - return new ExternalNested(item); + public PodsNested editOrNewPods() { + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(new V2PodsMetricStatusBuilder().build())); } - public ExternalNested editExternal() { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(null)); + public PodsNested editOrNewPodsLike(V2PodsMetricStatus item) { + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(item)); } - public ExternalNested editOrNewExternal() { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(new V2ExternalMetricStatusBuilder().build())); + public ResourceNested editOrNewResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(new V2ResourceMetricStatusBuilder().build())); } - public ExternalNested editOrNewExternalLike(V2ExternalMetricStatus item) { - return withNewExternalLike(java.util.Optional.ofNullable(buildExternal()).orElse(item)); + public ResourceNested editOrNewResourceLike(V2ResourceMetricStatus item) { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(item)); } - public V2ObjectMetricStatus buildObject() { - return this._object != null ? this._object.build() : null; + public PodsNested editPods() { + return this.withNewPodsLike(Optional.ofNullable(this.buildPods()).orElse(null)); } - public A withObject(V2ObjectMetricStatus _object) { - this._visitables.remove("_object"); - if (_object != null) { - this._object = new V2ObjectMetricStatusBuilder(_object); - this._visitables.get("_object").add(this._object); - } else { - this._object = null; - this._visitables.get("_object").remove(this._object); + public ResourceNested editResource() { + return this.withNewResourceLike(Optional.ofNullable(this.buildResource()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2MetricStatusFluent that = (V2MetricStatusFluent) o; + if (!(Objects.equals(containerResource, that.containerResource))) { + return false; + } + if (!(Objects.equals(external, that.external))) { + return false; + } + if (!(Objects.equals(_object, that._object))) { + return false; + } + if (!(Objects.equals(pods, that.pods))) { + return false; + } + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + return true; } - public boolean hasObject() { - return this._object != null; + public String getType() { + return this.type; } - public ObjectNested withNewObject() { - return new ObjectNested(null); + public boolean hasContainerResource() { + return this.containerResource != null; } - public ObjectNested withNewObjectLike(V2ObjectMetricStatus item) { - return new ObjectNested(item); + public boolean hasExternal() { + return this.external != null; } - public ObjectNested editObject() { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(null)); + public boolean hasObject() { + return this._object != null; } - public ObjectNested editOrNewObject() { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(new V2ObjectMetricStatusBuilder().build())); + public boolean hasPods() { + return this.pods != null; } - public ObjectNested editOrNewObjectLike(V2ObjectMetricStatus item) { - return withNewObjectLike(java.util.Optional.ofNullable(buildObject()).orElse(item)); + public boolean hasResource() { + return this.resource != null; } - public V2PodsMetricStatus buildPods() { - return this.pods != null ? this.pods.build() : null; + public boolean hasType() { + return this.type != null; } - public A withPods(V2PodsMetricStatus pods) { - this._visitables.remove("pods"); - if (pods != null) { - this.pods = new V2PodsMetricStatusBuilder(pods); - this._visitables.get("pods").add(this.pods); + public int hashCode() { + return Objects.hash(containerResource, external, _object, pods, resource, type); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(containerResource == null)) { + sb.append("containerResource:"); + sb.append(containerResource); + sb.append(","); + } + if (!(external == null)) { + sb.append("external:"); + sb.append(external); + sb.append(","); + } + if (!(_object == null)) { + sb.append("_object:"); + sb.append(_object); + sb.append(","); + } + if (!(pods == null)) { + sb.append("pods:"); + sb.append(pods); + sb.append(","); + } + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + } + sb.append("}"); + return sb.toString(); + } + + public A withContainerResource(V2ContainerResourceMetricStatus containerResource) { + this._visitables.remove("containerResource"); + if (containerResource != null) { + this.containerResource = new V2ContainerResourceMetricStatusBuilder(containerResource); + this._visitables.get("containerResource").add(this.containerResource); } else { - this.pods = null; - this._visitables.get("pods").remove(this.pods); + this.containerResource = null; + this._visitables.get("containerResource").remove(this.containerResource); } return (A) this; } - public boolean hasPods() { - return this.pods != null; + public A withExternal(V2ExternalMetricStatus external) { + this._visitables.remove("external"); + if (external != null) { + this.external = new V2ExternalMetricStatusBuilder(external); + this._visitables.get("external").add(this.external); + } else { + this.external = null; + this._visitables.get("external").remove(this.external); + } + return (A) this; } - public PodsNested withNewPods() { - return new PodsNested(null); + public ContainerResourceNested withNewContainerResource() { + return new ContainerResourceNested(null); } - public PodsNested withNewPodsLike(V2PodsMetricStatus item) { - return new PodsNested(item); + public ContainerResourceNested withNewContainerResourceLike(V2ContainerResourceMetricStatus item) { + return new ContainerResourceNested(item); } - public PodsNested editPods() { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(null)); + public ExternalNested withNewExternal() { + return new ExternalNested(null); } - public PodsNested editOrNewPods() { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(new V2PodsMetricStatusBuilder().build())); + public ExternalNested withNewExternalLike(V2ExternalMetricStatus item) { + return new ExternalNested(item); } - public PodsNested editOrNewPodsLike(V2PodsMetricStatus item) { - return withNewPodsLike(java.util.Optional.ofNullable(buildPods()).orElse(item)); + public ObjectNested withNewObject() { + return new ObjectNested(null); } - public V2ResourceMetricStatus buildResource() { - return this.resource != null ? this.resource.build() : null; + public ObjectNested withNewObjectLike(V2ObjectMetricStatus item) { + return new ObjectNested(item); } - public A withResource(V2ResourceMetricStatus resource) { - this._visitables.remove("resource"); - if (resource != null) { - this.resource = new V2ResourceMetricStatusBuilder(resource); - this._visitables.get("resource").add(this.resource); - } else { - this.resource = null; - this._visitables.get("resource").remove(this.resource); - } - return (A) this; + public PodsNested withNewPods() { + return new PodsNested(null); } - public boolean hasResource() { - return this.resource != null; + public PodsNested withNewPodsLike(V2PodsMetricStatus item) { + return new PodsNested(item); } public ResourceNested withNewResource() { @@ -224,67 +285,54 @@ public ResourceNested withNewResourceLike(V2ResourceMetricStatus 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 V2ResourceMetricStatusBuilder().build())); + public A withObject(V2ObjectMetricStatus _object) { + this._visitables.remove("_object"); + if (_object != null) { + this._object = new V2ObjectMetricStatusBuilder(_object); + this._visitables.get("_object").add(this._object); + } else { + this._object = null; + this._visitables.get("_object").remove(this._object); + } + return (A) this; } - public ResourceNested editOrNewResourceLike(V2ResourceMetricStatus item) { - return withNewResourceLike(java.util.Optional.ofNullable(buildResource()).orElse(item)); + public A withPods(V2PodsMetricStatus pods) { + this._visitables.remove("pods"); + if (pods != null) { + this.pods = new V2PodsMetricStatusBuilder(pods); + this._visitables.get("pods").add(this.pods); + } else { + this.pods = null; + this._visitables.get("pods").remove(this.pods); + } + return (A) this; } - public String getType() { - return this.type; + public A withResource(V2ResourceMetricStatus resource) { + this._visitables.remove("resource"); + if (resource != null) { + this.resource = new V2ResourceMetricStatusBuilder(resource); + this._visitables.get("resource").add(this.resource); + } else { + this.resource = null; + this._visitables.get("resource").remove(this.resource); + } + return (A) this; } public A withType(String type) { this.type = type; return (A) this; } + public class ContainerResourceNested extends V2ContainerResourceMetricStatusFluent> implements Nested{ - 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; - V2MetricStatusFluent that = (V2MetricStatusFluent) o; - if (!java.util.Objects.equals(containerResource, that.containerResource)) return false; - if (!java.util.Objects.equals(external, that.external)) return false; - if (!java.util.Objects.equals(_object, that._object)) return false; - if (!java.util.Objects.equals(pods, that.pods)) return false; - if (!java.util.Objects.equals(resource, that.resource)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(containerResource, external, _object, pods, resource, type, super.hashCode()); - } + V2ContainerResourceMetricStatusBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (containerResource != null) { sb.append("containerResource:"); sb.append(containerResource + ","); } - if (external != null) { sb.append("external:"); sb.append(external + ","); } - if (_object != null) { sb.append("_object:"); sb.append(_object + ","); } - if (pods != null) { sb.append("pods:"); sb.append(pods + ","); } - if (resource != null) { sb.append("resource:"); sb.append(resource + ","); } - if (type != null) { sb.append("type:"); sb.append(type); } - sb.append("}"); - return sb.toString(); - } - public class ContainerResourceNested extends V2ContainerResourceMetricStatusFluent> implements Nested{ ContainerResourceNested(V2ContainerResourceMetricStatus item) { this.builder = new V2ContainerResourceMetricStatusBuilder(this, item); } - V2ContainerResourceMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withContainerResource(builder.build()); } @@ -293,14 +341,15 @@ public N endContainerResource() { return and(); } - } public class ExternalNested extends V2ExternalMetricStatusFluent> implements Nested{ + + V2ExternalMetricStatusBuilder builder; + ExternalNested(V2ExternalMetricStatus item) { this.builder = new V2ExternalMetricStatusBuilder(this, item); } - V2ExternalMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withExternal(builder.build()); } @@ -309,14 +358,15 @@ public N endExternal() { return and(); } - } public class ObjectNested extends V2ObjectMetricStatusFluent> implements Nested{ + + V2ObjectMetricStatusBuilder builder; + ObjectNested(V2ObjectMetricStatus item) { this.builder = new V2ObjectMetricStatusBuilder(this, item); } - V2ObjectMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withObject(builder.build()); } @@ -325,14 +375,15 @@ public N endObject() { return and(); } - } public class PodsNested extends V2PodsMetricStatusFluent> implements Nested{ + + V2PodsMetricStatusBuilder builder; + PodsNested(V2PodsMetricStatus item) { this.builder = new V2PodsMetricStatusBuilder(this, item); } - V2PodsMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withPods(builder.build()); } @@ -341,14 +392,15 @@ public N endPods() { return and(); } - } public class ResourceNested extends V2ResourceMetricStatusFluent> implements Nested{ + + V2ResourceMetricStatusBuilder builder; + ResourceNested(V2ResourceMetricStatus item) { this.builder = new V2ResourceMetricStatusBuilder(this, item); } - V2ResourceMetricStatusBuilder builder; - + public N and() { return (N) V2MetricStatusFluent.this.withResource(builder.build()); } @@ -357,7 +409,5 @@ public N endResource() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java index 562f9f7bcd..daf33e72fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2MetricTargetBuilder extends V2MetricTargetFluent implements VisitableBuilder{ + + V2MetricTargetFluent fluent; + public V2MetricTargetBuilder() { this(new V2MetricTarget()); } @@ -10,17 +14,16 @@ public V2MetricTargetBuilder(V2MetricTargetFluent fluent) { this(fluent, new V2MetricTarget()); } - public V2MetricTargetBuilder(V2MetricTargetFluent fluent,V2MetricTarget instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricTargetBuilder(V2MetricTarget instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricTargetFluent fluent; + public V2MetricTargetBuilder(V2MetricTargetFluent fluent,V2MetricTarget instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricTarget build() { V2MetricTarget buildable = new V2MetricTarget(); buildable.setAverageUtilization(fluent.getAverageUtilization()); @@ -30,5 +33,4 @@ public V2MetricTarget build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java index 6a33069ed0..d8b302d15d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java @@ -1,124 +1,156 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V2MetricTargetFluent> extends BaseFluent{ +public class V2MetricTargetFluent> extends BaseFluent{ + + private Integer averageUtilization; + private Quantity averageValue; + private String type; + private Quantity value; + public V2MetricTargetFluent() { } public V2MetricTargetFluent(V2MetricTarget instance) { this.copyInstance(instance); } - private Integer averageUtilization; - private Quantity averageValue; - private String type; - private Quantity value; - + protected void copyInstance(V2MetricTarget instance) { - instance = (instance != null ? instance : new V2MetricTarget()); + instance = instance != null ? instance : new V2MetricTarget(); if (instance != null) { - this.withAverageUtilization(instance.getAverageUtilization()); - this.withAverageValue(instance.getAverageValue()); - this.withType(instance.getType()); - this.withValue(instance.getValue()); - } + this.withAverageUtilization(instance.getAverageUtilization()); + this.withAverageValue(instance.getAverageValue()); + this.withType(instance.getType()); + this.withValue(instance.getValue()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2MetricTargetFluent that = (V2MetricTargetFluent) o; + if (!(Objects.equals(averageUtilization, that.averageUtilization))) { + return false; + } + if (!(Objects.equals(averageValue, that.averageValue))) { + return false; + } + if (!(Objects.equals(type, that.type))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; } public Integer getAverageUtilization() { return this.averageUtilization; } - public A withAverageUtilization(Integer averageUtilization) { - this.averageUtilization = averageUtilization; - return (A) this; + public Quantity getAverageValue() { + return this.averageValue; } - public boolean hasAverageUtilization() { - return this.averageUtilization != null; + public String getType() { + return this.type; } - public Quantity getAverageValue() { - return this.averageValue; + public Quantity getValue() { + return this.value; } - public A withAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; + public boolean hasAverageUtilization() { + return this.averageUtilization != null; } public boolean hasAverageValue() { return this.averageValue != null; } - public A withNewAverageValue(String value) { - return (A)withAverageValue(new Quantity(value)); + public boolean hasType() { + return this.type != null; } - public String getType() { - return this.type; + public boolean hasValue() { + return this.value != null; } - public A withType(String type) { - this.type = type; - return (A) this; + public int hashCode() { + return Objects.hash(averageUtilization, averageValue, type, value); } - public boolean hasType() { - return this.type != null; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(averageUtilization == null)) { + sb.append("averageUtilization:"); + sb.append(averageUtilization); + sb.append(","); + } + if (!(averageValue == null)) { + sb.append("averageValue:"); + sb.append(averageValue); + sb.append(","); + } + if (!(type == null)) { + sb.append("type:"); + sb.append(type); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); } - public Quantity getValue() { - return this.value; + public A withAverageUtilization(Integer averageUtilization) { + this.averageUtilization = averageUtilization; + return (A) this; } - public A withValue(Quantity value) { - this.value = value; + public A withAverageValue(Quantity averageValue) { + this.averageValue = averageValue; return (A) this; } - public boolean hasValue() { - return this.value != null; + public A withNewAverageValue(String value) { + return (A) this.withAverageValue(new Quantity(value)); } public A withNewValue(String value) { - return (A)withValue(new Quantity(value)); + return (A) this.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; - V2MetricTargetFluent that = (V2MetricTargetFluent) o; - if (!java.util.Objects.equals(averageUtilization, that.averageUtilization)) return false; - if (!java.util.Objects.equals(averageValue, that.averageValue)) return false; - if (!java.util.Objects.equals(type, that.type)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(averageUtilization, averageValue, type, value, super.hashCode()); + public A withType(String type) { + this.type = type; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (averageUtilization != null) { sb.append("averageUtilization:"); sb.append(averageUtilization + ","); } - if (averageValue != null) { sb.append("averageValue:"); sb.append(averageValue + ","); } - if (type != null) { sb.append("type:"); sb.append(type + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } - sb.append("}"); - return sb.toString(); + public A withValue(Quantity value) { + this.value = value; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java index ce0a535a58..a2d132fad3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2MetricValueStatusBuilder extends V2MetricValueStatusFluent implements VisitableBuilder{ + + V2MetricValueStatusFluent fluent; + public V2MetricValueStatusBuilder() { this(new V2MetricValueStatus()); } @@ -10,17 +14,16 @@ public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent) { this(fluent, new V2MetricValueStatus()); } - public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent,V2MetricValueStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2MetricValueStatusBuilder(V2MetricValueStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2MetricValueStatusFluent fluent; + public V2MetricValueStatusBuilder(V2MetricValueStatusFluent fluent,V2MetricValueStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2MetricValueStatus build() { V2MetricValueStatus buildable = new V2MetricValueStatus(); buildable.setAverageUtilization(fluent.getAverageUtilization()); @@ -29,5 +32,4 @@ public V2MetricValueStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java index 903b0b7c64..55ccce0486 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java @@ -1,107 +1,133 @@ package io.kubernetes.client.openapi.models; -import java.lang.Integer; -import java.lang.SuppressWarnings; -import io.kubernetes.client.fluent.BaseFluent; import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; import java.lang.Object; import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class V2MetricValueStatusFluent> extends BaseFluent{ +public class V2MetricValueStatusFluent> extends BaseFluent{ + + private Integer averageUtilization; + private Quantity averageValue; + private Quantity value; + public V2MetricValueStatusFluent() { } public V2MetricValueStatusFluent(V2MetricValueStatus instance) { this.copyInstance(instance); } - private Integer averageUtilization; - private Quantity averageValue; - private Quantity value; - + protected void copyInstance(V2MetricValueStatus instance) { - instance = (instance != null ? instance : new V2MetricValueStatus()); + instance = instance != null ? instance : new V2MetricValueStatus(); if (instance != null) { - this.withAverageUtilization(instance.getAverageUtilization()); - this.withAverageValue(instance.getAverageValue()); - this.withValue(instance.getValue()); - } - } - - public Integer getAverageUtilization() { - return this.averageUtilization; + this.withAverageUtilization(instance.getAverageUtilization()); + this.withAverageValue(instance.getAverageValue()); + this.withValue(instance.getValue()); + } } - public A withAverageUtilization(Integer averageUtilization) { - this.averageUtilization = averageUtilization; - return (A) this; + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2MetricValueStatusFluent that = (V2MetricValueStatusFluent) o; + if (!(Objects.equals(averageUtilization, that.averageUtilization))) { + return false; + } + if (!(Objects.equals(averageValue, that.averageValue))) { + return false; + } + if (!(Objects.equals(value, that.value))) { + return false; + } + return true; } - public boolean hasAverageUtilization() { - return this.averageUtilization != null; + public Integer getAverageUtilization() { + return this.averageUtilization; } public Quantity getAverageValue() { return this.averageValue; } - public A withAverageValue(Quantity averageValue) { - this.averageValue = averageValue; - return (A) this; + public Quantity getValue() { + return this.value; + } + + public boolean hasAverageUtilization() { + return this.averageUtilization != null; } public boolean hasAverageValue() { return this.averageValue != null; } - public A withNewAverageValue(String value) { - return (A)withAverageValue(new Quantity(value)); + public boolean hasValue() { + return this.value != null; } - public Quantity getValue() { - return this.value; + public int hashCode() { + return Objects.hash(averageUtilization, averageValue, value); } - public A withValue(Quantity value) { - this.value = value; - return (A) this; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(averageUtilization == null)) { + sb.append("averageUtilization:"); + sb.append(averageUtilization); + sb.append(","); + } + if (!(averageValue == null)) { + sb.append("averageValue:"); + sb.append(averageValue); + sb.append(","); + } + if (!(value == null)) { + sb.append("value:"); + sb.append(value); + } + sb.append("}"); + return sb.toString(); } - public boolean hasValue() { - return this.value != null; + public A withAverageUtilization(Integer averageUtilization) { + this.averageUtilization = averageUtilization; + return (A) this; } - public A withNewValue(String value) { - return (A)withValue(new Quantity(value)); + public A withAverageValue(Quantity averageValue) { + this.averageValue = averageValue; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V2MetricValueStatusFluent that = (V2MetricValueStatusFluent) o; - if (!java.util.Objects.equals(averageUtilization, that.averageUtilization)) return false; - if (!java.util.Objects.equals(averageValue, that.averageValue)) return false; - if (!java.util.Objects.equals(value, that.value)) return false; - return true; + public A withNewAverageValue(String value) { + return (A) this.withAverageValue(new Quantity(value)); } - public int hashCode() { - return java.util.Objects.hash(averageUtilization, averageValue, value, super.hashCode()); + public A withNewValue(String value) { + return (A) this.withValue(new Quantity(value)); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (averageUtilization != null) { sb.append("averageUtilization:"); sb.append(averageUtilization + ","); } - if (averageValue != null) { sb.append("averageValue:"); sb.append(averageValue + ","); } - if (value != null) { sb.append("value:"); sb.append(value); } - sb.append("}"); - return sb.toString(); + public A withValue(Quantity value) { + this.value = value; + return (A) this; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java index e4ba2b80de..b1b7e8a785 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ObjectMetricSourceBuilder extends V2ObjectMetricSourceFluent implements VisitableBuilder{ + + V2ObjectMetricSourceFluent fluent; + public V2ObjectMetricSourceBuilder() { this(new V2ObjectMetricSource()); } @@ -10,17 +14,16 @@ public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent) { this(fluent, new V2ObjectMetricSource()); } - public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent,V2ObjectMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ObjectMetricSourceBuilder(V2ObjectMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2ObjectMetricSourceFluent fluent; + public V2ObjectMetricSourceBuilder(V2ObjectMetricSourceFluent fluent,V2ObjectMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ObjectMetricSource build() { V2ObjectMetricSource buildable = new V2ObjectMetricSource(); buildable.setDescribedObject(fluent.buildDescribedObject()); @@ -29,5 +32,4 @@ public V2ObjectMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java index f4e7a38d0d..80246a0607 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java @@ -1,77 +1,158 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ObjectMetricSourceFluent> extends BaseFluent{ +public class V2ObjectMetricSourceFluent> extends BaseFluent{ + + private V2CrossVersionObjectReferenceBuilder describedObject; + private V2MetricIdentifierBuilder metric; + private V2MetricTargetBuilder target; + public V2ObjectMetricSourceFluent() { } public V2ObjectMetricSourceFluent(V2ObjectMetricSource instance) { this.copyInstance(instance); } - private V2CrossVersionObjectReferenceBuilder describedObject; - private V2MetricIdentifierBuilder metric; - private V2MetricTargetBuilder target; + + public V2CrossVersionObjectReference buildDescribedObject() { + return this.describedObject != null ? this.describedObject.build() : null; + } + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } + + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V2ObjectMetricSource instance) { - instance = (instance != null ? instance : new V2ObjectMetricSource()); + instance = instance != null ? instance : new V2ObjectMetricSource(); if (instance != null) { - this.withDescribedObject(instance.getDescribedObject()); - this.withMetric(instance.getMetric()); - this.withTarget(instance.getTarget()); - } + this.withDescribedObject(instance.getDescribedObject()); + this.withMetric(instance.getMetric()); + this.withTarget(instance.getTarget()); + } } - public V2CrossVersionObjectReference buildDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + public DescribedObjectNested editDescribedObject() { + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(null)); } - public A withDescribedObject(V2CrossVersionObjectReference describedObject) { - this._visitables.remove("describedObject"); - if (describedObject != null) { - this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); - this._visitables.get("describedObject").add(this.describedObject); - } else { - this.describedObject = null; - this._visitables.get("describedObject").remove(this.describedObject); + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); + } + + public DescribedObjectNested editOrNewDescribedObject() { + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); + } + + public DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item) { + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(item)); + } + + public MetricNested editOrNewMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + } + + public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); + } + + public TargetNested editOrNewTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); + } + + public TargetNested editOrNewTargetLike(V2MetricTarget item) { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); + } + + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2ObjectMetricSourceFluent that = (V2ObjectMetricSourceFluent) o; + if (!(Objects.equals(describedObject, that.describedObject))) { + return false; + } + if (!(Objects.equals(metric, that.metric))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } + return true; } public boolean hasDescribedObject() { return this.describedObject != null; } - public DescribedObjectNested withNewDescribedObject() { - return new DescribedObjectNested(null); - } - - public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return new DescribedObjectNested(item); + public boolean hasMetric() { + return this.metric != null; } - public DescribedObjectNested editDescribedObject() { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(null)); + public boolean hasTarget() { + return this.target != null; } - public DescribedObjectNested editOrNewDescribedObject() { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); + public int hashCode() { + return Objects.hash(describedObject, metric, target); } - public DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(item)); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(describedObject == null)) { + sb.append("describedObject:"); + sb.append(describedObject); + sb.append(","); + } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } + sb.append("}"); + return sb.toString(); } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + public A withDescribedObject(V2CrossVersionObjectReference describedObject) { + this._visitables.remove("describedObject"); + if (describedObject != null) { + this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); + this._visitables.get("describedObject").add(this.describedObject); + } else { + this.describedObject = null; + this._visitables.get("describedObject").remove(this.describedObject); + } + return (A) this; } public A withMetric(V2MetricIdentifier metric) { @@ -86,8 +167,12 @@ public A withMetric(V2MetricIdentifier metric) { return (A) this; } - public boolean hasMetric() { - return this.metric != null; + public DescribedObjectNested withNewDescribedObject() { + return new DescribedObjectNested(null); + } + + public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { + return new DescribedObjectNested(item); } public MetricNested withNewMetric() { @@ -98,20 +183,12 @@ public MetricNested withNewMetricLike(V2MetricIdentifier item) { return new MetricNested(item); } - public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); - } - - public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); - } - - public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + public TargetNested withNewTarget() { + return new TargetNested(null); } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + public TargetNested withNewTargetLike(V2MetricTarget item) { + return new TargetNested(item); } public A withTarget(V2MetricTarget target) { @@ -125,61 +202,14 @@ public A withTarget(V2MetricTarget target) { } return (A) this; } + public class DescribedObjectNested extends V2CrossVersionObjectReferenceFluent> implements Nested{ - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); - } - - public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); - } - - public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).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; - V2ObjectMetricSourceFluent that = (V2ObjectMetricSourceFluent) o; - if (!java.util.Objects.equals(describedObject, that.describedObject)) return false; - if (!java.util.Objects.equals(metric, that.metric)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(describedObject, metric, target, super.hashCode()); - } + V2CrossVersionObjectReferenceBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (describedObject != null) { sb.append("describedObject:"); sb.append(describedObject + ","); } - if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } - sb.append("}"); - return sb.toString(); - } - public class DescribedObjectNested extends V2CrossVersionObjectReferenceFluent> implements Nested{ DescribedObjectNested(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } - V2CrossVersionObjectReferenceBuilder builder; - + public N and() { return (N) V2ObjectMetricSourceFluent.this.withDescribedObject(builder.build()); } @@ -188,14 +218,15 @@ public N endDescribedObject() { return and(); } - } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2ObjectMetricSourceFluent.this.withMetric(builder.build()); } @@ -204,14 +235,15 @@ public N endMetric() { return and(); } - } public class TargetNested extends V2MetricTargetFluent> implements Nested{ + + V2MetricTargetBuilder builder; + TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2ObjectMetricSourceFluent.this.withTarget(builder.build()); } @@ -220,7 +252,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java index 4bb4e54ec7..37948476f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ObjectMetricStatusBuilder extends V2ObjectMetricStatusFluent implements VisitableBuilder{ + + V2ObjectMetricStatusFluent fluent; + public V2ObjectMetricStatusBuilder() { this(new V2ObjectMetricStatus()); } @@ -10,17 +14,16 @@ public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent) { this(fluent, new V2ObjectMetricStatus()); } - public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent,V2ObjectMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ObjectMetricStatusBuilder(V2ObjectMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2ObjectMetricStatusFluent fluent; + public V2ObjectMetricStatusBuilder(V2ObjectMetricStatusFluent fluent,V2ObjectMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ObjectMetricStatus build() { V2ObjectMetricStatus buildable = new V2ObjectMetricStatus(); buildable.setCurrent(fluent.buildCurrent()); @@ -29,5 +32,4 @@ public V2ObjectMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java index f1c4bc2149..1a8beac033 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java @@ -1,117 +1,170 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ObjectMetricStatusFluent> extends BaseFluent{ +public class V2ObjectMetricStatusFluent> extends BaseFluent{ + + private V2MetricValueStatusBuilder current; + private V2CrossVersionObjectReferenceBuilder describedObject; + private V2MetricIdentifierBuilder metric; + public V2ObjectMetricStatusFluent() { } public V2ObjectMetricStatusFluent(V2ObjectMetricStatus instance) { this.copyInstance(instance); } - private V2MetricValueStatusBuilder current; - private V2CrossVersionObjectReferenceBuilder describedObject; - private V2MetricIdentifierBuilder metric; + + public V2MetricValueStatus buildCurrent() { + return this.current != null ? this.current.build() : null; + } + + public V2CrossVersionObjectReference buildDescribedObject() { + return this.describedObject != null ? this.describedObject.build() : null; + } + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } protected void copyInstance(V2ObjectMetricStatus instance) { - instance = (instance != null ? instance : new V2ObjectMetricStatus()); + instance = instance != null ? instance : new V2ObjectMetricStatus(); if (instance != null) { - this.withCurrent(instance.getCurrent()); - this.withDescribedObject(instance.getDescribedObject()); - this.withMetric(instance.getMetric()); - } + this.withCurrent(instance.getCurrent()); + this.withDescribedObject(instance.getDescribedObject()); + this.withMetric(instance.getMetric()); + } } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + public CurrentNested editCurrent() { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } - public A withCurrent(V2MetricValueStatus current) { - this._visitables.remove("current"); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - this._visitables.get("current").add(this.current); - } else { - this.current = null; - this._visitables.get("current").remove(this.current); - } - return (A) this; + public DescribedObjectNested editDescribedObject() { + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(null)); } - public boolean hasCurrent() { - return this.current != null; + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } - public CurrentNested withNewCurrent() { - return new CurrentNested(null); + public CurrentNested editOrNewCurrent() { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } - public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); + public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } - public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); + public DescribedObjectNested editOrNewDescribedObject() { + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); } - public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + public DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item) { + return this.withNewDescribedObjectLike(Optional.ofNullable(this.buildDescribedObject()).orElse(item)); } - public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(item)); + public MetricNested editOrNewMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } - public V2CrossVersionObjectReference buildDescribedObject() { - return this.describedObject != null ? this.describedObject.build() : null; + public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } - public A withDescribedObject(V2CrossVersionObjectReference describedObject) { - this._visitables.remove("describedObject"); - if (describedObject != null) { - this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); - this._visitables.get("describedObject").add(this.describedObject); - } else { - this.describedObject = null; - this._visitables.get("describedObject").remove(this.describedObject); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2ObjectMetricStatusFluent that = (V2ObjectMetricStatusFluent) o; + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(describedObject, that.describedObject))) { + return false; + } + if (!(Objects.equals(metric, that.metric))) { + return false; + } + return true; } - public boolean hasDescribedObject() { - return this.describedObject != null; + public boolean hasCurrent() { + return this.current != null; } - public DescribedObjectNested withNewDescribedObject() { - return new DescribedObjectNested(null); + public boolean hasDescribedObject() { + return this.describedObject != null; } - public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return new DescribedObjectNested(item); + public boolean hasMetric() { + return this.metric != null; } - public DescribedObjectNested editDescribedObject() { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(null)); + public int hashCode() { + return Objects.hash(current, describedObject, metric); } - public DescribedObjectNested editOrNewDescribedObject() { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(new V2CrossVersionObjectReferenceBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(describedObject == null)) { + sb.append("describedObject:"); + sb.append(describedObject); + sb.append(","); + } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + } + sb.append("}"); + return sb.toString(); } - public DescribedObjectNested editOrNewDescribedObjectLike(V2CrossVersionObjectReference item) { - return withNewDescribedObjectLike(java.util.Optional.ofNullable(buildDescribedObject()).orElse(item)); + public A withCurrent(V2MetricValueStatus current) { + this._visitables.remove("current"); + if (current != null) { + this.current = new V2MetricValueStatusBuilder(current); + this._visitables.get("current").add(this.current); + } else { + this.current = null; + this._visitables.get("current").remove(this.current); + } + return (A) this; } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + public A withDescribedObject(V2CrossVersionObjectReference describedObject) { + this._visitables.remove("describedObject"); + if (describedObject != null) { + this.describedObject = new V2CrossVersionObjectReferenceBuilder(describedObject); + this._visitables.get("describedObject").add(this.describedObject); + } else { + this.describedObject = null; + this._visitables.get("describedObject").remove(this.describedObject); + } + return (A) this; } public A withMetric(V2MetricIdentifier metric) { @@ -126,60 +179,37 @@ public A withMetric(V2MetricIdentifier metric) { return (A) this; } - public boolean hasMetric() { - return this.metric != null; - } - - public MetricNested withNewMetric() { - return new MetricNested(null); + public CurrentNested withNewCurrent() { + return new CurrentNested(null); } - public MetricNested withNewMetricLike(V2MetricIdentifier item) { - return new MetricNested(item); + public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { + return new CurrentNested(item); } - public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); + public DescribedObjectNested withNewDescribedObject() { + return new DescribedObjectNested(null); } - public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + public DescribedObjectNested withNewDescribedObjectLike(V2CrossVersionObjectReference item) { + return new DescribedObjectNested(item); } - public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + public MetricNested withNewMetric() { + return new MetricNested(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; - V2ObjectMetricStatusFluent that = (V2ObjectMetricStatusFluent) o; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(describedObject, that.describedObject)) return false; - if (!java.util.Objects.equals(metric, that.metric)) return false; - return true; + public MetricNested withNewMetricLike(V2MetricIdentifier item) { + return new MetricNested(item); } + public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ - public int hashCode() { - return java.util.Objects.hash(current, describedObject, metric, super.hashCode()); - } + V2MetricValueStatusBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (describedObject != null) { sb.append("describedObject:"); sb.append(describedObject + ","); } - if (metric != null) { sb.append("metric:"); sb.append(metric); } - sb.append("}"); - return sb.toString(); - } - public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2ObjectMetricStatusFluent.this.withCurrent(builder.build()); } @@ -188,14 +218,15 @@ public N endCurrent() { return and(); } - } public class DescribedObjectNested extends V2CrossVersionObjectReferenceFluent> implements Nested{ + + V2CrossVersionObjectReferenceBuilder builder; + DescribedObjectNested(V2CrossVersionObjectReference item) { this.builder = new V2CrossVersionObjectReferenceBuilder(this, item); } - V2CrossVersionObjectReferenceBuilder builder; - + public N and() { return (N) V2ObjectMetricStatusFluent.this.withDescribedObject(builder.build()); } @@ -204,14 +235,15 @@ public N endDescribedObject() { return and(); } - } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2ObjectMetricStatusFluent.this.withMetric(builder.build()); } @@ -220,7 +252,5 @@ public N endMetric() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java index d86c0ac8fd..eba378d121 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2PodsMetricSourceBuilder extends V2PodsMetricSourceFluent implements VisitableBuilder{ + + V2PodsMetricSourceFluent fluent; + public V2PodsMetricSourceBuilder() { this(new V2PodsMetricSource()); } @@ -10,17 +14,16 @@ public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent) { this(fluent, new V2PodsMetricSource()); } - public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent,V2PodsMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2PodsMetricSourceBuilder(V2PodsMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2PodsMetricSourceFluent fluent; + public V2PodsMetricSourceBuilder(V2PodsMetricSourceFluent fluent,V2PodsMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2PodsMetricSource build() { V2PodsMetricSource buildable = new V2PodsMetricSource(); buildable.setMetric(fluent.buildMetric()); @@ -28,5 +31,4 @@ public V2PodsMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java index a7028113b7..f5a13a605d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java @@ -1,35 +1,116 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2PodsMetricSourceFluent> extends BaseFluent{ +public class V2PodsMetricSourceFluent> extends BaseFluent{ + + private V2MetricIdentifierBuilder metric; + private V2MetricTargetBuilder target; + public V2PodsMetricSourceFluent() { } public V2PodsMetricSourceFluent(V2PodsMetricSource instance) { this.copyInstance(instance); } - private V2MetricIdentifierBuilder metric; - private V2MetricTargetBuilder target; + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } + + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V2PodsMetricSource instance) { - instance = (instance != null ? instance : new V2PodsMetricSource()); + instance = instance != null ? instance : new V2PodsMetricSource(); if (instance != null) { - this.withMetric(instance.getMetric()); - this.withTarget(instance.getTarget()); - } + this.withMetric(instance.getMetric()); + this.withTarget(instance.getTarget()); + } } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); + } + + public MetricNested editOrNewMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); + } + + public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); + } + + public TargetNested editOrNewTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); + } + + public TargetNested editOrNewTargetLike(V2MetricTarget item) { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); + } + + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2PodsMetricSourceFluent that = (V2PodsMetricSourceFluent) o; + if (!(Objects.equals(metric, that.metric))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } + return true; + } + + public boolean hasMetric() { + return this.metric != null; + } + + public boolean hasTarget() { + return this.target != null; + } + + public int hashCode() { + return Objects.hash(metric, target); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } + sb.append("}"); + return sb.toString(); } public A withMetric(V2MetricIdentifier metric) { @@ -44,10 +125,6 @@ public A withMetric(V2MetricIdentifier metric) { return (A) this; } - public boolean hasMetric() { - return this.metric != null; - } - public MetricNested withNewMetric() { return new MetricNested(null); } @@ -56,20 +133,12 @@ public MetricNested withNewMetricLike(V2MetricIdentifier item) { return new MetricNested(item); } - public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); - } - - public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); - } - - public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(item)); + public TargetNested withNewTarget() { + return new TargetNested(null); } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + public TargetNested withNewTargetLike(V2MetricTarget item) { + return new TargetNested(item); } public A withTarget(V2MetricTarget target) { @@ -83,59 +152,14 @@ public A withTarget(V2MetricTarget target) { } return (A) this; } + public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ - public boolean hasTarget() { - return this.target != null; - } - - public TargetNested withNewTarget() { - return new TargetNested(null); - } - - public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); - } - - public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); - } - - public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); - } - - public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).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; - V2PodsMetricSourceFluent that = (V2PodsMetricSourceFluent) o; - if (!java.util.Objects.equals(metric, that.metric)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(metric, target, super.hashCode()); - } + V2MetricIdentifierBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (metric != null) { sb.append("metric:"); sb.append(metric + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } - sb.append("}"); - return sb.toString(); - } - public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2PodsMetricSourceFluent.this.withMetric(builder.build()); } @@ -144,14 +168,15 @@ public N endMetric() { return and(); } - } public class TargetNested extends V2MetricTargetFluent> implements Nested{ + + V2MetricTargetBuilder builder; + TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2PodsMetricSourceFluent.this.withTarget(builder.build()); } @@ -160,7 +185,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java index ea302ebfd1..955a9b9d36 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2PodsMetricStatusBuilder extends V2PodsMetricStatusFluent implements VisitableBuilder{ + + V2PodsMetricStatusFluent fluent; + public V2PodsMetricStatusBuilder() { this(new V2PodsMetricStatus()); } @@ -10,17 +14,16 @@ public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent) { this(fluent, new V2PodsMetricStatus()); } - public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent,V2PodsMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2PodsMetricStatusBuilder(V2PodsMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2PodsMetricStatusFluent fluent; + public V2PodsMetricStatusBuilder(V2PodsMetricStatusFluent fluent,V2PodsMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2PodsMetricStatus build() { V2PodsMetricStatus buildable = new V2PodsMetricStatus(); buildable.setCurrent(fluent.buildCurrent()); @@ -28,5 +31,4 @@ public V2PodsMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java index cf08d6e1a4..1ae339905e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java @@ -1,75 +1,128 @@ 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 io.kubernetes.client.fluent.Nested; import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2PodsMetricStatusFluent> extends BaseFluent{ +public class V2PodsMetricStatusFluent> extends BaseFluent{ + + private V2MetricValueStatusBuilder current; + private V2MetricIdentifierBuilder metric; + public V2PodsMetricStatusFluent() { } public V2PodsMetricStatusFluent(V2PodsMetricStatus instance) { this.copyInstance(instance); } - private V2MetricValueStatusBuilder current; - private V2MetricIdentifierBuilder metric; + + public V2MetricValueStatus buildCurrent() { + return this.current != null ? this.current.build() : null; + } + + public V2MetricIdentifier buildMetric() { + return this.metric != null ? this.metric.build() : null; + } protected void copyInstance(V2PodsMetricStatus instance) { - instance = (instance != null ? instance : new V2PodsMetricStatus()); + instance = instance != null ? instance : new V2PodsMetricStatus(); if (instance != null) { - this.withCurrent(instance.getCurrent()); - this.withMetric(instance.getMetric()); - } + this.withCurrent(instance.getCurrent()); + this.withMetric(instance.getMetric()); + } } - public V2MetricValueStatus buildCurrent() { - return this.current != null ? this.current.build() : null; + public CurrentNested editCurrent() { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } - public A withCurrent(V2MetricValueStatus current) { - this._visitables.remove("current"); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - this._visitables.get("current").add(this.current); - } else { - this.current = null; - this._visitables.get("current").remove(this.current); - } - return (A) this; + public MetricNested editMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(null)); } - public boolean hasCurrent() { - return this.current != null; + public CurrentNested editOrNewCurrent() { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } - public CurrentNested withNewCurrent() { - return new CurrentNested(null); + public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); } - public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); + public MetricNested editOrNewMetric() { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); } - public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); + public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { + return this.withNewMetricLike(Optional.ofNullable(this.buildMetric()).orElse(item)); } - public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2PodsMetricStatusFluent that = (V2PodsMetricStatusFluent) o; + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(metric, that.metric))) { + return false; + } + return true; } - public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(item)); + public boolean hasCurrent() { + return this.current != null; } - public V2MetricIdentifier buildMetric() { - return this.metric != null ? this.metric.build() : null; + public boolean hasMetric() { + return this.metric != null; + } + + public int hashCode() { + return Objects.hash(current, metric); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(metric == null)) { + sb.append("metric:"); + sb.append(metric); + } + sb.append("}"); + return sb.toString(); + } + + public A withCurrent(V2MetricValueStatus current) { + this._visitables.remove("current"); + if (current != null) { + this.current = new V2MetricValueStatusBuilder(current); + this._visitables.get("current").add(this.current); + } else { + this.current = null; + this._visitables.get("current").remove(this.current); + } + return (A) this; } public A withMetric(V2MetricIdentifier metric) { @@ -84,8 +137,12 @@ public A withMetric(V2MetricIdentifier metric) { return (A) this; } - public boolean hasMetric() { - return this.metric != null; + public CurrentNested withNewCurrent() { + return new CurrentNested(null); + } + + public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { + return new CurrentNested(item); } public MetricNested withNewMetric() { @@ -95,47 +152,14 @@ public MetricNested withNewMetric() { public MetricNested withNewMetricLike(V2MetricIdentifier item) { return new MetricNested(item); } + public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ - public MetricNested editMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(null)); - } - - public MetricNested editOrNewMetric() { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).orElse(new V2MetricIdentifierBuilder().build())); - } - - public MetricNested editOrNewMetricLike(V2MetricIdentifier item) { - return withNewMetricLike(java.util.Optional.ofNullable(buildMetric()).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; - V2PodsMetricStatusFluent that = (V2PodsMetricStatusFluent) o; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(metric, that.metric)) return false; - return true; - } - - public int hashCode() { - return java.util.Objects.hash(current, metric, super.hashCode()); - } + V2MetricValueStatusBuilder builder; - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (metric != null) { sb.append("metric:"); sb.append(metric); } - sb.append("}"); - return sb.toString(); - } - public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2PodsMetricStatusFluent.this.withCurrent(builder.build()); } @@ -144,14 +168,15 @@ public N endCurrent() { return and(); } - } public class MetricNested extends V2MetricIdentifierFluent> implements Nested{ + + V2MetricIdentifierBuilder builder; + MetricNested(V2MetricIdentifier item) { this.builder = new V2MetricIdentifierBuilder(this, item); } - V2MetricIdentifierBuilder builder; - + public N and() { return (N) V2PodsMetricStatusFluent.this.withMetric(builder.build()); } @@ -160,7 +185,5 @@ public N endMetric() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java index 3c8f9000ef..ae3ea3731c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ResourceMetricSourceBuilder extends V2ResourceMetricSourceFluent implements VisitableBuilder{ + + V2ResourceMetricSourceFluent fluent; + public V2ResourceMetricSourceBuilder() { this(new V2ResourceMetricSource()); } @@ -10,17 +14,16 @@ public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent) { this(fluent, new V2ResourceMetricSource()); } - public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,V2ResourceMetricSource instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ResourceMetricSourceBuilder(V2ResourceMetricSource instance) { this.fluent = this; this.copyInstance(instance); } - V2ResourceMetricSourceFluent fluent; + public V2ResourceMetricSourceBuilder(V2ResourceMetricSourceFluent fluent,V2ResourceMetricSource instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ResourceMetricSource build() { V2ResourceMetricSource buildable = new V2ResourceMetricSource(); buildable.setName(fluent.getName()); @@ -28,5 +31,4 @@ public V2ResourceMetricSource build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java index 0635239f8a..9c3aa378b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ResourceMetricSourceFluent> extends BaseFluent{ +public class V2ResourceMetricSourceFluent> extends BaseFluent{ + + private String name; + private V2MetricTargetBuilder target; + public V2ResourceMetricSourceFluent() { } public V2ResourceMetricSourceFluent(V2ResourceMetricSource instance) { this.copyInstance(instance); } - private String name; - private V2MetricTargetBuilder target; + + public V2MetricTarget buildTarget() { + return this.target != null ? this.target.build() : null; + } protected void copyInstance(V2ResourceMetricSource instance) { - instance = (instance != null ? instance : new V2ResourceMetricSource()); + instance = instance != null ? instance : new V2ResourceMetricSource(); if (instance != null) { - this.withName(instance.getName()); - this.withTarget(instance.getTarget()); - } - } - - public String getName() { - return this.name; + this.withName(instance.getName()); + this.withTarget(instance.getTarget()); + } } - public A withName(String name) { - this.name = name; - return (A) this; + public TargetNested editOrNewTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(new V2MetricTargetBuilder().build())); } - public boolean hasName() { - return this.name != null; + public TargetNested editOrNewTargetLike(V2MetricTarget item) { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(item)); } - public V2MetricTarget buildTarget() { - return this.target != null ? this.target.build() : null; + public TargetNested editTarget() { + return this.withNewTargetLike(Optional.ofNullable(this.buildTarget()).orElse(null)); } - public A withTarget(V2MetricTarget target) { - this._visitables.remove("target"); - if (target != null) { - this.target = new V2MetricTargetBuilder(target); - this._visitables.get("target").add(this.target); - } else { - this.target = null; - this._visitables.get("target").remove(this.target); + public boolean equals(Object o) { + if (this == o) { + return true; } - return (A) this; + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2ResourceMetricSourceFluent that = (V2ResourceMetricSourceFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(target, that.target))) { + return false; + } + return true; } - public boolean hasTarget() { - return this.target != null; + public String getName() { + return this.name; } - public TargetNested withNewTarget() { - return new TargetNested(null); + public boolean hasName() { + return this.name != null; } - public TargetNested withNewTargetLike(V2MetricTarget item) { - return new TargetNested(item); + public boolean hasTarget() { + return this.target != null; } - public TargetNested editTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(null)); + public int hashCode() { + return Objects.hash(name, target); } - public TargetNested editOrNewTarget() { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(new V2MetricTargetBuilder().build())); + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(target == null)) { + sb.append("target:"); + sb.append(target); + } + sb.append("}"); + return sb.toString(); } - public TargetNested editOrNewTargetLike(V2MetricTarget item) { - return withNewTargetLike(java.util.Optional.ofNullable(buildTarget()).orElse(item)); + public A withName(String name) { + this.name = name; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - V2ResourceMetricSourceFluent that = (V2ResourceMetricSourceFluent) o; - if (!java.util.Objects.equals(name, that.name)) return false; - if (!java.util.Objects.equals(target, that.target)) return false; - return true; + public TargetNested withNewTarget() { + return new TargetNested(null); } - public int hashCode() { - return java.util.Objects.hash(name, target, super.hashCode()); + public TargetNested withNewTargetLike(V2MetricTarget item) { + return new TargetNested(item); } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (name != null) { sb.append("name:"); sb.append(name + ","); } - if (target != null) { sb.append("target:"); sb.append(target); } - sb.append("}"); - return sb.toString(); + public A withTarget(V2MetricTarget target) { + this._visitables.remove("target"); + if (target != null) { + this.target = new V2MetricTargetBuilder(target); + this._visitables.get("target").add(this.target); + } else { + this.target = null; + this._visitables.get("target").remove(this.target); + } + return (A) this; } public class TargetNested extends V2MetricTargetFluent> implements Nested{ + + V2MetricTargetBuilder builder; + TargetNested(V2MetricTarget item) { this.builder = new V2MetricTargetBuilder(this, item); } - V2MetricTargetBuilder builder; - + public N and() { return (N) V2ResourceMetricSourceFluent.this.withTarget(builder.build()); } @@ -117,7 +141,5 @@ public N endTarget() { return and(); } - } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java index 53ea7d421e..c45a75c764 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class V2ResourceMetricStatusBuilder extends V2ResourceMetricStatusFluent implements VisitableBuilder{ + + V2ResourceMetricStatusFluent fluent; + public V2ResourceMetricStatusBuilder() { this(new V2ResourceMetricStatus()); } @@ -10,17 +14,16 @@ public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent) { this(fluent, new V2ResourceMetricStatus()); } - public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent,V2ResourceMetricStatus instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public V2ResourceMetricStatusBuilder(V2ResourceMetricStatus instance) { this.fluent = this; this.copyInstance(instance); } - V2ResourceMetricStatusFluent fluent; + public V2ResourceMetricStatusBuilder(V2ResourceMetricStatusFluent fluent,V2ResourceMetricStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + public V2ResourceMetricStatus build() { V2ResourceMetricStatus buildable = new V2ResourceMetricStatus(); buildable.setCurrent(fluent.buildCurrent()); @@ -28,5 +31,4 @@ public V2ResourceMetricStatus build() { return buildable; } - } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java index b25742fd69..ea755a8d0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java @@ -1,114 +1,138 @@ 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; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; /** * Generated */ @SuppressWarnings("unchecked") -public class V2ResourceMetricStatusFluent> extends BaseFluent{ +public class V2ResourceMetricStatusFluent> extends BaseFluent{ + + private V2MetricValueStatusBuilder current; + private String name; + public V2ResourceMetricStatusFluent() { } public V2ResourceMetricStatusFluent(V2ResourceMetricStatus instance) { this.copyInstance(instance); } - private V2MetricValueStatusBuilder current; - private String name; - - protected void copyInstance(V2ResourceMetricStatus instance) { - instance = (instance != null ? instance : new V2ResourceMetricStatus()); - if (instance != null) { - this.withCurrent(instance.getCurrent()); - this.withName(instance.getName()); - } - } - + public V2MetricValueStatus buildCurrent() { return this.current != null ? this.current.build() : null; } - public A withCurrent(V2MetricValueStatus current) { - this._visitables.remove("current"); - if (current != null) { - this.current = new V2MetricValueStatusBuilder(current); - this._visitables.get("current").add(this.current); - } else { - this.current = null; - this._visitables.get("current").remove(this.current); + protected void copyInstance(V2ResourceMetricStatus instance) { + instance = instance != null ? instance : new V2ResourceMetricStatus(); + if (instance != null) { + this.withCurrent(instance.getCurrent()); + this.withName(instance.getName()); } - return (A) this; - } - - public boolean hasCurrent() { - return this.current != null; - } - - public CurrentNested withNewCurrent() { - return new CurrentNested(null); - } - - public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { - return new CurrentNested(item); } public CurrentNested editCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(null)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(null)); } public CurrentNested editOrNewCurrent() { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(new V2MetricValueStatusBuilder().build())); } public CurrentNested editOrNewCurrentLike(V2MetricValueStatus item) { - return withNewCurrentLike(java.util.Optional.ofNullable(buildCurrent()).orElse(item)); + return this.withNewCurrentLike(Optional.ofNullable(this.buildCurrent()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2ResourceMetricStatusFluent that = (V2ResourceMetricStatusFluent) o; + if (!(Objects.equals(current, that.current))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + return true; } public String getName() { return this.name; } - public A withName(String name) { - this.name = name; - return (A) this; + public boolean hasCurrent() { + return this.current != null; } 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; - V2ResourceMetricStatusFluent that = (V2ResourceMetricStatusFluent) o; - if (!java.util.Objects.equals(current, that.current)) return false; - if (!java.util.Objects.equals(name, that.name)) return false; - return true; - } - public int hashCode() { - return java.util.Objects.hash(current, name, super.hashCode()); + return Objects.hash(current, name); } public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); - if (current != null) { sb.append("current:"); sb.append(current + ","); } - if (name != null) { sb.append("name:"); sb.append(name); } + if (!(current == null)) { + sb.append("current:"); + sb.append(current); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + } sb.append("}"); return sb.toString(); } + + public A withCurrent(V2MetricValueStatus current) { + this._visitables.remove("current"); + if (current != null) { + this.current = new V2MetricValueStatusBuilder(current); + this._visitables.get("current").add(this.current); + } else { + this.current = null; + this._visitables.get("current").remove(this.current); + } + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public CurrentNested withNewCurrent() { + return new CurrentNested(null); + } + + public CurrentNested withNewCurrentLike(V2MetricValueStatus item) { + return new CurrentNested(item); + } public class CurrentNested extends V2MetricValueStatusFluent> implements Nested{ + + V2MetricValueStatusBuilder builder; + CurrentNested(V2MetricValueStatus item) { this.builder = new V2MetricValueStatusBuilder(this, item); } - V2MetricValueStatusBuilder builder; - + public N and() { return (N) V2ResourceMetricStatusFluent.this.withCurrent(builder.build()); } @@ -117,7 +141,5 @@ public N endCurrent() { return and(); } - } - } \ No newline at end of file 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..4b485ab89c 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 @@ -1,7 +1,11 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; public class VersionInfoBuilder extends VersionInfoFluent implements VisitableBuilder{ + + VersionInfoFluent fluent; + public VersionInfoBuilder() { this(new VersionInfo()); } @@ -10,30 +14,32 @@ public VersionInfoBuilder(VersionInfoFluent fluent) { this(fluent, new VersionInfo()); } - public VersionInfoBuilder(VersionInfoFluent fluent,VersionInfo instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - public VersionInfoBuilder(VersionInfo instance) { this.fluent = this; this.copyInstance(instance); } - VersionInfoFluent fluent; + public VersionInfoBuilder(VersionInfoFluent fluent,VersionInfo instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + 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; } - } \ No newline at end of file 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..b69414b952 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 @@ -1,199 +1,353 @@ 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.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; /** * Generated */ @SuppressWarnings("unchecked") -public class VersionInfoFluent> extends BaseFluent{ - public VersionInfoFluent() { - } - - public VersionInfoFluent(VersionInfo instance) { - this.copyInstance(instance); - } +public class VersionInfoFluent> extends BaseFluent{ + 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; + + public VersionInfoFluent() { + } + public VersionInfoFluent(VersionInfo instance) { + this.copyInstance(instance); + } + protected void copyInstance(VersionInfo instance) { - instance = (instance != null ? instance : new VersionInfo()); + instance = instance != null ? instance : new VersionInfo(); if (instance != null) { - this.withBuildDate(instance.getBuildDate()); - this.withCompiler(instance.getCompiler()); - this.withGitCommit(instance.getGitCommit()); - this.withGitTreeState(instance.getGitTreeState()); - this.withGitVersion(instance.getGitVersion()); - this.withGoVersion(instance.getGoVersion()); - this.withMajor(instance.getMajor()); - this.withMinor(instance.getMinor()); - this.withPlatform(instance.getPlatform()); - } + 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()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + VersionInfoFluent that = (VersionInfoFluent) o; + if (!(Objects.equals(buildDate, that.buildDate))) { + return false; + } + if (!(Objects.equals(compiler, that.compiler))) { + return false; + } + if (!(Objects.equals(emulationMajor, that.emulationMajor))) { + return false; + } + if (!(Objects.equals(emulationMinor, that.emulationMinor))) { + return false; + } + if (!(Objects.equals(gitCommit, that.gitCommit))) { + return false; + } + if (!(Objects.equals(gitTreeState, that.gitTreeState))) { + return false; + } + if (!(Objects.equals(gitVersion, that.gitVersion))) { + return false; + } + if (!(Objects.equals(goVersion, that.goVersion))) { + return false; + } + if (!(Objects.equals(major, that.major))) { + return false; + } + if (!(Objects.equals(minCompatibilityMajor, that.minCompatibilityMajor))) { + return false; + } + if (!(Objects.equals(minCompatibilityMinor, that.minCompatibilityMinor))) { + return false; + } + if (!(Objects.equals(minor, that.minor))) { + return false; + } + if (!(Objects.equals(platform, that.platform))) { + return false; + } + return true; } public String getBuildDate() { return this.buildDate; } - public A withBuildDate(String buildDate) { - this.buildDate = buildDate; - return (A) this; + public String getCompiler() { + return this.compiler; } - public boolean hasBuildDate() { - return this.buildDate != null; + public String getEmulationMajor() { + return this.emulationMajor; } - public String getCompiler() { - return this.compiler; + public String getEmulationMinor() { + return this.emulationMinor; } - public A withCompiler(String compiler) { - this.compiler = compiler; - return (A) this; + public String getGitCommit() { + return this.gitCommit; + } + + public String getGitTreeState() { + return this.gitTreeState; + } + + public String getGitVersion() { + return this.gitVersion; + } + + public String getGoVersion() { + return this.goVersion; + } + + public String getMajor() { + return this.major; + } + + public String getMinCompatibilityMajor() { + return this.minCompatibilityMajor; + } + + public String getMinCompatibilityMinor() { + return this.minCompatibilityMinor; + } + + public String getMinor() { + return this.minor; + } + + public String getPlatform() { + return this.platform; + } + + public boolean hasBuildDate() { + return this.buildDate != null; } public boolean hasCompiler() { return this.compiler != null; } - public String getGitCommit() { - return this.gitCommit; + public boolean hasEmulationMajor() { + return this.emulationMajor != null; } - public A withGitCommit(String gitCommit) { - this.gitCommit = gitCommit; - return (A) this; + public boolean hasEmulationMinor() { + return this.emulationMinor != null; } public boolean hasGitCommit() { return this.gitCommit != null; } - public String getGitTreeState() { - return this.gitTreeState; + public boolean hasGitTreeState() { + return this.gitTreeState != null; } - public A withGitTreeState(String gitTreeState) { - this.gitTreeState = gitTreeState; - return (A) this; + public boolean hasGitVersion() { + return this.gitVersion != null; } - public boolean hasGitTreeState() { - return this.gitTreeState != null; + public boolean hasGoVersion() { + return this.goVersion != null; } - public String getGitVersion() { - return this.gitVersion; + public boolean hasMajor() { + return this.major != null; } - public A withGitVersion(String gitVersion) { - this.gitVersion = gitVersion; - return (A) this; + public boolean hasMinCompatibilityMajor() { + return this.minCompatibilityMajor != null; } - public boolean hasGitVersion() { - return this.gitVersion != null; + public boolean hasMinCompatibilityMinor() { + return this.minCompatibilityMinor != null; } - public String getGoVersion() { - return this.goVersion; + public boolean hasMinor() { + return this.minor != null; } - public A withGoVersion(String goVersion) { - this.goVersion = goVersion; - return (A) this; + public boolean hasPlatform() { + return this.platform != null; } - public boolean hasGoVersion() { - return this.goVersion != null; + public int hashCode() { + return Objects.hash(buildDate, compiler, emulationMajor, emulationMinor, gitCommit, gitTreeState, gitVersion, goVersion, major, minCompatibilityMajor, minCompatibilityMinor, minor, platform); } - public String getMajor() { - return this.major; + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(buildDate == null)) { + sb.append("buildDate:"); + sb.append(buildDate); + sb.append(","); + } + if (!(compiler == null)) { + sb.append("compiler:"); + sb.append(compiler); + sb.append(","); + } + if (!(emulationMajor == null)) { + sb.append("emulationMajor:"); + sb.append(emulationMajor); + sb.append(","); + } + if (!(emulationMinor == null)) { + sb.append("emulationMinor:"); + sb.append(emulationMinor); + sb.append(","); + } + if (!(gitCommit == null)) { + sb.append("gitCommit:"); + sb.append(gitCommit); + sb.append(","); + } + if (!(gitTreeState == null)) { + sb.append("gitTreeState:"); + sb.append(gitTreeState); + sb.append(","); + } + if (!(gitVersion == null)) { + sb.append("gitVersion:"); + sb.append(gitVersion); + sb.append(","); + } + if (!(goVersion == null)) { + sb.append("goVersion:"); + sb.append(goVersion); + sb.append(","); + } + if (!(major == null)) { + sb.append("major:"); + sb.append(major); + sb.append(","); + } + if (!(minCompatibilityMajor == null)) { + sb.append("minCompatibilityMajor:"); + sb.append(minCompatibilityMajor); + sb.append(","); + } + if (!(minCompatibilityMinor == null)) { + sb.append("minCompatibilityMinor:"); + sb.append(minCompatibilityMinor); + sb.append(","); + } + if (!(minor == null)) { + sb.append("minor:"); + sb.append(minor); + sb.append(","); + } + if (!(platform == null)) { + sb.append("platform:"); + sb.append(platform); + } + sb.append("}"); + return sb.toString(); } - public A withMajor(String major) { - this.major = major; + public A withBuildDate(String buildDate) { + this.buildDate = buildDate; return (A) this; } - public boolean hasMajor() { - return this.major != null; + public A withCompiler(String compiler) { + this.compiler = compiler; + return (A) this; } - public String getMinor() { - return this.minor; + public A withEmulationMajor(String emulationMajor) { + this.emulationMajor = emulationMajor; + return (A) this; } - public A withMinor(String minor) { - this.minor = minor; + public A withEmulationMinor(String emulationMinor) { + this.emulationMinor = emulationMinor; return (A) this; } - public boolean hasMinor() { - return this.minor != null; + public A withGitCommit(String gitCommit) { + this.gitCommit = gitCommit; + return (A) this; } - public String getPlatform() { - return this.platform; + public A withGitTreeState(String gitTreeState) { + this.gitTreeState = gitTreeState; + return (A) this; } - public A withPlatform(String platform) { - this.platform = platform; + public A withGitVersion(String gitVersion) { + this.gitVersion = gitVersion; return (A) this; } - public boolean hasPlatform() { - return this.platform != null; + public A withGoVersion(String goVersion) { + this.goVersion = goVersion; + return (A) this; } - public boolean equals(Object o) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - if (!super.equals(o)) return false; - 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(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(minor, that.minor)) return false; - if (!java.util.Objects.equals(platform, that.platform)) return false; - return true; + public A withMajor(String major) { + this.major = major; + return (A) this; } - public int hashCode() { - return java.util.Objects.hash(buildDate, compiler, gitCommit, gitTreeState, gitVersion, goVersion, major, minor, platform, super.hashCode()); + public A withMinCompatibilityMajor(String minCompatibilityMajor) { + this.minCompatibilityMajor = minCompatibilityMajor; + return (A) this; } - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (buildDate != null) { sb.append("buildDate:"); sb.append(buildDate + ","); } - if (compiler != null) { sb.append("compiler:"); sb.append(compiler + ","); } - 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 (minor != null) { sb.append("minor:"); sb.append(minor + ","); } - if (platform != null) { sb.append("platform:"); sb.append(platform); } - sb.append("}"); - return sb.toString(); + public A withMinCompatibilityMinor(String minCompatibilityMinor) { + this.minCompatibilityMinor = minCompatibilityMinor; + return (A) this; + } + + public A withMinor(String minor) { + this.minor = minor; + return (A) this; + } + + public A withPlatform(String platform) { + this.platform = platform; + return (A) this; } - } \ No newline at end of file diff --git a/kubernetes/.github/workflows/maven.yml b/kubernetes/.github/workflows/maven.yml index 2bdb7b6d47..d477f8fd78 100644 --- a/kubernetes/.github/workflows/maven.yml +++ b/kubernetes/.github/workflows/maven.yml @@ -19,9 +19,9 @@ jobs: matrix: java: [ 17, 21 ] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Set up JDK - uses: actions/setup-java@v4 + uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4 with: java-version: ${{ matrix.java }} distribution: 'temurin' diff --git a/kubernetes/.openapi-generator/COMMIT b/kubernetes/.openapi-generator/COMMIT index eaeb6a15ba..43424928ef 100644 --- a/kubernetes/.openapi-generator/COMMIT +++ b/kubernetes/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit/Tag : v7.6.0 -Actual Commit : ab7d0cb74f6ef95bdaeafd327bbdb5d54f819175 +Requested Commit/Tag : v7.18.0 +Actual Commit : 51228436e0953aa8613ecbef8102e077b6da276f diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES index 75786d420a..067ed495fb 100644 --- a/kubernetes/.openapi-generator/FILES +++ b/kubernetes/.openapi-generator/FILES @@ -19,8 +19,6 @@ docs/AppsV1Api.md docs/AuthenticationApi.md docs/AuthenticationV1Api.md docs/AuthenticationV1TokenRequest.md -docs/AuthenticationV1alpha1Api.md -docs/AuthenticationV1beta1Api.md docs/AuthorizationApi.md docs/AuthorizationV1Api.md docs/AutoscalingApi.md @@ -31,14 +29,18 @@ docs/BatchV1Api.md docs/CertificatesApi.md docs/CertificatesV1Api.md docs/CertificatesV1alpha1Api.md +docs/CertificatesV1beta1Api.md docs/CoordinationApi.md docs/CoordinationV1Api.md +docs/CoordinationV1alpha2Api.md +docs/CoordinationV1beta1Api.md docs/CoreApi.md docs/CoreV1Api.md docs/CoreV1EndpointPort.md docs/CoreV1Event.md docs/CoreV1EventList.md docs/CoreV1EventSeries.md +docs/CoreV1ResourceClaim.md docs/CustomObjectsApi.md docs/DiscoveryApi.md docs/DiscoveryV1Api.md @@ -50,14 +52,13 @@ docs/EventsV1EventList.md docs/EventsV1EventSeries.md docs/FlowcontrolApiserverApi.md docs/FlowcontrolApiserverV1Api.md -docs/FlowcontrolApiserverV1beta3Api.md docs/FlowcontrolV1Subject.md docs/InternalApiserverApi.md docs/InternalApiserverV1alpha1Api.md docs/LogsApi.md docs/NetworkingApi.md docs/NetworkingV1Api.md -docs/NetworkingV1alpha1Api.md +docs/NetworkingV1beta1Api.md docs/NodeApi.md docs/NodeV1Api.md docs/OpenidApi.md @@ -67,15 +68,20 @@ docs/RbacAuthorizationApi.md docs/RbacAuthorizationV1Api.md docs/RbacV1Subject.md docs/ResourceApi.md -docs/ResourceV1alpha2Api.md +docs/ResourceV1Api.md +docs/ResourceV1ResourceClaim.md +docs/ResourceV1alpha3Api.md +docs/ResourceV1beta1Api.md +docs/ResourceV1beta2Api.md docs/SchedulingApi.md docs/SchedulingV1Api.md +docs/SchedulingV1alpha1Api.md docs/StorageApi.md docs/StorageV1Api.md docs/StorageV1TokenRequest.md -docs/StorageV1alpha1Api.md +docs/StorageV1beta1Api.md docs/StoragemigrationApi.md -docs/StoragemigrationV1alpha1Api.md +docs/StoragemigrationV1beta1Api.md docs/V1APIGroup.md docs/V1APIGroupList.md docs/V1APIResource.md @@ -89,6 +95,8 @@ docs/V1APIVersions.md docs/V1AWSElasticBlockStoreVolumeSource.md docs/V1Affinity.md docs/V1AggregationRule.md +docs/V1AllocatedDeviceStatus.md +docs/V1AllocationResult.md docs/V1AppArmorProfile.md docs/V1AttachedVolume.md docs/V1AuditAnnotation.md @@ -97,6 +105,7 @@ docs/V1AzureFilePersistentVolumeSource.md docs/V1AzureFileVolumeSource.md docs/V1Binding.md docs/V1BoundObjectReference.md +docs/V1CELDeviceSelector.md docs/V1CSIDriver.md docs/V1CSIDriverList.md docs/V1CSIDriverSpec.md @@ -109,6 +118,9 @@ docs/V1CSIStorageCapacity.md docs/V1CSIStorageCapacityList.md docs/V1CSIVolumeSource.md docs/V1Capabilities.md +docs/V1CapacityRequestPolicy.md +docs/V1CapacityRequestPolicyRange.md +docs/V1CapacityRequirements.md docs/V1CephFSPersistentVolumeSource.md docs/V1CephFSVolumeSource.md docs/V1CertificateSigningRequest.md @@ -118,7 +130,6 @@ docs/V1CertificateSigningRequestSpec.md docs/V1CertificateSigningRequestStatus.md docs/V1CinderPersistentVolumeSource.md docs/V1CinderVolumeSource.md -docs/V1ClaimSource.md docs/V1ClientIPConfig.md docs/V1ClusterRole.md docs/V1ClusterRoleBinding.md @@ -137,16 +148,22 @@ docs/V1ConfigMapNodeConfigSource.md docs/V1ConfigMapProjection.md docs/V1ConfigMapVolumeSource.md docs/V1Container.md +docs/V1ContainerExtendedResourceRequest.md docs/V1ContainerImage.md docs/V1ContainerPort.md docs/V1ContainerResizePolicy.md +docs/V1ContainerRestartRule.md +docs/V1ContainerRestartRuleOnExitCodes.md docs/V1ContainerState.md docs/V1ContainerStateRunning.md docs/V1ContainerStateTerminated.md docs/V1ContainerStateWaiting.md docs/V1ContainerStatus.md +docs/V1ContainerUser.md docs/V1ControllerRevision.md docs/V1ControllerRevisionList.md +docs/V1Counter.md +docs/V1CounterSet.md docs/V1CronJob.md docs/V1CronJobList.md docs/V1CronJobSpec.md @@ -178,6 +195,25 @@ docs/V1DeploymentList.md docs/V1DeploymentSpec.md docs/V1DeploymentStatus.md docs/V1DeploymentStrategy.md +docs/V1Device.md +docs/V1DeviceAllocationConfiguration.md +docs/V1DeviceAllocationResult.md +docs/V1DeviceAttribute.md +docs/V1DeviceCapacity.md +docs/V1DeviceClaim.md +docs/V1DeviceClaimConfiguration.md +docs/V1DeviceClass.md +docs/V1DeviceClassConfiguration.md +docs/V1DeviceClassList.md +docs/V1DeviceClassSpec.md +docs/V1DeviceConstraint.md +docs/V1DeviceCounterConsumption.md +docs/V1DeviceRequest.md +docs/V1DeviceRequestAllocationResult.md +docs/V1DeviceSelector.md +docs/V1DeviceSubRequest.md +docs/V1DeviceTaint.md +docs/V1DeviceToleration.md docs/V1DownwardAPIProjection.md docs/V1DownwardAPIVolumeFile.md docs/V1DownwardAPIVolumeSource.md @@ -198,11 +234,15 @@ docs/V1EphemeralContainer.md docs/V1EphemeralVolumeSource.md docs/V1EventSource.md docs/V1Eviction.md +docs/V1ExactDeviceRequest.md docs/V1ExecAction.md docs/V1ExemptPriorityLevelConfiguration.md docs/V1ExpressionWarning.md docs/V1ExternalDocumentation.md docs/V1FCVolumeSource.md +docs/V1FieldSelectorAttributes.md +docs/V1FieldSelectorRequirement.md +docs/V1FileKeySelector.md docs/V1FlexPersistentVolumeSource.md docs/V1FlexVolumeSource.md docs/V1FlockerVolumeSource.md @@ -212,12 +252,14 @@ docs/V1FlowSchemaCondition.md docs/V1FlowSchemaList.md docs/V1FlowSchemaSpec.md docs/V1FlowSchemaStatus.md +docs/V1ForNode.md docs/V1ForZone.md docs/V1GCEPersistentDiskVolumeSource.md docs/V1GRPCAction.md docs/V1GitRepoVolumeSource.md docs/V1GlusterfsPersistentVolumeSource.md docs/V1GlusterfsVolumeSource.md +docs/V1GroupResource.md docs/V1GroupSubject.md docs/V1GroupVersionForDiscovery.md docs/V1HTTPGetAction.md @@ -231,9 +273,13 @@ docs/V1HorizontalPodAutoscalerStatus.md docs/V1HostAlias.md docs/V1HostIP.md docs/V1HostPathVolumeSource.md +docs/V1IPAddress.md +docs/V1IPAddressList.md +docs/V1IPAddressSpec.md docs/V1IPBlock.md docs/V1ISCSIPersistentVolumeSource.md docs/V1ISCSIVolumeSource.md +docs/V1ImageVolumeSource.md docs/V1Ingress.md docs/V1IngressBackend.md docs/V1IngressClass.md @@ -258,6 +304,7 @@ docs/V1JobStatus.md docs/V1JobTemplateSpec.md docs/V1KeyToPath.md docs/V1LabelSelector.md +docs/V1LabelSelectorAttributes.md docs/V1LabelSelectorRequirement.md docs/V1Lease.md docs/V1LeaseList.md @@ -270,6 +317,7 @@ docs/V1LimitRangeList.md docs/V1LimitRangeSpec.md docs/V1LimitResponse.md docs/V1LimitedPriorityLevelConfiguration.md +docs/V1LinuxContainerUser.md docs/V1ListMeta.md docs/V1LoadBalancerIngress.md docs/V1LoadBalancerStatus.md @@ -290,6 +338,7 @@ docs/V1NamespaceCondition.md docs/V1NamespaceList.md docs/V1NamespaceSpec.md docs/V1NamespaceStatus.md +docs/V1NetworkDeviceData.md docs/V1NetworkPolicy.md docs/V1NetworkPolicyEgressRule.md docs/V1NetworkPolicyIngressRule.md @@ -304,6 +353,7 @@ docs/V1NodeCondition.md docs/V1NodeConfigSource.md docs/V1NodeConfigStatus.md docs/V1NodeDaemonEndpoints.md +docs/V1NodeFeatures.md docs/V1NodeList.md docs/V1NodeRuntimeHandler.md docs/V1NodeRuntimeHandlerFeatures.md @@ -312,6 +362,7 @@ docs/V1NodeSelectorRequirement.md docs/V1NodeSelectorTerm.md docs/V1NodeSpec.md docs/V1NodeStatus.md +docs/V1NodeSwapStatus.md docs/V1NodeSystemInfo.md docs/V1NonResourceAttributes.md docs/V1NonResourcePolicyRule.md @@ -319,10 +370,12 @@ docs/V1NonResourceRule.md docs/V1ObjectFieldSelector.md docs/V1ObjectMeta.md docs/V1ObjectReference.md +docs/V1OpaqueDeviceConfiguration.md docs/V1Overhead.md docs/V1OwnerReference.md docs/V1ParamKind.md docs/V1ParamRef.md +docs/V1ParentReference.md docs/V1PersistentVolume.md docs/V1PersistentVolumeClaim.md docs/V1PersistentVolumeClaimCondition.md @@ -339,6 +392,7 @@ docs/V1Pod.md docs/V1PodAffinity.md docs/V1PodAffinityTerm.md docs/V1PodAntiAffinity.md +docs/V1PodCertificateProjection.md docs/V1PodCondition.md docs/V1PodDNSConfig.md docs/V1PodDNSConfigOption.md @@ -346,6 +400,7 @@ docs/V1PodDisruptionBudget.md docs/V1PodDisruptionBudgetList.md docs/V1PodDisruptionBudgetSpec.md docs/V1PodDisruptionBudgetStatus.md +docs/V1PodExtendedResourceClaimStatus.md docs/V1PodFailurePolicy.md docs/V1PodFailurePolicyOnExitCodesRequirement.md docs/V1PodFailurePolicyOnPodConditionsPattern.md @@ -394,15 +449,27 @@ docs/V1ReplicationControllerList.md docs/V1ReplicationControllerSpec.md docs/V1ReplicationControllerStatus.md docs/V1ResourceAttributes.md -docs/V1ResourceClaim.md +docs/V1ResourceClaimConsumerReference.md +docs/V1ResourceClaimList.md +docs/V1ResourceClaimSpec.md +docs/V1ResourceClaimStatus.md +docs/V1ResourceClaimTemplate.md +docs/V1ResourceClaimTemplateList.md +docs/V1ResourceClaimTemplateSpec.md docs/V1ResourceFieldSelector.md +docs/V1ResourceHealth.md docs/V1ResourcePolicyRule.md +docs/V1ResourcePool.md docs/V1ResourceQuota.md docs/V1ResourceQuotaList.md docs/V1ResourceQuotaSpec.md docs/V1ResourceQuotaStatus.md docs/V1ResourceRequirements.md docs/V1ResourceRule.md +docs/V1ResourceSlice.md +docs/V1ResourceSliceList.md +docs/V1ResourceSliceSpec.md +docs/V1ResourceStatus.md docs/V1Role.md docs/V1RoleBinding.md docs/V1RoleBindingList.md @@ -446,6 +513,10 @@ docs/V1ServiceAccountList.md docs/V1ServiceAccountSubject.md docs/V1ServiceAccountTokenProjection.md docs/V1ServiceBackendPort.md +docs/V1ServiceCIDR.md +docs/V1ServiceCIDRList.md +docs/V1ServiceCIDRSpec.md +docs/V1ServiceCIDRStatus.md docs/V1ServiceList.md docs/V1ServicePort.md docs/V1ServiceSpec.md @@ -510,6 +581,8 @@ docs/V1VolumeAttachmentList.md docs/V1VolumeAttachmentSource.md docs/V1VolumeAttachmentSpec.md docs/V1VolumeAttachmentStatus.md +docs/V1VolumeAttributesClass.md +docs/V1VolumeAttributesClassList.md docs/V1VolumeDevice.md docs/V1VolumeError.md docs/V1VolumeMount.md @@ -523,130 +596,169 @@ docs/V1WatchEvent.md docs/V1WebhookConversion.md docs/V1WeightedPodAffinityTerm.md docs/V1WindowsSecurityContextOptions.md -docs/V1alpha1AuditAnnotation.md +docs/V1WorkloadReference.md +docs/V1alpha1ApplyConfiguration.md docs/V1alpha1ClusterTrustBundle.md docs/V1alpha1ClusterTrustBundleList.md docs/V1alpha1ClusterTrustBundleSpec.md -docs/V1alpha1ExpressionWarning.md -docs/V1alpha1GroupVersionResource.md -docs/V1alpha1IPAddress.md -docs/V1alpha1IPAddressList.md -docs/V1alpha1IPAddressSpec.md +docs/V1alpha1GangSchedulingPolicy.md +docs/V1alpha1JSONPatch.md docs/V1alpha1MatchCondition.md docs/V1alpha1MatchResources.md -docs/V1alpha1MigrationCondition.md +docs/V1alpha1MutatingAdmissionPolicy.md +docs/V1alpha1MutatingAdmissionPolicyBinding.md +docs/V1alpha1MutatingAdmissionPolicyBindingList.md +docs/V1alpha1MutatingAdmissionPolicyBindingSpec.md +docs/V1alpha1MutatingAdmissionPolicyList.md +docs/V1alpha1MutatingAdmissionPolicySpec.md +docs/V1alpha1Mutation.md docs/V1alpha1NamedRuleWithOperations.md docs/V1alpha1ParamKind.md docs/V1alpha1ParamRef.md -docs/V1alpha1ParentReference.md -docs/V1alpha1SelfSubjectReview.md -docs/V1alpha1SelfSubjectReviewStatus.md +docs/V1alpha1PodGroup.md +docs/V1alpha1PodGroupPolicy.md docs/V1alpha1ServerStorageVersion.md -docs/V1alpha1ServiceCIDR.md -docs/V1alpha1ServiceCIDRList.md -docs/V1alpha1ServiceCIDRSpec.md -docs/V1alpha1ServiceCIDRStatus.md docs/V1alpha1StorageVersion.md docs/V1alpha1StorageVersionCondition.md docs/V1alpha1StorageVersionList.md -docs/V1alpha1StorageVersionMigration.md -docs/V1alpha1StorageVersionMigrationList.md -docs/V1alpha1StorageVersionMigrationSpec.md -docs/V1alpha1StorageVersionMigrationStatus.md docs/V1alpha1StorageVersionStatus.md -docs/V1alpha1TypeChecking.md -docs/V1alpha1ValidatingAdmissionPolicy.md -docs/V1alpha1ValidatingAdmissionPolicyBinding.md -docs/V1alpha1ValidatingAdmissionPolicyBindingList.md -docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md -docs/V1alpha1ValidatingAdmissionPolicyList.md -docs/V1alpha1ValidatingAdmissionPolicySpec.md -docs/V1alpha1ValidatingAdmissionPolicyStatus.md -docs/V1alpha1Validation.md +docs/V1alpha1TypedLocalObjectReference.md docs/V1alpha1Variable.md -docs/V1alpha1VolumeAttributesClass.md -docs/V1alpha1VolumeAttributesClassList.md -docs/V1alpha2AllocationResult.md -docs/V1alpha2DriverAllocationResult.md -docs/V1alpha2DriverRequests.md -docs/V1alpha2NamedResourcesAllocationResult.md -docs/V1alpha2NamedResourcesAttribute.md -docs/V1alpha2NamedResourcesFilter.md -docs/V1alpha2NamedResourcesInstance.md -docs/V1alpha2NamedResourcesIntSlice.md -docs/V1alpha2NamedResourcesRequest.md -docs/V1alpha2NamedResourcesResources.md -docs/V1alpha2NamedResourcesStringSlice.md -docs/V1alpha2PodSchedulingContext.md -docs/V1alpha2PodSchedulingContextList.md -docs/V1alpha2PodSchedulingContextSpec.md -docs/V1alpha2PodSchedulingContextStatus.md -docs/V1alpha2ResourceClaim.md -docs/V1alpha2ResourceClaimConsumerReference.md -docs/V1alpha2ResourceClaimList.md -docs/V1alpha2ResourceClaimParameters.md -docs/V1alpha2ResourceClaimParametersList.md -docs/V1alpha2ResourceClaimParametersReference.md -docs/V1alpha2ResourceClaimSchedulingStatus.md -docs/V1alpha2ResourceClaimSpec.md -docs/V1alpha2ResourceClaimStatus.md -docs/V1alpha2ResourceClaimTemplate.md -docs/V1alpha2ResourceClaimTemplateList.md -docs/V1alpha2ResourceClaimTemplateSpec.md -docs/V1alpha2ResourceClass.md -docs/V1alpha2ResourceClassList.md -docs/V1alpha2ResourceClassParameters.md -docs/V1alpha2ResourceClassParametersList.md -docs/V1alpha2ResourceClassParametersReference.md -docs/V1alpha2ResourceFilter.md -docs/V1alpha2ResourceHandle.md -docs/V1alpha2ResourceRequest.md -docs/V1alpha2ResourceSlice.md -docs/V1alpha2ResourceSliceList.md -docs/V1alpha2StructuredResourceHandle.md -docs/V1alpha2VendorParameters.md -docs/V1beta1AuditAnnotation.md -docs/V1beta1ExpressionWarning.md +docs/V1alpha1Workload.md +docs/V1alpha1WorkloadList.md +docs/V1alpha1WorkloadSpec.md +docs/V1alpha2LeaseCandidate.md +docs/V1alpha2LeaseCandidateList.md +docs/V1alpha2LeaseCandidateSpec.md +docs/V1alpha3DeviceTaint.md +docs/V1alpha3DeviceTaintRule.md +docs/V1alpha3DeviceTaintRuleList.md +docs/V1alpha3DeviceTaintRuleSpec.md +docs/V1alpha3DeviceTaintRuleStatus.md +docs/V1alpha3DeviceTaintSelector.md +docs/V1beta1AllocatedDeviceStatus.md +docs/V1beta1AllocationResult.md +docs/V1beta1ApplyConfiguration.md +docs/V1beta1BasicDevice.md +docs/V1beta1CELDeviceSelector.md +docs/V1beta1CapacityRequestPolicy.md +docs/V1beta1CapacityRequestPolicyRange.md +docs/V1beta1CapacityRequirements.md +docs/V1beta1ClusterTrustBundle.md +docs/V1beta1ClusterTrustBundleList.md +docs/V1beta1ClusterTrustBundleSpec.md +docs/V1beta1Counter.md +docs/V1beta1CounterSet.md +docs/V1beta1Device.md +docs/V1beta1DeviceAllocationConfiguration.md +docs/V1beta1DeviceAllocationResult.md +docs/V1beta1DeviceAttribute.md +docs/V1beta1DeviceCapacity.md +docs/V1beta1DeviceClaim.md +docs/V1beta1DeviceClaimConfiguration.md +docs/V1beta1DeviceClass.md +docs/V1beta1DeviceClassConfiguration.md +docs/V1beta1DeviceClassList.md +docs/V1beta1DeviceClassSpec.md +docs/V1beta1DeviceConstraint.md +docs/V1beta1DeviceCounterConsumption.md +docs/V1beta1DeviceRequest.md +docs/V1beta1DeviceRequestAllocationResult.md +docs/V1beta1DeviceSelector.md +docs/V1beta1DeviceSubRequest.md +docs/V1beta1DeviceTaint.md +docs/V1beta1DeviceToleration.md +docs/V1beta1IPAddress.md +docs/V1beta1IPAddressList.md +docs/V1beta1IPAddressSpec.md +docs/V1beta1JSONPatch.md +docs/V1beta1LeaseCandidate.md +docs/V1beta1LeaseCandidateList.md +docs/V1beta1LeaseCandidateSpec.md docs/V1beta1MatchCondition.md docs/V1beta1MatchResources.md +docs/V1beta1MutatingAdmissionPolicy.md +docs/V1beta1MutatingAdmissionPolicyBinding.md +docs/V1beta1MutatingAdmissionPolicyBindingList.md +docs/V1beta1MutatingAdmissionPolicyBindingSpec.md +docs/V1beta1MutatingAdmissionPolicyList.md +docs/V1beta1MutatingAdmissionPolicySpec.md +docs/V1beta1Mutation.md docs/V1beta1NamedRuleWithOperations.md +docs/V1beta1NetworkDeviceData.md +docs/V1beta1OpaqueDeviceConfiguration.md docs/V1beta1ParamKind.md docs/V1beta1ParamRef.md -docs/V1beta1SelfSubjectReview.md -docs/V1beta1SelfSubjectReviewStatus.md -docs/V1beta1TypeChecking.md -docs/V1beta1ValidatingAdmissionPolicy.md -docs/V1beta1ValidatingAdmissionPolicyBinding.md -docs/V1beta1ValidatingAdmissionPolicyBindingList.md -docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md -docs/V1beta1ValidatingAdmissionPolicyList.md -docs/V1beta1ValidatingAdmissionPolicySpec.md -docs/V1beta1ValidatingAdmissionPolicyStatus.md -docs/V1beta1Validation.md +docs/V1beta1ParentReference.md +docs/V1beta1PodCertificateRequest.md +docs/V1beta1PodCertificateRequestList.md +docs/V1beta1PodCertificateRequestSpec.md +docs/V1beta1PodCertificateRequestStatus.md +docs/V1beta1ResourceClaim.md +docs/V1beta1ResourceClaimConsumerReference.md +docs/V1beta1ResourceClaimList.md +docs/V1beta1ResourceClaimSpec.md +docs/V1beta1ResourceClaimStatus.md +docs/V1beta1ResourceClaimTemplate.md +docs/V1beta1ResourceClaimTemplateList.md +docs/V1beta1ResourceClaimTemplateSpec.md +docs/V1beta1ResourcePool.md +docs/V1beta1ResourceSlice.md +docs/V1beta1ResourceSliceList.md +docs/V1beta1ResourceSliceSpec.md +docs/V1beta1ServiceCIDR.md +docs/V1beta1ServiceCIDRList.md +docs/V1beta1ServiceCIDRSpec.md +docs/V1beta1ServiceCIDRStatus.md +docs/V1beta1StorageVersionMigration.md +docs/V1beta1StorageVersionMigrationList.md +docs/V1beta1StorageVersionMigrationSpec.md +docs/V1beta1StorageVersionMigrationStatus.md docs/V1beta1Variable.md -docs/V1beta3ExemptPriorityLevelConfiguration.md -docs/V1beta3FlowDistinguisherMethod.md -docs/V1beta3FlowSchema.md -docs/V1beta3FlowSchemaCondition.md -docs/V1beta3FlowSchemaList.md -docs/V1beta3FlowSchemaSpec.md -docs/V1beta3FlowSchemaStatus.md -docs/V1beta3GroupSubject.md -docs/V1beta3LimitResponse.md -docs/V1beta3LimitedPriorityLevelConfiguration.md -docs/V1beta3NonResourcePolicyRule.md -docs/V1beta3PolicyRulesWithSubjects.md -docs/V1beta3PriorityLevelConfiguration.md -docs/V1beta3PriorityLevelConfigurationCondition.md -docs/V1beta3PriorityLevelConfigurationList.md -docs/V1beta3PriorityLevelConfigurationReference.md -docs/V1beta3PriorityLevelConfigurationSpec.md -docs/V1beta3PriorityLevelConfigurationStatus.md -docs/V1beta3QueuingConfiguration.md -docs/V1beta3ResourcePolicyRule.md -docs/V1beta3ServiceAccountSubject.md -docs/V1beta3Subject.md -docs/V1beta3UserSubject.md +docs/V1beta1VolumeAttributesClass.md +docs/V1beta1VolumeAttributesClassList.md +docs/V1beta2AllocatedDeviceStatus.md +docs/V1beta2AllocationResult.md +docs/V1beta2CELDeviceSelector.md +docs/V1beta2CapacityRequestPolicy.md +docs/V1beta2CapacityRequestPolicyRange.md +docs/V1beta2CapacityRequirements.md +docs/V1beta2Counter.md +docs/V1beta2CounterSet.md +docs/V1beta2Device.md +docs/V1beta2DeviceAllocationConfiguration.md +docs/V1beta2DeviceAllocationResult.md +docs/V1beta2DeviceAttribute.md +docs/V1beta2DeviceCapacity.md +docs/V1beta2DeviceClaim.md +docs/V1beta2DeviceClaimConfiguration.md +docs/V1beta2DeviceClass.md +docs/V1beta2DeviceClassConfiguration.md +docs/V1beta2DeviceClassList.md +docs/V1beta2DeviceClassSpec.md +docs/V1beta2DeviceConstraint.md +docs/V1beta2DeviceCounterConsumption.md +docs/V1beta2DeviceRequest.md +docs/V1beta2DeviceRequestAllocationResult.md +docs/V1beta2DeviceSelector.md +docs/V1beta2DeviceSubRequest.md +docs/V1beta2DeviceTaint.md +docs/V1beta2DeviceToleration.md +docs/V1beta2ExactDeviceRequest.md +docs/V1beta2NetworkDeviceData.md +docs/V1beta2OpaqueDeviceConfiguration.md +docs/V1beta2ResourceClaim.md +docs/V1beta2ResourceClaimConsumerReference.md +docs/V1beta2ResourceClaimList.md +docs/V1beta2ResourceClaimSpec.md +docs/V1beta2ResourceClaimStatus.md +docs/V1beta2ResourceClaimTemplate.md +docs/V1beta2ResourceClaimTemplateList.md +docs/V1beta2ResourceClaimTemplateSpec.md +docs/V1beta2ResourcePool.md +docs/V1beta2ResourceSlice.md +docs/V1beta2ResourceSliceList.md +docs/V1beta2ResourceSliceSpec.md docs/V2ContainerResourceMetricSource.md docs/V2ContainerResourceMetricStatus.md docs/V2CrossVersionObjectReference.md @@ -703,8 +815,6 @@ src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java src/main/java/io/kubernetes/client/openapi/apis/AuthenticationApi.java src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1Api.java -src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1alpha1Api.java -src/main/java/io/kubernetes/client/openapi/apis/AuthenticationV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/AuthorizationApi.java src/main/java/io/kubernetes/client/openapi/apis/AuthorizationV1Api.java src/main/java/io/kubernetes/client/openapi/apis/AutoscalingApi.java @@ -715,8 +825,11 @@ src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java src/main/java/io/kubernetes/client/openapi/apis/CertificatesApi.java src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/CoordinationApi.java src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java +src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/CoreApi.java src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java @@ -726,13 +839,12 @@ src/main/java/io/kubernetes/client/openapi/apis/EventsApi.java src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverApi.java src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java -src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1beta3Api.java src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverApi.java src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java src/main/java/io/kubernetes/client/openapi/apis/LogsApi.java src/main/java/io/kubernetes/client/openapi/apis/NetworkingApi.java src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java -src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/NodeApi.java src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java src/main/java/io/kubernetes/client/openapi/apis/OpenidApi.java @@ -741,14 +853,18 @@ src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationApi.java src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java src/main/java/io/kubernetes/client/openapi/apis/ResourceApi.java -src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha2Api.java +src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java +src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java +src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java +src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha1Api.java src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java -src/main/java/io/kubernetes/client/openapi/apis/StorageV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationApi.java -src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/VersionApi.java src/main/java/io/kubernetes/client/openapi/apis/WellKnownApi.java src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java @@ -766,12 +882,14 @@ src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java +src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java +src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java @@ -786,6 +904,8 @@ src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java +src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java @@ -794,6 +914,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSou src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1Binding.java src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java @@ -806,6 +927,9 @@ src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java +src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java +src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java @@ -815,7 +939,6 @@ src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpe src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java -src/main/java/io/kubernetes/client/openapi/models/V1ClaimSource.java src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java @@ -834,16 +957,22 @@ src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.ja src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1Container.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java +src/main/java/io/kubernetes/client/openapi/models/V1Counter.java +src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java @@ -875,6 +1004,25 @@ src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java +src/main/java/io/kubernetes/client/openapi/models/V1Device.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java +src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java @@ -895,11 +1043,15 @@ src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java +src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java +src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java +src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java @@ -909,12 +1061,14 @@ src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java @@ -928,9 +1082,13 @@ src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatu src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java +src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java +src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java @@ -955,6 +1113,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java src/main/java/io/kubernetes/client/openapi/models/V1Lease.java src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java @@ -967,6 +1126,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java @@ -987,6 +1147,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java @@ -1001,6 +1162,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java @@ -1009,6 +1171,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java @@ -1016,10 +1179,12 @@ src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java +src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java @@ -1036,6 +1201,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1Pod.java src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java +src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java @@ -1043,6 +1209,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java @@ -1091,15 +1258,27 @@ src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.ja src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java -src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java src/main/java/io/kubernetes/client/openapi/models/V1Role.java src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java @@ -1143,6 +1322,10 @@ src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java @@ -1207,6 +1390,8 @@ src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java @@ -1220,130 +1405,169 @@ src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1AuditAnnotation.java +src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ExpressionWarning.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1GroupVersionResource.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddress.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1IPAddressSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1MigrationCondition.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParentReference.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReview.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1SelfSubjectReviewStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroup.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicy.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDR.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServiceCIDRStatus.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigration.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionMigrationStatus.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypeChecking.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicy.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBinding.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyBindingSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicySpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1ValidatingAdmissionPolicyStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1Validation.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReference.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClass.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1VolumeAttributesClassList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2AllocationResult.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverAllocationResult.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2DriverRequests.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAllocationResult.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesAttribute.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesFilter.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesInstance.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesIntSlice.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesRequest.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesResources.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2NamedResourcesStringSlice.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContext.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodSchedulingContextStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaim.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimConsumerReference.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParameters.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimParametersReference.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSchedulingStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplate.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClaimTemplateSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClass.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParameters.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceClassParametersReference.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceFilter.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceHandle.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceRequest.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSlice.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2ResourceSliceList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2StructuredResourceHandle.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha2VendorParameters.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1AuditAnnotation.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ExpressionWarning.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1Workload.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReview.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1SelfSubjectReviewStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1TypeChecking.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicy.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBinding.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingList.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyBindingSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyList.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicySpec.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1ValidatingAdmissionPolicyStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1beta1Validation.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3ExemptPriorityLevelConfiguration.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowDistinguisherMethod.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchema.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaCondition.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaList.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3FlowSchemaStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3GroupSubject.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitResponse.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3LimitedPriorityLevelConfiguration.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3NonResourcePolicyRule.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3PolicyRulesWithSubjects.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfiguration.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationCondition.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationList.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationReference.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3PriorityLevelConfigurationStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3QueuingConfiguration.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3ResourcePolicyRule.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3ServiceAccountSubject.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3Subject.java -src/main/java/io/kubernetes/client/openapi/models/V1beta3UserSubject.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION index 93c8ddab9f..1b2d969d19 100644 --- a/kubernetes/.openapi-generator/VERSION +++ b/kubernetes/.openapi-generator/VERSION @@ -1 +1 @@ -7.6.0 +7.18.0 diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 index 7ec71b05f0..ca16f1f7a5 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -1c81e5babf0c4a980f711a4272c350d0b657df2666a570aca99c255314d67139 \ No newline at end of file +2d596aae9025285daf9d10a1906d6e64ea830397be7af642c90f2df86707cf48 \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index 84c5ce3c55..0bbb34b500 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.30 + version: release-1.35 servers: - url: / security: @@ -16,13 +16,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIVersions' + $ref: "#/components/schemas/v1.APIVersions" application/yaml: schema: - $ref: '#/components/schemas/v1.APIVersions' + $ref: "#/components/schemas/v1.APIVersions" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIVersions' + $ref: "#/components/schemas/v1.APIVersions" description: OK "401": content: {} @@ -42,13 +42,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -56,6 +59,7 @@ paths: tags: - core_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -160,19 +164,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" application/yaml: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ComponentStatusList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ComponentStatusList' + $ref: "#/components/schemas/v1.ComponentStatusList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ComponentStatusList" description: OK "401": content: {} @@ -185,6 +195,8 @@ paths: kind: ComponentStatus version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -213,13 +225,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ComponentStatus' + $ref: "#/components/schemas/v1.ComponentStatus" application/yaml: schema: - $ref: '#/components/schemas/v1.ComponentStatus' + $ref: "#/components/schemas/v1.ComponentStatus" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ComponentStatus' + $ref: "#/components/schemas/v1.ComponentStatus" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ComponentStatus" description: OK "401": content: {} @@ -232,6 +247,7 @@ paths: kind: ComponentStatus version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -336,19 +352,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMapList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ConfigMapList" description: OK "401": content: {} @@ -361,6 +383,8 @@ paths: kind: ConfigMap version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -467,19 +491,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointsList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.EndpointsList" description: OK "401": content: {} @@ -492,6 +522,8 @@ paths: kind: Endpoints version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -598,19 +630,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/yaml: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.EventList' + $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' + $ref: "#/components/schemas/core.v1.EventList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/core.v1.EventList" description: OK "401": content: {} @@ -623,6 +661,8 @@ paths: kind: Event version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -729,19 +769,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRangeList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.LimitRangeList" description: OK "401": content: {} @@ -754,6 +800,8 @@ paths: kind: LimitRange version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -860,19 +908,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" application/yaml: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NamespaceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NamespaceList' + $ref: "#/components/schemas/v1.NamespaceList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.NamespaceList" description: OK "401": content: {} @@ -885,6 +939,8 @@ paths: kind: Namespace version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -937,44 +993,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: Accepted "401": content: {} @@ -989,6 +1054,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -1046,44 +1112,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Binding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Binding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Binding" description: Accepted "401": content: {} @@ -1098,6 +1173,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -1150,6 +1226,21 @@ 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 @@ -1227,20 +1318,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -1255,6 +1349,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -1364,19 +1459,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMapList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ConfigMapList' + $ref: "#/components/schemas/v1.ConfigMapList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ConfigMapList" description: OK "401": content: {} @@ -1389,6 +1490,8 @@ paths: kind: ConfigMap version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -1447,44 +1550,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMap" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMap" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMap" description: Accepted "401": content: {} @@ -1499,6 +1611,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -1543,6 +1656,21 @@ 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\ @@ -1566,32 +1694,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -1606,6 +1740,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -1637,13 +1772,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMap" description: OK "401": content: {} @@ -1656,6 +1794,7 @@ paths: kind: ConfigMap version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -1727,32 +1866,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMap" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMap" description: Created "401": content: {} @@ -1767,6 +1912,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -1829,32 +1975,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMap" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/yaml: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ConfigMap" description: Created "401": content: {} @@ -1869,6 +2021,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -1921,6 +2074,21 @@ 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 @@ -1998,20 +2166,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -2026,6 +2197,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -2135,19 +2307,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointsList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointsList' + $ref: "#/components/schemas/v1.EndpointsList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.EndpointsList" description: OK "401": content: {} @@ -2160,6 +2338,8 @@ paths: kind: Endpoints version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -2218,44 +2398,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Endpoints" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Endpoints" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Endpoints" description: Accepted "401": content: {} @@ -2270,6 +2459,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -2314,6 +2504,21 @@ 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\ @@ -2337,32 +2542,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -2377,6 +2588,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -2408,13 +2620,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Endpoints" description: OK "401": content: {} @@ -2427,6 +2642,7 @@ paths: kind: Endpoints version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -2498,32 +2714,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Endpoints" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Endpoints" description: Created "401": content: {} @@ -2538,6 +2760,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -2600,32 +2823,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Endpoints" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/yaml: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Endpoints" description: Created "401": content: {} @@ -2640,6 +2869,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -2692,6 +2922,21 @@ 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 @@ -2769,20 +3014,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -2797,6 +3045,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -2906,19 +3155,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/yaml: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.EventList' + $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' + $ref: "#/components/schemas/core.v1.EventList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/core.v1.EventList' + $ref: "#/components/schemas/core.v1.EventList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/core.v1.EventList" description: OK "401": content: {} @@ -2931,6 +3186,8 @@ paths: kind: Event version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -2989,44 +3246,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/core.v1.Event" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/core.v1.Event" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/core.v1.Event" description: Accepted "401": content: {} @@ -3041,6 +3307,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -3085,6 +3352,21 @@ 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\ @@ -3108,32 +3390,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -3148,6 +3436,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -3179,13 +3468,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/core.v1.Event" description: OK "401": content: {} @@ -3198,6 +3490,7 @@ paths: kind: Event version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -3269,32 +3562,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/core.v1.Event" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/core.v1.Event" description: Created "401": content: {} @@ -3309,6 +3608,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -3371,32 +3671,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/core.v1.Event" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/core.v1.Event" description: Created "401": content: {} @@ -3411,6 +3717,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -3463,6 +3770,21 @@ 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 @@ -3540,20 +3862,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -3568,6 +3893,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -3677,19 +4003,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRangeList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LimitRangeList' + $ref: "#/components/schemas/v1.LimitRangeList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.LimitRangeList" description: OK "401": content: {} @@ -3702,6 +4034,8 @@ paths: kind: LimitRange version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -3760,44 +4094,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRange" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRange" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRange" description: Accepted "401": content: {} @@ -3812,6 +4155,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -3856,6 +4200,21 @@ 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\ @@ -3879,32 +4238,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -3919,6 +4284,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -3950,13 +4316,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRange" description: OK "401": content: {} @@ -3969,6 +4338,7 @@ paths: kind: LimitRange version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -4040,32 +4410,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRange" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRange" description: Created "401": content: {} @@ -4080,6 +4456,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -4142,32 +4519,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRange" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/yaml: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LimitRange" description: Created "401": content: {} @@ -4182,6 +4565,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -4234,6 +4618,21 @@ 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 @@ -4311,20 +4710,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -4339,6 +4741,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -4448,19 +4851,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" description: OK "401": content: {} @@ -4473,6 +4882,8 @@ paths: kind: PersistentVolumeClaim version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -4531,44 +4942,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Accepted "401": content: {} @@ -4583,6 +5003,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -4627,6 +5048,21 @@ 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\ @@ -4650,32 +5086,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Accepted "401": content: {} @@ -4690,6 +5132,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -4721,13 +5164,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "401": content: {} @@ -4740,6 +5186,7 @@ paths: kind: PersistentVolumeClaim version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -4811,32 +5258,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "401": content: {} @@ -4851,6 +5304,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -4913,32 +5367,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "401": content: {} @@ -4953,6 +5413,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -4985,13 +5446,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "401": content: {} @@ -5004,6 +5468,7 @@ paths: kind: PersistentVolumeClaim version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -5075,32 +5540,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "401": content: {} @@ -5115,6 +5586,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -5177,32 +5649,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaim" description: Created "401": content: {} @@ -5217,6 +5695,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -5269,6 +5748,21 @@ 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 @@ -5346,20 +5840,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -5374,6 +5871,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -5483,19 +5981,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PodList" description: OK "401": content: {} @@ -5508,6 +6012,8 @@ paths: kind: Pod version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -5566,44 +6072,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $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' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: Accepted "401": content: {} @@ -5618,6 +6133,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -5662,6 +6178,21 @@ 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\ @@ -5685,32 +6216,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: Accepted "401": content: {} @@ -5725,6 +6262,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -5756,13 +6294,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: OK "401": content: {} @@ -5775,6 +6316,7 @@ paths: kind: Pod version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -5846,32 +6388,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $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' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -5886,6 +6434,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -5948,32 +6497,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $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' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -5988,6 +6543,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -6184,44 +6740,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Binding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Binding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/yaml: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Binding' + $ref: "#/components/schemas/v1.Binding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Binding" description: Accepted "401": content: {} @@ -6236,6 +6801,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -6268,13 +6834,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: OK "401": content: {} @@ -6287,6 +6856,7 @@ paths: kind: Pod version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -6358,32 +6928,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $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' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -6398,6 +6974,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -6460,32 +7037,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $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' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -6500,6 +7083,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -6563,44 +7147,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/yaml: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Eviction" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/yaml: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Eviction" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/yaml: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Eviction' + $ref: "#/components/schemas/v1.Eviction" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Eviction" description: Accepted "401": content: {} @@ -6615,6 +7208,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -6826,9 +7420,19 @@ 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" + \ sinceSeconds or sinceTime. Note that when \"TailLines\" is specified,\ + \ \"Stream\" can only be set to nil or \"All\"." in: query name: tailLines schema: @@ -6854,6 +7458,9 @@ paths: application/vnd.kubernetes.protobuf: schema: type: string + application/cbor: + schema: + type: string description: OK "401": content: {} @@ -6866,6 +7473,7 @@ paths: kind: Pod version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -7569,6 +8177,288 @@ paths: 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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml /api/v1/namespaces/{namespace}/pods/{name}/status: get: description: read status of the specified Pod @@ -7598,13 +8488,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: OK "401": content: {} @@ -7617,6 +8510,7 @@ paths: kind: Pod version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -7688,32 +8582,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $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' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -7728,6 +8628,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -7790,32 +8691,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $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' + $ref: "#/components/schemas/v1.Pod" application/yaml: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Pod' + $ref: "#/components/schemas/v1.Pod" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Pod" description: Created "401": content: {} @@ -7830,6 +8737,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -7882,6 +8790,21 @@ 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 @@ -7959,20 +8882,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -7987,6 +8913,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -8096,19 +9023,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PodTemplateList" description: OK "401": content: {} @@ -8121,6 +9054,8 @@ paths: kind: PodTemplate version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -8179,44 +9114,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: Accepted "401": content: {} @@ -8231,6 +9175,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -8275,6 +9220,21 @@ 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\ @@ -8298,32 +9258,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: Accepted "401": content: {} @@ -8338,6 +9304,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -8369,13 +9336,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: OK "401": content: {} @@ -8388,6 +9358,7 @@ paths: kind: PodTemplate version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -8459,32 +9430,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: Created "401": content: {} @@ -8499,6 +9476,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -8561,32 +9539,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplate" description: Created "401": content: {} @@ -8601,6 +9585,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -8653,6 +9638,21 @@ 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 @@ -8730,20 +9730,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -8758,6 +9761,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -8867,19 +9871,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationControllerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ReplicationControllerList" description: OK "401": content: {} @@ -8892,6 +9902,8 @@ paths: kind: ReplicationController version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -8950,44 +9962,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: Accepted "401": content: {} @@ -9002,6 +10023,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9046,6 +10068,21 @@ 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\ @@ -9069,32 +10106,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -9109,6 +10152,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9140,13 +10184,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: OK "401": content: {} @@ -9159,6 +10206,7 @@ paths: kind: ReplicationController version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9230,32 +10278,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: Created "401": content: {} @@ -9270,6 +10324,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9332,32 +10387,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: Created "401": content: {} @@ -9372,6 +10433,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9404,13 +10466,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "401": content: {} @@ -9423,6 +10488,7 @@ paths: kind: Scale version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9494,32 +10560,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -9534,6 +10606,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9596,32 +10669,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -9636,6 +10715,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9668,13 +10748,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: OK "401": content: {} @@ -9687,6 +10770,7 @@ paths: kind: ReplicationController version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9758,32 +10842,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: Created "401": content: {} @@ -9798,6 +10888,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9860,32 +10951,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationController' + $ref: "#/components/schemas/v1.ReplicationController" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationController" description: Created "401": content: {} @@ -9900,6 +10997,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -9952,6 +11050,21 @@ 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 @@ -10029,20 +11142,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -10057,6 +11173,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -10166,19 +11283,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuotaList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ResourceQuotaList" description: OK "401": content: {} @@ -10191,6 +11314,8 @@ paths: kind: ResourceQuota version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -10249,44 +11374,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: Accepted "401": content: {} @@ -10301,6 +11435,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -10345,6 +11480,21 @@ 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\ @@ -10368,32 +11518,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: Accepted "401": content: {} @@ -10408,6 +11564,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -10439,13 +11596,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "401": content: {} @@ -10458,6 +11618,7 @@ paths: kind: ResourceQuota version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -10529,32 +11690,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "401": content: {} @@ -10569,6 +11736,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -10631,32 +11799,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "401": content: {} @@ -10671,6 +11845,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -10703,13 +11878,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "401": content: {} @@ -10722,6 +11900,7 @@ paths: kind: ResourceQuota version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -10793,32 +11972,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "401": content: {} @@ -10833,6 +12018,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -10895,32 +12081,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.ResourceQuota" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuota" description: Created "401": content: {} @@ -10935,6 +12127,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -10987,6 +12180,21 @@ 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 @@ -11064,20 +12272,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -11092,6 +12303,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -11201,19 +12413,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/yaml: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SecretList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.SecretList" description: OK "401": content: {} @@ -11226,6 +12444,8 @@ paths: kind: Secret version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -11284,44 +12504,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Secret" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Secret" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Secret" description: Accepted "401": content: {} @@ -11336,6 +12565,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -11380,6 +12610,21 @@ 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\ @@ -11403,32 +12648,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -11443,6 +12694,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -11474,13 +12726,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Secret" description: OK "401": content: {} @@ -11493,6 +12748,7 @@ paths: kind: Secret version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -11564,32 +12820,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Secret" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Secret" description: Created "401": content: {} @@ -11604,6 +12866,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -11666,32 +12929,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Secret" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/yaml: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Secret" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Secret" description: Created "401": content: {} @@ -11706,6 +12975,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -11758,6 +13028,21 @@ 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 @@ -11835,20 +13120,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -11863,6 +13151,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -11972,19 +13261,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccountList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ServiceAccountList" description: OK "401": content: {} @@ -11997,6 +13292,8 @@ paths: kind: ServiceAccount version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -12055,44 +13352,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: Accepted "401": content: {} @@ -12107,6 +13413,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -12151,6 +13458,21 @@ 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\ @@ -12174,32 +13496,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: Accepted "401": content: {} @@ -12214,6 +13542,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -12245,13 +13574,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "401": content: {} @@ -12264,6 +13596,7 @@ paths: kind: ServiceAccount version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -12335,32 +13668,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: Created "401": content: {} @@ -12375,6 +13714,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -12437,32 +13777,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.ServiceAccount" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccount" description: Created "401": content: {} @@ -12477,6 +13823,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -12540,44 +13887,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/yaml: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" + application/cbor: + schema: + $ref: "#/components/schemas/authentication.v1.TokenRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/yaml: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" + application/cbor: + schema: + $ref: "#/components/schemas/authentication.v1.TokenRequest" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/yaml: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/authentication.v1.TokenRequest' + $ref: "#/components/schemas/authentication.v1.TokenRequest" + application/cbor: + schema: + $ref: "#/components/schemas/authentication.v1.TokenRequest" description: Accepted "401": content: {} @@ -12592,6 +13948,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -12644,6 +14001,21 @@ 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 @@ -12721,20 +14093,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -12749,6 +14124,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -12858,19 +14234,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ServiceList" description: OK "401": content: {} @@ -12883,6 +14265,8 @@ paths: kind: Service version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -12941,44 +14325,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: Accepted "401": content: {} @@ -12993,6 +14386,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -13037,6 +14431,21 @@ 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\ @@ -13060,32 +14469,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: Accepted "401": content: {} @@ -13100,6 +14515,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -13131,13 +14547,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: OK "401": content: {} @@ -13150,6 +14569,7 @@ paths: kind: Service version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -13221,32 +14641,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: Created "401": content: {} @@ -13261,6 +14687,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -13323,32 +14750,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: Created "401": content: {} @@ -13363,6 +14796,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14041,13 +15475,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: OK "401": content: {} @@ -14060,6 +15497,7 @@ paths: kind: Service version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14131,32 +15569,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: Created "401": content: {} @@ -14171,6 +15615,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14233,32 +15678,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/yaml: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.Service" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Service" description: Created "401": content: {} @@ -14273,6 +15724,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14311,6 +15763,21 @@ 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\ @@ -14334,32 +15801,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -14374,6 +15847,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14399,13 +15873,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: OK "401": content: {} @@ -14418,6 +15895,7 @@ paths: kind: Namespace version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14483,32 +15961,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -14523,6 +16007,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14579,32 +16064,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -14619,6 +16110,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14676,32 +16168,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -14716,6 +16214,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14742,13 +16241,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: OK "401": content: {} @@ -14761,6 +16263,7 @@ paths: kind: Namespace version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14826,32 +16329,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -14866,6 +16375,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -14922,32 +16432,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/yaml: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Namespace' + $ref: "#/components/schemas/v1.Namespace" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Namespace" description: Created "401": content: {} @@ -14962,6 +16478,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -15008,6 +16525,21 @@ 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 @@ -15085,20 +16617,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -15113,6 +16648,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -15216,19 +16752,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" application/yaml: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NodeList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NodeList' + $ref: "#/components/schemas/v1.NodeList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.NodeList" description: OK "401": content: {} @@ -15241,6 +16783,8 @@ paths: kind: Node version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -15293,44 +16837,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: Accepted "401": content: {} @@ -15345,6 +16898,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -15383,6 +16937,21 @@ 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\ @@ -15406,32 +16975,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -15446,6 +17021,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -15471,13 +17047,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: OK "401": content: {} @@ -15490,6 +17069,7 @@ paths: kind: Node version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -15555,32 +17135,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: Created "401": content: {} @@ -15595,6 +17181,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -15651,32 +17238,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: Created "401": content: {} @@ -15691,6 +17284,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -16251,13 +17845,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: OK "401": content: {} @@ -16270,6 +17867,7 @@ paths: kind: Node version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -16335,32 +17933,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: Created "401": content: {} @@ -16375,6 +17979,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -16431,32 +18036,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/yaml: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Node" description: Created "401": content: {} @@ -16471,6 +18082,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -16575,19 +18187,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeClaimList' + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeClaimList" description: OK "401": content: {} @@ -16600,6 +18218,8 @@ paths: kind: PersistentVolumeClaim version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -16648,6 +18268,21 @@ 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 @@ -16725,20 +18360,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -16753,6 +18391,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -16856,19 +18495,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PersistentVolumeList' + $ref: "#/components/schemas/v1.PersistentVolumeList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PersistentVolumeList" description: OK "401": content: {} @@ -16881,6 +18526,8 @@ paths: kind: PersistentVolume version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -16933,44 +18580,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: Accepted "401": content: {} @@ -16985,6 +18641,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -17023,6 +18680,21 @@ 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\ @@ -17046,32 +18718,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: Accepted "401": content: {} @@ -17086,6 +18764,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -17111,13 +18790,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "401": content: {} @@ -17130,6 +18812,7 @@ paths: kind: PersistentVolume version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -17195,32 +18878,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "401": content: {} @@ -17235,6 +18924,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -17291,32 +18981,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "401": content: {} @@ -17331,6 +19027,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -17357,13 +19054,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "401": content: {} @@ -17376,6 +19076,7 @@ paths: kind: PersistentVolume version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -17441,32 +19142,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "401": content: {} @@ -17481,6 +19188,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -17537,32 +19245,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/yaml: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PersistentVolume' + $ref: "#/components/schemas/v1.PersistentVolume" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PersistentVolume" description: Created "401": content: {} @@ -17577,6 +19291,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -17681,19 +19396,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodList' + $ref: "#/components/schemas/v1.PodList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PodList" description: OK "401": content: {} @@ -17706,6 +19427,8 @@ paths: kind: Pod version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -17812,19 +19535,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodTemplateList' + $ref: "#/components/schemas/v1.PodTemplateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PodTemplateList" description: OK "401": content: {} @@ -17837,6 +19566,8 @@ paths: kind: PodTemplate version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -17943,19 +19674,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicationControllerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicationControllerList' + $ref: "#/components/schemas/v1.ReplicationControllerList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ReplicationControllerList" description: OK "401": content: {} @@ -17968,6 +19705,8 @@ paths: kind: ReplicationController version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -18074,19 +19813,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/yaml: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceQuotaList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ResourceQuotaList' + $ref: "#/components/schemas/v1.ResourceQuotaList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ResourceQuotaList" description: OK "401": content: {} @@ -18099,6 +19844,8 @@ paths: kind: ResourceQuota version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -18205,19 +19952,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/yaml: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SecretList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.SecretList' + $ref: "#/components/schemas/v1.SecretList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.SecretList" description: OK "401": content: {} @@ -18230,6 +19983,8 @@ paths: kind: Secret version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -18336,19 +20091,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceAccountList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceAccountList' + $ref: "#/components/schemas/v1.ServiceAccountList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ServiceAccountList" description: OK "401": content: {} @@ -18361,6 +20122,8 @@ paths: kind: ServiceAccount version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -18467,19 +20230,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/yaml: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ServiceList' + $ref: "#/components/schemas/v1.ServiceList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ServiceList" description: OK "401": content: {} @@ -18492,6 +20261,8 @@ paths: kind: Service version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -18548,13 +20319,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroupList' + $ref: "#/components/schemas/v1.APIGroupList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroupList' + $ref: "#/components/schemas/v1.APIGroupList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroupList' + $ref: "#/components/schemas/v1.APIGroupList" description: OK "401": content: {} @@ -18574,13 +20345,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -18600,13 +20371,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -18614,6 +20388,7 @@ paths: tags: - admissionregistration_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -18660,6 +20435,21 @@ 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 @@ -18737,20 +20527,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -18765,6 +20558,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -18868,19 +20662,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" description: OK "401": content: {} @@ -18893,6 +20693,8 @@ paths: kind: MutatingWebhookConfiguration version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -18945,44 +20747,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Accepted "401": content: {} @@ -18997,6 +20808,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -19035,6 +20847,21 @@ 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\ @@ -19058,32 +20885,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -19098,6 +20931,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -19123,13 +20957,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "401": content: {} @@ -19142,6 +20979,7 @@ paths: kind: MutatingWebhookConfiguration version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -19207,32 +21045,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Created "401": content: {} @@ -19247,6 +21091,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -19303,32 +21148,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.MutatingWebhookConfiguration' + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Created "401": content: {} @@ -19343,6 +21194,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -19389,6 +21241,21 @@ 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 @@ -19466,20 +21333,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -19494,6 +21364,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -19597,19 +21468,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" description: OK "401": content: {} @@ -19622,6 +21499,8 @@ paths: kind: ValidatingAdmissionPolicy version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -19674,44 +21553,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $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' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Accepted "401": content: {} @@ -19726,6 +21614,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -19764,6 +21653,21 @@ 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\ @@ -19787,32 +21691,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -19827,6 +21737,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -19852,13 +21763,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "401": content: {} @@ -19871,6 +21785,7 @@ paths: kind: ValidatingAdmissionPolicy version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -19936,32 +21851,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $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' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -19976,6 +21897,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -20032,32 +21954,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $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' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -20072,6 +22000,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -20098,13 +22027,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "401": content: {} @@ -20117,6 +22049,7 @@ paths: kind: ValidatingAdmissionPolicy version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -20182,32 +22115,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $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' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -20222,6 +22161,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -20278,32 +22218,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $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' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -20318,6 +22264,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -20364,6 +22311,21 @@ 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 @@ -20441,20 +22403,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -20469,6 +22434,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -20572,19 +22538,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" description: OK "401": content: {} @@ -20597,6 +22569,8 @@ paths: kind: ValidatingAdmissionPolicyBinding version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -20649,44 +22623,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Accepted "401": content: {} @@ -20701,6 +22684,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -20739,6 +22723,21 @@ 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\ @@ -20762,32 +22761,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -20802,6 +22807,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -20827,13 +22833,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "401": content: {} @@ -20846,6 +22855,7 @@ paths: kind: ValidatingAdmissionPolicyBinding version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -20911,32 +22921,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -20951,6 +22967,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21007,32 +23024,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -21047,6 +23070,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21093,6 +23117,21 @@ 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 @@ -21170,20 +23209,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -21198,6 +23240,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21301,19 +23344,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfigurationList' + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" description: OK "401": content: {} @@ -21326,6 +23375,8 @@ paths: kind: ValidatingWebhookConfiguration version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -21378,44 +23429,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Accepted "401": content: {} @@ -21430,6 +23490,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21468,6 +23529,21 @@ 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\ @@ -21491,32 +23567,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -21531,6 +23613,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21556,13 +23639,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "401": content: {} @@ -21575,6 +23661,7 @@ paths: kind: ValidatingWebhookConfiguration version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21640,32 +23727,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Created "401": content: {} @@ -21680,6 +23773,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21736,32 +23830,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ValidatingWebhookConfiguration' + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Created "401": content: {} @@ -21776,6 +23876,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -21796,13 +23897,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -21810,13 +23914,14 @@ paths: tags: - admissionregistration_v1alpha1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1alpha1/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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -21856,6 +23961,21 @@ 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 @@ -21933,20 +24053,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -21956,17 +24079,18 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -22064,19 +24188,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" description: OK "401": content: {} @@ -22086,17 +24216,19 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1alpha1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ValidatingAdmissionPolicy - operationId: createValidatingAdmissionPolicy + description: create a MutatingAdmissionPolicy + operationId: createMutatingAdmissionPolicy 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\ @@ -22141,44 +24273,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Accepted "401": content: {} @@ -22188,20 +24329,21 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1alpha1/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 @@ -22231,6 +24373,21 @@ 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\ @@ -22254,32 +24411,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -22289,168 +24452,20 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ValidatingAdmissionPolicy - operationId: readValidatingAdmissionPolicy - 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/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 - - application/vnd.kubernetes.protobuf - - application/yaml - 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. 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.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' - 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-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified ValidatingAdmissionPolicy - operationId: replaceValidatingAdmissionPolicy + description: read the specified MutatingAdmissionPolicy + operationId: readMutatingAdmissionPolicy parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -22463,115 +24478,21 @@ paths: 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' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" 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' - 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-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /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. 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.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "401": content: {} @@ -22581,17 +24502,18 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1alpha1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -22649,32 +24571,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -22684,19 +24612,20 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -22745,32 +24674,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -22780,18 +24715,19 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1alpha1/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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -22831,6 +24767,21 @@ 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 @@ -22908,20 +24859,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -22931,17 +24885,18 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -23039,19 +24994,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" description: OK "401": content: {} @@ -23061,17 +25022,19 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1alpha1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ValidatingAdmissionPolicyBinding - operationId: createValidatingAdmissionPolicyBinding + description: create a MutatingAdmissionPolicyBinding + operationId: createMutatingAdmissionPolicyBinding 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\ @@ -23116,44 +25079,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Accepted "401": content: {} @@ -23163,20 +25135,21 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1alpha1/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 @@ -23206,6 +25179,21 @@ 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\ @@ -23229,32 +25217,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -23264,19 +25258,20 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -23294,13 +25289,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "401": content: {} @@ -23310,17 +25308,18 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1alpha1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -23378,32 +25377,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -23413,19 +25418,20 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -23474,32 +25480,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -23509,18 +25521,19 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /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/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 @@ -23530,13 +25543,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -23544,13 +25560,14 @@ paths: tags: - admissionregistration_v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies: + /apis/admissionregistration.k8s.io/v1beta1/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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -23590,6 +25607,21 @@ 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 @@ -23667,20 +25699,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -23690,17 +25725,18 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -23798,19 +25834,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" description: OK "401": content: {} @@ -23820,17 +25862,19 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ValidatingAdmissionPolicy - operationId: createValidatingAdmissionPolicy + description: create a MutatingAdmissionPolicy + operationId: createMutatingAdmissionPolicy 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\ @@ -23875,44 +25919,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Accepted "401": content: {} @@ -23922,20 +25975,21 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}: + /apis/admissionregistration.k8s.io/v1beta1/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 @@ -23965,6 +26019,21 @@ 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\ @@ -23988,32 +26057,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -24023,19 +26098,20 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -24053,259 +26129,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.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 - - application/vnd.kubernetes.protobuf - - application/yaml - 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. 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.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + application/cbor: 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-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - 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. 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.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: - 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: put - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /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. 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.ValidatingAdmissionPolicy' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "401": content: {} @@ -24315,17 +26148,18 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -24383,32 +26217,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -24418,19 +26258,20 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -24479,32 +26320,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicy' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -24514,18 +26361,19 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicy version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings: + /apis/admissionregistration.k8s.io/v1beta1/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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -24565,6 +26413,21 @@ 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 @@ -24642,20 +26505,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -24665,17 +26531,18 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -24773,19 +26640,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBindingList' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" description: OK "401": content: {} @@ -24795,17 +26668,19 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ValidatingAdmissionPolicyBinding - operationId: createValidatingAdmissionPolicyBinding + description: create a MutatingAdmissionPolicyBinding + operationId: createMutatingAdmissionPolicyBinding 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\ @@ -24850,44 +26725,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Accepted "401": content: {} @@ -24897,20 +26781,21 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}: + /apis/admissionregistration.k8s.io/v1beta1/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 @@ -24940,6 +26825,21 @@ 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\ @@ -24963,32 +26863,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -24998,19 +26904,20 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -25028,13 +26935,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "401": content: {} @@ -25044,17 +26954,18 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -25112,32 +27023,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -25147,19 +27064,20 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -25208,32 +27126,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta1.ValidatingAdmissionPolicyBinding' + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -25243,18 +27167,19 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingAdmissionPolicyBinding version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /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/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies/{name}: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings/{name}: {} /apis/apiextensions.k8s.io/: get: description: get information of a group @@ -25264,13 +27189,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -25290,13 +27215,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -25304,6 +27232,7 @@ paths: tags: - apiextensions_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -25350,6 +27279,21 @@ 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 @@ -25427,20 +27371,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -25455,6 +27402,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -25558,19 +27506,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinitionList' + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" description: OK "401": content: {} @@ -25583,6 +27537,8 @@ paths: kind: CustomResourceDefinition version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -25635,44 +27591,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $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' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Accepted "401": content: {} @@ -25687,6 +27652,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -25725,6 +27691,21 @@ 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\ @@ -25748,32 +27729,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -25788,6 +27775,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -25813,13 +27801,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "401": content: {} @@ -25832,6 +27823,7 @@ paths: kind: CustomResourceDefinition version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -25897,32 +27889,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $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' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} @@ -25937,6 +27935,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -25993,32 +27992,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $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' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} @@ -26033,6 +28038,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -26059,13 +28065,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "401": content: {} @@ -26078,6 +28087,7 @@ paths: kind: CustomResourceDefinition version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -26143,32 +28153,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $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' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} @@ -26183,6 +28199,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -26239,32 +28256,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $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' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CustomResourceDefinition' + $ref: "#/components/schemas/v1.CustomResourceDefinition" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} @@ -26279,6 +28302,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -26293,13 +28317,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -26319,13 +28343,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -26333,6 +28360,7 @@ paths: tags: - apiregistration_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -26379,6 +28407,21 @@ 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 @@ -26456,20 +28499,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -26484,6 +28530,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -26587,19 +28634,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIServiceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIServiceList' + $ref: "#/components/schemas/v1.APIServiceList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.APIServiceList" description: OK "401": content: {} @@ -26612,6 +28665,8 @@ paths: kind: APIService version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -26664,44 +28719,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: Accepted "401": content: {} @@ -26716,6 +28780,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -26754,6 +28819,21 @@ 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\ @@ -26777,32 +28857,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -26817,6 +28903,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -26842,13 +28929,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: OK "401": content: {} @@ -26861,6 +28951,7 @@ paths: kind: APIService version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -26926,32 +29017,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} @@ -26966,6 +29063,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -27022,32 +29120,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} @@ -27062,6 +29166,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -27088,13 +29193,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: OK "401": content: {} @@ -27107,6 +29215,7 @@ paths: kind: APIService version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -27172,32 +29281,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} @@ -27212,6 +29327,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -27268,32 +29384,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIService' + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} @@ -27308,6 +29430,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -27322,13 +29445,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -27348,13 +29471,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -27362,6 +29488,7 @@ paths: tags: - apps_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -27466,19 +29593,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" description: OK "401": content: {} @@ -27491,6 +29624,8 @@ paths: kind: ControllerRevision version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -27597,19 +29732,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.DaemonSetList" description: OK "401": content: {} @@ -27622,6 +29763,8 @@ paths: kind: DaemonSet version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -27728,19 +29871,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/yaml: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeploymentList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.DeploymentList" description: OK "401": content: {} @@ -27753,6 +29902,8 @@ paths: kind: Deployment version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -27807,6 +29958,21 @@ 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 @@ -27884,20 +30050,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -27912,6 +30081,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -28021,19 +30191,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ControllerRevisionList' + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" description: OK "401": content: {} @@ -28046,6 +30222,8 @@ paths: kind: ControllerRevision version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -28104,44 +30282,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" description: Accepted "401": content: {} @@ -28156,6 +30343,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -28200,6 +30388,21 @@ 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\ @@ -28223,32 +30426,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -28263,6 +30472,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -28294,13 +30504,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "401": content: {} @@ -28313,6 +30526,7 @@ paths: kind: ControllerRevision version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -28384,32 +30598,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" description: Created "401": content: {} @@ -28424,6 +30644,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -28486,32 +30707,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ControllerRevision' + $ref: "#/components/schemas/v1.ControllerRevision" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" description: Created "401": content: {} @@ -28526,6 +30753,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -28578,6 +30806,21 @@ 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 @@ -28655,20 +30898,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -28683,6 +30929,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -28792,19 +31039,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DaemonSetList' + $ref: "#/components/schemas/v1.DaemonSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.DaemonSetList" description: OK "401": content: {} @@ -28817,6 +31070,8 @@ paths: kind: DaemonSet version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -28875,44 +31130,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: Accepted "401": content: {} @@ -28927,6 +31191,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -28971,6 +31236,21 @@ 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\ @@ -28994,32 +31274,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -29034,6 +31320,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -29065,13 +31352,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: OK "401": content: {} @@ -29084,6 +31374,7 @@ paths: kind: DaemonSet version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -29155,32 +31446,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -29195,6 +31492,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -29257,32 +31555,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -29297,6 +31601,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -29329,13 +31634,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: OK "401": content: {} @@ -29348,6 +31656,7 @@ paths: kind: DaemonSet version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -29419,32 +31728,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -29459,6 +31774,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -29521,32 +31837,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -29561,6 +31883,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -29613,6 +31936,21 @@ 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 @@ -29690,20 +32028,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -29718,6 +32059,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -29827,19 +32169,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/yaml: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeploymentList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.DeploymentList' + $ref: "#/components/schemas/v1.DeploymentList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.DeploymentList" description: OK "401": content: {} @@ -29852,6 +32200,8 @@ paths: kind: Deployment version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -29910,44 +32260,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: Accepted "401": content: {} @@ -29962,6 +32321,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30006,6 +32366,21 @@ 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\ @@ -30029,32 +32404,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -30069,6 +32450,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30100,13 +32482,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: OK "401": content: {} @@ -30119,6 +32504,7 @@ paths: kind: Deployment version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30190,32 +32576,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: Created "401": content: {} @@ -30230,6 +32622,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30292,32 +32685,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: Created "401": content: {} @@ -30332,6 +32731,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30364,13 +32764,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "401": content: {} @@ -30383,6 +32786,7 @@ paths: kind: Scale version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30454,32 +32858,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -30494,6 +32904,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30556,32 +32967,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -30596,6 +33013,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30628,13 +33046,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: OK "401": content: {} @@ -30647,6 +33068,7 @@ paths: kind: Deployment version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30718,32 +33140,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: Created "401": content: {} @@ -30758,6 +33186,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30820,32 +33249,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" description: Created "401": content: {} @@ -30860,6 +33295,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -30912,6 +33348,21 @@ 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 @@ -30989,20 +33440,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -31017,6 +33471,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31126,19 +33581,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" description: OK "401": content: {} @@ -31151,6 +33612,8 @@ paths: kind: ReplicaSet version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -31209,44 +33672,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: Accepted "401": content: {} @@ -31261,6 +33733,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31305,6 +33778,21 @@ 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\ @@ -31328,32 +33816,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -31368,6 +33862,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31399,13 +33894,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "401": content: {} @@ -31418,6 +33916,7 @@ paths: kind: ReplicaSet version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31489,32 +33988,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "401": content: {} @@ -31529,6 +34034,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31591,32 +34097,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "401": content: {} @@ -31631,6 +34143,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31663,13 +34176,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "401": content: {} @@ -31682,6 +34198,7 @@ paths: kind: Scale version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31753,32 +34270,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -31793,6 +34316,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31855,32 +34379,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -31895,6 +34425,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -31927,13 +34458,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "401": content: {} @@ -31946,6 +34480,7 @@ paths: kind: ReplicaSet version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32017,32 +34552,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "401": content: {} @@ -32057,6 +34598,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32119,32 +34661,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSet' + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" description: Created "401": content: {} @@ -32159,6 +34707,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32211,6 +34760,21 @@ 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 @@ -32288,20 +34852,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -32316,6 +34883,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32425,19 +34993,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" description: OK "401": content: {} @@ -32450,6 +35024,8 @@ paths: kind: StatefulSet version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -32508,44 +35084,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $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' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" description: Accepted "401": content: {} @@ -32560,6 +35145,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32604,6 +35190,21 @@ 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\ @@ -32627,32 +35228,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -32667,6 +35274,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32698,13 +35306,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" description: OK "401": content: {} @@ -32717,6 +35328,7 @@ paths: kind: StatefulSet version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32788,32 +35400,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $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' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" description: Created "401": content: {} @@ -32828,6 +35446,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32890,32 +35509,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $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' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" description: Created "401": content: {} @@ -32930,6 +35555,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -32962,13 +35588,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "401": content: {} @@ -32981,6 +35610,7 @@ paths: kind: Scale version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -33052,32 +35682,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -33092,6 +35728,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -33154,32 +35791,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/yaml: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Scale' + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" description: Created "401": content: {} @@ -33194,6 +35837,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -33226,13 +35870,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" description: OK "401": content: {} @@ -33245,6 +35892,7 @@ paths: kind: StatefulSet version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -33316,32 +35964,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $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' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" description: Created "401": content: {} @@ -33356,6 +36010,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -33418,32 +36073,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $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' + $ref: "#/components/schemas/v1.StatefulSet" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" description: Created "401": content: {} @@ -33458,6 +36119,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -33562,19 +36224,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ReplicaSetList' + $ref: "#/components/schemas/v1.ReplicaSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" description: OK "401": content: {} @@ -33587,6 +36255,8 @@ paths: kind: ReplicaSet version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -33693,19 +36363,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/yaml: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StatefulSetList' + $ref: "#/components/schemas/v1.StatefulSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" description: OK "401": content: {} @@ -33718,6 +36394,8 @@ paths: kind: StatefulSet version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -33747,13 +36425,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -33773,13 +36451,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -33787,6 +36468,7 @@ paths: tags: - authentication_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -33838,44 +36520,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectReview' + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" description: Accepted "401": content: {} @@ -33890,6 +36581,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -33941,44 +36633,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/yaml: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.TokenReview' + $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' + $ref: "#/components/schemas/v1.TokenReview" application/yaml: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.TokenReview" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/yaml: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.TokenReview' + $ref: "#/components/schemas/v1.TokenReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.TokenReview" description: Accepted "401": content: {} @@ -33993,10 +36694,37 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/authentication.k8s.io/v1alpha1/: + /apis/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: + - authorization + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authorization.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -34005,311 +36733,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - authentication_v1alpha1 + - authorization_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/authentication.k8s.io/v1alpha1/selfsubjectreviews: + /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews: 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 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 - - description: "If 'true', then the output is pretty 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/v1alpha1.SelfSubjectReview' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - 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: - schema: - $ref: '#/components/schemas/v1alpha1.SelfSubjectReview' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - authentication_v1alpha1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: SelfSubjectReview - version: v1alpha1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /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 - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/authentication.k8s.io/v1beta1/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 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 - - description: "If 'true', then the output is pretty 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/v1beta1.SelfSubjectReview' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - application/yaml: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - 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: - schema: - $ref: '#/components/schemas/v1beta1.SelfSubjectReview' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - authentication_v1beta1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: SelfSubjectReview - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/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: - - authorization - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - authorization_v1 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews: - post: - description: create a LocalSubjectAccessReview - operationId: createNamespacedLocalSubjectAccessReview + description: create a LocalSubjectAccessReview + operationId: createNamespacedLocalSubjectAccessReview parameters: - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ @@ -34360,44 +36808,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $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' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LocalSubjectAccessReview' + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" description: Accepted "401": content: {} @@ -34412,6 +36869,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -34463,44 +36921,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectAccessReview' + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" description: Accepted "401": content: {} @@ -34515,6 +36982,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -34566,44 +37034,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $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' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SelfSubjectRulesReview' + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" description: Accepted "401": content: {} @@ -34618,6 +37095,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -34669,44 +37147,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $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' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/yaml: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.SubjectAccessReview' + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" description: Accepted "401": content: {} @@ -34721,6 +37208,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -34733,13 +37221,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -34759,13 +37247,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -34773,6 +37264,7 @@ paths: tags: - autoscaling_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -34877,19 +37369,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" description: OK "401": content: {} @@ -34902,6 +37400,8 @@ paths: kind: HorizontalPodAutoscaler version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -34956,6 +37456,21 @@ 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 @@ -35033,20 +37548,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -35061,6 +37579,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -35170,19 +37689,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" description: OK "401": content: {} @@ -35195,6 +37720,8 @@ paths: kind: HorizontalPodAutoscaler version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -35253,44 +37780,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Accepted "401": content: {} @@ -35305,6 +37841,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -35349,6 +37886,21 @@ 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\ @@ -35372,32 +37924,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -35412,6 +37970,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -35443,13 +38002,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "401": content: {} @@ -35462,6 +38024,7 @@ paths: kind: HorizontalPodAutoscaler version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -35533,32 +38096,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -35573,6 +38142,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -35635,32 +38205,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -35675,6 +38251,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -35707,13 +38284,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "401": content: {} @@ -35726,6 +38306,7 @@ paths: kind: HorizontalPodAutoscaler version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -35797,32 +38378,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -35837,6 +38424,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -35899,32 +38487,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -35939,6 +38533,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -35954,13 +38549,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -35968,6 +38566,7 @@ paths: tags: - autoscaling_v2 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -36072,19 +38671,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" description: OK "401": content: {} @@ -36097,6 +38702,8 @@ paths: kind: HorizontalPodAutoscaler version: v2 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -36151,6 +38758,21 @@ 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 @@ -36228,20 +38850,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -36256,6 +38881,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -36365,19 +38991,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerList' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" description: OK "401": content: {} @@ -36390,6 +39022,8 @@ paths: kind: HorizontalPodAutoscaler version: v2 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -36448,44 +39082,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Accepted "401": content: {} @@ -36500,6 +39143,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -36544,6 +39188,21 @@ 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\ @@ -36567,32 +39226,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -36607,6 +39272,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -36638,13 +39304,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "401": content: {} @@ -36657,6 +39326,7 @@ paths: kind: HorizontalPodAutoscaler version: v2 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -36728,32 +39398,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -36768,6 +39444,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -36830,32 +39507,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -36870,6 +39553,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -36902,13 +39586,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "401": content: {} @@ -36921,6 +39608,7 @@ paths: kind: HorizontalPodAutoscaler version: v2 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -36992,32 +39680,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -37032,6 +39726,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -37094,32 +39789,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} @@ -37134,6 +39835,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -37149,13 +39851,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -37175,13 +39877,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -37189,6 +39894,7 @@ paths: tags: - batch_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -37293,19 +39999,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJobList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.CronJobList" description: OK "401": content: {} @@ -37318,6 +40030,8 @@ paths: kind: CronJob version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -37424,19 +40138,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/yaml: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.JobList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.JobList" description: OK "401": content: {} @@ -37449,6 +40169,8 @@ paths: kind: Job version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -37503,6 +40225,21 @@ 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 @@ -37580,20 +40317,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -37608,6 +40348,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -37717,19 +40458,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJobList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CronJobList' + $ref: "#/components/schemas/v1.CronJobList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.CronJobList" description: OK "401": content: {} @@ -37742,6 +40489,8 @@ paths: kind: CronJob version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -37800,44 +40549,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $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' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: Accepted "401": content: {} @@ -37852,6 +40610,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -37896,6 +40655,21 @@ 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\ @@ -37919,32 +40693,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -37959,6 +40739,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -37990,13 +40771,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: OK "401": content: {} @@ -38009,6 +40793,7 @@ paths: kind: CronJob version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -38080,32 +40865,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: Created "401": content: {} @@ -38120,6 +40911,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -38182,32 +40974,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: Created "401": content: {} @@ -38222,6 +41020,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -38254,13 +41053,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: OK "401": content: {} @@ -38273,6 +41075,7 @@ paths: kind: CronJob version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -38344,32 +41147,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: Created "401": content: {} @@ -38384,6 +41193,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -38446,32 +41256,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CronJob" description: Created "401": content: {} @@ -38486,6 +41302,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -38538,6 +41355,21 @@ 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 @@ -38615,20 +41447,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -38643,6 +41478,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -38752,19 +41588,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/yaml: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.JobList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.JobList' + $ref: "#/components/schemas/v1.JobList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.JobList" description: OK "401": content: {} @@ -38777,6 +41619,8 @@ paths: kind: Job version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -38835,44 +41679,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $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' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Job" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Job" description: Accepted "401": content: {} @@ -38887,6 +41740,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -38931,6 +41785,21 @@ 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\ @@ -38954,32 +41823,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -38994,6 +41869,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -39025,13 +41901,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Job" description: OK "401": content: {} @@ -39044,6 +41923,7 @@ paths: kind: Job version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -39115,32 +41995,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $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' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} @@ -39155,6 +42041,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -39217,32 +42104,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $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' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} @@ -39257,6 +42150,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -39289,13 +42183,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Job" description: OK "401": content: {} @@ -39308,6 +42205,7 @@ paths: kind: Job version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -39379,32 +42277,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $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' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} @@ -39419,6 +42323,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -39481,32 +42386,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $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' + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} @@ -39521,6 +42432,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -39539,13 +42451,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} @@ -39565,13 +42477,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -39579,6 +42494,7 @@ paths: tags: - certificates_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -39625,6 +42541,21 @@ 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 @@ -39702,20 +42633,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -39730,6 +42664,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -39833,19 +42768,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequestList' + $ref: "#/components/schemas/v1.CertificateSigningRequestList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequestList" description: OK "401": content: {} @@ -39858,6 +42799,8 @@ paths: kind: CertificateSigningRequest version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -39910,44 +42853,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $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' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Accepted "401": content: {} @@ -39962,6 +42914,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40000,6 +42953,21 @@ 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\ @@ -40023,32 +42991,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -40063,6 +43037,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40088,13 +43063,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "401": content: {} @@ -40107,6 +43085,7 @@ paths: kind: CertificateSigningRequest version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40172,32 +43151,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $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' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -40212,6 +43197,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40268,32 +43254,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $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' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -40308,6 +43300,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40334,13 +43327,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "401": content: {} @@ -40353,6 +43349,7 @@ paths: kind: CertificateSigningRequest version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40418,32 +43415,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $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' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -40458,6 +43461,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40514,32 +43518,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $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' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -40554,6 +43564,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40580,13 +43591,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "401": content: {} @@ -40599,6 +43613,7 @@ paths: kind: CertificateSigningRequest version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40664,32 +43679,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $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' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -40704,6 +43725,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40760,32 +43782,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $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' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} @@ -40800,6 +43828,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40814,13 +43843,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} @@ -40828,6 +43860,7 @@ paths: tags: - certificates_v1alpha1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -40874,6 +43907,21 @@ 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 @@ -40951,20 +43999,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -40979,6 +44030,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -41082,19 +44134,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleList' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" description: OK "401": content: {} @@ -41107,6 +44165,8 @@ paths: kind: ClusterTrustBundle version: v1alpha1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf @@ -41159,44 +44219,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Accepted "401": content: {} @@ -41211,6 +44280,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -41249,6 +44319,21 @@ 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\ @@ -41272,32 +44357,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -41312,6 +44403,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -41337,13 +44429,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "401": content: {} @@ -41356,6 +44451,7 @@ paths: kind: ClusterTrustBundle version: v1alpha1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -41421,32 +44517,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Created "401": content: {} @@ -41461,6 +44563,7 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml @@ -41517,32 +44620,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Created "401": content: {} @@ -41557,68 +44666,223 @@ paths: x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles: {} /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}: {} - /apis/coordination.k8s.io/: + /apis/certificates.k8s.io/v1beta1/: get: - description: get information of a group - operationId: getAPIGroup + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - coordination + - certificates_v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources + /apis/certificates.k8s.io/v1beta1/clustertrustbundles: + delete: + description: delete collection of ClusterTrustBundle + operationId: deleteCollectionClusterTrustBundle + 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.APIResourceList' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/leases: get: - description: list or watch objects of kind Lease - operationId: listLeaseForAllNamespaces + description: list or watch objects of kind ClusterTrustBundle + operationId: listClusterTrustBundle 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\ @@ -41657,13 +44921,6 @@ 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. @@ -41715,40 +44972,546 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: + post: + description: create a ClusterTrustBundle + operationId: createClusterTrustBundle + 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.ClusterTrustBundle" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}: delete: - description: delete collection of Lease - operationId: deleteCollectionNamespacedLease + description: delete a ClusterTrustBundle + operationId: deleteClusterTrustBundle + parameters: + - description: name of the ClusterTrustBundle + 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: + - certificates_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified ClusterTrustBundle + operationId: readClusterTrustBundle + parameters: + - description: name of the ClusterTrustBundle + 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.ClusterTrustBundle" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified ClusterTrustBundle + operationId: patchClusterTrustBundle + parameters: + - description: name of the ClusterTrustBundle + 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.ClusterTrustBundle" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified ClusterTrustBundle + operationId: replaceClusterTrustBundle + parameters: + - description: name of the ClusterTrustBundle + 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.ClusterTrustBundle" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests: + delete: + description: delete collection of PodCertificateRequest + operationId: deleteCollectionNamespacedPodCertificateRequest parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -41794,6 +45557,21 @@ 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 @@ -41871,40 +45649,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Lease - operationId: listNamespacedLease + description: list or watch objects of kind PodCertificateRequest + operationId: listNamespacedPodCertificateRequest parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -42008,39 +45790,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/yaml: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.LeaseList' + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Lease - operationId: createNamespacedLease + description: create a PodCertificateRequest + operationId: createNamespacedPodCertificateRequest parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -42091,67 +45881,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: + /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}: delete: - description: delete a Lease - operationId: deleteNamespacedLease + description: delete a PodCertificateRequest + operationId: deleteNamespacedPodCertificateRequest parameters: - - description: name of the Lease + - description: name of the PodCertificateRequest in: path name: name required: true @@ -42187,6 +45987,21 @@ 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\ @@ -42210,54 +46025,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Lease - operationId: readNamespacedLease + description: read the specified PodCertificateRequest + operationId: readNamespacedPodCertificateRequest parameters: - - description: name of the Lease + - description: name of the PodCertificateRequest in: path name: name required: true @@ -42281,33 +46103,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Lease - operationId: patchNamespacedLease + description: partially update the specified PodCertificateRequest + operationId: patchNamespacedPodCertificateRequest parameters: - - description: name of the Lease + - description: name of the PodCertificateRequest in: path name: name required: true @@ -42371,54 +46197,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Lease - operationId: replaceNamespacedLease + description: replace the specified PodCertificateRequest + operationId: replaceNamespacedPodCertificateRequest parameters: - - description: name of the Lease + - description: name of the PodCertificateRequest in: path name: name required: true @@ -42473,53 +46306,483 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - certificates_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /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/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status: + get: + description: read status of the specified PodCertificateRequest + operationId: readNamespacedPodCertificateRequestStatus + parameters: + - description: name of the PodCertificateRequest + 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/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified PodCertificateRequest + operationId: patchNamespacedPodCertificateRequestStatus + parameters: + - description: name of the PodCertificateRequest + 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/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified PodCertificateRequest + operationId: replaceNamespacedPodCertificateRequestStatus + parameters: + - description: name of the PodCertificateRequest + 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.PodCertificateRequest" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/certificates.k8s.io/v1beta1/podcertificaterequests: + get: + description: list or watch objects of kind PodCertificateRequest + operationId: listPodCertificateRequestForAllNamespaces + 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/v1beta1.PodCertificateRequestList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}: {} + /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests: {} + /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}: {} + /apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests: {} + /apis/coordination.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -42528,24 +46791,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - discovery + - coordination x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/: + /apis/coordination.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -42554,27 +46817,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/endpointslices: + /apis/coordination.k8s.io/v1/leases: get: - description: list or watch objects of kind EndpointSlice - operationId: listEndpointSliceForAllNamespaces + description: list or watch objects of kind Lease + operationId: listLeaseForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -42672,40 +46939,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LeaseList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.LeaseList" description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: coordination.k8s.io + kind: Lease version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: delete: - description: delete collection of EndpointSlice - operationId: deleteCollectionNamespacedEndpointSlice + description: delete collection of Lease + operationId: deleteCollectionNamespacedLease parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -42751,6 +47026,21 @@ 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 @@ -42828,40 +47118,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: coordination.k8s.io + kind: Lease version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind EndpointSlice - operationId: listNamespacedEndpointSlice + description: list or watch objects of kind Lease + operationId: listNamespacedLease parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -42965,39 +47259,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LeaseList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.EndpointSliceList' + $ref: "#/components/schemas/v1.LeaseList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.LeaseList" description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: coordination.k8s.io + kind: Lease version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an EndpointSlice - operationId: createNamespacedEndpointSlice + description: create a Lease + operationId: createNamespacedLease parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -43048,67 +47350,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Lease" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Lease" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Lease" description: Accepted "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: coordination.k8s.io + kind: Lease version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: delete: - description: delete an EndpointSlice - operationId: deleteNamespacedEndpointSlice + description: delete a Lease + operationId: deleteNamespacedLease parameters: - - description: name of the EndpointSlice + - description: name of the Lease in: path name: name required: true @@ -43144,6 +47456,21 @@ 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\ @@ -43167,54 +47494,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: coordination.k8s.io + kind: Lease version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified EndpointSlice - operationId: readNamespacedEndpointSlice + description: read the specified Lease + operationId: readNamespacedLease parameters: - - description: name of the EndpointSlice + - description: name of the Lease in: path name: name required: true @@ -43238,33 +47572,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Lease" description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: coordination.k8s.io + kind: Lease version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified EndpointSlice - operationId: patchNamespacedEndpointSlice + description: partially update the specified Lease + operationId: patchNamespacedLease parameters: - - description: name of the EndpointSlice + - description: name of the Lease in: path name: name required: true @@ -43328,54 +47666,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Lease" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Lease" description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: coordination.k8s.io + kind: Lease version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified EndpointSlice - operationId: replaceNamespacedEndpointSlice + description: replace the specified Lease + operationId: replaceNamespacedLease parameters: - - description: name of the EndpointSlice + - description: name of the Lease in: path name: name required: true @@ -43430,108 +47775,93 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Lease" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.Lease" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Lease" description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - coordination_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: coordination.k8s.io + kind: Lease version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /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/: + /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: get information of a group - operationId: getAPIGroup + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - events + - coordination_v1alpha2 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/: + /apis/coordination.k8s.io/v1alpha2/leasecandidates: 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: - - events_v1 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/events.k8s.io/v1/events: - get: - description: list or watch objects of kind Event - operationId: listEventForAllNamespaces + description: list or watch objects of kind LeaseCandidate + operationId: listLeaseCandidateForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -43629,40 +47959,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/events.k8s.io/v1/namespaces/{namespace}/events: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates: delete: - description: delete collection of Event - operationId: deleteCollectionNamespacedEvent + description: delete collection of LeaseCandidate + operationId: deleteCollectionNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -43708,6 +48046,21 @@ 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 @@ -43785,40 +48138,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1alpha2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Event - operationId: listNamespacedEvent + description: list or watch objects of kind LeaseCandidate + operationId: listNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -43922,39 +48279,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/yaml: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/events.v1.EventList' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an Event - operationId: createNamespacedEvent + description: create a LeaseCandidate + operationId: createNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -44005,67 +48370,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Accepted "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1alpha2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}: delete: - description: delete an Event - operationId: deleteNamespacedEvent + description: delete a LeaseCandidate + operationId: deleteNamespacedLeaseCandidate parameters: - - description: name of the Event + - description: name of the LeaseCandidate in: path name: name required: true @@ -44101,6 +48476,21 @@ 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\ @@ -44124,54 +48514,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1alpha2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Event - operationId: readNamespacedEvent + description: read the specified LeaseCandidate + operationId: readNamespacedLeaseCandidate parameters: - - description: name of the Event + - description: name of the LeaseCandidate in: path name: name required: true @@ -44195,33 +48592,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1alpha2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Event - operationId: patchNamespacedEvent + description: partially update the specified LeaseCandidate + operationId: patchNamespacedLeaseCandidate parameters: - - description: name of the Event + - description: name of the LeaseCandidate in: path name: name required: true @@ -44285,54 +48686,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1alpha2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Event - operationId: replaceNamespacedEvent + description: replace the specified LeaseCandidate + operationId: replaceNamespacedLeaseCandidate parameters: - - description: name of the Event + - description: name of the LeaseCandidate in: path name: name required: true @@ -44387,109 +48795,239 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - coordination_v1alpha2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /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/: + /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: get information of a group - operationId: getAPIGroup + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver + - coordination_v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/: + /apis/coordination.k8s.io/v1beta1/leasecandidates: get: - description: get available resources - operationId: getAPIResources + description: list or watch objects of kind LeaseCandidate + operationId: listLeaseCandidateForAllNamespaces + 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.APIResourceList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - coordination_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas: + /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates: delete: - description: delete collection of FlowSchema - operationId: deleteCollectionFlowSchema + description: delete collection of LeaseCandidate + operationId: deleteCollectionNamespacedLeaseCandidate 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)." @@ -44528,6 +49066,21 @@ 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 @@ -44605,41 +49158,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - coordination_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind FlowSchema - operationId: listFlowSchema + description: list or watch objects of kind LeaseCandidate + operationId: listNamespacedLeaseCandidate 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)." @@ -44736,40 +49299,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchemaList' + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - coordination_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a FlowSchema - operationId: createFlowSchema + description: create a LeaseCandidate + operationId: createNamespacedLeaseCandidate 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)." @@ -44813,72 +49390,88 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - coordination_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}: + /apis/coordination.k8s.io/v1beta1/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: "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)." @@ -44903,6 +49496,21 @@ 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\ @@ -44926,59 +49534,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - coordination_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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: "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)." @@ -44991,38 +49612,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - coordination_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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: "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)." @@ -45075,59 +49706,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - coordination_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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: "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)." @@ -45171,209 +49815,158 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1beta1.LeaseCandidate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - coordination_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{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 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. 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: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 + - discovery x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update status of the specified FlowSchema - operationId: patchFlowSchemaStatus - parameters: - - description: name of the FlowSchema - 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 + /apis/discovery.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/yaml: - schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: Created + $ref: "#/components/schemas/v1.APIResourceList" + description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json + - discovery_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified FlowSchema - operationId: replaceFlowSchemaStatus + /apis/discovery.k8s.io/v1/endpointslices: + get: + description: list or watch objects of kind EndpointSlice + operationId: listEndpointSliceForAllNamespaces parameters: - - description: name of the FlowSchema - 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: 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)." @@ -45381,90 +49974,106 @@ paths: 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/v1.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/v1.FlowSchema' + $ref: "#/components/schemas/v1.EndpointSliceList" application/yaml: schema: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: OK - "201": - content: - application/json: + $ref: "#/components/schemas/v1.EndpointSliceList" + application/cbor: schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/yaml: + $ref: "#/components/schemas/v1.EndpointSliceList" + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchema' - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.EndpointSliceList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.FlowSchema' - description: Created + $ref: "#/components/schemas/v1.EndpointSliceList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.EndpointSliceList" + description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: put + - discovery_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: discovery.k8s.io + kind: EndpointSlice version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: delete: - description: delete collection of PriorityLevelConfiguration - operationId: deleteCollectionPriorityLevelConfiguration + description: delete collection of EndpointSlice + operationId: deleteCollectionNamespacedEndpointSlice 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)." @@ -45503,6 +50112,21 @@ 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 @@ -45580,41 +50204,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PriorityLevelConfiguration - operationId: listPriorityLevelConfiguration + description: list or watch objects of kind EndpointSlice + operationId: listNamespacedEndpointSlice 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)." @@ -45711,40 +50345,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.EndpointSliceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointSliceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.EndpointSliceList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.EndpointSliceList" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PriorityLevelConfiguration - operationId: createPriorityLevelConfiguration + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45788,72 +50436,88 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointSlice" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointSlice" description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: delete: - description: delete a PriorityLevelConfiguration - operationId: deletePriorityLevelConfiguration + description: delete an EndpointSlice + operationId: deleteNamespacedEndpointSlice parameters: - - description: name of the PriorityLevelConfiguration + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45878,6 +50542,21 @@ 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\ @@ -45901,59 +50580,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfiguration + description: read the specified EndpointSlice + operationId: readNamespacedEndpointSlice parameters: - - description: name of the PriorityLevelConfiguration + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45966,38 +50658,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfiguration + description: partially update the specified EndpointSlice + operationId: patchNamespacedEndpointSlice parameters: - - description: name of the PriorityLevelConfiguration + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46050,59 +50752,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointSlice" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfiguration + description: replace the specified EndpointSlice + operationId: replaceNamespacedEndpointSlice parameters: - - description: name of the PriorityLevelConfiguration + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -46146,209 +50861,158 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.EndpointSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.EndpointSlice" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - discovery_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{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 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. 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: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.APIGroup" 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 + - events x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - 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: - 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/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/yaml: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' - description: Created + $ref: "#/components/schemas/v1.APIResourceList" + description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json + - events_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfigurationStatus + /apis/events.k8s.io/v1/events: + get: + description: list or watch objects of kind Event + operationId: listEventForAllNamespaces 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: 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)." @@ -46356,120 +51020,106 @@ paths: 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/v1.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/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/events.v1.EventList" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf: 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: + $ref: "#/components/schemas/events.v1.EventList" + 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-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /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/flowcontrol.apiserver.k8s.io/v1beta3/: - 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: - - flowcontrolApiserver_v1beta3 + - events_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: events.k8s.io + kind: Event + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas: + /apis/events.k8s.io/v1/namespaces/{namespace}/events: delete: - description: delete collection of FlowSchema - operationId: deleteCollectionFlowSchema + description: delete collection of Event + operationId: deleteCollectionNamespacedEvent 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)." @@ -46508,6 +51158,21 @@ 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 @@ -46585,41 +51250,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - events_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind FlowSchema - operationId: listFlowSchema + description: list or watch objects of kind Event + operationId: listNamespacedEvent 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)." @@ -46716,40 +51391,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: "#/components/schemas/events.v1.EventList" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: "#/components/schemas/events.v1.EventList" + application/cbor: + schema: + $ref: "#/components/schemas/events.v1.EventList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.FlowSchemaList' + $ref: "#/components/schemas/events.v1.EventList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/events.v1.EventList" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - events_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: events.k8s.io + kind: Event + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a FlowSchema - operationId: createFlowSchema + description: create an Event + operationId: createNamespacedEvent 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)." @@ -46793,72 +51482,88 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $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/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $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/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/events.v1.Event" description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - events_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}: + /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: delete: - description: delete a FlowSchema - operationId: deleteFlowSchema + description: delete an Event + operationId: deleteNamespacedEvent parameters: - - description: name of the FlowSchema + - description: name of the Event 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)." @@ -46883,6 +51588,21 @@ 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\ @@ -46906,59 +51626,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - events_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified FlowSchema - operationId: readFlowSchema + description: read the specified Event + operationId: readNamespacedEvent parameters: - - description: name of the FlowSchema + - description: name of the Event 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)." @@ -46971,38 +51704,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/events.v1.Event" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - events_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: events.k8s.io + kind: Event + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified FlowSchema - operationId: patchFlowSchema + description: partially update the specified Event + operationId: patchNamespacedEvent parameters: - - description: name of the FlowSchema + - description: name of the Event 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)." @@ -47055,59 +51798,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $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/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/events.v1.Event" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - events_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified FlowSchema - operationId: replaceFlowSchema + description: replace the specified Event + operationId: replaceNamespacedEvent parameters: - - description: name of the FlowSchema + - description: name of the Event 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)." @@ -47151,299 +51907,119 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $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/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/events.v1.Event" + application/cbor: + schema: + $ref: "#/components/schemas/events.v1.Event" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - events_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1beta3/flowschemas/{name}/status: + /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: 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. 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: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $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: FlowSchema - version: v1beta3 + - flowcontrolApiserver x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update status of the specified FlowSchema - operationId: patchFlowSchemaStatus - parameters: - - description: name of the FlowSchema - 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 + /apis/flowcontrol.apiserver.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources 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' + $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' - 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-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace status of the specified FlowSchema - operationId: replaceFlowSchemaStatus - parameters: - - description: name of the FlowSchema - 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/v1beta3.FlowSchema' - 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: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: schema: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/v1.APIResourceList" 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: put - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 - x-codegen-request-body-name: body - x-content-type: application/json + - flowcontrolApiserver_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas: delete: - description: delete collection of PriorityLevelConfiguration - operationId: deleteCollectionPriorityLevelConfiguration + description: delete collection of FlowSchema + operationId: deleteCollectionFlowSchema 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\ @@ -47483,6 +52059,21 @@ 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 @@ -47560,40 +52151,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PriorityLevelConfiguration - operationId: listPriorityLevelConfiguration + description: list or watch objects of kind FlowSchema + operationId: listFlowSchema 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\ @@ -47691,39 +52286,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.FlowSchemaList" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.FlowSchemaList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.FlowSchemaList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchemaList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.FlowSchemaList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfigurationList' + $ref: "#/components/schemas/v1.FlowSchemaList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.FlowSchemaList" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PriorityLevelConfiguration - operationId: createPriorityLevelConfiguration + description: create a FlowSchema + operationId: createFlowSchema 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\ @@ -47768,67 +52371,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}: delete: - description: delete a PriorityLevelConfiguration - operationId: deletePriorityLevelConfiguration + description: delete a FlowSchema + operationId: deleteFlowSchema parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -47858,6 +52471,21 @@ 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\ @@ -47881,54 +52509,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfiguration + description: read the specified FlowSchema + operationId: readFlowSchema parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -47946,33 +52581,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfiguration + description: partially update the specified FlowSchema + operationId: patchFlowSchema parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -48030,54 +52669,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfiguration + description: replace the specified FlowSchema + operationId: replaceFlowSchema parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -48126,55 +52772,62 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1beta3/prioritylevelconfigurations/{name}/status: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status: get: - description: read status of the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfigurationStatus + description: read status of the specified FlowSchema + operationId: readFlowSchemaStatus parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -48192,33 +52845,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfigurationStatus + description: partially update status of the specified FlowSchema + operationId: patchFlowSchemaStatus parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -48276,54 +52933,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfigurationStatus + description: replace status of the specified FlowSchema + operationId: replaceFlowSchemaStatus parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the FlowSchema in: path name: name required: true @@ -48372,109 +53036,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1beta3.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1beta3 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1beta3 + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /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: - schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - internalApiserver - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/internal.apiserver.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: - - internalApiserver_v1alpha1 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations: delete: - description: delete collection of StorageVersion - operationId: deleteCollectionStorageVersion + description: delete collection of PriorityLevelConfiguration + operationId: deleteCollectionPriorityLevelConfiguration 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\ @@ -48514,6 +53129,21 @@ 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 @@ -48591,40 +53221,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind StorageVersion - operationId: listStorageVersion + description: list or watch objects of kind PriorityLevelConfiguration + operationId: listPriorityLevelConfiguration 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\ @@ -48722,39 +53356,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionList' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageVersion - operationId: createStorageVersion + description: create a PriorityLevelConfiguration + operationId: createPriorityLevelConfiguration 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\ @@ -48799,67 +53441,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Accepted "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}: delete: - description: delete a StorageVersion - operationId: deleteStorageVersion + description: delete a PriorityLevelConfiguration + operationId: deletePriorityLevelConfiguration parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -48889,6 +53541,21 @@ 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\ @@ -48912,54 +53579,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageVersion - operationId: readStorageVersion + description: read the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfiguration parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -48977,33 +53651,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageVersion - operationId: patchStorageVersion + description: partially update the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfiguration parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -49061,54 +53739,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageVersion - operationId: replaceStorageVersion + description: replace the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfiguration parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -49157,55 +53842,62 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status: get: - description: read status of the specified StorageVersion - operationId: readStorageVersionStatus + description: read status of the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfigurationStatus parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -49223,33 +53915,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified StorageVersion - operationId: patchStorageVersionStatus + description: partially update status of the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfigurationStatus parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -49307,54 +54003,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified StorageVersion - operationId: replaceStorageVersionStatus + description: replace status of the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfigurationStatus parameters: - - description: name of the StorageVersion + - description: name of the PriorityLevelConfiguration in: path name: name required: true @@ -49403,52 +54106,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersion' + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} - /apis/networking.k8s.io/: + /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 @@ -49457,24 +54169,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - networking + - internalApiserver x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/: + /apis/internal.apiserver.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -49483,27 +54195,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingressclasses: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: delete: - description: delete collection of IngressClass - operationId: deleteCollectionIngressClass + description: delete collection of StorageVersion + operationId: deleteCollectionStorageVersion 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\ @@ -49543,6 +54259,21 @@ 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 @@ -49620,40 +54351,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind IngressClass - operationId: listIngressClass + description: list or watch objects of kind StorageVersion + operationId: listStorageVersion 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\ @@ -49751,39 +54486,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressClassList' + $ref: "#/components/schemas/v1alpha1.StorageVersionList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersionList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IngressClass - operationId: createIngressClass + description: create a StorageVersion + operationId: createStorageVersion 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\ @@ -49828,67 +54571,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingressclasses/{name}: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: delete: - description: delete an IngressClass - operationId: deleteIngressClass + description: delete a StorageVersion + operationId: deleteStorageVersion parameters: - - description: name of the IngressClass + - description: name of the StorageVersion in: path name: name required: true @@ -49918,6 +54671,21 @@ 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\ @@ -49941,54 +54709,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IngressClass - operationId: readIngressClass + description: read the specified StorageVersion + operationId: readStorageVersion parameters: - - description: name of the IngressClass + - description: name of the StorageVersion in: path name: name required: true @@ -50006,33 +54781,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IngressClass - operationId: patchIngressClass + description: partially update the specified StorageVersion + operationId: patchStorageVersion parameters: - - description: name of the IngressClass + - description: name of the StorageVersion in: path name: name required: true @@ -50090,54 +54869,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IngressClass - operationId: replaceIngressClass + description: replace the specified StorageVersion + operationId: replaceStorageVersion parameters: - - description: name of the IngressClass + - description: name of the StorageVersion in: path name: name required: true @@ -50186,92 +54972,227 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressClass' + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingresses: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: get: - description: list or watch objects of kind Ingress - operationId: listIngressForAllNamespaces + description: read status of the specified StorageVersion + operationId: readStorageVersionStatus 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: 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: allowWatchBookmarks + name: pretty 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. + 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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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: continue + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. 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: fieldSelector + name: dryRun schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. + - 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: labelSelector + name: fieldManager 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. + - 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: limit + name: fieldValidation schema: - type: integer + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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)." @@ -50279,98 +55200,155 @@ paths: 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/v1alpha1.StorageVersion" + required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' - application/json;stream=watch: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: schema: - $ref: '#/components/schemas/v1.IngressList' - application/vnd.kubernetes.protobuf;stream=watch: + $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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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.IngressList' + $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 + - application/vnd.kubernetes.protobuf + - application/yaml + /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-kubernetes-action: list - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 x-accepts: + - application/cbor - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: + /apis/networking.k8s.io/v1/ingressclasses: delete: - description: delete collection of Ingress - operationId: deleteCollectionNamespacedIngress + description: delete collection of IngressClass + operationId: deleteCollectionIngressClass 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)." @@ -50409,6 +55387,21 @@ 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 @@ -50486,20 +55479,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -50509,24 +55505,19 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Ingress - operationId: listNamespacedIngress + description: list or watch objects of kind IngressClass + operationId: listIngressClass 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)." @@ -50623,19 +55614,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressClassList" application/yaml: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressClassList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.IngressList' + $ref: "#/components/schemas/v1.IngressClassList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.IngressClassList" description: OK "401": content: {} @@ -50645,24 +55642,20 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IngressClass version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an Ingress - operationId: createNamespacedIngress + description: create an IngressClass + operationId: createIngressClass 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)." @@ -50706,44 +55699,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressClass" description: Accepted "401": content: {} @@ -50753,31 +55755,26 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: + /apis/networking.k8s.io/v1/ingressclasses/{name}: delete: - description: delete an Ingress - operationId: deleteNamespacedIngress + description: delete an IngressClass + operationId: deleteIngressClass parameters: - - description: name of the Ingress + - description: name of the IngressClass 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)." @@ -50802,6 +55799,21 @@ 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\ @@ -50825,32 +55837,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -50860,30 +55878,25 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Ingress - operationId: readNamespacedIngress + description: read the specified IngressClass + operationId: readIngressClass parameters: - - description: name of the Ingress + - description: name of the IngressClass 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)." @@ -50896,13 +55909,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressClass" description: OK "401": content: {} @@ -50912,28 +55928,23 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IngressClass version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Ingress - operationId: patchNamespacedIngress + description: partially update the specified IngressClass + operationId: patchIngressClass parameters: - - description: name of the Ingress + - description: name of the IngressClass 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)." @@ -50986,32 +55997,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressClass" description: Created "401": content: {} @@ -51021,30 +56038,25 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Ingress - operationId: replaceNamespacedIngress + description: replace the specified IngressClass + operationId: replaceIngressClass parameters: - - description: name of the Ingress + - description: name of the IngressClass 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)." @@ -51088,32 +56100,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressClass" description: Created "401": content: {} @@ -51123,81 +56141,58 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: + /apis/networking.k8s.io/v1/ingresses: get: - description: read status of the specified Ingress - operationId: readNamespacedIngressStatus + description: list or watch objects of kind Ingress + operationId: listIngressForAllNamespaces parameters: - - description: name of the Ingress - 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. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - 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 - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Ingress' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Ingress' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Ingress' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified Ingress - operationId: patchNamespacedIngressStatus - parameters: - - description: name of the Ingress - in: path - name: name - 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: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - 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 + 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)." @@ -51205,207 +56200,100 @@ paths: 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)." + - 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: fieldManager + 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 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Ingress' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Ingress' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Ingress' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Ingress' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Ingress' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Ingress' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace status of the specified Ingress - operationId: replaceNamespacedIngressStatus - parameters: - - description: name of the Ingress - 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." + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query - name: fieldManager + name: timeoutSeconds 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: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query - name: fieldValidation + name: watch schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Ingress' - required: true + type: boolean responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressList" application/yaml: schema: - $ref: '#/components/schemas/v1.Ingress' + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Ingress' - description: OK - "201": - content: - application/json: + $ref: "#/components/schemas/v1.IngressList" + application/cbor: schema: - $ref: '#/components/schemas/v1.Ingress' - application/yaml: + $ref: "#/components/schemas/v1.IngressList" + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.Ingress' - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.IngressList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.Ingress' - description: Created + $ref: "#/components/schemas/v1.IngressList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.IngressList" + description: OK "401": content: {} description: Unauthorized tags: - networking_v1 - x-kubernetes-action: put + x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io kind: Ingress version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: + /apis/networking.k8s.io/v1/ipaddresses: delete: - description: delete collection of NetworkPolicy - operationId: deleteCollectionNamespacedNetworkPolicy + description: delete collection of IPAddress + operationId: deleteCollectionIPAddress 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)." @@ -51444,6 +56332,21 @@ 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 @@ -51521,20 +56424,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} @@ -51544,24 +56450,19 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind NetworkPolicy - operationId: listNamespacedNetworkPolicy + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51658,19 +56559,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.IPAddressList" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.IPAddressList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.IPAddressList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddressList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.IPAddressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' + $ref: "#/components/schemas/v1.IPAddressList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.IPAddressList" description: OK "401": content: {} @@ -51680,24 +56587,20 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IPAddress version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a NetworkPolicy - operationId: createNamespacedNetworkPolicy + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51741,44 +56644,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddress" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddress" description: Accepted "401": content: {} @@ -51788,31 +56700,26 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: + /apis/networking.k8s.io/v1/ipaddresses/{name}: delete: - description: delete a NetworkPolicy - operationId: deleteNamespacedNetworkPolicy + description: delete an IPAddress + operationId: deleteIPAddress parameters: - - description: name of the NetworkPolicy + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51837,6 +56744,21 @@ 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\ @@ -51860,32 +56782,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} @@ -51895,30 +56823,25 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified NetworkPolicy - operationId: readNamespacedNetworkPolicy + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the NetworkPolicy + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51931,13 +56854,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddress" description: OK "401": content: {} @@ -51947,28 +56873,23 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IPAddress version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified NetworkPolicy - operationId: patchNamespacedNetworkPolicy + description: partially update the specified IPAddress + operationId: patchIPAddress parameters: - - description: name of the NetworkPolicy + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -52021,32 +56942,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddress" description: Created "401": content: {} @@ -52056,30 +56983,25 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified NetworkPolicy - operationId: replaceNamespacedNetworkPolicy + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the NetworkPolicy + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -52123,32 +57045,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.NetworkPolicy' + $ref: "#/components/schemas/v1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddress" description: Created "401": content: {} @@ -52158,184 +57086,26 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/networkpolicies: - get: - description: list or watch objects of kind NetworkPolicy - operationId: listNetworkPolicyForAllNamespaces + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: + delete: + description: delete collection of Ingress + operationId: deleteCollectionNamespacedIngress 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 + - 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.NetworkPolicyList' - application/yaml: - schema: - $ref: '#/components/schemas/v1.NetworkPolicyList' - 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: - 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 - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /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/: - 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: - - networking_v1alpha1 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/networking.k8s.io/v1alpha1/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)." @@ -52374,6 +57144,21 @@ 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 @@ -52451,41 +57236,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind IPAddress - operationId: listIPAddress + 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 + 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)." @@ -52582,40 +57377,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: "#/components/schemas/v1.IngressList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: "#/components/schemas/v1.IngressList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IngressList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.IPAddressList' + $ref: "#/components/schemas/v1.IngressList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.IngressList" 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: Ingress + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IPAddress - operationId: createIPAddress + description: create an Ingress + operationId: createNamespacedIngress 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)." @@ -52659,72 +57468,88 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" 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: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1alpha1/ipaddresses/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: delete: - description: delete an IPAddress - operationId: deleteIPAddress + description: delete an Ingress + operationId: deleteNamespacedIngress parameters: - - description: name of the IPAddress + - description: name of the Ingress 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)." @@ -52749,6 +57574,21 @@ 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\ @@ -52772,59 +57612,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IPAddress - operationId: readIPAddress + description: read the specified Ingress + operationId: readNamespacedIngress parameters: - - description: name of the IPAddress + - description: name of the Ingress 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)." @@ -52837,38 +57690,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" 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: Ingress + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IPAddress - operationId: patchIPAddress + description: partially update the specified Ingress + operationId: patchNamespacedIngress parameters: - - description: name of the IPAddress + - description: name of the Ingress 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)." @@ -52921,59 +57784,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" 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: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IPAddress - operationId: replaceIPAddress + description: replace the specified Ingress + operationId: replaceNamespacedIngress parameters: - - description: name of the IPAddress + - description: name of the Ingress 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)." @@ -53017,204 +57893,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.IPAddress' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" 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: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1alpha1/servicecidrs: - delete: - description: delete collection of ServiceCIDR - operationId: deleteCollectionServiceCIDR + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: + get: + description: read status of the specified Ingress + operationId: readNamespacedIngressStatus 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: 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 + - description: name of the Ingress + in: path + name: name + required: true 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 - 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 - "401": - content: {} - description: Unauthorized - tags: - - networking_v1alpha1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1alpha1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: list or watch objects of kind ServiceCIDR - operationId: listServiceCIDR - 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)." @@ -53222,129 +57967,53 @@ paths: 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.ServiceCIDRList' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDRList' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDRList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDRList' - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1.Ingress" + application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDRList' + $ref: "#/components/schemas/v1.Ingress" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 - x-kubernetes-action: list + - networking_v1 + x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1alpha1 + kind: Ingress + version: v1 x-accepts: + - application/cbor - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - post: - description: create a ServiceCIDR - operationId: createServiceCIDR + patch: + description: partially update status of the specified Ingress + operationId: patchNamespacedIngressStatus parameters: + - description: name of the Ingress + 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)." @@ -53362,262 +58031,9 @@ paths: 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.ServiceCIDR' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - networking_v1alpha1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1alpha1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/networking.k8s.io/v1alpha1/servicecidrs/{name}: - delete: - description: delete a ServiceCIDR - operationId: deleteServiceCIDR - 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: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, 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' - application/yaml: - schema: - $ref: '#/components/schemas/v1.Status' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1.Status' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - networking_v1alpha1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1alpha1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified ServiceCIDR - operationId: readServiceCIDR - 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 - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1alpha1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1alpha1 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified ServiceCIDR - operationId: patchServiceCIDR - 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)." + \ long, and only contain printable characters, as defined by https://golang.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: @@ -53650,197 +58066,69 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" 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: ServiceCIDR - version: v1alpha1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ServiceCIDR - operationId: replaceServiceCIDR - 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/v1alpha1.ServiceCIDR' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1alpha1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1alpha1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/networking.k8s.io/v1alpha1/servicecidrs/{name}/status: - get: - description: read status of the specified ServiceCIDR - operationId: readServiceCIDRStatus + description: replace status of the specified Ingress + operationId: replaceNamespacedIngressStatus parameters: - - description: name of the ServiceCIDR + - description: name of the Ingress 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.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1alpha1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1alpha1 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified ServiceCIDR - operationId: patchServiceCIDRStatus - parameters: - - description: name of the ServiceCIDR + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -53861,9 +58149,7 @@ paths: 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)." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -53885,217 +58171,71 @@ 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.Ingress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' + $ref: "#/components/schemas/v1.Ingress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Ingress" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1alpha1 - x-kubernetes-action: patch + - networking_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: ServiceCIDR - version: v1alpha1 + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified ServiceCIDR - operationId: replaceServiceCIDRStatus + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: + delete: + description: delete collection of NetworkPolicy + operationId: deleteCollectionNamespacedNetworkPolicy parameters: - - description: name of the ServiceCIDR + - 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 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.ServiceCIDR' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha1.ServiceCIDR' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1alpha1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1alpha1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/networking.k8s.io/v1alpha1/watch/ipaddresses: {} - /apis/networking.k8s.io/v1alpha1/watch/ipaddresses/{name}: {} - /apis/networking.k8s.io/v1alpha1/watch/servicecidrs: {} - /apis/networking.k8s.io/v1alpha1/watch/servicecidrs/{name}: {} - /apis/node.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: - - node - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/node.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: - - node_v1 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/node.k8s.io/v1/runtimeclasses: - delete: - description: delete collection of RuntimeClass - operationId: deleteCollectionRuntimeClass - 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)." @@ -54134,6 +58274,21 @@ 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 @@ -54211,41 +58366,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind RuntimeClass - operationId: listRuntimeClass + description: list or watch objects of kind NetworkPolicy + operationId: listNamespacedNetworkPolicy 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)." @@ -54342,40 +58507,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.NetworkPolicyList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NetworkPolicyList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RuntimeClassList' + $ref: "#/components/schemas/v1.NetworkPolicyList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.NetworkPolicyList" 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: NetworkPolicy version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a RuntimeClass - operationId: createRuntimeClass + description: create a NetworkPolicy + operationId: createNamespacedNetworkPolicy 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)." @@ -54419,72 +58598,88 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NetworkPolicy" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NetworkPolicy" 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: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/node.k8s.io/v1/runtimeclasses/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: delete: - description: delete a RuntimeClass - operationId: deleteRuntimeClass + description: delete a NetworkPolicy + operationId: deleteNamespacedNetworkPolicy parameters: - - description: name of the RuntimeClass + - description: name of the NetworkPolicy 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)." @@ -54509,6 +58704,21 @@ 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\ @@ -54532,59 +58742,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified RuntimeClass - operationId: readRuntimeClass + description: read the specified NetworkPolicy + operationId: readNamespacedNetworkPolicy parameters: - - description: name of the RuntimeClass + - description: name of the NetworkPolicy 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)." @@ -54597,38 +58820,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NetworkPolicy" 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: NetworkPolicy version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified RuntimeClass - operationId: patchRuntimeClass + description: partially update the specified NetworkPolicy + operationId: patchNamespacedNetworkPolicy parameters: - - description: name of the RuntimeClass + - description: name of the NetworkPolicy 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)." @@ -54681,59 +58914,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NetworkPolicy" 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: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified RuntimeClass - operationId: replaceRuntimeClass + description: replace the specified NetworkPolicy + operationId: replaceNamespacedNetworkPolicy parameters: - - description: name of the RuntimeClass + - description: name of the NetworkPolicy 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)." @@ -54777,114 +59023,200 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1.NetworkPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.NetworkPolicy" 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: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/node.k8s.io/v1/watch/runtimeclasses: {} - /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} - /apis/policy/: + /apis/networking.k8s.io/v1/networkpolicies: get: - description: get information of a group - operationId: getAPIGroup + 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.APIGroup' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/policy/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: + $ref: "#/components/schemas/v1.NetworkPolicyList" + application/cbor: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: + $ref: "#/components/schemas/v1.NetworkPolicyList" + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $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.APIResourceList' + $ref: "#/components/schemas/v1.NetworkPolicyList" description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - networking_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: NetworkPolicy + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: + /apis/networking.k8s.io/v1/servicecidrs: delete: - description: delete collection of PodDisruptionBudget - operationId: deleteCollectionNamespacedPodDisruptionBudget + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54923,6 +59255,21 @@ 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 @@ -55000,47 +59347,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listNamespacedPodDisruptionBudget + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55137,46 +59482,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.ServiceCIDRList" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.ServiceCIDRList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.ServiceCIDRList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDRList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.ServiceCIDRList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudgetList' + $ref: "#/components/schemas/v1.ServiceCIDRList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ServiceCIDRList" 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: ServiceCIDR version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PodDisruptionBudget - operationId: createNamespacedPodDisruptionBudget + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55220,78 +59567,82 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: + /apis/networking.k8s.io/v1/servicecidrs/{name}: delete: - description: delete a PodDisruptionBudget - operationId: deleteNamespacedPodDisruptionBudget + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the PodDisruptionBudget + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55316,6 +59667,21 @@ 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\ @@ -55339,65 +59705,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudget + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the PodDisruptionBudget + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55410,44 +59777,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudget + description: partially update the specified ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the PodDisruptionBudget + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55500,65 +59865,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudget + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the PodDisruptionBudget + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55602,66 +59968,67 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: + /apis/networking.k8s.io/v1/servicecidrs/{name}/status: get: - description: read status of the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudgetStatus + description: read status of the specified ServiceCIDR + operationId: readServiceCIDRStatus parameters: - - description: name of the PodDisruptionBudget + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55674,44 +60041,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudgetStatus + description: partially update status of the specified ServiceCIDR + operationId: patchServiceCIDRStatus parameters: - - description: name of the PodDisruptionBudget + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55764,65 +60129,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudgetStatus + description: replace status of the specified ServiceCIDR + operationId: replaceServiceCIDRStatus parameters: - - description: name of the PodDisruptionBudget + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55866,210 +60232,69 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PodDisruptionBudget' + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" 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: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/policy/v1/poddisruptionbudgets: - get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listPodDisruptionBudgetForAllNamespaces - 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.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 - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /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 - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/rbac.authorization.k8s.io/v1/: + /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 @@ -56078,27 +60303,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - networking_v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: + /apis/networking.k8s.io/v1beta1/ipaddresses: delete: - description: delete collection of ClusterRoleBinding - operationId: deleteCollectionClusterRoleBinding + 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\ @@ -56138,6 +60367,21 @@ 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 @@ -56215,40 +60459,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ClusterRoleBinding - operationId: listClusterRoleBinding + description: list or watch objects of kind IPAddress + operationId: listIPAddress 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\ @@ -56346,39 +60594,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1beta1.IPAddressList" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1beta1.IPAddressList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1beta1.IPAddressList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.IPAddressList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $ref: "#/components/schemas/v1beta1.IPAddressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleBindingList' + $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: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ClusterRoleBinding - operationId: createClusterRoleBinding + description: create an IPAddress + operationId: createIPAddress 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\ @@ -56423,67 +60679,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.IPAddress" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $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: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: + /apis/networking.k8s.io/v1beta1/ipaddresses/{name}: delete: - description: delete a ClusterRoleBinding - operationId: deleteClusterRoleBinding + description: delete an IPAddress + operationId: deleteIPAddress parameters: - - description: name of the ClusterRoleBinding + - description: name of the IPAddress in: path name: name required: true @@ -56513,6 +60779,21 @@ 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\ @@ -56536,54 +60817,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ClusterRoleBinding - operationId: readClusterRoleBinding + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the ClusterRoleBinding + - description: name of the IPAddress in: path name: name required: true @@ -56601,33 +60889,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $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: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ClusterRoleBinding - operationId: patchClusterRoleBinding + description: partially update the specified IPAddress + operationId: patchIPAddress parameters: - - description: name of the ClusterRoleBinding + - description: name of the IPAddress in: path name: name required: true @@ -56685,54 +60977,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $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: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ClusterRoleBinding - operationId: replaceClusterRoleBinding + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the ClusterRoleBinding + - description: name of the IPAddress in: path name: name required: true @@ -56781,53 +61080,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleBinding' + $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: ClusterRoleBinding - version: v1 + group: networking.k8s.io + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterroles: + /apis/networking.k8s.io/v1beta1/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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -56867,6 +61173,21 @@ 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 @@ -56944,40 +61265,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -57075,39 +61400,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.ClusterRoleList' + $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: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ClusterRole - operationId: createClusterRole + description: create a ServiceCIDR + operationId: createServiceCIDR 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\ @@ -57152,67 +61485,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $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: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: + /apis/networking.k8s.io/v1beta1/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 @@ -57242,6 +61585,21 @@ 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\ @@ -57265,54 +61623,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -57330,33 +61695,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $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: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -57414,54 +61783,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $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: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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 @@ -57510,60 +61886,385 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.ClusterRole' + $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: ClusterRole - version: v1 + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: - delete: - description: delete collection of RoleBinding - operationId: deleteCollectionNamespacedRoleBinding + /apis/networking.k8s.io/v1beta1/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. 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.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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/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 + "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: + - networking_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1beta1.ServiceCIDR" + required: true + 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 + "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: + - networking_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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 + 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: + - node + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/node.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: + - node_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/node.k8s.io/v1/runtimeclasses: + delete: + description: delete collection of RuntimeClass + operationId: deleteCollectionRuntimeClass + 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)." @@ -57602,6 +62303,21 @@ 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 @@ -57679,47 +62395,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind RoleBinding - operationId: listNamespacedRoleBinding + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57816,46 +62530,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RuntimeClassList" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RuntimeClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RuntimeClassList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RuntimeClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.RuntimeClassList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.RuntimeClassList" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a RoleBinding - operationId: createNamespacedRoleBinding + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57899,78 +62615,82 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: + /apis/node.k8s.io/v1/runtimeclasses/{name}: delete: - description: delete a RoleBinding - operationId: deleteNamespacedRoleBinding + description: delete a RuntimeClass + operationId: deleteRuntimeClass parameters: - - description: name of the RoleBinding + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57995,6 +62715,21 @@ 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\ @@ -58018,65 +62753,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified RoleBinding - operationId: readNamespacedRoleBinding + description: read the specified RuntimeClass + operationId: readRuntimeClass parameters: - - description: name of the RoleBinding + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58089,44 +62825,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified RoleBinding - operationId: patchNamespacedRoleBinding + description: partially update the specified RuntimeClass + operationId: patchRuntimeClass parameters: - - description: name of the RoleBinding + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58179,65 +62913,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified RoleBinding - operationId: replaceNamespacedRoleBinding + description: replace the specified RuntimeClass + operationId: replaceRuntimeClass parameters: - - description: name of the RoleBinding + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58281,53 +63016,118 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleBinding' + $ref: "#/components/schemas/v1.RuntimeClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RuntimeClass" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - node_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: + /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 + - application/vnd.kubernetes.protobuf + - application/yaml + /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" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: delete: - description: delete collection of Role - operationId: deleteCollectionNamespacedRole + description: delete collection of PodDisruptionBudget + operationId: deleteCollectionNamespacedPodDisruptionBudget parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -58373,6 +63173,21 @@ 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 @@ -58450,40 +63265,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Role - operationId: listNamespacedRole + 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 @@ -58587,39 +63406,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Role - operationId: createNamespacedRole + description: create a PodDisruptionBudget + operationId: createNamespacedPodDisruptionBudget parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -58670,67 +63497,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: delete: - description: delete a Role - operationId: deleteNamespacedRole + description: delete a PodDisruptionBudget + operationId: deleteNamespacedPodDisruptionBudget parameters: - - description: name of the Role + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -58766,6 +63603,21 @@ 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\ @@ -58789,54 +63641,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Role - operationId: readNamespacedRole + description: read the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudget parameters: - - description: name of the Role + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -58860,33 +63719,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Role - operationId: patchNamespacedRole + description: partially update the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudget parameters: - - description: name of the Role + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -58950,54 +63813,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Role - operationId: replaceNamespacedRole + description: replace the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudget parameters: - - description: name of the Role + - description: name of the PodDisruptionBudget in: path name: name required: true @@ -59052,53 +63922,342 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/rolebindings: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: get: - description: list or watch objects of kind RoleBinding - operationId: listRoleBindingForAllNamespaces + description: read status of the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + 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.PodDisruptionBudget" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + 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.PodDisruptionBudget" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + 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.PodDisruptionBudget" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/policy/v1/poddisruptionbudgets: + get: + description: list or watch objects of kind PodDisruptionBudget + operationId: listPodDisruptionBudgetForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -59196,178 +64355,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/yaml: schema: - $ref: '#/components/schemas/v1.RoleBindingList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" 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/v1.PodDisruptionBudgetList" + application/cbor: 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 - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /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' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.RoleList' + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - policy_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: policy + kind: PodDisruptionBudget version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /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/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 @@ -59376,24 +64405,24 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - resource + - rbacAuthorization x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/: + /apis/rbac.authorization.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -59402,34 +64431,32 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - rbacAuthorization_v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts: + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: delete: - description: delete collection of PodSchedulingContext - operationId: deleteCollectionNamespacedPodSchedulingContext + description: delete collection of ClusterRoleBinding + operationId: deleteCollectionClusterRoleBinding 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)." @@ -59468,6 +64495,21 @@ 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 @@ -59545,47 +64587,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: PodSchedulingContext - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PodSchedulingContext - operationId: listNamespacedPodSchedulingContext + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59682,46 +64722,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $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: PodSchedulingContext - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PodSchedulingContext - operationId: createNamespacedPodSchedulingContext + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59765,78 +64807,82 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $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: PodSchedulingContext - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: delete: - description: delete a PodSchedulingContext - operationId: deleteNamespacedPodSchedulingContext + description: delete a ClusterRoleBinding + operationId: deleteClusterRoleBinding parameters: - - description: name of the PodSchedulingContext + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59861,6 +64907,21 @@ 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\ @@ -59884,65 +64945,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": 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 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PodSchedulingContext - operationId: readNamespacedPodSchedulingContext + description: read the specified ClusterRoleBinding + operationId: readClusterRoleBinding parameters: - - description: name of the PodSchedulingContext + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59955,44 +65017,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $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: PodSchedulingContext - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PodSchedulingContext - operationId: patchNamespacedPodSchedulingContext + description: partially update the specified ClusterRoleBinding + operationId: patchClusterRoleBinding parameters: - - description: name of the PodSchedulingContext + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -60045,65 +65105,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $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: PodSchedulingContext - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PodSchedulingContext - operationId: replaceNamespacedPodSchedulingContext + description: replace the specified ClusterRoleBinding + operationId: replaceClusterRoleBinding parameters: - - description: name of the PodSchedulingContext + - 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -60147,324 +65208,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - 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-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/podschedulingcontexts/{name}/status: - 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. 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/v1alpha2.PodSchedulingContext' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - 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 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - 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. 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: + $ref: "#/components/schemas/v1.ClusterRoleBinding" + application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" 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: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: PodSchedulingContext - version: v1alpha2 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - 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. 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/v1alpha2.PodSchedulingContext' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' - description: OK - "201": - 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.ClusterRoleBinding" + application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContext' + $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: PodSchedulingContext - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimparameters: + /apis/rbac.authorization.k8s.io/v1/clusterroles: delete: - description: delete collection of ResourceClaimParameters - operationId: deleteCollectionNamespacedResourceClaimParameters + description: delete collection of ClusterRole + operationId: deleteCollectionClusterRole 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)." @@ -60503,6 +65301,21 @@ 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 @@ -60580,47 +65393,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: ResourceClaimParameters - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaimParameters - operationId: listNamespacedResourceClaimParameters + description: list or watch objects of kind ClusterRole + operationId: listClusterRole 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)." @@ -60717,46 +65528,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $ref: "#/components/schemas/v1.ClusterRoleList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $ref: "#/components/schemas/v1.ClusterRoleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $ref: "#/components/schemas/v1.ClusterRoleList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRoleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $ref: "#/components/schemas/v1.ClusterRoleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $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: ResourceClaimParameters - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create ResourceClaimParameters - operationId: createNamespacedResourceClaimParameters + description: create a ClusterRole + operationId: createClusterRole 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)." @@ -60800,78 +65613,82 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRole" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRole" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $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: ResourceClaimParameters - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimparameters/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: delete: - description: delete ResourceClaimParameters - operationId: deleteNamespacedResourceClaimParameters + description: delete a ClusterRole + operationId: deleteClusterRole parameters: - - description: name of the ResourceClaimParameters + - description: name of the ClusterRole 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)." @@ -60896,6 +65713,21 @@ 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\ @@ -60919,65 +65751,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $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: ResourceClaimParameters - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaimParameters - operationId: readNamespacedResourceClaimParameters + description: read the specified ClusterRole + operationId: readClusterRole parameters: - - description: name of the ResourceClaimParameters + - description: name of the ClusterRole 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)." @@ -60990,44 +65823,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $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: ResourceClaimParameters - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaimParameters - operationId: patchNamespacedResourceClaimParameters + description: partially update the specified ClusterRole + operationId: patchClusterRole parameters: - - description: name of the ResourceClaimParameters + - description: name of the ClusterRole 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)." @@ -61080,65 +65911,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRole" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $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: ResourceClaimParameters - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaimParameters - operationId: replaceNamespacedResourceClaimParameters + description: replace the specified ClusterRole + operationId: replaceClusterRole parameters: - - description: name of the ResourceClaimParameters + - description: name of the ClusterRole 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)." @@ -61182,53 +66014,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRole" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParameters' + $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: ResourceClaimParameters - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: ClusterRole + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: delete: - description: delete collection of ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + description: delete collection of RoleBinding + operationId: deleteCollectionNamespacedRoleBinding parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -61274,6 +66113,21 @@ 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 @@ -61351,40 +66205,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: ResourceClaim - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaim - operationId: listNamespacedResourceClaim + description: list or watch objects of kind RoleBinding + operationId: listNamespacedRoleBinding parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -61488,39 +66346,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: "#/components/schemas/v1.RoleBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: "#/components/schemas/v1.RoleBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: "#/components/schemas/v1.RoleBindingList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: "#/components/schemas/v1.RoleBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: "#/components/schemas/v1.RoleBindingList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" 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: ResourceClaim - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaim - operationId: createNamespacedResourceClaim + description: create a RoleBinding + operationId: createNamespacedRoleBinding parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -61571,67 +66437,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBinding" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBinding" 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: ResourceClaim - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaims/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: delete: - description: delete a ResourceClaim - operationId: deleteNamespacedResourceClaim + description: delete a RoleBinding + operationId: deleteNamespacedRoleBinding parameters: - - description: name of the ResourceClaim + - description: name of the RoleBinding in: path name: name required: true @@ -61667,6 +66543,21 @@ 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\ @@ -61690,54 +66581,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": 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 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim + description: read the specified RoleBinding + operationId: readNamespacedRoleBinding parameters: - - description: name of the ResourceClaim + - description: name of the RoleBinding in: path name: name required: true @@ -61761,33 +66659,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBinding" 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: ResourceClaim - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim + description: partially update the specified RoleBinding + operationId: patchNamespacedRoleBinding parameters: - - description: name of the ResourceClaim + - description: name of the RoleBinding in: path name: name required: true @@ -61851,318 +66753,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - 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/v1alpha2.ResourceClaim' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - application/yaml: + $ref: "#/components/schemas/v1.RoleBinding" + application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1alpha2/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/v1alpha2.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.RoleBinding" + application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1alpha2 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - 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/v1alpha2.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" 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: ResourceClaim - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus + description: replace the specified RoleBinding + operationId: replaceNamespacedRoleBinding parameters: - - description: name of the ResourceClaim + - description: name of the RoleBinding in: path name: name required: true @@ -62217,53 +66862,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBinding" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaim' + $ref: "#/components/schemas/v1.RoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBinding" 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: ResourceClaim - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: delete: - description: delete collection of ResourceClaimTemplate - operationId: deleteCollectionNamespacedResourceClaimTemplate + description: delete collection of Role + operationId: deleteCollectionNamespacedRole parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -62309,6 +66961,21 @@ 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 @@ -62386,40 +67053,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listNamespacedResourceClaimTemplate + description: list or watch objects of kind Role + operationId: listNamespacedRole parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -62523,39 +67194,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.RoleList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.RoleList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.RoleList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.RoleList" 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: Role + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaimTemplate - operationId: createNamespacedResourceClaimTemplate + description: create a Role + operationId: createNamespacedRole parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -62606,67 +67285,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Role" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Role" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Role" 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: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: delete: - description: delete a ResourceClaimTemplate - operationId: deleteNamespacedResourceClaimTemplate + description: delete a Role + operationId: deleteNamespacedRole parameters: - - description: name of the ResourceClaimTemplate + - description: name of the Role in: path name: name required: true @@ -62702,6 +67391,21 @@ 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\ @@ -62725,54 +67429,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": 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: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaimTemplate - operationId: readNamespacedResourceClaimTemplate + description: read the specified Role + operationId: readNamespacedRole parameters: - - description: name of the ResourceClaimTemplate + - description: name of the Role in: path name: name required: true @@ -62796,33 +67507,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Role" 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: Role + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaimTemplate - operationId: patchNamespacedResourceClaimTemplate + description: partially update the specified Role + operationId: patchNamespacedRole parameters: - - description: name of the ResourceClaimTemplate + - description: name of the Role in: path name: name required: true @@ -62886,54 +67601,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Role" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Role" 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: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaimTemplate - operationId: replaceNamespacedResourceClaimTemplate + description: replace the specified Role + operationId: replaceNamespacedRole parameters: - - description: name of the ResourceClaimTemplate + - description: name of the Role in: path name: name required: true @@ -62988,824 +67710,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Role" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplate' + $ref: "#/components/schemas/v1.Role" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Role" 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 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclassparameters: - delete: - description: delete collection of ResourceClassParameters - operationId: deleteCollectionNamespacedResourceClassParameters - 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: 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' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClassParameters - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml + /apis/rbac.authorization.k8s.io/v1/rolebindings: get: - description: list or watch objects of kind ResourceClassParameters - operationId: listNamespacedResourceClassParameters - 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/v1alpha2.ResourceClassParametersList' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParametersList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParametersList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParametersList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParametersList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClassParameters - version: v1alpha2 - x-accepts: - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - post: - description: create ResourceClassParameters - operationId: createNamespacedResourceClassParameters - 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/v1alpha2.ResourceClassParameters' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: Created - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClassParameters - version: v1alpha2 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclassparameters/{name}: - delete: - description: delete ResourceClassParameters - operationId: deleteNamespacedResourceClassParameters - parameters: - - description: name of the ResourceClassParameters - 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: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"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/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: OK - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClassParameters - version: v1alpha2 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified ResourceClassParameters - operationId: readNamespacedResourceClassParameters - parameters: - - description: name of the ResourceClassParameters - 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/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClassParameters - version: v1alpha2 - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified ResourceClassParameters - operationId: patchNamespacedResourceClassParameters - parameters: - - description: name of the ResourceClassParameters - 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/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClassParameters - version: v1alpha2 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified ResourceClassParameters - operationId: replaceNamespacedResourceClassParameters - parameters: - - description: name of the ResourceClassParameters - 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/v1alpha2.ResourceClassParameters' - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: OK - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParameters' - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClassParameters - version: v1alpha2 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1alpha2/podschedulingcontexts: - get: - description: list or watch objects of kind PodSchedulingContext - operationId: listPodSchedulingContextForAllNamespaces + 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\ @@ -63903,40 +67861,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: "#/components/schemas/v1.RoleBindingList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: "#/components/schemas/v1.RoleBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: "#/components/schemas/v1.RoleBindingList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: "#/components/schemas/v1.RoleBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.PodSchedulingContextList' + $ref: "#/components/schemas/v1.RoleBindingList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" 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: PodSchedulingContext - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1alpha2/resourceclaimparameters: + /apis/rbac.authorization.k8s.io/v1/roles: get: - description: list or watch objects of kind ResourceClaimParameters - operationId: listResourceClaimParametersForAllNamespaces + 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\ @@ -64034,302 +68000,114 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $ref: "#/components/schemas/v1.RoleList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $ref: "#/components/schemas/v1.RoleList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimParametersList' + $ref: "#/components/schemas/v1.RoleList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.RoleList" 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: ResourceClaimParameters - version: v1alpha2 + group: rbac.authorization.k8s.io + kind: Role + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1alpha2/resourceclaims: + /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: 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. 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 + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimList' + $ref: "#/components/schemas/v1.APIGroup" 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' + $ref: "#/components/schemas/v1.APIGroup" 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 + - resource x-accepts: - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1alpha2/resourceclaimtemplates: + /apis/resource.k8s.io/v1/: 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. 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 + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.APIResourceList" 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: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClaimTemplateList' + $ref: "#/components/schemas/v1.APIResourceList" 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 + - resource_v1 x-accepts: + - application/cbor - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1alpha2/resourceclasses: + /apis/resource.k8s.io/v1/deviceclasses: delete: - description: delete collection of ResourceClass - operationId: deleteCollectionResourceClass + 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\ @@ -64369,6 +68147,21 @@ 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 @@ -64446,40 +68239,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + kind: DeviceClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClass - operationId: listResourceClass + 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\ @@ -64577,39 +68374,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassList' + $ref: "#/components/schemas/v1.DeviceClassList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.DeviceClassList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + kind: DeviceClass + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClass - operationId: createResourceClass + 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\ @@ -64654,67 +68459,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + kind: DeviceClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/resourceclasses/{name}: + /apis/resource.k8s.io/v1/deviceclasses/{name}: delete: - description: delete a ResourceClass - operationId: deleteResourceClass + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the ResourceClass + - description: name of the DeviceClass in: path name: name required: true @@ -64744,6 +68559,21 @@ 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\ @@ -64767,54 +68597,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + kind: DeviceClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClass - operationId: readResourceClass + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the ResourceClass + - description: name of the DeviceClass in: path name: name required: true @@ -64832,33 +68669,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + kind: DeviceClass + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClass - operationId: patchResourceClass + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the ResourceClass + - description: name of the DeviceClass in: path name: name required: true @@ -64916,54 +68757,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + kind: DeviceClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClass - operationId: replaceResourceClass + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the ResourceClass + - description: name of the DeviceClass in: path name: name required: true @@ -65012,185 +68860,67 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceClass' + $ref: "#/components/schemas/v1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClass - version: v1alpha2 + kind: DeviceClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/resourceclassparameters: - get: - description: list or watch objects of kind ResourceClassParameters - operationId: listResourceClassParametersForAllNamespaces + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims: + delete: + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim 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 + - 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/v1alpha2.ResourceClassParametersList' - application/yaml: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParametersList' - application/vnd.kubernetes.protobuf: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParametersList' - application/json;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParametersList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1alpha2.ResourceClassParametersList' - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha2 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClassParameters - version: v1alpha2 - x-accepts: - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /apis/resource.k8s.io/v1alpha2/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)." @@ -65229,6 +68959,21 @@ 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 @@ -65306,41 +69051,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1alpha2 + kind: ResourceClaim + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceSlice - operationId: listResourceSlice + 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 - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -65437,40 +69192,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceClaimList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSliceList' + $ref: "#/components/schemas/v1.ResourceClaimList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ResourceClaimList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1alpha2 + kind: ResourceClaim + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceSlice - operationId: createResourceSlice + 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 - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -65514,72 +69283,88 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1alpha2 + kind: ResourceClaim + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha2/resourceslices/{name}: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}: delete: - description: delete a ResourceSlice - operationId: deleteResourceSlice + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim parameters: - - description: name of the ResourceSlice + - 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)." @@ -65604,6 +69389,21 @@ 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\ @@ -65627,59 +69427,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1alpha2 + kind: ResourceClaim + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceSlice - operationId: readResourceSlice + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim parameters: - - description: name of the ResourceSlice + - 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)." @@ -65692,42 +69505,52 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1alpha2 + kind: ResourceClaim + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceSlice - operationId: patchResourceSlice + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim parameters: - - description: name of the ResourceSlice + - description: name of the ResourceClaim 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 + - 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 @@ -65776,59 +69599,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1alpha2 + kind: ResourceClaim + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceSlice - operationId: replaceResourceSlice + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim parameters: - - description: name of the ResourceSlice + - 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)." @@ -65872,125 +69708,349 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha2.ResourceSlice' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha2 + - resource_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1alpha2 + kind: ResourceClaim + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /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}/resourceclaimparameters: {} - /apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclaimparameters/{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/namespaces/{namespace}/resourceclassparameters: {} - /apis/resource.k8s.io/v1alpha2/watch/namespaces/{namespace}/resourceclassparameters/{name}: {} - /apis/resource.k8s.io/v1alpha2/watch/podschedulingcontexts: {} - /apis/resource.k8s.io/v1alpha2/watch/resourceclaimparameters: {} - /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/resource.k8s.io/v1alpha2/watch/resourceclassparameters: {} - /apis/resource.k8s.io/v1alpha2/watch/resourceslices: {} - /apis/resource.k8s.io/v1alpha2/watch/resourceslices/{name}: {} - /apis/scheduling.k8s.io/: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: get information of a group - operationId: getAPIGroup + 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/v1.APIGroup' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "401": content: {} description: Unauthorized tags: - - scheduling + - resource_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources + 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/v1.APIResourceList' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/priorityclasses: + 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/resource.v1.ResourceClaim" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates: delete: - description: delete collection of PriorityClass - operationId: deleteCollectionPriorityClass + 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)." @@ -66029,6 +70089,21 @@ 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 @@ -66106,41 +70181,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PriorityClass - operationId: listPriorityClass + 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 - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -66237,40 +70322,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.PriorityClassList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PriorityClass - operationId: createPriorityClass + 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 - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -66314,72 +70413,88 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/priorityclasses/{name}: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}: delete: - description: delete a PriorityClass - operationId: deletePriorityClass + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate parameters: - - description: name of the PriorityClass + - 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)." @@ -66404,6 +70519,21 @@ 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\ @@ -66427,59 +70557,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified PriorityClass - operationId: readPriorityClass + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate parameters: - - description: name of the PriorityClass + - 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)." @@ -66492,38 +70635,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PriorityClass - operationId: patchPriorityClass + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate parameters: - - description: name of the PriorityClass + - 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)." @@ -66576,59 +70729,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PriorityClass - operationId: replacePriorityClass + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate parameters: - - description: name of the PriorityClass + - 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)." @@ -66672,107 +70838,338 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.PriorityClass' + $ref: "#/components/schemas/v1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - resource_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} - /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} - /apis/storage.k8s.io/: + /apis/resource.k8s.io/v1/resourceclaims: get: - description: get information of a group - operationId: getAPIGroup + 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. 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.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIGroup' + $ref: "#/components/schemas/v1.ResourceClaimList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.ResourceClaimList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.ResourceClaimList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ResourceClaimList" description: OK "401": content: {} description: Unauthorized tags: - - storage + - resource_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/storage.k8s.io/v1/: + /apis/resource.k8s.io/v1/resourceclaimtemplates: get: - description: get available resources - operationId: getAPIResources + 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. 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.APIResourceList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/storage.k8s.io/v1/csidrivers: + /apis/resource.k8s.io/v1/resourceslices: delete: - description: delete collection of CSIDriver - operationId: deleteCollectionCSIDriver + 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\ @@ -66812,6 +71209,21 @@ 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 @@ -66889,40 +71301,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: resource.k8s.io + kind: ResourceSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CSIDriver - operationId: listCSIDriver + 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\ @@ -67020,39 +71436,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.ResourceSliceList" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.ResourceSliceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSliceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.ResourceSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIDriverList' + $ref: "#/components/schemas/v1.ResourceSliceList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ResourceSliceList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: resource.k8s.io + kind: ResourceSlice version: v1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSIDriver - operationId: createCSIDriver + 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\ @@ -67097,67 +71521,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: resource.k8s.io + kind: ResourceSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csidrivers/{name}: + /apis/resource.k8s.io/v1/resourceslices/{name}: delete: - description: delete a CSIDriver - operationId: deleteCSIDriver + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the CSIDriver + - description: name of the ResourceSlice in: path name: name required: true @@ -67187,6 +71621,21 @@ 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\ @@ -67210,54 +71659,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: resource.k8s.io + kind: ResourceSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSIDriver - operationId: readCSIDriver + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the CSIDriver + - description: name of the ResourceSlice in: path name: name required: true @@ -67275,33 +71731,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: resource.k8s.io + kind: ResourceSlice version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CSIDriver - operationId: patchCSIDriver + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the CSIDriver + - description: name of the ResourceSlice in: path name: name required: true @@ -67359,54 +71819,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: resource.k8s.io + kind: ResourceSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSIDriver - operationId: replaceCSIDriver + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the CSIDriver + - description: name of the ResourceSlice in: path name: name required: true @@ -67455,53 +71922,100 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIDriver' + $ref: "#/components/schemas/v1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver + group: resource.k8s.io + kind: ResourceSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csinodes: + /apis/resource.k8s.io/v1/watch/deviceclasses: {} + /apis/resource.k8s.io/v1/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1/watch/resourceclaims: {} + /apis/resource.k8s.io/v1/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1/watch/resourceslices: {} + /apis/resource.k8s.io/v1/watch/resourceslices/{name}: {} + /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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1alpha3/devicetaintrules: delete: - description: delete collection of CSINode - operationId: deleteCollectionCSINode + description: delete collection of DeviceTaintRule + operationId: deleteCollectionDeviceTaintRule 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\ @@ -67541,6 +72055,21 @@ 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 @@ -67618,40 +72147,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $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: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CSINode - operationId: listCSINode + description: list or watch objects of kind DeviceTaintRule + operationId: listDeviceTaintRule 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\ @@ -67749,39 +72282,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSINodeList' + $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: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSINode - operationId: createCSINode + description: create a DeviceTaintRule + operationId: createDeviceTaintRule 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\ @@ -67826,67 +72367,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $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: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csinodes/{name}: + /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}: delete: - description: delete a CSINode - operationId: deleteCSINode + description: delete a DeviceTaintRule + operationId: deleteDeviceTaintRule parameters: - - description: name of the CSINode + - description: name of the DeviceTaintRule in: path name: name required: true @@ -67916,6 +72467,21 @@ 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\ @@ -67939,54 +72505,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $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: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSINode - operationId: readCSINode + description: read the specified DeviceTaintRule + operationId: readDeviceTaintRule parameters: - - description: name of the CSINode + - description: name of the DeviceTaintRule in: path name: name required: true @@ -68004,33 +72577,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $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: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CSINode - operationId: patchCSINode + description: partially update the specified DeviceTaintRule + operationId: patchDeviceTaintRule parameters: - - description: name of the CSINode + - description: name of the DeviceTaintRule in: path name: name required: true @@ -68088,54 +72665,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $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: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSINode - operationId: replaceCSINode + description: replace the specified DeviceTaintRule + operationId: replaceDeviceTaintRule parameters: - - description: name of the CSINode + - description: name of the DeviceTaintRule in: path name: name required: true @@ -68184,92 +72768,115 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSINode' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSINode' + $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: CSINode - version: v1 + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/csistoragecapacities: + /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status: get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listCSIStorageCapacityForAllNamespaces + description: read status of the specified DeviceTaintRule + operationId: readDeviceTaintRuleStatus 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 DeviceTaintRule + 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/v1alpha3.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified DeviceTaintRule + operationId: patchDeviceTaintRuleStatus + parameters: + - description: name of the DeviceTaintRule + 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. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -68277,98 +72884,241 @@ paths: 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.CSIStorageCapacityList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/json;stream=watch: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: list + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: - delete: - description: delete collection of CSIStorageCapacity - operationId: deleteCollectionNamespacedCSIStorageCapacity + put: + description: replace status of the specified DeviceTaintRule + operationId: replaceDeviceTaintRuleStatus parameters: - - description: "object name and auth scope, such as for teams and projects" + - description: name of the DeviceTaintRule in: path - name: namespace + 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/v1alpha3.DeviceTaintRule" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules: {} + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta1/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)." @@ -68407,6 +73157,21 @@ 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 @@ -68484,47 +73249,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CSIStorageCapacity - operationId: listNamespacedCSIStorageCapacity + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass 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)." @@ -68621,46 +73384,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacityList' + $ref: "#/components/schemas/v1beta1.DeviceClassList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClassList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CSIStorageCapacity - operationId: createNamespacedCSIStorageCapacity + description: create a DeviceClass + operationId: createDeviceClass 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)." @@ -68704,78 +73469,82 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name}: + /apis/resource.k8s.io/v1beta1/deviceclasses/{name}: delete: - description: delete a CSIStorageCapacity - operationId: deleteNamespacedCSIStorageCapacity + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the CSIStorageCapacity + - description: name of the DeviceClass 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)." @@ -68800,6 +73569,21 @@ 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\ @@ -68823,65 +73607,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CSIStorageCapacity - operationId: readNamespacedCSIStorageCapacity + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the CSIStorageCapacity + - description: name of the DeviceClass 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)." @@ -68894,44 +73679,42 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CSIStorageCapacity - operationId: patchNamespacedCSIStorageCapacity + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the CSIStorageCapacity + - description: name of the DeviceClass 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)." @@ -68984,65 +73767,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CSIStorageCapacity - operationId: replaceNamespacedCSIStorageCapacity + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the CSIStorageCapacity + - description: name of the DeviceClass 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)." @@ -69086,54 +73870,67 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.CSIStorageCapacity' + $ref: "#/components/schemas/v1beta1.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/storageclasses: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims: delete: - description: delete collection of StorageClass - operationId: deleteCollectionStorageClass + 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)." @@ -69172,6 +73969,21 @@ 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 @@ -69249,41 +74061,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind StorageClass - operationId: listStorageClass + 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 - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69380,40 +74202,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.StorageClassList' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageClass - operationId: createStorageClass + 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 - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69457,72 +74293,88 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/storageclasses/{name}: + /apis/resource.k8s.io/v1beta1/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: "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)." @@ -69547,6 +74399,21 @@ 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\ @@ -69570,59 +74437,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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: "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)." @@ -69635,140 +74515,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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. 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' - 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-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - 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 @@ -69789,7 +74574,9 @@ paths: 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." + \ long, and only contain printable characters, as defined by https://golang.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: @@ -69811,58 +74598,469 @@ 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/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.StorageClass' + $ref: "#/components/schemas/v1beta1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1beta1.ResourceClaim" + required: true + responses: + "200": + 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: 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: + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: StorageClass - version: v1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments: + /apis/resource.k8s.io/v1beta1/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/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: + - resource_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/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: + - 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1beta1.ResourceClaim" + required: true + responses: + "200": + 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: 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: + - 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates: delete: - description: delete collection of VolumeAttachment - operationId: deleteCollectionVolumeAttachment + 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)." @@ -69901,6 +75099,21 @@ 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 @@ -69978,41 +75191,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind VolumeAttachment - operationId: listVolumeAttachment + 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 - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70109,40 +75332,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachmentList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttachment - operationId: createVolumeAttachment + 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 - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70186,72 +75423,88 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments/{name}: + /apis/resource.k8s.io/v1beta1/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: "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)." @@ -70276,6 +75529,21 @@ 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\ @@ -70299,59 +75567,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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: "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)." @@ -70364,38 +75645,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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: "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)." @@ -70448,59 +75739,72 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml 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: "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)." @@ -70544,104 +75848,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1/volumeattachments/{name}/status: + /apis/resource.k8s.io/v1beta1/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. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - 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 - 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' - 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 - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified VolumeAttachment - operationId: patchVolumeAttachmentStatus - parameters: - - description: name of the VolumeAttachment - in: path - name: name - 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: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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)." @@ -70649,104 +75948,138 @@ paths: 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.\ - \ 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: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped 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 - - 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: - $ref: '#/components/schemas/v1.Patch' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: OK - "201": - content: - application/json: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/cbor: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/yaml: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' - description: Created + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + description: OK "401": content: {} description: Unauthorized tags: - - storage_v1 - x-kubernetes-action: patch + - resource_v1beta1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttachment - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - put: - description: replace status of the specified VolumeAttachment - operationId: replaceVolumeAttachmentStatus + /apis/resource.k8s.io/v1beta1/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: 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)." @@ -70754,126 +76087,99 @@ paths: 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/v1.VolumeAttachment' - 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/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/yaml: schema: - $ref: '#/components/schemas/v1.VolumeAttachment' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: 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: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + 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-content-type: application/json - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /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: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/yaml: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1.APIResourceList' - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/cbor-seq: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/storage.k8s.io/v1alpha1/volumeattributesclasses: + /apis/resource.k8s.io/v1beta1/resourceslices: delete: - description: delete collection of VolumeAttributesClass - operationId: deleteCollectionVolumeAttributesClass + 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\ @@ -70913,6 +76219,21 @@ 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 @@ -70990,40 +76311,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind VolumeAttributesClass - operationId: listVolumeAttributesClass + 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\ @@ -71121,39 +76446,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClassList' + $ref: "#/components/schemas/v1beta1.ResourceSliceList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSliceList" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a VolumeAttributesClass - operationId: createVolumeAttributesClass + 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\ @@ -71198,67 +76531,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1alpha1/volumeattributesclasses/{name}: + /apis/resource.k8s.io/v1beta1/resourceslices/{name}: delete: - description: delete a VolumeAttributesClass - operationId: deleteVolumeAttributesClass + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceSlice in: path name: name required: true @@ -71288,6 +76631,21 @@ 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\ @@ -71311,54 +76669,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Accepted "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified VolumeAttributesClass - operationId: readVolumeAttributesClass + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceSlice in: path name: name required: true @@ -71376,33 +76741,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified VolumeAttributesClass - operationId: patchVolumeAttributesClass + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceSlice in: path name: name required: true @@ -71460,54 +76829,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified VolumeAttributesClass - operationId: replaceVolumeAttributesClass + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the VolumeAttributesClass + - description: name of the ResourceSlice in: path name: name required: true @@ -71556,78 +76932,67 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.VolumeAttributesClass' + $ref: "#/components/schemas/v1beta1.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "401": content: {} description: Unauthorized tags: - - storage_v1alpha1 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: VolumeAttributesClass - version: v1alpha1 + group: resource.k8s.io + kind: ResourceSlice + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storage.k8s.io/v1alpha1/watch/volumeattributesclasses: {} - /apis/storage.k8s.io/v1alpha1/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 - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/: + /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 @@ -71636,27 +77001,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.APIResourceList' + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations: + /apis/resource.k8s.io/v1beta2/deviceclasses: delete: - description: delete collection of StorageVersionMigration - operationId: deleteCollectionStorageVersionMigration + 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\ @@ -71696,6 +77065,21 @@ 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 @@ -71773,40 +77157,44 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind StorageVersionMigration - operationId: listStorageVersionMigration + 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\ @@ -71904,39 +77292,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigrationList' + $ref: "#/components/schemas/v1beta2.DeviceClassList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClassList" description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-accepts: + - application/cbor + - application/cbor-seq - application/json - application/json;stream=watch - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageVersionMigration - operationId: createStorageVersionMigration + 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\ @@ -71981,67 +77377,77 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "202": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}: + /apis/resource.k8s.io/v1beta2/deviceclasses/{name}: delete: - description: delete a StorageVersionMigration - operationId: deleteStorageVersionMigration + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the StorageVersionMigration + - description: name of the DeviceClass in: path name: name required: true @@ -72071,6 +77477,21 @@ 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\ @@ -72094,54 +77515,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "202": content: application/json: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1.Status' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageVersionMigration - operationId: readStorageVersionMigration + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the StorageVersionMigration + - description: name of the DeviceClass in: path name: name required: true @@ -72159,33 +77587,37 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageVersionMigration - operationId: patchStorageVersionMigration + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the StorageVersionMigration + - description: name of the DeviceClass in: path name: name required: true @@ -72243,54 +77675,61 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1.Patch' + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageVersionMigration - operationId: replaceStorageVersionMigration + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the StorageVersionMigration + - description: name of the DeviceClass in: path name: name required: true @@ -72339,57 +77778,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 + - resource_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/storagemigration.k8s.io/v1alpha1/storageversionmigrations/{name}/status: - get: - description: read status of the specified StorageVersionMigration - operationId: readStorageVersionMigrationStatus + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims: + delete: + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: - - description: name of the StorageVersionMigration + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -72400,40 +77846,171 @@ paths: 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/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $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: get + - resource_v1beta2 + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update status of the specified StorageVersionMigration - operationId: patchStorageVersionMigrationStatus + get: + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim parameters: - - description: name of the StorageVersionMigration + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -72444,101 +78021,140 @@ paths: 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: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ + . Servers that do not implement bookmarks may ignore this flag and bookmarks\ + \ are sent at the server's discretion. Clients should not assume bookmarks\ + \ are returned at any specific interval, 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: dryRun + 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: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.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 + 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 - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.Patch' - required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - description: OK - "201": - content: - application/json: + $ref: "#/components/schemas/v1beta2.ResourceClaimList" + application/cbor: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - application/yaml: + $ref: "#/components/schemas/v1beta2.ResourceClaimList" + application/json;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1beta2.ResourceClaimList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' - description: Created + $ref: "#/components/schemas/v1beta2.ResourceClaimList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimList" + description: OK "401": content: {} description: Unauthorized tags: - - storagemigration_v1alpha1 - x-kubernetes-action: patch + - resource_v1beta2 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 - x-codegen-request-body-name: body - x-content-type: application/json + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - put: - description: replace status of the specified StorageVersionMigration - operationId: replaceStorageVersionMigrationStatus + post: + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: - - description: name of the StorageVersionMigration + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -72585,162 +78201,101 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: '#/components/schemas/v1alpha1.StorageVersionMigration' + $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: - - storagemigration_v1alpha1 - x-kubernetes-action: put + - resource_v1beta2 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: storagemigration.k8s.io - kind: StorageVersionMigration - version: v1alpha1 + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /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 code version - 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 + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}: + delete: + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim parameters: - - description: The custom resource's group name + - description: name of the ResourceClaim in: path - name: group + name: name 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 - 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}/{plural}: - delete: - description: Delete collection of cluster scoped custom objects - operationId: deleteCollectionClusterCustomObject - 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 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. + - 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: "The duration in seconds before the object should be deleted.\ @@ -72752,6 +78307,21 @@ 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\ @@ -72763,182 +78333,143 @@ paths: - 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: schema: - $ref: '#/components/schemas/v1.DeleteOptions' + $ref: "#/components/schemas/v1.DeleteOptions" required: false responses: "200": content: application/json: schema: - type: object + $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: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml get: - description: list or watch cluster scoped custom objects - operationId: listClusterCustomObject + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim 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 ResourceClaim 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. + - description: "object name and auth scope, such as for teams and projects" in: path - name: plural + name: namespace 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 + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: resourceVersionMatch + name: pretty 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: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/yaml: schema: - type: object + $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: - - custom_objects + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-accepts: + - application/cbor - application/json - - application/json;stream=watch - post: - description: Creates a cluster scoped Custom object - operationId: createClusterCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim 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 ResourceClaim in: path - name: group + name: name 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: "When present, indicates that modifications should not be persisted.\ @@ -72970,99 +78501,93 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ 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: - type: object - description: The JSON schema of the Resource to create. + $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: - type: object + $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: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}: - delete: - description: Delete collection of namespace scoped custom objects - operationId: deleteCollectionNamespacedCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim 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 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: 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." + - description: "If 'true', then the output 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: "When present, indicates that modifications should not be persisted.\ @@ -73073,181 +78598,160 @@ 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.DeleteOptions' - required: false + $ref: "#/components/schemas/v1beta2.ResourceClaim" + required: true responses: "200": content: application/json: schema: - type: object + $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: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: list or watch namespace scoped custom objects - operationId: listNamespacedCustomObject + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus 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 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: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ - . Servers that do not implement bookmarks may ignore this flag and bookmarks\ - \ are sent at the server's discretion. Clients should not assume bookmarks\ - \ are returned at any specific interval, 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 + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: resourceVersionMatch + name: pretty 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: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/yaml: schema: - type: object + $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: - - custom_objects + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-accepts: + - application/cbor - application/json - - application/json;stream=watch - post: - description: Creates a namespace scoped Custom object - operationId: createNamespacedCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus 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 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: "When present, indicates that modifications should not be persisted.\ @@ -73260,7 +78764,9 @@ paths: 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." + \ long, and only contain printable characters, as defined by https://golang.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: @@ -73277,205 +78783,106 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ 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: - type: object - description: The JSON schema of the Resource to create. + $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: - type: object + $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: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - /apis/{group}/{version}/{plural}/{name}: - delete: - description: Deletes the specified cluster scoped custom object - operationId: deleteClusterCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + put: + 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 object'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: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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: 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-content-type: 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 + 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)." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -73492,69 +78899,89 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ 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: - type: object - description: The JSON schema of the Resource to patch. + $ref: "#/components/schemas/v1beta2.ResourceClaim" required: true responses: "200": content: application/json: schema: - type: object + $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: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - put: - description: replace the specified cluster scoped custom object - operationId: replaceClusterCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates: + delete: + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate 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 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: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". + + This field is not 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.\ @@ -73565,134 +78992,307 @@ 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: 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.\ - \ (optional)" + - 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: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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: - type: object - description: The JSON schema of the Resource to replace. - 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: + $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_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-content-type: application/json x-accepts: + - application/cbor - application/json - /apis/{group}/{version}/{plural}/{name}/status: + - application/vnd.kubernetes.protobuf + - application/yaml get: - description: read status of the specified cluster scoped custom object - operationId: getClusterCustomObjectStatus + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate 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: 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 - 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 + - 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: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - type: object + $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: - - custom_objects + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - patch: - description: partially update status of the specified cluster scoped custom - object - operationId: patchClusterCustomObjectStatus + post: + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate 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.\ @@ -73705,9 +79305,7 @@ paths: 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)." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -73724,77 +79322,102 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ 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: - description: The JSON schema of the Resource to patch. - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - type: object + $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: - - custom_objects + - resource_v1beta2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the cluster scoped specified custom object - operationId: replaceClusterCustomObjectStatus + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}: + delete: + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate 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 ResourceClaimTemplate 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. + - 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.\ @@ -73805,101 +79428,124 @@ 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.\ - \ (optional)" + 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: - type: object - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK - "201": + "202": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - type: object - description: Created + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + description: Accepted "401": content: {} description: Unauthorized tags: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/{group}/{version}/{plural}/{name}/scale: get: - description: read scale of the specified custom object - operationId: getClusterCustomObjectScale + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate 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 ResourceClaimTemplate 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. + - 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 responses: @@ -73907,50 +79553,53 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update scale of the specified cluster scoped custom object - operationId: patchClusterCustomObjectScale + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate 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 ResourceClaimTemplate 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. + - 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.\ @@ -73982,8 +79631,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -73999,60 +79647,77 @@ 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/v1beta2.ResourceClaimTemplate" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - type: object + $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: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace scale of the specified cluster scoped custom object - operationId: replaceClusterCustomObjectScale + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate 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 ResourceClaimTemplate 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. + - 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.\ @@ -74082,8 +79747,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -74092,317 +79756,651 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - resource_v1beta2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}: - delete: - description: Deletes the specified namespace scoped custom object - operationId: deleteNamespacedCustomObject + /apis/resource.k8s.io/v1beta2/resourceclaims: + get: + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces parameters: - - description: the custom resource's group - in: path - name: group - 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 resource's version - in: path - name: version - 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 namespace - in: path - name: namespace - 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: 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: the custom object's name - in: path - name: name - required: true + - 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: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, 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: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set 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: gracePeriodSeconds + name: resourceVersionMatch 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: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any 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: orphanDependents + name: sendInitialEvents 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." + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query - name: propagationPolicy + name: timeoutSeconds 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: 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: dryRun + name: watch schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/v1.DeleteOptions' - required: false + type: boolean responses: "200": content: application/json: schema: - type: object + $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: - - custom_objects - x-codegen-request-body-name: body - x-content-type: application/json + - resource_v1beta2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 x-accepts: + - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/resource.k8s.io/v1beta2/resourceclaimtemplates: get: - description: Returns a namespace scoped custom object - operationId: getNamespacedCustomObject + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces parameters: - - description: the custom resource's group - in: path - name: group - 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 resource's version - in: path - name: version - 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 namespace - in: path - name: namespace - 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: 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: the custom object's name - in: path - name: name - required: true + - 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: - type: object - description: A single Resource - "401": - content: {} - description: Unauthorized - tags: - - custom_objects + $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/cbor + - application/cbor-seq - application/json - patch: - description: patch the specified namespace scoped custom object - operationId: patchNamespacedCustomObject + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/resource.k8s.io/v1beta2/resourceslices: + delete: + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice parameters: - - description: the custom resource's group - in: path - name: group - 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 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 custom object's name - in: path - name: name - 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: 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: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive 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: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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: dryRun + 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: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.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: |- + resourceVersion sets a constraint on what resource 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: fieldManager + 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.\ - \ (optional)" + - 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 requestBody: content: application/json: schema: - type: object - description: The JSON schema of the Resource to patch. - 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: + $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_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-content-type: application/json x-accepts: + - application/cbor - application/json - put: - description: replace the specified namespace scoped custom object - operationId: replaceNamespacedCustomObject + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice parameters: - - description: the custom resource's group - in: path - name: group - 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 version - in: path - name: version - 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 resource's namespace - in: path - name: namespace - 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 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 + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: the custom object's name - in: path - name: name - 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: 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/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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.\ @@ -74432,8 +80430,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -74442,117 +80439,257 @@ paths: content: application/json: schema: - type: object - description: The JSON schema of the Resource to replace. + $ref: "#/components/schemas/v1beta2.ResourceSlice" required: true responses: "200": content: application/json: schema: - type: object + $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: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status: - get: - description: read status of the specified namespace scoped custom object - operationId: getNamespacedCustomObjectStatus + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta2/resourceslices/{name}: + delete: + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: the custom resource's group + - 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 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: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, 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 object's name - in: path - name: name - 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: 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: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - type: object + $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: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update status of the specified namespace scoped custom - object - operationId: patchNamespacedCustomObjectStatus + get: + description: read the specified ResourceSlice + operationId: readResourceSlice 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 ResourceSlice in: path - name: version + name: name 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. + 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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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: 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.\ @@ -74584,8 +80721,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -74601,66 +80737,71 @@ 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/v1beta2.ResourceSlice" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - type: object + $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: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified namespace scoped custom object - operationId: replaceNamespacedCustomObjectStatus + description: replace the specified ResourceSlice + operationId: replaceResourceSlice 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. + - description: name of the ResourceSlice 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.\ @@ -74690,8 +80831,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -74700,244 +80840,439 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "201": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1beta2.ResourceSlice" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Created "401": content: {} description: Unauthorized tags: - - custom_objects + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale: + /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: 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 + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - custom_objects + - scheduling x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update scale of the specified namespace scoped custom - object - operationId: patchNamespacedCustomObjectScale + /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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/scheduling.k8s.io/v1/priorityclasses: + delete: + description: delete collection of PriorityClass + operationId: deleteCollectionPriorityClass parameters: - - description: the custom resource's group - in: path - name: group - 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 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 custom object's name - in: path - name: name - 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: 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: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive 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: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. + + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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: dryRun + 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: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.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: |- + resourceVersion sets a constraint on what resource 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: fieldManager + 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.\ - \ (optional)" + - 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 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 + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace scale of the specified namespace scoped custom object - operationId: replaceNamespacedCustomObjectScale + get: + description: list or watch objects of kind PriorityClass + operationId: listPriorityClass parameters: - - description: the custom resource's group - in: path - name: group - 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 version - in: path - name: version - 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 resource's namespace - in: path - name: namespace - 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 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 + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: the custom object's name - in: path - name: name - 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: 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/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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.\ @@ -74967,8 +81302,7 @@ paths: \ fields. This is the default in v1.23+ - Strict: This will fail the request\ \ with a BadRequest error if any unknown fields would be dropped from the\ \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered.\ - \ (optional)" + \ the server will contain all unknown and duplicate fields encountered." in: query name: fieldValidation schema: @@ -74977,8973 +81311,19831 @@ paths: content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.PriorityClass" required: true responses: "200": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.PriorityClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityClass" description: OK "201": content: application/json: schema: - type: object + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - type: object + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - type: object + $ref: "#/components/schemas/v1.PriorityClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityClass" description: Created - "401": - content: {} - description: Unauthorized - tags: - - custom_objects - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/json + "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-content-type: application/json + x-accepts: + - application/cbor + - application/json - application/vnd.kubernetes.protobuf - application/yaml - /.well-known/openid-configuration: - get: - description: "get service account issuer OpenID configuration, also known as\ - \ the 'OIDC discovery doc'" - operationId: getServiceAccountIssuerOpenIDConfiguration + /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: - type: string + $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: - - WellKnown + - 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-content-type: application/json x-accepts: + - application/cbor - application/json - /openid/v1/jwks: + - application/vnd.kubernetes.protobuf + - application/yaml get: - description: get service account issuer OpenID JSON Web Key Set (contains public - token verification keys) - operationId: getServiceAccountIssuerOpenIDKeyset + 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/jwk-set+json: + application/json: schema: - type: string + $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: - - openid + - scheduling_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PriorityClass + version: v1 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. + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified PriorityClass + operationId: patchPriorityClass + parameters: + - description: name of the PriorityClass + 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 - 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\"" + - 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 - 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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.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: - - 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 + - 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified PriorityClass + operationId: replacePriorityClass + parameters: + - description: name of the PriorityClass + 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: "If 'true', then the output is pretty 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} + /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} + /apis/scheduling.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: + - scheduling_v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads: + delete: + description: delete collection of Workload + operationId: deleteCollectionNamespacedWorkload + 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". - '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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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. - 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: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"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 - 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.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". + - 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 ValidatingAdmissionPolicy. + 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 ValidatingAdmissionPolicy. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced 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 + 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_v1alpha1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: Workload + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind Workload + operationId: listNamespacedWorkload + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + 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/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. + - description: "If 'true', then the output is pretty 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 - 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". + - 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: |- + resourceVersion sets a constraint on what 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" - 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." + Defaults to unset + in: query + name: resourceVersion + 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: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - Never: the webhook will not be called more than once in a single admission evaluation. + 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. - 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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - Defaults to "Never". + 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.WorkloadList" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: Workload + version: v1alpha1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a Workload + operationId: createNamespacedWorkload + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + 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 - 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." + - description: "If 'true', then the output is pretty 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 - 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" + - 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' - 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 + - 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.Workload" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha1 + x-kubernetes-action: post 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" + group: scheduling.k8s.io + kind: Workload + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}: + delete: + description: delete a Workload + operationId: deleteNamespacedWorkload + parameters: + - description: name of the Workload + in: path + name: name + required: true + 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: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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_v1alpha1 + x-kubernetes-action: delete 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 \"*\"." + group: scheduling.k8s.io + kind: Workload + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified Workload + operationId: readNamespacedWorkload + parameters: + - description: name of the Workload + in: path + name: name + required: true + schema: 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. + - 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 the API kind the resources belong to. 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 - 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: + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: Workload + version: v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified Workload + operationId: patchNamespacedWorkload + parameters: + - description: name of the Workload + 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. - - 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. + required: true + 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. - - 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. + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + 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. - - Allowed values are `Allow` or `Deny` - - 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 - 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 \"*\"." + - 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 - admissionregistration.v1.ServiceReference: - description: ServiceReference holds a reference to Service.legacy.k8s.io - example: - path: path - port: 0 + - 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.Workload" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: Workload + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified Workload + operationId: replaceNamespacedWorkload + parameters: + - description: name of the Workload + in: path name: name - namespace: namespace - properties: - name: - description: '`name` is the name of the service. Required' + required: true + schema: type: string - namespace: - description: '`namespace` is the namespace of the service. Required' + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: type: string - path: - description: '`path` is an optional URL path which will be sent in any request - to this service.' + - description: "If 'true', then the output is pretty 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 - 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 + - 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.Workload" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.Workload" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: Workload + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/scheduling.k8s.io/v1alpha1/watch/namespaces/{namespace}/workloads: {} + /apis/scheduling.k8s.io/v1alpha1/watch/namespaces/{namespace}/workloads/{name}: {} + /apis/scheduling.k8s.io/v1alpha1/watch/workloads: {} + /apis/scheduling.k8s.io/v1alpha1/workloads: + get: + description: list or watch objects of kind Workload + operationId: listWorkloadForAllNamespaces + 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 - 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" + - description: "If 'true', then the output is pretty 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 - 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.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicySpec' - status: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyStatus' - type: object + - 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.WorkloadList" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha1.WorkloadList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha1 + x-kubernetes-action: list 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. + group: scheduling.k8s.io + kind: Workload + version: v1alpha1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /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 + - application/vnd.kubernetes.protobuf + - application/yaml + /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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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". - 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. + This field is not 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 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" + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 - 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.ObjectMeta' - spec: - $ref: '#/components/schemas/v1.ValidatingAdmissionPolicyBindingSpec' - type: object + - 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: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + group: storage.k8s.io + kind: CSIDriver 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" + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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 - 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" + - 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 - 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." + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + 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: 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: |- + resourceVersion sets a constraint 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 - 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 + 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: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyList + group: storage.k8s.io + kind: CSIDriver 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. + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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". - 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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. - 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: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"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. - 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/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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state 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/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 + 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/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. + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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 - 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". + - 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: |- + resourceVersion sets a constraint on what 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" - 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." + Defaults to unset + in: query + name: resourceVersion + 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 - 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." + - 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 - 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: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any 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 - 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 + - 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: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + group: storage.k8s.io + kind: CSINode 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" + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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 - 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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/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: admissionregistration.k8s.io - kind: ValidatingWebhookConfigurationList + group: storage.k8s.io + kind: CSINode 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." + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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 - 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 - 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 + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified CSINode + operationId: readCSINode + parameters: + - description: name of the CSINode + 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. - 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`" + required: true + schema: 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}=)?$" + - description: "If 'true', then the output is pretty 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 - 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. + 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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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". - The scheme must be "https"; the URL must begin with "https://". + This field is not 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. - 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. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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. - Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either. + Defaults to unset + in: query + name: resourceVersion + 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. + - 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. - The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". + 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 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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state 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 + - 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/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /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 - 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. + - description: "If 'true', then the output is pretty 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". - Required. + This field is not 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 - 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\"" + - 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 - 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: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + 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: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, 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 - 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: |- + limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified 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: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"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 - - 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". - - - 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. + - 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. - - 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 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 "Equivalent" + Defaults to unset + in: query + name: resourceVersionMatch + 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: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - 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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - If wildcard is present, the validation rule will ensure resources do not overlap with each other. + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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". - 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 \"*\"." + This field is not 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 - 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: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + 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 + labels. Defaults to everything. + in: query + name: labelSelector + 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. + - 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. - `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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 - 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: |- + resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. - A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. + 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 `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - - 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 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/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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 - 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` + - description: "If 'true', then the output is pretty 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/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: 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: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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 - 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: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' - spec: - $ref: '#/components/schemas/v1alpha1.ValidatingAdmissionPolicyBindingSpec' - 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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: 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: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified CSIStorageCapacity + operationId: readNamespacedCSIStorageCapacity + parameters: + - description: name of the CSIStorageCapacity + 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: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - 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 + 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: 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." - 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 - 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" - 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" + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified CSIStorageCapacity + operationId: patchNamespacedCSIStorageCapacity + parameters: + - description: name of the CSIStorageCapacity + in: path + name: name + required: true + schema: type: string - metadata: - $ref: '#/components/schemas/v1.ListMeta' - required: - - items - 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. - - 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. + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + 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/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. - - 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 - 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: "If 'true', then the output is pretty 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 - 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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 - 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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.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 - 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: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped 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 - required: - - expression - type: object - v1alpha1.Variable: - description: Variable is the definition of a variable that is used for composition. - example: - expression: expression + - 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified CSIStorageCapacity + operationId: replaceNamespacedCSIStorageCapacity + parameters: + - description: name of the CSIStorageCapacity + 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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. 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 - 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: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped 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 - 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. + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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 - 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: |- + The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the "next key". - Required. + This field is not 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 - 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". + - 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. - - 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. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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. - - 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 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 "Equivalent" + Defaults to unset + in: query + name: resourceVersionMatch + 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. + - 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. - 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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. - If wildcard is present, the validation rule will ensure resources do not overlap with each other. + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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". - 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 \"*\"." + This field is not 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 - 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: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + 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 + labels. Defaults to everything. + in: query + name: labelSelector + 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: - 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. + - 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. - 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. + The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are 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. - 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. + Defaults to unset + in: query + name: resourceVersion + 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. - - 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. + - 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 - 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" + 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/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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 - 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.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" + - 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' - 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" + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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 - 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: "If 'true', then the output is pretty 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 + - 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: 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." + group: storage.k8s.io + kind: StorageClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified StorageClass + operationId: readStorageClass + parameters: + - description: name of the StorageClass + 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 + 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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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". - "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 - 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 + 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: 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. + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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". - 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/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. + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state 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/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 + 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/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: "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/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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 - 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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 - 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: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. 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 - 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: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped 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 - 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.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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/volumeattachments/{name}: + delete: + description: delete a VolumeAttachment + operationId: deleteVolumeAttachment + parameters: + - description: name of the VolumeAttachment + 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. - 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`" + 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)." + - 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 - 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" + - 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 - 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 + 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: 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 + group: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified VolumeAttachment + operationId: readVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: type: string - message: - description: A human readable message indicating details about the transition. + - description: "If 'true', then the output is pretty 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 - 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. + 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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified VolumeAttachment + operationId: patchVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + schema: type: string - status: - description: "Status of the condition, one of True, False, Unknown." + - description: "If 'true', then the output is pretty 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: - description: Type of the condition. + - 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: - - 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" + - 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 - 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: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped 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.ListMeta' - required: - - items - type: object + - 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: 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: storage.k8s.io + kind: VolumeAttachment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified VolumeAttachment + operationId: replaceVolumeAttachment + parameters: + - description: name of the VolumeAttachment + in: path + name: name + required: true + 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: "If 'true', then the output is pretty 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 - 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: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive 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.ObjectMeta' - revision: - description: Revision indicates the revision of the state represented by - Data. - format: int64 - type: integer - required: - - revision - 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/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: apps - kind: ControllerRevision + group: storage.k8s.io + kind: VolumeAttachment 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" + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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 - 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: "If 'true', then the output is pretty 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 + 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: apps - kind: ControllerRevisionList + group: storage.k8s.io + kind: VolumeAttachment version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.DaemonSet: - description: DaemonSet represents the configuration of a daemon set. - 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: - 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 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/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_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1.VolumeAttributesClassList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClassList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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/v1.VolumeAttributesClass" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storage.k8s.io/v1/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/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1.VolumeAttributesClass" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/yaml: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1.VolumeAttributesClass" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: VolumeAttributesClass + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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/v1/watch/volumeattributesclasses: {} + /apis/storage.k8s.io/v1/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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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 + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.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: + - storagemigration_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1beta1/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_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1beta1.StorageVersionMigrationList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigrationList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + 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/v1beta1.StorageVersionMigration" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1beta1/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_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1beta1.StorageVersionMigration" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1beta1/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/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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/v1beta1.StorageVersionMigration" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.StorageVersionMigration" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - storagemigration_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: storagemigration.k8s.io + kind: StorageVersionMigration + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/storagemigration.k8s.io/v1beta1/watch/storageversionmigrations: {} + /apis/storagemigration.k8s.io/v1beta1/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 + - application/json;stream=watch + /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-content-type: 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 + - application/json;stream=watch + 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-content-type: 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-content-type: 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 + - application/json;stream=watch + 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-content-type: 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-content-type: 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-content-type: 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-content-type: 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 + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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 + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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-content-type: 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-content-type: 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-content-type: 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 + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /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 + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + 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-content-type: application/json + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /.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.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 + v1beta1.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 + 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.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/v1beta1.MutatingAdmissionPolicySpec" + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.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/v1beta1.MutatingAdmissionPolicyBindingSpec" + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.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/v1beta1.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: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.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/v1beta1.MatchResources" + paramRef: + $ref: "#/components/schemas/v1beta1.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 + v1beta1.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/v1beta1.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: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.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/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" + 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/v1beta1.Mutation" + type: array + x-kubernetes-list-type: atomic + paramKind: + $ref: "#/components/schemas/v1beta1.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/v1beta1.Variable" + type: array + x-kubernetes-list-type: atomic + type: object + v1beta1.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/v1beta1.ApplyConfiguration" + jsonPatch: + $ref: "#/components/schemas/v1beta1.JSONPatch" + patchType: + description: patchType indicates the patch strategy used. Allowed values + are "ApplyConfiguration" and "JSONPatch". Required. + type: string + required: + - patchType + type: object + 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.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: + 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: + 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: "{}" @@ -83983,6 +101175,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -83997,7 +101190,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -84006,7 +101198,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -84015,30 +101217,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -84058,7 +101257,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -84074,14 +101273,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -84097,7 +101296,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -84208,20 +101407,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84230,7 +101429,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84243,26 +101442,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -84284,7 +101492,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84293,7 +101501,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84306,26 +101514,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -84345,7 +101562,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -84380,6 +101597,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -84397,9 +101617,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84408,7 +101628,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84418,7 +101638,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -84428,7 +101648,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -84453,14 +101673,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -84500,7 +101720,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -84617,20 +101837,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84639,7 +101859,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84652,26 +101872,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -84693,7 +101922,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84702,7 +101931,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84715,26 +101944,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -84754,7 +101992,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -84789,6 +102027,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -84806,9 +102047,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84817,7 +102058,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -84827,7 +102068,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -84837,7 +102078,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -84862,14 +102103,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -84909,7 +102150,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -84921,17 +102162,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -85054,6 +102318,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -85135,8 +102400,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -85160,6 +102719,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -85178,6 +102742,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -85188,16 +102757,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -85320,6 +102916,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -85396,13 +102993,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -85426,6 +103024,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -85444,6 +103047,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -85454,71 +103062,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -85574,43 +103140,6 @@ components: 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 @@ -85622,10 +103151,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -85641,9 +103166,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -85685,8 +103207,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -85719,7 +103240,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -85735,11 +103255,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -85769,21 +103284,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -85839,43 +103432,6 @@ components: 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 @@ -85887,10 +103443,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -85906,9 +103458,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -85950,8 +103499,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -85984,7 +103532,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -86000,12 +103547,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -86035,21 +103576,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -86105,43 +103723,6 @@ components: 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 @@ -86153,10 +103734,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -86172,9 +103749,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -86216,8 +103790,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -86250,7 +103823,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -86266,11 +103838,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -86300,76 +103867,18 @@ components: 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: key: null limits: key: null - 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 @@ -86389,6 +103898,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -86407,130 +103921,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -87001,11 +104406,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.DaemonSetSpec' + $ref: "#/components/schemas/v1.DaemonSetSpec" status: - $ref: '#/components/schemas/v1.DaemonSetStatus' + $ref: "#/components/schemas/v1.DaemonSetStatus" type: object x-kubernetes-group-version-kind: - group: apps @@ -87171,6 +104576,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -87185,7 +104591,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -87194,7 +104599,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -87203,30 +104618,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -87246,7 +104658,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -87262,14 +104674,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -87285,7 +104697,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -87396,20 +104808,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87418,7 +104830,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87431,26 +104843,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -87472,7 +104893,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87481,7 +104902,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87494,26 +104915,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -87533,7 +104963,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -87568,6 +104998,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -87585,9 +105018,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87596,7 +105029,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87606,7 +105039,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -87616,7 +105049,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -87641,14 +105074,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -87688,7 +105121,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -87805,20 +105238,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87827,7 +105260,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87840,26 +105273,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -87881,7 +105323,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87890,7 +105332,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -87903,26 +105345,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -87942,7 +105393,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -87977,6 +105428,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -87994,9 +105448,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -88005,7 +105459,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -88015,7 +105469,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -88025,7 +105479,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -88050,14 +105504,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -88097,7 +105551,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -88109,17 +105563,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -88242,6 +105719,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -88323,8 +105801,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -88348,6 +106120,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -88366,6 +106143,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -88376,16 +106158,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -88508,6 +106317,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -88584,13 +106394,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -88614,6 +106425,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -88632,6 +106448,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -88642,71 +106463,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -88762,43 +106541,6 @@ components: 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 @@ -88810,10 +106552,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -88829,9 +106567,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -88873,8 +106608,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -88907,7 +106641,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -88923,11 +106656,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -88957,21 +106685,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -89027,43 +106833,6 @@ components: 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 @@ -89075,10 +106844,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -89094,9 +106859,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -89138,8 +106900,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -89172,7 +106933,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -89188,12 +106948,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -89223,21 +106977,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -89293,43 +107124,6 @@ components: 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 @@ -89341,10 +107135,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -89360,9 +107150,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -89404,8 +107191,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -89438,7 +107224,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -89454,11 +107239,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -89488,76 +107268,18 @@ components: 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: key: null limits: key: null - 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 @@ -89577,6 +107299,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -89595,130 +107322,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -90294,6 +107912,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -90308,7 +107927,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -90317,7 +107935,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -90326,30 +107954,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -90369,7 +107994,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -90385,14 +108010,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -90408,7 +108033,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -90519,20 +108144,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -90541,7 +108166,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -90554,26 +108179,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -90595,7 +108229,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -90604,7 +108238,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -90617,26 +108251,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -90656,7 +108299,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -90691,6 +108334,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -90708,9 +108354,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -90719,7 +108365,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -90729,7 +108375,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -90739,7 +108385,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -90764,14 +108410,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -90811,7 +108457,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -90928,20 +108574,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -90950,7 +108596,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -90963,26 +108609,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -91004,7 +108659,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -91013,7 +108668,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -91026,26 +108681,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -91065,7 +108729,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -91100,6 +108764,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -91117,9 +108784,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -91128,7 +108795,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -91138,7 +108805,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -91148,7 +108815,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -91173,14 +108840,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -91220,7 +108887,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -91232,17 +108899,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -91365,6 +109055,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -91446,8 +109137,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -91471,6 +109456,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -91489,6 +109479,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -91499,16 +109494,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -91631,6 +109653,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -91707,13 +109730,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -91737,6 +109761,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -91755,6 +109784,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -91765,71 +109799,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -91885,43 +109877,6 @@ components: 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 @@ -91933,10 +109888,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -91952,9 +109903,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -91996,8 +109944,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -92030,7 +109977,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -92046,11 +109992,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -92080,21 +110021,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -92150,43 +110169,6 @@ components: 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 @@ -92198,10 +110180,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -92217,9 +110195,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -92261,8 +110236,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -92295,7 +110269,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -92311,12 +110284,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -92346,21 +110313,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -92416,43 +110460,6 @@ components: 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 @@ -92464,10 +110471,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -92483,9 +110486,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -92527,8 +110527,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -92561,7 +110560,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -92577,11 +110575,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -92611,76 +110604,18 @@ components: 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: key: null limits: key: null - 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 @@ -92700,6 +110635,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -92718,130 +110658,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -93309,7 +111140,7 @@ components: items: description: A list of daemon sets. items: - $ref: '#/components/schemas/v1.DaemonSet' + $ref: "#/components/schemas/v1.DaemonSet" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -93317,7 +111148,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -93398,6 +111229,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -93412,7 +111244,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -93421,7 +111252,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -93430,30 +111271,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -93473,7 +111311,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -93489,14 +111327,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -93512,7 +111350,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -93623,20 +111461,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -93645,7 +111483,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -93658,26 +111496,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -93699,7 +111546,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -93708,7 +111555,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -93721,26 +111568,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -93760,7 +111616,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -93795,6 +111651,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -93812,9 +111671,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -93823,7 +111682,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -93833,7 +111692,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -93843,7 +111702,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -93868,14 +111727,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -93915,7 +111774,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -94032,20 +111891,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -94054,7 +111913,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -94067,26 +111926,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -94108,7 +111976,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -94117,7 +111985,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -94130,26 +111998,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -94169,7 +112046,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -94204,6 +112081,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -94221,9 +112101,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -94232,7 +112112,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -94242,7 +112122,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -94252,7 +112132,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -94277,14 +112157,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -94324,7 +112204,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -94336,17 +112216,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -94469,6 +112372,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -94550,8 +112454,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -94575,6 +112773,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -94593,6 +112796,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -94603,16 +112811,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -94735,6 +112970,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -94811,13 +113047,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -94841,6 +113078,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -94859,6 +113101,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -94869,71 +113116,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -94989,43 +113194,6 @@ components: 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 @@ -95037,10 +113205,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -95056,9 +113220,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -95100,8 +113261,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -95134,7 +113294,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -95150,11 +113309,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -95184,21 +113338,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -95254,43 +113486,6 @@ components: 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 @@ -95302,10 +113497,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -95321,9 +113512,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -95365,8 +113553,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -95399,7 +113586,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -95415,12 +113601,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -95450,21 +113630,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -95520,43 +113777,6 @@ components: 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 @@ -95568,10 +113788,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -95587,9 +113803,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -95631,8 +113844,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -95665,7 +113877,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -95681,11 +113892,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -95715,76 +113921,18 @@ components: 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: key: null limits: key: null - 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 @@ -95804,6 +113952,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -95822,130 +113975,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -96398,11 +114442,11 @@ components: format: int32 type: integer selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" updateStrategy: - $ref: '#/components/schemas/v1.DaemonSetUpdateStrategy' + $ref: "#/components/schemas/v1.DaemonSetUpdateStrategy" required: - selector - template @@ -96441,7 +114485,7 @@ components: description: Represents the latest available observations of a DaemonSet's current state. items: - $ref: '#/components/schemas/v1.DaemonSetCondition' + $ref: "#/components/schemas/v1.DaemonSetCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -96505,7 +114549,7 @@ components: maxUnavailable: maxUnavailable properties: rollingUpdate: - $ref: '#/components/schemas/v1.RollingUpdateDaemonSet' + $ref: "#/components/schemas/v1.RollingUpdateDaemonSet" type: description: Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. @@ -96631,6 +114675,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -96645,7 +114690,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -96654,7 +114698,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -96663,30 +114717,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -96706,7 +114757,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -96722,14 +114773,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -96745,7 +114796,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -96856,20 +114907,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -96878,7 +114929,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -96891,26 +114942,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -96932,7 +114992,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -96941,7 +115001,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -96954,26 +115014,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -96993,7 +115062,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -97028,6 +115097,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -97045,9 +115117,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -97056,7 +115128,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -97066,7 +115138,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -97076,7 +115148,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -97101,14 +115173,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -97148,7 +115220,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -97265,20 +115337,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -97287,7 +115359,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -97300,26 +115372,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -97341,7 +115422,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -97350,7 +115431,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -97363,26 +115444,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -97402,7 +115492,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -97437,6 +115527,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -97454,9 +115547,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -97465,7 +115558,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -97475,7 +115568,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -97485,7 +115578,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -97510,14 +115603,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -97557,7 +115650,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -97569,17 +115662,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -97702,6 +115818,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -97783,8 +115900,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -97808,6 +116219,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -97826,6 +116242,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -97836,16 +116257,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -97968,6 +116416,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -98044,13 +116493,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -98074,6 +116524,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -98092,6 +116547,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -98102,71 +116562,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -98222,43 +116640,6 @@ components: 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 @@ -98270,10 +116651,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -98289,9 +116666,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -98333,8 +116707,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -98367,7 +116740,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -98383,11 +116755,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -98417,21 +116784,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -98487,43 +116932,6 @@ components: 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 @@ -98535,10 +116943,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -98554,9 +116958,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -98598,8 +116999,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -98632,7 +117032,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -98648,12 +117047,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -98683,21 +117076,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -98753,43 +117223,6 @@ components: 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 @@ -98801,10 +117234,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -98820,9 +117249,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -98864,8 +117290,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -98898,7 +117323,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -98914,11 +117338,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -98948,76 +117367,18 @@ components: 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: key: null limits: key: null - 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 @@ -99037,6 +117398,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -99055,130 +117421,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -99620,8 +117877,9 @@ components: maxUnavailable: maxUnavailable progressDeadlineSeconds: 6 status: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -99637,7 +117895,7 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 properties: @@ -99652,11 +117910,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.DeploymentSpec' + $ref: "#/components/schemas/v1.DeploymentSpec" status: - $ref: '#/components/schemas/v1.DeploymentStatus' + $ref: "#/components/schemas/v1.DeploymentStatus" type: object x-kubernetes-group-version-kind: - group: apps @@ -99827,6 +118085,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -99841,7 +118100,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -99850,7 +118108,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -99859,30 +118127,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -99902,7 +118167,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -99918,14 +118183,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -99941,7 +118206,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -100052,20 +118317,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100074,7 +118339,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100087,26 +118352,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -100128,7 +118402,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100137,7 +118411,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100150,26 +118424,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -100189,7 +118472,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -100224,6 +118507,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -100241,9 +118527,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100252,7 +118538,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100262,7 +118548,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -100272,7 +118558,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -100297,14 +118583,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -100344,7 +118630,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -100461,20 +118747,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100483,7 +118769,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100496,26 +118782,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -100537,7 +118832,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100546,7 +118841,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100559,26 +118854,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -100598,7 +118902,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -100633,6 +118937,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -100650,9 +118957,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100661,7 +118968,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -100671,7 +118978,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -100681,7 +118988,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -100706,14 +119013,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -100753,7 +119060,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -100765,17 +119072,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -100898,6 +119228,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -100979,8 +119310,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -101004,6 +119629,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -101022,6 +119652,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -101032,16 +119667,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -101164,6 +119826,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -101240,13 +119903,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -101270,6 +119934,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -101288,6 +119957,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -101298,71 +119972,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -101418,43 +120050,6 @@ components: 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 @@ -101466,10 +120061,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -101485,9 +120076,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -101529,8 +120117,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -101563,7 +120150,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -101579,11 +120165,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -101613,21 +120194,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -101683,43 +120342,6 @@ components: 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 @@ -101731,10 +120353,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -101750,9 +120368,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -101794,8 +120409,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -101828,7 +120442,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -101844,12 +120457,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -101879,21 +120486,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -101949,43 +120633,6 @@ components: 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 @@ -101997,10 +120644,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -102016,9 +120659,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -102060,8 +120700,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -102094,7 +120733,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -102110,11 +120748,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -102144,76 +120777,18 @@ components: 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: key: null limits: key: null - 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 @@ -102233,6 +120808,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -102251,130 +120831,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -102816,8 +121287,9 @@ components: maxUnavailable: maxUnavailable progressDeadlineSeconds: 6 status: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -102833,7 +121305,7 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 - metadata: @@ -102953,6 +121425,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -102967,7 +121440,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -102976,7 +121448,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -102985,30 +121467,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -103028,7 +121507,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -103044,14 +121523,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -103067,7 +121546,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -103178,20 +121657,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103200,7 +121679,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103213,26 +121692,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -103254,7 +121742,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103263,7 +121751,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103276,26 +121764,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -103315,7 +121812,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -103350,6 +121847,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -103367,9 +121867,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103378,7 +121878,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103388,7 +121888,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -103398,7 +121898,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -103423,14 +121923,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -103470,7 +121970,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -103587,20 +122087,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103609,7 +122109,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103622,26 +122122,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -103663,7 +122172,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103672,7 +122181,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103685,26 +122194,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -103724,7 +122242,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -103759,6 +122277,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -103776,9 +122297,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103787,7 +122308,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -103797,7 +122318,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -103807,7 +122328,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -103832,14 +122353,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -103879,7 +122400,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -103891,17 +122412,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -104024,6 +122568,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104105,8 +122650,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -104130,6 +122969,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -104148,6 +122992,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -104158,16 +123007,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -104290,6 +123166,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104366,13 +123243,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -104396,6 +123274,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -104414,6 +123297,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -104424,71 +123312,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -104544,43 +123390,6 @@ components: 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 @@ -104592,10 +123401,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -104611,9 +123416,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -104655,8 +123457,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104689,7 +123490,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -104705,11 +123505,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -104739,21 +123534,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -104809,43 +123682,6 @@ components: 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 @@ -104857,10 +123693,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -104876,9 +123708,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -104920,8 +123749,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -104954,7 +123782,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -104970,12 +123797,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -105005,21 +123826,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -105075,43 +123973,6 @@ components: 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 @@ -105123,10 +123984,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -105142,9 +123999,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -105186,8 +124040,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -105220,7 +124073,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -105236,11 +124088,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -105270,76 +124117,18 @@ components: 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: key: null limits: key: null - 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 @@ -105359,6 +124148,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -105377,130 +124171,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -105942,8 +124627,9 @@ components: maxUnavailable: maxUnavailable progressDeadlineSeconds: 6 status: - unavailableReplicas: 2 + unavailableReplicas: 4 replicas: 3 + terminatingReplicas: 2 readyReplicas: 9 collisionCount: 2 conditions: @@ -105959,7 +124645,7 @@ components: type: type lastUpdateTime: 2000-01-23T04:56:07.000+00:00 status: status - updatedReplicas: 4 + updatedReplicas: 7 availableReplicas: 5 observedGeneration: 7 properties: @@ -105971,7 +124657,7 @@ components: items: description: Items is the list of Deployments. items: - $ref: '#/components/schemas/v1.Deployment' + $ref: "#/components/schemas/v1.Deployment" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -105979,7 +124665,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -106061,6 +124747,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -106075,7 +124762,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -106084,7 +124770,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -106093,30 +124789,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -106136,7 +124829,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -106152,14 +124845,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -106175,7 +124868,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -106286,20 +124979,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106308,7 +125001,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106321,26 +125014,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -106362,7 +125064,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106371,7 +125073,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106384,26 +125086,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -106423,7 +125134,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -106458,6 +125169,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -106475,9 +125189,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106486,7 +125200,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106496,7 +125210,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -106506,7 +125220,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -106531,14 +125245,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -106578,7 +125292,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -106695,20 +125409,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106717,7 +125431,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106730,26 +125444,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -106771,7 +125494,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106780,7 +125503,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106793,26 +125516,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -106832,7 +125564,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -106867,6 +125599,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -106884,9 +125619,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106895,7 +125630,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -106905,7 +125640,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -106915,7 +125650,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -106940,14 +125675,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -106987,7 +125722,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -106999,17 +125734,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -107132,6 +125890,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -107213,8 +125972,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -107238,6 +126291,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -107256,6 +126314,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -107266,16 +126329,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -107398,6 +126488,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -107474,13 +126565,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -107504,6 +126596,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -107522,6 +126619,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -107532,71 +126634,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -107652,43 +126712,6 @@ components: 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 @@ -107700,10 +126723,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -107719,9 +126738,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -107763,8 +126779,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -107797,7 +126812,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -107813,11 +126827,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -107847,21 +126856,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -107917,43 +127004,6 @@ components: 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 @@ -107965,10 +127015,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -107984,9 +127030,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -108028,8 +127071,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -108062,7 +127104,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -108078,12 +127119,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -108113,21 +127148,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -108183,43 +127295,6 @@ components: 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 @@ -108231,10 +127306,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -108250,9 +127321,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -108294,8 +127362,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -108328,7 +127395,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -108344,11 +127410,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -108378,76 +127439,18 @@ components: 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: key: null limits: key: null - 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 @@ -108467,6 +127470,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -108485,130 +127493,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -109080,11 +127979,11 @@ components: format: int32 type: integer selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" strategy: - $ref: '#/components/schemas/v1.DeploymentStrategy' + $ref: "#/components/schemas/v1.DeploymentStrategy" template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" required: - selector - template @@ -109092,8 +127991,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: @@ -109109,13 +128009,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: @@ -109128,7 +128028,7 @@ components: description: Represents the latest available observations of a deployment's current state. items: - $ref: '#/components/schemas/v1.DeploymentCondition' + $ref: "#/components/schemas/v1.DeploymentCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -109140,15 +128040,22 @@ components: 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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default). + 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 @@ -109157,7 +128064,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 @@ -109172,7 +128079,7 @@ components: maxUnavailable: maxUnavailable properties: rollingUpdate: - $ref: '#/components/schemas/v1.RollingUpdateDeployment' + $ref: "#/components/schemas/v1.RollingUpdateDeployment" type: description: Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. @@ -109299,6 +128206,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -109313,7 +128221,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -109322,7 +128229,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -109331,30 +128248,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -109374,7 +128288,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -109390,14 +128304,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -109413,7 +128327,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -109524,20 +128438,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109546,7 +128460,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109559,26 +128473,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -109600,7 +128523,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109609,7 +128532,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109622,26 +128545,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -109661,7 +128593,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -109696,6 +128628,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -109713,9 +128648,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109724,7 +128659,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109734,7 +128669,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -109744,7 +128679,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -109769,14 +128704,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -109816,7 +128751,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -109933,20 +128868,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109955,7 +128890,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -109968,26 +128903,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -110009,7 +128953,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -110018,7 +128962,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -110031,26 +128975,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -110070,7 +129023,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -110105,6 +129058,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -110122,9 +129078,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -110133,7 +129089,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -110143,7 +129099,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -110153,7 +129109,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -110178,14 +129134,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -110225,7 +129181,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -110237,17 +129193,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -110370,6 +129349,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -110451,8 +129431,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -110476,6 +129750,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -110494,6 +129773,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -110504,16 +129788,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -110636,6 +129947,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -110712,13 +130024,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -110742,6 +130055,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -110760,6 +130078,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -110770,71 +130093,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -110890,43 +130171,6 @@ components: 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 @@ -110938,10 +130182,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -110957,9 +130197,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -111001,8 +130238,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -111035,7 +130271,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -111051,11 +130286,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -111085,21 +130315,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -111155,43 +130463,6 @@ components: 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 @@ -111203,10 +130474,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -111222,9 +130489,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -111266,8 +130530,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -111300,7 +130563,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -111316,12 +130578,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -111351,21 +130607,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -111421,43 +130754,6 @@ components: 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 @@ -111469,10 +130765,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -111488,9 +130780,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -111532,8 +130821,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -111566,7 +130854,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -111582,11 +130869,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -111616,76 +130898,18 @@ components: 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: key: null limits: key: null - 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 @@ -111705,6 +130929,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -111723,130 +130952,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -112282,6 +131402,7 @@ components: status: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -112308,11 +131429,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ReplicaSetSpec' + $ref: "#/components/schemas/v1.ReplicaSetSpec" status: - $ref: '#/components/schemas/v1.ReplicaSetStatus' + $ref: "#/components/schemas/v1.ReplicaSetStatus" type: object x-kubernetes-group-version-kind: - group: apps @@ -112479,6 +131600,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -112493,7 +131615,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -112502,7 +131623,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -112511,30 +131642,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -112554,7 +131682,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -112570,14 +131698,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -112593,7 +131721,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -112704,20 +131832,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112726,7 +131854,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112739,26 +131867,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -112780,7 +131917,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112789,7 +131926,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112802,26 +131939,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -112841,7 +131987,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -112876,6 +132022,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -112893,9 +132042,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112904,7 +132053,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -112914,7 +132063,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -112924,7 +132073,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -112949,14 +132098,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -112996,7 +132145,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -113113,20 +132262,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -113135,7 +132284,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -113148,26 +132297,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -113189,7 +132347,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -113198,7 +132356,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -113211,26 +132369,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -113250,7 +132417,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -113285,6 +132452,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -113302,9 +132472,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -113313,7 +132483,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -113323,7 +132493,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -113333,7 +132503,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -113358,14 +132528,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -113405,7 +132575,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -113417,17 +132587,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -113550,6 +132743,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -113631,8 +132825,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -113656,6 +133144,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -113674,6 +133167,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -113684,16 +133182,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -113816,6 +133341,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -113892,13 +133418,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -113922,6 +133449,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -113940,6 +133472,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -113950,71 +133487,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -114070,43 +133565,6 @@ components: 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 @@ -114118,10 +133576,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -114137,9 +133591,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -114181,8 +133632,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -114215,7 +133665,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -114231,11 +133680,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -114265,21 +133709,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -114335,43 +133857,6 @@ components: 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 @@ -114383,10 +133868,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -114402,9 +133883,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -114446,8 +133924,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -114480,7 +133957,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -114496,12 +133972,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -114531,21 +134001,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -114601,43 +134148,6 @@ components: 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 @@ -114649,10 +134159,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -114668,9 +134174,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -114712,8 +134215,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -114746,7 +134248,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -114762,11 +134263,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -114796,76 +134292,18 @@ components: 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: key: null limits: key: null - 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 @@ -114885,6 +134323,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -114903,130 +134346,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -115462,6 +134796,7 @@ components: status: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -115593,6 +134928,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -115607,7 +134943,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -115616,7 +134951,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -115625,30 +134970,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -115668,7 +135010,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -115684,14 +135026,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -115707,7 +135049,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -115818,20 +135160,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115840,7 +135182,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115853,26 +135195,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -115894,7 +135245,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115903,7 +135254,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -115916,26 +135267,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -115955,7 +135315,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -115990,6 +135350,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -116007,9 +135370,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -116018,7 +135381,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -116028,7 +135391,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -116038,7 +135401,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -116063,14 +135426,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -116110,7 +135473,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -116227,20 +135590,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -116249,7 +135612,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -116262,26 +135625,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -116303,7 +135675,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -116312,7 +135684,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -116325,26 +135697,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -116364,7 +135745,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -116399,6 +135780,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -116416,9 +135800,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -116427,7 +135811,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -116437,7 +135821,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -116447,7 +135831,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -116472,14 +135856,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -116519,7 +135903,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -116531,17 +135915,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -116664,6 +136071,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -116745,8 +136153,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -116770,6 +136472,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -116788,6 +136495,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -116798,16 +136510,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -116930,6 +136669,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -117006,13 +136746,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -117036,6 +136777,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -117054,6 +136800,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -117064,71 +136815,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -117184,43 +136893,6 @@ components: 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 @@ -117232,10 +136904,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -117251,9 +136919,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -117295,8 +136960,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -117329,7 +136993,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -117345,11 +137008,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -117379,21 +137037,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -117449,43 +137185,6 @@ components: 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 @@ -117497,10 +137196,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -117516,9 +137211,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -117560,8 +137252,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -117594,7 +137285,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -117610,12 +137300,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -117645,21 +137329,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -117715,43 +137476,6 @@ components: 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 @@ -117763,10 +137487,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -117782,9 +137502,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -117826,8 +137543,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -117860,7 +137576,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -117876,11 +137591,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -117910,76 +137620,18 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null env: - name: name value: value @@ -117999,6 +137651,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -118017,130 +137674,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -118576,6 +138124,7 @@ components: status: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -118597,9 +138146,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 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' + $ref: "#/components/schemas/v1.ReplicaSet" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -118607,7 +138156,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -118688,6 +138237,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -118702,7 +138252,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -118711,7 +138260,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -118720,30 +138279,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -118763,7 +138319,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -118779,14 +138335,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -118802,7 +138358,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -118913,20 +138469,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118935,7 +138491,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118948,26 +138504,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -118989,7 +138554,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -118998,7 +138563,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119011,26 +138576,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -119050,7 +138624,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -119085,6 +138659,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -119102,9 +138679,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119113,7 +138690,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119123,7 +138700,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -119133,7 +138710,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -119158,14 +138735,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -119205,7 +138782,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -119322,20 +138899,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119344,7 +138921,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119357,26 +138934,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -119398,7 +138984,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119407,7 +138993,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119420,26 +139006,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -119459,7 +139054,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -119494,6 +139089,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -119511,9 +139109,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119522,7 +139120,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -119532,7 +139130,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -119542,7 +139140,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -119567,14 +139165,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -119614,7 +139212,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -119626,17 +139224,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -119759,6 +139380,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -119840,8 +139462,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -119865,6 +139489,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -119883,6 +139512,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -119898,11 +139532,24 @@ components: name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -120025,6 +139672,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -120106,8 +139754,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -120131,6 +139781,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -120149,6 +139804,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -120160,19 +139820,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 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: @@ -120180,50 +139838,24 @@ components: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -120279,43 +139911,6 @@ components: 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 @@ -120327,10 +139922,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -120346,9 +139937,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -120390,8 +139978,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -120424,7 +140011,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -120440,11 +140026,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -120474,21 +140055,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -120544,43 +140202,6 @@ components: 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 @@ -120592,10 +140213,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -120611,9 +140228,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -120655,8 +140269,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -120689,7 +140302,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -120705,12 +140317,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -120740,21 +140346,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -120810,43 +140494,6 @@ components: 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 @@ -120858,10 +140505,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -120877,9 +140520,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -120921,8 +140561,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -120955,7 +140594,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -120971,11 +140609,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -121005,21 +140638,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -121075,43 +140785,6 @@ components: 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 @@ -121123,10 +140796,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -121142,9 +140811,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -121186,8 +140852,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -121220,7 +140885,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -121236,6 +140900,104 @@ components: 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -121677,15 +141439,15 @@ 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" + \ More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset" format: int32 type: integer selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" required: - selector type: object @@ -121694,6 +141456,7 @@ components: example: fullyLabeledReplicas: 5 replicas: 7 + terminatingReplicas: 9 readyReplicas: 2 conditions: - reason: reason @@ -121710,15 +141473,15 @@ 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: description: Represents the latest available observations of a replica set's current state. items: - $ref: '#/components/schemas/v1.ReplicaSetCondition' + $ref: "#/components/schemas/v1.ReplicaSetCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -121726,8 +141489,8 @@ components: - 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: @@ -121736,13 +141499,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default). format: int32 type: integer required: @@ -121938,6 +141708,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -121952,7 +141723,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -121961,7 +141731,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -121970,30 +141750,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -122013,7 +141790,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -122029,14 +141806,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -122052,7 +141829,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -122163,20 +141940,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122185,7 +141962,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122198,26 +141975,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -122239,7 +142025,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122248,7 +142034,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122261,26 +142047,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -122300,7 +142095,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -122335,6 +142130,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -122352,9 +142150,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122363,7 +142161,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122373,7 +142171,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -122383,7 +142181,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -122408,14 +142206,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -122455,7 +142253,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -122572,20 +142370,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122594,7 +142392,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122607,26 +142405,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -122648,7 +142455,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122657,7 +142464,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122670,26 +142477,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -122709,7 +142525,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -122744,6 +142560,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -122761,9 +142580,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122772,7 +142591,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -122782,7 +142601,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -122792,7 +142611,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -122817,14 +142636,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -122864,7 +142683,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -122876,17 +142695,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -123009,6 +142851,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -123090,8 +142933,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -123115,6 +143252,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -123133,6 +143275,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -123143,16 +143290,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -123275,6 +143449,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -123351,13 +143526,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -123381,6 +143557,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -123399,6 +143580,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -123409,71 +143595,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -123529,43 +143673,6 @@ components: 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 @@ -123577,10 +143684,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -123596,9 +143699,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -123640,8 +143740,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -123674,7 +143773,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -123690,11 +143788,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -123724,21 +143817,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -123794,43 +143965,6 @@ components: 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 @@ -123842,10 +143976,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -123861,9 +143991,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -123905,8 +144032,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -123939,7 +144065,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -123955,12 +144080,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -123990,21 +144109,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -124060,43 +144256,6 @@ components: 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 @@ -124108,10 +144267,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -124127,9 +144282,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -124171,8 +144323,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -124205,7 +144356,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -124221,11 +144371,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -124255,76 +144400,18 @@ components: 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: key: null limits: key: null - 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 @@ -124344,6 +144431,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -124362,130 +144454,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -125189,11 +145172,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.StatefulSetSpec' + $ref: "#/components/schemas/v1.StatefulSetSpec" status: - $ref: '#/components/schemas/v1.StatefulSetStatus' + $ref: "#/components/schemas/v1.StatefulSetStatus" type: object x-kubernetes-group-version-kind: - group: apps @@ -125359,6 +145342,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -125373,7 +145357,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -125382,7 +145365,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -125391,30 +145384,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -125434,7 +145424,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -125450,14 +145440,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -125473,7 +145463,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -125584,20 +145574,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125606,7 +145596,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125619,26 +145609,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -125660,7 +145659,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125669,7 +145668,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125682,26 +145681,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -125721,7 +145729,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -125756,6 +145764,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -125773,9 +145784,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125784,7 +145795,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -125794,7 +145805,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -125804,7 +145815,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -125829,14 +145840,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -125876,7 +145887,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -125993,20 +146004,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -126015,7 +146026,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -126028,26 +146039,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -126069,7 +146089,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -126078,7 +146098,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -126091,26 +146111,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -126130,7 +146159,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -126165,6 +146194,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -126182,9 +146214,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -126193,7 +146225,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -126203,7 +146235,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -126213,7 +146245,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -126238,14 +146270,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -126285,7 +146317,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -126297,17 +146329,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -126430,6 +146485,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -126511,8 +146567,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -126536,6 +146886,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -126554,6 +146909,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -126564,16 +146924,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -126696,6 +147083,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -126772,13 +147160,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -126802,6 +147191,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -126820,6 +147214,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -126830,71 +147229,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -126950,43 +147307,6 @@ components: 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 @@ -126998,10 +147318,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -127017,9 +147333,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -127061,8 +147374,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -127095,7 +147407,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -127111,11 +147422,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -127145,21 +147451,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -127215,43 +147599,6 @@ components: 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 @@ -127263,10 +147610,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -127282,9 +147625,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -127326,8 +147666,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -127360,7 +147699,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -127376,12 +147714,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -127411,21 +147743,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -127481,43 +147890,6 @@ components: 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 @@ -127529,10 +147901,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -127548,9 +147916,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -127592,8 +147957,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -127626,7 +147990,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -127642,11 +148005,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -127676,76 +148034,18 @@ components: 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: key: null limits: key: null - 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 @@ -127765,6 +148065,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -127783,130 +148088,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -128715,6 +148911,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -128729,7 +148926,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -128738,7 +148934,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -128747,30 +148953,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -128790,7 +148993,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -128806,14 +149009,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -128829,7 +149032,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -128940,20 +149143,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128962,7 +149165,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -128975,26 +149178,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -129016,7 +149228,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129025,7 +149237,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129038,26 +149250,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -129077,7 +149298,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -129112,6 +149333,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -129129,9 +149353,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129140,7 +149364,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129150,7 +149374,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -129160,7 +149384,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -129185,14 +149409,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -129232,7 +149456,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -129349,20 +149573,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129371,7 +149595,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129384,26 +149608,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -129425,7 +149658,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129434,7 +149667,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129447,26 +149680,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -129486,7 +149728,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -129521,6 +149763,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -129538,9 +149783,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129549,7 +149794,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -129559,7 +149804,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -129569,7 +149814,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -129594,14 +149839,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -129641,7 +149886,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -129653,17 +149898,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -129786,6 +150054,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -129867,8 +150136,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -129892,6 +150455,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -129910,6 +150478,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -129920,16 +150493,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -130052,6 +150652,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -130128,13 +150729,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -130158,6 +150760,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -130176,6 +150783,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -130186,71 +150798,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -130306,43 +150876,6 @@ components: 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 @@ -130354,10 +150887,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -130373,9 +150902,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -130417,8 +150943,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -130451,7 +150976,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -130467,11 +150991,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -130501,21 +151020,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -130571,43 +151168,6 @@ components: 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 @@ -130619,10 +151179,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -130638,9 +151194,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -130682,8 +151235,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -130716,7 +151268,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -130732,12 +151283,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -130767,21 +151312,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -130837,43 +151459,6 @@ components: 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 @@ -130885,10 +151470,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -130904,9 +151485,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -130948,8 +151526,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -130982,7 +151559,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -130998,11 +151574,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -131032,76 +151603,18 @@ components: 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: key: null limits: key: null - 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 @@ -131121,6 +151634,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -131139,130 +151657,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -131963,7 +152372,7 @@ components: items: description: Items is the list of stateful sets. items: - $ref: '#/components/schemas/v1.StatefulSet' + $ref: "#/components/schemas/v1.StatefulSet" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -131971,7 +152380,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -132088,6 +152497,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -132102,7 +152512,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -132111,7 +152520,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -132120,30 +152539,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -132163,7 +152579,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -132179,14 +152595,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -132202,7 +152618,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -132313,20 +152729,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132335,7 +152751,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132348,26 +152764,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -132389,7 +152814,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132398,7 +152823,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132411,26 +152836,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -132450,7 +152884,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -132485,6 +152919,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -132502,9 +152939,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132513,7 +152950,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132523,7 +152960,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -132533,7 +152970,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -132558,14 +152995,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -132605,7 +153042,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -132722,20 +153159,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132744,7 +153181,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132757,26 +153194,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -132798,7 +153244,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132807,7 +153253,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132820,26 +153266,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -132859,7 +153314,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -132894,6 +153349,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -132911,9 +153369,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132922,7 +153380,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -132932,7 +153390,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -132942,7 +153400,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -132967,14 +153425,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -133014,7 +153472,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -133026,17 +153484,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -133159,6 +153640,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -133240,8 +153722,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -133265,6 +154041,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -133283,6 +154064,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -133293,16 +154079,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -133425,6 +154238,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -133501,13 +154315,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -133531,6 +154346,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -133549,6 +154369,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -133559,71 +154384,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -133679,43 +154462,6 @@ components: 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 @@ -133727,10 +154473,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -133746,9 +154488,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -133790,8 +154529,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -133824,7 +154562,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -133840,11 +154577,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -133874,21 +154606,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -133944,43 +154754,6 @@ components: 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 @@ -133992,10 +154765,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -134011,9 +154780,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -134055,8 +154821,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -134089,7 +154854,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -134105,12 +154869,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -134140,21 +154898,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -134210,43 +155045,6 @@ components: 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 @@ -134258,10 +155056,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -134277,9 +155071,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -134321,8 +155112,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -134355,7 +155145,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -134371,11 +155160,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -134405,76 +155189,18 @@ components: 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: key: null limits: key: null - 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 @@ -134494,6 +155220,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -134512,130 +155243,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -135315,9 +155937,9 @@ components: format: int32 type: integer ordinals: - $ref: '#/components/schemas/v1.StatefulSetOrdinals' + $ref: "#/components/schemas/v1.StatefulSetOrdinals" persistentVolumeClaimRetentionPolicy: - $ref: '#/components/schemas/v1.StatefulSetPersistentVolumeClaimRetentionPolicy' + $ref: "#/components/schemas/v1.StatefulSetPersistentVolumeClaimRetentionPolicy" podManagementPolicy: description: "podManagementPolicy controls how pods are created during initial\ \ scale up, when replacing pods on nodes, or when scaling down. The default\ @@ -135343,7 +155965,7 @@ components: format: int32 type: integer selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" serviceName: description: "serviceName is the name of the service that governs this StatefulSet.\ \ This service must exist before the StatefulSet, and is responsible for\ @@ -135352,9 +155974,9 @@ components: \ where \"pod-specific-string\" is managed by the StatefulSet controller." type: string template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" updateStrategy: - $ref: '#/components/schemas/v1.StatefulSetUpdateStrategy' + $ref: "#/components/schemas/v1.StatefulSetUpdateStrategy" volumeClaimTemplates: description: "volumeClaimTemplates is a list of claims that pods are allowed\ \ to reference. The StatefulSet controller is responsible for mapping\ @@ -135364,12 +155986,11 @@ components: \ list takes precedence over any volumes in the template, with the same\ \ name." items: - $ref: '#/components/schemas/v1.PersistentVolumeClaim' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" type: array x-kubernetes-list-type: atomic required: - selector - - serviceName - template type: object v1.StatefulSetStatus: @@ -135411,7 +156032,7 @@ components: description: Represents the latest available observations of a statefulset's current state. items: - $ref: '#/components/schemas/v1.StatefulSetCondition' + $ref: "#/components/schemas/v1.StatefulSetCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -135465,7 +156086,7 @@ components: maxUnavailable: maxUnavailable properties: rollingUpdate: - $ref: '#/components/schemas/v1.RollingUpdateStatefulSetStrategy' + $ref: "#/components/schemas/v1.RollingUpdateStatefulSetStrategy" type: description: Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. @@ -135571,9 +156192,9 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" status: - $ref: '#/components/schemas/v1.SelfSubjectReviewStatus' + $ref: "#/components/schemas/v1.SelfSubjectReviewStatus" type: object x-kubernetes-group-version-kind: - group: authentication.k8s.io @@ -135597,7 +156218,7 @@ components: username: username properties: userInfo: - $ref: '#/components/schemas/v1.UserInfo' + $ref: "#/components/schemas/v1.UserInfo" type: object authentication.v1.TokenRequest: description: TokenRequest requests a token for a given service account. @@ -135675,11 +156296,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.TokenRequestSpec' + $ref: "#/components/schemas/v1.TokenRequestSpec" status: - $ref: '#/components/schemas/v1.TokenRequestStatus' + $ref: "#/components/schemas/v1.TokenRequestStatus" required: - spec type: object @@ -135715,7 +156336,7 @@ components: type: array x-kubernetes-list-type: atomic boundObjectRef: - $ref: '#/components/schemas/v1.BoundObjectReference' + $ref: "#/components/schemas/v1.BoundObjectReference" expirationSeconds: description: ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity @@ -135829,321 +156450,51 @@ components: \ 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/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 - 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: - - 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 - 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 - 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' + $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: @@ -136154,8 +156505,156 @@ components: - groups username: username properties: - userInfo: - $ref: '#/components/schemas/v1.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 @@ -136226,9 +156725,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 @@ -136249,11 +156774,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.SubjectAccessReviewSpec' + $ref: "#/components/schemas/v1.SubjectAccessReviewSpec" status: - $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' + $ref: "#/components/schemas/v1.SubjectAccessReviewStatus" required: - spec type: object @@ -136312,15 +156837,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. @@ -136462,9 +157017,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: @@ -136484,11 +157065,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.SelfSubjectAccessReviewSpec' + $ref: "#/components/schemas/v1.SelfSubjectAccessReviewSpec" status: - $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' + $ref: "#/components/schemas/v1.SubjectAccessReviewStatus" required: - spec type: object @@ -136509,16 +157090,42 @@ 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: nonResourceAttributes: - $ref: '#/components/schemas/v1.NonResourceAttributes' + $ref: "#/components/schemas/v1.NonResourceAttributes" resourceAttributes: - $ref: '#/components/schemas/v1.ResourceAttributes' + $ref: "#/components/schemas/v1.ResourceAttributes" type: object v1.SelfSubjectRulesReview: description: "SelfSubjectRulesReview enumerates the set of actions the current\ @@ -136634,11 +157241,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.SelfSubjectRulesReviewSpec' + $ref: "#/components/schemas/v1.SelfSubjectRulesReviewSpec" status: - $ref: '#/components/schemas/v1.SubjectRulesReviewStatus' + $ref: "#/components/schemas/v1.SubjectRulesReviewStatus" required: - spec type: object @@ -136724,9 +157331,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 @@ -136747,11 +157380,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.SubjectAccessReviewSpec' + $ref: "#/components/schemas/v1.SubjectAccessReviewSpec" status: - $ref: '#/components/schemas/v1.SubjectAccessReviewStatus' + $ref: "#/components/schemas/v1.SubjectAccessReviewStatus" required: - spec type: object @@ -136780,9 +157413,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 @@ -136803,9 +157462,9 @@ components: type: array x-kubernetes-list-type: atomic nonResourceAttributes: - $ref: '#/components/schemas/v1.NonResourceAttributes' + $ref: "#/components/schemas/v1.NonResourceAttributes" resourceAttributes: - $ref: '#/components/schemas/v1.ResourceAttributes' + $ref: "#/components/schemas/v1.ResourceAttributes" uid: description: UID information about the requesting user. type: string @@ -136911,7 +157570,7 @@ components: \ to perform on non-resources. The list ordering isn't significant, may\ \ contain duplicates, and possibly be incomplete." items: - $ref: '#/components/schemas/v1.NonResourceRule' + $ref: "#/components/schemas/v1.NonResourceRule" type: array x-kubernetes-list-type: atomic resourceRules: @@ -136919,7 +157578,7 @@ components: \ to perform on resources. The list ordering isn't significant, may contain\ \ duplicates, and possibly be incomplete." items: - $ref: '#/components/schemas/v1.ResourceRule' + $ref: "#/components/schemas/v1.ResourceRule" type: array x-kubernetes-list-type: atomic required: @@ -137026,11 +157685,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerSpec' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerSpec" status: - $ref: '#/components/schemas/v1.HorizontalPodAutoscalerStatus' + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerStatus" type: object x-kubernetes-group-version-kind: - group: autoscaling @@ -137182,7 +157841,7 @@ components: items: description: items is the list of horizontal pod autoscaler objects. items: - $ref: '#/components/schemas/v1.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -137190,7 +157849,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -137225,7 +157884,7 @@ components: format: int32 type: integer scaleTargetRef: - $ref: '#/components/schemas/v1.CrossVersionObjectReference' + $ref: "#/components/schemas/v1.CrossVersionObjectReference" targetCPUUtilizationPercentage: description: targetCPUUtilizationPercentage is the target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not @@ -137345,11 +158004,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ScaleSpec' + $ref: "#/components/schemas/v1.ScaleSpec" status: - $ref: '#/components/schemas/v1.ScaleStatus' + $ref: "#/components/schemas/v1.ScaleStatus" type: object x-kubernetes-group-version-kind: - group: autoscaling @@ -137414,7 +158073,7 @@ components: description: name is the name of the resource in question. type: string target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - container - name @@ -137440,7 +158099,7 @@ components: target type: string current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" name: description: name is the name of the resource in question. type: string @@ -137498,9 +158157,9 @@ components: value: value properties: metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - metric - target @@ -137531,9 +158190,9 @@ components: key: matchLabels properties: current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" required: - current - metric @@ -137566,12 +158225,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 the beta HPAConfigurableTolerance feature gate to be enabled.) example: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -137582,13 +158241,16 @@ 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" + \ 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' + $ref: "#/components/schemas/v2.HPAScalingPolicy" type: array x-kubernetes-list-type: atomic selectPolicy: @@ -137604,6 +158266,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\ @@ -137845,6 +158545,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -137855,6 +158556,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -138050,11 +158752,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerSpec' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerSpec" status: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerStatus' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerStatus" type: object x-kubernetes-group-version-kind: - group: autoscaling @@ -138077,6 +158779,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -138087,11 +158790,12 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance properties: scaleDown: - $ref: '#/components/schemas/v2.HPAScalingRules' + $ref: "#/components/schemas/v2.HPAScalingRules" scaleUp: - $ref: '#/components/schemas/v2.HPAScalingRules' + $ref: "#/components/schemas/v2.HPAScalingRules" type: object v2.HorizontalPodAutoscalerCondition: description: HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler @@ -138372,6 +159076,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -138382,6 +159087,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -138800,6 +159506,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -138810,6 +159517,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind @@ -139002,7 +159710,7 @@ components: items: description: items is the list of horizontal pod autoscaler objects. items: - $ref: '#/components/schemas/v2.HorizontalPodAutoscaler' + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -139010,7 +159718,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -139210,6 +159918,7 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleDown: selectPolicy: selectPolicy stabilizationWindowSeconds: 1 @@ -139220,13 +159929,14 @@ components: - periodSeconds: 0 type: type value: 6 + tolerance: tolerance scaleTargetRef: apiVersion: apiVersion kind: kind name: name properties: behavior: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerBehavior' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerBehavior" maxReplicas: description: maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. @@ -139242,7 +159952,7 @@ components: \ more information about how each type of metric must respond. If not\ \ set, the default metric will be set to 80% average CPU utilization." items: - $ref: '#/components/schemas/v2.MetricSpec' + $ref: "#/components/schemas/v2.MetricSpec" type: array x-kubernetes-list-type: atomic minReplicas: @@ -139254,7 +159964,7 @@ components: format: int32 type: integer scaleTargetRef: - $ref: '#/components/schemas/v2.CrossVersionObjectReference' + $ref: "#/components/schemas/v2.CrossVersionObjectReference" required: - maxReplicas - scaleTargetRef @@ -139447,7 +160157,7 @@ components: \ to scale its target, and indicates whether or not those conditions are\ \ met." items: - $ref: '#/components/schemas/v2.HorizontalPodAutoscalerCondition' + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -139458,7 +160168,7 @@ components: description: currentMetrics is the last read state of the metrics used by this autoscaler. items: - $ref: '#/components/schemas/v2.MetricStatus' + $ref: "#/components/schemas/v2.MetricStatus" type: array x-kubernetes-list-type: atomic currentReplicas: @@ -139509,7 +160219,7 @@ components: description: name is the name of the given metric type: string selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" required: - name type: object @@ -139605,20 +160315,19 @@ components: value: value properties: containerResource: - $ref: '#/components/schemas/v2.ContainerResourceMetricSource' + $ref: "#/components/schemas/v2.ContainerResourceMetricSource" external: - $ref: '#/components/schemas/v2.ExternalMetricSource' + $ref: "#/components/schemas/v2.ExternalMetricSource" object: - $ref: '#/components/schemas/v2.ObjectMetricSource' + $ref: "#/components/schemas/v2.ObjectMetricSource" pods: - $ref: '#/components/schemas/v2.PodsMetricSource' + $ref: "#/components/schemas/v2.PodsMetricSource" resource: - $ref: '#/components/schemas/v2.ResourceMetricSource' + $ref: "#/components/schemas/v2.ResourceMetricSource" type: 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" + , each mapping to a matching field in the object." type: string required: - type @@ -139709,20 +160418,19 @@ components: key: matchLabels properties: containerResource: - $ref: '#/components/schemas/v2.ContainerResourceMetricStatus' + $ref: "#/components/schemas/v2.ContainerResourceMetricStatus" external: - $ref: '#/components/schemas/v2.ExternalMetricStatus' + $ref: "#/components/schemas/v2.ExternalMetricStatus" object: - $ref: '#/components/schemas/v2.ObjectMetricStatus' + $ref: "#/components/schemas/v2.ObjectMetricStatus" pods: - $ref: '#/components/schemas/v2.PodsMetricStatus' + $ref: "#/components/schemas/v2.PodsMetricStatus" resource: - $ref: '#/components/schemas/v2.ResourceMetricStatus' + $ref: "#/components/schemas/v2.ResourceMetricStatus" type: 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" + \ to a matching field in the object." type: string required: - type @@ -139947,11 +160655,11 @@ components: value: value properties: describedObject: - $ref: '#/components/schemas/v2.CrossVersionObjectReference' + $ref: "#/components/schemas/v2.CrossVersionObjectReference" metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - describedObject - metric @@ -139987,11 +160695,11 @@ components: key: matchLabels properties: current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" describedObject: - $ref: '#/components/schemas/v2.CrossVersionObjectReference' + $ref: "#/components/schemas/v2.CrossVersionObjectReference" metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" required: - current - describedObject @@ -140026,9 +160734,9 @@ components: value: value properties: metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - metric - target @@ -140059,9 +160767,9 @@ components: key: matchLabels properties: current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" metric: - $ref: '#/components/schemas/v2.MetricIdentifier' + $ref: "#/components/schemas/v2.MetricIdentifier" required: - current - metric @@ -140086,7 +160794,7 @@ components: description: name is the name of the resource in question. type: string target: - $ref: '#/components/schemas/v2.MetricTarget' + $ref: "#/components/schemas/v2.MetricTarget" required: - name - target @@ -140105,7 +160813,7 @@ components: name: name properties: current: - $ref: '#/components/schemas/v2.MetricValueStatus' + $ref: "#/components/schemas/v2.MetricValueStatus" name: description: name is the name of the resource in question. type: string @@ -140284,6 +160992,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -140298,7 +161007,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -140307,7 +161015,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -140316,30 +161034,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -140359,7 +161074,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -140375,14 +161090,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -140398,7 +161113,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -140509,20 +161224,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140531,7 +161246,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140544,26 +161259,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -140585,7 +161309,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140594,7 +161318,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140607,26 +161331,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -140646,7 +161379,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -140681,6 +161414,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -140698,9 +161434,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140709,7 +161445,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140719,7 +161455,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -140729,7 +161465,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -140754,14 +161490,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -140801,7 +161537,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -140918,20 +161654,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140940,7 +161676,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -140953,26 +161689,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -140994,7 +161739,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141003,7 +161748,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141016,26 +161761,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -141055,7 +161809,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -141090,6 +161844,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -141107,9 +161864,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141118,7 +161875,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -141128,7 +161885,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -141138,7 +161895,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -141163,14 +161920,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -141210,7 +161967,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -141222,17 +161979,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -141355,6 +162135,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -141436,8 +162217,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -141461,6 +162244,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -141479,6 +162267,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -141494,11 +162287,24 @@ components: name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -141621,6 +162427,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -141702,8 +162509,315 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -141727,6 +162841,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -141745,6 +162864,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -141755,71 +162879,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -141875,43 +162957,6 @@ components: 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 @@ -141923,10 +162968,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -141942,9 +162983,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -141986,8 +163024,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -142020,7 +163057,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -142036,11 +163072,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -142070,21 +163101,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -142140,43 +163249,6 @@ components: 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 @@ -142188,10 +163260,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -142207,9 +163275,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -142251,8 +163316,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -142285,7 +163349,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -142301,12 +163364,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -142336,21 +163393,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -142406,43 +163540,6 @@ components: 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 @@ -142454,10 +163551,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -142473,9 +163566,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -142517,8 +163607,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -142551,7 +163640,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -142567,11 +163655,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -142601,76 +163684,18 @@ components: 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: key: null limits: key: null - 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 @@ -142690,6 +163715,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -142708,130 +163738,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -143340,11 +164261,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.CronJobSpec' + $ref: "#/components/schemas/v1.CronJobSpec" status: - $ref: '#/components/schemas/v1.CronJobStatus' + $ref: "#/components/schemas/v1.CronJobStatus" type: object x-kubernetes-group-version-kind: - group: batch @@ -143531,6 +164452,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -143545,7 +164467,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -143554,7 +164475,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -143563,30 +164494,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -143606,7 +164534,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -143622,14 +164550,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -143645,7 +164573,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -143756,20 +164684,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -143778,7 +164706,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -143791,26 +164719,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -143832,7 +164769,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -143841,7 +164778,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -143854,26 +164791,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -143893,7 +164839,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -143928,6 +164874,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -143945,9 +164894,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -143956,7 +164905,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -143966,7 +164915,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -143976,7 +164925,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -144001,14 +164950,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -144048,7 +164997,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -144165,20 +165114,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144187,7 +165136,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144200,26 +165149,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -144241,7 +165199,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144250,7 +165208,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144263,26 +165221,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -144302,7 +165269,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -144337,6 +165304,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -144354,9 +165324,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144365,7 +165335,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -144375,7 +165345,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -144385,7 +165355,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -144410,14 +165380,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -144457,7 +165427,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -144469,17 +165439,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -144602,6 +165595,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -144683,8 +165677,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -144708,6 +165704,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -144726,6 +165727,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -144741,11 +165747,24 @@ components: name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -144868,6 +165887,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -144949,8 +165969,315 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -144974,6 +166301,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -144992,6 +166324,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -145002,71 +166339,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -145122,43 +166417,6 @@ components: 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 @@ -145170,10 +166428,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -145189,9 +166443,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -145233,8 +166484,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -145267,7 +166517,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -145283,11 +166532,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -145317,21 +166561,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -145387,43 +166709,6 @@ components: 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 @@ -145435,10 +166720,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -145454,9 +166735,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -145498,8 +166776,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -145532,7 +166809,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -145548,12 +166824,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -145583,21 +166853,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -145653,43 +167000,6 @@ components: 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 @@ -145701,10 +167011,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -145720,9 +167026,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -145764,8 +167067,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -145798,7 +167100,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -145814,11 +167115,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -145848,76 +167144,18 @@ components: 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: key: null limits: key: null - 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 @@ -145937,6 +167175,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -145955,130 +167198,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -146743,6 +167877,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -146757,7 +167892,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -146766,7 +167900,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -146775,30 +167919,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -146818,7 +167959,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -146834,14 +167975,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -146857,7 +167998,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -146968,20 +168109,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -146990,7 +168131,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147003,26 +168144,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -147044,7 +168194,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147053,7 +168203,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147066,26 +168216,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -147105,7 +168264,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -147140,6 +168299,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -147157,9 +168319,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147168,7 +168330,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147178,7 +168340,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -147188,7 +168350,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -147213,14 +168375,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -147260,7 +168422,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -147377,20 +168539,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147399,7 +168561,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147412,26 +168574,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -147453,7 +168624,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147462,7 +168633,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147475,26 +168646,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -147514,7 +168694,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -147549,6 +168729,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -147566,9 +168749,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147577,7 +168760,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -147587,7 +168770,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -147597,7 +168780,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -147622,14 +168805,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -147669,7 +168852,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -147681,17 +168864,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -147814,6 +169020,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -147895,8 +169102,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -147920,6 +169129,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -147938,6 +169152,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -147953,11 +169172,24 @@ components: name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -148080,6 +169312,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -148161,8 +169394,315 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -148186,6 +169726,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -148204,6 +169749,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -148214,71 +169764,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -148334,43 +169842,6 @@ components: 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 @@ -148382,10 +169853,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -148401,9 +169868,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -148445,8 +169909,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -148479,7 +169942,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -148495,11 +169957,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -148529,21 +169986,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -148599,43 +170134,6 @@ components: 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 @@ -148647,10 +170145,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -148666,9 +170160,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -148710,8 +170201,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -148744,7 +170234,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -148760,12 +170249,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -148795,21 +170278,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -148865,43 +170425,6 @@ components: 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 @@ -148913,10 +170436,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -148932,9 +170451,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -148976,8 +170492,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -149010,7 +170525,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -149026,11 +170540,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -149060,76 +170569,18 @@ components: 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: key: null limits: key: null - 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 @@ -149149,6 +170600,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -149167,130 +170623,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -149796,7 +171143,7 @@ components: items: description: items is the list of CronJobs. items: - $ref: '#/components/schemas/v1.CronJob' + $ref: "#/components/schemas/v1.CronJob" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -149804,7 +171151,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -149937,6 +171284,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -149951,7 +171299,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -149960,7 +171307,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -149969,30 +171326,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -150012,7 +171366,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -150028,14 +171382,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -150051,7 +171405,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -150162,20 +171516,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150184,7 +171538,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150197,26 +171551,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -150238,7 +171601,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150247,7 +171610,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150260,26 +171623,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -150299,7 +171671,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -150334,6 +171706,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -150351,9 +171726,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150362,7 +171737,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150372,7 +171747,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -150382,7 +171757,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -150407,14 +171782,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -150454,7 +171829,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -150571,20 +171946,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150593,7 +171968,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150606,26 +171981,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -150647,7 +172031,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150656,7 +172040,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150669,26 +172053,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -150708,7 +172101,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -150743,6 +172136,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -150760,9 +172156,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150771,7 +172167,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -150781,7 +172177,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -150791,7 +172187,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -150816,14 +172212,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -150863,7 +172259,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -150875,17 +172271,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -151008,6 +172427,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -151089,8 +172509,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -151114,6 +172828,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -151132,6 +172851,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -151142,16 +172866,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -151274,6 +173025,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -151350,13 +173102,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -151380,6 +173133,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -151398,6 +173156,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -151408,71 +173171,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -151528,43 +173249,6 @@ components: 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 @@ -151576,10 +173260,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -151595,9 +173275,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -151639,8 +173316,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -151673,7 +173349,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -151689,11 +173364,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -151723,21 +173393,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -151793,43 +173541,6 @@ components: 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 @@ -151841,10 +173552,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -151860,9 +173567,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -151904,8 +173608,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -151938,7 +173641,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -151954,12 +173656,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -151989,21 +173685,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -152059,43 +173832,6 @@ components: 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 @@ -152107,10 +173843,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -152126,9 +173858,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -152170,8 +173899,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -152204,7 +173932,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -152220,11 +173947,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -152254,76 +173976,18 @@ components: 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: key: null limits: key: null - 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 @@ -152343,6 +174007,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -152361,130 +174030,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -152976,7 +174536,7 @@ components: format: int32 type: integer jobTemplate: - $ref: '#/components/schemas/v1.JobTemplateSpec' + $ref: "#/components/schemas/v1.JobTemplateSpec" schedule: description: "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron." type: string @@ -153036,7 +174596,7 @@ components: active: description: A list of pointers to currently running jobs. items: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" type: array x-kubernetes-list-type: atomic lastScheduleTime: @@ -153170,6 +174730,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -153184,7 +174745,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -153193,7 +174753,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -153202,30 +174772,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -153245,7 +174812,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -153261,14 +174828,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -153284,7 +174851,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -153395,20 +174962,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153417,7 +174984,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153430,26 +174997,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -153471,7 +175047,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153480,7 +175056,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153493,26 +175069,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -153532,7 +175117,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -153567,6 +175152,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -153584,9 +175172,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153595,7 +175183,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153605,7 +175193,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -153615,7 +175203,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -153640,14 +175228,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -153687,7 +175275,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -153804,20 +175392,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153826,7 +175414,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153839,26 +175427,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -153880,7 +175477,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153889,7 +175486,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -153902,26 +175499,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -153941,7 +175547,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -153976,6 +175582,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -153993,9 +175602,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -154004,7 +175613,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -154014,7 +175623,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -154024,7 +175633,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -154049,14 +175658,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -154096,7 +175705,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -154108,17 +175717,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -154241,6 +175873,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -154322,8 +175955,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -154347,6 +176274,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -154365,6 +176297,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -154375,16 +176312,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -154507,6 +176471,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -154583,13 +176548,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -154613,6 +176579,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -154631,6 +176602,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -154641,71 +176617,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -154761,43 +176695,6 @@ components: 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 @@ -154809,10 +176706,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -154828,9 +176721,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -154872,8 +176762,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -154906,7 +176795,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -154922,11 +176810,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -154956,21 +176839,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -155026,43 +176987,6 @@ components: 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 @@ -155074,10 +176998,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -155093,9 +177013,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -155137,8 +177054,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -155171,7 +177087,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -155187,12 +177102,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -155222,21 +177131,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -155292,43 +177278,6 @@ components: 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 @@ -155340,10 +177289,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -155359,9 +177304,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -155403,8 +177345,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -155437,7 +177378,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -155453,11 +177393,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -155487,76 +177422,18 @@ components: 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: key: null limits: key: null - 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 @@ -155576,6 +177453,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -155594,130 +177476,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -156233,11 +178006,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.JobSpec' + $ref: "#/components/schemas/v1.JobSpec" status: - $ref: '#/components/schemas/v1.JobStatus' + $ref: "#/components/schemas/v1.JobStatus" type: object x-kubernetes-group-version-kind: - group: batch @@ -156408,6 +178181,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -156422,7 +178196,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -156431,7 +178204,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -156440,30 +178223,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -156483,7 +178263,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -156499,14 +178279,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -156522,7 +178302,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -156633,20 +178413,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156655,7 +178435,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156668,26 +178448,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -156709,7 +178498,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156718,7 +178507,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156731,26 +178520,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -156770,7 +178568,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -156805,6 +178603,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -156822,9 +178623,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156833,7 +178634,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -156843,7 +178644,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -156853,7 +178654,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -156878,14 +178679,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -156925,7 +178726,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -157042,20 +178843,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -157064,7 +178865,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -157077,26 +178878,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -157118,7 +178928,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -157127,7 +178937,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -157140,26 +178950,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -157179,7 +178998,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -157214,6 +179033,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -157231,9 +179053,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -157242,7 +179064,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -157252,7 +179074,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -157262,7 +179084,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -157287,14 +179109,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -157334,7 +179156,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -157346,17 +179168,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -157479,6 +179324,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -157560,8 +179406,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -157585,6 +179725,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -157603,6 +179748,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -157613,16 +179763,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -157745,6 +179922,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -157821,13 +179999,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -157851,6 +180030,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -157869,6 +180053,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -157879,71 +180068,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -157999,43 +180146,6 @@ components: 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 @@ -158047,10 +180157,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -158066,9 +180172,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -158110,8 +180213,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -158144,7 +180246,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -158160,11 +180261,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -158194,21 +180290,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -158264,43 +180438,6 @@ components: 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 @@ -158312,10 +180449,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -158331,9 +180464,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -158375,8 +180505,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -158409,7 +180538,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -158425,12 +180553,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -158460,21 +180582,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -158530,43 +180729,6 @@ components: 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 @@ -158578,10 +180740,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -158597,9 +180755,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -158641,8 +180796,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -158675,7 +180829,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -158691,11 +180844,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -158725,76 +180873,18 @@ components: 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: key: null limits: key: null - 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 @@ -158814,6 +180904,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -158832,130 +180927,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -159577,6 +181563,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -159591,7 +181578,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -159600,7 +181586,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -159609,30 +181605,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -159652,7 +181645,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -159668,14 +181661,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -159691,7 +181684,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -159802,20 +181795,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159824,7 +181817,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159837,26 +181830,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -159878,7 +181880,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159887,7 +181889,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -159900,26 +181902,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -159939,7 +181950,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -159974,6 +181985,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -159991,9 +182005,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160002,7 +182016,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160012,7 +182026,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -160022,7 +182036,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -160047,14 +182061,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -160094,7 +182108,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -160211,20 +182225,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160233,7 +182247,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160246,26 +182260,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -160287,7 +182310,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160296,7 +182319,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160309,26 +182332,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -160348,7 +182380,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -160383,6 +182415,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -160400,9 +182435,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160411,7 +182446,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -160421,7 +182456,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -160431,7 +182466,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -160456,14 +182491,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -160503,7 +182538,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -160515,17 +182550,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -160648,6 +182706,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -160729,8 +182788,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -160754,6 +183107,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -160772,6 +183130,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -160782,16 +183145,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -160914,6 +183304,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -160990,13 +183381,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -161020,6 +183412,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -161038,6 +183435,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -161048,71 +183450,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -161168,43 +183528,6 @@ components: 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 @@ -161216,10 +183539,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -161235,9 +183554,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -161279,8 +183595,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -161313,7 +183628,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -161329,11 +183643,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -161363,21 +183672,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -161433,43 +183820,6 @@ components: 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 @@ -161481,10 +183831,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -161500,9 +183846,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -161544,8 +183887,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -161578,7 +183920,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -161594,12 +183935,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -161629,21 +183964,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -161699,43 +184111,6 @@ components: 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 @@ -161747,10 +184122,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -161766,9 +184137,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -161810,8 +184178,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -161844,7 +184211,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -161860,11 +184226,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -161894,76 +184255,18 @@ components: 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: key: null limits: key: null - 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 @@ -161983,6 +184286,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -162001,130 +184309,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -162637,7 +184836,7 @@ components: items: description: items is the list of Jobs. items: - $ref: '#/components/schemas/v1.Job' + $ref: "#/components/schemas/v1.Job" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -162645,7 +184844,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -162727,6 +184926,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -162741,7 +184941,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -162750,7 +184949,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -162759,30 +184968,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -162802,7 +185008,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -162818,14 +185024,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -162841,7 +185047,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -162952,20 +185158,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162974,7 +185180,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -162987,26 +185193,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -163028,7 +185243,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163037,7 +185252,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163050,26 +185265,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -163089,7 +185313,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -163124,6 +185348,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -163141,9 +185368,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163152,7 +185379,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163162,7 +185389,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -163172,7 +185399,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -163197,14 +185424,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -163244,7 +185471,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -163361,20 +185588,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163383,7 +185610,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163396,26 +185623,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -163437,7 +185673,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163446,7 +185682,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163459,26 +185695,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -163498,7 +185743,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -163533,6 +185778,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -163550,9 +185798,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163561,7 +185809,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -163571,7 +185819,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -163581,7 +185829,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -163606,14 +185854,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -163653,7 +185901,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -163665,17 +185913,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -163798,6 +186069,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -163879,8 +186151,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -163904,6 +186470,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -163922,6 +186493,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -163932,16 +186508,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -164064,6 +186667,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -164140,13 +186744,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -164170,6 +186775,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -164188,6 +186798,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -164198,71 +186813,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -164318,43 +186891,6 @@ components: 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 @@ -164366,10 +186902,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -164385,9 +186917,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -164429,8 +186958,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -164463,7 +186991,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -164479,11 +187006,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -164513,21 +187035,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -164583,43 +187183,6 @@ components: 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 @@ -164631,10 +187194,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -164650,9 +187209,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -164694,8 +187250,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -164728,7 +187283,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -164744,12 +187298,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -164779,21 +187327,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -164849,43 +187474,6 @@ components: 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 @@ -164897,10 +187485,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -164916,9 +187500,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -164960,8 +187541,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -164994,7 +187574,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -165010,11 +187589,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -165044,76 +187618,18 @@ components: 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: key: null limits: key: null - 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 @@ -165133,6 +187649,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -165151,130 +187672,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -165758,8 +188170,9 @@ components: format: int64 type: integer backoffLimit: - description: Specifies the number of retries before marking this job failed. - Defaults to 6 + description: "Specifies the number of retries before marking this job failed.\ + \ Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified.\ + \ When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647." format: int32 type: integer backoffLimitPerIndex: @@ -165767,9 +188180,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 beta-level. It can be used when the `JobBackoffLimitPerIndex` feature\ - \ gate is enabled (enabled by default)." + \ the Pod's restart policy is Never. The field is immutable." format: int32 type: integer completionMode: @@ -165792,10 +188203,15 @@ components: 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 64 characters. - - This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default). + 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." type: string manualSelector: description: "manualSelector controls generation of pod labels and pod selectors.\ @@ -165815,9 +188231,7 @@ components: \ execution of all of its indexes and is marked with the `Complete` Job\ \ condition. It can only be specified when backoffLimitPerIndex is set.\ \ It can be null or up to completions. It is required and must be less\ - \ than or equal to 10^4 when is completions greater than 10^5. This field\ - \ is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature\ - \ gate is enabled (enabled by default)." + \ than or equal to 10^4 when is completions greater than 10^5." format: int32 type: integer parallelism: @@ -165829,7 +188243,7 @@ components: format: int32 type: integer podFailurePolicy: - $ref: '#/components/schemas/v1.PodFailurePolicy' + $ref: "#/components/schemas/v1.PodFailurePolicy" podReplacementPolicy: description: |- podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods @@ -165837,12 +188251,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 beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. + When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. type: string selector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" successPolicy: - $ref: '#/components/schemas/v1.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\ @@ -165854,7 +188268,7 @@ components: \ too. Defaults to false." type: boolean template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" ttlSecondsAfterFinished: description: "ttlSecondsAfterFinished limits the lifetime of a Job that\ \ has finished execution (either Complete or Failed). If this field is\ @@ -165932,7 +188346,7 @@ components: More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ items: - $ref: '#/components/schemas/v1.JobCondition' + $ref: "#/components/schemas/v1.JobCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: atomic @@ -165943,13 +188357,19 @@ components: format: int32 type: integer failedIndexes: - 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. - - This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled 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. + description: The number of active pods which have a Ready condition and + are not terminating (without a deletionTimestamp). format: int32 type: integer startTime: @@ -165973,7 +188393,7 @@ components: format: int32 type: integer uncountedTerminatedPods: - $ref: '#/components/schemas/v1.UncountedTerminatedPods' + $ref: "#/components/schemas/v1.UncountedTerminatedPods" type: object v1.JobTemplateSpec: description: JobTemplateSpec describes the data a Job should have when created @@ -166095,6 +188515,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -166109,7 +188530,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -166118,7 +188538,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -166127,30 +188557,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -166170,7 +188597,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -166186,14 +188613,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -166209,7 +188636,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -166320,20 +188747,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166342,7 +188769,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166355,26 +188782,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -166396,7 +188832,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166405,7 +188841,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166418,26 +188854,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -166457,7 +188902,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -166492,6 +188937,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -166509,9 +188957,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166520,7 +188968,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166530,7 +188978,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -166540,7 +188988,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -166565,14 +189013,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -166612,7 +189060,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -166729,20 +189177,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166751,7 +189199,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166764,26 +189212,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -166805,7 +189262,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166814,7 +189271,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166827,26 +189284,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -166866,7 +189332,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -166901,6 +189367,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -166918,9 +189387,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166929,7 +189398,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -166939,7 +189408,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -166949,7 +189418,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -166974,14 +189443,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -167021,7 +189490,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -167033,17 +189502,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -167166,6 +189658,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -167247,8 +189740,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -167272,6 +190059,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -167290,6 +190082,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -167300,16 +190097,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -167432,6 +190256,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -167508,13 +190333,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -167538,6 +190364,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -167556,6 +190387,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -167566,71 +190402,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -167686,43 +190480,6 @@ components: 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 @@ -167734,10 +190491,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -167753,9 +190506,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -167797,8 +190547,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -167831,7 +190580,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -167847,11 +190595,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -167881,21 +190624,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -167951,43 +190772,6 @@ components: 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 @@ -167999,10 +190783,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -168018,9 +190798,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -168062,8 +190839,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -168096,7 +190872,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -168112,12 +190887,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -168147,21 +190916,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -168217,43 +191063,6 @@ components: 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 @@ -168265,10 +191074,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -168284,9 +191089,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -168328,8 +191130,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -168362,7 +191163,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -168378,11 +191178,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -168412,76 +191207,18 @@ components: 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: key: null limits: key: null - 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 @@ -168501,6 +191238,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -168508,141 +191250,32 @@ components: 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: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args 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: @@ -169118,9 +191751,9 @@ components: succeededIndexes: succeededIndexes properties: metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.JobSpec' + $ref: "#/components/schemas/v1.JobSpec" type: object v1.PodFailurePolicy: description: PodFailurePolicy describes how failed pods influence the backoffLimit. @@ -169158,7 +191791,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.PodFailurePolicyRule" type: array x-kubernetes-list-type: atomic required: @@ -169229,7 +191862,6 @@ components: it is required that specified type equals the pod condition type. type: string required: - - status - type type: object v1.PodFailurePolicyRule: @@ -169258,8 +191890,6 @@ components: running pods are terminated. - FailIndex: indicates that the pod's index is marked as Failed and will not be restarted. - This value is beta-level. It can be used when the - `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the @@ -169267,14 +191897,14 @@ components: 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' + $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' + $ref: "#/components/schemas/v1.PodFailurePolicyOnPodConditionsPattern" type: array x-kubernetes-list-type: atomic required: @@ -169293,13 +191923,13 @@ components: 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\ + \ Once any of the rules are met, the \"SuccessCriteriaMet\" 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' + $ref: "#/components/schemas/v1.SuccessPolicyRule" type: array x-kubernetes-list-type: atomic required: @@ -169464,11 +192094,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.CertificateSigningRequestSpec' + $ref: "#/components/schemas/v1.CertificateSigningRequestSpec" status: - $ref: '#/components/schemas/v1.CertificateSigningRequestStatus' + $ref: "#/components/schemas/v1.CertificateSigningRequestStatus" required: - spec type: object @@ -169590,36 +192220,1019 @@ components: apiVersion: apiVersion kind: kind spec: - request: request - uid: uid - expirationSeconds: 0 - extra: - key: - - extra - - extra - groups: - - groups - - groups - usages: - - usages - - usages + 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 + 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 + 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 + v1beta1.PodCertificateRequest: + description: |- + PodCertificateRequest encodes a pod requesting a certificate from a given signer. + + Kubelets use this API to implement podCertificate projected 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: + nodeName: nodeName + pkixPublicKey: pkixPublicKey + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + unverifiedUserAnnotations: + key: unverifiedUserAnnotations + proofOfPossession: proofOfPossession + serviceAccountUID: serviceAccountUID + signerName: signerName + status: + notAfter: 2000-01-23T04:56:07.000+00:00 + certificateChain: certificateChain + beginRefreshAt: 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 + notBefore: 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/v1beta1.PodCertificateRequestSpec" + status: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestStatus" + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: certificates.k8s.io + kind: PodCertificateRequest + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.PodCertificateRequestList: + description: PodCertificateRequestList is a collection of PodCertificateRequest + 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: + nodeName: nodeName + pkixPublicKey: pkixPublicKey + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + unverifiedUserAnnotations: + key: unverifiedUserAnnotations + proofOfPossession: proofOfPossession + serviceAccountUID: serviceAccountUID signerName: signerName - username: username status: - certificate: certificate + notAfter: 2000-01-23T04:56:07.000+00:00 + certificateChain: certificateChain + beginRefreshAt: 2000-01-23T04:56:07.000+00:00 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 + observedGeneration: 5 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 + observedGeneration: 5 status: status + notBefore: 2000-01-23T04:56:07.000+00:00 - metadata: generation: 6 finalizers: @@ -169669,36 +193282,36 @@ components: apiVersion: apiVersion kind: kind spec: - request: request - uid: uid - expirationSeconds: 0 - extra: - key: - - extra - - extra - groups: - - groups - - groups - usages: - - usages - - usages + nodeName: nodeName + pkixPublicKey: pkixPublicKey + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + unverifiedUserAnnotations: + key: unverifiedUserAnnotations + proofOfPossession: proofOfPossession + serviceAccountUID: serviceAccountUID signerName: signerName - username: username status: - certificate: certificate + notAfter: 2000-01-23T04:56:07.000+00:00 + certificateChain: certificateChain + beginRefreshAt: 2000-01-23T04:56:07.000+00:00 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 + observedGeneration: 5 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 + observedGeneration: 5 status: status + notBefore: 2000-01-23T04:56:07.000+00:00 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -169706,9 +193319,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: items is a collection of PodCertificateRequest objects items: - $ref: '#/components/schemas/v1.CertificateSigningRequest' + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -169716,196 +193329,193 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequestList - version: v1 + kind: PodCertificateRequestList + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.CertificateSigningRequestSpec: - description: CertificateSigningRequestSpec contains the certificate request. + v1beta1.PodCertificateRequestSpec: + description: PodCertificateRequestSpec describes the certificate request. All + fields are immutable after creation. example: - request: request - uid: uid - expirationSeconds: 0 - extra: - key: - - extra - - extra - groups: - - groups - - groups - usages: - - usages - - usages + nodeName: nodeName + pkixPublicKey: pkixPublicKey + podUID: podUID + serviceAccountName: serviceAccountName + maxExpirationSeconds: 0 + nodeUID: nodeUID + podName: podName + unverifiedUserAnnotations: + key: unverifiedUserAnnotations + proofOfPossession: proofOfPossession + serviceAccountUID: serviceAccountUID signerName: signerName - username: username properties: - expirationSeconds: + maxExpirationSeconds: 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. + maxExpirationSeconds is the maximum lifetime permitted for the certificate. - 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 + If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). - The minimum valid value for expirationSeconds is 600, i.e. 10 minutes. + The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. 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." + nodeName: + description: nodeName is the name of the node the pod is assigned to. + type: string + nodeUID: + description: nodeUID is the UID of the node the pod is assigned to. + type: string + pkixPublicKey: + description: |- + pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. + + The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. + + Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of "Denied" and a reason of "UnsupportedKeyType". It may also suggest a key type that it does support in the message field. 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: + podName: + description: podName is the name of the pod into which the certificate will + be mounted. + type: string + podUID: + description: podUID is the UID of the pod into which the certificate will + be mounted. + type: string + proofOfPossession: description: |- - signerName indicates the requested signer, and is a qualified name. + proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. - List/watch requests for CertificateSigningRequests can filter on this field using a "spec.signerName=NAME" fieldSelector. + It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. - 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. + kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. - More details are available at https://k8s.io/docs/reference/access-authn-authz/certificate-signing-requests/#kubernetes-signers + If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). - 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. + If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) + + If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). + format: byte + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string - uid: - description: uid contains the uid of the user that created the CertificateSigningRequest. - Populated by the API server on creation and immutable. + serviceAccountName: + description: serviceAccountName is the name of the service account the pod + is running as. type: string - usages: + serviceAccountUID: + description: serviceAccountUID is the UID of the service account the pod + is running as. + type: string + signerName: description: |- - usages specifies a set of key usages requested in the issued certificate. + signerName indicates the requested signer. - Requests for TLS client certificates typically request: "digital signature", "key encipherment", "client auth". + All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented. + type: string + unverifiedUserAnnotations: + additionalProperties: + type: string + description: |- + unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. - Requests for TLS serving certificates typically request: "key encipherment", "digital signature", "server auth". + Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. - 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 + Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. + type: object required: - - request + - nodeName + - nodeUID + - pkixPublicKey + - podName + - podUID + - proofOfPossession + - serviceAccountName + - serviceAccountUID - signerName type: object - v1.CertificateSigningRequestStatus: - description: "CertificateSigningRequestStatus contains conditions used to indicate\ - \ approved/denied/failed status of the request, and the issued certificate." + v1beta1.PodCertificateRequestStatus: + description: "PodCertificateRequestStatus describes the status of the request,\ + \ and holds the certificate data if the request is issued." example: - certificate: certificate + notAfter: 2000-01-23T04:56:07.000+00:00 + certificateChain: certificateChain + beginRefreshAt: 2000-01-23T04:56:07.000+00:00 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 + observedGeneration: 5 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 + observedGeneration: 5 status: status + notBefore: 2000-01-23T04:56:07.000+00:00 properties: - certificate: + beginRefreshAt: 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. + beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. + + This field is only a hint. Kubelet may start refreshing before or after this time if necessary. + format: date-time + type: string + certificateChain: + description: |- + certificateChain is populated with an issued certificate by the signer. 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. + 1. certificateChain must consist of one or more PEM-formatted certificates. + 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as + described in section 4 of RFC5280. - 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}=)?$" + If more than one 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. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. type: string - x-kubernetes-list-type: atomic conditions: - description: "conditions applied to the request. Known conditions are \"\ - Approved\", \"Denied\", and \"Failed\"." + description: |- + conditions applied to the request. + + The types "Issued", "Denied", and "Failed" have special handling. At most one of these conditions may be present, and they must have status "True". + + If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. items: - $ref: '#/components/schemas/v1.CertificateSigningRequestCondition' + $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 + notAfter: + description: "notAfter is the time at which the certificate expires. The\ + \ value must be the same as the notAfter value in the leaf certificate\ + \ in certificateChain. This field is set via the /status subresource.\ + \ Once populated, it is immutable. The signer must set this field at\ + \ the same time it sets certificateChain." + format: date-time + type: string + notBefore: + description: "notBefore is the time at which the certificate becomes valid.\ + \ The value must be the same as the notBefore value in the leaf certificate\ + \ in certificateChain. This field is set via the /status subresource.\ + \ Once populated, it is immutable. The signer must set this field at\ + \ the same time it sets certificateChain." + format: date-time + type: string 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.Lease: + description: Lease defines a lease concept. example: metadata: generation: 6 @@ -169956,8 +193566,13 @@ components: apiVersion: apiVersion kind: kind spec: - trustBundle: trustBundle - signerName: signerName + 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\ @@ -169970,20 +193585,18 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundleSpec' - required: - - spec + $ref: "#/components/schemas/v1.LeaseSpec" type: object x-kubernetes-group-version-kind: - - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + - group: coordination.k8s.io + kind: Lease + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha1.ClusterTrustBundleList: - description: ClusterTrustBundleList is a collection of ClusterTrustBundle objects + v1.LeaseList: + description: LeaseList is a list of Lease objects. example: metadata: remainingItemCount: 1 @@ -170042,8 +193655,13 @@ components: apiVersion: apiVersion kind: kind spec: - trustBundle: trustBundle - signerName: signerName + 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: @@ -170093,8 +193711,13 @@ components: apiVersion: apiVersion kind: kind spec: - trustBundle: trustBundle - signerName: signerName + 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\ @@ -170102,9 +193725,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 ClusterTrustBundle objects + description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1alpha1.ClusterTrustBundle' + $ref: "#/components/schemas/v1.Lease" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -170112,47 +193735,68 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: certificates.k8s.io - kind: ClusterTrustBundleList - version: v1alpha1 + - group: coordination.k8s.io + kind: LeaseList + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha1.ClusterTrustBundleSpec: - description: ClusterTrustBundleSpec contains the signer and trust anchors. + v1.LeaseSpec: + description: LeaseSpec is a specification of a Lease. example: - trustBundle: trustBundle - signerName: signerName + 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: - 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. + acquireTime: + description: acquireTime is a time when the current lease was acquired. + format: date-time 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. + 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 - required: - - trustBundle type: object - v1.Lease: - description: Lease defines a lease concept. + 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 @@ -170204,10 +193848,11 @@ components: 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 + 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\ @@ -170220,18 +193865,18 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.LeaseSpec' + $ref: "#/components/schemas/v1alpha2.LeaseCandidateSpec" type: object x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease - version: v1 + kind: LeaseCandidate + version: v1alpha2 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.LeaseList: - description: LeaseList is a list of Lease objects. + v1alpha2.LeaseCandidateList: + description: LeaseCandidateList is a list of Lease objects. example: metadata: remainingItemCount: 1 @@ -170291,10 +193936,11 @@ components: 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 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy - metadata: generation: 6 finalizers: @@ -170345,10 +193991,11 @@ components: 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 + 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\ @@ -170358,7 +194005,7 @@ components: items: description: items is a list of schema objects. items: - $ref: '#/components/schemas/v1.Lease' + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -170366,49 +194013,351 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseList - version: v1 + kind: LeaseCandidateList + version: v1alpha2 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.LeaseSpec: - description: LeaseSpec is a specification of a Lease. + v1alpha2.LeaseCandidateSpec: + description: LeaseCandidateSpec 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 + binaryVersion: binaryVersion + emulationVersion: emulationVersion + pingTime: 2000-01-23T04:56:07.000+00:00 + leaseName: leaseName + strategy: strategy properties: - acquireTime: - description: acquireTime is a time when the current lease was acquired. + 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 - holderIdentity: - description: holderIdentity contains the identity of the holder of a current - lease. + 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 + 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: + $ref: "#/components/schemas/v1beta1.LeaseCandidate" + 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: 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 - 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. + 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: |- @@ -170416,7 +194365,7 @@ components: 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 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -170865,11 +194814,11 @@ components: weight: 1 properties: nodeAffinity: - $ref: '#/components/schemas/v1.NodeAffinity' + $ref: "#/components/schemas/v1.NodeAffinity" podAffinity: - $ref: '#/components/schemas/v1.PodAffinity' + $ref: "#/components/schemas/v1.PodAffinity" podAntiAffinity: - $ref: '#/components/schemas/v1.PodAntiAffinity' + $ref: "#/components/schemas/v1.PodAntiAffinity" type: object v1.AppArmorProfile: description: AppArmorProfile defines a pod or container's AppArmor settings. @@ -171006,8 +194955,7 @@ components: 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." + \ to a node by a scheduler." example: metadata: generation: 6 @@ -171077,9 +195025,9 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" target: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" required: - target type: object @@ -171091,7 +195039,6 @@ components: - io.kubernetes.client.common.KubernetesObject v1.CSIPersistentVolumeSource: description: Represents storage that is managed by an external CSI volume driver - (Beta feature) example: controllerPublishSecretRef: name: name @@ -171116,9 +195063,9 @@ components: key: volumeAttributes properties: controllerExpandSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" controllerPublishSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" driver: description: driver is the name of the driver to use for this volume. Required. type: string @@ -171127,11 +195074,11 @@ components: \ host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\"." type: string nodeExpandSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" nodePublishSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" nodeStageSecretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" readOnly: description: readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). @@ -171172,7 +195119,7 @@ components: \ the default filesystem to apply." type: string nodePublishSecretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' + $ref: "#/components/schemas/v1.LocalObjectReference" readOnly: description: readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). @@ -171245,7 +195192,7 @@ components: \ 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' + $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" @@ -171287,7 +195234,7 @@ components: \ 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' + $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" @@ -171319,7 +195266,7 @@ components: \ 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' + $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" @@ -171350,7 +195297,7 @@ components: \ 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' + $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" @@ -171358,28 +195305,6 @@ components: 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: - 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. - type: string - type: object v1.ClientIPConfig: description: ClientIPConfig represents the configurations of Client IP based session affinity. @@ -171417,7 +195342,7 @@ components: signerName: signerName properties: labelSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $ref: "#/components/schemas/v1.LabelSelector" name: description: Select a single ClusterTrustBundle by object name. Mutually-exclusive with signerName and labelSelector. @@ -171536,7 +195461,7 @@ components: conditions: description: List of component conditions observed items: - $ref: '#/components/schemas/v1.ComponentCondition' + $ref: "#/components/schemas/v1.ComponentCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -171549,7 +195474,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" type: object x-kubernetes-group-version-kind: - group: "" @@ -171692,7 +195617,7 @@ components: items: description: List of ComponentStatus objects. items: - $ref: '#/components/schemas/v1.ComponentStatus' + $ref: "#/components/schemas/v1.ComponentStatus" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -171700,7 +195625,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -171805,7 +195730,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" type: object x-kubernetes-group-version-kind: - group: "" @@ -171981,7 +195906,7 @@ components: items: description: Items is the list of ConfigMaps. items: - $ref: '#/components/schemas/v1.ConfigMap' + $ref: "#/components/schemas/v1.ConfigMap" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -171989,7 +195914,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -172045,10 +195970,10 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key properties: @@ -172061,7 +195986,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.KeyToPath" type: array x-kubernetes-list-type: atomic name: @@ -172081,14 +196006,14 @@ components: 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 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key properties: @@ -172111,7 +196036,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.KeyToPath" type: array x-kubernetes-list-type: atomic name: @@ -172133,50 +196058,24 @@ components: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -172232,43 +196131,6 @@ components: 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 @@ -172280,10 +196142,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -172299,9 +196157,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -172343,8 +196198,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -172377,7 +196231,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -172393,6 +196246,104 @@ components: 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true properties: args: description: "Arguments to the entrypoint. The container image's CMD is\ @@ -172424,7 +196375,7 @@ components: description: List of environment variables to set in the container. Cannot be updated. items: - $ref: '#/components/schemas/v1.EnvVar' + $ref: "#/components/schemas/v1.EnvVar" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -172433,13 +196384,12 @@ components: 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." + \ The keys defined within a source may consist of any printable ASCII\ + \ characters except '='. 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' + $ref: "#/components/schemas/v1.EnvFromSource" type: array x-kubernetes-list-type: atomic image: @@ -172454,9 +196404,9 @@ components: \ be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images" type: string lifecycle: - $ref: '#/components/schemas/v1.Lifecycle' + $ref: "#/components/schemas/v1.Lifecycle" livenessProbe: - $ref: '#/components/schemas/v1.Probe' + $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. @@ -172469,7 +196419,7 @@ components: 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' + $ref: "#/components/schemas/v1.ContainerPort" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -172478,36 +196428,50 @@ components: - protocol x-kubernetes-patch-merge-key: containerPort readinessProbe: - $ref: '#/components/schemas/v1.Probe' + $ref: "#/components/schemas/v1.Probe" resizePolicy: - description: Resources resize policy for the container. + description: Resources resize policy for the container. This field cannot + be set on ephemeral containers. items: - $ref: '#/components/schemas/v1.ContainerResizePolicy' + $ref: "#/components/schemas/v1.ContainerResizePolicy" type: array x-kubernetes-list-type: atomic resources: - $ref: '#/components/schemas/v1.ResourceRequirements' + $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\ + \ in a pod. This overrides the pod-level restart policy. 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 + \ policy and the container type. Additionally, 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 + restartPolicyRules: + description: "Represents a list of rules to be checked to determine if the\ + \ container should be restarted on exit. The rules are evaluated in order.\ + \ Once a rule matches a container exit condition, the remaining rules\ + \ are ignored. If no rule matches the container exit condition, the Container-level\ + \ restart policy determines the whether the container is restarted or\ + \ not. Constraints on the rules: - At most 20 rules are allowed. - Rules\ + \ can have the same action. - Identical rules are not forbidden in validations.\ + \ When rules are specified, container MUST set RestartPolicy explicitly\ + \ even it if matches the Pod's RestartPolicy." + items: + $ref: "#/components/schemas/v1.ContainerRestartRule" + type: array + x-kubernetes-list-type: atomic securityContext: - $ref: '#/components/schemas/v1.SecurityContext' + $ref: "#/components/schemas/v1.SecurityContext" startupProbe: - $ref: '#/components/schemas/v1.Probe' + $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\ @@ -172549,7 +196513,7 @@ components: description: volumeDevices is the list of block devices to be used by the container. items: - $ref: '#/components/schemas/v1.VolumeDevice' + $ref: "#/components/schemas/v1.VolumeDevice" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -172560,7 +196524,7 @@ components: description: Pod volumes to mount into the container's filesystem. Cannot be updated. items: - $ref: '#/components/schemas/v1.VolumeMount' + $ref: "#/components/schemas/v1.VolumeMount" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -172575,6 +196539,30 @@ components: required: - name type: object + v1.ContainerExtendedResourceRequest: + description: "ContainerExtendedResourceRequest has the mapping of container\ + \ name, extended resource name to the device request name." + example: + requestName: requestName + containerName: containerName + resourceName: resourceName + properties: + containerName: + description: The name of the container requesting resources. + type: string + requestName: + description: The name of the request in the special ResourceClaim which + corresponds to the extended resource. + type: string + resourceName: + description: The name of the extended resource in that container which gets + backed by DRA. + type: string + required: + - containerName + - requestName + - resourceName + type: object v1.ContainerImage: description: Describe a container image example: @@ -172649,6 +196637,52 @@ components: - resourceName - restartPolicy type: object + v1.ContainerRestartRule: + description: ContainerRestartRule describes how a container exit is handled. + example: + action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + properties: + action: + description: Specifies the action taken on a container exit if the requirements + are satisfied. The only possible value is "Restart" to restart the container. + type: string + exitCodes: + $ref: "#/components/schemas/v1.ContainerRestartRuleOnExitCodes" + required: + - action + type: object + v1.ContainerRestartRuleOnExitCodes: + description: ContainerRestartRuleOnExitCodes describes the condition for handling + an exited container based on its exit codes. + example: + values: + - 1 + - 1 + operator: operator + properties: + operator: + description: |- + Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the + set of specified values. + - NotIn: the requirement is satisfied if the container exit code is + not in the set of specified values. + type: string + values: + description: Specifies the set of values to check for container exit codes. + At most 255 elements are allowed. + items: + format: int32 + type: integer + type: array + x-kubernetes-list-type: set + required: + - operator + 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\ @@ -172661,19 +196695,19 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 properties: running: - $ref: '#/components/schemas/v1.ContainerStateRunning' + $ref: "#/components/schemas/v1.ContainerStateRunning" terminated: - $ref: '#/components/schemas/v1.ContainerStateTerminated' + $ref: "#/components/schemas/v1.ContainerStateTerminated" waiting: - $ref: '#/components/schemas/v1.ContainerStateWaiting' + $ref: "#/components/schemas/v1.ContainerStateWaiting" type: object v1.ContainerStateRunning: description: ContainerStateRunning is a running state of a container. @@ -172689,11 +196723,11 @@ components: description: ContainerStateTerminated is a terminated state of a container. example: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 properties: containerID: @@ -172741,23 +196775,34 @@ components: description: ContainerStatus contains details for the current status of this container. example: - allocatedResources: - key: null + 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null started: true - state: + lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -172765,14 +196810,26 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 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: + key: null + ready: true + name: name + state: running: startedAt: 2000-01-23T04:56:07.000+00:00 waiting: @@ -172780,30 +196837,41 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 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 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 properties: allocatedResources: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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\ @@ -172820,7 +196888,7 @@ components: \ may have been resolved by the runtime." type: string lastState: - $ref: '#/components/schemas/v1.ContainerState' + $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. @@ -172833,7 +196901,7 @@ components: The value is typically used to determine whether a container is ready to accept traffic. type: boolean resources: - $ref: '#/components/schemas/v1.ResourceRequirements' + $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\ @@ -172851,11 +196919,16 @@ components: \ hook. The null value must be treated the same as false." type: boolean state: - $ref: '#/components/schemas/v1.ContainerState' + $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' + $ref: "#/components/schemas/v1.VolumeMountStatus" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -172869,6 +196942,19 @@ components: - ready - restartCount type: object + v1.ContainerUser: + description: ContainerUser represents user identity information + example: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + properties: + linux: + $ref: "#/components/schemas/v1.LinuxContainerUser" + type: object v1.DaemonEndpoint: description: DaemonEndpoint contains information about a single Daemon endpoint. example: @@ -172887,7 +196973,7 @@ components: mode. example: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172896,7 +196982,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172909,7 +196995,7 @@ components: items: description: Items is a list of DownwardAPIVolume file items: - $ref: '#/components/schemas/v1.DownwardAPIVolumeFile' + $ref: "#/components/schemas/v1.DownwardAPIVolumeFile" type: array x-kubernetes-list-type: atomic type: object @@ -172917,7 +197003,7 @@ components: description: DownwardAPIVolumeFile represents information to create the file containing the pod field example: - mode: 1 + mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172928,7 +197014,7 @@ components: fieldPath: fieldPath properties: fieldRef: - $ref: '#/components/schemas/v1.ObjectFieldSelector' + $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\ @@ -172944,7 +197030,7 @@ components: \ encoded. The first item of the relative path must not start with '..'" type: string resourceFieldRef: - $ref: '#/components/schemas/v1.ResourceFieldSelector' + $ref: "#/components/schemas/v1.ResourceFieldSelector" required: - path type: object @@ -172952,9 +197038,9 @@ components: description: DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. example: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172963,7 +197049,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -172987,7 +197073,7 @@ components: items: description: Items is a list of downward API volume file items: - $ref: '#/components/schemas/v1.DownwardAPIVolumeFile' + $ref: "#/components/schemas/v1.DownwardAPIVolumeFile" type: array x-kubernetes-list-type: atomic type: object @@ -173043,7 +197129,8 @@ components: type: string type: object v1.EndpointAddress: - description: EndpointAddress is a tuple that describes single IP address. + description: "EndpointAddress is a tuple that describes single IP address. Deprecated:\ + \ This API is deprecated in v1.33+." example: nodeName: nodeName targetRef: @@ -173070,13 +197157,14 @@ components: \ determine endpoints local to a node." type: string targetRef: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" required: - ip type: object x-kubernetes-map-type: atomic core.v1.EndpointPort: - description: EndpointPort is a tuple that describes a single port. + description: "EndpointPort is a tuple that describes a single port. Deprecated:\ + \ This API is deprecated in v1.33+." example: protocol: protocol port: 0 @@ -173120,7 +197208,7 @@ components: 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 ]" + \ 10.10.2.2:309 ]\n\nDeprecated: This API is deprecated in v1.33+." example: notReadyAddresses: - nodeName: nodeName @@ -173183,7 +197271,7 @@ components: as ready. These endpoints should be considered safe for load balancers and clients to utilize. items: - $ref: '#/components/schemas/v1.EndpointAddress' + $ref: "#/components/schemas/v1.EndpointAddress" type: array x-kubernetes-list-type: atomic notReadyAddresses: @@ -173191,13 +197279,13 @@ components: \ 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' + $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' + $ref: "#/components/schemas/core.v1.EndpointPort" type: array x-kubernetes-list-type: atomic type: object @@ -173208,7 +197296,10 @@ components: \ [{\"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\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 @@ -173381,7 +197472,7 @@ components: \ 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' + $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\ @@ -173391,7 +197482,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.EndpointSubset" type: array x-kubernetes-list-type: atomic type: object @@ -173402,7 +197493,8 @@ components: x-implements: - io.kubernetes.client.common.KubernetesObject v1.EndpointsList: - description: EndpointsList is a list of endpoints. + description: "EndpointsList is a list of endpoints. Deprecated: This API is\ + \ deprecated in v1.33+." example: metadata: remainingItemCount: 1 @@ -173739,7 +197831,7 @@ components: items: description: List of endpoints. items: - $ref: '#/components/schemas/v1.Endpoints' + $ref: "#/components/schemas/v1.Endpoints" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -173747,7 +197839,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -173758,7 +197850,7 @@ components: x-implements: - io.kubernetes.client.common.KubernetesListObject v1.EnvFromSource: - description: EnvFromSource represents the source of a set of ConfigMaps + description: EnvFromSource represents the source of a set of ConfigMaps or Secrets example: configMapRef: name: name @@ -173769,13 +197861,13 @@ components: optional: true properties: configMapRef: - $ref: '#/components/schemas/v1.ConfigMapEnvSource' + $ref: "#/components/schemas/v1.ConfigMapEnvSource" prefix: - description: An optional identifier to prepend to each key in the ConfigMap. - Must be a C_IDENTIFIER. + description: Optional text to prepend to the name of each environment variable. + May consist of any printable ASCII characters except '='. type: string secretRef: - $ref: '#/components/schemas/v1.SecretEnvSource' + $ref: "#/components/schemas/v1.SecretEnvSource" type: object v1.EnvVar: description: EnvVar represents an environment variable present in a Container. @@ -173798,9 +197890,15 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key properties: name: - description: Name of the environment variable. Must be a C_IDENTIFIER. + description: Name of the environment variable. May consist of any printable + ASCII characters except '='. type: string value: description: "Variable references $(VAR_NAME) are expanded using the previously\ @@ -173813,7 +197911,7 @@ components: \ Defaults to \"\"." type: string valueFrom: - $ref: '#/components/schemas/v1.EnvVarSource' + $ref: "#/components/schemas/v1.EnvVarSource" required: - name type: object @@ -173835,15 +197933,22 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key properties: configMapKeyRef: - $ref: '#/components/schemas/v1.ConfigMapKeySelector' + $ref: "#/components/schemas/v1.ConfigMapKeySelector" fieldRef: - $ref: '#/components/schemas/v1.ObjectFieldSelector' + $ref: "#/components/schemas/v1.ObjectFieldSelector" + fileKeyRef: + $ref: "#/components/schemas/v1.FileKeySelector" resourceFieldRef: - $ref: '#/components/schemas/v1.ResourceFieldSelector' + $ref: "#/components/schemas/v1.ResourceFieldSelector" secretKeyRef: - $ref: '#/components/schemas/v1.SecretKeySelector' + $ref: "#/components/schemas/v1.SecretKeySelector" type: object v1.EphemeralContainer: description: |- @@ -173856,11 +197961,24 @@ components: name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -173983,6 +198101,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -174064,8 +198183,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -174089,6 +198210,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -174107,6 +198233,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -174148,7 +198279,7 @@ components: description: List of environment variables to set in the container. Cannot be updated. items: - $ref: '#/components/schemas/v1.EnvVar' + $ref: "#/components/schemas/v1.EnvVar" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -174157,13 +198288,12 @@ components: 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." + \ The keys defined within a source may consist of any printable ASCII\ + \ characters except '='. 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' + $ref: "#/components/schemas/v1.EnvFromSource" type: array x-kubernetes-list-type: atomic image: @@ -174175,9 +198305,9 @@ components: \ be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images" type: string lifecycle: - $ref: '#/components/schemas/v1.Lifecycle' + $ref: "#/components/schemas/v1.Lifecycle" livenessProbe: - $ref: '#/components/schemas/v1.Probe' + $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\ @@ -174186,7 +198316,7 @@ components: ports: description: Ports are not allowed for ephemeral containers. items: - $ref: '#/components/schemas/v1.ContainerPort' + $ref: "#/components/schemas/v1.ContainerPort" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -174195,24 +198325,32 @@ components: - protocol x-kubernetes-patch-merge-key: containerPort readinessProbe: - $ref: '#/components/schemas/v1.Probe' + $ref: "#/components/schemas/v1.Probe" resizePolicy: description: Resources resize policy for the container. items: - $ref: '#/components/schemas/v1.ContainerResizePolicy' + $ref: "#/components/schemas/v1.ContainerResizePolicy" type: array x-kubernetes-list-type: atomic resources: - $ref: '#/components/schemas/v1.ResourceRequirements' + $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. + of each container within a pod. You cannot set this field on ephemeral + containers. type: string + restartPolicyRules: + description: Represents a list of rules to be checked to determine if the + container should be restarted on exit. You cannot set this field on ephemeral + containers. + items: + $ref: "#/components/schemas/v1.ContainerRestartRule" + type: array + x-kubernetes-list-type: atomic securityContext: - $ref: '#/components/schemas/v1.SecurityContext' + $ref: "#/components/schemas/v1.SecurityContext" startupProbe: - $ref: '#/components/schemas/v1.Probe' + $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\ @@ -174260,7 +198398,7 @@ components: description: volumeDevices is the list of block devices to be used by the container. items: - $ref: '#/components/schemas/v1.VolumeDevice' + $ref: "#/components/schemas/v1.VolumeDevice" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -174271,7 +198409,7 @@ components: 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' + $ref: "#/components/schemas/v1.VolumeMount" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -174375,7 +198513,7 @@ components: volumeMode: volumeMode properties: volumeClaimTemplate: - $ref: '#/components/schemas/v1.PersistentVolumeClaimTemplate' + $ref: "#/components/schemas/v1.PersistentVolumeClaimTemplate" type: object core.v1.Event: description: "Event is a report of an event somewhere in the cluster. Events\ @@ -174488,7 +198626,7 @@ components: format: date-time type: string involvedObject: - $ref: '#/components/schemas/v1.ObjectReference' + $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\ @@ -174503,13 +198641,13 @@ components: description: A human-readable description of the status of this operation. type: string metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $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' + $ref: "#/components/schemas/v1.ObjectReference" reportingComponent: description: "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`." type: string @@ -174517,9 +198655,9 @@ components: description: "ID of the controller instance, e.g. `kubelet-xyzf`." type: string series: - $ref: '#/components/schemas/core.v1.EventSeries' + $ref: "#/components/schemas/core.v1.EventSeries" source: - $ref: '#/components/schemas/v1.EventSource' + $ref: "#/components/schemas/v1.EventSource" type: description: "Type of this event (Normal, Warning), new types could be added\ \ in the future" @@ -174714,7 +198852,7 @@ components: items: description: List of events items: - $ref: '#/components/schemas/core.v1.Event' + $ref: "#/components/schemas/core.v1.Event" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -174722,7 +198860,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -174786,7 +198924,7 @@ components: be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. example: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -174824,6 +198962,39 @@ components: type: array x-kubernetes-list-type: atomic type: object + v1.FileKeySelector: + description: FileKeySelector selects a key of the env file. + example: + path: path + volumeName: volumeName + optional: true + key: key + properties: + key: + description: "The key within the env file. An invalid key will prevent the\ + \ pod from starting. The keys defined within a source may consist of any\ + \ printable ASCII characters except '='. During Alpha stage of the EnvFiles\ + \ feature gate, the key size is limited to 128 characters." + type: string + optional: + description: |- + Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. + + If optional is set to false and the specified key does not exist, an error will be returned during Pod creation. + type: boolean + path: + description: The path within the volume from which to select the file. Must + be relative and may not contain the '..' path or start with '..'. + type: string + volumeName: + description: The name of the volume mount containing the env file. + type: string + required: + - key + - path + - volumeName + type: object + x-kubernetes-map-type: atomic v1.FlexPersistentVolumeSource: description: FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. @@ -174856,7 +199027,7 @@ components: \ here will force the ReadOnly setting in VolumeMounts." type: boolean secretRef: - $ref: '#/components/schemas/v1.SecretReference' + $ref: "#/components/schemas/v1.SecretReference" required: - driver type: object @@ -174891,7 +199062,7 @@ components: \ here will force the ReadOnly setting in VolumeMounts." type: boolean secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' + $ref: "#/components/schemas/v1.LocalObjectReference" required: - driver type: object @@ -174949,6 +199120,7 @@ components: - pdName type: object v1.GRPCAction: + description: GRPCAction specifies an action involving a GRPC service. example: port: 2 service: service @@ -175030,8 +199202,7 @@ components: 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" + description: endpoints is the endpoint name that details Glusterfs topology. type: string path: description: "path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod" @@ -175065,7 +199236,7 @@ components: description: Custom headers to set in the request. HTTP allows repeated headers. items: - $ref: '#/components/schemas/v1.HTTPHeader' + $ref: "#/components/schemas/v1.HTTPHeader" type: array x-kubernetes-list-type: atomic path: @@ -175214,7 +199385,7 @@ components: Defaults to false. type: boolean secretRef: - $ref: '#/components/schemas/v1.SecretReference' + $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 @@ -175231,7 +199402,7 @@ components: example: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -175287,7 +199458,7 @@ components: Defaults to false. type: boolean secretRef: - $ref: '#/components/schemas/v1.LocalObjectReference' + $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 @@ -175298,10 +199469,37 @@ components: - 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 + mode: 6 path: path key: key properties: @@ -175374,11 +199572,18 @@ components: value: value - name: name value: value + stopSignal: stopSignal properties: postStart: - $ref: '#/components/schemas/v1.LifecycleHandler' + $ref: "#/components/schemas/v1.LifecycleHandler" preStop: - $ref: '#/components/schemas/v1.LifecycleHandler' + $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\ @@ -175406,13 +199611,13 @@ components: value: value properties: exec: - $ref: '#/components/schemas/v1.ExecAction' + $ref: "#/components/schemas/v1.ExecAction" httpGet: - $ref: '#/components/schemas/v1.HTTPGetAction' + $ref: "#/components/schemas/v1.HTTPGetAction" sleep: - $ref: '#/components/schemas/v1.SleepAction' + $ref: "#/components/schemas/v1.SleepAction" tcpSocket: - $ref: '#/components/schemas/v1.TCPSocketAction' + $ref: "#/components/schemas/v1.TCPSocketAction" type: object v1.LimitRange: description: LimitRange sets resource usage limits for each kind of resource @@ -175502,9 +199707,9 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.LimitRangeSpec' + $ref: "#/components/schemas/v1.LimitRangeSpec" type: object x-kubernetes-group-version-kind: - group: "" @@ -175530,24 +199735,24 @@ components: properties: default: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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' + $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' + $ref: "#/components/schemas/resource.Quantity" description: Max usage constraints on this kind by resource name. type: object maxLimitRequestRatio: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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\ @@ -175555,7 +199760,7 @@ components: type: object min: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: Min usage constraints on this kind by resource name. type: object type: @@ -175728,7 +199933,7 @@ components: items: description: "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" items: - $ref: '#/components/schemas/v1.LimitRange' + $ref: "#/components/schemas/v1.LimitRange" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -175736,7 +199941,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -175777,12 +199982,44 @@ components: limits: description: Limits is the list of LimitRangeItem objects that are enforced. items: - $ref: '#/components/schemas/v1.LimitRangeItem' + $ref: "#/components/schemas/v1.LimitRangeItem" type: array x-kubernetes-list-type: atomic required: - limits type: object + v1.LinuxContainerUser: + description: LinuxContainerUser represents user identity information in Linux + containers + example: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + properties: + 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: + format: int64 + type: integer + type: array + 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 + required: + - gid + - uid + 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." @@ -175819,7 +200056,7 @@ components: 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' + $ref: "#/components/schemas/v1.PortStatus" type: array x-kubernetes-list-type: atomic type: object @@ -175852,7 +200089,7 @@ components: 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' + $ref: "#/components/schemas/v1.LoadBalancerIngress" type: array x-kubernetes-list-type: atomic type: object @@ -175871,8 +200108,7 @@ components: type: object x-kubernetes-map-type: atomic v1.LocalVolumeSource: - description: Local represents directly-attached storage with node affinity (Beta - feature) + description: Local represents directly-attached storage with node affinity example: path: path fsType: fsType @@ -176019,11 +200255,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.NamespaceSpec' + $ref: "#/components/schemas/v1.NamespaceSpec" status: - $ref: '#/components/schemas/v1.NamespaceStatus' + $ref: "#/components/schemas/v1.NamespaceStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -176041,14 +200277,15 @@ components: 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. + 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 of the condition, one of True, False, Unknown." @@ -176211,7 +200448,7 @@ components: 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' + $ref: "#/components/schemas/v1.Namespace" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -176219,7 +200456,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -176264,7 +200501,7 @@ components: description: Represents the latest available observations of a namespace's current state. items: - $ref: '#/components/schemas/v1.NamespaceCondition' + $ref: "#/components/schemas/v1.NamespaceCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -176359,9 +200596,6 @@ components: phase: phase allocatable: key: null - volumesInUse: - - volumesInUse - - volumesInUse addresses: - address: address type: type @@ -176376,8 +200610,34 @@ components: - names - names sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + declaredFeatures: + - declaredFeatures + - declaredFeatures + volumesAttached: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + capacity: + key: null + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse nodeInfo: machineID: machineID + swap: + capacity: 1 bootID: bootID containerRuntimeVersion: containerRuntimeVersion kernelVersion: kernelVersion @@ -176387,13 +200647,6 @@ components: operatingSystem: operatingSystem architecture: architecture osImage: osImage - runtimeHandlers: - - features: - recursiveReadOnlyMounts: true - name: name - - features: - recursiveReadOnlyMounts: true - name: name conditions: - reason: reason lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 @@ -176430,13 +200683,6 @@ components: name: name namespace: namespace error: error - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: - key: null properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -176449,11 +200695,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.NodeSpec' + $ref: "#/components/schemas/v1.NodeSpec" status: - $ref: '#/components/schemas/v1.NodeStatus' + $ref: "#/components/schemas/v1.NodeStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -176587,11 +200833,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.PreferredSchedulingTerm" type: array x-kubernetes-list-type: atomic requiredDuringSchedulingIgnoredDuringExecution: - $ref: '#/components/schemas/v1.NodeSelector' + $ref: "#/components/schemas/v1.NodeSelector" type: object v1.NodeCondition: description: NodeCondition contains condition information for a node. @@ -176640,7 +200886,7 @@ components: namespace: namespace properties: configMap: - $ref: '#/components/schemas/v1.ConfigMapNodeConfigSource' + $ref: "#/components/schemas/v1.ConfigMapNodeConfigSource" type: object v1.NodeConfigStatus: description: NodeConfigStatus describes the status of the config assigned by @@ -176670,9 +200916,9 @@ components: error: error properties: active: - $ref: '#/components/schemas/v1.NodeConfigSource' + $ref: "#/components/schemas/v1.NodeConfigSource" assigned: - $ref: '#/components/schemas/v1.NodeConfigSource' + $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\ @@ -176691,7 +200937,7 @@ components: \ Kubelet versions." type: string lastKnownGood: - $ref: '#/components/schemas/v1.NodeConfigSource' + $ref: "#/components/schemas/v1.NodeConfigSource" type: object v1.NodeDaemonEndpoints: description: NodeDaemonEndpoints lists ports opened by daemons running on the @@ -176701,7 +200947,19 @@ components: Port: 0 properties: kubeletEndpoint: - $ref: '#/components/schemas/v1.DaemonEndpoint' + $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 @@ -176794,9 +201052,6 @@ components: phase: phase allocatable: key: null - volumesInUse: - - volumesInUse - - volumesInUse addresses: - address: address type: type @@ -176811,8 +201066,34 @@ components: - names - names sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + declaredFeatures: + - declaredFeatures + - declaredFeatures + volumesAttached: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + capacity: + key: null + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse nodeInfo: machineID: machineID + swap: + capacity: 1 bootID: bootID containerRuntimeVersion: containerRuntimeVersion kernelVersion: kernelVersion @@ -176822,13 +201103,6 @@ components: operatingSystem: operatingSystem architecture: architecture osImage: osImage - runtimeHandlers: - - features: - recursiveReadOnlyMounts: true - name: name - - features: - recursiveReadOnlyMounts: true - name: name conditions: - reason: reason lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 @@ -176865,13 +201139,6 @@ components: name: name namespace: namespace error: error - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: - key: null - metadata: generation: 6 finalizers: @@ -176951,9 +201218,6 @@ components: phase: phase allocatable: key: null - volumesInUse: - - volumesInUse - - volumesInUse addresses: - address: address type: type @@ -176968,8 +201232,34 @@ components: - names - names sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + declaredFeatures: + - declaredFeatures + - declaredFeatures + volumesAttached: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + capacity: + key: null + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse nodeInfo: machineID: machineID + swap: + capacity: 1 bootID: bootID containerRuntimeVersion: containerRuntimeVersion kernelVersion: kernelVersion @@ -176979,13 +201269,6 @@ components: operatingSystem: operatingSystem architecture: architecture osImage: osImage - runtimeHandlers: - - features: - recursiveReadOnlyMounts: true - name: name - - features: - recursiveReadOnlyMounts: true - name: name conditions: - reason: reason lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 @@ -177022,13 +201305,6 @@ components: name: name namespace: namespace error: error - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: - key: null properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -177038,7 +201314,7 @@ components: items: description: List of nodes items: - $ref: '#/components/schemas/v1.Node' + $ref: "#/components/schemas/v1.Node" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -177046,7 +201322,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -177060,24 +201336,31 @@ components: description: NodeRuntimeHandler is a set of runtime handler information. example: features: + userNamespaces: true recursiveReadOnlyMounts: true name: name properties: features: - $ref: '#/components/schemas/v1.NodeRuntimeHandlerFeatures' + $ref: "#/components/schemas/v1.NodeRuntimeHandlerFeatures" name: description: Runtime handler name. Empty for the default runtime handler. type: string type: object v1.NodeRuntimeHandlerFeatures: - description: NodeRuntimeHandlerFeatures is a set of runtime features. + description: NodeRuntimeHandlerFeatures is a set of features implemented by + the runtime handler. example: + 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\ @@ -177133,7 +201416,7 @@ components: nodeSelectorTerms: description: Required. A list of node selector terms. The terms are ORed. items: - $ref: '#/components/schemas/v1.NodeSelectorTerm' + $ref: "#/components/schemas/v1.NodeSelectorTerm" type: array x-kubernetes-list-type: atomic required: @@ -177202,13 +201485,13 @@ components: matchExpressions: description: A list of node selector requirements by node's labels. items: - $ref: '#/components/schemas/v1.NodeSelectorRequirement' + $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' + $ref: "#/components/schemas/v1.NodeSelectorRequirement" type: array x-kubernetes-list-type: atomic type: object @@ -177241,7 +201524,7 @@ components: podCIDR: podCIDR properties: configSource: - $ref: '#/components/schemas/v1.NodeConfigSource' + $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" @@ -177266,7 +201549,7 @@ components: taints: description: "If specified, the node's taints." items: - $ref: '#/components/schemas/v1.Taint' + $ref: "#/components/schemas/v1.Taint" type: array x-kubernetes-list-type: atomic unschedulable: @@ -177283,9 +201566,6 @@ components: phase: phase allocatable: key: null - volumesInUse: - - volumesInUse - - volumesInUse addresses: - address: address type: type @@ -177300,8 +201580,34 @@ components: - names - names sizeBytes: 6 + runtimeHandlers: + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + - features: + userNamespaces: true + recursiveReadOnlyMounts: true + name: name + declaredFeatures: + - declaredFeatures + - declaredFeatures + volumesAttached: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + capacity: + key: null + features: + supplementalGroupsPolicy: true + volumesInUse: + - volumesInUse + - volumesInUse nodeInfo: machineID: machineID + swap: + capacity: 1 bootID: bootID containerRuntimeVersion: containerRuntimeVersion kernelVersion: kernelVersion @@ -177311,13 +201617,6 @@ components: operatingSystem: operatingSystem architecture: architecture osImage: osImage - runtimeHandlers: - - features: - recursiveReadOnlyMounts: true - name: name - - features: - recursiveReadOnlyMounts: true - name: name conditions: - reason: reason lastHeartbeatTime: 2000-01-23T04:56:07.000+00:00 @@ -177354,17 +201653,10 @@ components: name: name namespace: namespace error: error - volumesAttached: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name - capacity: - key: null 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\ + \ 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\ @@ -177373,7 +201665,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.NodeAddress" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -177382,21 +201674,21 @@ components: x-kubernetes-patch-merge-key: type allocatable: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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' + $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" + \ 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/concepts/nodes/node/#condition" + \ More info: https://kubernetes.io/docs/reference/node/node-status/#condition" items: - $ref: '#/components/schemas/v1.NodeCondition' + $ref: "#/components/schemas/v1.NodeCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -177404,17 +201696,26 @@ components: - type x-kubernetes-patch-merge-key: type config: - $ref: '#/components/schemas/v1.NodeConfigStatus' + $ref: "#/components/schemas/v1.NodeConfigStatus" daemonEndpoints: - $ref: '#/components/schemas/v1.NodeDaemonEndpoints' + $ref: "#/components/schemas/v1.NodeDaemonEndpoints" + declaredFeatures: + description: DeclaredFeatures represents the features related to feature + gates that are declared by the node. + items: + type: string + type: array + x-kubernetes-list-type: atomic + features: + $ref: "#/components/schemas/v1.NodeFeatures" images: description: List of container images on this node items: - $ref: '#/components/schemas/v1.ContainerImage' + $ref: "#/components/schemas/v1.ContainerImage" type: array x-kubernetes-list-type: atomic nodeInfo: - $ref: '#/components/schemas/v1.NodeSystemInfo' + $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\ @@ -177423,13 +201724,13 @@ components: runtimeHandlers: description: The available runtime handlers. items: - $ref: '#/components/schemas/v1.NodeRuntimeHandler' + $ref: "#/components/schemas/v1.NodeRuntimeHandler" type: array x-kubernetes-list-type: atomic volumesAttached: description: List of volumes that are attached to the node. items: - $ref: '#/components/schemas/v1.AttachedVolume' + $ref: "#/components/schemas/v1.AttachedVolume" type: array x-kubernetes-list-type: atomic volumesInUse: @@ -177439,10 +201740,22 @@ components: 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 @@ -177467,7 +201780,7 @@ components: 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. + description: "Deprecated: KubeProxy Version reported by the node." type: string kubeletVersion: description: Kubelet Version reported by the node. @@ -177484,6 +201797,8 @@ components: 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 @@ -177707,7 +202022,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -177842,7 +202157,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -177871,11 +202186,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PersistentVolumeSpec' + $ref: "#/components/schemas/v1.PersistentVolumeSpec" status: - $ref: '#/components/schemas/v1.PersistentVolumeStatus' + $ref: "#/components/schemas/v1.PersistentVolumeStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -178011,11 +202326,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' + $ref: "#/components/schemas/v1.PersistentVolumeClaimSpec" status: - $ref: '#/components/schemas/v1.PersistentVolumeClaimStatus' + $ref: "#/components/schemas/v1.PersistentVolumeClaimStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -178054,8 +202369,11 @@ components: \ being resized." type: string 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 type: + 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: - status @@ -178305,7 +202623,7 @@ components: 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' + $ref: "#/components/schemas/v1.PersistentVolumeClaim" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -178313,7 +202631,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -178371,13 +202689,13 @@ components: type: array x-kubernetes-list-type: atomic dataSource: - $ref: '#/components/schemas/v1.TypedLocalObjectReference' + $ref: "#/components/schemas/v1.TypedLocalObjectReference" dataSourceRef: - $ref: '#/components/schemas/v1.TypedObjectReference' + $ref: "#/components/schemas/v1.TypedObjectReference" resources: - $ref: '#/components/schemas/v1.VolumeResourceRequirements' + $ref: "#/components/schemas/v1.VolumeResourceRequirements" selector: - $ref: '#/components/schemas/v1.LabelSelector' + $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" @@ -178387,16 +202705,13 @@ components: \ 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/\ - \ (Alpha) Using this field requires the VolumeAttributesClass feature\ - \ gate to be enabled." + \ after the claim is created. An empty string or nil value indicates that\ + \ no VolumeAttributesClass will be applied to the claim. If the claim\ + \ enters an Infeasible error state, this field can be reset to its previous\ + \ value (including nil) to cancel the modification. 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/" type: string volumeMode: description: volumeMode defines what type of volume is required by the claim. @@ -178477,13 +202792,12 @@ components: \ 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." + \ PVC." type: object x-kubernetes-map-type: granular allocatedResources: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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\ @@ -178502,12 +202816,11 @@ components: \ 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." + \ PVC." type: object capacity: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $ref: "#/components/schemas/resource.Quantity" description: capacity represents the actual resources of the underlying volume. type: object @@ -178516,7 +202829,7 @@ components: If underlying persistent volume is being resized then the Condition will be set to 'Resizing'. items: - $ref: '#/components/schemas/v1.PersistentVolumeClaimCondition' + $ref: "#/components/schemas/v1.PersistentVolumeClaimCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -178526,11 +202839,10 @@ components: 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 an alpha field and requires\ - \ enabling VolumeAttributesClass feature." + \ applied to this PersistentVolumeClaim" type: string modifyVolumeStatus: - $ref: '#/components/schemas/v1.ModifyVolumeStatus' + $ref: "#/components/schemas/v1.ModifyVolumeStatus" phase: description: phase represents the current phase of PersistentVolumeClaim. type: string @@ -178623,9 +202935,9 @@ components: volumeMode: volumeMode properties: metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PersistentVolumeClaimSpec' + $ref: "#/components/schemas/v1.PersistentVolumeClaimSpec" required: - spec type: object @@ -178802,7 +203114,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -178937,7 +203249,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -179096,7 +203408,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -179231,7 +203543,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -179257,7 +203569,7 @@ components: 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' + $ref: "#/components/schemas/v1.PersistentVolume" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -179265,7 +203577,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -179371,7 +203683,7 @@ components: readOnly: true fsType: fsType awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -179506,7 +203818,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -179527,41 +203839,41 @@ components: type: array x-kubernetes-list-type: atomic awsElasticBlockStore: - $ref: '#/components/schemas/v1.AWSElasticBlockStoreVolumeSource' + $ref: "#/components/schemas/v1.AWSElasticBlockStoreVolumeSource" azureDisk: - $ref: '#/components/schemas/v1.AzureDiskVolumeSource' + $ref: "#/components/schemas/v1.AzureDiskVolumeSource" azureFile: - $ref: '#/components/schemas/v1.AzureFilePersistentVolumeSource' + $ref: "#/components/schemas/v1.AzureFilePersistentVolumeSource" capacity: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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' + $ref: "#/components/schemas/v1.CephFSPersistentVolumeSource" cinder: - $ref: '#/components/schemas/v1.CinderPersistentVolumeSource' + $ref: "#/components/schemas/v1.CinderPersistentVolumeSource" claimRef: - $ref: '#/components/schemas/v1.ObjectReference' + $ref: "#/components/schemas/v1.ObjectReference" csi: - $ref: '#/components/schemas/v1.CSIPersistentVolumeSource' + $ref: "#/components/schemas/v1.CSIPersistentVolumeSource" fc: - $ref: '#/components/schemas/v1.FCVolumeSource' + $ref: "#/components/schemas/v1.FCVolumeSource" flexVolume: - $ref: '#/components/schemas/v1.FlexPersistentVolumeSource' + $ref: "#/components/schemas/v1.FlexPersistentVolumeSource" flocker: - $ref: '#/components/schemas/v1.FlockerVolumeSource' + $ref: "#/components/schemas/v1.FlockerVolumeSource" gcePersistentDisk: - $ref: '#/components/schemas/v1.GCEPersistentDiskVolumeSource' + $ref: "#/components/schemas/v1.GCEPersistentDiskVolumeSource" glusterfs: - $ref: '#/components/schemas/v1.GlusterfsPersistentVolumeSource' + $ref: "#/components/schemas/v1.GlusterfsPersistentVolumeSource" hostPath: - $ref: '#/components/schemas/v1.HostPathVolumeSource' + $ref: "#/components/schemas/v1.HostPathVolumeSource" iscsi: - $ref: '#/components/schemas/v1.ISCSIPersistentVolumeSource' + $ref: "#/components/schemas/v1.ISCSIPersistentVolumeSource" local: - $ref: '#/components/schemas/v1.LocalVolumeSource' + $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\ @@ -179571,9 +203883,9 @@ components: type: array x-kubernetes-list-type: atomic nfs: - $ref: '#/components/schemas/v1.NFSVolumeSource' + $ref: "#/components/schemas/v1.NFSVolumeSource" nodeAffinity: - $ref: '#/components/schemas/v1.VolumeNodeAffinity' + $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\ @@ -179583,22 +203895,22 @@ components: \ More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming" type: string photonPersistentDisk: - $ref: '#/components/schemas/v1.PhotonPersistentDiskVolumeSource' + $ref: "#/components/schemas/v1.PhotonPersistentDiskVolumeSource" portworxVolume: - $ref: '#/components/schemas/v1.PortworxVolumeSource' + $ref: "#/components/schemas/v1.PortworxVolumeSource" quobyte: - $ref: '#/components/schemas/v1.QuobyteVolumeSource' + $ref: "#/components/schemas/v1.QuobyteVolumeSource" rbd: - $ref: '#/components/schemas/v1.RBDPersistentVolumeSource' + $ref: "#/components/schemas/v1.RBDPersistentVolumeSource" scaleIO: - $ref: '#/components/schemas/v1.ScaleIOPersistentVolumeSource' + $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' + $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\ @@ -179606,8 +203918,7 @@ components: \ 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 an alpha field and requires enabling\ - \ VolumeAttributesClass feature." + \ during the binding process." type: string volumeMode: description: volumeMode defines if a volume is intended to be used with @@ -179615,7 +203926,7 @@ components: is implied when not included in spec. type: string vsphereVolume: - $ref: '#/components/schemas/v1.VsphereVirtualDiskVolumeSource' + $ref: "#/components/schemas/v1.VsphereVirtualDiskVolumeSource" type: object v1.PersistentVolumeStatus: description: PersistentVolumeStatus is the current status of a persistent volume. @@ -179628,8 +203939,7 @@ components: 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 a beta field and requires the PersistentVolumeLastPhaseTransitionTime - feature to be enabled (enabled by default). + a volume phase transitions. format: date-time type: string message: @@ -179736,6 +204046,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -179750,7 +204061,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -179759,7 +204069,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -179768,30 +204088,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -179811,7 +204128,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -179827,14 +204144,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -179850,7 +204167,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -179961,20 +204278,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179983,7 +204300,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -179996,26 +204313,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -180037,7 +204363,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180046,7 +204372,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180059,26 +204385,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -180098,7 +204433,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -180133,6 +204468,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -180150,9 +204488,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180161,7 +204499,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180171,7 +204509,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -180181,7 +204519,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -180206,14 +204544,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -180253,7 +204591,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -180370,20 +204708,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180392,7 +204730,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180405,26 +204743,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -180446,7 +204793,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180455,7 +204802,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180468,26 +204815,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -180507,7 +204863,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -180542,6 +204898,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -180559,9 +204918,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180570,7 +204929,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -180580,7 +204939,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -180590,7 +204949,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -180615,14 +204974,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -180662,7 +205021,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -180674,17 +205033,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -180807,6 +205189,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -180888,8 +205271,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -180913,6 +205590,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -180931,6 +205613,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -180941,16 +205628,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -181073,6 +205787,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -181149,13 +205864,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -181179,6 +205895,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -181197,6 +205918,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -181207,71 +205933,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -181327,43 +206011,6 @@ components: 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 @@ -181375,10 +206022,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -181394,9 +206037,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -181438,8 +206078,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -181472,7 +206111,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -181488,11 +206126,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -181522,21 +206155,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -181592,43 +206303,6 @@ components: 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 @@ -181640,10 +206314,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -181659,9 +206329,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -181703,8 +206370,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -181737,7 +206403,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -181753,12 +206418,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -181788,21 +206447,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -181858,43 +206594,6 @@ components: 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 @@ -181906,10 +206605,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -181925,9 +206620,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -181969,8 +206661,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -182003,7 +206694,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -182019,11 +206709,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -182053,76 +206738,18 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null env: - name: name value: value @@ -182142,6 +206769,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -182160,130 +206792,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -182709,91 +207232,33 @@ components: name: name reason: reason containerStatuses: - - allocatedResources: - key: null - image: image - imageID: imageID - restartCount: 0 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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: 7 - 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: 7 - 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: - key: null + - 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -182802,11 +207267,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -182817,30 +207282,10 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - hostIP: hostIP - nominatedNodeName: nominatedNodeName - message: message - podIPs: - - ip: ip - - ip: ip - podIP: podIP - ephemeralContainerStatuses: - - allocatedResources: + allocatedResources: key: null - image: image - imageID: imageID - restartCount: 0 ready: true name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - started: true state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -182849,67 +207294,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 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: 7 - 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: - key: null + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -182918,11 +207344,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -182933,42 +207359,116 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - hostIPs: + allocatedResources: + key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + hostIP: hostIP + extendedResourceClaimStatus: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + nominatedNodeName: nominatedNodeName + message: message + podIPs: - 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: - key: null + allocatedResources: + key: null + 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 6 + 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: + key: null + ready: true + name: name state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -182977,13 +207477,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -182992,11 +207527,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -183007,22 +207542,109 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - - allocatedResources: + allocatedResources: key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + 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: 0 + 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: 0 + 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 6 + 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: + key: null + ready: true + name: name state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -183031,13 +207653,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -183046,11 +207703,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -183061,6 +207718,34 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + observedGeneration: 3 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -183073,11 +207758,11 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.PodSpec' + $ref: "#/components/schemas/v1.PodSpec" status: - $ref: '#/components/schemas/v1.PodStatus' + $ref: "#/components/schemas/v1.PodStatus" type: object x-kubernetes-group-version-kind: - group: "" @@ -183258,7 +207943,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.WeightedPodAffinityTerm" type: array x-kubernetes-list-type: atomic requiredDuringSchedulingIgnoredDuringExecution: @@ -183270,7 +207955,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.PodAffinityTerm" type: array x-kubernetes-list-type: atomic type: object @@ -183321,7 +208006,7 @@ components: - namespaces properties: labelSelector: - $ref: '#/components/schemas/v1.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\ @@ -183331,8 +208016,7 @@ components: \ pod (anti) affinity. Keys that don't exist in the incoming pod labels\ \ will be ignored. The default value is empty. The same key is forbidden\ \ to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys\ - \ cannot be set when labelSelector isn't set. This is an alpha field and\ - \ requires enabling MatchLabelKeysInPodAffinity feature gate." + \ cannot be set when labelSelector isn't set." items: type: string type: array @@ -183346,14 +208030,13 @@ components: \ pod (anti) affinity. Keys that don't exist in the incoming pod labels\ \ will be ignored. The default value is empty. The same key is forbidden\ \ to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys\ - \ cannot be set when labelSelector isn't set. This is an alpha field and\ - \ requires enabling MatchLabelKeysInPodAffinity feature gate." + \ cannot be set when labelSelector isn't set." items: type: string type: array x-kubernetes-list-type: atomic namespaceSelector: - $ref: '#/components/schemas/v1.LabelSelector' + $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 @@ -183544,11 +208227,11 @@ components: \ 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." + \ sum by iterating through the elements of this field and subtracting\ + \ \"weight\" from 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' + $ref: "#/components/schemas/v1.WeightedPodAffinityTerm" type: array x-kubernetes-list-type: atomic requiredDuringSchedulingIgnoredDuringExecution: @@ -183560,10 +208243,81 @@ components: \ 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' + $ref: "#/components/schemas/v1.PodAffinityTerm" type: array x-kubernetes-list-type: atomic type: object + v1.PodCertificateProjection: + description: PodCertificateProjection provides a private key and X.509 certificate + in the pod filesystem. + example: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + properties: + certificateChainPath: + description: |- + Write the certificate chain at this path in the projected volume. + + Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. + type: string + credentialBundlePath: + description: |- + Write the credential bundle at this path in the projected volume. + + The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. + + The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). + + Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key. + type: string + keyPath: + description: |- + Write the key at this path in the projected volume. + + Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. + type: string + keyType: + description: |- + The type of keypair Kubelet will generate for the pod. + + Valid values are "RSA3072", "RSA4096", "ECDSAP256", "ECDSAP384", "ECDSAP521", and "ED25519". + type: string + maxExpirationSeconds: + description: |- + maxExpirationSeconds is the maximum lifetime permitted for the certificate. + + Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. + + If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). + + The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. + format: int32 + type: integer + signerName: + description: Kubelet's generated CSRs will be addressed to this signer. + type: string + userAnnotations: + additionalProperties: + type: string + description: |- + userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. + + These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates. + + Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. + + Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. + type: object + required: + - keyType + - signerName + type: object v1.PodCondition: description: PodCondition contains details for the current condition of this pod. @@ -183572,6 +208326,7 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status properties: @@ -183586,6 +208341,12 @@ components: 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. The PodObservedGenerationTracking\ + \ feature gate must be enabled to use this field." + format: int64 + type: integer reason: description: "Unique, one-word, CamelCase reason for the condition's last\ \ transition." @@ -183631,7 +208392,7 @@ components: Resolution options given in Options will override those that appear in the base DNSPolicy. items: - $ref: '#/components/schemas/v1.PodDNSConfigOption' + $ref: "#/components/schemas/v1.PodDNSConfigOption" type: array x-kubernetes-list-type: atomic searches: @@ -183650,11 +208411,41 @@ components: value: value properties: name: - description: Required. + description: Name is this DNS resolver option's name. Required. type: string value: + description: Value is this DNS resolver option's value. type: string type: object + v1.PodExtendedResourceClaimStatus: + description: PodExtendedResourceClaimStatus is stored in the PodStatus for the + extended resource requests backed by DRA. It stores the generated name for + the corresponding special ResourceClaim created by the scheduler. + example: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName + properties: + requestMappings: + description: "RequestMappings identifies the mapping of to device request in the generated ResourceClaim." + items: + $ref: "#/components/schemas/v1.ContainerExtendedResourceRequest" + type: array + x-kubernetes-list-type: atomic + resourceClaimName: + description: ResourceClaimName is the name of the ResourceClaim that was + generated for the Pod in the namespace of the Pod. + type: string + required: + - requestMappings + - resourceClaimName + type: object v1.PodIP: description: PodIP represents a single IP address allocated to the pod. example: @@ -183746,6 +208537,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -183760,7 +208552,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -183769,7 +208560,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -183778,30 +208579,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -183821,7 +208619,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -183837,14 +208635,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -183860,7 +208658,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -183971,20 +208769,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -183993,7 +208791,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184006,26 +208804,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -184047,7 +208854,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184056,7 +208863,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184069,26 +208876,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -184108,7 +208924,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -184143,6 +208959,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -184160,9 +208979,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184171,7 +208990,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184181,7 +209000,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -184191,7 +209010,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -184216,14 +209035,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -184263,7 +209082,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -184380,20 +209199,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184402,7 +209221,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184415,26 +209234,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -184456,7 +209284,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184465,7 +209293,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184478,26 +209306,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -184517,7 +209354,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -184552,6 +209389,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -184569,9 +209409,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184580,7 +209420,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -184590,7 +209430,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -184600,7 +209440,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -184625,14 +209465,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -184672,7 +209512,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -184684,17 +209524,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -184817,6 +209680,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -184898,8 +209762,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -184923,6 +209789,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -184941,6 +209812,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -184956,11 +209832,24 @@ components: name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -185083,6 +209972,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -185164,8 +210054,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -185189,6 +210081,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -185207,6 +210104,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -185218,19 +210120,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 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: @@ -185238,50 +210138,24 @@ components: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -185337,43 +210211,6 @@ components: 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 @@ -185385,10 +210222,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -185404,9 +210237,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -185448,8 +210278,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -185482,7 +210311,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -185498,11 +210326,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -185532,21 +210355,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -185602,43 +210502,6 @@ components: 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 @@ -185650,10 +210513,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -185669,9 +210528,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -185713,8 +210569,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -185747,7 +210602,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -185763,12 +210617,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -185798,21 +210646,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -185868,43 +210794,6 @@ components: 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 @@ -185916,10 +210805,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -185935,9 +210820,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -185979,8 +210861,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -186013,7 +210894,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -186029,11 +210909,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -186063,21 +210938,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -186133,43 +211085,6 @@ components: 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 @@ -186181,10 +211096,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -186200,9 +211111,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -186244,8 +211152,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -186273,27 +211180,124 @@ components: 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: + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request name: name - optional: true - prefix: prefix - secretRef: + - request: request name: name - optional: true + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -186719,37 +211723,33 @@ components: name: name reason: reason containerStatuses: - - allocatedResources: - key: null + - 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -186758,11 +211758,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -186773,22 +211773,10 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - - allocatedResources: + allocatedResources: key: null - image: image - imageID: imageID - restartCount: 0 ready: true name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - started: true state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -186797,13 +211785,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -186812,11 +211835,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -186827,30 +211850,116 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 hostIP: hostIP + extendedResourceClaimStatus: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null nominatedNodeName: nominatedNodeName message: message podIPs: - ip: ip - ip: ip + allocatedResources: + key: null podIP: podIP ephemeralContainerStatuses: - - allocatedResources: - key: null + - 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 6 + 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: + key: null + ready: true + name: name state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -186859,13 +211968,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -186874,11 +212018,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -186889,22 +212033,10 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - - allocatedResources: + allocatedResources: key: null - image: image - imageID: imageID - restartCount: 0 ready: true name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - started: true state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -186913,13 +212045,70 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + 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: 0 + 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: 0 + 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -186928,11 +212117,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -186943,42 +212132,10 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - 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: + allocatedResources: key: null - image: image - imageID: imageID - restartCount: 0 ready: true name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - started: true state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -186987,13 +212144,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -187002,11 +212194,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -187017,22 +212209,10 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - - allocatedResources: + allocatedResources: key: null - image: image - imageID: imageID - restartCount: 0 ready: true name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - started: true state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -187041,36 +212221,22 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 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: 7 - 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 + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + observedGeneration: 3 - metadata: generation: 6 finalizers: @@ -187140,6 +212306,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -187154,7 +212321,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -187163,7 +212329,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -187172,30 +212348,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -187215,7 +212388,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -187231,14 +212404,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -187254,7 +212427,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -187365,20 +212538,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187387,7 +212560,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187400,26 +212573,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -187441,7 +212623,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187450,7 +212632,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187463,26 +212645,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -187502,7 +212693,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -187537,6 +212728,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -187554,9 +212748,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187565,7 +212759,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187575,7 +212769,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -187585,7 +212779,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -187610,14 +212804,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -187657,7 +212851,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -187774,20 +212968,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187796,7 +212990,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187809,26 +213003,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -187850,7 +213053,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187859,7 +213062,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187872,26 +213075,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -187911,7 +213123,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -187946,6 +213158,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -187963,9 +213178,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187974,7 +213189,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -187984,7 +213199,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -187994,7 +213209,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -188019,14 +213234,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -188066,7 +213281,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -188078,17 +213293,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -188211,6 +213449,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -188292,8 +213531,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -188317,6 +213558,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -188335,6 +213581,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -188350,11 +213601,24 @@ components: name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -188477,6 +213741,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -188558,8 +213823,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -188583,6 +213850,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -188601,6 +213873,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -188612,19 +213889,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 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: @@ -188632,50 +213907,24 @@ components: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -188731,43 +213980,6 @@ components: 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 @@ -188779,10 +213991,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -188798,9 +214006,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -188842,8 +214047,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -188876,7 +214080,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -188892,11 +214095,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -188926,21 +214124,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -188996,43 +214271,6 @@ components: 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 @@ -189044,10 +214282,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -189063,9 +214297,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -189107,8 +214338,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -189141,7 +214371,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -189157,12 +214386,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -189192,21 +214415,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -189262,43 +214563,6 @@ components: 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 @@ -189310,10 +214574,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -189329,9 +214589,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -189373,8 +214630,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -189407,7 +214663,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -189423,11 +214678,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -189457,21 +214707,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -189527,43 +214854,6 @@ components: 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 @@ -189575,10 +214865,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -189594,9 +214880,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -189638,8 +214921,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -189672,7 +214954,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -189688,6 +214969,104 @@ components: 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -190113,37 +215492,33 @@ components: name: name reason: reason containerStatuses: - - allocatedResources: - key: null + - 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -190152,11 +215527,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -190167,22 +215542,10 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - - allocatedResources: + allocatedResources: key: null - image: image - imageID: imageID - restartCount: 0 ready: true name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - started: true state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -190191,13 +215554,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -190206,11 +215604,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -190221,45 +215619,89 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 hostIP: hostIP + extendedResourceClaimStatus: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null nominatedNodeName: nominatedNodeName message: message podIPs: - ip: ip - ip: ip + allocatedResources: + key: null podIP: podIP ephemeralContainerStatuses: - - allocatedResources: - key: null + - 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -190268,11 +215710,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -190283,22 +215725,10 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - - allocatedResources: + allocatedResources: key: null - image: image - imageID: imageID - restartCount: 0 ready: true name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - started: true state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -190307,13 +215737,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -190322,11 +215787,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -190337,6 +215802,33 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 hostIPs: - ip: ip - ip: ip @@ -190348,46 +215840,44 @@ components: lastTransitionTime: 2000-01-23T04:56:07.000+00:00 message: message type: type + observedGeneration: 0 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: 0 lastProbeTime: 2000-01-23T04:56:07.000+00:00 status: status initContainerStatuses: - - allocatedResources: - key: null + - 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -190396,11 +215886,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -190411,22 +215901,10 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - - allocatedResources: + allocatedResources: key: null - image: image - imageID: imageID - restartCount: 0 ready: true name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - started: true state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -190435,13 +215913,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -190450,11 +215963,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -190465,6 +215978,34 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + observedGeneration: 3 properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -190474,7 +216015,7 @@ components: 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' + $ref: "#/components/schemas/v1.Pod" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -190482,7 +216023,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -190520,22 +216061,35 @@ components: - 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. + 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 - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName + resourceClaimTemplateName: resourceClaimTemplateName properties: name: description: Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. type: string - source: - $ref: '#/components/schemas/v1.ClaimSource' + 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 @@ -190554,7 +216108,7 @@ components: 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,\ + \ 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 @@ -190578,7 +216132,6 @@ components: container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. example: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -190587,7 +216140,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -190596,20 +216159,13 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy properties: appArmorProfile: - $ref: '#/components/schemas/v1.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: @@ -190652,34 +216208,56 @@ components: \ 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' + $ref: "#/components/schemas/v1.SELinuxOptions" seccompProfile: - $ref: '#/components/schemas/v1.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." + \ 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' + $ref: "#/components/schemas/v1.Sysctl" type: array x-kubernetes-list-type: atomic windowsOptions: - $ref: '#/components/schemas/v1.WindowsSecurityContextOptions' + $ref: "#/components/schemas/v1.WindowsSecurityContextOptions" type: object v1.PodSpec: description: PodSpec is a description of a pod. @@ -190704,6 +216282,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -190718,7 +216297,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -190727,7 +216305,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -190736,30 +216324,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -190779,7 +216364,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -190795,14 +216380,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -190818,7 +216403,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -190929,20 +216514,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -190951,7 +216536,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -190964,26 +216549,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -191005,7 +216599,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191014,7 +216608,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191027,26 +216621,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -191066,7 +216669,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -191101,6 +216704,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -191118,9 +216724,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191129,7 +216735,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191139,7 +216745,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -191149,7 +216755,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -191174,14 +216780,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -191221,7 +216827,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -191338,20 +216944,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191360,7 +216966,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191373,26 +216979,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -191414,7 +217029,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191423,7 +217038,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191436,26 +217051,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -191475,7 +217099,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -191510,6 +217134,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -191527,9 +217154,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191538,7 +217165,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -191548,7 +217175,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -191558,7 +217185,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -191583,14 +217210,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -191630,7 +217257,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -191642,17 +217269,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -191775,6 +217425,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -191856,8 +217507,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -191881,6 +217826,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -191899,6 +217849,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -191909,16 +217864,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -192041,6 +218023,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -192117,13 +218100,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -192147,6 +218131,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -192165,6 +218154,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -192175,71 +218169,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -192295,43 +218247,6 @@ components: 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 @@ -192343,10 +218258,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -192362,9 +218273,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -192406,8 +218314,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -192440,7 +218347,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -192456,11 +218362,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -192490,21 +218391,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -192560,43 +218539,6 @@ components: 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 @@ -192608,10 +218550,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -192627,9 +218565,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -192671,8 +218606,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -192705,7 +218639,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -192721,12 +218654,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -192756,21 +218683,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -192826,43 +218830,6 @@ components: 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 @@ -192874,10 +218841,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -192893,9 +218856,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -192937,8 +218897,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -192971,7 +218930,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -192987,11 +218945,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -193021,76 +218974,18 @@ components: value: value - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null env: - name: name value: value @@ -193110,6 +219005,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -193128,130 +219028,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -193676,7 +219467,7 @@ components: format: int64 type: integer affinity: - $ref: '#/components/schemas/v1.Affinity' + $ref: "#/components/schemas/v1.Affinity" automountServiceAccountToken: description: AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. @@ -193686,7 +219477,7 @@ components: currently be added or removed. There must be at least one container in a Pod. Cannot be updated. items: - $ref: '#/components/schemas/v1.Container' + $ref: "#/components/schemas/v1.Container" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -193694,7 +219485,7 @@ components: - name x-kubernetes-patch-merge-key: name dnsConfig: - $ref: '#/components/schemas/v1.PodDNSConfig' + $ref: "#/components/schemas/v1.PodDNSConfig" dnsPolicy: description: "Set DNS policy for the pod. Defaults to \"ClusterFirst\".\ \ Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default'\ @@ -193714,7 +219505,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.EphemeralContainer" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -193725,7 +219516,7 @@ components: 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' + $ref: "#/components/schemas/v1.HostAlias" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -193737,8 +219528,11 @@ components: 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." + \ namespace. When using HostNetwork you should specify ports so the scheduler\ + \ is aware. When `hostNetwork` is true, specified `hostPort` fields in\ + \ port definitions must match `containerPort`, and unspecified `hostPort`\ + \ fields in port definitions are defaulted to match `containerPort`. Default\ + \ to false." type: boolean hostPID: description: "Use the host's pid namespace. Optional: Default to false." @@ -193758,13 +219552,19 @@ components: description: "Specifies the hostname of the Pod If not specified, the pod's\ \ hostname will be set to a system-defined value." type: string + hostnameOverride: + description: |- + HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. + + This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. + 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' + $ref: "#/components/schemas/v1.LocalObjectReference" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -193780,12 +219580,12 @@ components: \ 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\ + \ 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' + $ref: "#/components/schemas/v1.Container" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -193793,9 +219593,12 @@ components: - name 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." + 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 nodeSelector: additionalProperties: @@ -193806,10 +219609,10 @@ components: type: object x-kubernetes-map-type: atomic os: - $ref: '#/components/schemas/v1.PodOS' + $ref: "#/components/schemas/v1.PodOS" overhead: additionalProperties: - $ref: '#/components/schemas/resource.Quantity' + $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\ @@ -193847,24 +219650,26 @@ components: \ 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' + $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 is a stable field but requires that the DynamicResourceAllocation feature gate is enabled. This field is immutable. items: - $ref: '#/components/schemas/v1.PodResourceClaim' + $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\ @@ -193888,7 +219693,7 @@ components: SchedulingGates can only be set at pod creation time, and be removed only afterwards. items: - $ref: '#/components/schemas/v1.PodSchedulingGate' + $ref: "#/components/schemas/v1.PodSchedulingGate" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -193896,7 +219701,7 @@ components: - name x-kubernetes-patch-merge-key: name securityContext: - $ref: '#/components/schemas/v1.PodSecurityContext' + $ref: "#/components/schemas/v1.PodSecurityContext" serviceAccount: description: "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.\ \ Deprecated: Use serviceAccountName instead." @@ -193911,8 +219716,8 @@ components: \ 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." + \\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\ @@ -193941,7 +219746,7 @@ components: tolerations: description: "If specified, the pod's tolerations." items: - $ref: '#/components/schemas/v1.Toleration' + $ref: "#/components/schemas/v1.Toleration" type: array x-kubernetes-list-type: atomic topologySpreadConstraints: @@ -193949,7 +219754,7 @@ components: 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' + $ref: "#/components/schemas/v1.TopologySpreadConstraint" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -193961,13 +219766,15 @@ components: 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' + $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 + workloadRef: + $ref: "#/components/schemas/v1.WorkloadReference" required: - containers type: object @@ -193984,91 +219791,33 @@ components: name: name reason: reason containerStatuses: - - allocatedResources: - key: null - image: image - imageID: imageID - restartCount: 0 - ready: true - name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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: 7 - 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: 7 - 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: - key: null + - 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -194077,11 +219826,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -194092,30 +219841,10 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - hostIP: hostIP - nominatedNodeName: nominatedNodeName - message: message - podIPs: - - ip: ip - - ip: ip - podIP: podIP - ephemeralContainerStatuses: - - allocatedResources: + allocatedResources: key: null - image: image - imageID: imageID - restartCount: 0 ready: true name: name - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - started: true state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -194124,67 +219853,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 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: 7 - 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: - key: null + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 7 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -194193,11 +219903,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -194208,42 +219918,116 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - hostIPs: + allocatedResources: + key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + hostIP: hostIP + extendedResourceClaimStatus: + resourceClaimName: resourceClaimName + requestMappings: + - requestName: requestName + containerName: containerName + resourceName: resourceName + - requestName: requestName + containerName: containerName + resourceName: resourceName + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + nominatedNodeName: nominatedNodeName + message: message + podIPs: - 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: - key: null + allocatedResources: + key: null + 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 6 + 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: + key: null + ready: true + name: name state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -194252,13 +220036,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -194267,11 +220086,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -194282,22 +220101,109 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly - - allocatedResources: + allocatedResources: key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + 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: 0 + 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: 0 + 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: 0 - ready: true - name: name resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: key: null 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: 6 + 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: + key: null + ready: true + name: name state: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -194306,13 +220212,48 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - 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: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true lastState: running: startedAt: 2000-01-23T04:56:07.000+00:00 @@ -194321,11 +220262,11 @@ components: message: message terminated: reason: reason - exitCode: 3 + exitCode: 7 startedAt: 2000-01-23T04:56:07.000+00:00 containerID: containerID message: message - signal: 7 + signal: 6 finishedAt: 2000-01-23T04:56:07.000+00:00 volumeMounts: - mountPath: mountPath @@ -194336,11 +220277,46 @@ components: name: name readOnly: true recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + 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: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + observedGeneration: 3 properties: + allocatedResources: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: "AllocatedResources is the total requests allocated for this\ + \ pod by the node. If pod-level requests are not set, this will be the\ + \ total requests aggregated across containers in the pod." + type: object 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' + $ref: "#/components/schemas/v1.PodCondition" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -194348,18 +220324,30 @@ components: - type 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" + 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' + $ref: "#/components/schemas/v1.ContainerStatus" type: array x-kubernetes-list-type: atomic ephemeralContainerStatuses: - description: Status for any ephemeral containers that have run in this pod. + 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' + $ref: "#/components/schemas/v1.ContainerStatus" type: array x-kubernetes-list-type: atomic + extendedResourceClaimStatus: + $ref: "#/components/schemas/v1.PodExtendedResourceClaimStatus" 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 @@ -194373,18 +220361,22 @@ components: \ 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' + $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" + 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' + $ref: "#/components/schemas/v1.ContainerStatus" type: array x-kubernetes-list-type: atomic message: @@ -194401,6 +220393,12 @@ components: \ 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. The PodObservedGenerationTracking feature\ + \ gate must be enabled 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: @@ -194419,7 +220417,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.PodIP" type: array x-kubernetes-patch-strategy: merge x-kubernetes-list-type: map @@ -194436,20 +220434,27 @@ components: 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" + 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' + $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 + resources: + $ref: "#/components/schemas/v1.ResourceRequirements" 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) @@ -194529,6 +220534,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -194543,7 +220549,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -194552,7 +220557,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -194561,30 +220576,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -194604,7 +220616,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -194620,14 +220632,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -194643,7 +220655,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -194754,20 +220766,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -194776,7 +220788,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -194789,26 +220801,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -194830,7 +220851,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -194839,7 +220860,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -194852,26 +220873,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -194891,7 +220921,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -194926,6 +220956,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -194943,9 +220976,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -194954,7 +220987,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -194964,7 +220997,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -194974,7 +221007,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -194999,14 +221032,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -195046,7 +221079,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -195163,20 +221196,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -195185,7 +221218,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -195198,26 +221231,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -195239,7 +221281,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -195248,7 +221290,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -195261,26 +221303,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -195300,7 +221351,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -195335,6 +221386,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -195352,9 +221406,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -195363,7 +221417,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -195373,7 +221427,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -195383,7 +221437,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -195408,14 +221462,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -195455,7 +221509,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -195467,17 +221521,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -195600,6 +221677,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -195681,8 +221759,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -195706,6 +222078,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -195724,6 +222101,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -195734,16 +222116,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -195866,6 +222275,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -195942,13 +222352,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -195972,6 +222383,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -195990,6 +222406,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -196000,71 +222421,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -196120,43 +222499,6 @@ components: 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 @@ -196168,10 +222510,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -196187,9 +222525,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -196231,8 +222566,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -196265,7 +222599,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -196281,11 +222614,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -196315,21 +222643,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -196385,43 +222791,6 @@ components: 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 @@ -196433,10 +222802,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -196452,9 +222817,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -196496,8 +222858,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -196530,7 +222891,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -196546,12 +222906,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -196581,21 +222935,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -196651,43 +223082,6 @@ components: 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 @@ -196699,10 +223093,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -196718,9 +223108,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -196762,8 +223149,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -196796,7 +223182,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -196812,11 +223197,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -196846,76 +223226,18 @@ components: 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: key: null limits: key: null - 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 @@ -196935,6 +223257,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -196953,130 +223280,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -197553,9 +223771,9 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" template: - $ref: '#/components/schemas/v1.PodTemplateSpec' + $ref: "#/components/schemas/v1.PodTemplateSpec" type: object x-kubernetes-group-version-kind: - group: "" @@ -197642,6 +223860,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -197656,7 +223875,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -197665,7 +223883,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -197674,30 +223902,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -197717,7 +223942,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -197733,14 +223958,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -197756,7 +223981,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -197867,20 +224092,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197889,7 +224114,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197902,26 +224127,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -197943,7 +224177,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197952,7 +224186,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -197965,26 +224199,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -198004,7 +224247,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -198039,6 +224282,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -198056,9 +224302,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -198067,7 +224313,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -198077,7 +224323,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -198087,7 +224333,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -198112,14 +224358,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -198159,7 +224405,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -198276,20 +224522,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -198298,7 +224544,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -198311,26 +224557,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -198352,7 +224607,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -198361,7 +224616,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -198374,26 +224629,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -198413,7 +224677,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -198448,6 +224712,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -198465,9 +224732,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -198476,7 +224743,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -198486,7 +224753,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -198496,7 +224763,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -198521,14 +224788,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -198568,7 +224835,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -198580,17 +224847,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -198713,6 +225003,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -198794,8 +225085,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -198819,6 +225404,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -198837,6 +225427,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -198847,16 +225442,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -198979,6 +225601,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -199055,13 +225678,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -199085,6 +225709,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -199103,6 +225732,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -199113,71 +225747,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -199233,43 +225825,6 @@ components: 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 @@ -199281,10 +225836,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -199300,9 +225851,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -199344,8 +225892,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -199378,7 +225925,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -199394,11 +225940,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -199428,21 +225969,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -199498,43 +226117,6 @@ components: 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 @@ -199546,10 +226128,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -199565,9 +226143,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -199609,8 +226184,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -199643,7 +226217,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -199659,12 +226232,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -199694,21 +226261,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -199764,43 +226408,6 @@ components: 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 @@ -199812,10 +226419,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -199831,9 +226434,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -199875,8 +226475,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -199909,7 +226508,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -199925,11 +226523,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -199959,76 +226552,18 @@ components: 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: key: null limits: key: null - 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 @@ -200048,6 +226583,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -200066,130 +226606,21 @@ components: 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key 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 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: @@ -200722,6 +227153,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -200736,7 +227168,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -200745,7 +227176,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -200754,30 +227195,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -200797,7 +227235,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -200813,14 +227251,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -200836,7 +227274,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -200947,20 +227385,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200969,7 +227407,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -200982,26 +227420,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -201023,7 +227470,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201032,7 +227479,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201045,26 +227492,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -201084,7 +227540,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -201119,6 +227575,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -201136,9 +227595,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201147,7 +227606,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201157,7 +227616,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -201167,7 +227626,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -201192,14 +227651,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -201239,7 +227698,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -201356,20 +227815,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201378,7 +227837,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201391,26 +227850,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -201432,7 +227900,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201441,7 +227909,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201454,26 +227922,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -201493,7 +227970,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -201528,6 +228005,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -201545,9 +228025,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201556,7 +228036,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -201566,7 +228046,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -201576,7 +228056,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -201601,14 +228081,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -201648,7 +228128,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -201660,17 +228140,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -201793,6 +228296,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -201874,8 +228378,302 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: key: null limits: @@ -201899,6 +228697,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -201917,6 +228720,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -201927,16 +228735,43 @@ components: name: name tty: true stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -202059,6 +228894,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -202135,13 +228971,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -202165,6 +229002,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -202183,6 +229025,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -202193,71 +229040,29 @@ components: name: name tty: true stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -202313,43 +229118,6 @@ components: 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 @@ -202361,10 +229129,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -202380,9 +229144,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -202424,8 +229185,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -202458,7 +229218,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -202474,11 +229233,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -202508,21 +229262,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -202578,43 +229410,6 @@ components: 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 @@ -202626,10 +229421,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -202645,9 +229436,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -202689,8 +229477,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -202723,7 +229510,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -202739,12 +229525,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -202774,21 +229554,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -202844,43 +229701,6 @@ components: 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 @@ -202892,10 +229712,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -202911,9 +229727,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -202955,8 +229768,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -202989,7 +229801,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -203005,11 +229816,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -203039,76 +229845,18 @@ components: 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: key: null limits: key: null - 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 @@ -203128,6 +229876,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -203146,130 +229899,21 @@ components: 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: + fileKeyRef: 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 - 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 + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true 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: @@ -203743,7 +230387,7 @@ components: items: description: List of pod templates items: - $ref: '#/components/schemas/v1.PodTemplate' + $ref: "#/components/schemas/v1.PodTemplate" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -203751,7 +230395,7 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object @@ -203832,6 +230476,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -203846,7 +230491,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -203855,7 +230499,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -203864,30 +230518,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -203907,7 +230558,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -203923,14 +230574,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -203946,7 +230597,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -204057,20 +230708,450 @@ components: volumeMode: volumeMode secret: secretName: secretName + defaultMode: 7 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 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: 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: 1 + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 6 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 5 + 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: 3 + 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: 6 + 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: + key: null + limits: + key: null + 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: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204079,7 +231160,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204092,26 +231173,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -204133,7 +231223,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204142,7 +231232,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -204155,632 +231245,1439 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 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: + 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: 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: 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: 1 + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 6 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 5 + 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: 3 + 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: 6 + 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: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName + optional: true + prefix: prefix 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 - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix secretRef: name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 + 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: + key: null + limits: + key: null + 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 - - mode: 1 - path: path + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 - optional: true - items: - - mode: 3 + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 - key: key - - mode: 3 + 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 - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName + 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 - readOnly: true - fsType: fsType - csi: - driver: driver - nodePublishSecretRef: + optional: true + - configMapRef: 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 + optional: true + prefix: prefix 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: - key: null - limits: - key: null - 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 + 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 - 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: + scheme: scheme + port: port + host: host + httpHeaders: + - name: name + value: value + - name: name + value: value + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: 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: + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name + volumeName: volumeName 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: + key: key + - name: name + value: value + valueFrom: + secretKeyRef: name: name optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - secret: + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: 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: + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - name: name + volumeName: volumeName optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: - name: name - secretFile: secretFile + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName + 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 - 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 - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName - kind: kind - readOnly: true - cachingMode: cachingMode - diskURI: diskURI - fsType: fsType - cinder: + optional: true + - configMapRef: + name: name + optional: true + prefix: prefix secretRef: name: name - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 - items: - - mode: 1 + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 - - mode: 1 - path: path + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args 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 - ephemeralContainers: + tty: true + stdinOnce: true + initContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -204903,6 +232800,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -204979,13 +232877,14 @@ components: value: value - name: name value: value - targetContainerName: targetContainerName terminationMessagePath: terminationMessagePath workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -205009,6 +232908,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -205027,6 +232931,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -205042,11 +232951,24 @@ components: name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -205169,6 +233091,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -205211,2381 +233134,4072 @@ components: optional: true - configMapRef: name: name - optional: true - prefix: prefix - secretRef: + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: 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: + 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: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 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. 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: + 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.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 + required: + - image + - monitors + type: object + v1.ReplicationController: + description: ReplicationController represents the configuration of a replication + controller. + 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: + 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 - 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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: 6 - 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 + 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 - 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: + 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 - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: + hostNetwork: true + readinessGates: + - conditionType: conditionType + - conditionType: conditionType + serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride + imagePullSecrets: - name: name - name: name - requests: - key: null - limits: - key: null - 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 - 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: + 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: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: - 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: + runAsUser: 5 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup 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: + podGroupReplicaKey: podGroupReplicaKey + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + automountServiceAccountToken: true + schedulingGates: - name: name - name: name - requests: - key: null - limits: + schedulerName: schedulerName + activeDeadlineSeconds: 0 + os: + name: name + setHostnameAsFQDN: true + enableServiceLinks: true + overhead: key: null - 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 + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 8 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 9 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 8 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 9 + 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: + key: null + limits: + key: null + 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: 7 optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 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: 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: 1 + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 6 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 5 + 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: 3 name: name optional: true - key: key - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - name: name - value: value - valueFrom: - secretKeyRef: - name: name + 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: 6 + 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: + key: null + limits: + key: null + 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: 7 optional: true - key: key - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - configMapKeyRef: + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 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: 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: 1 + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 6 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 5 + 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: 3 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: + 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 - 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: + 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: 6 + 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: 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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: + 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: + key: null + limits: + key: null + 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: 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 - 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: + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value - stdin: true - terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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: + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy 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: + 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: + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: 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 - 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: + 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: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - optional: true - - configMapRef: + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 - 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 + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 operator: operator - - values: - - values - - values - key: key + - action: action + exitCodes: + values: + - 1 + - 1 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 + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true key: key - operator: operator - - values: - - values - - values + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true 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 + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 operator: operator - - values: - - values - - values - key: key + - action: action + exitCodes: + values: + - 1 + - 1 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: - 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: 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 - 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 - 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: - 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.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 - required: - - image - - monitors - type: object - v1.ReplicationController: - description: ReplicationController represents the configuration of a replication - controller. - 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: - 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: + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - 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: 4 - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - 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: + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args name: name - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - 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 + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 operator: operator - - values: - - values - - values - key: key + - action: action + exitCodes: + values: + - 1 + - 1 operator: operator - matchLabels: - key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - volumes: - - quobyte: - volume: volume - registry: registry + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 - user: user - tenant: tenant - group: group - azureFile: - secretName: secretName + subPath: subPath + recursiveReadOnly: recursiveReadOnly + subPathExpr: subPathExpr + - mountPath: mountPath + mountPropagation: mountPropagation + name: name readOnly: true - shareName: shareName - flexVolume: - driver: driver - options: - key: options + 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 - 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 + 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: 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 @@ -207599,73 +237213,191 @@ components: 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 + 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 - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path + 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: @@ -207680,751 +237412,1302 @@ 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 + 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: + - 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: + 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 + hostnameOverride: hostnameOverride + 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: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + 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: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 8 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 9 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 8 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 9 + 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 - optional: true - signerName: signerName - - downwardAPI: - items: - - mode: 1 + 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: + key: null + limits: + key: null + 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: 7 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: + audience: audience + expirationSeconds: 3 + 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: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 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: 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: 1 + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 6 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 5 + 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: 3 + 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: 6 + 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: 1 - 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: 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: + 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: + key: null + limits: + key: null + 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: 7 + optional: true + items: + - mode: 6 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + key: key + - mode: 6 path: path - labelSelector: - matchExpressions: - - values: - - values - - values + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 - operator: operator - - values: - - values - - values + - mode: 6 + path: path 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 - 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: name: name - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels 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 + signerName: signerName + - downwardAPI: + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + configMap: name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - selector: - matchExpressions: - - values: - - values - - values + optional: true + items: + - mode: 6 + path: path key: key - operator: operator - - values: - - values - - values + - mode: 6 + path: path key: key - operator: operator - matchLabels: - key: matchLabels - accessModes: - - accessModes - - accessModes - dataSource: - apiGroup: apiGroup - kind: kind + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: 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 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: - apiVersion: apiVersion - fieldPath: fieldPath - - mode: 1 + audience: audience + expirationSeconds: 3 + 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: 6 + cephfs: + path: path + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - 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: 3 - path: path - key: key - - mode: 3 - 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: 1 + items: + - mode: 2 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 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: + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 6 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 5 + chapAuthDiscovery: true + iqn: iqn + portals: + - portals + - portals + secretRef: name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - 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: 3 - path: path - key: key - - mode: 3 - path: path - key: key - serviceAccountToken: + readOnly: true + fsType: fsType + keyring: keyring + user: user + monitors: + - monitors + - monitors + configMap: + defaultMode: 3 + name: name + optional: true + items: + - mode: 6 path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: + key: key + - mode: 6 path: path - labelSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels + key: key + storageos: + volumeNamespace: volumeNamespace + volumeName: volumeName + secretRef: 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 - 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 + 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: 1 + 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: 6 + 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: 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: + 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: 6 - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key - storageos: - volumeNamespace: volumeNamespace - volumeName: volumeName - secretRef: + requests: + key: null + limits: + key: null + 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: 2 - 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 - 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 @@ -208435,16 +238718,91 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + 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 @@ -208455,242 +238813,45 @@ components: value: value - name: name value: value - 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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 - 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 + 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 @@ -208701,16 +238862,144 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + targetContainerName: targetContainerName + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 @@ -208721,341 +239010,446 @@ components: value: value - name: name value: value - 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: + 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: 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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 + 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: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 7 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: - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - - name: name - source: - resourceClaimName: resourceClaimName - resourceClaimTemplateName: resourceClaimTemplateName - subdomain: subdomain - containers: - - volumeDevices: - - devicePath: devicePath + shareProcessNamespace: true + hostUsers: true + resourceClaims: + - resourceClaimName: resourceClaimName name: name - - devicePath: devicePath + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName 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 - requests: - key: null - limits: - key: null - 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: + resourceClaimTemplateName: resourceClaimTemplateName + subdomain: subdomain + containers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 - 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: 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 + 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 @@ -209066,16 +239460,143 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 @@ -209086,241 +239607,140 @@ components: value: value - name: name value: value - 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: + 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 - - 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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: + 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 - 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 + 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 @@ -209331,16 +239751,144 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 @@ -209351,242 +239899,140 @@ components: value: value - name: name value: value - 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: + 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 - 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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: + 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 - 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 + - 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 @@ -209597,16 +240043,143 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 @@ -209617,241 +240190,91 @@ components: value: value - name: name value: value - 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: + 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 - - 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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 + 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 @@ -209862,16 +240285,45 @@ components: value: value - name: name value: value - preStop: - sleep: - seconds: 5 + 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 @@ -209882,234 +240334,175 @@ components: value: value - name: name value: value - 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - - labelSelector: - matchExpressions: - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true key: key - operator: operator - - values: - - values - - values + - name: name + value: value + valueFrom: + secretKeyRef: + name: name + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - namespaceSelector: - matchExpressions: - - values: - - values - - values + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: + name: name + optional: true key: key - operator: operator - - values: - - values - - values + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true key: key - operator: operator - matchLabels: - key: matchLabels - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys - mismatchLabelKeys: - - mismatchLabelKeys - - mismatchLabelKeys - namespaces: - - namespaces - - namespaces - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: 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 @@ -210147,9 +240540,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -210187,88 +240578,90 @@ components: 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: + 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 @@ -210306,9 +240699,7 @@ components: namespaces: - namespaces - namespaces - weight: 1 - - podAffinityTerm: - labelSelector: + - labelSelector: matchExpressions: - values: - values @@ -210346,95 +240737,109 @@ components: 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: @@ -210552,6 +240957,7 @@ components: - conditionType: conditionType - conditionType: conditionType serviceAccountName: serviceAccountName + hostnameOverride: hostnameOverride imagePullSecrets: - name: name - name: name @@ -210566,7 +240972,6 @@ components: - hostnames - hostnames securityContext: - runAsUser: 4 seLinuxOptions: role: role level: level @@ -210575,7 +240980,17 @@ components: appArmorProfile: localhostProfile: localhostProfile type: type - fsGroup: 7 + fsGroup: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 seccompProfile: localhostProfile: localhostProfile type: type @@ -210584,30 +240999,27 @@ components: runAsUserName: runAsUserName hostProcess: true gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - runAsNonRoot: true - sysctls: - - name: name - value: value - - name: name - value: value + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy preemptionPolicy: preemptionPolicy nodeSelector: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 6 value: value key: key operator: operator @@ -210627,7 +241039,7 @@ components: topologySpreadConstraints: - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -210643,14 +241055,14 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys - matchLabelKeys - nodeTaintsPolicy: nodeTaintsPolicy whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 + maxSkew: 8 nodeAffinityPolicy: nodeAffinityPolicy labelSelector: matchExpressions: @@ -210666,7 +241078,7 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 + minDomains: 9 topologyKey: topologyKey matchLabelKeys: - matchLabelKeys @@ -210777,20 +241189,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -210799,7 +241211,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -210812,26 +241224,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -210853,7 +241274,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -210862,7 +241283,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -210875,26 +241296,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -210914,7 +241344,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -210949,6 +241379,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -210966,9 +241399,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -210977,7 +241410,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -210987,7 +241420,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -210997,7 +241430,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -211022,14 +241455,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -211069,7 +241502,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -211186,20 +241619,20 @@ components: volumeMode: volumeMode secret: secretName: secretName - defaultMode: 3 + defaultMode: 7 optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key projected: sources: - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211208,7 +241641,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211221,26 +241654,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -211262,7 +241704,7 @@ components: signerName: signerName - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211271,7 +241713,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211284,26 +241726,35 @@ components: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName secret: name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key serviceAccountToken: path: path audience: audience - expirationSeconds: 6 + expirationSeconds: 3 clusterTrustBundle: path: path labelSelector: @@ -211323,7 +241774,7 @@ components: name: name optional: true signerName: signerName - defaultMode: 5 + defaultMode: 6 cephfs: path: path secretRef: @@ -211358,6 +241809,9 @@ components: readOnly: true pdName: pdName fsType: fsType + image: + reference: reference + pullPolicy: pullPolicy photonPersistentDisk: pdID: pdID fsType: fsType @@ -211375,9 +241829,9 @@ components: readOnly: true fsType: fsType downwardAPI: - defaultMode: 6 + defaultMode: 1 items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211386,7 +241840,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -211396,7 +241850,7 @@ components: apiVersion: apiVersion fieldPath: fieldPath awsElasticBlockStore: - partition: 9 + partition: 6 volumeID: volumeID readOnly: true fsType: fsType @@ -211406,7 +241860,7 @@ components: iscsi: chapAuthSession: true iscsiInterface: iscsiInterface - lun: 6 + lun: 5 chapAuthDiscovery: true iqn: iqn portals: @@ -211431,14 +241885,14 @@ components: - monitors - monitors configMap: - defaultMode: 6 + defaultMode: 3 name: name optional: true items: - - mode: 3 + - mode: 6 path: path key: key - - mode: 3 + - mode: 6 path: path key: key storageos: @@ -211478,7 +241932,7 @@ components: volumePath: volumePath fsType: fsType fc: - lun: 2 + lun: 6 targetWWNs: - targetWWNs - targetWWNs @@ -211490,17 +241944,40 @@ components: hostPath: path: path type: type + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null ephemeralContainers: - volumeDevices: - devicePath: devicePath name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -211623,6 +242100,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -211704,8 +242182,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -211729,6 +242209,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -211747,6 +242232,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -211762,11 +242252,24 @@ components: name: name - devicePath: devicePath name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -211889,6 +242392,7 @@ components: value: value - name: name value: value + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -211970,8 +242474,10 @@ components: workingDir: workingDir resources: claims: - - name: name - - name: name + - request: request + name: name + - request: request + name: name requests: key: null limits: @@ -211995,6 +242501,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key - name: name value: value valueFrom: @@ -212013,6 +242524,11 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key restartPolicy: restartPolicy command: - command @@ -212024,19 +242540,17 @@ components: tty: true stdinOnce: true serviceAccount: serviceAccount - priority: 6 + priority: 7 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: @@ -212044,50 +242558,24 @@ components: 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator stdin: true terminationMessagePolicy: terminationMessagePolicy - terminationMessagePath: terminationMessagePath - workingDir: workingDir - resources: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -212143,43 +242631,6 @@ components: 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 @@ -212191,10 +242642,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -212210,9 +242657,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -212254,8 +242698,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -212288,7 +242731,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -212304,11 +242746,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -212338,21 +242775,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -212408,43 +242922,6 @@ components: 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 @@ -212456,10 +242933,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -212475,9 +242948,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -212519,8 +242989,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -212553,7 +243022,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -212569,12 +243037,6 @@ components: secretRef: name: name optional: true - initContainers: - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -212604,21 +243066,99 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -212674,43 +243214,6 @@ components: 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 @@ -212722,10 +243225,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -212741,9 +243240,6 @@ components: subPath: subPath recursiveReadOnly: recursiveReadOnly subPathExpr: subPathExpr - args: - - args - - args lifecycle: postStart: sleep: @@ -212785,8 +243281,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -212819,7 +243314,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -212835,11 +243329,6 @@ components: secretRef: name: name optional: true - - volumeDevices: - - devicePath: devicePath - name: name - - devicePath: devicePath - name: name image: image imagePullPolicy: imagePullPolicy livenessProbe: @@ -212869,21 +243358,98 @@ components: 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: key: null limits: key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy securityContext: privileged: true - runAsUser: 1 + runAsUser: 6 capabilities: add: - add @@ -212939,43 +243505,6 @@ components: 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 @@ -212987,10 +243516,6 @@ components: name: name containerPort: 7 hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command volumeMounts: - mountPath: mountPath mountPropagation: mountPropagation @@ -213005,10 +243530,7 @@ components: readOnly: true subPath: subPath recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - args: - - args - - args + subPathExpr: subPathExpr lifecycle: postStart: sleep: @@ -213050,8 +243572,7 @@ components: value: value - name: name value: value - name: name - tty: true + stopSignal: stopSignal readinessProbe: terminationGracePeriodSeconds: 2 failureThreshold: 5 @@ -213084,7 +243605,6 @@ components: restartPolicy: restartPolicy - resourceName: resourceName restartPolicy: restartPolicy - stdinOnce: true envFrom: - configMapRef: name: name @@ -213100,6 +243620,104 @@ components: 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -213306,965 +243924,18 @@ components: 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 - - 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: - 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: - runAsUser: 4 - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - 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: - key: null - 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 - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - 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 - 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 - 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: - key: null - limits: - key: null - selector: + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + mismatchLabelKeys: + - mismatchLabelKeys + - mismatchLabelKeys + namespaces: + - namespaces + - namespaces + weight: 1 + - podAffinityTerm: + labelSelector: matchExpressions: - values: - values @@ -214278,73 +243949,111 @@ components: 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 + 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 - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key - secret: - name: name - optional: true - items: - - mode: 3 - path: path + operator: operator + matchLabels: + key: matchLabels + namespaceSelector: + matchExpressions: + - values: + - values + - values key: key - - mode: 3 - path: path + operator: operator + - values: + - values + - values key: key - serviceAccountToken: - path: path - audience: audience - expirationSeconds: 6 - clusterTrustBundle: - path: path + 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: @@ -214359,55 +244068,32 @@ components: 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 + 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: @@ -214422,64 +244108,828 @@ components: operator: operator matchLabels: key: matchLabels - name: name - optional: true - signerName: signerName - defaultMode: 5 - cephfs: - path: path - secretRef: + 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 + 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 + - 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 + hostnameOverride: hostnameOverride + 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: 1 + fsGroupChangePolicy: fsGroupChangePolicy + seLinuxChangePolicy: seLinuxChangePolicy + runAsGroup: 4 + runAsNonRoot: true + sysctls: + - name: name + value: value + - name: name + value: value + runAsUser: 5 + seccompProfile: + localhostProfile: localhostProfile + type: type + windowsOptions: + gmsaCredentialSpec: gmsaCredentialSpec + runAsUserName: runAsUserName + hostProcess: true + gmsaCredentialSpecName: gmsaCredentialSpecName + supplementalGroups: + - 9 + - 9 + supplementalGroupsPolicy: supplementalGroupsPolicy + preemptionPolicy: preemptionPolicy + nodeSelector: + key: nodeSelector + hostname: hostname + runtimeClassName: runtimeClassName + workloadRef: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + 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: + key: null + hostIPC: true + topologySpreadConstraints: + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 8 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 9 + topologyKey: topologyKey + matchLabelKeys: + - matchLabelKeys + - matchLabelKeys + - nodeTaintsPolicy: nodeTaintsPolicy + whenUnsatisfiable: whenUnsatisfiable + maxSkew: 8 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 9 + 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 - secretFile: secretFile - readOnly: true - user: user - monitors: - - monitors - - monitors - scaleIO: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode + 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 - secretRef: + volumeAttributesClassName: volumeAttributesClassName + resources: + requests: + key: null + limits: + key: null + 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 - storagePool: storagePool - gateway: gateway - emptyDir: - sizeLimit: sizeLimit - medium: medium - glusterfs: + volumeMode: volumeMode + secret: + secretName: secretName + defaultMode: 7 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: path: path - endpoints: endpoints - readOnly: true - 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: + audience: audience + expirationSeconds: 3 + 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: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 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: 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: 1 + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 6 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 5 + 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: 3 + 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: 6 + 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 - volumeID: volumeID - readOnly: true - fsType: fsType - downwardAPI: - defaultMode: 6 + 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: + key: null + limits: + key: null + 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: 7 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: items: - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214488,7 +244938,7 @@ components: fieldRef: apiVersion: apiVersion fieldPath: fieldPath - - mode: 1 + - mode: 2 path: path resourceFieldRef: divisor: divisor @@ -214497,2181 +244947,4433 @@ 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: 3 + - mode: 6 path: path key: key - - mode: 3 + - 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: + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + 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: 2 - targetWWNs: - - targetWWNs - - targetWWNs - readOnly: true - wwids: - - wwids - - wwids - fsType: fsType - hostPath: + audience: audience + expirationSeconds: 3 + clusterTrustBundle: path: path - type: type - ephemeralContainers: - - volumeDevices: - - devicePath: devicePath + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels name: name - - devicePath: devicePath + optional: true + signerName: signerName + - downwardAPI: + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + 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 - 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: + optional: true + items: + - mode: 6 path: path - scheme: scheme - port: port - host: host - httpHeaders: - - name: name - value: value - - name: name - value: value - ports: - - protocol: protocol - hostIP: hostIP + key: key + - mode: 6 + path: path + key: key + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + clusterTrustBundle: + path: path + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + signerName: signerName + 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: 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: 1 + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 6 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 5 + 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: 3 + 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: 6 + 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: + key: null + limits: + key: null + ephemeralContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: 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 - 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: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: - key: null - limits: - key: null - 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 - - 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 + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - containerPort: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: name: name - containerPort: 7 - hostPort: 1 - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: 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 - 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - env: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + serviceAccount: serviceAccount + priority: 7 + 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 + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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 - restartPolicy: restartPolicy + 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 - args: - - args - - args - name: name - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 - requests: - key: null - limits: - key: null - 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: + 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: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: 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 - 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 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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: 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: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: - key: null - limits: - key: null - 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: + 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: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: 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 - 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 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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: 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: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + initContainers: + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: - key: null - limits: - key: null - 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: + 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: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: 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 - 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 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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: 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: + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: true + - volumeDevices: + - devicePath: devicePath + name: name + - devicePath: devicePath + name: name + restartPolicyRules: + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + - action: action + exitCodes: + values: + - 1 + - 1 + operator: operator + stdin: true + terminationMessagePolicy: terminationMessagePolicy + securityContext: + privileged: true + runAsUser: 6 + 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: - key: null - limits: - key: null - 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: + 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: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP - name: name - containerPort: 7 - hostPort: 1 - 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 + terminationMessagePath: terminationMessagePath + workingDir: workingDir + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + env: + - name: name + value: value + valueFrom: + secretKeyRef: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + optional: true + key: key + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + configMapKeyRef: 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 - 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 + optional: true + key: key + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + - 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 + fileKeyRef: + path: path + volumeName: volumeName + optional: true + key: key + restartPolicy: restartPolicy + command: + - command + - command + args: + - args + - args + name: name + tty: true + stdinOnce: 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 + core.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: + key: null + scopes: + - scopes + - scopes + status: + hard: + key: null + used: + key: null + 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: + key: null + scopes: + - scopes + - scopes + status: + hard: + key: null + used: + key: null + - 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: + key: null + scopes: + - scopes + - scopes + status: + hard: + key: null + used: + key: null + 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: + key: null + 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: + key: null + used: + key: null + 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: + key: null + limits: + key: null + properties: + claims: + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. + + This field depends on the DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. + items: + $ref: "#/components/schemas/core.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: 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 + 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: 7 + 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 '..'." + 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: 6 + 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: 3 + 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 @@ -216717,3029 +249419,4270 @@ components: 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 - - name: name - priorityClassName: priorityClassName - hostAliases: - - ip: ip - hostnames: - - hostnames - - hostnames - - ip: ip - hostnames: - - hostnames - - hostnames - securityContext: - runAsUser: 4 - seLinuxOptions: - role: role - level: level - type: type - user: user - appArmorProfile: - localhostProfile: localhostProfile - type: type - fsGroup: 7 - seccompProfile: - localhostProfile: localhostProfile - type: type - windowsOptions: - gmsaCredentialSpec: gmsaCredentialSpec - runAsUserName: runAsUserName - hostProcess: true - gmsaCredentialSpecName: gmsaCredentialSpecName - fsGroupChangePolicy: fsGroupChangePolicy - supplementalGroups: - - 5 - - 5 - runAsGroup: 1 - 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: + 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 - setHostnameAsFQDN: true - enableServiceLinks: true - overhead: - key: null - 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 - namespace: namespace - spec: - storageClassName: storageClassName - dataSourceRef: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace - volumeName: volumeName - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - 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 - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName + 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 + 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. + 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: 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, 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, Equal, Lt, and Gt. Defaults to Equal. Exists is\ + \ equivalent to wildcard for value, so that a pod can tolerate all taints\ + \ of a particular category. Lt and Gt perform numeric comparisons (requires\ + \ feature gate TaintTolerationComparisonOperators)." + 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: 8 + nodeAffinityPolicy: nodeAffinityPolicy + labelSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + minDomains: 9 + 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 - 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 - 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: - key: null - limits: - key: null - 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 - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion 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 - 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 - 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 + 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: - claims: - - name: name - - name: name requests: key: null limits: key: null - env: + 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: 7 + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + projected: + sources: + - downwardAPI: + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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: 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: 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: 1 + items: + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + awsElasticBlockStore: + partition: 6 + volumeID: volumeID + readOnly: true + fsType: fsType + flocker: + datasetName: datasetName + datasetUUID: datasetUUID + iscsi: + chapAuthSession: true + iscsiInterface: iscsiInterface + lun: 5 + 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: 3 + 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: 6 + 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: 2 + path: path + resourceFieldRef: + divisor: divisor + resource: resource + containerName: containerName + fieldRef: + apiVersion: apiVersion + fieldPath: fieldPath + - mode: 2 + 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 + podCertificate: + certificateChainPath: certificateChainPath + userAnnotations: + key: userAnnotations + keyPath: keyPath + maxExpirationSeconds: 3 + keyType: keyType + credentialBundlePath: credentialBundlePath + signerName: signerName + secret: + name: name + optional: true + items: + - mode: 6 + path: path + key: key + - mode: 6 + path: path + key: key + serviceAccountToken: + path: path + audience: audience + expirationSeconds: 3 + 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" + podCertificate: + $ref: "#/components/schemas/v1.PodCertificateProjection" + 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: + key: null + limits: + key: null + 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.WorkloadReference: + description: WorkloadReference identifies the Workload object and PodGroup membership + that a Pod belongs to. The scheduler uses this information to apply workload-aware + scheduling semantics. + example: + podGroup: podGroup + name: name + podGroupReplicaKey: podGroupReplicaKey + properties: + name: + description: "Name defines the name of the Workload object this Pod belongs\ + \ to. Workload must be in the same namespace as the Pod. If it doesn't\ + \ match any existing Workload, the Pod will remain unschedulable until\ + \ a Workload object is created and observed by the kube-scheduler. It\ + \ must be a DNS subdomain." + type: string + podGroup: + description: "PodGroup is the name of the PodGroup within the Workload that\ + \ this Pod belongs to. If it doesn't match any existing PodGroup within\ + \ the Workload, the Pod will remain unschedulable until the Workload object\ + \ is recreated and observed by the kube-scheduler. It must be a DNS label." + type: string + podGroupReplicaKey: + description: "PodGroupReplicaKey specifies the replica key of the PodGroup\ + \ to which this Pod belongs. It is used to distinguish pods belonging\ + \ to different replicas of the same pod group. The pod group policy is\ + \ applied separately to each replica. When set, it must be a DNS label." + type: string + required: + - name + - podGroup + 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. + 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 + 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 - - 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 - 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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 - tty: true - stdinOnce: true - serviceAccount: serviceAccount - priority: 6 - 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: 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 - requests: - key: null - limits: - key: null - 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: + 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 + 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 - 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 + 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: + 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 - 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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 + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind 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 + 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: - claims: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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 + - 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: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + namespace: namespace + user: name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + group: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + - kind: kind + serviceAccount: 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 - 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 + namespace: namespace + user: name: name - - devicePath: devicePath + group: 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 - requests: - key: null - limits: - key: null - 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 + - 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: 7 - hostPort: 1 - - protocol: protocol - hostIP: hostIP + namespace: namespace + user: name: name - containerPort: 7 - hostPort: 1 - restartPolicy: restartPolicy - command: - - command - - command - volumeMounts: - - mountPath: mountPath - mountPropagation: mountPropagation + group: name: name - readOnly: true - subPath: subPath - recursiveReadOnly: recursiveReadOnly - subPathExpr: subPathExpr - - mountPath: mountPath - mountPropagation: mountPropagation + - kind: kind + serviceAccount: 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 + 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: 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: + 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 - 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 + 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 + 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 + 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/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: - 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)" + 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 - 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" + 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.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 + properties: + 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 - selector: - additionalProperties: + 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 - 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: 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.ReplicationControllerStatus: - description: ReplicationControllerStatus represents the current status of a - replication controller. + 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.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/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: + - subjects + type: object + v1.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 + 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: + 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 + 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.PriorityLevelConfigurationSpec" + status: + $ref: "#/components/schemas/v1.PriorityLevelConfigurationStatus" + type: object + x-kubernetes-group-version-kind: + - group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + 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 + 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: + 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 + - 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: + 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 request-priorities.' + items: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + 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: PriorityLevelConfigurationList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.PriorityLevelConfigurationReference: + description: PriorityLevelConfigurationReference contains information that points + to the "request-priority" being used. + example: + name: name + properties: + name: + description: '`name` is the name of the priority level configuration being + referenced Required.' + type: string + required: + - name + type: object + v1.PriorityLevelConfigurationSpec: + description: PriorityLevelConfigurationSpec specifies the configuration of a + priority level. + 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 + properties: + 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 + 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: - fullyLabeledReplicas: 5 - replicas: 7 - readyReplicas: 2 conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -219751,118 +253694,283 @@ 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. - format: int32 - type: integer conditions: - description: Represents the latest available observations of a replication - controller's current state. + description: '`conditions` is the current state of "request-priority".' items: - $ref: '#/components/schemas/v1.ReplicationControllerCondition' + $ref: "#/components/schemas/v1.PriorityLevelConfigurationCondition" 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. + type: object + v1.QueuingConfiguration: + description: QueuingConfiguration holds the configuration parameters for queuing + example: + handSize: 5 + queues: 7 + queueLengthLimit: 2 + 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 - 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. + 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 - 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" + 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.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: + clusterScope: true + resources: + - resources + - resources + verbs: + - verbs + - verbs + apiGroups: + - apiGroups + - apiGroups + namespaces: + - namespaces + - namespaces + 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." + items: + type: string + type: array + x-kubernetes-list-type: set required: - - replicas + - apiGroups + - resources + - verbs type: object - v1.ResourceClaim: - description: ResourceClaim references one entry in PodSpec.ResourceClaims. + v1.ServiceAccountSubject: + description: ServiceAccountSubject holds detailed information for service-account-kind + subject. example: name: name + namespace: namespace 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. + 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 type: object - v1.ResourceFieldSelector: - description: "ResourceFieldSelector represents container resources (cpu, memory)\ - \ and their output format" + 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: - divisor: divisor - resource: resource - containerName: containerName + kind: kind + serviceAccount: + name: name + namespace: namespace + user: + name: name + group: + name: name properties: - containerName: - description: "Container name: required for volumes, optional for env vars" + group: + $ref: "#/components/schemas/v1.GroupSubject" + kind: + description: '`kind` indicates which one of the other fields is non-empty. + Required' 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 + serviceAccount: + $ref: "#/components/schemas/v1.ServiceAccountSubject" + user: + $ref: "#/components/schemas/v1.UserSubject" + required: + - kind + type: object + 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: + name: name + properties: + name: + description: "`name` is the username that matches, or \"*\" to match all\ + \ usernames. Required." + type: string + required: + - name + type: object + v1.HTTPIngressPath: + description: HTTPIngressPath associates a path with a backend. Incoming urls + matching the path are forwarded to the backend. + example: + path: path + backend: + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name + pathType: pathType + 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". type: string - resource: - description: "Required: resource to select" + pathType: + 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. type: string required: - - resource + - backend + - pathType type: object - x-kubernetes-map-type: atomic - v1.ResourceQuota: - description: ResourceQuota sets aggregate quota restrictions enforced per namespace + 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: metadata: generation: 6 @@ -219913,28 +254021,11 @@ components: apiVersion: apiVersion kind: kind spec: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: - key: null - scopes: - - scopes - - scopes - status: - hard: - key: null - used: - key: null + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -219947,20 +254038,18 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1.ResourceQuotaSpec' - status: - $ref: '#/components/schemas/v1.ResourceQuotaStatus' + $ref: "#/components/schemas/v1.IPAddressSpec" type: object x-kubernetes-group-version-kind: - - group: "" - kind: ResourceQuota + - group: networking.k8s.io + kind: IPAddress version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ResourceQuotaList: - description: ResourceQuotaList is a list of ResourceQuota items. + v1.IPAddressList: + description: IPAddressList contains a list of IPAddress. example: metadata: remainingItemCount: 1 @@ -220019,28 +254108,11 @@ components: apiVersion: apiVersion kind: kind spec: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: - key: null - scopes: - - scopes - - scopes - status: - hard: - key: null - used: - key: null + parentRef: + resource: resource + name: name + namespace: namespace + group: group - metadata: generation: 6 finalizers: @@ -220090,28 +254162,11 @@ components: apiVersion: apiVersion kind: kind spec: - scopeSelector: - matchExpressions: - - scopeName: scopeName - values: - - values - - values - operator: operator - - scopeName: scopeName - values: - - values - - values - operator: operator - hard: - key: null - scopes: - - scopes - - scopes - status: - hard: - key: null - used: - key: null + parentRef: + resource: resource + name: name + namespace: namespace + group: group properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -220119,9 +254174,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 the list of IPAddresses. items: - $ref: '#/components/schemas/v1.ResourceQuota' + $ref: "#/components/schemas/v1.IPAddress" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -220129,337 +254184,258 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: ResourceQuotaList + - group: networking.k8s.io + kind: IPAddressList 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: - key: null - 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: - key: null - used: - key: null - 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: - - name: name - - name: name - requests: - key: null - limits: - key: null - 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.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 + v1.IPAddressSpec: + description: IPAddressSpec describe the attributes in an IP Address. example: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: + parentRef: + resource: resource name: name namespace: namespace - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway + group: group 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 + parentRef: + $ref: "#/components/schemas/v1.ParentReference" required: - - gateway - - secretRef - - system + - parentRef type: object - v1.ScaleIOVolumeSource: - description: ScaleIOVolumeSource represents a persistent ScaleIO volume + 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: - system: system - protectionDomain: protectionDomain - sslEnabled: true - storageMode: storageMode - volumeName: volumeName - secretRef: - name: name - readOnly: true - fsType: fsType - storagePool: storagePool - gateway: gateway + cidr: cidr + except: + - except + - except 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. + cidr: + description: cidr is a string representing the IPBlock Valid examples are + "192.168.1.0/24" or "2001:db8::/64" 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. + 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: - $ref: '#/components/schemas/v1.ScopedResourceSelectorRequirement' + type: string type: array x-kubernetes-list-type: atomic + required: + - cidr 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." + 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: - scopeName: scopeName - values: - - values - - values - operator: operator + 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: + 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: - operator: - description: "Represents a scope's relationship to a set of values. Valid\ - \ operators are In, NotIn, Exists, DoesNotExist." + 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 - scopeName: - description: The name of the scope that the selector applies to. + 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 - 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 + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1.IngressSpec" + status: + $ref: "#/components/schemas/v1.IngressStatus" type: object - v1.SeccompProfile: - description: SeccompProfile defines a pod/container's seccomp profile settings. - Only one profile source may be set. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: Ingress + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.IngressBackend: + description: IngressBackend describes all endpoints for a given service and + port. example: - localhostProfile: localhostProfile - type: type + resource: + apiGroup: apiGroup + kind: kind + name: name + service: + port: + number: 0 + name: name + name: name 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 + resource: + $ref: "#/components/schemas/v1.TypedLocalObjectReference" + service: + $ref: "#/components/schemas/v1.IngressServiceBackend" 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.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: - immutable: true metadata: generation: 6 finalizers: @@ -220507,106 +254483,245 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data kind: kind - type: type - stringData: - key: stringData + 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 - 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 + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1.IngressClassSpec" type: object x-kubernetes-group-version-kind: - - group: "" - kind: Secret + - group: networking.k8s.io + kind: IngressClass 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. + v1.IngressClassList: + description: IngressClassList is a collection of IngressClasses. example: - name: name - optional: true + 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: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + 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 + kind: kind + spec: + controller: controller + parameters: + apiGroup: apiGroup + kind: kind + scope: scope + name: name + namespace: namespace 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" + 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 - optional: - description: Specify whether the Secret must be defined - type: boolean + items: + description: items is the list of IngressClasses. + items: + $ref: "#/components/schemas/v1.IngressClass" + 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.SecretKeySelector: - description: SecretKeySelector selects a key of a Secret. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: IngressClassList + version: v1 + 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. example: + apiGroup: apiGroup + kind: kind + scope: scope name: name - optional: true - key: key + namespace: namespace properties: - key: - description: The key of the secret to select from. Must be a valid secret - key. + 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 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" + 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 - optional: - description: Specify whether the Secret or its key must be defined - type: boolean required: - - key + - kind + - name type: object - x-kubernetes-map-type: atomic - v1.SecretList: - description: SecretList is a list of Secret. + 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 @@ -220616,8 +254731,7 @@ components: apiVersion: apiVersion kind: kind items: - - immutable: true - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -220664,14 +254778,105 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data kind: kind - type: type - stringData: - key: stringData - - immutable: true - metadata: + 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 + - metadata: generation: 6 finalizers: - finalizers @@ -220718,12 +254923,104 @@ components: name: name namespace: namespace apiVersion: apiVersion - data: - key: data kind: kind - type: type - stringData: - key: stringData + 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\ @@ -220731,9 +255028,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 secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret" + description: items is the list of Ingress. items: - $ref: '#/components/schemas/v1.Secret' + $ref: "#/components/schemas/v1.Ingress" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -220741,375 +255038,345 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: SecretList + - group: networking.k8s.io + kind: IngressList 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. + v1.IngressLoadBalancerIngress: + description: IngressLoadBalancerIngress represents the status of a load-balancer + ingress point. example: - name: name - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key + hostname: hostname + ip: ip + ports: + - protocol: protocol + port: 6 + error: error + - protocol: protocol + port: 6 + error: error 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 '..'." + 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.KeyToPath' + $ref: "#/components/schemas/v1.IngressPortStatus" 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 + v1.IngressLoadBalancerStatus: + description: IngressLoadBalancerStatus represents the status of a load-balancer. example: - name: name - namespace: namespace + 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: - 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 + ingress: + description: ingress is a list containing ingress points for the load-balancer. + items: + $ref: "#/components/schemas/v1.IngressLoadBalancerIngress" + type: array + x-kubernetes-list-type: atomic 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. + v1.IngressPortStatus: + description: IngressPortStatus represents the error condition of a service port example: - secretName: secretName - defaultMode: 3 - optional: true - items: - - mode: 3 - path: path - key: key - - mode: 3 - path: path - key: key + protocol: protocol + port: 6 + error: error 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." + 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 - 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" + 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.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." + 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: - 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 + 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: - 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 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. + 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 - 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' + http: + $ref: "#/components/schemas/v1.HTTPIngressRuleValue" 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.IngressServiceBackend: + description: IngressServiceBackend references a Kubernetes Service as a Backend. 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 + port: + number: 0 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 + 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" + 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 - nodePort: 6 - targetPort: targetPort - - protocol: protocol - port: 1 - appProtocol: appProtocol + service: + port: + number: 0 + name: name 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 + 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: - 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" + 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 - 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" + 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." + items: + $ref: "#/components/schemas/v1.IngressTLS" + type: array + x-kubernetes-list-type: atomic + type: object + v1.IngressStatus: + description: IngressStatus describe the current state of the Ingress. + 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 + properties: + loadBalancer: + $ref: "#/components/schemas/v1.IngressLoadBalancerStatus" + type: object + v1.IngressTLS: + description: IngressTLS describes the transport layer security associated with + an ingress. + example: + secretName: secretName + hosts: + - hosts + - hosts + properties: + 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 - 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" + v1.NetworkPolicy: + description: NetworkPolicy describes what network traffic is allowed for a set + of Pods example: metadata: generation: 6 @@ -221158,283 +255425,553 @@ 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: + 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: 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\". 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 + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1.NetworkPolicySpec" type: object x-kubernetes-group-version-kind: - - group: "" - kind: ServiceAccount + - group: networking.k8s.io + kind: NetworkPolicy version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.ServiceAccountList: - description: ServiceAccountList is a list of ServiceAccount objects + 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: - 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 + 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: - 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/" + 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: - $ref: '#/components/schemas/v1.ServiceAccount' + $ref: "#/components/schemas/v1.NetworkPolicyPort" 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 + 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.NetworkPolicyPeer" + type: array + x-kubernetes-list-type: atomic 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). + 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: - path: path - audience: audience - expirationSeconds: 6 + 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: - 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 + 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: + $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 type: object - v1.ServiceList: - description: ServiceList holds a list of services. + v1.NetworkPolicyList: + description: NetworkPolicyList is a list of NetworkPolicy objects. example: metadata: remainingItemCount: 1 @@ -221493,85 +256030,321 @@ components: 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 + 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: @@ -221621,85 +256394,321 @@ components: 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 + 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: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -221707,9 +256716,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 a list of schema objects. items: - $ref: '#/components/schemas/v1.Service' + $ref: "#/components/schemas/v1.NetworkPolicy" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -221717,502 +256726,76 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: "" - kind: ServiceList + - group: networking.k8s.io + kind: NetworkPolicyList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ServicePort: - description: ServicePort contains information on service's port. + v1.NetworkPolicyPeer: + description: NetworkPolicyPeer describes a peer to allow traffic to/from. Only + certain combinations of fields are allowed example: - protocol: protocol - port: 1 - appProtocol: appProtocol - name: name - nodePort: 6 - targetPort: targetPort + 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 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 + ipBlock: + $ref: "#/components/schemas/v1.IPBlock" + namespaceSelector: + $ref: "#/components/schemas/v1.LabelSelector" + podSelector: + $ref: "#/components/schemas/v1.LabelSelector" type: object - v1.ServiceSpec: - description: ServiceSpec describes the attributes that a user creates on a service. + v1.NetworkPolicyPort: + description: NetworkPolicyPort describes a port to allow traffic on 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 + protocol: protocol + port: port + endPort: 0 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." + 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 - 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 topologically close (e.g., same zone). This is an\ - \ alpha field and requires enabling ServiceTrafficDistribution feature." - 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 - 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\ @@ -222220,133 +256803,164 @@ components: \ 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. + protocol: + description: "protocol represents the protocol (TCP, UDP, or SCTP) which\ + \ traffic must match. If not specified, this field defaults to TCP." 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. + v1.NetworkPolicySpec: + description: NetworkPolicySpec provides the specification of a NetworkPolicy example: - nodeTaintsPolicy: nodeTaintsPolicy - whenUnsatisfiable: whenUnsatisfiable - maxSkew: 6 - nodeAffinityPolicy: nodeAffinityPolicy - labelSelector: + 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 @@ -222360,1200 +256974,1161 @@ components: operator: operator matchLabels: key: matchLabels - minDomains: 8 - topologyKey: topologyKey - matchLabelKeys: - - matchLabelKeys - - matchLabelKeys + 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: - 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). + 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 - 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. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + type: object + v1.ParentReference: + description: ParentReference describes a reference to a parent object. + example: + resource: resource + name: name + namespace: namespace + group: group + properties: + group: + description: Group is the group of the object being referenced. 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. + name: + description: Name is the name of the object being referenced. 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." + namespace: + description: Namespace is the namespace of the object being referenced. 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. + resource: + description: Resource is the resource of the object being referenced. type: string required: - - maxSkew - - topologyKey - - whenUnsatisfiable + - name + - resource type: object - v1.TypedLocalObjectReference: - description: TypedLocalObjectReference contains enough information to let you - locate the typed referenced object inside the same namespace. + v1.ServiceBackendPort: + description: ServiceBackendPort is the service port being referenced. example: - apiGroup: apiGroup - kind: kind + number: 0 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 + description: name is the name of the port on the Service. This is a mutually + exclusive setting with "Number". type: string - required: - - kind - - name + 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 type: object x-kubernetes-map-type: atomic - v1.TypedObjectReference: + 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: - apiGroup: apiGroup + 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 - name: name - namespace: namespace + 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: - 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 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 - required: - - kind - - name + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1.ServiceCIDRSpec" + status: + $ref: "#/components/schemas/v1.ServiceCIDRStatus" 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: ServiceCIDR + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ServiceCIDRList: + description: ServiceCIDRList contains a list of ServiceCIDR objects. 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 - volumeAttributesClassName: volumeAttributesClassName - resources: - requests: - key: null - limits: - key: null - 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: + 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 - 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 + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind 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: + 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 - 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 - photonPersistentDisk: - pdID: pdID - fsType: fsType - azureDisk: - diskName: diskName + namespace: namespace + apiVersion: apiVersion 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: + 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 + - 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: 1 - path: path - resourceFieldRef: - divisor: divisor - resource: resource - containerName: containerName - fieldRef: + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true 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' - 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 + 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: - mountPath: - description: MountPath corresponds to the original VolumeMount. - type: string - name: - description: Name corresponds to the name of the original VolumeMount. + 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 - 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." + items: + description: items is the list of ServiceCIDRs. + items: + $ref: "#/components/schemas/v1.ServiceCIDR" + 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: - - mountPath - - name + - items type: object - v1.VolumeNodeAffinity: - description: VolumeNodeAffinity defines constraints that limit what nodes this - volume can be accessed from. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: ServiceCIDRList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.ServiceCIDRSpec: + description: ServiceCIDRSpec define the CIDRs the user wants to use for allocating + ClusterIPs for Services. 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 + cidrs: + - cidrs + - cidrs properties: - required: - $ref: '#/components/schemas/v1.NodeSelector' - type: object - v1.VolumeProjection: - description: Projection that may be projected along with other supported volume - types - 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 + 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: - - 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: string + type: array + x-kubernetes-list-type: atomic type: object - v1.VolumeResourceRequirements: - description: VolumeResourceRequirements describes the storage resource requirements - for a volume. + v1.ServiceCIDRStatus: + description: ServiceCIDRStatus describes the current state of the ServiceCIDR. example: - requests: - key: null - limits: - key: null + 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: - 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 + 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 - v1.VsphereVirtualDiskVolumeSource: - description: Represents a vSphere volume resource. + 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: - storagePolicyName: storagePolicyName - storagePolicyID: storagePolicyID - volumePath: volumePath - fsType: fsType + 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: + parentRef: + resource: resource + name: name + namespace: namespace + group: group 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." + 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 - storagePolicyID: - description: storagePolicyID is the storage Policy Based Management (SPBM) - profile ID associated with the StoragePolicyName. + 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 - storagePolicyName: - description: storagePolicyName is the storage Policy Based Management (SPBM) - profile name. + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1beta1.IPAddressSpec" + type: object + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: IPAddress + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.IPAddressList: + description: IPAddressList contains a list of IPAddress. + 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: + parentRef: + resource: resource + name: name + namespace: namespace + group: group + - 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: + 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 - volumePath: - description: volumePath is the path that identifies vSphere volume vmdk + items: + description: items is the list of IPAddresses. + items: + $ref: "#/components/schemas/v1beta1.IPAddress" + 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: - - volumePath + - items 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) + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: IPAddressList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.IPAddressSpec: + description: IPAddressSpec describe the attributes in an IP Address. 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 + parentRef: + resource: resource + name: name + namespace: namespace + group: group 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 + parentRef: + $ref: "#/components/schemas/v1beta1.ParentReference" required: - - podAffinityTerm - - weight + - parentRef type: object - v1.WindowsSecurityContextOptions: - description: WindowsSecurityContextOptions contain Windows-specific options - and credentials. + v1beta1.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. + group: + description: Group is the group of the object being referenced. type: string - gmsaCredentialSpecName: - description: GMSACredentialSpecName is the name of the GMSA credential spec - to use. + name: + description: Name is the name of the object being referenced. 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." + 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: + - name + - resource type: object - v1.Endpoint: - description: Endpoint represents a single logical "backend" implementing a service. + 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: - 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 - addresses: - - addresses - - addresses - hostname: hostname - zone: zone - hints: - forZones: - - name: name - - name: name - conditions: - ready: true - terminating: true - serving: true - deprecatedTopology: - key: deprecatedTopology + 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: - 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. - 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. + 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 - targetRef: - $ref: '#/components/schemas/v1.ObjectReference' - zone: - description: zone is the name of the Zone this endpoint exists in. + 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: - - addresses + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1beta1.ServiceCIDRSpec" + status: + $ref: "#/components/schemas/v1beta1.ServiceCIDRStatus" type: object - v1.EndpointConditions: - description: EndpointConditions represents the current condition of an endpoint. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta1.ServiceCIDRList: + description: ServiceCIDRList contains a list of ServiceCIDR objects. example: - ready: true - terminating: true - serving: true + 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: + 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 + 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: - 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 + 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 ServiceCIDRs. + items: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + 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.EndpointHints: - description: EndpointHints provides hints describing how an endpoint should - be consumed. + x-kubernetes-group-version-kind: + - group: networking.k8s.io + kind: ServiceCIDRList + version: v1beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta1.ServiceCIDRSpec: + description: ServiceCIDRSpec define the CIDRs the user wants to use for allocating + ClusterIPs for Services. example: - forZones: - - name: name - - name: name + cidrs: + - cidrs + - cidrs properties: - forZones: - description: forZones indicates the zone(s) this endpoint should be consumed - by to enable topology aware routing. + 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/v1.ForZone' + type: string type: array x-kubernetes-list-type: atomic type: object - discovery.v1.EndpointPort: - description: EndpointPort represents a Port used by an EndpointSlice + v1beta1.ServiceCIDRStatus: + description: ServiceCIDRStatus describes the current state of the ServiceCIDR. example: - protocol: protocol - port: 0 - appProtocol: appProtocol - name: name + 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: - 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 this is\ - \ not specified, ports are not restricted and must be interpreted in the\ - \ context of the specific consumer." - 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." - 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 + 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 + v1.Overhead: + description: Overhead structure represents the resource overhead associated + with running a pod. + example: + podFixed: + key: null + properties: + podFixed: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: podFixed represents the fixed resource overhead associated + with running a pod. + type: object + 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/" + example: + handler: handler metadata: generation: 6 finalizers: @@ -223601,66 +258176,63 @@ 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 + overhead: + podFixed: + key: null + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector 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 + 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' - 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 + $ref: "#/components/schemas/v1.ObjectMeta" + overhead: + $ref: "#/components/schemas/v1.Overhead" + scheduling: + $ref: "#/components/schemas/v1.Scheduling" required: - - addressType - - endpoints + - handler type: object x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSlice + - group: node.k8s.io + kind: RuntimeClass version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.EndpointSliceList: - description: EndpointSliceList represents a list of endpoint slices + v1.RuntimeClassList: + description: RuntimeClassList is a list of RuntimeClass objects. example: metadata: remainingItemCount: 1 @@ -223670,55 +258242,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 + - handler: handler metadata: generation: 6 finalizers: @@ -223766,66 +258290,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 - - 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 + overhead: + podFixed: + key: null + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector + - handler: handler metadata: generation: 6 finalizers: @@ -223873,17 +258356,24 @@ 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 + overhead: + podFixed: + key: null + scheduling: + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: apiVersion: description: "APIVersion defines the versioned schema of this representation\ @@ -223891,9 +258381,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 a list of schema objects. items: - $ref: '#/components/schemas/v1.EndpointSlice' + $ref: "#/components/schemas/v1.RuntimeClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -223901,38 +258391,71 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: discovery.k8s.io - kind: EndpointSliceList + - group: node.k8s.io + kind: RuntimeClassList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.ForZone: - description: ForZone provides information about which zones should consume this - endpoint. + v1.Scheduling: + description: Scheduling specifies the scheduling constraints for nodes supporting + a RuntimeClass. example: - name: name + tolerations: + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + nodeSelector: + key: nodeSelector properties: - name: - description: name represents the name of the zone. - type: string - required: - - name + 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." + items: + $ref: "#/components/schemas/v1.Toleration" + 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.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: - note: note - reason: reason + 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: @@ -223979,119 +258502,147 @@ components: creationTimestamp: 2000-01-23T04:56:07.000+00:00 name: name namespace: namespace - reportingInstance: reportingInstance - deprecatedCount: 0 + apiVersion: apiVersion 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 + 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 + 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 + finalizers: + - finalizers + - finalizers resourceVersion: resourceVersion - fieldPath: fieldPath - name: name - namespace: namespace - deprecatedFirstTimestamp: 2000-01-23T04:56:07.000+00:00 - apiVersion: apiVersion - reportingController: reportingController - related: + 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 - series: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 - eventTime: 2000-01-23T04:56:07.000+00:00 - action: action + 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 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 + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1.PodDisruptionBudgetSpec" + status: + $ref: "#/components/schemas/v1.PodDisruptionBudgetStatus" type: object x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: Event + - group: policy + kind: PodDisruptionBudget version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - events.v1.EventList: - description: EventList is a list of Event objects. + v1.PodDisruptionBudgetList: + description: PodDisruptionBudgetList is a collection of PodDisruptionBudgets. example: metadata: remainingItemCount: 1 @@ -224101,9 +258652,7 @@ components: apiVersion: apiVersion kind: kind items: - - note: note - reason: reason - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -224149,41 +258698,48 @@ 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: + 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: - finalizers @@ -224229,38 +258785,47 @@ 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: + 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\ @@ -224268,9 +258833,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 a list of PodDisruptionBudgets items: - $ref: '#/components/schemas/events.v1.Event' + $ref: "#/components/schemas/v1.PodDisruptionBudget" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -224278,83 +258843,202 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: events.k8s.io - kind: EventList + - group: policy + kind: PodDisruptionBudgetList 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." + v1.PodDisruptionBudgetSpec: + description: PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. example: - count: 6 - lastObservedTime: 2000-01-23T04:56:07.000+00:00 + 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: - 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 + 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 + 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: - - 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`." + v1.PodDisruptionBudgetStatus: + description: PodDisruptionBudgetStatus represents information about the status + of a PodDisruptionBudget. Status may trail the actual state of a system. example: - lendablePercent: 0 - nominalConcurrencyShares: 6 + 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: - lendablePercent: + conditions: 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 ) + 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/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 + currentHealthy: + description: current number of healthy pods 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. + 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. + format: int64 + type: integer + required: + - currentHealthy + - desiredHealthy + - disruptionsAllowed + - expectedPods type: object - v1.FlowDistinguisherMethod: - description: FlowDistinguisherMethod specifies the method of a flow distinguisher. + v1.AggregationRule: + description: AggregationRule describes how to locate ClusterRoles to aggregate + into the ClusterRole example: - type: type + 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: - type: - description: '`type` is the type of flow distinguisher method The supported - types are "ByUser" and "ByNamespace". Required.' - type: string - required: - - type + 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: + $ref: "#/components/schemas/v1.LabelSelector" + type: array + x-kubernetes-list-type: atomic 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\"." + 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: metadata: generation: 6 @@ -224402,142 +259086,70 @@ components: 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 - 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 + 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: + 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\ @@ -224549,50 +259161,118 @@ components: \ 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' + $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 x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + - group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.FlowSchemaCondition: - description: FlowSchemaCondition describes conditions for a FlowSchema. + 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: - 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 + 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.' + 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 - v1.FlowSchemaList: - description: FlowSchemaList is a list of FlowSchema objects. + x-kubernetes-group-version-kind: + - group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.ClusterRoleBindingList: + description: ClusterRoleBindingList is a collection of ClusterRoleBindings example: metadata: remainingItemCount: 1 @@ -224650,139 +259330,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 - metadata: generation: 6 finalizers: @@ -224831,139 +259391,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\ @@ -224971,9 +259411,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 a list of ClusterRoleBindings items: - $ref: '#/components/schemas/v1.FlowSchema' + $ref: "#/components/schemas/v1.ClusterRoleBinding" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -224981,39 +259421,107 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchemaList + - group: rbac.authorization.k8s.io + kind: ClusterRoleBindingList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.FlowSchemaSpec: - description: FlowSchemaSpec describes how the FlowSchema's specification looks - like. + v1.ClusterRoleList: + description: ClusterRoleList is a collection of ClusterRoles example: - priorityLevelConfiguration: - name: name - matchingPrecedence: 0 - rules: - - nonResourceRules: - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - resourceRules: - - clusterScope: true + 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 + 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 @@ -225023,10 +259531,12 @@ components: apiGroups: - apiGroups - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames resources: - resources - resources @@ -225036,41 +259546,89 @@ 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 + - 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 + 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 @@ -225080,10 +259638,12 @@ components: apiGroups: - apiGroups - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames resources: - resources - resources @@ -225093,226 +259653,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/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 - 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.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/v1.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 - 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.' + 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 - 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 - 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 + - items 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. + 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 - 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." + 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 @@ -225322,10 +259813,12 @@ components: apiGroups: - apiGroups - apiGroups - namespaces: - - namespaces - - namespaces - - clusterScope: true + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs + - resourceNames: + - resourceNames + - resourceNames resources: - resources - resources @@ -225335,58 +259828,41 @@ 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 + nonResourceURLs: + - nonResourceURLs + - nonResourceURLs 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.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/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." + 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/flowcontrol.v1.Subject' + $ref: "#/components/schemas/v1.PolicyRule" type: array x-kubernetes-list-type: atomic - required: - - subjects type: object - v1.PriorityLevelConfiguration: - description: PriorityLevelConfiguration represents the configuration of a priority - level. + 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 @@ -225436,33 +259912,19 @@ 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 + 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\ @@ -225475,52 +259937,186 @@ components: \ 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.PriorityLevelConfigurationSpec' - status: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationStatus' + $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: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + - group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.PriorityLevelConfigurationCondition: - description: PriorityLevelConfigurationCondition defines the condition of priority - level. + v1.RoleBindingList: + description: RoleBindingList is a collection of RoleBindings 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 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.ListMeta" + required: + - items type: object - v1.PriorityLevelConfigurationList: - description: PriorityLevelConfigurationList is a list of PriorityLevelConfiguration - objects. + x-kubernetes-group-version-kind: + - group: rbac.authorization.k8s.io + kind: RoleBindingList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.RoleList: + description: RoleList is a collection of Roles example: metadata: remainingItemCount: 1 @@ -225578,33 +260174,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: @@ -225653,33 +260253,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\ @@ -225687,9 +260291,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/v1.PriorityLevelConfiguration' + $ref: "#/components/schemas/v1.Role" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -225697,311 +260301,1236 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfigurationList + - group: rbac.authorization.k8s.io + kind: RoleList version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.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 resource being referenced + type: string + required: + - apiGroup + - kind + - name + type: object + 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: + apiGroup: apiGroup + kind: kind + name: name + namespace: namespace + 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." + 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: + - kind + - name + type: object + x-kubernetes-map-type: atomic + v1.AllocatedDeviceStatus: + description: |- + AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. + + The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. + example: + data: "{}" + driver: driver + networkData: + hardwareAddress: hardwareAddress + interfaceName: interfaceName + ips: + - ips + - ips + pool: pool + shareID: shareID + 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 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/v1.Condition" + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - 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. It should use only lower case characters. + type: string + networkData: + $ref: "#/components/schemas/v1.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 + shareID: + description: ShareID uniquely identifies an individual allocation share + of the device. + type: string + required: + - device + - driver + - pool + type: object + v1.AllocationResult: + description: AllocationResult contains attributes of an allocated resource. + example: + allocationTimestamp: 2000-01-23T04:56:07.000+00:00 + 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: 6 + value: value + key: key + operator: operator + - effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator + driver: driver + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - 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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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: + allocationTimestamp: + description: |- + AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + format: date-time + type: string + devices: + $ref: "#/components/schemas/v1.DeviceAllocationResult" + nodeSelector: + $ref: "#/components/schemas/v1.NodeSelector" + type: object + v1.CELDeviceSelector: + description: CELDeviceSelector contains a CEL expression for selecting a device. + example: + expression: expression + properties: + 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. + - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device + (v1.34+ with the DRAConsumableCapacity feature enabled). + + 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: + - expression + type: object + v1.CapacityRequestPolicy: + description: |- + CapacityRequestPolicy defines how requests consume device capacity. + + Must not set more than one ValidRequestValues. + example: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - null + properties: + default: + 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 + validRange: + $ref: "#/components/schemas/v1.CapacityRequestPolicyRange" + validValues: + description: |- + ValidValues defines a set of acceptable quantity values in consuming requests. + + Must not contain more than 10 entries. Must be sorted in ascending order. + + If this field is set, Default must be defined and it must be included in ValidValues list. + + If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). + + If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. + items: + $ref: "#/components/schemas/resource.Quantity" + type: array + x-kubernetes-list-type: atomic + type: object + v1.CapacityRequestPolicyRange: + description: |- + CapacityRequestPolicyRange defines a valid range for consumable capacity values. + + - If the requested amount is less than Min, it is rounded up to the Min value. + - If Step is set and the requested amount is between Min and Max but not aligned with Step, + it will be rounded up to the next value equal to Min + (n * Step). + - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). + - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, + and the device cannot be allocated. + example: + min: min + max: max + step: step + properties: + max: + 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 + min: + 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 + step: + 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: + - min + type: object + v1.CapacityRequirements: + description: CapacityRequirements defines the capacity requirements for a specific + device request. + example: + requests: + key: null + properties: + requests: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: |- + Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. + + This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[]..compareTo(quantity()) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. + + When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. + + For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity + (i.e., the whole device is claimed). + - If a requestPolicy is set, the default consumed capacity is determined according to that policy. + + If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. + type: object + type: object + v1.Counter: + description: Counter 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: + - value + type: object + v1.CounterSet: + description: |- + CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. + + 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/v1.Counter" + description: |- + 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. + type: object + name: + description: Name defines the name of the counter set. It must be a DNS + label. + type: string + required: + - counters + - name + type: object + v1.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: + nodeName: nodeName + allowMultipleAllocations: true + consumesCounters: + - counters: + key: + value: value + counterSet: counterSet + - counters: + key: + value: value + counterSet: counterSet + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions name: name + 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 + bindsToNode: true + bindingConditions: + - bindingConditions + - bindingConditions + capacity: + key: + value: value + requestPolicy: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - null + 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: + 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 + allowMultipleAllocations: + description: |- + AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. + + If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. + type: boolean + attributes: + additionalProperties: + $ref: "#/components/schemas/v1.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 + bindingConditions: + description: |- + BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. + + The maximum number of binding conditions is 4. + + The conditions must be a valid condition type string. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + bindingFailureConditions: + description: |- + BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to "True", a binding failure occurred. + + The maximum number of binding failure conditions is 4. + + The conditions must be a valid condition type string. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + bindsToNode: + description: |- + BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + type: boolean + capacity: + additionalProperties: + $ref: "#/components/schemas/v1.DeviceCapacity" + 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 maximum number of device counter consumptions per device is 2. + items: + $ref: "#/components/schemas/v1.DeviceCounterConsumption" + type: array + x-kubernetes-list-type: atomic name: - description: '`name` is the name of the priority level configuration being - referenced Required.' + description: Name is unique identifier among all devices managed by the + driver in the pool. It must be a DNS label. type: string - required: - - name - type: object - v1.PriorityLevelConfigurationSpec: - description: PriorityLevelConfigurationSpec specifies the configuration of a - priority level. - 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 - properties: - 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.' + 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 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. + + This is an alpha field and requires enabling the DRADeviceTaints feature gate. + items: + $ref: "#/components/schemas/v1.DeviceTaint" + type: array + x-kubernetes-list-type: atomic required: - - type + - name type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - exempt: Exempt - limited: Limited - v1.PriorityLevelConfigurationStatus: - description: PriorityLevelConfigurationStatus represents the current state of - a "request-priority". + v1.DeviceAllocationConfiguration: + description: DeviceAllocationConfiguration gets embedded in an AllocationResult. 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 + opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + source: source properties: - conditions: - description: '`conditions` is the current state of "request-priority".' + opaque: + $ref: "#/components/schemas/v1.OpaqueDeviceConfiguration" + requests: + description: |- + 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: - $ref: '#/components/schemas/v1.PriorityLevelConfigurationCondition' + type: string 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.QueuingConfiguration: - description: QueuingConfiguration holds the configuration parameters for queuing - example: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - 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 + 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 - 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." + v1.DeviceAllocationResult: + description: DeviceAllocationResult is the result of allocating devices. example: - clusterScope: true - resources: - - resources - - resources - verbs: - - verbs - - verbs - apiGroups: - - apiGroups - - apiGroups - namespaces: - - namespaces - - namespaces + 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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - 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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions 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." + 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: - type: string + $ref: "#/components/schemas/v1.DeviceAllocationConfiguration" 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 + results: + description: Results lists all allocated devices. items: - type: string + $ref: "#/components/schemas/v1.DeviceRequestAllocationResult" type: array - x-kubernetes-list-type: set - required: - - apiGroups - - resources - - verbs + x-kubernetes-list-type: atomic type: object - v1.ServiceAccountSubject: - description: ServiceAccountSubject holds detailed information for service-account-kind - subject. + v1.DeviceAttribute: + description: DeviceAttribute must have exactly one field set. example: - name: name - namespace: namespace + bool: true + string: string + version: version + int: 0 properties: - name: - description: "`name` is the name of matching ServiceAccount objects, or\ - \ \"*\" to match regardless of name. Required." + 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 - namespace: - description: '`namespace` is the namespace of matching ServiceAccount objects. - Required.' + version: + description: VersionValue is a semantic version according to semver.org + spec 2.0.0. Must not be longer than 64 characters. type: string - required: - - name - - namespace type: object - 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." + v1.DeviceCapacity: + description: DeviceCapacity describes a quantity associated with a device. example: - kind: kind - serviceAccount: - name: name - namespace: namespace - user: - name: name - group: - name: name + value: value + requestPolicy: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - null properties: - group: - $ref: '#/components/schemas/v1.GroupSubject' - kind: - description: '`kind` indicates which one of the other fields is non-empty. - Required' + requestPolicy: + $ref: "#/components/schemas/v1.CapacityRequestPolicy" + 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/v1.ServiceAccountSubject' - user: - $ref: '#/components/schemas/v1.UserSubject' required: - - kind + - value type: object - 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. + v1.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. example: - name: name + requests: + - 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 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - 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 + capacity: + requests: + key: null + 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 + capacity: + requests: + key: null + - 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 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - 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 + capacity: + requests: + key: null + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests properties: - name: - description: "`name` is the username that matches, or \"*\" to match all\ - \ usernames. Required." - type: string - required: - - name + 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.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/v1.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/v1.DeviceRequest" + type: array + x-kubernetes-list-type: atomic 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`." + v1.DeviceClaimConfiguration: + description: DeviceClaimConfiguration is used for configuration parameters in + DeviceClaim. example: - lendablePercent: 0 - nominalConcurrencyShares: 6 + opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests 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: + opaque: + $ref: "#/components/schemas/v1.OpaqueDeviceConfiguration" + requests: 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) + Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. - 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.' - type: string - required: - - type + 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 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\"." + v1.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 @@ -226052,138 +261581,19 @@ 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 - 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 + extendedResourceName: extendedResourceName + 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\ @@ -226196,421 +261606,163 @@ components: \ 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' + $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: '#/components/schemas/v1beta3.FlowSchemaSpec' - status: - $ref: '#/components/schemas/v1beta3.FlowSchemaStatus' + $ref: "#/components/schemas/v1.DeviceClassSpec" + required: + - spec type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1beta3 + - group: resource.k8s.io + kind: DeviceClass + version: v1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1beta3.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 - v1beta3.FlowSchemaList: - description: FlowSchemaList is a list of FlowSchema objects. + v1.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. 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: - 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 - - 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 - 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 + opaque: + driver: driver + parameters: "{}" + properties: + opaque: + $ref: "#/components/schemas/v1.OpaqueDeviceConfiguration" + type: object + v1.DeviceClassList: + description: DeviceClassList is a collection of classes. + 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: + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" + - 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: + extendedResourceName: extendedResourceName + 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\ @@ -226618,9 +261770,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 resource classes. items: - $ref: '#/components/schemas/v1beta3.FlowSchema' + $ref: "#/components/schemas/v1.DeviceClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -226628,408 +261780,666 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: flowcontrol.apiserver.k8s.io - kind: FlowSchemaList - version: v1beta3 + - group: resource.k8s.io + kind: DeviceClassList + version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1beta3.FlowSchemaSpec: - description: FlowSchemaSpec describes how the FlowSchema's specification looks - like. + v1.DeviceClassSpec: + description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ + \ be allocated and how to configure it." 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 + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" 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." + 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/v1beta3.PolicyRulesWithSubjects' + $ref: "#/components/schemas/v1.DeviceClassConfiguration" + type: array + x-kubernetes-list-type: atomic + extendedResourceName: + description: |- + ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. + + This is an alpha field. + type: string + selectors: + description: Each selector must be satisfied by a device which is claimed + via this class. + items: + $ref: "#/components/schemas/v1.DeviceSelector" type: array x-kubernetes-list-type: atomic - required: - - priorityLevelConfiguration type: object - v1beta3.FlowSchemaStatus: - description: FlowSchemaStatus represents the current state of a FlowSchema. + v1.DeviceConstraint: + description: DeviceConstraint must have exactly one field set besides Requests. 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 + distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests properties: - conditions: - description: '`conditions` is a list of the current states of FlowSchema.' + distinctAttribute: + description: |- + DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. + + This acts as the inverse of MatchAttribute. + + This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. + + This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + type: string + 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: - $ref: '#/components/schemas/v1beta3.FlowSchemaCondition' + type: string type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type + x-kubernetes-list-type: atomic type: object - v1beta3.GroupSubject: - description: GroupSubject holds detailed information for group-kind subject. + v1.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/v1.Counter" + description: |- + Counters defines the counters that will be consumed by the device. + + The maximum number of counters is 32. + type: object + required: + - counterSet + - counters + type: object + v1.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: + 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 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - 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 + capacity: + requests: + key: null 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 + capacity: + requests: + key: null properties: + exactly: + $ref: "#/components/schemas/v1.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/v1.DeviceSubRequest" + type: array + x-kubernetes-list-type: atomic 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." + 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 - v1beta3.LimitResponse: - description: LimitResponse defines how to handle requests that can not be executed - right now. + v1.DeviceRequestAllocationResult: + description: DeviceRequestAllocationResult contains the allocation result for + one request. example: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type + 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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions 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.' + 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 + bindingConditions: + description: |- + BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + bindingFailureConditions: + description: |- + BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + consumedCapacity: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: |- + ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). + + The total consumed capacity for each device must not exceed the DeviceCapacity's Value. + + This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. + 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. It should use only lower case characters. + 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 + shareID: + description: "ShareID uniquely identifies an individual allocation share\ + \ of the device, used when the device supports multiple simultaneous allocations.\ + \ It serves as an additional map key to differentiate concurrent shares\ + \ of the same device." 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.DeviceToleration" + type: array + x-kubernetes-list-type: atomic required: - - type + - device + - driver + - pool + - request type: object - x-kubernetes-unions: - - discriminator: type - fields-to-discriminateBy: - queuing: Queuing - v1beta3.LimitedPriorityLevelConfiguration: + v1.DeviceSelector: + description: DeviceSelector must have exactly one field set. + example: + cel: + expression: expression + properties: + cel: + $ref: "#/components/schemas/v1.CELDeviceSelector" + type: object + v1.DeviceSubRequest: 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? + 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: - lendablePercent: 5 - borrowingLimitPercent: 1 - limitResponse: - queuing: - handSize: 5 - queues: 7 - queueLengthLimit: 2 - type: type - nominalConcurrencyShares: 9 + 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 + capacity: + requests: + key: null properties: - borrowingLimitPercent: + allocationMode: 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. + AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 ) + - ExactCount: This request is for a specific number of devices. + This is the default. The exact number is provided in the + count field. - 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. + - 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. - LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 ) - format: int32 + 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 + capacity: + $ref: "#/components/schemas/v1.CapacityRequirements" + 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 - limitResponse: - $ref: '#/components/schemas/v1beta3.LimitResponse' - nominalConcurrencyShares: + deviceClassName: 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: + DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. - NominalCL(i) = ceil( ServerCL * NCS(i) / sum_ncs ) sum_ncs = sum[priority level k] NCS(k) + A class is required. Which classes are available depends on the cluster. - 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 - 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. - example: - verbs: - - verbs - - verbs - nonResourceURLs: - - nonResourceURLs - - nonResourceURLs - properties: - nonResourceURLs: + 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: |- - `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. + 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: - type: string + $ref: "#/components/schemas/v1.DeviceSelector" 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." + 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: - type: string + $ref: "#/components/schemas/v1.DeviceToleration" type: array - x-kubernetes-list-type: set + x-kubernetes-list-type: atomic required: - - nonResourceURLs - - verbs + - deviceClassName + - name 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.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: - 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 + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key properties: - nonResourceRules: - description: '`nonResourceRules` is a list of NonResourcePolicyRules that - identify matching requests according to their verb and the target non-resource - URL.' + 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. + 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 + v1.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
[/]. 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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - 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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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 + 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 + v1beta1.DeviceCapacity: + description: DeviceCapacity describes a quantity associated with a device. + example: + value: value + requestPolicy: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - null + properties: + requestPolicy: + $ref: "#/components/schemas/v1beta1.CapacityRequestPolicy" + 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: - - items + - value type: object - x-kubernetes-group-version-kind: - - group: networking.k8s.io - kind: ServiceCIDRList - version: v1alpha1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1alpha1.ServiceCIDRSpec: - description: ServiceCIDRSpec define the CIDRs the user wants to use for allocating - ClusterIPs for Services. + v1beta1.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. example: - cidrs: - - cidrs - - cidrs + 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 + capacity: + requests: + key: null + - 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 + capacity: + requests: + key: null + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - 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 + capacity: + requests: + key: null + - 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 + capacity: + requests: + key: null + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests properties: - 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." + 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: - type: string + $ref: "#/components/schemas/v1beta1.DeviceClaimConfiguration" type: array x-kubernetes-list-type: atomic - type: object - v1alpha1.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 + constraints: + description: These constraints must be satisfied by the set of devices that + get allocated for the claim. items: - $ref: '#/components/schemas/v1.Condition' + $ref: "#/components/schemas/v1beta1.DeviceConstraint" type: array - x-kubernetes-patch-strategy: merge - x-kubernetes-list-type: map - x-kubernetes-list-map-keys: - - type - x-kubernetes-patch-merge-key: type + 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 - v1.Overhead: - description: Overhead structure represents the resource overhead associated - with running a pod. + v1beta1.DeviceClaimConfiguration: + description: DeviceClaimConfiguration is used for configuration parameters in + DeviceClaim. example: - podFixed: - key: null + opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests properties: - podFixed: - additionalProperties: - $ref: '#/components/schemas/resource.Quantity' - description: podFixed represents the fixed resource overhead associated - with running a pod. - type: object + 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: + type: string + type: array + x-kubernetes-list-type: atomic 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.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: - handler: handler metadata: generation: 6 finalizers: @@ -231321,62 +268229,56 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - overhead: - podFixed: - key: null - 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 + spec: + extendedResourceName: extendedResourceName + 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 - 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' + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1beta1.DeviceClassSpec" required: - - handler + - spec type: object x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClass - version: v1 + - group: resource.k8s.io + kind: DeviceClass + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.RuntimeClassList: - description: RuntimeClassList is a list of RuntimeClass objects. + v1beta1.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. + example: + opaque: + driver: driver + parameters: "{}" + properties: + opaque: + $ref: "#/components/schemas/v1beta1.OpaqueDeviceConfiguration" + type: object + v1beta1.DeviceClassList: + description: DeviceClassList is a collection of classes. example: metadata: remainingItemCount: 1 @@ -231386,8 +268288,7 @@ components: apiVersion: apiVersion kind: kind items: - - handler: handler - metadata: + - metadata: generation: 6 finalizers: - finalizers @@ -231435,25 +268336,21 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - overhead: - podFixed: - key: null - 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: + spec: + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" + - metadata: generation: 6 finalizers: - finalizers @@ -231501,23 +268398,20 @@ components: namespace: namespace apiVersion: apiVersion kind: kind - overhead: - podFixed: - key: null - 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 + spec: + extendedResourceName: extendedResourceName + 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\ @@ -231525,9 +268419,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 resource classes. items: - $ref: '#/components/schemas/v1.RuntimeClass' + $ref: "#/components/schemas/v1beta1.DeviceClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -231535,143 +268429,639 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: node.k8s.io - kind: RuntimeClassList - version: v1 + - group: resource.k8s.io + kind: DeviceClassList + version: v1beta1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.Scheduling: - description: Scheduling specifies the scheduling constraints for nodes supporting - a RuntimeClass. + v1beta1.DeviceClassSpec: + description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ + \ be allocated and how to configure it." + example: + extendedResourceName: extendedResourceName + 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 + extendedResourceName: + description: |- + ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. + + This is an alpha field. + type: string + 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: + distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + properties: + distinctAttribute: + description: |- + DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. + + This acts as the inverse of MatchAttribute. + + This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. + + This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + type: string + 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 of counters is 32. + 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: 9 + tolerationSeconds: 1 value: value key: key operator: operator - effect: effect - tolerationSeconds: 9 + tolerationSeconds: 1 value: value key: key operator: operator - nodeSelector: - key: nodeSelector + 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 + capacity: + requests: + key: null + - 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 + capacity: + requests: + key: null + count: 0 + name: name + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null properties: - nodeSelector: - additionalProperties: + 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 + capacity: + $ref: "#/components/schemas/v1beta1.CapacityRequirements" + 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/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. + + 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 + v1beta1.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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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 + bindingConditions: + description: |- + BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: 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: array + x-kubernetes-list-type: atomic + bindingFailureConditions: + description: |- + BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + consumedCapacity: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: |- + ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). + + The total consumed capacity for each device must not exceed the DeviceCapacity's Value. + + This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. type: object - x-kubernetes-map-type: atomic + 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. It should use only lower case characters. + 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 + shareID: + description: "ShareID uniquely identifies an individual allocation share\ + \ of the device, used when the device supports multiple simultaneous allocations.\ + \ It serves as an additional map key to differentiate concurrent shares\ + \ of the same device." + type: string 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." + 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.Toleration' + $ref: "#/components/schemas/v1beta1.DeviceToleration" type: array x-kubernetes-list-type: atomic + required: + - device + - driver + - pool + - request 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.DeviceSelector: + description: DeviceSelector must have exactly one field set. example: - deleteOptions: - orphanDependents: true - apiVersion: apiVersion - dryRun: - - dryRun - - dryRun - kind: kind - preconditions: - uid: uid - resourceVersion: resourceVersion - 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 - 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 + cel: + expression: expression 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" + 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 + capacity: + requests: + key: null + 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 - 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" + capacity: + $ref: "#/components/schemas/v1beta1.CapacityRequirements" + 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 - metadata: - $ref: '#/components/schemas/v1.ObjectMeta' + 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: + - deviceClassName + - name type: object - 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 + 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: + 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. + 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 - resources: - description: Resources is a list of resources this rule applies to. '*' - represents all resources. + 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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + - 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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions + 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: - type: string + $ref: "#/components/schemas/v1beta2.DeviceAllocationConfiguration" type: array x-kubernetes-list-type: atomic - verbs: - description: Verbs is a list of Verbs that apply to ALL the ResourceKinds - contained in this rule. '*' represents all verbs. + results: + description: Results lists all allocated devices. items: - type: string + $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: + 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 + v1beta2.DeviceCapacity: + description: DeviceCapacity describes a quantity associated with a device. + example: + value: value + requestPolicy: + default: default + validRange: + min: min + max: max + step: step + validValues: + - null + - null + properties: + requestPolicy: + $ref: "#/components/schemas/v1beta2.CapacityRequestPolicy" + 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: - - verbs + - value type: object - v1.Role: - description: "Role is a namespaced, logical grouping of PolicyRules that can\ - \ be referenced as a unit by a RoleBinding." + v1beta2.DeviceClaim: + description: DeviceClaim defines how to request devices with a ResourceClaim. 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 + requests: + - 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 - blockOwnerDeletion: true - - uid: uid - controller: true - apiVersion: apiVersion - kind: kind + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - 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 - 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 + capacity: + requests: + key: null name: name - namespace: namespace - 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 + 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 + capacity: + requests: + key: null + - 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 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - 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 + capacity: + requests: + key: null + 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 + capacity: + requests: + key: null + config: + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + - opaque: + driver: driver + parameters: "{}" + requests: + - requests + - requests + constraints: + - distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests + - distinctAttribute: distinctAttribute + 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 - 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 + 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/v1.PolicyRule' + $ref: "#/components/schemas/v1beta2.DeviceRequest" 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." + 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: |- + 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 + x-kubernetes-list-type: atomic + type: object + v1beta2.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 @@ -233057,19 +274343,20 @@ components: 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 + spec: + extendedResourceName: extendedResourceName + 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\ @@ -233082,186 +274369,30 @@ components: \ 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 + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1beta2.DeviceClassSpec" required: - - roleRef + - spec type: object x-kubernetes-group-version-kind: - - group: rbac.authorization.k8s.io - kind: RoleBinding - version: v1 + - group: resource.k8s.io + kind: DeviceClass + version: v1beta2 x-implements: - io.kubernetes.client.common.KubernetesObject - v1.RoleBindingList: - description: RoleBindingList is a collection of RoleBindings + v1beta2.DeviceClassConfiguration: + description: DeviceClassConfiguration is used in DeviceClass. 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 - 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 + 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 - 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.ListMeta' - required: - - items + opaque: + $ref: "#/components/schemas/v1beta2.OpaqueDeviceConfiguration" type: object - x-kubernetes-group-version-kind: - - group: rbac.authorization.k8s.io - kind: RoleBindingList - version: v1 - x-implements: - - io.kubernetes.client.common.KubernetesListObject - v1.RoleList: - description: RoleList is a collection of Roles + v1beta2.DeviceClassList: + description: DeviceClassList is a collection of classes. example: metadata: remainingItemCount: 1 @@ -233319,37 +274450,20 @@ components: namespace: namespace 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 + spec: + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" - metadata: generation: 6 finalizers: @@ -233398,37 +274512,20 @@ components: namespace: namespace 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 + spec: + extendedResourceName: extendedResourceName + 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\ @@ -233436,9 +274533,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 Roles + description: Items is the list of resource classes. items: - $ref: '#/components/schemas/v1.Role' + $ref: "#/components/schemas/v1beta2.DeviceClass" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -233446,805 +274543,664 @@ components: \ 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' + $ref: "#/components/schemas/v1.ListMeta" required: - items type: object x-kubernetes-group-version-kind: - - group: rbac.authorization.k8s.io - kind: RoleList - version: v1 + - group: resource.k8s.io + kind: DeviceClassList + version: v1beta2 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1.RoleRef: - description: RoleRef contains information that points to the role being used + v1beta2.DeviceClassSpec: + description: "DeviceClassSpec is used in a [DeviceClass] to define what can\ + \ be allocated and how to configure it." example: - apiGroup: apiGroup - kind: kind - name: name + extendedResourceName: extendedResourceName + selectors: + - cel: + expression: expression + - cel: + expression: expression + config: + - opaque: + driver: driver + parameters: "{}" + - opaque: + driver: driver + parameters: "{}" 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 resource being referenced + 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 + extendedResourceName: + description: |- + ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. + + This is an alpha field. type: string - required: - - apiGroup - - kind - - name + 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 - 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." + v1beta2.DeviceConstraint: + description: DeviceConstraint must have exactly one field set besides Requests. example: - apiGroup: apiGroup - kind: kind - name: name - namespace: namespace + distinctAttribute: distinctAttribute + matchAttribute: matchAttribute + requests: + - requests + - requests 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." - type: string - name: - description: Name of the object being referenced. + distinctAttribute: + description: |- + DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. + + This acts as the inverse of MatchAttribute. + + This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. + + This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. 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." + 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 - required: - - kind - - name - type: object - x-kubernetes-map-type: atomic - v1alpha2.AllocationResult: - description: AllocationResult contains attributes of an allocated resource. - example: - shareable: true - availableOnNodes: - 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 - resourceHandles: - - data: data - driverName: driverName - structuredData: - nodeName: nodeName - vendorClassParameters: "{}" - results: - - namedResources: - name: name - vendorRequestParameters: "{}" - - namedResources: - name: name - vendorRequestParameters: "{}" - vendorClaimParameters: "{}" - - data: data - driverName: driverName - structuredData: - nodeName: nodeName - vendorClassParameters: "{}" - results: - - namedResources: - name: name - vendorRequestParameters: "{}" - - namedResources: - name: name - vendorRequestParameters: "{}" - vendorClaimParameters: "{}" - properties: - availableOnNodes: - $ref: '#/components/schemas/v1.NodeSelector' - resourceHandles: + 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 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. - 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 constraint 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.DriverAllocationResult: - description: DriverAllocationResult contains vendor parameters and the allocation - result for one request. + v1beta2.DeviceCounterConsumption: + description: DeviceCounterConsumption defines a set of counters that a device + will consume from a CounterSet. example: - namedResources: - name: name - vendorRequestParameters: "{}" + counters: + key: + value: value + counterSet: counterSet properties: - namedResources: - $ref: '#/components/schemas/v1alpha2.NamedResourcesAllocationResult' - vendorRequestParameters: - description: VendorRequestParameters are the per-request configuration parameters - from the time that the claim was allocated. - 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 of counters is 32. type: object + required: + - counterSet + - counters type: object - v1alpha2.DriverRequests: - description: DriverRequests describes all resources that are needed from one - particular driver. + 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: - vendorParameters: "{}" - driverName: driverName - requests: - - vendorParameters: "{}" - namedResources: - selector: selector - - vendorParameters: "{}" - namedResources: - selector: selector + 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 + selectors: + - cel: + expression: expression + - cel: + expression: expression + capacity: + requests: + key: null + - 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 + capacity: + requests: + key: null + 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 + capacity: + requests: + key: null properties: - driverName: - description: DriverName is the name used by the DRA driver kubelet plugin. - type: string - requests: - description: Requests describes all resources that are needed from the driver. + 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.ResourceRequest' + $ref: "#/components/schemas/v1beta2.DeviceSubRequest" type: array x-kubernetes-list-type: atomic - vendorParameters: - description: VendorParameters are arbitrary setup parameters for all requests - of the claim. They are ignored while allocating the claim. - properties: {} - type: object - type: object - v1alpha2.NamedResourcesAllocationResult: - description: NamedResourcesAllocationResult is used in AllocationResultModel. - example: - name: name - properties: name: - description: Name is the name of the selected resource instance. + 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 - v1alpha2.NamedResourcesAttribute: - description: NamedResourcesAttribute is a combination of an attribute name and - its value. + v1beta2.DeviceRequestAllocationResult: + description: DeviceRequestAllocationResult contains the allocation result for + one request. example: - quantity: quantity - bool: true - string: string - name: name - intSlice: - ints: - - 6 - - 6 - stringSlice: - strings: - - strings - - strings - version: version - int: 0 + 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 + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + pool: pool + shareID: shareID + consumedCapacity: + key: null + device: device + bindingConditions: + - bindingConditions + - bindingConditions properties: - bool: - description: BoolValue is a true/false value. + 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 - int: - description: IntValue is a 64-bit integer. - format: int64 - type: integer - intSlice: - $ref: '#/components/schemas/v1alpha2.NamedResourcesIntSlice' - name: - description: Name is unique identifier among all resource instances managed - by the driver on the node. It must be a DNS subdomain. + bindingConditions: + description: |- + BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + bindingFailureConditions: + description: |- + BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. + + This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + items: + type: string + type: array + x-kubernetes-list-type: atomic + consumedCapacity: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: |- + ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). + + The total consumed capacity for each device must not exceed the DeviceCapacity's Value. + + This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. + 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 - quantity: - 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 + 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. It should use only lower case characters. type: string - string: - description: StringValue is a 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 - stringSlice: - $ref: '#/components/schemas/v1alpha2.NamedResourcesStringSlice' - version: - description: VersionValue is a semantic version according to semver.org - spec 2.0.0. + 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 - required: - - name - type: object - v1alpha2.NamedResourcesFilter: - description: NamedResourcesFilter is used in ResourceFilterModel. - example: - selector: selector - properties: - selector: + shareID: + description: "ShareID uniquely identifies an individual allocation share\ + \ of the device, used when the device supports multiple simultaneous allocations.\ + \ It serves as an additional map key to differentiate concurrent shares\ + \ of the same device." + type: string + tolerations: description: |- - Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/ + A copy of all tolerations specified in the request at the time when the device got allocated. - In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example: + The maximum number of tolerations is 16. - attributes.quantity["a"].isGreaterThan(quantity("0")) && - attributes.stringslice["b"].isSorted() - type: string - required: - - selector - type: object - v1alpha2.NamedResourcesInstance: - description: NamedResourcesInstance represents one individual hardware instance - that can be selected based on its attributes. - example: - name: name - attributes: - - quantity: quantity - bool: true - string: string - name: name - intSlice: - ints: - - 6 - - 6 - stringSlice: - strings: - - strings - - strings - version: version - int: 0 - - quantity: quantity - bool: true - string: string - name: name - intSlice: - ints: - - 6 - - 6 - stringSlice: - strings: - - strings - - strings - version: version - int: 0 - properties: - attributes: - description: Attributes defines the attributes of this resource instance. - The name of each attribute must be unique. + This is an alpha field and requires enabling the DRADeviceTaints feature gate. items: - $ref: '#/components/schemas/v1alpha2.NamedResourcesAttribute' + $ref: "#/components/schemas/v1beta2.DeviceToleration" type: array x-kubernetes-list-type: atomic - name: - description: Name is unique identifier among all resource instances managed - by the driver on the node. It must be a DNS subdomain. - type: string required: - - name + - device + - driver + - pool + - request type: object - v1alpha2.NamedResourcesIntSlice: - description: NamedResourcesIntSlice contains a slice of 64-bit integers. + v1beta2.DeviceSelector: + description: DeviceSelector must have exactly one field set. example: - ints: - - 6 - - 6 + cel: + expression: expression properties: - ints: - description: Ints is the slice of 64-bit integers. - items: - format: int64 - type: integer - type: array - x-kubernetes-list-type: atomic - required: - - ints + cel: + $ref: "#/components/schemas/v1beta2.CELDeviceSelector" type: object - v1alpha2.NamedResourcesRequest: - description: NamedResourcesRequest is used in ResourceRequestModel. + 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: - selector: selector + 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 + capacity: + requests: + key: null properties: - selector: + allocationMode: description: |- - Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/ + AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example: + - ExactCount: This request is for a specific number of devices. + This is the default. The exact number is provided in the + count field. - attributes.quantity["a"].isGreaterThan(quantity("0")) && - attributes.stringslice["b"].isSorted() + - 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 - required: - - selector - type: object - v1alpha2.NamedResourcesResources: - description: NamedResourcesResources is used in ResourceModel. - example: - instances: - - name: name - attributes: - - quantity: quantity - bool: true - string: string - name: name - intSlice: - ints: - - 6 - - 6 - stringSlice: - strings: - - strings - - strings - version: version - int: 0 - - quantity: quantity - bool: true - string: string - name: name - intSlice: - ints: - - 6 - - 6 - stringSlice: - strings: - - strings - - strings - version: version - int: 0 - - name: name - attributes: - - quantity: quantity - bool: true - string: string - name: name - intSlice: - ints: - - 6 - - 6 - stringSlice: - strings: - - strings - - strings - version: version - int: 0 - - quantity: quantity - bool: true - string: string - name: name - intSlice: - ints: - - 6 - - 6 - stringSlice: - strings: - - strings - - strings - version: version - int: 0 - properties: - instances: - description: The list of all individual resources instances currently available. + capacity: + $ref: "#/components/schemas/v1beta2.CapacityRequirements" + 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/v1alpha2.NamedResourcesInstance' + $ref: "#/components/schemas/v1beta2.DeviceToleration" type: array x-kubernetes-list-type: atomic required: - - instances + - deviceClassName + - name type: object - v1alpha2.NamedResourcesStringSlice: - description: NamedResourcesStringSlice contains a slice of strings. + 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: - strings: - - strings - - strings + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key properties: - strings: - description: Strings is the slice of strings. - items: - type: string - type: array - x-kubernetes-list-type: atomic + 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. + 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: - - strings + - effect + - key type: object - v1alpha2.PodSchedulingContext: - 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. + v1beta2.DeviceToleration: + description: "The ResourceClaim this DeviceToleration is attached to tolerates\ + \ any taint that matches the triple using the matching\ + \ operator ." 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: - potentialNodes: - - potentialNodes - - potentialNodes - selectedNode: selectedNode - status: - resourceClaims: - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes - name: name - - unsuitableNodes: - - unsuitableNodes - - unsuitableNodes - name: name + effect: effect + tolerationSeconds: 6 + value: value + key: key + operator: operator 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" + 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 - 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" + 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 # **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionValidatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -524,6 +527,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 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. @@ -540,6 +544,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -571,6 +576,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -592,7 +598,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -602,7 +608,7 @@ public class Example { # **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionValidatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -635,6 +641,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 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. @@ -651,6 +658,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -682,6 +690,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -703,7 +712,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -713,7 +722,7 @@ public class Example { # **deleteCollectionValidatingWebhookConfiguration** -> V1Status deleteCollectionValidatingWebhookConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionValidatingWebhookConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -746,6 +755,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 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. @@ -762,6 +772,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -793,6 +804,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -814,7 +826,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -824,7 +836,7 @@ public class Example { # **deleteMutatingWebhookConfiguration** -> V1Status deleteMutatingWebhookConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteMutatingWebhookConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -856,6 +868,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -864,6 +877,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -888,6 +902,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -903,7 +918,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -914,7 +929,7 @@ public class Example { # **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteValidatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -946,6 +961,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -954,6 +970,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -978,6 +995,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -993,7 +1011,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1004,7 +1022,7 @@ public class Example { # **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteValidatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1036,6 +1054,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1044,6 +1063,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1068,6 +1088,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1083,7 +1104,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +1115,7 @@ public class Example { # **deleteValidatingWebhookConfiguration** -> V1Status deleteValidatingWebhookConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteValidatingWebhookConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1126,6 +1147,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1134,6 +1156,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1158,6 +1181,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1173,7 +1197,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1241,7 +1265,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 | @@ -1343,7 +1367,7 @@ public class Example { ### 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 | @@ -1445,7 +1469,7 @@ public class Example { ### 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 | @@ -1547,7 +1571,7 @@ public class Example { ### 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 | @@ -1649,7 +1673,7 @@ public class Example { ### 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 | @@ -1737,7 +1761,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1826,7 +1850,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1915,7 +1939,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2004,7 +2028,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2093,7 +2117,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2168,7 +2192,7 @@ public class Example { ### 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 | @@ -2242,7 +2266,7 @@ public class Example { ### 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 | @@ -2316,7 +2340,7 @@ public class Example { ### 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 | @@ -2390,7 +2414,7 @@ public class Example { ### 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 | @@ -2464,7 +2488,7 @@ public class Example { ### 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 | @@ -2549,7 +2573,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2635,7 +2659,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2721,7 +2745,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2807,7 +2831,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2893,7 +2917,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 a290fc6de5..a0bfd9740d 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **createMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicy createMutatingAdmissionPolicy(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -create a ValidatingAdmissionPolicy +create a MutatingAdmissionPolicy ### Example ```java @@ -54,13 +51,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - V1alpha1ValidatingAdmissionPolicy body = new V1alpha1ValidatingAdmissionPolicy(); // V1alpha1ValidatingAdmissionPolicy | + 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) + V1alpha1MutatingAdmissionPolicy result = apiInstance.createMutatingAdmissionPolicy(body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -68,7 +65,7 @@ public class Example { .execute(); 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()); @@ -82,7 +79,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | | +| **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] | @@ -90,7 +87,7 @@ public class Example { ### Return type -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) +[**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md) ### Authorization @@ -99,7 +96,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -109,13 +106,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **createValidatingAdmissionPolicyBinding** -> V1alpha1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **createMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -create a ValidatingAdmissionPolicyBinding +create a MutatingAdmissionPolicyBinding ### Example ```java @@ -139,13 +136,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1alpha1Api apiInstance = new AdmissionregistrationV1alpha1Api(defaultClient); - V1alpha1ValidatingAdmissionPolicyBinding body = new V1alpha1ValidatingAdmissionPolicyBinding(); // V1alpha1ValidatingAdmissionPolicyBinding | + 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) + V1alpha1MutatingAdmissionPolicyBinding result = apiInstance.createMutatingAdmissionPolicyBinding(body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -153,7 +150,7 @@ public class Example { .execute(); 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()); @@ -167,7 +164,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | [**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md)| | | +| **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] | @@ -175,7 +172,7 @@ public class Example { ### Return type -[**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md) +[**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -184,7 +181,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -194,13 +191,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionMutatingAdmissionPolicy** +> V1Status deleteCollectionMutatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ValidatingAdmissionPolicy +delete collection of MutatingAdmissionPolicy ### Example ```java @@ -229,6 +226,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 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,12 +237,13 @@ 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() + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicy() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -257,7 +256,7 @@ public class Example { .execute(); 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()); @@ -276,6 +275,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -297,7 +297,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -305,13 +305,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionMutatingAdmissionPolicyBinding** +> V1Status deleteCollectionMutatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ValidatingAdmissionPolicyBinding +delete collection of MutatingAdmissionPolicyBinding ### Example ```java @@ -340,6 +340,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 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. @@ -350,12 +351,13 @@ 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() + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicyBinding() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -368,7 +370,7 @@ public class Example { .execute(); 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()); @@ -387,6 +389,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -408,7 +411,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -416,13 +419,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteMutatingAdmissionPolicy** +> V1Status deleteMutatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ValidatingAdmissionPolicy +delete a MutatingAdmissionPolicy ### Example ```java @@ -446,25 +449,27 @@ 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 String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + V1Status result = apiInstance.deleteMutatingAdmissionPolicy(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) .execute(); 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()); @@ -478,10 +483,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **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] | @@ -497,7 +503,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -506,13 +512,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteMutatingAdmissionPolicyBinding** +> V1Status deleteMutatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ValidatingAdmissionPolicyBinding +delete a MutatingAdmissionPolicyBinding ### Example ```java @@ -536,25 +542,27 @@ 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 String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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) + V1Status result = apiInstance.deleteMutatingAdmissionPolicyBinding(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) .execute(); 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()); @@ -568,10 +576,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **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] | @@ -587,7 +596,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -655,7 +664,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 | @@ -663,13 +672,13 @@ This endpoint does not need any parameter. | **200** | OK | - | | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicy** -> V1alpha1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicyList listMutatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ValidatingAdmissionPolicy +list or watch objects of kind MutatingAdmissionPolicy ### Example ```java @@ -705,7 +714,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1alpha1ValidatingAdmissionPolicyList result = apiInstance.listValidatingAdmissionPolicy() + V1alpha1MutatingAdmissionPolicyList result = apiInstance.listMutatingAdmissionPolicy() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -720,7 +729,7 @@ public class Example { .execute(); 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()); @@ -748,7 +757,7 @@ public class Example { ### Return type -[**V1alpha1ValidatingAdmissionPolicyList**](V1alpha1ValidatingAdmissionPolicyList.md) +[**V1alpha1MutatingAdmissionPolicyList**](V1alpha1MutatingAdmissionPolicyList.md) ### Authorization @@ -757,7 +766,7 @@ public class Example { ### 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 | @@ -765,13 +774,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicyBinding** -> V1alpha1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ValidatingAdmissionPolicyBinding +list or watch objects of kind MutatingAdmissionPolicyBinding ### Example ```java @@ -807,7 +816,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1alpha1ValidatingAdmissionPolicyBindingList result = apiInstance.listValidatingAdmissionPolicyBinding() + V1alpha1MutatingAdmissionPolicyBindingList result = apiInstance.listMutatingAdmissionPolicyBinding() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -822,7 +831,7 @@ public class Example { .execute(); 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()); @@ -850,7 +859,7 @@ public class Example { ### Return type -[**V1alpha1ValidatingAdmissionPolicyBindingList**](V1alpha1ValidatingAdmissionPolicyBindingList.md) +[**V1alpha1MutatingAdmissionPolicyBindingList**](V1alpha1MutatingAdmissionPolicyBindingList.md) ### Authorization @@ -859,7 +868,7 @@ public class Example { ### 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 | @@ -867,13 +876,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicy** -> V1alpha1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ValidatingAdmissionPolicy +partially update the specified MutatingAdmissionPolicy ### Example ```java @@ -897,7 +906,7 @@ 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -905,7 +914,7 @@ public class Example { String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + V1alpha1MutatingAdmissionPolicy result = apiInstance.patchMutatingAdmissionPolicy(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -914,7 +923,7 @@ public class Example { .execute(); 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()); @@ -928,7 +937,7 @@ 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -938,7 +947,7 @@ public class Example { ### Return type -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) +[**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md) ### Authorization @@ -947,7 +956,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -956,13 +965,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyBinding** -> V1alpha1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ValidatingAdmissionPolicyBinding +partially update the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -986,7 +995,7 @@ 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -994,7 +1003,7 @@ public class Example { String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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) + V1alpha1MutatingAdmissionPolicyBinding result = apiInstance.patchMutatingAdmissionPolicyBinding(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1003,7 +1012,7 @@ public class Example { .execute(); 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()); @@ -1017,7 +1026,7 @@ 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -1027,7 +1036,7 @@ public class Example { ### Return type -[**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md) +[**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1036,7 +1045,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1045,13 +1054,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyStatus** -> V1alpha1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicy readMutatingAdmissionPolicy(name).pretty(pretty).execute(); -partially update status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicy ### Example ```java @@ -1075,24 +1084,15 @@ 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 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 - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + V1alpha1MutatingAdmissionPolicy result = apiInstance.readMutatingAdmissionPolicy(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#patchValidatingAdmissionPolicyStatus"); + 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()); @@ -1106,92 +1106,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | -| **body** | **V1Patch**| | | +| **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] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha1ValidatingAdmissionPolicy result = apiInstance.readValidatingAdmissionPolicy(name) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | - -### Return type - -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) +[**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md) ### Authorization @@ -1200,7 +1120,7 @@ public class Example { ### 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 | @@ -1208,13 +1128,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **readValidatingAdmissionPolicyBinding** -> V1alpha1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(name).pretty(pretty).execute(); + +# **readMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding(name).pretty(pretty).execute(); -read the specified ValidatingAdmissionPolicyBinding +read the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1238,15 +1158,15 @@ 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 String pretty = "pretty_example"; // String | If 'true', 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) + V1alpha1MutatingAdmissionPolicyBinding result = apiInstance.readMutatingAdmissionPolicyBinding(name) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#readValidatingAdmissionPolicyBinding"); + 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()); @@ -1260,12 +1180,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **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 -[**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md) +[**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1274,7 +1194,7 @@ public class Example { ### 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 | @@ -1282,173 +1202,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **readValidatingAdmissionPolicyStatus** -> V1alpha1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(name).pretty(pretty).execute(); - - - -read 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.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. 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(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1alpha1Api#readValidatingAdmissionPolicyStatus"); - System.err.println("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] | - -### 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 | - | - - -# **replaceValidatingAdmissionPolicy** -> V1alpha1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceMutatingAdmissionPolicy** +> V1alpha1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified ValidatingAdmissionPolicyBinding +replace the specified MutatingAdmissionPolicy ### Example ```java @@ -1472,14 +1232,14 @@ 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 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) + V1alpha1MutatingAdmissionPolicy result = apiInstance.replaceMutatingAdmissionPolicy(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1487,7 +1247,7 @@ public class Example { .execute(); 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()); @@ -1501,8 +1261,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | -| **body** | [**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md)| | | +| **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] | @@ -1510,7 +1270,7 @@ public class Example { ### Return type -[**V1alpha1ValidatingAdmissionPolicyBinding**](V1alpha1ValidatingAdmissionPolicyBinding.md) +[**V1alpha1MutatingAdmissionPolicy**](V1alpha1MutatingAdmissionPolicy.md) ### Authorization @@ -1519,7 +1279,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1528,13 +1288,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceValidatingAdmissionPolicyStatus** -> V1alpha1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceMutatingAdmissionPolicyBinding** +> V1alpha1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace status of the specified ValidatingAdmissionPolicy +replace the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1558,14 +1318,14 @@ 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 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) + V1alpha1MutatingAdmissionPolicyBinding result = apiInstance.replaceMutatingAdmissionPolicyBinding(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1573,7 +1333,7 @@ public class Example { .execute(); 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()); @@ -1587,8 +1347,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | -| **body** | [**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md)| | | +| **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] | @@ -1596,7 +1356,7 @@ public class Example { ### Return type -[**V1alpha1ValidatingAdmissionPolicy**](V1alpha1ValidatingAdmissionPolicy.md) +[**V1alpha1MutatingAdmissionPolicyBinding**](V1alpha1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1605,7 +1365,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 5ceb625f9a..1137db74cd 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1Api.md @@ -4,33 +4,30 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| -| [**createValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | | -| [**createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | | -| [**deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | | -| [**deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | | -| [**deleteValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | | -| [**deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | | +| [**createMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | | +| [**createMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#createMutatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | | +| [**deleteCollectionMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | | +| [**deleteCollectionMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteCollectionMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | | +| [**deleteMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | | +| [**deleteMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#deleteMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | | | [**getAPIResources**](AdmissionregistrationV1beta1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1beta1/ | | -| [**listValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies | | -| [**listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings | | -| [**patchValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | | -| [**patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | | -| [**patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | | -| [**readValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | | -| [**readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | | -| [**readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | | -| [**replaceValidatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name} | | -| [**replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name} | | -| [**replaceValidatingAdmissionPolicyStatus**](AdmissionregistrationV1beta1Api.md#replaceValidatingAdmissionPolicyStatus) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status | | +| [**listMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies | | +| [**listMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#listMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings | | +| [**patchMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | | +| [**patchMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#patchMutatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | | +| [**readMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | | +| [**readMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#readMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | | +| [**replaceMutatingAdmissionPolicy**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name} | | +| [**replaceMutatingAdmissionPolicyBinding**](AdmissionregistrationV1beta1Api.md#replaceMutatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name} | | - -# **createValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy createValidatingAdmissionPolicy(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **createMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy createMutatingAdmissionPolicy(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -create a ValidatingAdmissionPolicy +create a MutatingAdmissionPolicy ### Example ```java @@ -54,13 +51,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - V1beta1ValidatingAdmissionPolicy body = new V1beta1ValidatingAdmissionPolicy(); // V1beta1ValidatingAdmissionPolicy | + V1beta1MutatingAdmissionPolicy body = new V1beta1MutatingAdmissionPolicy(); // V1beta1MutatingAdmissionPolicy | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.createValidatingAdmissionPolicy(body) + V1beta1MutatingAdmissionPolicy result = apiInstance.createMutatingAdmissionPolicy(body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -68,7 +65,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -82,7 +79,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | [**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md)| | | +| **body** | [**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.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] | @@ -90,7 +87,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -99,7 +96,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -109,13 +106,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **createValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding createValidatingAdmissionPolicyBinding(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **createMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -create a ValidatingAdmissionPolicyBinding +create a MutatingAdmissionPolicyBinding ### Example ```java @@ -139,13 +136,13 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - V1beta1ValidatingAdmissionPolicyBinding body = new V1beta1ValidatingAdmissionPolicyBinding(); // V1beta1ValidatingAdmissionPolicyBinding | + V1beta1MutatingAdmissionPolicyBinding body = new V1beta1MutatingAdmissionPolicyBinding(); // V1beta1MutatingAdmissionPolicyBinding | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.createValidatingAdmissionPolicyBinding(body) + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.createMutatingAdmissionPolicyBinding(body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -153,7 +150,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -167,7 +164,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **body** | [**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md)| | | +| **body** | [**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.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] | @@ -175,7 +172,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -184,7 +181,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -194,13 +191,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionMutatingAdmissionPolicy** +> V1Status deleteCollectionMutatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ValidatingAdmissionPolicy +delete collection of MutatingAdmissionPolicy ### Example ```java @@ -229,6 +226,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 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,12 +237,13 @@ 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() + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicy() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -257,7 +256,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -276,6 +275,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -297,7 +297,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -305,13 +305,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionMutatingAdmissionPolicyBinding** +> V1Status deleteCollectionMutatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ValidatingAdmissionPolicyBinding +delete collection of MutatingAdmissionPolicyBinding ### Example ```java @@ -340,6 +340,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 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. @@ -350,12 +351,13 @@ 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() + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicyBinding() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -368,7 +370,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -387,6 +389,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -408,7 +411,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -416,13 +419,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteMutatingAdmissionPolicy** +> V1Status deleteMutatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ValidatingAdmissionPolicy +delete a MutatingAdmissionPolicy ### Example ```java @@ -446,25 +449,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + 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) + V1Status result = apiInstance.deleteMutatingAdmissionPolicy(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -478,10 +483,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **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] | @@ -497,7 +503,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -506,13 +512,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteMutatingAdmissionPolicyBinding** +> V1Status deleteMutatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ValidatingAdmissionPolicyBinding +delete a MutatingAdmissionPolicyBinding ### Example ```java @@ -536,25 +542,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + 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) + V1Status result = apiInstance.deleteMutatingAdmissionPolicyBinding(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -568,10 +576,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **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] | @@ -587,7 +596,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -655,7 +664,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 | @@ -663,13 +672,13 @@ This endpoint does not need any parameter. | **200** | OK | - | | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicyList listMutatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ValidatingAdmissionPolicy +list or watch objects of kind MutatingAdmissionPolicy ### Example ```java @@ -705,7 +714,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1beta1ValidatingAdmissionPolicyList result = apiInstance.listValidatingAdmissionPolicy() + V1beta1MutatingAdmissionPolicyList result = apiInstance.listMutatingAdmissionPolicy() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -720,7 +729,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -748,7 +757,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyList**](V1beta1ValidatingAdmissionPolicyList.md) +[**V1beta1MutatingAdmissionPolicyList**](V1beta1MutatingAdmissionPolicyList.md) ### Authorization @@ -757,7 +766,7 @@ public class Example { ### 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 | @@ -765,13 +774,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ValidatingAdmissionPolicyBinding +list or watch objects of kind MutatingAdmissionPolicyBinding ### Example ```java @@ -807,7 +816,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1beta1ValidatingAdmissionPolicyBindingList result = apiInstance.listValidatingAdmissionPolicyBinding() + V1beta1MutatingAdmissionPolicyBindingList result = apiInstance.listMutatingAdmissionPolicyBinding() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -822,7 +831,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -850,7 +859,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyBindingList**](V1beta1ValidatingAdmissionPolicyBindingList.md) +[**V1beta1MutatingAdmissionPolicyBindingList**](V1beta1MutatingAdmissionPolicyBindingList.md) ### Authorization @@ -859,7 +868,7 @@ public class Example { ### 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 | @@ -867,13 +876,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ValidatingAdmissionPolicy +partially update the specified MutatingAdmissionPolicy ### Example ```java @@ -897,7 +906,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -905,7 +914,7 @@ public class Example { String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicy(name, body) + V1beta1MutatingAdmissionPolicy result = apiInstance.patchMutatingAdmissionPolicy(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -914,7 +923,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -928,7 +937,7 @@ 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -938,7 +947,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -947,7 +956,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -956,13 +965,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ValidatingAdmissionPolicyBinding +partially update the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -986,7 +995,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -994,7 +1003,7 @@ public class Example { String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped 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 { - V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.patchValidatingAdmissionPolicyBinding(name, body) + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.patchMutatingAdmissionPolicyBinding(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1003,7 +1012,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1017,7 +1026,7 @@ 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -1027,7 +1036,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1036,7 +1045,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1045,13 +1054,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy readMutatingAdmissionPolicy(name).pretty(pretty).execute(); -partially update status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicy ### Example ```java @@ -1075,24 +1084,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - V1Patch body = new V1Patch(); // V1Patch | + 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 - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicyStatus(name, body) + V1beta1MutatingAdmissionPolicy result = apiInstance.readMutatingAdmissionPolicy(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchValidatingAdmissionPolicyStatus"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1106,92 +1106,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | -| **body** | **V1Patch**| | | +| **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] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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 -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.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** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicy(name).pretty(pretty).execute(); - - - -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.AdmissionregistrationV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - 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. 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(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | - -### Return type - -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -1200,7 +1120,7 @@ public class Example { ### 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 | @@ -1208,13 +1128,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **readValidatingAdmissionPolicyBinding** -> V1beta1ValidatingAdmissionPolicyBinding readValidatingAdmissionPolicyBinding(name).pretty(pretty).execute(); + +# **readMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding(name).pretty(pretty).execute(); -read the specified ValidatingAdmissionPolicyBinding +read the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1238,15 +1158,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + 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 { - V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.readValidatingAdmissionPolicyBinding(name) + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.readMutatingAdmissionPolicyBinding(name) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1260,12 +1180,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **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 -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1274,7 +1194,7 @@ public class Example { ### 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 | @@ -1282,173 +1202,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **readValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy readValidatingAdmissionPolicyStatus(name).pretty(pretty).execute(); - - - -read 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.AdmissionregistrationV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - 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. 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(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingAdmissionPolicyStatus"); - System.err.println("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] | - -### Return type - -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.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 | - | - - -# **replaceValidatingAdmissionPolicy** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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.AdmissionregistrationV1beta1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.replaceValidatingAdmissionPolicy(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#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** | [**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.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 - -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.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** -> V1beta1ValidatingAdmissionPolicyBinding replaceValidatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceMutatingAdmissionPolicy** +> V1beta1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified ValidatingAdmissionPolicyBinding +replace the specified MutatingAdmissionPolicy ### Example ```java @@ -1472,14 +1232,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding - V1beta1ValidatingAdmissionPolicyBinding body = new V1beta1ValidatingAdmissionPolicyBinding(); // V1beta1ValidatingAdmissionPolicyBinding | + String name = "name_example"; // String | name of the MutatingAdmissionPolicy + V1beta1MutatingAdmissionPolicy body = new V1beta1MutatingAdmissionPolicy(); // V1beta1MutatingAdmissionPolicy | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1beta1ValidatingAdmissionPolicyBinding result = apiInstance.replaceValidatingAdmissionPolicyBinding(name, body) + V1beta1MutatingAdmissionPolicy result = apiInstance.replaceMutatingAdmissionPolicy(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1487,7 +1247,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1501,8 +1261,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | -| **body** | [**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md)| | | +| **name** | **String**| name of the MutatingAdmissionPolicy | | +| **body** | [**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.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] | @@ -1510,7 +1270,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicyBinding**](V1beta1ValidatingAdmissionPolicyBinding.md) +[**V1beta1MutatingAdmissionPolicy**](V1beta1MutatingAdmissionPolicy.md) ### Authorization @@ -1519,7 +1279,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1528,13 +1288,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceValidatingAdmissionPolicyStatus** -> V1beta1ValidatingAdmissionPolicy replaceValidatingAdmissionPolicyStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceMutatingAdmissionPolicyBinding** +> V1beta1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace status of the specified ValidatingAdmissionPolicy +replace the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -1558,14 +1318,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - V1beta1ValidatingAdmissionPolicy body = new V1beta1ValidatingAdmissionPolicy(); // V1beta1ValidatingAdmissionPolicy | + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding + V1beta1MutatingAdmissionPolicyBinding body = new V1beta1MutatingAdmissionPolicyBinding(); // V1beta1MutatingAdmissionPolicyBinding | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1beta1ValidatingAdmissionPolicy result = apiInstance.replaceValidatingAdmissionPolicyStatus(name, body) + V1beta1MutatingAdmissionPolicyBinding result = apiInstance.replaceMutatingAdmissionPolicyBinding(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1573,7 +1333,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceValidatingAdmissionPolicyStatus"); + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1587,8 +1347,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | -| **body** | [**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md)| | | +| **name** | **String**| name of the MutatingAdmissionPolicyBinding | | +| **body** | [**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.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] | @@ -1596,7 +1356,7 @@ public class Example { ### Return type -[**V1beta1ValidatingAdmissionPolicy**](V1beta1ValidatingAdmissionPolicy.md) +[**V1beta1MutatingAdmissionPolicyBinding**](V1beta1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -1605,7 +1365,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 93376905cc..bf92f74c0f 100644 --- a/kubernetes/docs/ApiextensionsV1Api.md +++ b/kubernetes/docs/ApiextensionsV1Api.md @@ -92,7 +92,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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,7 +104,7 @@ public class Example { # **deleteCollectionCustomResourceDefinition** -> V1Status deleteCollectionCustomResourceDefinition().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionCustomResourceDefinition().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -137,6 +137,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 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. @@ -153,6 +154,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -184,6 +186,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -205,7 +208,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -215,7 +218,7 @@ public class Example { # **deleteCustomResourceDefinition** -> V1Status deleteCustomResourceDefinition(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteCustomResourceDefinition(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -247,6 +250,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -255,6 +259,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -279,6 +284,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -294,7 +300,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -362,7 +368,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 | @@ -464,7 +470,7 @@ public class Example { ### 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 | @@ -552,7 +558,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -641,7 +647,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -716,7 +722,7 @@ public class Example { ### 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 | @@ -790,7 +796,7 @@ public class Example { ### 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 | @@ -875,7 +881,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -961,7 +967,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 5a4635d036..1e23b4b827 100644 --- a/kubernetes/docs/ApiregistrationV1Api.md +++ b/kubernetes/docs/ApiregistrationV1Api.md @@ -92,7 +92,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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,7 +104,7 @@ public class Example { # **deleteAPIService** -> V1Status deleteAPIService(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteAPIService(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -136,6 +136,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -144,6 +145,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -168,6 +170,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -183,7 +186,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -194,7 +197,7 @@ public class Example { # **deleteCollectionAPIService** -> V1Status deleteCollectionAPIService().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionAPIService().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -227,6 +230,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 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. @@ -243,6 +247,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -274,6 +279,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -295,7 +301,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -362,7 +368,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 | @@ -464,7 +470,7 @@ public class Example { ### 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 | @@ -552,7 +558,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -641,7 +647,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -716,7 +722,7 @@ public class Example { ### 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 | @@ -790,7 +796,7 @@ public class Example { ### 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 | @@ -875,7 +881,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -961,7 +967,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 ed484b4453..3b62731750 100644 --- a/kubernetes/docs/AppsV1Api.md +++ b/kubernetes/docs/AppsV1Api.md @@ -145,7 +145,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -232,7 +232,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -406,7 +406,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -493,7 +493,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -505,7 +505,7 @@ public class Example { # **deleteCollectionNamespacedControllerRevision** -> V1Status deleteCollectionNamespacedControllerRevision(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedControllerRevision(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -539,6 +539,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 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. @@ -555,6 +556,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -587,6 +589,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -608,7 +611,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -618,7 +621,7 @@ public class Example { # **deleteCollectionNamespacedDaemonSet** -> V1Status deleteCollectionNamespacedDaemonSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedDaemonSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -652,6 +655,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 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,6 +672,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -700,6 +705,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -721,7 +727,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -731,7 +737,7 @@ public class Example { # **deleteCollectionNamespacedDeployment** -> V1Status deleteCollectionNamespacedDeployment(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedDeployment(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -765,6 +771,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 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. @@ -781,6 +788,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -813,6 +821,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -834,7 +843,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -844,7 +853,7 @@ public class Example { # **deleteCollectionNamespacedReplicaSet** -> V1Status deleteCollectionNamespacedReplicaSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedReplicaSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -878,6 +887,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 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. @@ -894,6 +904,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -926,6 +937,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -947,7 +959,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -957,7 +969,7 @@ public class Example { # **deleteCollectionNamespacedStatefulSet** -> V1Status deleteCollectionNamespacedStatefulSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedStatefulSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -991,6 +1003,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 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. @@ -1007,6 +1020,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -1039,6 +1053,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1060,7 +1075,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1070,7 +1085,7 @@ public class Example { # **deleteNamespacedControllerRevision** -> V1Status deleteNamespacedControllerRevision(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedControllerRevision(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1103,6 +1118,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1111,6 +1127,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1136,6 +1153,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1151,7 +1169,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1162,7 +1180,7 @@ public class Example { # **deleteNamespacedDaemonSet** -> V1Status deleteNamespacedDaemonSet(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedDaemonSet(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1195,6 +1213,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1203,6 +1222,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1228,6 +1248,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1243,7 +1264,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1254,7 +1275,7 @@ public class Example { # **deleteNamespacedDeployment** -> V1Status deleteNamespacedDeployment(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedDeployment(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1287,6 +1308,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1295,6 +1317,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1320,6 +1343,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1335,7 +1359,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1346,7 +1370,7 @@ public class Example { # **deleteNamespacedReplicaSet** -> V1Status deleteNamespacedReplicaSet(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedReplicaSet(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1379,6 +1403,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1387,6 +1412,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1412,6 +1438,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1427,7 +1454,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1438,7 +1465,7 @@ public class Example { # **deleteNamespacedStatefulSet** -> V1Status deleteNamespacedStatefulSet(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedStatefulSet(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1471,6 +1498,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1479,6 +1507,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1504,6 +1533,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1519,7 +1549,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1587,7 +1617,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 | @@ -1689,7 +1719,7 @@ public class Example { ### 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 | @@ -1791,7 +1821,7 @@ public class Example { ### 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 | @@ -1893,7 +1923,7 @@ public class Example { ### 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 | @@ -1997,7 +2027,7 @@ public class Example { ### 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 | @@ -2101,7 +2131,7 @@ public class Example { ### 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 | @@ -2205,7 +2235,7 @@ public class Example { ### 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 | @@ -2309,7 +2339,7 @@ public class Example { ### 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 | @@ -2413,7 +2443,7 @@ public class Example { ### 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 | @@ -2515,7 +2545,7 @@ public class Example { ### 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 | @@ -2617,7 +2647,7 @@ public class Example { ### 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 | @@ -2707,7 +2737,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2798,7 +2828,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2889,7 +2919,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2980,7 +3010,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3071,7 +3101,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3162,7 +3192,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3253,7 +3283,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3344,7 +3374,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3435,7 +3465,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3526,7 +3556,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3617,7 +3647,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3708,7 +3738,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3785,7 +3815,7 @@ public class Example { ### 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 | @@ -3861,7 +3891,7 @@ public class Example { ### 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 | @@ -3937,7 +3967,7 @@ public class Example { ### 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 +4043,7 @@ public class Example { ### 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 | @@ -4089,7 +4119,7 @@ public class Example { ### 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 | @@ -4165,7 +4195,7 @@ public class Example { ### 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 | @@ -4241,7 +4271,7 @@ public class Example { ### 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 | @@ -4317,7 +4347,7 @@ public class Example { ### 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 | @@ -4393,7 +4423,7 @@ public class Example { ### 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 | @@ -4469,7 +4499,7 @@ public class Example { ### 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 | @@ -4545,7 +4575,7 @@ public class Example { ### 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 | @@ -4621,7 +4651,7 @@ public class Example { ### 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 | @@ -4708,7 +4738,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4796,7 +4826,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4884,7 +4914,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4972,7 +5002,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5060,7 +5090,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5148,7 +5178,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5236,7 +5266,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5324,7 +5354,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5412,7 +5442,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5500,7 +5530,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5588,7 +5618,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5676,7 +5706,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 4f6ef8de79..15fc33089d 100644 --- a/kubernetes/docs/AuthenticationV1Api.md +++ b/kubernetes/docs/AuthenticationV1Api.md @@ -84,7 +84,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -169,7 +169,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 @@ 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 75657fcfe8..0000000000 --- a/kubernetes/docs/AuthenticationV1alpha1Api.md +++ /dev/null @@ -1,162 +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(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).pretty(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha1SelfSubjectReview result = apiInstance.createSelfSubjectReview(body) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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().execute(); - - - -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() - .execute(); - 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 c8a759c77c..0000000000 --- a/kubernetes/docs/AuthenticationV1beta1Api.md +++ /dev/null @@ -1,162 +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(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).pretty(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1beta1SelfSubjectReview result = apiInstance.createSelfSubjectReview(body) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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().execute(); - - - -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() - .execute(); - 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 ea449916a1..7c7d65ea4b 100644 --- a/kubernetes/docs/AuthorizationV1Api.md +++ b/kubernetes/docs/AuthorizationV1Api.md @@ -88,7 +88,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -173,7 +173,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -258,7 +258,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -343,7 +343,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -412,7 +412,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 74e93942eb..0b5d8a0aba 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -95,7 +95,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -107,7 +107,7 @@ public class Example { # **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -141,6 +141,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 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. @@ -157,6 +158,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -189,6 +191,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -210,7 +213,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -220,7 +223,7 @@ public class Example { # **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -253,6 +256,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -261,6 +265,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -286,6 +291,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -301,7 +307,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +375,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 | @@ -471,7 +477,7 @@ public class Example { ### 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 | @@ -575,7 +581,7 @@ public class Example { ### 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 | @@ -665,7 +671,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -756,7 +762,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -833,7 +839,7 @@ public class Example { ### 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 | @@ -909,7 +915,7 @@ public class Example { ### 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 | @@ -996,7 +1002,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1084,7 +1090,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 6ed0b9ac88..fa0bc7f62a 100644 --- a/kubernetes/docs/AutoscalingV2Api.md +++ b/kubernetes/docs/AutoscalingV2Api.md @@ -95,7 +95,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -107,7 +107,7 @@ public class Example { # **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -141,6 +141,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 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. @@ -157,6 +158,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -189,6 +191,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -210,7 +213,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -220,7 +223,7 @@ public class Example { # **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -253,6 +256,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -261,6 +265,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -286,6 +291,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -301,7 +307,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +375,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 | @@ -471,7 +477,7 @@ public class Example { ### 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 | @@ -575,7 +581,7 @@ public class Example { ### 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 | @@ -665,7 +671,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -756,7 +762,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -833,7 +839,7 @@ public class Example { ### 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 | @@ -909,7 +915,7 @@ public class Example { ### 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 | @@ -996,7 +1002,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1084,7 +1090,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 bea0ce0f95..4f3511fd76 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -106,7 +106,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -193,7 +193,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -205,7 +205,7 @@ public class Example { # **deleteCollectionNamespacedCronJob** -> V1Status deleteCollectionNamespacedCronJob(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedCronJob(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -239,6 +239,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 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. @@ -255,6 +256,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -287,6 +289,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -308,7 +311,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -318,7 +321,7 @@ public class Example { # **deleteCollectionNamespacedJob** -> V1Status deleteCollectionNamespacedJob(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedJob(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -352,6 +355,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 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. @@ -368,6 +372,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -400,6 +405,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -421,7 +427,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -431,7 +437,7 @@ public class Example { # **deleteNamespacedCronJob** -> V1Status deleteNamespacedCronJob(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedCronJob(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -464,6 +470,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -472,6 +479,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -497,6 +505,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -512,7 +521,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -523,7 +532,7 @@ public class Example { # **deleteNamespacedJob** -> V1Status deleteNamespacedJob(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedJob(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -556,6 +565,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -564,6 +574,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -589,6 +600,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -604,7 +616,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -672,7 +684,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 | @@ -774,7 +786,7 @@ public class Example { ### 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 | @@ -876,7 +888,7 @@ public class Example { ### 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 | @@ -980,7 +992,7 @@ public class Example { ### 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 | @@ -1084,7 +1096,7 @@ public class Example { ### 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 | @@ -1174,7 +1186,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1265,7 +1277,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1356,7 +1368,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +1459,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1524,7 +1536,7 @@ public class Example { ### 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 | @@ -1600,7 +1612,7 @@ public class Example { ### 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 | @@ -1676,7 +1688,7 @@ public class Example { ### 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,7 +1764,7 @@ public class Example { ### 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 | @@ -1839,7 +1851,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1927,7 +1939,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2015,7 +2027,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2103,7 +2115,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 11acd0bbba..937e5ff103 100644 --- a/kubernetes/docs/CertificatesV1Api.md +++ b/kubernetes/docs/CertificatesV1Api.md @@ -95,7 +95,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -107,7 +107,7 @@ public class Example { # **deleteCertificateSigningRequest** -> V1Status deleteCertificateSigningRequest(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteCertificateSigningRequest(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -139,6 +139,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -147,6 +148,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -171,6 +173,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -186,7 +189,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +200,7 @@ public class Example { # **deleteCollectionCertificateSigningRequest** -> V1Status deleteCollectionCertificateSigningRequest().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionCertificateSigningRequest().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -230,6 +233,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 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. @@ -246,6 +250,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -277,6 +282,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -298,7 +304,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -365,7 +371,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 | @@ -467,7 +473,7 @@ public class Example { ### 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 | @@ -555,7 +561,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -644,7 +650,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +739,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +814,7 @@ public class Example { ### 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 +888,7 @@ public class Example { ### 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 | @@ -956,7 +962,7 @@ public class Example { ### 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 | @@ -1041,7 +1047,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1127,7 +1133,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1213,7 +1219,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 cd0aeeea05..8c9b1dd003 100644 --- a/kubernetes/docs/CertificatesV1alpha1Api.md +++ b/kubernetes/docs/CertificatesV1alpha1Api.md @@ -89,7 +89,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -101,7 +101,7 @@ public class Example { # **deleteClusterTrustBundle** -> V1Status deleteClusterTrustBundle(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteClusterTrustBundle(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -133,6 +133,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -141,6 +142,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -165,6 +167,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -180,7 +183,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -191,7 +194,7 @@ public class Example { # **deleteCollectionClusterTrustBundle** -> V1Status deleteCollectionClusterTrustBundle().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionClusterTrustBundle().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -224,6 +227,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 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. @@ -240,6 +244,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -271,6 +276,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -292,7 +298,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -359,7 +365,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 | @@ -461,7 +467,7 @@ public class Example { ### 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 | @@ -549,7 +555,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -624,7 +630,7 @@ public class Example { ### 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 | @@ -709,7 +715,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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..ecb0c2d6b6 --- /dev/null +++ b/kubernetes/docs/CertificatesV1beta1Api.md @@ -0,0 +1,1751 @@ +# CertificatesV1beta1Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createClusterTrustBundle**](CertificatesV1beta1Api.md#createClusterTrustBundle) | **POST** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | | +| [**createNamespacedPodCertificateRequest**](CertificatesV1beta1Api.md#createNamespacedPodCertificateRequest) | **POST** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests | | +| [**deleteClusterTrustBundle**](CertificatesV1beta1Api.md#deleteClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | | +| [**deleteCollectionClusterTrustBundle**](CertificatesV1beta1Api.md#deleteCollectionClusterTrustBundle) | **DELETE** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | | +| [**deleteCollectionNamespacedPodCertificateRequest**](CertificatesV1beta1Api.md#deleteCollectionNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests | | +| [**deleteNamespacedPodCertificateRequest**](CertificatesV1beta1Api.md#deleteNamespacedPodCertificateRequest) | **DELETE** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name} | | +| [**getAPIResources**](CertificatesV1beta1Api.md#getAPIResources) | **GET** /apis/certificates.k8s.io/v1beta1/ | | +| [**listClusterTrustBundle**](CertificatesV1beta1Api.md#listClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1beta1/clustertrustbundles | | +| [**listNamespacedPodCertificateRequest**](CertificatesV1beta1Api.md#listNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests | | +| [**listPodCertificateRequestForAllNamespaces**](CertificatesV1beta1Api.md#listPodCertificateRequestForAllNamespaces) | **GET** /apis/certificates.k8s.io/v1beta1/podcertificaterequests | | +| [**patchClusterTrustBundle**](CertificatesV1beta1Api.md#patchClusterTrustBundle) | **PATCH** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | | +| [**patchNamespacedPodCertificateRequest**](CertificatesV1beta1Api.md#patchNamespacedPodCertificateRequest) | **PATCH** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name} | | +| [**patchNamespacedPodCertificateRequestStatus**](CertificatesV1beta1Api.md#patchNamespacedPodCertificateRequestStatus) | **PATCH** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status | | +| [**readClusterTrustBundle**](CertificatesV1beta1Api.md#readClusterTrustBundle) | **GET** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | | +| [**readNamespacedPodCertificateRequest**](CertificatesV1beta1Api.md#readNamespacedPodCertificateRequest) | **GET** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name} | | +| [**readNamespacedPodCertificateRequestStatus**](CertificatesV1beta1Api.md#readNamespacedPodCertificateRequestStatus) | **GET** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status | | +| [**replaceClusterTrustBundle**](CertificatesV1beta1Api.md#replaceClusterTrustBundle) | **PUT** /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name} | | +| [**replaceNamespacedPodCertificateRequest**](CertificatesV1beta1Api.md#replaceNamespacedPodCertificateRequest) | **PUT** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name} | | +| [**replaceNamespacedPodCertificateRequestStatus**](CertificatesV1beta1Api.md#replaceNamespacedPodCertificateRequestStatus) | **PUT** /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status | | + + + +# **createClusterTrustBundle** +> V1beta1ClusterTrustBundle createClusterTrustBundle(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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 | - | + + +# **createNamespacedPodCertificateRequest** +> V1beta1PodCertificateRequest createNamespacedPodCertificateRequest(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1PodCertificateRequest body = new V1beta1PodCertificateRequest(); // V1beta1PodCertificateRequest | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1beta1PodCertificateRequest result = apiInstance.createNamespacedPodCertificateRequest(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#createNamespacedPodCertificateRequest"); + System.err.println("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** | [**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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 + +[**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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 | - | + + +# **deleteCollectionNamespacedPodCertificateRequest** +> V1Status deleteCollectionNamespacedPodCertificateRequest(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 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.deleteCollectionNamespacedPodCertificateRequest(namespace) + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#deleteCollectionNamespacedPodCertificateRequest"); + System.err.println("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 | - | + + +# **deleteNamespacedPodCertificateRequest** +> V1Status deleteNamespacedPodCertificateRequest(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 PodCertificateRequest + 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.deleteNamespacedPodCertificateRequest(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#deleteNamespacedPodCertificateRequest"); + System.err.println("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 PodCertificateRequest | | +| **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().execute(); + + + +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() + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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 | - | + + +# **listNamespacedPodCertificateRequest** +> V1beta1PodCertificateRequestList listNamespacedPodCertificateRequest(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 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 { + V1beta1PodCertificateRequestList result = apiInstance.listNamespacedPodCertificateRequest(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#listNamespacedPodCertificateRequest"); + System.err.println("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 + +[**V1beta1PodCertificateRequestList**](V1beta1PodCertificateRequestList.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 | - | + + +# **listPodCertificateRequestForAllNamespaces** +> V1beta1PodCertificateRequestList listPodCertificateRequestForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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); + 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 { + V1beta1PodCertificateRequestList result = apiInstance.listPodCertificateRequestForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#listPodCertificateRequestForAllNamespaces"); + System.err.println("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 + +[**V1beta1PodCertificateRequestList**](V1beta1PodCertificateRequestList.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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 | - | + + +# **patchNamespacedPodCertificateRequest** +> V1beta1PodCertificateRequest patchNamespacedPodCertificateRequest(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 PodCertificateRequest + 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 { + V1beta1PodCertificateRequest result = apiInstance.patchNamespacedPodCertificateRequest(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#patchNamespacedPodCertificateRequest"); + System.err.println("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 PodCertificateRequest | | +| **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 + +[**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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 | - | + + +# **patchNamespacedPodCertificateRequestStatus** +> V1beta1PodCertificateRequest patchNamespacedPodCertificateRequestStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 PodCertificateRequest + 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 { + V1beta1PodCertificateRequest result = apiInstance.patchNamespacedPodCertificateRequestStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#patchNamespacedPodCertificateRequestStatus"); + System.err.println("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 PodCertificateRequest | | +| **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 + +[**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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(pretty).execute(); + + + +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(pretty) + .execute(); + 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 | - | + + +# **readNamespacedPodCertificateRequest** +> V1beta1PodCertificateRequest readNamespacedPodCertificateRequest(name, namespace).pretty(pretty).execute(); + + + +read the specified PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 PodCertificateRequest + 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 { + V1beta1PodCertificateRequest result = apiInstance.readNamespacedPodCertificateRequest(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#readNamespacedPodCertificateRequest"); + System.err.println("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 PodCertificateRequest | | +| **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 + +[**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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 | - | + + +# **readNamespacedPodCertificateRequestStatus** +> V1beta1PodCertificateRequest readNamespacedPodCertificateRequestStatus(name, namespace).pretty(pretty).execute(); + + + +read status of the specified PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 PodCertificateRequest + 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 { + V1beta1PodCertificateRequest result = apiInstance.readNamespacedPodCertificateRequestStatus(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#readNamespacedPodCertificateRequestStatus"); + System.err.println("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 PodCertificateRequest | | +| **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 + +[**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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 | - | + + +# **replaceNamespacedPodCertificateRequest** +> V1beta1PodCertificateRequest replaceNamespacedPodCertificateRequest(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 PodCertificateRequest + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1PodCertificateRequest body = new V1beta1PodCertificateRequest(); // V1beta1PodCertificateRequest | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1beta1PodCertificateRequest result = apiInstance.replaceNamespacedPodCertificateRequest(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#replaceNamespacedPodCertificateRequest"); + System.err.println("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 PodCertificateRequest | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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 + +[**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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 | - | + + +# **replaceNamespacedPodCertificateRequestStatus** +> V1beta1PodCertificateRequest replaceNamespacedPodCertificateRequestStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of the specified PodCertificateRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +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 PodCertificateRequest + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1PodCertificateRequest body = new V1beta1PodCertificateRequest(); // V1beta1PodCertificateRequest | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1beta1PodCertificateRequest result = apiInstance.replaceNamespacedPodCertificateRequestStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#replaceNamespacedPodCertificateRequestStatus"); + System.err.println("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 PodCertificateRequest | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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 + +[**V1beta1PodCertificateRequest**](V1beta1PodCertificateRequest.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 d19814a9f7..dab86ca3f8 100644 --- a/kubernetes/docs/CoordinationV1Api.md +++ b/kubernetes/docs/CoordinationV1Api.md @@ -92,7 +92,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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,7 +104,7 @@ public class Example { # **deleteCollectionNamespacedLease** -> V1Status deleteCollectionNamespacedLease(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedLease(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -138,6 +138,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 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. @@ -154,6 +155,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -186,6 +188,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -207,7 +210,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -217,7 +220,7 @@ public class Example { # **deleteNamespacedLease** -> V1Status deleteNamespacedLease(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedLease(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -250,6 +253,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -258,6 +262,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -283,6 +288,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -298,7 +304,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -366,7 +372,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 | @@ -468,7 +474,7 @@ public class Example { ### 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 | @@ -572,7 +578,7 @@ public class Example { ### 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 | @@ -662,7 +668,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -739,7 +745,7 @@ public class Example { ### 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 | @@ -826,7 +832,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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..679d1a4c5c --- /dev/null +++ b/kubernetes/docs/CoordinationV1alpha2Api.md @@ -0,0 +1,843 @@ +# 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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().execute(); + + + +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() + .execute(); + 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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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..d883a0ffaa --- /dev/null +++ b/kubernetes/docs/CoordinationV1beta1Api.md @@ -0,0 +1,843 @@ +# 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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().execute(); + + + +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() + .execute(); + 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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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 a49bbd5fe5..f6462f77a9 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -139,6 +139,7 @@ All URIs are relative to *http://localhost* | [**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 @@ All URIs are relative to *http://localhost* | [**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 @@ All URIs are relative to *http://localhost* | [**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} | | @@ -4000,7 +4003,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4174,7 +4177,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4261,7 +4264,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4348,7 +4351,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4435,7 +4438,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4522,7 +4525,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4609,7 +4612,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4698,7 +4701,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4787,7 +4790,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4874,7 +4877,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -4961,7 +4964,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5048,7 +5051,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5135,7 +5138,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5222,7 +5225,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5309,7 +5312,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5398,7 +5401,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5483,7 +5486,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5568,7 +5571,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5580,7 +5583,7 @@ public class Example { # **deleteCollectionNamespacedConfigMap** -> V1Status deleteCollectionNamespacedConfigMap(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedConfigMap(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -5614,6 +5617,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 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. @@ -5630,6 +5634,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -5662,6 +5667,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -5683,7 +5689,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5693,7 +5699,7 @@ public class Example { # **deleteCollectionNamespacedEndpoints** -> V1Status deleteCollectionNamespacedEndpoints(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedEndpoints(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -5727,6 +5733,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 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. @@ -5743,6 +5750,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -5775,6 +5783,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -5796,7 +5805,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5806,7 +5815,7 @@ public class Example { # **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedEvent(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -5840,6 +5849,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 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. @@ -5856,6 +5866,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -5888,6 +5899,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -5909,7 +5921,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -5919,7 +5931,7 @@ public class Example { # **deleteCollectionNamespacedLimitRange** -> V1Status deleteCollectionNamespacedLimitRange(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedLimitRange(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -5953,6 +5965,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 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. @@ -5969,6 +5982,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -6001,6 +6015,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -6022,7 +6037,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6032,7 +6047,7 @@ public class Example { # **deleteCollectionNamespacedPersistentVolumeClaim** -> V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6066,6 +6081,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 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. @@ -6082,6 +6098,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -6114,6 +6131,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -6135,7 +6153,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6145,7 +6163,7 @@ public class Example { # **deleteCollectionNamespacedPod** -> V1Status deleteCollectionNamespacedPod(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedPod(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6179,6 +6197,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 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. @@ -6195,6 +6214,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -6227,6 +6247,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -6248,7 +6269,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6258,7 +6279,7 @@ public class Example { # **deleteCollectionNamespacedPodTemplate** -> V1Status deleteCollectionNamespacedPodTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedPodTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6292,6 +6313,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 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. @@ -6308,6 +6330,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -6340,6 +6363,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -6361,7 +6385,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6371,7 +6395,7 @@ public class Example { # **deleteCollectionNamespacedReplicationController** -> V1Status deleteCollectionNamespacedReplicationController(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedReplicationController(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6405,6 +6429,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 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. @@ -6421,6 +6446,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -6453,6 +6479,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -6474,7 +6501,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6484,7 +6511,7 @@ public class Example { # **deleteCollectionNamespacedResourceQuota** -> V1Status deleteCollectionNamespacedResourceQuota(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedResourceQuota(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6518,6 +6545,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 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. @@ -6534,6 +6562,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -6566,6 +6595,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -6587,7 +6617,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6597,7 +6627,7 @@ public class Example { # **deleteCollectionNamespacedSecret** -> V1Status deleteCollectionNamespacedSecret(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedSecret(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6631,6 +6661,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 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. @@ -6647,6 +6678,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -6679,6 +6711,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -6700,7 +6733,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6710,7 +6743,7 @@ public class Example { # **deleteCollectionNamespacedService** -> V1Status deleteCollectionNamespacedService(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedService(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6744,6 +6777,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 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. @@ -6760,6 +6794,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -6792,6 +6827,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -6813,7 +6849,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6823,7 +6859,7 @@ public class Example { # **deleteCollectionNamespacedServiceAccount** -> V1Status deleteCollectionNamespacedServiceAccount(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedServiceAccount(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6857,6 +6893,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 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. @@ -6873,6 +6910,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -6905,6 +6943,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -6926,7 +6965,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -6936,7 +6975,7 @@ public class Example { # **deleteCollectionNode** -> V1Status deleteCollectionNode().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNode().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6969,6 +7008,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 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. @@ -6985,6 +7025,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -7016,6 +7057,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7037,7 +7079,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7047,7 +7089,7 @@ public class Example { # **deleteCollectionPersistentVolume** -> V1Status deleteCollectionPersistentVolume().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionPersistentVolume().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -7080,6 +7122,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 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. @@ -7096,6 +7139,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -7127,6 +7171,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7148,7 +7193,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7158,7 +7203,7 @@ public class Example { # **deleteNamespace** -> V1Status deleteNamespace(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespace(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -7190,6 +7235,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -7198,6 +7244,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -7222,6 +7269,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7237,7 +7285,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7248,7 +7296,7 @@ public class Example { # **deleteNamespacedConfigMap** -> V1Status deleteNamespacedConfigMap(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedConfigMap(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -7281,6 +7329,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -7289,6 +7338,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -7314,6 +7364,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7329,7 +7380,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7340,7 +7391,7 @@ public class Example { # **deleteNamespacedEndpoints** -> V1Status deleteNamespacedEndpoints(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedEndpoints(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -7373,6 +7424,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -7381,6 +7433,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -7406,6 +7459,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7421,7 +7475,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7432,7 +7486,7 @@ public class Example { # **deleteNamespacedEvent** -> V1Status deleteNamespacedEvent(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedEvent(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -7465,6 +7519,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -7473,6 +7528,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -7498,6 +7554,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7513,7 +7570,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7524,7 +7581,7 @@ public class Example { # **deleteNamespacedLimitRange** -> V1Status deleteNamespacedLimitRange(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedLimitRange(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -7557,6 +7614,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -7565,6 +7623,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -7590,6 +7649,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7605,7 +7665,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7616,7 +7676,7 @@ public class Example { # **deleteNamespacedPersistentVolumeClaim** -> V1PersistentVolumeClaim deleteNamespacedPersistentVolumeClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1PersistentVolumeClaim deleteNamespacedPersistentVolumeClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -7649,6 +7709,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -7657,6 +7718,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -7682,6 +7744,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7697,7 +7760,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7708,7 +7771,7 @@ public class Example { # **deleteNamespacedPod** -> V1Pod deleteNamespacedPod(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Pod deleteNamespacedPod(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -7741,6 +7804,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -7749,6 +7813,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -7774,6 +7839,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7789,7 +7855,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7800,7 +7866,7 @@ public class Example { # **deleteNamespacedPodTemplate** -> V1PodTemplate deleteNamespacedPodTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1PodTemplate deleteNamespacedPodTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -7833,6 +7899,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -7841,6 +7908,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -7866,6 +7934,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7881,7 +7950,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7892,7 +7961,7 @@ public class Example { # **deleteNamespacedReplicationController** -> V1Status deleteNamespacedReplicationController(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedReplicationController(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -7925,6 +7994,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -7933,6 +8003,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -7958,6 +8029,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -7973,7 +8045,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -7984,7 +8056,7 @@ public class Example { # **deleteNamespacedResourceQuota** -> V1ResourceQuota deleteNamespacedResourceQuota(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1ResourceQuota deleteNamespacedResourceQuota(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -8017,6 +8089,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -8025,6 +8098,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -8050,6 +8124,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -8065,7 +8140,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -8076,7 +8151,7 @@ public class Example { # **deleteNamespacedSecret** -> V1Status deleteNamespacedSecret(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedSecret(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -8109,6 +8184,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -8117,6 +8193,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -8142,6 +8219,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -8157,7 +8235,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -8168,7 +8246,7 @@ public class Example { # **deleteNamespacedService** -> V1Service deleteNamespacedService(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Service deleteNamespacedService(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -8201,6 +8279,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -8209,6 +8288,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -8234,6 +8314,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -8249,7 +8330,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -8260,7 +8341,7 @@ public class Example { # **deleteNamespacedServiceAccount** -> V1ServiceAccount deleteNamespacedServiceAccount(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1ServiceAccount deleteNamespacedServiceAccount(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -8293,6 +8374,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -8301,6 +8383,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -8326,6 +8409,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -8341,7 +8425,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -8352,7 +8436,7 @@ public class Example { # **deleteNode** -> V1Status deleteNode(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNode(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -8384,6 +8468,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -8392,6 +8477,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -8416,6 +8502,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -8431,7 +8518,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -8442,7 +8529,7 @@ public class Example { # **deletePersistentVolume** -> V1PersistentVolume deletePersistentVolume(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1PersistentVolume deletePersistentVolume(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -8474,6 +8561,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -8482,6 +8570,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -8506,6 +8595,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -8521,7 +8611,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -8589,7 +8679,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 | @@ -8691,7 +8781,7 @@ public class Example { ### 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 | @@ -8793,7 +8883,7 @@ public class Example { ### 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 | @@ -8895,7 +8985,7 @@ public class Example { ### 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 | @@ -8997,7 +9087,7 @@ public class Example { ### 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 | @@ -9099,7 +9189,7 @@ public class Example { ### 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 | @@ -9201,7 +9291,7 @@ public class Example { ### 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 | @@ -9305,7 +9395,7 @@ public class Example { ### 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 | @@ -9409,7 +9499,7 @@ public class Example { ### 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 | @@ -9513,7 +9603,7 @@ public class Example { ### 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 | @@ -9617,7 +9707,7 @@ public class Example { ### 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 | @@ -9721,7 +9811,7 @@ public class Example { ### 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 | @@ -9825,7 +9915,7 @@ public class Example { ### 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 | @@ -9929,7 +10019,7 @@ public class Example { ### 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 | @@ -10033,7 +10123,7 @@ public class Example { ### 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 | @@ -10137,7 +10227,7 @@ public class Example { ### 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 | @@ -10241,7 +10331,7 @@ public class Example { ### 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 | @@ -10345,7 +10435,7 @@ public class Example { ### 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 | @@ -10449,7 +10539,7 @@ public class Example { ### 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 | @@ -10551,7 +10641,7 @@ public class Example { ### 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 | @@ -10653,7 +10743,7 @@ public class Example { ### 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 | @@ -10755,7 +10845,7 @@ public class Example { ### 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 | @@ -10857,7 +10947,7 @@ public class Example { ### 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 | @@ -10959,7 +11049,7 @@ public class Example { ### 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 | @@ -11061,7 +11151,7 @@ public class Example { ### 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 | @@ -11163,7 +11253,7 @@ public class Example { ### 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 | @@ -11265,7 +11355,7 @@ public class Example { ### 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 | @@ -11367,7 +11457,7 @@ public class Example { ### 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 | @@ -11469,7 +11559,7 @@ public class Example { ### 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 | @@ -11557,7 +11647,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11646,7 +11736,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11737,7 +11827,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11828,7 +11918,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -11919,7 +12009,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12010,7 +12100,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12101,7 +12191,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12192,7 +12282,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12283,7 +12373,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12374,7 +12464,98 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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 | @@ -12465,7 +12646,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12556,7 +12737,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12647,7 +12828,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12738,7 +12919,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12829,7 +13010,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -12920,7 +13101,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13011,7 +13192,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13102,7 +13283,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13193,7 +13374,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13284,7 +13465,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13375,7 +13556,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13464,7 +13645,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13553,7 +13734,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13642,7 +13823,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13731,7 +13912,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -13806,7 +13987,7 @@ public class Example { ### 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 | @@ -13880,7 +14061,7 @@ public class Example { ### 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 | @@ -13954,7 +14135,7 @@ public class Example { ### 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 | @@ -14030,7 +14211,7 @@ public class Example { ### 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 | @@ -14106,7 +14287,7 @@ public class Example { ### 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 | @@ -14182,7 +14363,7 @@ public class Example { ### 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 | @@ -14258,7 +14439,7 @@ public class Example { ### 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 | @@ -14334,7 +14515,7 @@ public class Example { ### 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 | @@ -14410,7 +14591,7 @@ public class Example { ### 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 | @@ -14486,7 +14667,7 @@ public class Example { ### 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 | @@ -14562,7 +14743,7 @@ public class Example { ### 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 | @@ -14572,7 +14753,7 @@ public class Example { # **readNamespacedPodLog** -> String readNamespacedPodLog(name, namespace).container(container).follow(follow).insecureSkipTLSVerifyBackend(insecureSkipTLSVerifyBackend).limitBytes(limitBytes).pretty(pretty).previous(previous).sinceSeconds(sinceSeconds).tailLines(tailLines).timestamps(timestamps).execute(); +> String readNamespacedPodLog(name, namespace).container(container).follow(follow).insecureSkipTLSVerifyBackend(insecureSkipTLSVerifyBackend).limitBytes(limitBytes).pretty(pretty).previous(previous).sinceSeconds(sinceSeconds).stream(stream).tailLines(tailLines).timestamps(timestamps).execute(); @@ -14609,7 +14790,8 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', 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) @@ -14620,6 +14802,7 @@ public class Example { .pretty(pretty) .previous(previous) .sinceSeconds(sinceSeconds) + .stream(stream) .tailLines(tailLines) .timestamps(timestamps) .execute(); @@ -14648,7 +14831,8 @@ public class Example { | **pretty** | **String**| If 'true', then 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 @@ -14662,7 +14846,83 @@ public class Example { ### 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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 | @@ -14738,7 +14998,7 @@ public class Example { ### 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 | @@ -14814,7 +15074,7 @@ public class Example { ### 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 | @@ -14890,7 +15150,7 @@ public class Example { ### 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 | @@ -14966,7 +15226,7 @@ public class Example { ### 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 | @@ -15042,7 +15302,7 @@ public class Example { ### 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 | @@ -15118,7 +15378,7 @@ public class Example { ### 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 | @@ -15194,7 +15454,7 @@ public class Example { ### 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 | @@ -15270,7 +15530,7 @@ public class Example { ### 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 | @@ -15346,7 +15606,7 @@ public class Example { ### 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 | @@ -15422,7 +15682,7 @@ public class Example { ### 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 | @@ -15498,7 +15758,7 @@ public class Example { ### 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 | @@ -15572,7 +15832,7 @@ public class Example { ### 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 | @@ -15646,7 +15906,7 @@ public class Example { ### 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 | @@ -15720,7 +15980,7 @@ public class Example { ### 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 | @@ -15794,7 +16054,7 @@ public class Example { ### 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 | @@ -15879,7 +16139,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -15965,7 +16225,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16051,7 +16311,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16139,7 +16399,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16227,7 +16487,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16315,7 +16575,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16403,7 +16663,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16491,7 +16751,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16579,7 +16839,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16667,7 +16927,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16755,7 +17015,95 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 | - | + + +# **replaceNamespacedPodResize** +> V1Pod replaceNamespacedPodResize(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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] | + +### 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 | @@ -16843,7 +17191,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -16931,7 +17279,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17019,7 +17367,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17107,7 +17455,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17195,7 +17543,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17283,7 +17631,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17371,7 +17719,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17459,7 +17807,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17547,7 +17895,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17635,7 +17983,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17723,7 +18071,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17809,7 +18157,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17895,7 +18243,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -17981,7 +18329,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -18067,7 +18415,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 9222392ac2..55f6ebcb56 100644 --- a/kubernetes/docs/CoreV1EndpointPort.md +++ b/kubernetes/docs/CoreV1EndpointPort.md @@ -2,7 +2,7 @@ # 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 diff --git a/kubernetes/docs/CoreV1ResourceClaim.md b/kubernetes/docs/CoreV1ResourceClaim.md new file mode 100644 index 0000000000..fe9cb3704a --- /dev/null +++ b/kubernetes/docs/CoreV1ResourceClaim.md @@ -0,0 +1,15 @@ + + +# CoreV1ResourceClaim + +ResourceClaim references one entry in PodSpec.ResourceClaims. + +## Properties + +| 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/CustomObjectsApi.md b/kubernetes/docs/CustomObjectsApi.md index 15c7c5d422..1c20a6f42b 100644 --- a/kubernetes/docs/CustomObjectsApi.md +++ b/kubernetes/docs/CustomObjectsApi.md @@ -18,6 +18,7 @@ All URIs are relative to *http://localhost* | [**getNamespacedCustomObjectScale**](CustomObjectsApi.md#getNamespacedCustomObjectScale) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale | | | [**getNamespacedCustomObjectStatus**](CustomObjectsApi.md#getNamespacedCustomObjectStatus) | **GET** /apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status | | | [**listClusterCustomObject**](CustomObjectsApi.md#listClusterCustomObject) | **GET** /apis/{group}/{version}/{plural} | | +| [**listCustomObjectForAllNamespaces**](CustomObjectsApi.md#listCustomObjectForAllNamespaces) | **GET** /apis/{group}/{version}/{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 | | @@ -403,7 +404,7 @@ public class Example { # **deleteCollectionNamespacedCustomObject** -> Object deleteCollectionNamespacedCustomObject(group, version, namespace, plural).pretty(pretty).labelSelector(labelSelector).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).dryRun(dryRun).body(body).execute(); +> Object deleteCollectionNamespacedCustomObject(group, version, namespace, plural).pretty(pretty).labelSelector(labelSelector).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).dryRun(dryRun).fieldSelector(fieldSelector).body(body).execute(); @@ -441,6 +442,7 @@ public class Example { Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { Object result = apiInstance.deleteCollectionNamespacedCustomObject(group, version, namespace, plural) @@ -450,6 +452,7 @@ public class Example { .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .dryRun(dryRun) + .fieldSelector(fieldSelector) .body(body) .execute(); System.out.println(result); @@ -478,6 +481,7 @@ public class Example { | **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | | **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -1239,6 +1243,111 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | + +# **listCustomObjectForAllNamespaces** +> Object listCustomObjectForAllNamespaces(group, version, resourcePlural).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).timeoutSeconds(timeoutSeconds).watch(watch).execute(); diff --git a/kubernetes/docs/DiscoveryV1Api.md b/kubernetes/docs/DiscoveryV1Api.md index 25810a6bd6..7951c55b9f 100644 --- a/kubernetes/docs/DiscoveryV1Api.md +++ b/kubernetes/docs/DiscoveryV1Api.md @@ -92,7 +92,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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,7 +104,7 @@ public class Example { # **deleteCollectionNamespacedEndpointSlice** -> V1Status deleteCollectionNamespacedEndpointSlice(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedEndpointSlice(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -138,6 +138,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 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. @@ -154,6 +155,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -186,6 +188,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -207,7 +210,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -217,7 +220,7 @@ public class Example { # **deleteNamespacedEndpointSlice** -> V1Status deleteNamespacedEndpointSlice(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedEndpointSlice(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -250,6 +253,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -258,6 +262,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -283,6 +288,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -298,7 +304,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -366,7 +372,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 | @@ -468,7 +474,7 @@ public class Example { ### 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 | @@ -572,7 +578,7 @@ public class Example { ### 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 | @@ -662,7 +668,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -739,7 +745,7 @@ public class Example { ### 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 | @@ -826,7 +832,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 6a9c502cb9..754174ebfb 100644 --- a/kubernetes/docs/DiscoveryV1EndpointPort.md +++ b/kubernetes/docs/DiscoveryV1EndpointPort.md @@ -10,7 +10,7 @@ EndpointPort represents a Port used by an EndpointSlice |------------ | ------------- | ------------- | -------------| |**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 this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer. | [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 66c6e56295..fa983f2503 100644 --- a/kubernetes/docs/EventsV1Api.md +++ b/kubernetes/docs/EventsV1Api.md @@ -92,7 +92,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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,7 +104,7 @@ public class Example { # **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedEvent(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -138,6 +138,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 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. @@ -154,6 +155,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -186,6 +188,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -207,7 +210,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -217,7 +220,7 @@ public class Example { # **deleteNamespacedEvent** -> V1Status deleteNamespacedEvent(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedEvent(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -250,6 +253,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -258,6 +262,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -283,6 +288,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -298,7 +304,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -366,7 +372,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 | @@ -468,7 +474,7 @@ public class Example { ### 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 | @@ -572,7 +578,7 @@ public class Example { ### 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 | @@ -662,7 +668,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -739,7 +745,7 @@ public class Example { ### 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 | @@ -826,7 +832,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 index 2ea595b7b4..ad5d478f08 100644 --- a/kubernetes/docs/FlowcontrolApiserverV1Api.md +++ b/kubernetes/docs/FlowcontrolApiserverV1Api.md @@ -102,7 +102,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -187,7 +187,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -199,7 +199,7 @@ public class Example { # **deleteCollectionFlowSchema** -> V1Status deleteCollectionFlowSchema().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionFlowSchema().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -232,6 +232,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 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. @@ -248,6 +249,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -279,6 +281,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -300,7 +303,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -310,7 +313,7 @@ public class Example { # **deleteCollectionPriorityLevelConfiguration** -> V1Status deleteCollectionPriorityLevelConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionPriorityLevelConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -343,6 +346,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 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. @@ -359,6 +363,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -390,6 +395,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -411,7 +417,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -421,7 +427,7 @@ public class Example { # **deleteFlowSchema** -> V1Status deleteFlowSchema(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteFlowSchema(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -453,6 +459,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -461,6 +468,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -485,6 +493,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -500,7 +509,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -511,7 +520,7 @@ public class Example { # **deletePriorityLevelConfiguration** -> V1Status deletePriorityLevelConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deletePriorityLevelConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -543,6 +552,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -551,6 +561,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -575,6 +586,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -590,7 +602,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -658,7 +670,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 | @@ -760,7 +772,7 @@ public class Example { ### 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 | @@ -862,7 +874,7 @@ public class Example { ### 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 | @@ -950,7 +962,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1039,7 +1051,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1128,7 +1140,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1217,7 +1229,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1292,7 +1304,7 @@ public class Example { ### 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 | @@ -1366,7 +1378,7 @@ public class Example { ### 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 | @@ -1440,7 +1452,7 @@ public class Example { ### 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 | @@ -1514,7 +1526,7 @@ public class Example { ### 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 | @@ -1599,7 +1611,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1685,7 +1697,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1771,7 +1783,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1857,7 +1869,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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/FlowcontrolApiserverV1beta3Api.md b/kubernetes/docs/FlowcontrolApiserverV1beta3Api.md deleted file mode 100644 index cd7e6a3c33..0000000000 --- a/kubernetes/docs/FlowcontrolApiserverV1beta3Api.md +++ /dev/null @@ -1,1868 +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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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. 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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - 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. 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] | -| **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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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. 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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - 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. 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] | -| **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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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().execute(); - - - -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() - .execute(); - 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1beta3FlowSchemaList result = apiInstance.listFlowSchema() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1beta3PriorityLevelConfigurationList result = apiInstance.listPriorityLevelConfiguration() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1beta3FlowSchema result = apiInstance.readFlowSchema(name) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1beta3FlowSchema result = apiInstance.readFlowSchemaStatus(name) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1beta3PriorityLevelConfiguration result = apiInstance.readPriorityLevelConfiguration(name) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1beta3PriorityLevelConfiguration result = apiInstance.readPriorityLevelConfigurationStatus(name) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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/InternalApiserverV1alpha1Api.md b/kubernetes/docs/InternalApiserverV1alpha1Api.md index 47d72af82c..24e0e67eb7 100644 --- a/kubernetes/docs/InternalApiserverV1alpha1Api.md +++ b/kubernetes/docs/InternalApiserverV1alpha1Api.md @@ -92,7 +92,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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,7 +104,7 @@ public class Example { # **deleteCollectionStorageVersion** -> V1Status deleteCollectionStorageVersion().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionStorageVersion().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -137,6 +137,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 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. @@ -153,6 +154,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -184,6 +186,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -205,7 +208,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -215,7 +218,7 @@ public class Example { # **deleteStorageVersion** -> V1Status deleteStorageVersion(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteStorageVersion(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -247,6 +250,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -255,6 +259,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -279,6 +284,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -294,7 +300,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -362,7 +368,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 | @@ -464,7 +470,7 @@ public class Example { ### 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 | @@ -552,7 +558,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -641,7 +647,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -716,7 +722,7 @@ public class Example { ### 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 | @@ -790,7 +796,7 @@ public class Example { ### 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 | @@ -875,7 +881,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -961,7 +967,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 58e2e7ece5..581aab4144 100644 --- a/kubernetes/docs/NetworkingV1Api.md +++ b/kubernetes/docs/NetworkingV1Api.md @@ -4,35 +4,137 @@ 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -108,7 +210,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +297,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +384,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -292,13 +394,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteCollectionIngressClass** -> V1Status deleteCollectionIngressClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **createServiceCIDR** +> V1ServiceCIDR createServiceCIDR(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -delete collection of IngressClass +create a ServiceCIDR ### Example ```java @@ -322,40 +424,21 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + 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 _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 | + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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() + V1ServiceCIDR result = apiInstance.createServiceCIDR(body) .pretty(pretty) - ._continue(_continue) .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); 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()); @@ -369,24 +452,15 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **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] | -| **_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] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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 @@ -395,21 +469,23 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionIPAddress** +> V1Status deleteCollectionIPAddress().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of Ingress +delete collection of IPAddress ### Example ```java @@ -433,12 +509,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. 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. @@ -449,12 +525,13 @@ 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) + V1Status result = apiInstance.deleteCollectionIPAddress() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -467,7 +544,7 @@ public class Example { .execute(); 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()); @@ -481,12 +558,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. 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] | @@ -508,7 +585,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -516,13 +593,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionNamespacedNetworkPolicy** -> V1Status deleteCollectionNamespacedNetworkPolicy(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionIngressClass** +> V1Status deleteCollectionIngressClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of NetworkPolicy +delete collection of IngressClass ### Example ```java @@ -546,12 +623,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. 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. @@ -562,12 +639,13 @@ 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) + V1Status result = apiInstance.deleteCollectionIngressClass() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -580,7 +658,7 @@ public class Example { .execute(); 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()); @@ -594,12 +672,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. 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] | @@ -621,7 +699,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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,13 +707,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteIngressClass** -> V1Status deleteIngressClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionNamespacedIngress** +> V1Status deleteCollectionNamespacedIngress(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete an IngressClass +delete collection of Ingress ### Example ```java @@ -659,25 +737,43 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass + 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) + V1Status result = apiInstance.deleteCollectionNamespacedIngress(namespace) .pretty(pretty) + ._continue(_continue) .dryRun(dryRun) + .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); 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()); @@ -691,12 +787,21 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IngressClass | | +| **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 @@ -710,22 +815,21 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionNamespacedNetworkPolicy** +> V1Status deleteCollectionNamespacedNetworkPolicy(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete an Ingress +delete collection of NetworkPolicy ### Example ```java @@ -749,26 +853,43 @@ 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. 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) + V1Status result = apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace) .pretty(pretty) + ._continue(_continue) .dryRun(dryRun) + .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); 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()); @@ -782,13 +903,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. 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 @@ -802,22 +931,21 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionServiceCIDR** +> V1Status deleteCollectionServiceCIDR().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete a NetworkPolicy +delete collection of ServiceCIDR ### Example ```java @@ -841,26 +969,42 @@ 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. 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) + V1Status result = apiInstance.deleteCollectionServiceCIDR() .pretty(pretty) + ._continue(_continue) .dryRun(dryRun) + .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); 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()); @@ -874,13 +1018,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. 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 @@ -894,22 +1045,1453 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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** + +# **deleteIPAddress** +> V1Status deleteIPAddress(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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.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). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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 | - | + + +# **deleteIngressClass** +> V1Status deleteIngressClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete an 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). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.deleteIngressClass(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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 | - | + + +# **deleteNamespacedIngress** +> V1Status deleteNamespacedIngress(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete an 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). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.deleteNamespacedIngress(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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 | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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 | - | + + +# **deleteNamespacedNetworkPolicy** +> V1Status deleteNamespacedNetworkPolicy(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a 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 + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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.deleteNamespacedNetworkPolicy(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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 | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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.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 + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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().execute(); -get available resources +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() + .execute(); + 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 + +[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** +> V1IPAddressList listIPAddress().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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.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 { + V1IPAddressList result = apiInstance.listIPAddress() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + 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()); + 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 + +[**V1IPAddressList**](V1IPAddressList.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 | - | + + +# **listIngressClass** +> V1IngressClassList listIngressClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind 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 pretty = "pretty_example"; // String | If 'true', 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 { + V1IngressClassList result = apiInstance.listIngressClass() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified Ingress ### Example ```java @@ -933,12 +2515,25 @@ 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 + 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 { - V1APIResourceList result = apiInstance.getAPIResources() + V1Ingress result = apiInstance.patchNamespacedIngress(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#getAPIResources"); + 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()); @@ -949,11 +2544,21 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| 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 -[**V1APIResourceList**](V1APIResourceList.md) +[**V1Ingress**](V1Ingress.md) ### Authorization @@ -961,22 +2566,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 | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **listIngressClass** -> V1IngressClassList listIngressClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **patchNamespacedIngressStatus** +> V1Ingress patchNamespacedIngressStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -list or watch objects of kind IngressClass +partially update status of the specified Ingress ### Example ```java @@ -1000,34 +2606,25 @@ 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 + 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). - 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 dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 { - V1IngressClassList result = apiInstance.listIngressClass() + V1Ingress result = apiInstance.patchNamespacedIngressStatus(name, namespace, body) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listIngressClass"); + 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()); @@ -1041,21 +2638,109 @@ 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** | **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] | -| **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] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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 -[**V1IngressClassList**](V1IngressClassList.md) +[**V1NetworkPolicy**](V1NetworkPolicy.md) ### Authorization @@ -1063,22 +2748,23 @@ public class Example { ### 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 | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **listIngressForAllNamespaces** -> V1IngressList listIngressForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **patchServiceCIDR** +> V1ServiceCIDR patchServiceCIDR(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -list or watch objects of kind Ingress +partially update the specified ServiceCIDR ### Example ```java @@ -1102,34 +2788,24 @@ 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 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 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 dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 { - V1IngressList result = apiInstance.listIngressForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) + V1ServiceCIDR result = apiInstance.patchServiceCIDR(name, body) .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listIngressForAllNamespaces"); + 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()); @@ -1143,21 +2819,17 @@ 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] | +| **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] | -| **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] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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 -[**V1IngressList**](V1IngressList.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -1165,22 +2837,23 @@ public class Example { ### 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 | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **listNamespacedIngress** -> V1IngressList listNamespacedIngress(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **patchServiceCIDRStatus** +> V1ServiceCIDR patchServiceCIDRStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -list or watch objects of kind Ingress +partially update status of the specified ServiceCIDR ### Example ```java @@ -1204,35 +2877,24 @@ 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 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). - 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 dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 { - V1IngressList result = apiInstance.listNamespacedIngress(namespace) + V1ServiceCIDR result = apiInstance.patchServiceCIDRStatus(name, body) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNamespacedIngress"); + 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()); @@ -1246,22 +2908,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **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] | -| **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] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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 -[**V1IngressList**](V1IngressList.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -1269,22 +2926,23 @@ public class Example { ### 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 | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **listNamespacedNetworkPolicy** -> V1NetworkPolicyList listNamespacedNetworkPolicy(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **readIPAddress** +> V1IPAddress readIPAddress(name).pretty(pretty).execute(); -list or watch objects of kind NetworkPolicy +read the specified IPAddress ### Example ```java @@ -1308,35 +2966,15 @@ 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 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). - 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) + V1IPAddress result = apiInstance.readIPAddress(name) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNamespacedNetworkPolicy"); + 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()); @@ -1350,22 +2988,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **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] | -| **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) +[**V1IPAddress**](V1IPAddress.md) ### Authorization @@ -1374,7 +3002,7 @@ public class Example { ### 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 | @@ -1382,13 +3010,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listNetworkPolicyForAllNamespaces** -> V1NetworkPolicyList listNetworkPolicyForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **readIngressClass** +> V1IngressClass readIngressClass(name).pretty(pretty).execute(); -list or watch objects of kind NetworkPolicy +read the specified IngressClass ### Example ```java @@ -1412,34 +3040,15 @@ 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 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 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(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) + V1IngressClass result = apiInstance.readIngressClass(name) .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNetworkPolicyForAllNamespaces"); + 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()); @@ -1453,21 +3062,12 @@ 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] | +| **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] | -| **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) +[**V1IngressClass**](V1IngressClass.md) ### Authorization @@ -1476,7 +3076,7 @@ public class Example { ### 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 | @@ -1484,13 +3084,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchIngressClass** -> V1IngressClass patchIngressClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readNamespacedIngress** +> V1Ingress readNamespacedIngress(name, namespace).pretty(pretty).execute(); -partially update the specified IngressClass +read the specified Ingress ### Example ```java @@ -1514,24 +3114,16 @@ 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 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 - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + V1Ingress result = apiInstance.readNamespacedIngress(name, namespace) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); 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()); @@ -1545,17 +3137,13 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IngressClass | | -| **body** | **V1Patch**| | | +| **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] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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) +[**V1Ingress**](V1Ingress.md) ### Authorization @@ -1563,23 +3151,22 @@ public class Example { ### 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readNamespacedIngressStatus** +> V1Ingress readNamespacedIngressStatus(name, namespace).pretty(pretty).execute(); -partially update the specified Ingress +read status of the specified Ingress ### Example ```java @@ -1605,23 +3192,14 @@ 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + V1Ingress result = apiInstance.readNamespacedIngressStatus(name, namespace) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); 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()); @@ -1637,12 +3215,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **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 @@ -1654,23 +3227,22 @@ public class Example { ### 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readNamespacedNetworkPolicy** +> V1NetworkPolicy readNamespacedNetworkPolicy(name, namespace).pretty(pretty).execute(); -partially update status of the specified Ingress +read the specified NetworkPolicy ### Example ```java @@ -1694,25 +3266,16 @@ 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + V1NetworkPolicy result = apiInstance.readNamespacedNetworkPolicy(name, namespace) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); 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()); @@ -1726,18 +3289,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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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) +[**V1NetworkPolicy**](V1NetworkPolicy.md) ### Authorization @@ -1745,23 +3303,22 @@ public class Example { ### 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readServiceCIDR** +> V1ServiceCIDR readServiceCIDR(name).pretty(pretty).execute(); -partially update the specified NetworkPolicy +read the specified ServiceCIDR ### Example ```java @@ -1785,25 +3342,15 @@ 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 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 - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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) + V1ServiceCIDR result = apiInstance.readServiceCIDR(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); 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()); @@ -1817,18 +3364,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**| | | +| **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] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -1836,23 +3377,22 @@ public class Example { ### 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(pretty).execute(); + +# **readServiceCIDRStatus** +> V1ServiceCIDR readServiceCIDRStatus(name).pretty(pretty).execute(); -read the specified IngressClass +read status of the specified ServiceCIDR ### Example ```java @@ -1876,15 +3416,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); - String name = "name_example"; // String | name of the IngressClass + 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) + V1ServiceCIDR result = apiInstance.readServiceCIDRStatus(name) .pretty(pretty) .execute(); 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()); @@ -1898,12 +3438,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IngressClass | | +| **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 @@ -1912,7 +3452,7 @@ public class Example { ### 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 | @@ -1920,13 +3460,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **readNamespacedIngress** -> V1Ingress readNamespacedIngress(name, namespace).pretty(pretty).execute(); + +# **replaceIPAddress** +> V1IPAddress replaceIPAddress(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read the specified Ingress +replace the specified IPAddress ### Example ```java @@ -1950,16 +3490,22 @@ 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 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) + V1IPAddress result = apiInstance.replaceIPAddress(name, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); 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()); @@ -1973,13 +3519,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 | | +| **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 @@ -1987,22 +3536,23 @@ public class Example { ### 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(pretty).execute(); + +# **replaceIngressClass** +> V1IngressClass replaceIngressClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read status of the specified Ingress +replace the specified IngressClass ### Example ```java @@ -2026,16 +3576,22 @@ 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 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) + V1IngressClass result = apiInstance.replaceIngressClass(name, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); 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()); @@ -2049,13 +3605,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 | | +| **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 @@ -2063,22 +3622,23 @@ public class Example { ### 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(pretty).execute(); + +# **replaceNamespacedIngress** +> V1Ingress replaceNamespacedIngress(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read the specified NetworkPolicy +replace the specified Ingress ### Example ```java @@ -2102,16 +3662,23 @@ 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 + 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) + V1Ingress result = apiInstance.replaceNamespacedIngress(name, namespace, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); 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()); @@ -2125,13 +3692,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 | | +| **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 @@ -2139,22 +3710,23 @@ public class Example { ### 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceNamespacedIngressStatus** +> V1Ingress replaceNamespacedIngressStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified IngressClass +replace status of the specified Ingress ### Example ```java @@ -2178,14 +3750,15 @@ 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 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) + V1Ingress result = apiInstance.replaceNamespacedIngressStatus(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2193,7 +3766,7 @@ public class Example { .execute(); 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()); @@ -2207,8 +3780,9 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the IngressClass | | -| **body** | [**V1IngressClass**](V1IngressClass.md)| | | +| **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] | @@ -2216,7 +3790,7 @@ public class Example { ### Return type -[**V1IngressClass**](V1IngressClass.md) +[**V1Ingress**](V1Ingress.md) ### Authorization @@ -2225,7 +3799,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2234,13 +3808,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceNamespacedIngress** -> V1Ingress replaceNamespacedIngress(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceNamespacedNetworkPolicy** +> V1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified Ingress +replace the specified NetworkPolicy ### Example ```java @@ -2264,15 +3838,15 @@ 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 | + 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) + V1NetworkPolicy result = apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2280,7 +3854,7 @@ public class Example { .execute(); 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()); @@ -2294,9 +3868,9 @@ 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)| | | +| **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] | @@ -2304,7 +3878,7 @@ public class Example { ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1NetworkPolicy**](V1NetworkPolicy.md) ### Authorization @@ -2313,7 +3887,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2322,13 +3896,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceNamespacedIngressStatus** -> V1Ingress replaceNamespacedIngressStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceServiceCIDR** +> V1ServiceCIDR replaceServiceCIDR(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace status of the specified Ingress +replace the specified ServiceCIDR ### Example ```java @@ -2352,15 +3926,14 @@ 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 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) + V1ServiceCIDR result = apiInstance.replaceServiceCIDR(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2368,7 +3941,7 @@ public class Example { .execute(); 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()); @@ -2382,9 +3955,8 @@ 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)| | | +| **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] | @@ -2392,7 +3964,7 @@ public class Example { ### Return type -[**V1Ingress**](V1Ingress.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -2401,7 +3973,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2410,13 +3982,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceNamespacedNetworkPolicy** -> V1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceServiceCIDRStatus** +> V1ServiceCIDR replaceServiceCIDRStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified NetworkPolicy +replace status of the specified ServiceCIDR ### Example ```java @@ -2440,15 +4012,14 @@ 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 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) + V1ServiceCIDR result = apiInstance.replaceServiceCIDRStatus(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2456,7 +4027,7 @@ public class Example { .execute(); 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()); @@ -2470,9 +4041,8 @@ 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)| | | +| **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] | @@ -2480,7 +4050,7 @@ public class Example { ### Return type -[**V1NetworkPolicy**](V1NetworkPolicy.md) +[**V1ServiceCIDR**](V1ServiceCIDR.md) ### Authorization @@ -2489,7 +4059,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 a25f7bdadc..0000000000 --- a/kubernetes/docs/NetworkingV1alpha1Api.md +++ /dev/null @@ -1,1616 +0,0 @@ -# NetworkingV1alpha1Api - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createIPAddress**](NetworkingV1alpha1Api.md#createIPAddress) | **POST** /apis/networking.k8s.io/v1alpha1/ipaddresses | | -| [**createServiceCIDR**](NetworkingV1alpha1Api.md#createServiceCIDR) | **POST** /apis/networking.k8s.io/v1alpha1/servicecidrs | | -| [**deleteCollectionIPAddress**](NetworkingV1alpha1Api.md#deleteCollectionIPAddress) | **DELETE** /apis/networking.k8s.io/v1alpha1/ipaddresses | | -| [**deleteCollectionServiceCIDR**](NetworkingV1alpha1Api.md#deleteCollectionServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/servicecidrs | | -| [**deleteIPAddress**](NetworkingV1alpha1Api.md#deleteIPAddress) | **DELETE** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | | -| [**deleteServiceCIDR**](NetworkingV1alpha1Api.md#deleteServiceCIDR) | **DELETE** /apis/networking.k8s.io/v1alpha1/servicecidrs/{name} | | -| [**getAPIResources**](NetworkingV1alpha1Api.md#getAPIResources) | **GET** /apis/networking.k8s.io/v1alpha1/ | | -| [**listIPAddress**](NetworkingV1alpha1Api.md#listIPAddress) | **GET** /apis/networking.k8s.io/v1alpha1/ipaddresses | | -| [**listServiceCIDR**](NetworkingV1alpha1Api.md#listServiceCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/servicecidrs | | -| [**patchIPAddress**](NetworkingV1alpha1Api.md#patchIPAddress) | **PATCH** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | | -| [**patchServiceCIDR**](NetworkingV1alpha1Api.md#patchServiceCIDR) | **PATCH** /apis/networking.k8s.io/v1alpha1/servicecidrs/{name} | | -| [**patchServiceCIDRStatus**](NetworkingV1alpha1Api.md#patchServiceCIDRStatus) | **PATCH** /apis/networking.k8s.io/v1alpha1/servicecidrs/{name}/status | | -| [**readIPAddress**](NetworkingV1alpha1Api.md#readIPAddress) | **GET** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | | -| [**readServiceCIDR**](NetworkingV1alpha1Api.md#readServiceCIDR) | **GET** /apis/networking.k8s.io/v1alpha1/servicecidrs/{name} | | -| [**readServiceCIDRStatus**](NetworkingV1alpha1Api.md#readServiceCIDRStatus) | **GET** /apis/networking.k8s.io/v1alpha1/servicecidrs/{name}/status | | -| [**replaceIPAddress**](NetworkingV1alpha1Api.md#replaceIPAddress) | **PUT** /apis/networking.k8s.io/v1alpha1/ipaddresses/{name} | | -| [**replaceServiceCIDR**](NetworkingV1alpha1Api.md#replaceServiceCIDR) | **PUT** /apis/networking.k8s.io/v1alpha1/servicecidrs/{name} | | -| [**replaceServiceCIDRStatus**](NetworkingV1alpha1Api.md#replaceServiceCIDRStatus) | **PUT** /apis/networking.k8s.io/v1alpha1/servicecidrs/{name}/status | | - - - -# **createIPAddress** -> V1alpha1IPAddress createIPAddress(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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 | - | - - -# **createServiceCIDR** -> V1alpha1ServiceCIDR createServiceCIDR(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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.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); - V1alpha1ServiceCIDR body = new V1alpha1ServiceCIDR(); // V1alpha1ServiceCIDR | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1alpha1ServiceCIDR result = apiInstance.createServiceCIDR(body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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** | [**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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 - -[**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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 | - | - - -# **deleteCollectionIPAddress** -> V1Status deleteCollectionIPAddress().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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. 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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - 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. 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] | -| **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 | - | - - -# **deleteCollectionServiceCIDR** -> V1Status deleteCollectionServiceCIDR().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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.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. 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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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] | -| **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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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 | - | - - -# **deleteServiceCIDR** -> V1Status deleteServiceCIDR(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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.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 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 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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] | -| **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().execute(); - - - -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() - .execute(); - 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 | - | - - -# **listIPAddress** -> V1alpha1IPAddressList listIPAddress().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1alpha1IPAddressList result = apiInstance.listIPAddress() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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 | - | - - -# **listServiceCIDR** -> V1alpha1ServiceCIDRList listServiceCIDR().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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.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. 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 { - V1alpha1ServiceCIDRList result = apiInstance.listServiceCIDR() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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 - -[**V1alpha1ServiceCIDRList**](V1alpha1ServiceCIDRList.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 | - | - - -# **patchIPAddress** -> V1alpha1IPAddress patchIPAddress(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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 | - | - - -# **patchServiceCIDR** -> V1alpha1ServiceCIDR patchServiceCIDR(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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.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 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 { - V1alpha1ServiceCIDR result = apiInstance.patchServiceCIDR(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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 - -[**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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 | - | - - -# **patchServiceCIDRStatus** -> V1alpha1ServiceCIDR patchServiceCIDRStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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.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 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 { - V1alpha1ServiceCIDR result = apiInstance.patchServiceCIDRStatus(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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 - -[**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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 | - | - - -# **readIPAddress** -> V1alpha1IPAddress readIPAddress(name).pretty(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha1IPAddress result = apiInstance.readIPAddress(name) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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 | - | - - -# **readServiceCIDR** -> V1alpha1ServiceCIDR readServiceCIDR(name).pretty(pretty).execute(); - - - -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.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 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 { - V1alpha1ServiceCIDR result = apiInstance.readServiceCIDR(name) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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 - -[**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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 | - | - - -# **readServiceCIDRStatus** -> V1alpha1ServiceCIDR readServiceCIDRStatus(name).pretty(pretty).execute(); - - - -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.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 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 { - V1alpha1ServiceCIDR result = apiInstance.readServiceCIDRStatus(name) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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 - -[**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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 | - | - - -# **replaceIPAddress** -> V1alpha1IPAddress replaceIPAddress(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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 | - | - - -# **replaceServiceCIDR** -> V1alpha1ServiceCIDR replaceServiceCIDR(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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.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 ServiceCIDR - V1alpha1ServiceCIDR body = new V1alpha1ServiceCIDR(); // V1alpha1ServiceCIDR | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1alpha1ServiceCIDR result = apiInstance.replaceServiceCIDR(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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** | [**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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 - -[**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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 | - | - - -# **replaceServiceCIDRStatus** -> V1alpha1ServiceCIDR replaceServiceCIDRStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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.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 ServiceCIDR - V1alpha1ServiceCIDR body = new V1alpha1ServiceCIDR(); // V1alpha1ServiceCIDR | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1alpha1ServiceCIDR result = apiInstance.replaceServiceCIDRStatus(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1alpha1Api#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** | [**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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 - -[**V1alpha1ServiceCIDR**](V1alpha1ServiceCIDR.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..1a0f836007 --- /dev/null +++ b/kubernetes/docs/NetworkingV1beta1Api.md @@ -0,0 +1,1628 @@ +# 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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().execute(); + + + +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() + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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 4e1c3361b1..0a50a15be6 100644 --- a/kubernetes/docs/NodeV1Api.md +++ b/kubernetes/docs/NodeV1Api.md @@ -89,7 +89,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -101,7 +101,7 @@ public class Example { # **deleteCollectionRuntimeClass** -> V1Status deleteCollectionRuntimeClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionRuntimeClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -134,6 +134,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 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. @@ -150,6 +151,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -181,6 +183,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -202,7 +205,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -212,7 +215,7 @@ public class Example { # **deleteRuntimeClass** -> V1Status deleteRuntimeClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteRuntimeClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -244,6 +247,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -252,6 +256,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -276,6 +281,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -291,7 +297,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -359,7 +365,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 | @@ -461,7 +467,7 @@ public class Example { ### 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 | @@ -549,7 +555,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -624,7 +630,7 @@ public class Example { ### 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 | @@ -709,7 +715,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 16c815dce1..fcc2583d7d 100644 --- a/kubernetes/docs/PolicyV1Api.md +++ b/kubernetes/docs/PolicyV1Api.md @@ -95,7 +95,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -107,7 +107,7 @@ public class Example { # **deleteCollectionNamespacedPodDisruptionBudget** -> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -141,6 +141,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 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. @@ -157,6 +158,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -189,6 +191,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -210,7 +213,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -220,7 +223,7 @@ public class Example { # **deleteNamespacedPodDisruptionBudget** -> V1Status deleteNamespacedPodDisruptionBudget(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedPodDisruptionBudget(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -253,6 +256,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -261,6 +265,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -286,6 +291,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -301,7 +307,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +375,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 | @@ -473,7 +479,7 @@ public class Example { ### 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 | @@ -575,7 +581,7 @@ public class Example { ### 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 | @@ -665,7 +671,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -756,7 +762,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -833,7 +839,7 @@ public class Example { ### 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 | @@ -909,7 +915,7 @@ public class Example { ### 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 | @@ -996,7 +1002,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1084,7 +1090,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 f3238b8d5f..afd8e06943 100644 --- a/kubernetes/docs/RbacAuthorizationV1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1Api.md @@ -112,7 +112,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +197,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -284,7 +284,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -371,7 +371,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -383,7 +383,7 @@ public class Example { # **deleteClusterRole** -> V1Status deleteClusterRole(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteClusterRole(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -415,6 +415,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -423,6 +424,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -447,6 +449,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -462,7 +465,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -473,7 +476,7 @@ public class Example { # **deleteClusterRoleBinding** -> V1Status deleteClusterRoleBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteClusterRoleBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -505,6 +508,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -513,6 +517,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -537,6 +542,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -552,7 +558,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -563,7 +569,7 @@ public class Example { # **deleteCollectionClusterRole** -> V1Status deleteCollectionClusterRole().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionClusterRole().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -596,6 +602,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 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. @@ -612,6 +619,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -643,6 +651,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -664,7 +673,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -674,7 +683,7 @@ public class Example { # **deleteCollectionClusterRoleBinding** -> V1Status deleteCollectionClusterRoleBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionClusterRoleBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -707,6 +716,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 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. @@ -723,6 +733,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -754,6 +765,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -775,7 +787,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -785,7 +797,7 @@ public class Example { # **deleteCollectionNamespacedRole** -> V1Status deleteCollectionNamespacedRole(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedRole(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -819,6 +831,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 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. @@ -835,6 +848,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -867,6 +881,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -888,7 +903,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -898,7 +913,7 @@ public class Example { # **deleteCollectionNamespacedRoleBinding** -> V1Status deleteCollectionNamespacedRoleBinding(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedRoleBinding(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -932,6 +947,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 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. @@ -948,6 +964,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -980,6 +997,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1001,7 +1019,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1011,7 +1029,7 @@ public class Example { # **deleteNamespacedRole** -> V1Status deleteNamespacedRole(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedRole(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1044,6 +1062,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1052,6 +1071,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1077,6 +1097,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1092,7 +1113,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1103,7 +1124,7 @@ public class Example { # **deleteNamespacedRoleBinding** -> V1Status deleteNamespacedRoleBinding(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedRoleBinding(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1136,6 +1157,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1144,6 +1166,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1169,6 +1192,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1184,7 +1208,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1252,7 +1276,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 | @@ -1354,7 +1378,7 @@ public class Example { ### 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 | @@ -1456,7 +1480,7 @@ public class Example { ### 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 | @@ -1560,7 +1584,7 @@ public class Example { ### 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 | @@ -1664,7 +1688,7 @@ public class Example { ### 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 | @@ -1766,7 +1790,7 @@ public class Example { ### 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 | @@ -1868,7 +1892,7 @@ public class Example { ### 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 | @@ -1956,7 +1980,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2045,7 +2069,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2136,7 +2160,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2227,7 +2251,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2302,7 +2326,7 @@ public class Example { ### 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 | @@ -2376,7 +2400,7 @@ public class Example { ### 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 | @@ -2452,7 +2476,7 @@ public class Example { ### 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 | @@ -2528,7 +2552,7 @@ public class Example { ### 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 | @@ -2613,7 +2637,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2699,7 +2723,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2787,7 +2811,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2875,7 +2899,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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/ResourceV1Api.md b/kubernetes/docs/ResourceV1Api.md new file mode 100644 index 0000000000..fc6c55f177 --- /dev/null +++ b/kubernetes/docs/ResourceV1Api.md @@ -0,0 +1,3168 @@ +# ResourceV1Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createDeviceClass**](ResourceV1Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1/deviceclasses | | +| [**createNamespacedResourceClaim**](ResourceV1Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | | +| [**createNamespacedResourceClaimTemplate**](ResourceV1Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | | +| [**createResourceSlice**](ResourceV1Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1/resourceslices | | +| [**deleteCollectionDeviceClass**](ResourceV1Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses | | +| [**deleteCollectionNamespacedResourceClaim**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | | +| [**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | | +| [**deleteCollectionResourceSlice**](ResourceV1Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices | | +| [**deleteDeviceClass**](ResourceV1Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1/deviceclasses/{name} | | +| [**deleteNamespacedResourceClaim**](ResourceV1Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | | +| [**deleteNamespacedResourceClaimTemplate**](ResourceV1Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**deleteResourceSlice**](ResourceV1Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1/resourceslices/{name} | | +| [**getAPIResources**](ResourceV1Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1/ | | +| [**listDeviceClass**](ResourceV1Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses | | +| [**listNamespacedResourceClaim**](ResourceV1Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims | | +| [**listNamespacedResourceClaimTemplate**](ResourceV1Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates | | +| [**listResourceClaimForAllNamespaces**](ResourceV1Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaims | | +| [**listResourceClaimTemplateForAllNamespaces**](ResourceV1Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1/resourceclaimtemplates | | +| [**listResourceSlice**](ResourceV1Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices | | +| [**patchDeviceClass**](ResourceV1Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1/deviceclasses/{name} | | +| [**patchNamespacedResourceClaim**](ResourceV1Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | | +| [**patchNamespacedResourceClaimStatus**](ResourceV1Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | | +| [**patchNamespacedResourceClaimTemplate**](ResourceV1Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**patchResourceSlice**](ResourceV1Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1/resourceslices/{name} | | +| [**readDeviceClass**](ResourceV1Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1/deviceclasses/{name} | | +| [**readNamespacedResourceClaim**](ResourceV1Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | | +| [**readNamespacedResourceClaimStatus**](ResourceV1Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | | +| [**readNamespacedResourceClaimTemplate**](ResourceV1Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**readResourceSlice**](ResourceV1Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1/resourceslices/{name} | | +| [**replaceDeviceClass**](ResourceV1Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1/deviceclasses/{name} | | +| [**replaceNamespacedResourceClaim**](ResourceV1Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name} | | +| [**replaceNamespacedResourceClaimStatus**](ResourceV1Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status | | +| [**replaceNamespacedResourceClaimTemplate**](ResourceV1Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name} | | +| [**replaceResourceSlice**](ResourceV1Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1/resourceslices/{name} | | + + + +# **createDeviceClass** +> V1DeviceClass createDeviceClass(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + V1DeviceClass body = new V1DeviceClass(); // V1DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1DeviceClass result = apiInstance.createDeviceClass(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** | [**V1DeviceClass**](V1DeviceClass.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 + +[**V1DeviceClass**](V1DeviceClass.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** +> ResourceV1ResourceClaim createNamespacedResourceClaim(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ResourceV1ResourceClaim body = new ResourceV1ResourceClaim(); // ResourceV1ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + ResourceV1ResourceClaim result = apiInstance.createNamespacedResourceClaim(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** | [**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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** +> V1ResourceClaimTemplate createNamespacedResourceClaimTemplate(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ResourceClaimTemplate body = new V1ResourceClaimTemplate(); // V1ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1ResourceClaimTemplate result = apiInstance.createNamespacedResourceClaimTemplate(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** | [**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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 + +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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** +> V1ResourceSlice createResourceSlice(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + V1ResourceSlice body = new V1ResourceSlice(); // V1ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1ResourceSlice result = apiInstance.createResourceSlice(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** | [**V1ResourceSlice**](V1ResourceSlice.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 + +[**V1ResourceSlice**](V1ResourceSlice.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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** +> V1DeviceClass deleteDeviceClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1DeviceClass result = apiInstance.deleteDeviceClass(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1DeviceClass**](V1DeviceClass.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** +> ResourceV1ResourceClaim deleteNamespacedResourceClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + ResourceV1ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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** +> V1ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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** +> V1ResourceSlice deleteResourceSlice(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceSlice result = apiInstance.deleteResourceSlice(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceSlice**](V1ResourceSlice.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().execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** +> V1DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1DeviceClassList result = apiInstance.listDeviceClass() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1DeviceClassList**](V1DeviceClassList.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** +> V1ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceClaimList**](V1ResourceClaimList.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** +> V1ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceClaimTemplateList**](V1ResourceClaimTemplateList.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** +> V1ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceClaimList**](V1ResourceClaimList.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** +> V1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceClaimTemplateList**](V1ResourceClaimTemplateList.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** +> V1ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceSliceList result = apiInstance.listResourceSlice() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceSliceList**](V1ResourceSliceList.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** +> V1DeviceClass patchDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1DeviceClass result = apiInstance.patchDeviceClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1DeviceClass**](V1DeviceClass.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** +> ResourceV1ResourceClaim patchNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + ResourceV1ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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** +> ResourceV1ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + ResourceV1ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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** +> V1ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceClaimTemplate result = apiInstance.patchNamespacedResourceClaimTemplate(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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** +> V1ResourceSlice patchResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceSlice result = apiInstance.patchResourceSlice(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceSlice**](V1ResourceSlice.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** +> V1DeviceClass readDeviceClass(name).pretty(pretty).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1DeviceClass result = apiInstance.readDeviceClass(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1DeviceClass**](V1DeviceClass.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** +> ResourceV1ResourceClaim readNamespacedResourceClaim(name, namespace).pretty(pretty).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + ResourceV1ResourceClaim result = apiInstance.readNamespacedResourceClaim(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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** +> ResourceV1ResourceClaim readNamespacedResourceClaimStatus(name, namespace).pretty(pretty).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + ResourceV1ResourceClaim result = apiInstance.readNamespacedResourceClaimStatus(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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** +> V1ResourceClaimTemplate readNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceClaimTemplate result = apiInstance.readNamespacedResourceClaimTemplate(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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** +> V1ResourceSlice readResourceSlice(name).pretty(pretty).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 { + V1ResourceSlice result = apiInstance.readResourceSlice(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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 + +[**V1ResourceSlice**](V1ResourceSlice.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** +> V1DeviceClass replaceDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1DeviceClass body = new V1DeviceClass(); // V1DeviceClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1DeviceClass result = apiInstance.replaceDeviceClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** | [**V1DeviceClass**](V1DeviceClass.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 + +[**V1DeviceClass**](V1DeviceClass.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** +> ResourceV1ResourceClaim replaceNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 + ResourceV1ResourceClaim body = new ResourceV1ResourceClaim(); // ResourceV1ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + ResourceV1ResourceClaim result = apiInstance.replaceNamespacedResourceClaim(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** | [**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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** +> ResourceV1ResourceClaim replaceNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 + ResourceV1ResourceClaim body = new ResourceV1ResourceClaim(); // ResourceV1ResourceClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + ResourceV1ResourceClaim result = apiInstance.replaceNamespacedResourceClaimStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** | [**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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 + +[**ResourceV1ResourceClaim**](ResourceV1ResourceClaim.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** +> V1ResourceClaimTemplate replaceNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(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 + V1ResourceClaimTemplate body = new V1ResourceClaimTemplate(); // V1ResourceClaimTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1ResourceClaimTemplate result = apiInstance.replaceNamespacedResourceClaimTemplate(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** | [**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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 + +[**V1ResourceClaimTemplate**](V1ResourceClaimTemplate.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** +> V1ResourceSlice replaceResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.ResourceV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1Api apiInstance = new ResourceV1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice + V1ResourceSlice body = new V1ResourceSlice(); // V1ResourceSlice | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1ResourceSlice result = apiInstance.replaceResourceSlice(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1Api#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** | [**V1ResourceSlice**](V1ResourceSlice.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 + +[**V1ResourceSlice**](V1ResourceSlice.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/ResourceV1ResourceClaim.md b/kubernetes/docs/ResourceV1ResourceClaim.md new file mode 100644 index 0000000000..d2516991af --- /dev/null +++ b/kubernetes/docs/ResourceV1ResourceClaim.md @@ -0,0 +1,22 @@ + + +# ResourceV1ResourceClaim + +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** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | | +|**status** | [**V1ResourceClaimStatus**](V1ResourceClaimStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/ResourceV1alpha2Api.md b/kubernetes/docs/ResourceV1alpha2Api.md deleted file mode 100644 index e7daa6d685..0000000000 --- a/kubernetes/docs/ResourceV1alpha2Api.md +++ /dev/null @@ -1,5685 +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 | | -| [**createNamespacedResourceClaimParameters**](ResourceV1alpha2Api.md#createNamespacedResourceClaimParameters) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimparameters | | -| [**createNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | | -| [**createNamespacedResourceClassParameters**](ResourceV1alpha2Api.md#createNamespacedResourceClassParameters) | **POST** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclassparameters | | -| [**createResourceClass**](ResourceV1alpha2Api.md#createResourceClass) | **POST** /apis/resource.k8s.io/v1alpha2/resourceclasses | | -| [**createResourceSlice**](ResourceV1alpha2Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1alpha2/resourceslices | | -| [**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 | | -| [**deleteCollectionNamespacedResourceClaimParameters**](ResourceV1alpha2Api.md#deleteCollectionNamespacedResourceClaimParameters) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimparameters | | -| [**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | | -| [**deleteCollectionNamespacedResourceClassParameters**](ResourceV1alpha2Api.md#deleteCollectionNamespacedResourceClassParameters) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclassparameters | | -| [**deleteCollectionResourceClass**](ResourceV1alpha2Api.md#deleteCollectionResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceclasses | | -| [**deleteCollectionResourceSlice**](ResourceV1alpha2Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceslices | | -| [**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} | | -| [**deleteNamespacedResourceClaimParameters**](ResourceV1alpha2Api.md#deleteNamespacedResourceClaimParameters) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimparameters/{name} | | -| [**deleteNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates/{name} | | -| [**deleteNamespacedResourceClassParameters**](ResourceV1alpha2Api.md#deleteNamespacedResourceClassParameters) | **DELETE** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclassparameters/{name} | | -| [**deleteResourceClass**](ResourceV1alpha2Api.md#deleteResourceClass) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | | -| [**deleteResourceSlice**](ResourceV1alpha2Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1alpha2/resourceslices/{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 | | -| [**listNamespacedResourceClaimParameters**](ResourceV1alpha2Api.md#listNamespacedResourceClaimParameters) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimparameters | | -| [**listNamespacedResourceClaimTemplate**](ResourceV1alpha2Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimtemplates | | -| [**listNamespacedResourceClassParameters**](ResourceV1alpha2Api.md#listNamespacedResourceClassParameters) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclassparameters | | -| [**listPodSchedulingContextForAllNamespaces**](ResourceV1alpha2Api.md#listPodSchedulingContextForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/podschedulingcontexts | | -| [**listResourceClaimForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclaims | | -| [**listResourceClaimParametersForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClaimParametersForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclaimparameters | | -| [**listResourceClaimTemplateForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclaimtemplates | | -| [**listResourceClass**](ResourceV1alpha2Api.md#listResourceClass) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclasses | | -| [**listResourceClassParametersForAllNamespaces**](ResourceV1alpha2Api.md#listResourceClassParametersForAllNamespaces) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclassparameters | | -| [**listResourceSlice**](ResourceV1alpha2Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha2/resourceslices | | -| [**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} | | -| [**patchNamespacedResourceClaimParameters**](ResourceV1alpha2Api.md#patchNamespacedResourceClaimParameters) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimparameters/{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} | | -| [**patchNamespacedResourceClassParameters**](ResourceV1alpha2Api.md#patchNamespacedResourceClassParameters) | **PATCH** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclassparameters/{name} | | -| [**patchResourceClass**](ResourceV1alpha2Api.md#patchResourceClass) | **PATCH** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | | -| [**patchResourceSlice**](ResourceV1alpha2Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1alpha2/resourceslices/{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} | | -| [**readNamespacedResourceClaimParameters**](ResourceV1alpha2Api.md#readNamespacedResourceClaimParameters) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimparameters/{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} | | -| [**readNamespacedResourceClassParameters**](ResourceV1alpha2Api.md#readNamespacedResourceClassParameters) | **GET** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclassparameters/{name} | | -| [**readResourceClass**](ResourceV1alpha2Api.md#readResourceClass) | **GET** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | | -| [**readResourceSlice**](ResourceV1alpha2Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1alpha2/resourceslices/{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} | | -| [**replaceNamespacedResourceClaimParameters**](ResourceV1alpha2Api.md#replaceNamespacedResourceClaimParameters) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclaimparameters/{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} | | -| [**replaceNamespacedResourceClassParameters**](ResourceV1alpha2Api.md#replaceNamespacedResourceClassParameters) | **PUT** /apis/resource.k8s.io/v1alpha2/namespaces/{namespace}/resourceclassparameters/{name} | | -| [**replaceResourceClass**](ResourceV1alpha2Api.md#replaceResourceClass) | **PUT** /apis/resource.k8s.io/v1alpha2/resourceclasses/{name} | | -| [**replaceResourceSlice**](ResourceV1alpha2Api.md#replaceResourceSlice) | **PUT** /apis/resource.k8s.io/v1alpha2/resourceslices/{name} | | - - - -# **createNamespacedPodSchedulingContext** -> V1alpha2PodSchedulingContext createNamespacedPodSchedulingContext(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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 | - | - - -# **createNamespacedResourceClaimParameters** -> V1alpha2ResourceClaimParameters createNamespacedResourceClaimParameters(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create ResourceClaimParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 - V1alpha2ResourceClaimParameters body = new V1alpha2ResourceClaimParameters(); // V1alpha2ResourceClaimParameters | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1alpha2ResourceClaimParameters result = apiInstance.createNamespacedResourceClaimParameters(namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#createNamespacedResourceClaimParameters"); - System.err.println("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** | [**V1alpha2ResourceClaimParameters**](V1alpha2ResourceClaimParameters.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 - -[**V1alpha2ResourceClaimParameters**](V1alpha2ResourceClaimParameters.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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 | - | - - -# **createNamespacedResourceClassParameters** -> V1alpha2ResourceClassParameters createNamespacedResourceClassParameters(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create ResourceClassParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 - V1alpha2ResourceClassParameters body = new V1alpha2ResourceClassParameters(); // V1alpha2ResourceClassParameters | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1alpha2ResourceClassParameters result = apiInstance.createNamespacedResourceClassParameters(namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#createNamespacedResourceClassParameters"); - System.err.println("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** | [**V1alpha2ResourceClassParameters**](V1alpha2ResourceClassParameters.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 - -[**V1alpha2ResourceClassParameters**](V1alpha2ResourceClassParameters.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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 | - | - - -# **createResourceSlice** -> V1alpha2ResourceSlice createResourceSlice(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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.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); - V1alpha2ResourceSlice body = new V1alpha2ResourceSlice(); // V1alpha2ResourceSlice | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1alpha2ResourceSlice result = apiInstance.createResourceSlice(body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#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** | [**V1alpha2ResourceSlice**](V1alpha2ResourceSlice.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 - -[**V1alpha2ResourceSlice**](V1alpha2ResourceSlice.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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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. 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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - 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. 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] | -| **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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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. 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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - 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. 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] | -| **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 | - | - - -# **deleteCollectionNamespacedResourceClaimParameters** -> V1Status deleteCollectionNamespacedResourceClaimParameters(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -delete collection of ResourceClaimParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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. 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. - 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.deleteCollectionNamespacedResourceClaimParameters(namespace) - .pretty(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteCollectionNamespacedResourceClaimParameters"); - System.err.println("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] | -| **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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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. 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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - 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. 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] | -| **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 | - | - - -# **deleteCollectionNamespacedResourceClassParameters** -> V1Status deleteCollectionNamespacedResourceClassParameters(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -delete collection of ResourceClassParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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. 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. - 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.deleteCollectionNamespacedResourceClassParameters(namespace) - .pretty(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteCollectionNamespacedResourceClassParameters"); - System.err.println("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] | -| **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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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. 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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - 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. 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] | -| **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 | - | - - -# **deleteCollectionResourceSlice** -> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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.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. 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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#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] | -| **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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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 | - | - - -# **deleteNamespacedResourceClaimParameters** -> V1alpha2ResourceClaimParameters deleteNamespacedResourceClaimParameters(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -delete ResourceClaimParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 ResourceClaimParameters - 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 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 { - V1alpha2ResourceClaimParameters result = apiInstance.deleteNamespacedResourceClaimParameters(name, namespace) - .pretty(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteNamespacedResourceClaimParameters"); - System.err.println("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 ResourceClaimParameters | | -| **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] | -| **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 - -[**V1alpha2ResourceClaimParameters**](V1alpha2ResourceClaimParameters.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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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 | - | - - -# **deleteNamespacedResourceClassParameters** -> V1alpha2ResourceClassParameters deleteNamespacedResourceClassParameters(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -delete ResourceClassParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 ResourceClassParameters - 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 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 { - V1alpha2ResourceClassParameters result = apiInstance.deleteNamespacedResourceClassParameters(name, namespace) - .pretty(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#deleteNamespacedResourceClassParameters"); - System.err.println("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 ResourceClassParameters | | -| **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] | -| **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 - -[**V1alpha2ResourceClassParameters**](V1alpha2ResourceClassParameters.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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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 | - | - - -# **deleteResourceSlice** -> V1alpha2ResourceSlice deleteResourceSlice(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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.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 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 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 { - V1alpha2ResourceSlice result = apiInstance.deleteResourceSlice(name) - .pretty(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#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] | -| **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 - -[**V1alpha2ResourceSlice**](V1alpha2ResourceSlice.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().execute(); - - - -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() - .execute(); - 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1alpha2PodSchedulingContextList result = apiInstance.listNamespacedPodSchedulingContext(namespace) - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1alpha2ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace) - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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 | - | - - -# **listNamespacedResourceClaimParameters** -> V1alpha2ResourceClaimParametersList listNamespacedResourceClaimParameters(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind ResourceClaimParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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. 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 { - V1alpha2ResourceClaimParametersList result = apiInstance.listNamespacedResourceClaimParameters(namespace) - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listNamespacedResourceClaimParameters"); - System.err.println("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 - -[**V1alpha2ResourceClaimParametersList**](V1alpha2ResourceClaimParametersList.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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1alpha2ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace) - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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 | - | - - -# **listNamespacedResourceClassParameters** -> V1alpha2ResourceClassParametersList listNamespacedResourceClassParameters(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind ResourceClassParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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. 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 { - V1alpha2ResourceClassParametersList result = apiInstance.listNamespacedResourceClassParameters(namespace) - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listNamespacedResourceClassParameters"); - System.err.println("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 - -[**V1alpha2ResourceClassParametersList**](V1alpha2ResourceClassParametersList.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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1alpha2PodSchedulingContextList result = apiInstance.listPodSchedulingContextForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1alpha2ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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 | - | - - -# **listResourceClaimParametersForAllNamespaces** -> V1alpha2ResourceClaimParametersList listResourceClaimParametersForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind ResourceClaimParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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. 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 { - V1alpha2ResourceClaimParametersList result = apiInstance.listResourceClaimParametersForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listResourceClaimParametersForAllNamespaces"); - System.err.println("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 - -[**V1alpha2ResourceClaimParametersList**](V1alpha2ResourceClaimParametersList.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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1alpha2ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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. 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 { - V1alpha2ResourceClassList result = apiInstance.listResourceClass() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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. 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 - -[**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 | - | - - -# **listResourceClassParametersForAllNamespaces** -> V1alpha2ResourceClassParametersList listResourceClassParametersForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind ResourceClassParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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. 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 { - V1alpha2ResourceClassParametersList result = apiInstance.listResourceClassParametersForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#listResourceClassParametersForAllNamespaces"); - System.err.println("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 - -[**V1alpha2ResourceClassParametersList**](V1alpha2ResourceClassParametersList.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 | - | - - -# **listResourceSlice** -> V1alpha2ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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.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. 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 { - V1alpha2ResourceSliceList result = apiInstance.listResourceSlice() - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#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 - -[**V1alpha2ResourceSliceList**](V1alpha2ResourceSliceList.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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 | - | - - -# **patchNamespacedResourceClaimParameters** -> V1alpha2ResourceClaimParameters patchNamespacedResourceClaimParameters(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -partially update the specified ResourceClaimParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 ResourceClaimParameters - 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 { - V1alpha2ResourceClaimParameters result = apiInstance.patchNamespacedResourceClaimParameters(name, namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#patchNamespacedResourceClaimParameters"); - System.err.println("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 ResourceClaimParameters | | -| **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 - -[**V1alpha2ResourceClaimParameters**](V1alpha2ResourceClaimParameters.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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 | - | - - -# **patchNamespacedResourceClassParameters** -> V1alpha2ResourceClassParameters patchNamespacedResourceClassParameters(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -partially update the specified ResourceClassParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 ResourceClassParameters - 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 { - V1alpha2ResourceClassParameters result = apiInstance.patchNamespacedResourceClassParameters(name, namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#patchNamespacedResourceClassParameters"); - System.err.println("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 ResourceClassParameters | | -| **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 - -[**V1alpha2ResourceClassParameters**](V1alpha2ResourceClassParameters.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/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 | - | - - -# **patchResourceSlice** -> V1alpha2ResourceSlice patchResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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.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 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 { - V1alpha2ResourceSlice result = apiInstance.patchResourceSlice(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#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 - -[**V1alpha2ResourceSlice**](V1alpha2ResourceSlice.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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha2PodSchedulingContext result = apiInstance.readNamespacedPodSchedulingContext(name, namespace) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha2PodSchedulingContext result = apiInstance.readNamespacedPodSchedulingContextStatus(name, namespace) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha2ResourceClaim result = apiInstance.readNamespacedResourceClaim(name, namespace) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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 | - | - - -# **readNamespacedResourceClaimParameters** -> V1alpha2ResourceClaimParameters readNamespacedResourceClaimParameters(name, namespace).pretty(pretty).execute(); - - - -read the specified ResourceClaimParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 ResourceClaimParameters - 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 { - V1alpha2ResourceClaimParameters result = apiInstance.readNamespacedResourceClaimParameters(name, namespace) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#readNamespacedResourceClaimParameters"); - System.err.println("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 ResourceClaimParameters | | -| **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 - -[**V1alpha2ResourceClaimParameters**](V1alpha2ResourceClaimParameters.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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha2ResourceClaim result = apiInstance.readNamespacedResourceClaimStatus(name, namespace) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha2ResourceClaimTemplate result = apiInstance.readNamespacedResourceClaimTemplate(name, namespace) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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 | - | - - -# **readNamespacedResourceClassParameters** -> V1alpha2ResourceClassParameters readNamespacedResourceClassParameters(name, namespace).pretty(pretty).execute(); - - - -read the specified ResourceClassParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 ResourceClassParameters - 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 { - V1alpha2ResourceClassParameters result = apiInstance.readNamespacedResourceClassParameters(name, namespace) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#readNamespacedResourceClassParameters"); - System.err.println("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 ResourceClassParameters | | -| **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 - -[**V1alpha2ResourceClassParameters**](V1alpha2ResourceClassParameters.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(pretty).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha2ResourceClass result = apiInstance.readResourceClass(name) - .pretty(pretty) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [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 | - | - - -# **readResourceSlice** -> V1alpha2ResourceSlice readResourceSlice(name).pretty(pretty).execute(); - - - -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.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 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 { - V1alpha2ResourceSlice result = apiInstance.readResourceSlice(name) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#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 - -[**V1alpha2ResourceSlice**](V1alpha2ResourceSlice.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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 | - | - - -# **replaceNamespacedResourceClaimParameters** -> V1alpha2ResourceClaimParameters replaceNamespacedResourceClaimParameters(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -replace the specified ResourceClaimParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 ResourceClaimParameters - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2ResourceClaimParameters body = new V1alpha2ResourceClaimParameters(); // V1alpha2ResourceClaimParameters | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1alpha2ResourceClaimParameters result = apiInstance.replaceNamespacedResourceClaimParameters(name, namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#replaceNamespacedResourceClaimParameters"); - System.err.println("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 ResourceClaimParameters | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha2ResourceClaimParameters**](V1alpha2ResourceClaimParameters.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 - -[**V1alpha2ResourceClaimParameters**](V1alpha2ResourceClaimParameters.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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 | - | - - -# **replaceNamespacedResourceClassParameters** -> V1alpha2ResourceClassParameters replaceNamespacedResourceClassParameters(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -replace the specified ResourceClassParameters - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -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 ResourceClassParameters - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha2ResourceClassParameters body = new V1alpha2ResourceClassParameters(); // V1alpha2ResourceClassParameters | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1alpha2ResourceClassParameters result = apiInstance.replaceNamespacedResourceClassParameters(name, namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#replaceNamespacedResourceClassParameters"); - System.err.println("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 ResourceClassParameters | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha2ResourceClassParameters**](V1alpha2ResourceClassParameters.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 - -[**V1alpha2ResourceClassParameters**](V1alpha2ResourceClassParameters.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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The 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 | - | - - -# **replaceResourceSlice** -> V1alpha2ResourceSlice replaceResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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.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 ResourceSlice - V1alpha2ResourceSlice body = new V1alpha2ResourceSlice(); // V1alpha2ResourceSlice | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { - V1alpha2ResourceSlice result = apiInstance.replaceResourceSlice(name, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha2Api#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** | [**V1alpha2ResourceSlice**](V1alpha2ResourceSlice.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 - -[**V1alpha2ResourceSlice**](V1alpha2ResourceSlice.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..1da3f178da --- /dev/null +++ b/kubernetes/docs/ResourceV1alpha3Api.md @@ -0,0 +1,978 @@ +# ResourceV1alpha3Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createDeviceTaintRule**](ResourceV1alpha3Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | +| [**deleteCollectionDeviceTaintRule**](ResourceV1alpha3Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | +| [**deleteDeviceTaintRule**](ResourceV1alpha3Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | +| [**getAPIResources**](ResourceV1alpha3Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha3/ | | +| [**listDeviceTaintRule**](ResourceV1alpha3Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | +| [**patchDeviceTaintRule**](ResourceV1alpha3Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | +| [**patchDeviceTaintRuleStatus**](ResourceV1alpha3Api.md#patchDeviceTaintRuleStatus) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status | | +| [**readDeviceTaintRule**](ResourceV1alpha3Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | +| [**readDeviceTaintRuleStatus**](ResourceV1alpha3Api.md#readDeviceTaintRuleStatus) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status | | +| [**replaceDeviceTaintRule**](ResourceV1alpha3Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | +| [**replaceDeviceTaintRuleStatus**](ResourceV1alpha3Api.md#replaceDeviceTaintRuleStatus) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status | | + + + +# **createDeviceTaintRule** +> V1alpha3DeviceTaintRule createDeviceTaintRule(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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 | - | + + +# **deleteCollectionDeviceTaintRule** +> V1Status deleteCollectionDeviceTaintRule().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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 | - | + + +# **deleteDeviceTaintRule** +> V1alpha3DeviceTaintRule deleteDeviceTaintRule(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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 | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); + + + +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() + .execute(); + 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 | - | + + +# **listDeviceTaintRule** +> V1alpha3DeviceTaintRuleList listDeviceTaintRule().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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 | - | + + +# **patchDeviceTaintRule** +> V1alpha3DeviceTaintRule patchDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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 | - | + + +# **patchDeviceTaintRuleStatus** +> V1alpha3DeviceTaintRule patchDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of 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.patchDeviceTaintRuleStatus(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceTaintRuleStatus"); + System.err.println("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 | - | + + +# **readDeviceTaintRule** +> V1alpha3DeviceTaintRule readDeviceTaintRule(name).pretty(pretty).execute(); + + + +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(pretty) + .execute(); + 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 | - | + + +# **readDeviceTaintRuleStatus** +> V1alpha3DeviceTaintRule readDeviceTaintRuleStatus(name).pretty(pretty).execute(); + + + +read status of 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.readDeviceTaintRuleStatus(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceTaintRuleStatus"); + System.err.println("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 | - | + + +# **replaceDeviceTaintRule** +> V1alpha3DeviceTaintRule replaceDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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 | - | + + +# **replaceDeviceTaintRuleStatus** +> V1alpha3DeviceTaintRule replaceDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of 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.replaceDeviceTaintRuleStatus(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceTaintRuleStatus"); + System.err.println("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 | - | + diff --git a/kubernetes/docs/ResourceV1beta1Api.md b/kubernetes/docs/ResourceV1beta1Api.md new file mode 100644 index 0000000000..eded4dee58 --- /dev/null +++ b/kubernetes/docs/ResourceV1beta1Api.md @@ -0,0 +1,3168 @@ +# 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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().execute(); + + + +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() + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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..08a7ac031e --- /dev/null +++ b/kubernetes/docs/ResourceV1beta2Api.md @@ -0,0 +1,3168 @@ +# 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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().execute(); + + + +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() + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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 013320bacd..eab2e0ada6 100644 --- a/kubernetes/docs/SchedulingV1Api.md +++ b/kubernetes/docs/SchedulingV1Api.md @@ -89,7 +89,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -101,7 +101,7 @@ public class Example { # **deleteCollectionPriorityClass** -> V1Status deleteCollectionPriorityClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionPriorityClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -134,6 +134,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 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. @@ -150,6 +151,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -181,6 +183,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -202,7 +205,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -212,7 +215,7 @@ public class Example { # **deletePriorityClass** -> V1Status deletePriorityClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deletePriorityClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -244,6 +247,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -252,6 +256,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -276,6 +281,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -291,7 +297,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -359,7 +365,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 | @@ -461,7 +467,7 @@ public class Example { ### 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 | @@ -549,7 +555,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -624,7 +630,7 @@ public class Example { ### 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 | @@ -709,7 +715,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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/SchedulingV1alpha1Api.md b/kubernetes/docs/SchedulingV1alpha1Api.md new file mode 100644 index 0000000000..c44f1db471 --- /dev/null +++ b/kubernetes/docs/SchedulingV1alpha1Api.md @@ -0,0 +1,843 @@ +# SchedulingV1alpha1Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedWorkload**](SchedulingV1alpha1Api.md#createNamespacedWorkload) | **POST** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads | | +| [**deleteCollectionNamespacedWorkload**](SchedulingV1alpha1Api.md#deleteCollectionNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads | | +| [**deleteNamespacedWorkload**](SchedulingV1alpha1Api.md#deleteNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name} | | +| [**getAPIResources**](SchedulingV1alpha1Api.md#getAPIResources) | **GET** /apis/scheduling.k8s.io/v1alpha1/ | | +| [**listNamespacedWorkload**](SchedulingV1alpha1Api.md#listNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads | | +| [**listWorkloadForAllNamespaces**](SchedulingV1alpha1Api.md#listWorkloadForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1alpha1/workloads | | +| [**patchNamespacedWorkload**](SchedulingV1alpha1Api.md#patchNamespacedWorkload) | **PATCH** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name} | | +| [**readNamespacedWorkload**](SchedulingV1alpha1Api.md#readNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name} | | +| [**replaceNamespacedWorkload**](SchedulingV1alpha1Api.md#replaceNamespacedWorkload) | **PUT** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name} | | + + + +# **createNamespacedWorkload** +> V1alpha1Workload createNamespacedWorkload(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1Workload body = new V1alpha1Workload(); // V1alpha1Workload | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1alpha1Workload result = apiInstance.createNamespacedWorkload(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#createNamespacedWorkload"); + System.err.println("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** | [**V1alpha1Workload**](V1alpha1Workload.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 + +[**V1alpha1Workload**](V1alpha1Workload.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 | - | + + +# **deleteCollectionNamespacedWorkload** +> V1Status deleteCollectionNamespacedWorkload(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(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.deleteCollectionNamespacedWorkload(namespace) + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#deleteCollectionNamespacedWorkload"); + System.err.println("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 | - | + + +# **deleteNamespacedWorkload** +> V1Status deleteNamespacedWorkload(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Workload + 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.deleteNamespacedWorkload(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#deleteNamespacedWorkload"); + System.err.println("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 Workload | | +| **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().execute(); + + + +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.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#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 | - | + + +# **listNamespacedWorkload** +> V1alpha1WorkloadList listNamespacedWorkload(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(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 { + V1alpha1WorkloadList result = apiInstance.listNamespacedWorkload(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#listNamespacedWorkload"); + System.err.println("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 + +[**V1alpha1WorkloadList**](V1alpha1WorkloadList.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 | - | + + +# **listWorkloadForAllNamespaces** +> V1alpha1WorkloadList listWorkloadForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(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 { + V1alpha1WorkloadList result = apiInstance.listWorkloadForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#listWorkloadForAllNamespaces"); + System.err.println("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 + +[**V1alpha1WorkloadList**](V1alpha1WorkloadList.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 | - | + + +# **patchNamespacedWorkload** +> V1alpha1Workload patchNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Workload + 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 { + V1alpha1Workload result = apiInstance.patchNamespacedWorkload(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#patchNamespacedWorkload"); + System.err.println("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 Workload | | +| **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 + +[**V1alpha1Workload**](V1alpha1Workload.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 | - | + + +# **readNamespacedWorkload** +> V1alpha1Workload readNamespacedWorkload(name, namespace).pretty(pretty).execute(); + + + +read the specified Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Workload + 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 { + V1alpha1Workload result = apiInstance.readNamespacedWorkload(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#readNamespacedWorkload"); + System.err.println("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 Workload | | +| **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 + +[**V1alpha1Workload**](V1alpha1Workload.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 | - | + + +# **replaceNamespacedWorkload** +> V1alpha1Workload replaceNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Workload + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1Workload body = new V1alpha1Workload(); // V1alpha1Workload | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1alpha1Workload result = apiInstance.replaceNamespacedWorkload(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#replaceNamespacedWorkload"); + System.err.println("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 Workload | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha1Workload**](V1alpha1Workload.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 + +[**V1alpha1Workload**](V1alpha1Workload.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/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index 3c4c863526..f193345630 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -9,6 +9,7 @@ All URIs are relative to *http://localhost* | [**createNamespacedCSIStorageCapacity**](StorageV1Api.md#createNamespacedCSIStorageCapacity) | **POST** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | | | [**createStorageClass**](StorageV1Api.md#createStorageClass) | **POST** /apis/storage.k8s.io/v1/storageclasses | | | [**createVolumeAttachment**](StorageV1Api.md#createVolumeAttachment) | **POST** /apis/storage.k8s.io/v1/volumeattachments | | +| [**createVolumeAttributesClass**](StorageV1Api.md#createVolumeAttributesClass) | **POST** /apis/storage.k8s.io/v1/volumeattributesclasses | | | [**deleteCSIDriver**](StorageV1Api.md#deleteCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers/{name} | | | [**deleteCSINode**](StorageV1Api.md#deleteCSINode) | **DELETE** /apis/storage.k8s.io/v1/csinodes/{name} | | | [**deleteCollectionCSIDriver**](StorageV1Api.md#deleteCollectionCSIDriver) | **DELETE** /apis/storage.k8s.io/v1/csidrivers | | @@ -16,9 +17,11 @@ All URIs are relative to *http://localhost* | [**deleteCollectionNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteCollectionNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | | | [**deleteCollectionStorageClass**](StorageV1Api.md#deleteCollectionStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses | | | [**deleteCollectionVolumeAttachment**](StorageV1Api.md#deleteCollectionVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments | | +| [**deleteCollectionVolumeAttributesClass**](StorageV1Api.md#deleteCollectionVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses | | | [**deleteNamespacedCSIStorageCapacity**](StorageV1Api.md#deleteNamespacedCSIStorageCapacity) | **DELETE** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | | [**deleteStorageClass**](StorageV1Api.md#deleteStorageClass) | **DELETE** /apis/storage.k8s.io/v1/storageclasses/{name} | | | [**deleteVolumeAttachment**](StorageV1Api.md#deleteVolumeAttachment) | **DELETE** /apis/storage.k8s.io/v1/volumeattachments/{name} | | +| [**deleteVolumeAttributesClass**](StorageV1Api.md#deleteVolumeAttributesClass) | **DELETE** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | | | [**getAPIResources**](StorageV1Api.md#getAPIResources) | **GET** /apis/storage.k8s.io/v1/ | | | [**listCSIDriver**](StorageV1Api.md#listCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers | | | [**listCSINode**](StorageV1Api.md#listCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes | | @@ -26,24 +29,28 @@ All URIs are relative to *http://localhost* | [**listNamespacedCSIStorageCapacity**](StorageV1Api.md#listNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities | | | [**listStorageClass**](StorageV1Api.md#listStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses | | | [**listVolumeAttachment**](StorageV1Api.md#listVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments | | +| [**listVolumeAttributesClass**](StorageV1Api.md#listVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses | | | [**patchCSIDriver**](StorageV1Api.md#patchCSIDriver) | **PATCH** /apis/storage.k8s.io/v1/csidrivers/{name} | | | [**patchCSINode**](StorageV1Api.md#patchCSINode) | **PATCH** /apis/storage.k8s.io/v1/csinodes/{name} | | | [**patchNamespacedCSIStorageCapacity**](StorageV1Api.md#patchNamespacedCSIStorageCapacity) | **PATCH** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | | [**patchStorageClass**](StorageV1Api.md#patchStorageClass) | **PATCH** /apis/storage.k8s.io/v1/storageclasses/{name} | | | [**patchVolumeAttachment**](StorageV1Api.md#patchVolumeAttachment) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name} | | | [**patchVolumeAttachmentStatus**](StorageV1Api.md#patchVolumeAttachmentStatus) | **PATCH** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | | +| [**patchVolumeAttributesClass**](StorageV1Api.md#patchVolumeAttributesClass) | **PATCH** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | | | [**readCSIDriver**](StorageV1Api.md#readCSIDriver) | **GET** /apis/storage.k8s.io/v1/csidrivers/{name} | | | [**readCSINode**](StorageV1Api.md#readCSINode) | **GET** /apis/storage.k8s.io/v1/csinodes/{name} | | | [**readNamespacedCSIStorageCapacity**](StorageV1Api.md#readNamespacedCSIStorageCapacity) | **GET** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | | [**readStorageClass**](StorageV1Api.md#readStorageClass) | **GET** /apis/storage.k8s.io/v1/storageclasses/{name} | | | [**readVolumeAttachment**](StorageV1Api.md#readVolumeAttachment) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name} | | | [**readVolumeAttachmentStatus**](StorageV1Api.md#readVolumeAttachmentStatus) | **GET** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | | +| [**readVolumeAttributesClass**](StorageV1Api.md#readVolumeAttributesClass) | **GET** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | | | [**replaceCSIDriver**](StorageV1Api.md#replaceCSIDriver) | **PUT** /apis/storage.k8s.io/v1/csidrivers/{name} | | | [**replaceCSINode**](StorageV1Api.md#replaceCSINode) | **PUT** /apis/storage.k8s.io/v1/csinodes/{name} | | | [**replaceNamespacedCSIStorageCapacity**](StorageV1Api.md#replaceNamespacedCSIStorageCapacity) | **PUT** /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities/{name} | | | [**replaceStorageClass**](StorageV1Api.md#replaceStorageClass) | **PUT** /apis/storage.k8s.io/v1/storageclasses/{name} | | | [**replaceVolumeAttachment**](StorageV1Api.md#replaceVolumeAttachment) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name} | | | [**replaceVolumeAttachmentStatus**](StorageV1Api.md#replaceVolumeAttachmentStatus) | **PUT** /apis/storage.k8s.io/v1/volumeattachments/{name}/status | | +| [**replaceVolumeAttributesClass**](StorageV1Api.md#replaceVolumeAttributesClass) | **PUT** /apis/storage.k8s.io/v1/volumeattributesclasses/{name} | | @@ -121,7 +128,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -206,7 +213,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +300,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +385,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -463,7 +470,92 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 | - | + + +# **createVolumeAttributesClass** +> V1VolumeAttributesClass createVolumeAttributesClass(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + V1VolumeAttributesClass body = new V1VolumeAttributesClass(); // V1VolumeAttributesClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1VolumeAttributesClass result = apiInstance.createVolumeAttributesClass(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#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** | [**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 | @@ -475,7 +567,7 @@ public class Example { # **deleteCSIDriver** -> V1CSIDriver deleteCSIDriver(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1CSIDriver deleteCSIDriver(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -507,6 +599,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -515,6 +608,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -539,6 +633,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -554,7 +649,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -565,7 +660,7 @@ public class Example { # **deleteCSINode** -> V1CSINode deleteCSINode(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1CSINode deleteCSINode(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -597,6 +692,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -605,6 +701,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -629,6 +726,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -644,7 +742,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -655,7 +753,7 @@ public class Example { # **deleteCollectionCSIDriver** -> V1Status deleteCollectionCSIDriver().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionCSIDriver().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -688,6 +786,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 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. @@ -704,6 +803,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -735,6 +835,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -756,7 +857,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -766,7 +867,7 @@ public class Example { # **deleteCollectionCSINode** -> V1Status deleteCollectionCSINode().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionCSINode().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -799,6 +900,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 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. @@ -815,6 +917,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -846,6 +949,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -867,7 +971,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -877,7 +981,7 @@ public class Example { # **deleteCollectionNamespacedCSIStorageCapacity** -> V1Status deleteCollectionNamespacedCSIStorageCapacity(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedCSIStorageCapacity(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -911,6 +1015,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 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. @@ -927,6 +1032,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -959,6 +1065,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -980,7 +1087,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -990,7 +1097,7 @@ public class Example { # **deleteCollectionStorageClass** -> V1Status deleteCollectionStorageClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionStorageClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -1023,6 +1130,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 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. @@ -1039,6 +1147,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -1070,6 +1179,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1091,7 +1201,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1101,7 +1211,7 @@ public class Example { # **deleteCollectionVolumeAttachment** -> V1Status deleteCollectionVolumeAttachment().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionVolumeAttachment().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -1134,6 +1244,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 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. @@ -1150,6 +1261,7 @@ public class Example { .dryRun(dryRun) .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .labelSelector(labelSelector) .limit(limit) .orphanDependents(orphanDependents) @@ -1181,6 +1293,7 @@ public class Example { | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1202,7 +1315,121 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionVolumeAttributesClass** +> V1Status deleteCollectionVolumeAttributesClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#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 | @@ -1212,7 +1439,7 @@ public class Example { # **deleteNamespacedCSIStorageCapacity** -> V1Status deleteNamespacedCSIStorageCapacity(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1Status deleteNamespacedCSIStorageCapacity(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1245,6 +1472,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1253,6 +1481,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1278,6 +1507,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1293,7 +1523,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1304,7 +1534,7 @@ public class Example { # **deleteStorageClass** -> V1StorageClass deleteStorageClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1StorageClass deleteStorageClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1336,6 +1566,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1344,6 +1575,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1368,6 +1600,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1383,7 +1616,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1394,7 +1627,7 @@ public class Example { # **deleteVolumeAttachment** -> V1VolumeAttachment deleteVolumeAttachment(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); +> V1VolumeAttachment deleteVolumeAttachment(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); @@ -1426,6 +1659,7 @@ public class Example { String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive 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 | @@ -1434,6 +1668,7 @@ public class Example { .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) .body(body) @@ -1458,6 +1693,7 @@ public class Example { | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will 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] | @@ -1473,7 +1709,100 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 | - | + + +# **deleteVolumeAttributesClass** +> V1VolumeAttributesClass deleteVolumeAttributesClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(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 { + V1VolumeAttributesClass result = apiInstance.deleteVolumeAttributesClass(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 | @@ -1541,7 +1870,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 | @@ -1643,7 +1972,7 @@ public class Example { ### 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 | @@ -1745,7 +2074,7 @@ public class Example { ### 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 | @@ -1829,7 +2158,111 @@ public class Example { | **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] | +| **pretty** | **String**| If 'true', then 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 + +[**V1CSIStorageCapacityList**](V1CSIStorageCapacityList.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 | - | + + +# **listNamespacedCSIStorageCapacity** +> V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind CSIStorageCapacity + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + 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. 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 { + V1CSIStorageCapacityList result = apiInstance.listNamespacedCSIStorageCapacity(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#listNamespacedCSIStorageCapacity"); + System.err.println("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] | @@ -1847,7 +2280,7 @@ public class Example { ### 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 | @@ -1855,13 +2288,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listNamespacedCSIStorageCapacity** -> V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listStorageClass** +> V1StorageClassList listStorageClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind CSIStorageCapacity +list or watch objects of kind StorageClass ### Example ```java @@ -1885,7 +2318,6 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); 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. 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. @@ -1898,7 +2330,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1CSIStorageCapacityList result = apiInstance.listNamespacedCSIStorageCapacity(namespace) + V1StorageClassList result = apiInstance.listStorageClass() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -1913,7 +2345,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#listNamespacedCSIStorageCapacity"); + System.err.println("Exception when calling StorageV1Api#listStorageClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1927,7 +2359,6 @@ 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. 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] | @@ -1942,7 +2373,7 @@ public class Example { ### Return type -[**V1CSIStorageCapacityList**](V1CSIStorageCapacityList.md) +[**V1StorageClassList**](V1StorageClassList.md) ### Authorization @@ -1951,7 +2382,7 @@ public class Example { ### 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 | @@ -1959,13 +2390,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listStorageClass** -> V1StorageClassList listStorageClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listVolumeAttachment** +> V1VolumeAttachmentList listVolumeAttachment().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind StorageClass +list or watch objects of kind VolumeAttachment ### Example ```java @@ -2001,7 +2432,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1StorageClassList result = apiInstance.listStorageClass() + V1VolumeAttachmentList result = apiInstance.listVolumeAttachment() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -2016,7 +2447,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#listStorageClass"); + System.err.println("Exception when calling StorageV1Api#listVolumeAttachment"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2044,7 +2475,7 @@ public class Example { ### Return type -[**V1StorageClassList**](V1StorageClassList.md) +[**V1VolumeAttachmentList**](V1VolumeAttachmentList.md) ### Authorization @@ -2053,7 +2484,7 @@ public class Example { ### 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 | @@ -2061,13 +2492,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listVolumeAttachment** -> V1VolumeAttachmentList listVolumeAttachment().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listVolumeAttributesClass** +> V1VolumeAttributesClassList listVolumeAttributesClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind VolumeAttachment +list or watch objects of kind VolumeAttributesClass ### Example ```java @@ -2103,7 +2534,7 @@ public class Example { Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1VolumeAttachmentList result = apiInstance.listVolumeAttachment() + V1VolumeAttributesClassList result = apiInstance.listVolumeAttributesClass() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -2118,7 +2549,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#listVolumeAttachment"); + System.err.println("Exception when calling StorageV1Api#listVolumeAttributesClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2146,7 +2577,7 @@ public class Example { ### Return type -[**V1VolumeAttachmentList**](V1VolumeAttachmentList.md) +[**V1VolumeAttributesClassList**](V1VolumeAttributesClassList.md) ### Authorization @@ -2155,7 +2586,7 @@ public class Example { ### 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 | @@ -2243,7 +2674,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2332,7 +2763,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2423,7 +2854,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2512,7 +2943,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 +3032,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -2690,7 +3121,96 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 | - | + + +# **patchVolumeAttributesClass** +> V1VolumeAttributesClass patchVolumeAttributesClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(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 { + V1VolumeAttributesClass result = apiInstance.patchVolumeAttributesClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 | @@ -2765,7 +3285,7 @@ public class Example { ### 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 | @@ -2839,7 +3359,7 @@ public class Example { ### 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 | @@ -2915,7 +3435,7 @@ public class Example { ### 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 | @@ -2989,7 +3509,7 @@ public class Example { ### 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 | @@ -3063,7 +3583,7 @@ public class Example { ### 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 | @@ -3137,7 +3657,81 @@ public class Example { ### 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 | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readVolumeAttributesClass** +> V1VolumeAttributesClass readVolumeAttributesClass(name).pretty(pretty).execute(); + + + +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.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(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 { + V1VolumeAttributesClass result = apiInstance.readVolumeAttributesClass(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 | @@ -3222,7 +3816,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3308,7 +3902,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3396,7 +3990,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3482,7 +4076,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3568,7 +4162,7 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -3654,7 +4248,93 @@ public class Example { ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/json, application/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 | - | + + +# **replaceVolumeAttributesClass** +> V1VolumeAttributesClass replaceVolumeAttributesClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttributesClass + V1VolumeAttributesClass body = new V1VolumeAttributesClass(); // V1VolumeAttributesClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1VolumeAttributesClass result = apiInstance.replaceVolumeAttributesClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#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** | [**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 + +[**V1VolumeAttributesClass**](V1VolumeAttributesClass.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 | diff --git a/kubernetes/docs/StorageV1alpha1Api.md b/kubernetes/docs/StorageV1alpha1Api.md deleted file mode 100644 index 53df46fa55..0000000000 --- a/kubernetes/docs/StorageV1alpha1Api.md +++ /dev/null @@ -1,720 +0,0 @@ -# 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **deleteCollectionVolumeAttributesClass** -> V1Status deleteCollectionVolumeAttributesClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - 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] | -| **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 | - | - - -# **deleteVolumeAttributesClass** -> V1alpha1VolumeAttributesClass deleteVolumeAttributesClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - 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] | -| **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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); - - - -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() - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **listVolumeAttributesClass** -> V1alpha1VolumeAttributesClassList listVolumeAttributesClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **patchVolumeAttributesClass** -> V1alpha1VolumeAttributesClass patchVolumeAttributesClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - - -# **readVolumeAttributesClass** -> V1alpha1VolumeAttributesClass readVolumeAttributesClass(name).pretty(pretty).execute(); - - - -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(pretty) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **replaceVolumeAttributesClass** -> V1alpha1VolumeAttributesClass replaceVolumeAttributesClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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 - -### 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..ab9e5c5e9a --- /dev/null +++ b/kubernetes/docs/StorageV1beta1Api.md @@ -0,0 +1,726 @@ +# 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + 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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + 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().execute(); + + + +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() + .execute(); + 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(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + 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(pretty).execute(); + + + +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(pretty) + .execute(); + 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + 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/StoragemigrationV1alpha1Api.md b/kubernetes/docs/StoragemigrationV1alpha1Api.md deleted file mode 100644 index fd32155ede..0000000000 --- a/kubernetes/docs/StoragemigrationV1alpha1Api.md +++ /dev/null @@ -1,972 +0,0 @@ -# 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(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **deleteCollectionStorageVersionMigration** -> V1Status deleteCollectionStorageVersionMigration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -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. - 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(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - 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] | -| **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 | - | - - -# **deleteStorageVersionMigration** -> V1Status deleteStorageVersionMigration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -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 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(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - 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] | -| **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().execute(); - - - -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() - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **listStorageVersionMigration** -> V1alpha1StorageVersionMigrationList listStorageVersionMigration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -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(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - 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/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **patchStorageVersionMigration** -> V1alpha1StorageVersionMigration patchStorageVersionMigration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - - -# **patchStorageVersionMigrationStatus** -> V1alpha1StorageVersionMigration patchStorageVersionMigrationStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - - -# **readStorageVersionMigration** -> V1alpha1StorageVersionMigration readStorageVersionMigration(name).pretty(pretty).execute(); - - - -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(pretty) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **readStorageVersionMigrationStatus** -> V1alpha1StorageVersionMigration readStorageVersionMigrationStatus(name).pretty(pretty).execute(); - - - -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(pretty) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **replaceStorageVersionMigration** -> V1alpha1StorageVersionMigration replaceStorageVersionMigration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - - -# **replaceStorageVersionMigrationStatus** -> V1alpha1StorageVersionMigration replaceStorageVersionMigrationStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -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(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - 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 - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - diff --git a/kubernetes/docs/StoragemigrationV1beta1Api.md b/kubernetes/docs/StoragemigrationV1beta1Api.md new file mode 100644 index 0000000000..fc6ed1c890 --- /dev/null +++ b/kubernetes/docs/StoragemigrationV1beta1Api.md @@ -0,0 +1,978 @@ +# StoragemigrationV1beta1Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createStorageVersionMigration**](StoragemigrationV1beta1Api.md#createStorageVersionMigration) | **POST** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations | | +| [**deleteCollectionStorageVersionMigration**](StoragemigrationV1beta1Api.md#deleteCollectionStorageVersionMigration) | **DELETE** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations | | +| [**deleteStorageVersionMigration**](StoragemigrationV1beta1Api.md#deleteStorageVersionMigration) | **DELETE** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name} | | +| [**getAPIResources**](StoragemigrationV1beta1Api.md#getAPIResources) | **GET** /apis/storagemigration.k8s.io/v1beta1/ | | +| [**listStorageVersionMigration**](StoragemigrationV1beta1Api.md#listStorageVersionMigration) | **GET** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations | | +| [**patchStorageVersionMigration**](StoragemigrationV1beta1Api.md#patchStorageVersionMigration) | **PATCH** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name} | | +| [**patchStorageVersionMigrationStatus**](StoragemigrationV1beta1Api.md#patchStorageVersionMigrationStatus) | **PATCH** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name}/status | | +| [**readStorageVersionMigration**](StoragemigrationV1beta1Api.md#readStorageVersionMigration) | **GET** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name} | | +| [**readStorageVersionMigrationStatus**](StoragemigrationV1beta1Api.md#readStorageVersionMigrationStatus) | **GET** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name}/status | | +| [**replaceStorageVersionMigration**](StoragemigrationV1beta1Api.md#replaceStorageVersionMigration) | **PUT** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name} | | +| [**replaceStorageVersionMigrationStatus**](StoragemigrationV1beta1Api.md#replaceStorageVersionMigrationStatus) | **PUT** /apis/storagemigration.k8s.io/v1beta1/storageversionmigrations/{name}/status | | + + + +# **createStorageVersionMigration** +> V1beta1StorageVersionMigration createStorageVersionMigration(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(defaultClient); + V1beta1StorageVersionMigration body = new V1beta1StorageVersionMigration(); // V1beta1StorageVersionMigration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1beta1StorageVersionMigration result = apiInstance.createStorageVersionMigration(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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** | [**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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 + +[**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(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(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(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(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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().execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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** +> V1beta1StorageVersionMigrationList listStorageVersionMigration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(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 { + V1beta1StorageVersionMigrationList result = apiInstance.listStorageVersionMigration() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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 + +[**V1beta1StorageVersionMigrationList**](V1beta1StorageVersionMigrationList.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** +> V1beta1StorageVersionMigration patchStorageVersionMigration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(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 { + V1beta1StorageVersionMigration result = apiInstance.patchStorageVersionMigration(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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 + +[**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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** +> V1beta1StorageVersionMigration patchStorageVersionMigrationStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(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 { + V1beta1StorageVersionMigration result = apiInstance.patchStorageVersionMigrationStatus(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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 + +[**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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** +> V1beta1StorageVersionMigration readStorageVersionMigration(name).pretty(pretty).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(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 { + V1beta1StorageVersionMigration result = apiInstance.readStorageVersionMigration(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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 + +[**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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** +> V1beta1StorageVersionMigration readStorageVersionMigrationStatus(name).pretty(pretty).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(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 { + V1beta1StorageVersionMigration result = apiInstance.readStorageVersionMigrationStatus(name) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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 + +[**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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** +> V1beta1StorageVersionMigration replaceStorageVersionMigration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + V1beta1StorageVersionMigration body = new V1beta1StorageVersionMigration(); // V1beta1StorageVersionMigration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1beta1StorageVersionMigration result = apiInstance.replaceStorageVersionMigration(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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** | [**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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 + +[**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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** +> V1beta1StorageVersionMigration replaceStorageVersionMigrationStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +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.StoragemigrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StoragemigrationV1beta1Api apiInstance = new StoragemigrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StorageVersionMigration + V1beta1StorageVersionMigration body = new V1beta1StorageVersionMigration(); // V1beta1StorageVersionMigration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. 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 { + V1beta1StorageVersionMigration result = apiInstance.replaceStorageVersionMigrationStatus(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StoragemigrationV1beta1Api#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** | [**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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 + +[**V1beta1StorageVersionMigration**](V1beta1StorageVersionMigration.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/V1AllocatedDeviceStatus.md b/kubernetes/docs/V1AllocatedDeviceStatus.md new file mode 100644 index 0000000000..aa84d7cb73 --- /dev/null +++ b/kubernetes/docs/V1AllocatedDeviceStatus.md @@ -0,0 +1,20 @@ + + +# V1AllocatedDeviceStatus + +AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. + +## 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** | 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. It should use only lower case characters. | | +|**networkData** | [**V1NetworkDeviceData**](V1NetworkDeviceData.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. | | +|**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device. | [optional] | + + + diff --git a/kubernetes/docs/V1AllocationResult.md b/kubernetes/docs/V1AllocationResult.md new file mode 100644 index 0000000000..7eeca9404e --- /dev/null +++ b/kubernetes/docs/V1AllocationResult.md @@ -0,0 +1,16 @@ + + +# V1AllocationResult + +AllocationResult contains attributes of an allocated resource. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationTimestamp** | **OffsetDateTime** | AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | +|**devices** | [**V1DeviceAllocationResult**](V1DeviceAllocationResult.md) | | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1Binding.md b/kubernetes/docs/V1Binding.md index 590e3a12b3..d7d85fb3ea 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 diff --git a/kubernetes/docs/V1CELDeviceSelector.md b/kubernetes/docs/V1CELDeviceSelector.md new file mode 100644 index 0000000000..4d042a1aad --- /dev/null +++ b/kubernetes/docs/V1CELDeviceSelector.md @@ -0,0 +1,14 @@ + + +# V1CELDeviceSelector + +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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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/V1CSIDriverSpec.md b/kubernetes/docs/V1CSIDriverSpec.md index 542bd47332..f8609b74f3 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -8,11 +8,13 @@ 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] | +|**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 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 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 a beta 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] | +|**serviceAccountTokenInSecrets** | **Boolean** | serviceAccountTokenInSecrets is an opt-in for CSI drivers to indicate that service account tokens should be passed via the Secrets field in NodePublishVolumeRequest instead of the VolumeContext field. The CSI specification provides a dedicated Secrets field for sensitive information like tokens, which is the appropriate mechanism for handling credentials. This addresses security concerns where sensitive tokens were being logged as part of volume context. When \"true\", kubelet will pass the tokens only in the Secrets field with the key \"csi.storage.k8s.io/serviceAccount.tokens\". The CSI driver must be updated to read tokens from the Secrets field instead of VolumeContext. When \"false\" or not set, kubelet will pass the tokens in VolumeContext with the key \"csi.storage.k8s.io/serviceAccount.tokens\" (existing behavior). This maintains backward compatibility with existing CSI drivers. This field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests. Default behavior if unset is to pass tokens in the VolumeContext field. | [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] | |**tokenRequests** | [**List<StorageV1TokenRequest>**](StorageV1TokenRequest.md) | tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": { \"<audience>\": { \"token\": <token>, \"expirationTimestamp\": <expiration timestamp in RFC3339>, }, ... } Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically. | [optional] | |**volumeLifecycleModes** | **List<String>** | volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta. This field is immutable. | [optional] | diff --git a/kubernetes/docs/V1CSIPersistentVolumeSource.md b/kubernetes/docs/V1CSIPersistentVolumeSource.md index 52308779b2..4200c4314e 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 diff --git a/kubernetes/docs/V1CapacityRequestPolicy.md b/kubernetes/docs/V1CapacityRequestPolicy.md new file mode 100644 index 0000000000..07e155fba1 --- /dev/null +++ b/kubernetes/docs/V1CapacityRequestPolicy.md @@ -0,0 +1,16 @@ + + +# V1CapacityRequestPolicy + +CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_default** | **Quantity** | 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] | +|**validRange** | [**V1CapacityRequestPolicyRange**](V1CapacityRequestPolicyRange.md) | | [optional] | +|**validValues** | **List<Quantity>** | ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. | [optional] | + + + diff --git a/kubernetes/docs/V1CapacityRequestPolicyRange.md b/kubernetes/docs/V1CapacityRequestPolicyRange.md new file mode 100644 index 0000000000..a2a3e4bad5 --- /dev/null +++ b/kubernetes/docs/V1CapacityRequestPolicyRange.md @@ -0,0 +1,16 @@ + + +# V1CapacityRequestPolicyRange + +CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**max** | **Quantity** | 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] | +|**min** | **Quantity** | 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. | | +|**step** | **Quantity** | 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/V1CapacityRequirements.md b/kubernetes/docs/V1CapacityRequirements.md new file mode 100644 index 0000000000..c0bb2e4fad --- /dev/null +++ b/kubernetes/docs/V1CapacityRequirements.md @@ -0,0 +1,14 @@ + + +# V1CapacityRequirements + +CapacityRequirements defines the capacity requirements for a specific device request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requests** | **Map<String, Quantity>** | Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. | [optional] | + + + diff --git a/kubernetes/docs/V1ClaimSource.md b/kubernetes/docs/V1ClaimSource.md deleted file mode 100644 index 1b54de772d..0000000000 --- a/kubernetes/docs/V1ClaimSource.md +++ /dev/null @@ -1,15 +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/V1Container.md b/kubernetes/docs/V1Container.md index 51c0b52cab..b991c0e13a 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -11,7 +11,7 @@ A single application container that you want to run within a pod. |**args** | **List<String>** | 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 | [optional] | |**command** | **List<String>** | 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 | [optional] | |**env** | [**List<V1EnvVar>**](V1EnvVar.md) | List of environment variables to set in the container. Cannot be updated. | [optional] | -|**envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | 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. | [optional] | +|**envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. 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. | [optional] | |**image** | **String** | 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. | [optional] | |**imagePullPolicy** | **String** | 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 | [optional] | |**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | | [optional] | @@ -19,9 +19,10 @@ A single application container that you want to run within a pod. |**name** | **String** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | | |**ports** | [**List<V1ContainerPort>**](V1ContainerPort.md) | 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. | [optional] | |**readinessProbe** | [**V1Probe**](V1Probe.md) | | [optional] | -|**resizePolicy** | [**List<V1ContainerResizePolicy>**](V1ContainerResizePolicy.md) | Resources resize policy for the container. | [optional] | +|**resizePolicy** | [**List<V1ContainerResizePolicy>**](V1ContainerResizePolicy.md) | Resources resize policy for the container. This field cannot be set on ephemeral containers. | [optional] | |**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] | -|**restartPolicy** | **String** | 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. | [optional] | +|**restartPolicy** | **String** | RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, 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. | [optional] | +|**restartPolicyRules** | [**List<V1ContainerRestartRule>**](V1ContainerRestartRule.md) | Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy. | [optional] | |**securityContext** | [**V1SecurityContext**](V1SecurityContext.md) | | [optional] | |**startupProbe** | [**V1Probe**](V1Probe.md) | | [optional] | |**stdin** | **Boolean** | 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. | [optional] | diff --git a/kubernetes/docs/V1ContainerExtendedResourceRequest.md b/kubernetes/docs/V1ContainerExtendedResourceRequest.md new file mode 100644 index 0000000000..f3ab5ddaa8 --- /dev/null +++ b/kubernetes/docs/V1ContainerExtendedResourceRequest.md @@ -0,0 +1,16 @@ + + +# V1ContainerExtendedResourceRequest + +ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**containerName** | **String** | The name of the container requesting resources. | | +|**requestName** | **String** | The name of the request in the special ResourceClaim which corresponds to the extended resource. | | +|**resourceName** | **String** | The name of the extended resource in that container which gets backed by DRA. | | + + + diff --git a/kubernetes/docs/V1ContainerRestartRule.md b/kubernetes/docs/V1ContainerRestartRule.md new file mode 100644 index 0000000000..ff742a82ef --- /dev/null +++ b/kubernetes/docs/V1ContainerRestartRule.md @@ -0,0 +1,15 @@ + + +# V1ContainerRestartRule + +ContainerRestartRule describes how a container exit is handled. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**action** | **String** | Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. | | +|**exitCodes** | [**V1ContainerRestartRuleOnExitCodes**](V1ContainerRestartRuleOnExitCodes.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1ContainerRestartRuleOnExitCodes.md b/kubernetes/docs/V1ContainerRestartRuleOnExitCodes.md new file mode 100644 index 0000000000..6dcf1c926a --- /dev/null +++ b/kubernetes/docs/V1ContainerRestartRuleOnExitCodes.md @@ -0,0 +1,15 @@ + + +# V1ContainerRestartRuleOnExitCodes + +ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**operator** | **String** | Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. | | +|**values** | **List<Integer>** | Specifies the set of values to check for container exit codes. At most 255 elements are allowed. | [optional] | + + + diff --git a/kubernetes/docs/V1ContainerStatus.md b/kubernetes/docs/V1ContainerStatus.md index 39812635ff..53f48481ba 100644 --- a/kubernetes/docs/V1ContainerStatus.md +++ b/kubernetes/docs/V1ContainerStatus.md @@ -9,6 +9,7 @@ ContainerStatus contains details for the current status of this container. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**allocatedResources** | **Map<String, Quantity>** | 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. | | @@ -19,6 +20,8 @@ ContainerStatus contains details for the current status of this container. |**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..22eb2eaef3 --- /dev/null +++ b/kubernetes/docs/V1ContainerUser.md @@ -0,0 +1,14 @@ + + +# V1ContainerUser + +ContainerUser represents user identity information + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**linux** | [**V1LinuxContainerUser**](V1LinuxContainerUser.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1Counter.md b/kubernetes/docs/V1Counter.md new file mode 100644 index 0000000000..f432977a47 --- /dev/null +++ b/kubernetes/docs/V1Counter.md @@ -0,0 +1,14 @@ + + +# V1Counter + +Counter describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **Quantity** | 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/V1CounterSet.md b/kubernetes/docs/V1CounterSet.md new file mode 100644 index 0000000000..0e82cdabdf --- /dev/null +++ b/kubernetes/docs/V1CounterSet.md @@ -0,0 +1,15 @@ + + +# V1CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. 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, V1Counter>**](V1Counter.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/V1CustomResourceDefinitionCondition.md b/kubernetes/docs/V1CustomResourceDefinitionCondition.md index 06b0cc78a0..8657aa946e 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionCondition.md +++ b/kubernetes/docs/V1CustomResourceDefinitionCondition.md @@ -10,6 +10,7 @@ CustomResourceDefinitionCondition contains details for the current condition of |------------ | ------------- | ------------- | -------------| |**lastTransitionTime** | **OffsetDateTime** | lastTransitionTime last time the condition transitioned from one status to another. | [optional] | |**message** | **String** | message is a human-readable message indicating details about last transition. | [optional] | +|**observedGeneration** | **Long** | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | [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. | | |**type** | **String** | type is the type of the condition. Types include Established, NamesAccepted and Terminating. | | diff --git a/kubernetes/docs/V1CustomResourceDefinitionStatus.md b/kubernetes/docs/V1CustomResourceDefinitionStatus.md index 54825d9c9a..6a30578a87 100644 --- a/kubernetes/docs/V1CustomResourceDefinitionStatus.md +++ b/kubernetes/docs/V1CustomResourceDefinitionStatus.md @@ -10,6 +10,7 @@ CustomResourceDefinitionStatus indicates the state of the CustomResourceDefiniti |------------ | ------------- | ------------- | -------------| |**acceptedNames** | [**V1CustomResourceDefinitionNames**](V1CustomResourceDefinitionNames.md) | | [optional] | |**conditions** | [**List<V1CustomResourceDefinitionCondition>**](V1CustomResourceDefinitionCondition.md) | conditions indicate state for particular aspects of a CustomResourceDefinition | [optional] | +|**observedGeneration** | **Long** | The generation observed by the CRD controller. | [optional] | |**storedVersions** | **List<String>** | storedVersions lists all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so a migration controller can finish a migration to another version (ensuring no old objects are left in storage), and then remove the rest of the versions from this list. Versions may not be removed from `spec.versions` while they exist in this list. | [optional] | diff --git a/kubernetes/docs/V1DeleteOptions.md b/kubernetes/docs/V1DeleteOptions.md index cb0a419a64..81047e8ffa 100644 --- a/kubernetes/docs/V1DeleteOptions.md +++ b/kubernetes/docs/V1DeleteOptions.md @@ -11,6 +11,7 @@ DeleteOptions may be provided when deleting an API object. |**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 0c57f8bd97..59ad04cb41 100644 --- a/kubernetes/docs/V1DeploymentStatus.md +++ b/kubernetes/docs/V1DeploymentStatus.md @@ -8,14 +8,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default). | [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/V1Device.md b/kubernetes/docs/V1Device.md new file mode 100644 index 0000000000..056d87a3aa --- /dev/null +++ b/kubernetes/docs/V1Device.md @@ -0,0 +1,25 @@ + + +# V1Device + +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] | +|**allowMultipleAllocations** | **Boolean** | AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. | [optional] | +|**attributes** | [**Map<String, V1DeviceAttribute>**](V1DeviceAttribute.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] | +|**bindingConditions** | **List<String>** | BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**capacity** | [**Map<String, V1DeviceCapacity>**](V1DeviceCapacity.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<V1DeviceCounterConsumption>**](V1DeviceCounterConsumption.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 maximum number of device counter consumptions per device is 2. | [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<V1DeviceTaint>**](V1DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | + + + diff --git a/kubernetes/docs/V1DeviceAllocationConfiguration.md b/kubernetes/docs/V1DeviceAllocationConfiguration.md new file mode 100644 index 0000000000..fcd158bd92 --- /dev/null +++ b/kubernetes/docs/V1DeviceAllocationConfiguration.md @@ -0,0 +1,16 @@ + + +# V1DeviceAllocationConfiguration + +DeviceAllocationConfiguration gets embedded in an AllocationResult. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**opaque** | [**V1OpaqueDeviceConfiguration**](V1OpaqueDeviceConfiguration.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/V1DeviceAllocationResult.md b/kubernetes/docs/V1DeviceAllocationResult.md new file mode 100644 index 0000000000..3208ed73da --- /dev/null +++ b/kubernetes/docs/V1DeviceAllocationResult.md @@ -0,0 +1,15 @@ + + +# V1DeviceAllocationResult + +DeviceAllocationResult is the result of allocating devices. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**List<V1DeviceAllocationConfiguration>**](V1DeviceAllocationConfiguration.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<V1DeviceRequestAllocationResult>**](V1DeviceRequestAllocationResult.md) | Results lists all allocated devices. | [optional] | + + + diff --git a/kubernetes/docs/V1DeviceAttribute.md b/kubernetes/docs/V1DeviceAttribute.md new file mode 100644 index 0000000000..4547b8c079 --- /dev/null +++ b/kubernetes/docs/V1DeviceAttribute.md @@ -0,0 +1,17 @@ + + +# V1DeviceAttribute + +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/V1DeviceCapacity.md b/kubernetes/docs/V1DeviceCapacity.md new file mode 100644 index 0000000000..b9325fda91 --- /dev/null +++ b/kubernetes/docs/V1DeviceCapacity.md @@ -0,0 +1,15 @@ + + +# V1DeviceCapacity + +DeviceCapacity describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requestPolicy** | [**V1CapacityRequestPolicy**](V1CapacityRequestPolicy.md) | | [optional] | +|**value** | **Quantity** | 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/V1DeviceClaim.md b/kubernetes/docs/V1DeviceClaim.md new file mode 100644 index 0000000000..7faa441fa8 --- /dev/null +++ b/kubernetes/docs/V1DeviceClaim.md @@ -0,0 +1,16 @@ + + +# V1DeviceClaim + +DeviceClaim defines how to request devices with a ResourceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**List<V1DeviceClaimConfiguration>**](V1DeviceClaimConfiguration.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<V1DeviceConstraint>**](V1DeviceConstraint.md) | These constraints must be satisfied by the set of devices that get allocated for the claim. | [optional] | +|**requests** | [**List<V1DeviceRequest>**](V1DeviceRequest.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/V1DeviceClaimConfiguration.md b/kubernetes/docs/V1DeviceClaimConfiguration.md new file mode 100644 index 0000000000..fec6444c00 --- /dev/null +++ b/kubernetes/docs/V1DeviceClaimConfiguration.md @@ -0,0 +1,15 @@ + + +# V1DeviceClaimConfiguration + +DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**opaque** | [**V1OpaqueDeviceConfiguration**](V1OpaqueDeviceConfiguration.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/V1DeviceClass.md b/kubernetes/docs/V1DeviceClass.md new file mode 100644 index 0000000000..f0ffa5ee67 --- /dev/null +++ b/kubernetes/docs/V1DeviceClass.md @@ -0,0 +1,21 @@ + + +# V1DeviceClass + +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** | [**V1DeviceClassSpec**](V1DeviceClassSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1DeviceClassConfiguration.md b/kubernetes/docs/V1DeviceClassConfiguration.md new file mode 100644 index 0000000000..618512ba04 --- /dev/null +++ b/kubernetes/docs/V1DeviceClassConfiguration.md @@ -0,0 +1,14 @@ + + +# V1DeviceClassConfiguration + +DeviceClassConfiguration is used in DeviceClass. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**opaque** | [**V1OpaqueDeviceConfiguration**](V1OpaqueDeviceConfiguration.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1DeviceClassList.md b/kubernetes/docs/V1DeviceClassList.md new file mode 100644 index 0000000000..5a488af757 --- /dev/null +++ b/kubernetes/docs/V1DeviceClassList.md @@ -0,0 +1,21 @@ + + +# V1DeviceClassList + +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<V1DeviceClass>**](V1DeviceClass.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/V1DeviceClassSpec.md b/kubernetes/docs/V1DeviceClassSpec.md new file mode 100644 index 0000000000..0cc21347f6 --- /dev/null +++ b/kubernetes/docs/V1DeviceClassSpec.md @@ -0,0 +1,16 @@ + + +# V1DeviceClassSpec + +DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**List<V1DeviceClassConfiguration>**](V1DeviceClassConfiguration.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] | +|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. | [optional] | +|**selectors** | [**List<V1DeviceSelector>**](V1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] | + + + diff --git a/kubernetes/docs/V1DeviceConstraint.md b/kubernetes/docs/V1DeviceConstraint.md new file mode 100644 index 0000000000..e6f4be0393 --- /dev/null +++ b/kubernetes/docs/V1DeviceConstraint.md @@ -0,0 +1,16 @@ + + +# V1DeviceConstraint + +DeviceConstraint must have exactly one field set besides Requests. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. | [optional] | +|**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/V1DeviceCounterConsumption.md b/kubernetes/docs/V1DeviceCounterConsumption.md new file mode 100644 index 0000000000..caf72e2898 --- /dev/null +++ b/kubernetes/docs/V1DeviceCounterConsumption.md @@ -0,0 +1,15 @@ + + +# V1DeviceCounterConsumption + +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, V1Counter>**](V1Counter.md) | Counters defines the counters that will be consumed by the device. The maximum number of counters is 32. | | + + + diff --git a/kubernetes/docs/V1DeviceRequest.md b/kubernetes/docs/V1DeviceRequest.md new file mode 100644 index 0000000000..8f79dbc9b8 --- /dev/null +++ b/kubernetes/docs/V1DeviceRequest.md @@ -0,0 +1,16 @@ + + +# V1DeviceRequest + +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** | [**V1ExactDeviceRequest**](V1ExactDeviceRequest.md) | | [optional] | +|**firstAvailable** | [**List<V1DeviceSubRequest>**](V1DeviceSubRequest.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/V1DeviceRequestAllocationResult.md b/kubernetes/docs/V1DeviceRequestAllocationResult.md new file mode 100644 index 0000000000..1be336c294 --- /dev/null +++ b/kubernetes/docs/V1DeviceRequestAllocationResult.md @@ -0,0 +1,23 @@ + + +# V1DeviceRequestAllocationResult + +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] | +|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**consumedCapacity** | **Map<String, Quantity>** | ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. | [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. It should use only lower case characters. | | +|**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. | | +|**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. | [optional] | +|**tolerations** | [**List<V1DeviceToleration>**](V1DeviceToleration.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/V1DeviceSelector.md b/kubernetes/docs/V1DeviceSelector.md new file mode 100644 index 0000000000..deb374209b --- /dev/null +++ b/kubernetes/docs/V1DeviceSelector.md @@ -0,0 +1,14 @@ + + +# V1DeviceSelector + +DeviceSelector must have exactly one field set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cel** | [**V1CELDeviceSelector**](V1CELDeviceSelector.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1DeviceSubRequest.md b/kubernetes/docs/V1DeviceSubRequest.md new file mode 100644 index 0000000000..6a273e1a47 --- /dev/null +++ b/kubernetes/docs/V1DeviceSubRequest.md @@ -0,0 +1,20 @@ + + +# V1DeviceSubRequest + +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] | +|**capacity** | [**V1CapacityRequirements**](V1CapacityRequirements.md) | | [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<V1DeviceSelector>**](V1DeviceSelector.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<V1DeviceToleration>**](V1DeviceToleration.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/V1DeviceTaint.md b/kubernetes/docs/V1DeviceTaint.md new file mode 100644 index 0000000000..1a589a2c24 --- /dev/null +++ b/kubernetes/docs/V1DeviceTaint.md @@ -0,0 +1,17 @@ + + +# V1DeviceTaint + +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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. | | +|**key** | **String** | The taint key to be applied to a device. Must be a label name. | | +|**timeAdded** | **OffsetDateTime** | 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/V1DeviceToleration.md b/kubernetes/docs/V1DeviceToleration.md new file mode 100644 index 0000000000..ee244bcb8a --- /dev/null +++ b/kubernetes/docs/V1DeviceToleration.md @@ -0,0 +1,18 @@ + + +# V1DeviceToleration + +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/V1Endpoint.md b/kubernetes/docs/V1Endpoint.md index e469d5cbda..8870a6aac3 100644 --- a/kubernetes/docs/V1Endpoint.md +++ b/kubernetes/docs/V1Endpoint.md @@ -8,7 +8,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 1457e7ab22..123653dda9 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 diff --git a/kubernetes/docs/V1EndpointConditions.md b/kubernetes/docs/V1EndpointConditions.md index 0d795e96ac..adbd6989dd 100644 --- a/kubernetes/docs/V1EndpointConditions.md +++ b/kubernetes/docs/V1EndpointConditions.md @@ -8,9 +8,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 2aa8c0ae7a..9dd3428664 100644 --- a/kubernetes/docs/V1EndpointHints.md +++ b/kubernetes/docs/V1EndpointHints.md @@ -8,7 +8,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. | [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 0563082c50..28c2dc9aaa 100644 --- a/kubernetes/docs/V1EndpointSlice.md +++ b/kubernetes/docs/V1EndpointSlice.md @@ -2,18 +2,18 @@ # 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 34936ddf7b..dd167ff16e 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 diff --git a/kubernetes/docs/V1Endpoints.md b/kubernetes/docs/V1Endpoints.md index 7dc12aca94..26acec75a9 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 diff --git a/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md index 1fbf60ed0f..78d9df4b88 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 diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md index 7f1c52056e..31bd2fe641 100644 --- a/kubernetes/docs/V1EnvFromSource.md +++ b/kubernetes/docs/V1EnvFromSource.md @@ -2,14 +2,14 @@ # 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. May consist of any printable ASCII characters except '='. | [optional] | |**secretRef** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | | [optional] | diff --git a/kubernetes/docs/V1EnvVar.md b/kubernetes/docs/V1EnvVar.md index 79a982c0c5..456183171c 100644 --- a/kubernetes/docs/V1EnvVar.md +++ b/kubernetes/docs/V1EnvVar.md @@ -8,7 +8,7 @@ EnvVar represents an environment variable present in a Container. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name of the environment variable. Must be a C_IDENTIFIER. | | +|**name** | **String** | Name of the environment variable. May consist of any printable ASCII characters except '='. | | |**value** | **String** | 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 \"\". | [optional] | |**valueFrom** | [**V1EnvVarSource**](V1EnvVarSource.md) | | [optional] | diff --git a/kubernetes/docs/V1EnvVarSource.md b/kubernetes/docs/V1EnvVarSource.md index ddd859842f..c0415528ea 100644 --- a/kubernetes/docs/V1EnvVarSource.md +++ b/kubernetes/docs/V1EnvVarSource.md @@ -10,6 +10,7 @@ EnvVarSource represents a source for the value of an EnvVar. |------------ | ------------- | ------------- | -------------| |**configMapKeyRef** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | | [optional] | |**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] | +|**fileKeyRef** | [**V1FileKeySelector**](V1FileKeySelector.md) | | [optional] | |**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] | |**secretKeyRef** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | | [optional] | diff --git a/kubernetes/docs/V1EphemeralContainer.md b/kubernetes/docs/V1EphemeralContainer.md index 1e93bcb95c..3185b2af82 100644 --- a/kubernetes/docs/V1EphemeralContainer.md +++ b/kubernetes/docs/V1EphemeralContainer.md @@ -11,7 +11,7 @@ An EphemeralContainer is a temporary container that you may add to an existing P |**args** | **List<String>** | 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 | [optional] | |**command** | **List<String>** | 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 | [optional] | |**env** | [**List<V1EnvVar>**](V1EnvVar.md) | List of environment variables to set in the container. Cannot be updated. | [optional] | -|**envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | 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. | [optional] | +|**envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. 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. | [optional] | |**image** | **String** | Container image name. More info: https://kubernetes.io/docs/concepts/containers/images | [optional] | |**imagePullPolicy** | **String** | 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 | [optional] | |**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | | [optional] | @@ -21,7 +21,8 @@ An EphemeralContainer is a temporary container that you may add to an existing P |**readinessProbe** | [**V1Probe**](V1Probe.md) | | [optional] | |**resizePolicy** | [**List<V1ContainerResizePolicy>**](V1ContainerResizePolicy.md) | Resources resize policy for the container. | [optional] | |**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] | -|**restartPolicy** | **String** | 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. | [optional] | +|**restartPolicy** | **String** | Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers. | [optional] | +|**restartPolicyRules** | [**List<V1ContainerRestartRule>**](V1ContainerRestartRule.md) | Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers. | [optional] | |**securityContext** | [**V1SecurityContext**](V1SecurityContext.md) | | [optional] | |**startupProbe** | [**V1Probe**](V1Probe.md) | | [optional] | |**stdin** | **Boolean** | 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. | [optional] | diff --git a/kubernetes/docs/V1ExactDeviceRequest.md b/kubernetes/docs/V1ExactDeviceRequest.md new file mode 100644 index 0000000000..51adf6d6af --- /dev/null +++ b/kubernetes/docs/V1ExactDeviceRequest.md @@ -0,0 +1,20 @@ + + +# V1ExactDeviceRequest + +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] | +|**capacity** | [**V1CapacityRequirements**](V1CapacityRequirements.md) | | [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<V1DeviceSelector>**](V1DeviceSelector.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<V1DeviceToleration>**](V1DeviceToleration.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/V1FieldSelectorAttributes.md b/kubernetes/docs/V1FieldSelectorAttributes.md new file mode 100644 index 0000000000..0c5a9cd3c2 --- /dev/null +++ b/kubernetes/docs/V1FieldSelectorAttributes.md @@ -0,0 +1,15 @@ + + +# 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..9dea604d63 --- /dev/null +++ b/kubernetes/docs/V1FieldSelectorRequirement.md @@ -0,0 +1,16 @@ + + +# 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/V1FileKeySelector.md b/kubernetes/docs/V1FileKeySelector.md new file mode 100644 index 0000000000..d87803aa82 --- /dev/null +++ b/kubernetes/docs/V1FileKeySelector.md @@ -0,0 +1,17 @@ + + +# V1FileKeySelector + +FileKeySelector selects a key of the env file. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters. | | +|**optional** | **Boolean** | Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. If optional is set to false and the specified key does not exist, an error will be returned during Pod creation. | [optional] | +|**path** | **String** | The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'. | | +|**volumeName** | **String** | The name of the volume mount containing the env file. | | + + + diff --git a/kubernetes/docs/V1ForNode.md b/kubernetes/docs/V1ForNode.md new file mode 100644 index 0000000000..cb88337f9f --- /dev/null +++ b/kubernetes/docs/V1ForNode.md @@ -0,0 +1,14 @@ + + +# 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 d54ce342ee..30dea67b29 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 diff --git a/kubernetes/docs/V1GlusterfsVolumeSource.md b/kubernetes/docs/V1GlusterfsVolumeSource.md index 46fc1a64f3..147bace76c 100644 --- a/kubernetes/docs/V1GlusterfsVolumeSource.md +++ b/kubernetes/docs/V1GlusterfsVolumeSource.md @@ -8,7 +8,7 @@ Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**endpoints** | **String** | endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | +|**endpoints** | **String** | endpoints is the endpoint name that details Glusterfs topology. | | |**path** | **String** | path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | | |**readOnly** | **Boolean** | 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 | [optional] | diff --git a/kubernetes/docs/V1GroupResource.md b/kubernetes/docs/V1GroupResource.md new file mode 100644 index 0000000000..ebac610c0e --- /dev/null +++ b/kubernetes/docs/V1GroupResource.md @@ -0,0 +1,15 @@ + + +# V1GroupResource + +GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**group** | **String** | | | +|**resource** | **String** | | | + + + diff --git a/kubernetes/docs/V1IPAddress.md b/kubernetes/docs/V1IPAddress.md new file mode 100644 index 0000000000..586f0c8179 --- /dev/null +++ b/kubernetes/docs/V1IPAddress.md @@ -0,0 +1,21 @@ + + +# 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..e56b897729 --- /dev/null +++ b/kubernetes/docs/V1IPAddressList.md @@ -0,0 +1,21 @@ + + +# 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..8bee69d474 --- /dev/null +++ b/kubernetes/docs/V1IPAddressSpec.md @@ -0,0 +1,14 @@ + + +# 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..fadc718b7b --- /dev/null +++ b/kubernetes/docs/V1ImageVolumeSource.md @@ -0,0 +1,15 @@ + + +# 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 2e95694616..43a9325d31 100644 --- a/kubernetes/docs/V1JSONSchemaProps.md +++ b/kubernetes/docs/V1JSONSchemaProps.md @@ -23,7 +23,7 @@ JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-sc |**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** | JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. | [optional] | |**maxItems** | **Long** | | [optional] | @@ -51,7 +51,7 @@ JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-sc |**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 892c20b786..3335e4b2a3 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -9,16 +9,16 @@ JobSpec describes how the job execution will look like. | 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 beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). | [optional] | +|**backoffLimit** | **Integer** | Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647. | [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 64 characters. This field is alpha-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (disabled by default). | [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. | [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 beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled 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 beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. | [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. | [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] | diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index 4a030df111..0a1805c1a1 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -13,8 +13,8 @@ JobStatus represents the current state of a Job. |**completionTime** | **OffsetDateTime** | 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. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). | [optional] | -|**ready** | **Integer** | The number of pods which have a Ready condition. | [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** | 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] | diff --git a/kubernetes/docs/V1LabelSelectorAttributes.md b/kubernetes/docs/V1LabelSelectorAttributes.md new file mode 100644 index 0000000000..d90d3e670c --- /dev/null +++ b/kubernetes/docs/V1LabelSelectorAttributes.md @@ -0,0 +1,15 @@ + + +# 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 be25cf70b8..6fdf72a6bd 100644 --- a/kubernetes/docs/V1LeaseSpec.md +++ b/kubernetes/docs/V1LeaseSpec.md @@ -9,10 +9,12 @@ LeaseSpec is a specification of a Lease. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**acquireTime** | **OffsetDateTime** | 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** | 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 905ae7f481..e911f4d777 100644 --- a/kubernetes/docs/V1Lifecycle.md +++ b/kubernetes/docs/V1Lifecycle.md @@ -10,6 +10,7 @@ Lifecycle describes actions that the management system should take in response t |------------ | ------------- | ------------- | -------------| |**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/V1LinuxContainerUser.md b/kubernetes/docs/V1LinuxContainerUser.md new file mode 100644 index 0000000000..3b778999cd --- /dev/null +++ b/kubernetes/docs/V1LinuxContainerUser.md @@ -0,0 +1,16 @@ + + +# 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/V1LocalVolumeSource.md b/kubernetes/docs/V1LocalVolumeSource.md index 3ef137bf8c..57cd843c3a 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 diff --git a/kubernetes/docs/V1NamespaceCondition.md b/kubernetes/docs/V1NamespaceCondition.md index 13da093457..568490a21b 100644 --- a/kubernetes/docs/V1NamespaceCondition.md +++ b/kubernetes/docs/V1NamespaceCondition.md @@ -8,9 +8,9 @@ NamespaceCondition contains details about state of namespace. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**lastTransitionTime** | **OffsetDateTime** | 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** | 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/V1NetworkDeviceData.md b/kubernetes/docs/V1NetworkDeviceData.md new file mode 100644 index 0000000000..615c19bdf8 --- /dev/null +++ b/kubernetes/docs/V1NetworkDeviceData.md @@ -0,0 +1,16 @@ + + +# V1NetworkDeviceData + +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/V1NetworkPolicySpec.md b/kubernetes/docs/V1NetworkPolicySpec.md index 5bea94c9d0..3fa6356894 100644 --- a/kubernetes/docs/V1NetworkPolicySpec.md +++ b/kubernetes/docs/V1NetworkPolicySpec.md @@ -10,7 +10,7 @@ NetworkPolicySpec provides the specification of a NetworkPolicy |------------ | ------------- | ------------- | -------------| |**egress** | [**List<V1NetworkPolicyEgressRule>**](V1NetworkPolicyEgressRule.md) | 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 | [optional] | |**ingress** | [**List<V1NetworkPolicyIngressRule>**](V1NetworkPolicyIngressRule.md) | 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) | [optional] | -|**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | | +|**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**policyTypes** | **List<String>** | 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 | [optional] | diff --git a/kubernetes/docs/V1NodeFeatures.md b/kubernetes/docs/V1NodeFeatures.md new file mode 100644 index 0000000000..832dd9efba --- /dev/null +++ b/kubernetes/docs/V1NodeFeatures.md @@ -0,0 +1,14 @@ + + +# 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/V1NodeRuntimeHandlerFeatures.md b/kubernetes/docs/V1NodeRuntimeHandlerFeatures.md index 61e4700bd4..45d9a0e4d4 100644 --- a/kubernetes/docs/V1NodeRuntimeHandlerFeatures.md +++ b/kubernetes/docs/V1NodeRuntimeHandlerFeatures.md @@ -2,13 +2,14 @@ # V1NodeRuntimeHandlerFeatures -NodeRuntimeHandlerFeatures is a set of runtime features. +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 fc23a110d9..a988676ee4 100644 --- a/kubernetes/docs/V1NodeStatus.md +++ b/kubernetes/docs/V1NodeStatus.md @@ -8,12 +8,14 @@ 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>** | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] | -|**capacity** | **Map<String, Quantity>** | 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>** | 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] | +|**declaredFeatures** | **List<String>** | DeclaredFeatures represents the features related to feature gates that are declared by the node. | [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] | diff --git a/kubernetes/docs/V1NodeSwapStatus.md b/kubernetes/docs/V1NodeSwapStatus.md new file mode 100644 index 0000000000..b5d1e34c26 --- /dev/null +++ b/kubernetes/docs/V1NodeSwapStatus.md @@ -0,0 +1,14 @@ + + +# 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 6856b69977..14022021cc 100644 --- a/kubernetes/docs/V1NodeSystemInfo.md +++ b/kubernetes/docs/V1NodeSystemInfo.md @@ -12,11 +12,12 @@ NodeSystemInfo is a set of ids/uuids to uniquely identify the node. |**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/V1OpaqueDeviceConfiguration.md b/kubernetes/docs/V1OpaqueDeviceConfiguration.md new file mode 100644 index 0000000000..de37320850 --- /dev/null +++ b/kubernetes/docs/V1OpaqueDeviceConfiguration.md @@ -0,0 +1,15 @@ + + +# V1OpaqueDeviceConfiguration + +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. It should use only lower case characters. | | +|**parameters** | **Object** | 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/V1ParentReference.md b/kubernetes/docs/V1ParentReference.md new file mode 100644 index 0000000000..bf27e3dce3 --- /dev/null +++ b/kubernetes/docs/V1ParentReference.md @@ -0,0 +1,17 @@ + + +# 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 b46bfc5632..1b0ecdca69 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimCondition.md +++ b/kubernetes/docs/V1PersistentVolumeClaimCondition.md @@ -12,8 +12,8 @@ PersistentVolumeClaimCondition contains details about state of pvc |**lastTransitionTime** | **OffsetDateTime** | 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 \"Resizing\" that means the underlying persistent volume is being resized. | [optional] | -|**status** | **String** | | | -|**type** | **String** | | | +|**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 e08aace50a..cd400138d4 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -14,7 +14,7 @@ PersistentVolumeClaimSpec describes the common attributes of storage devices and |**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/ (Alpha) Using this field requires the VolumeAttributesClass feature gate to be enabled. | [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 or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. 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/ | [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 5d0abd6729..67f03639f8 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -9,11 +9,11 @@ PersistentVolumeClaimStatus is the current status of a persistent volume claim. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**accessModes** | **List<String>** | 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 | [optional] | -|**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>** | 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] | +|**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. | [optional] | +|**allocatedResources** | **Map<String, Quantity>** | 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. | [optional] | |**capacity** | **Map<String, Quantity>** | 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 '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 an alpha field and requires enabling VolumeAttributesClass feature. | [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 | [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 91b5309602..6c0a5fcad5 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -36,7 +36,7 @@ PersistentVolumeSpec is the specification of a persistent volume. |**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 an alpha field and requires enabling VolumeAttributesClass feature. | [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. | [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 19879c3638..dd0e2bb758 100644 --- a/kubernetes/docs/V1PersistentVolumeStatus.md +++ b/kubernetes/docs/V1PersistentVolumeStatus.md @@ -8,7 +8,7 @@ PersistentVolumeStatus is the current status of a persistent volume. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**lastPhaseTransitionTime** | **OffsetDateTime** | lastPhaseTransitionTime is the time the phase transitioned from one to another and automatically resets to current time everytime a volume phase transitions. This is a beta field and requires the PersistentVolumeLastPhaseTransitionTime feature to be enabled (enabled by default). | [optional] | +|**lastPhaseTransitionTime** | **OffsetDateTime** | 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 bbd6804e15..917abaa82c 100644 --- a/kubernetes/docs/V1PodAffinityTerm.md +++ b/kubernetes/docs/V1PodAffinityTerm.md @@ -9,8 +9,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. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. | [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. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate. | [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/V1PodAntiAffinity.md b/kubernetes/docs/V1PodAntiAffinity.md index c329dadf0a..ad3360a0b1 100644 --- a/kubernetes/docs/V1PodAntiAffinity.md +++ b/kubernetes/docs/V1PodAntiAffinity.md @@ -8,7 +8,7 @@ Pod anti affinity is a group of inter pod anti affinity scheduling rules. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | 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. | [optional] | +|**preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | 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 subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] | |**requiredDuringSchedulingIgnoredDuringExecution** | [**List<V1PodAffinityTerm>**](V1PodAffinityTerm.md) | 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. | [optional] | diff --git a/kubernetes/docs/V1PodCertificateProjection.md b/kubernetes/docs/V1PodCertificateProjection.md new file mode 100644 index 0000000000..66b7fe023d --- /dev/null +++ b/kubernetes/docs/V1PodCertificateProjection.md @@ -0,0 +1,20 @@ + + +# V1PodCertificateProjection + +PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**certificateChainPath** | **String** | Write the certificate chain at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. | [optional] | +|**credentialBundlePath** | **String** | Write the credential bundle at this path in the projected volume. The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key. | [optional] | +|**keyPath** | **String** | Write the key at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. | [optional] | +|**keyType** | **String** | The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\". | | +|**maxExpirationSeconds** | **Integer** | maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. | [optional] | +|**signerName** | **String** | Kubelet's generated CSRs will be addressed to this signer. | | +|**userAnnotations** | **Map<String, String>** | userAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. These values are copied verbatim into the `spec.unverifiedUserAnnotations` field of the PodCertificateRequest objects that Kubelet creates. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. | [optional] | + + + diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index 70dc83153f..6504f74d53 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -11,6 +11,7 @@ PodCondition contains details for the current condition of this pod. |**lastProbeTime** | **OffsetDateTime** | Last time we probed the condition. | [optional] | |**lastTransitionTime** | **OffsetDateTime** | 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. The PodObservedGenerationTracking feature gate must be enabled 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 839e2a282f..6be9c441a7 100644 --- a/kubernetes/docs/V1PodDNSConfigOption.md +++ b/kubernetes/docs/V1PodDNSConfigOption.md @@ -8,8 +8,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 2d9be30375..78bd727538 100644 --- a/kubernetes/docs/V1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1PodDisruptionBudgetSpec.md @@ -11,7 +11,7 @@ PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. |**maxUnavailable** | **IntOrString** | 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 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/V1PodExtendedResourceClaimStatus.md b/kubernetes/docs/V1PodExtendedResourceClaimStatus.md new file mode 100644 index 0000000000..0d32720007 --- /dev/null +++ b/kubernetes/docs/V1PodExtendedResourceClaimStatus.md @@ -0,0 +1,15 @@ + + +# V1PodExtendedResourceClaimStatus + +PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requestMappings** | [**List<V1ContainerExtendedResourceRequest>**](V1ContainerExtendedResourceRequest.md) | RequestMappings identifies the mapping of <container, extended resource backed by DRA> to device request in the generated ResourceClaim. | | +|**resourceClaimName** | **String** | ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. | | + + + diff --git a/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md b/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md index b525c653d6..609492fccd 100644 --- a/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md +++ b/kubernetes/docs/V1PodFailurePolicyOnPodConditionsPattern.md @@ -8,7 +8,7 @@ PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actua | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**status** | **String** | 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. | | +|**status** | **String** | 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. | [optional] | |**type** | **String** | Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. | | diff --git a/kubernetes/docs/V1PodFailurePolicyRule.md b/kubernetes/docs/V1PodFailurePolicyRule.md index 9a65f595ce..bdf6816aa3 100644 --- a/kubernetes/docs/V1PodFailurePolicyRule.md +++ b/kubernetes/docs/V1PodFailurePolicyRule.md @@ -8,7 +8,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 beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default). - Ignore: indicates that the counter towards the .backoffLimit is not incremented and a replacement pod is created. - Count: indicates that the pod is handled in the default way - the counter towards the .backoffLimit is incremented. Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. | | +|**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/V1PodResourceClaim.md b/kubernetes/docs/V1PodResourceClaim.md index 385759daef..72efeffcb3 100644 --- a/kubernetes/docs/V1PodResourceClaim.md +++ b/kubernetes/docs/V1PodResourceClaim.md @@ -2,14 +2,15 @@ # 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 59eed2f99c..a46fd3d957 100644 --- a/kubernetes/docs/V1PodResourceClaimStatus.md +++ b/kubernetes/docs/V1PodResourceClaimStatus.md @@ -9,7 +9,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 2c272287ed..106bbf451c 100644 --- a/kubernetes/docs/V1PodSecurityContext.md +++ b/kubernetes/docs/V1PodSecurityContext.md @@ -14,9 +14,11 @@ PodSecurityContext holds pod-level security attributes and common container sett |**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 c903ad3ba6..8786d0c9a9 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -18,13 +18,14 @@ PodSpec is a description of a pod. |**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. | [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] | +|**hostNetwork** | **Boolean** | Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. 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] | +|**hostnameOverride** | **String** | HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. | [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>** | 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,7 +33,8 @@ PodSpec is a description of a pod. |**priority** | **Integer** | 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. | [optional] | |**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] | +|**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 a stable field but requires that the DynamicResourceAllocation feature gate is enabled. 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] | @@ -40,13 +42,14 @@ PodSpec is a description of a pod. |**securityContext** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | | [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] | |**tolerations** | [**List<V1Toleration>**](V1Toleration.md) | If specified, the pod's tolerations. | [optional] | |**topologySpreadConstraints** | [**List<V1TopologySpreadConstraint>**](V1TopologySpreadConstraint.md) | 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. | [optional] | |**volumes** | [**List<V1Volume>**](V1Volume.md) | List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes | [optional] | +|**workloadRef** | [**V1WorkloadReference**](V1WorkloadReference.md) | | [optional] | diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 92ecd0ac1a..5bef6d5628 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -8,21 +8,25 @@ PodStatus represents information about the status of a pod. Status may trail the | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**allocatedResources** | **Map<String, Quantity>** | AllocatedResources is the total requests allocated for this pod by the node. If pod-level requests are not set, this will be the total requests aggregated across containers in the pod. | [optional] | |**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] | +|**extendedResourceClaimStatus** | [**V1PodExtendedResourceClaimStatus**](V1PodExtendedResourceClaimStatus.md) | | [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. The PodObservedGenerationTracking feature gate must be enabled 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] | +|**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] | |**startTime** | **OffsetDateTime** | 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/V1PortStatus.md b/kubernetes/docs/V1PortStatus.md index 7368c43602..7ba4a49b25 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 diff --git a/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md index 7efe09e7c7..d442a88a8c 100644 --- a/kubernetes/docs/V1ProjectedVolumeSource.md +++ b/kubernetes/docs/V1ProjectedVolumeSource.md @@ -9,7 +9,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/V1ReplicaSetList.md b/kubernetes/docs/V1ReplicaSetList.md index 94be8888b5..39475af991 100644 --- a/kubernetes/docs/V1ReplicaSetList.md +++ b/kubernetes/docs/V1ReplicaSetList.md @@ -9,7 +9,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 159561a0fa..6dc3bfa36b 100644 --- a/kubernetes/docs/V1ReplicaSetSpec.md +++ b/kubernetes/docs/V1ReplicaSetSpec.md @@ -9,7 +9,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 e6c53e2336..5b6c6c9453 100644 --- a/kubernetes/docs/V1ReplicaSetStatus.md +++ b/kubernetes/docs/V1ReplicaSetStatus.md @@ -8,12 +8,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 a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default). | [optional] | diff --git a/kubernetes/docs/V1ResourceAttributes.md b/kubernetes/docs/V1ResourceAttributes.md index 64be5ad806..2b148aaea9 100644 --- a/kubernetes/docs/V1ResourceAttributes.md +++ b/kubernetes/docs/V1ResourceAttributes.md @@ -8,7 +8,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 deleted file mode 100644 index 2d72f664c3..0000000000 --- a/kubernetes/docs/V1ResourceClaim.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1ResourceClaim - -ResourceClaim references one entry in PodSpec.ResourceClaims. - -## Properties - -| 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. | | - - - diff --git a/kubernetes/docs/V1ResourceClaimConsumerReference.md b/kubernetes/docs/V1ResourceClaimConsumerReference.md new file mode 100644 index 0000000000..e6f512c271 --- /dev/null +++ b/kubernetes/docs/V1ResourceClaimConsumerReference.md @@ -0,0 +1,17 @@ + + +# V1ResourceClaimConsumerReference + +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/V1ResourceClaimList.md b/kubernetes/docs/V1ResourceClaimList.md new file mode 100644 index 0000000000..6522197cc0 --- /dev/null +++ b/kubernetes/docs/V1ResourceClaimList.md @@ -0,0 +1,21 @@ + + +# V1ResourceClaimList + +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<ResourceV1ResourceClaim>**](ResourceV1ResourceClaim.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/V1ResourceClaimSpec.md b/kubernetes/docs/V1ResourceClaimSpec.md new file mode 100644 index 0000000000..d13f78224d --- /dev/null +++ b/kubernetes/docs/V1ResourceClaimSpec.md @@ -0,0 +1,14 @@ + + +# V1ResourceClaimSpec + +ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**devices** | [**V1DeviceClaim**](V1DeviceClaim.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1ResourceClaimStatus.md b/kubernetes/docs/V1ResourceClaimStatus.md new file mode 100644 index 0000000000..0cf08f1641 --- /dev/null +++ b/kubernetes/docs/V1ResourceClaimStatus.md @@ -0,0 +1,16 @@ + + +# V1ResourceClaimStatus + +ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocation** | [**V1AllocationResult**](V1AllocationResult.md) | | [optional] | +|**devices** | [**List<V1AllocatedDeviceStatus>**](V1AllocatedDeviceStatus.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<V1ResourceClaimConsumerReference>**](V1ResourceClaimConsumerReference.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/V1ResourceClaimTemplate.md b/kubernetes/docs/V1ResourceClaimTemplate.md new file mode 100644 index 0000000000..8657b2e719 --- /dev/null +++ b/kubernetes/docs/V1ResourceClaimTemplate.md @@ -0,0 +1,21 @@ + + +# V1ResourceClaimTemplate + +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** | [**V1ResourceClaimTemplateSpec**](V1ResourceClaimTemplateSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1ResourceClaimTemplateList.md b/kubernetes/docs/V1ResourceClaimTemplateList.md new file mode 100644 index 0000000000..08808e82d1 --- /dev/null +++ b/kubernetes/docs/V1ResourceClaimTemplateList.md @@ -0,0 +1,21 @@ + + +# V1ResourceClaimTemplateList + +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<V1ResourceClaimTemplate>**](V1ResourceClaimTemplate.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/V1ResourceClaimTemplateSpec.md b/kubernetes/docs/V1ResourceClaimTemplateSpec.md new file mode 100644 index 0000000000..7919a13bdf --- /dev/null +++ b/kubernetes/docs/V1ResourceClaimTemplateSpec.md @@ -0,0 +1,15 @@ + + +# V1ResourceClaimTemplateSpec + +ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1ResourceClaimSpec**](V1ResourceClaimSpec.md) | | | + + + diff --git a/kubernetes/docs/V1ResourceHealth.md b/kubernetes/docs/V1ResourceHealth.md new file mode 100644 index 0000000000..beb51e3178 --- /dev/null +++ b/kubernetes/docs/V1ResourceHealth.md @@ -0,0 +1,15 @@ + + +# 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/V1ResourcePool.md b/kubernetes/docs/V1ResourcePool.md new file mode 100644 index 0000000000..bab3e82ed5 --- /dev/null +++ b/kubernetes/docs/V1ResourcePool.md @@ -0,0 +1,16 @@ + + +# V1ResourcePool + +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/V1ResourceRequirements.md b/kubernetes/docs/V1ResourceRequirements.md index 29f077e454..53ec2ee6c8 100644 --- a/kubernetes/docs/V1ResourceRequirements.md +++ b/kubernetes/docs/V1ResourceRequirements.md @@ -8,7 +8,7 @@ ResourceRequirements describes the compute resource requirements. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**claims** | [**List<V1ResourceClaim>**](V1ResourceClaim.md) | 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. | [optional] | +|**claims** | [**List<CoreV1ResourceClaim>**](CoreV1ResourceClaim.md) | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This field depends on the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. | [optional] | |**limits** | **Map<String, Quantity>** | 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>** | 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/V1ResourceSlice.md b/kubernetes/docs/V1ResourceSlice.md new file mode 100644 index 0000000000..79f8b3293f --- /dev/null +++ b/kubernetes/docs/V1ResourceSlice.md @@ -0,0 +1,21 @@ + + +# V1ResourceSlice + +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** | [**V1ResourceSliceSpec**](V1ResourceSliceSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1ResourceSliceList.md b/kubernetes/docs/V1ResourceSliceList.md new file mode 100644 index 0000000000..0fc73ddad3 --- /dev/null +++ b/kubernetes/docs/V1ResourceSliceList.md @@ -0,0 +1,21 @@ + + +# V1ResourceSliceList + +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<V1ResourceSlice>**](V1ResourceSlice.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/V1ResourceSliceSpec.md b/kubernetes/docs/V1ResourceSliceSpec.md new file mode 100644 index 0000000000..e568e7056d --- /dev/null +++ b/kubernetes/docs/V1ResourceSliceSpec.md @@ -0,0 +1,21 @@ + + +# V1ResourceSliceSpec + +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<V1Device>**](V1Device.md) | Devices lists some or all of the devices in this pool. Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64. Only one of Devices and SharedCounters can be set in a ResourceSlice. | [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. It should use only lower case characters. 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** | [**V1ResourcePool**](V1ResourcePool.md) | | | +|**sharedCounters** | [**List<V1CounterSet>**](V1CounterSet.md) | SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the counter sets must be unique in the ResourcePool. Only one of Devices and SharedCounters can be set in a ResourceSlice. The maximum number of counter sets is 8. | [optional] | + + + diff --git a/kubernetes/docs/V1ResourceStatus.md b/kubernetes/docs/V1ResourceStatus.md new file mode 100644 index 0000000000..129b566d44 --- /dev/null +++ b/kubernetes/docs/V1ResourceStatus.md @@ -0,0 +1,15 @@ + + +# 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/V1SecurityContext.md b/kubernetes/docs/V1SecurityContext.md index 6426d224cd..18a131dda5 100644 --- a/kubernetes/docs/V1SecurityContext.md +++ b/kubernetes/docs/V1SecurityContext.md @@ -12,7 +12,7 @@ SecurityContext holds security configuration that will be applied to a container |**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/V1ServiceAccount.md b/kubernetes/docs/V1ServiceAccount.md index 5deebcd4cf..78f7495af4 100644 --- a/kubernetes/docs/V1ServiceAccount.md +++ b/kubernetes/docs/V1ServiceAccount.md @@ -13,7 +13,7 @@ ServiceAccount binds together: * a name, understood by users, and perhaps by per |**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/V1ServiceCIDR.md b/kubernetes/docs/V1ServiceCIDR.md new file mode 100644 index 0000000000..e2b265be9a --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDR.md @@ -0,0 +1,22 @@ + + +# 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..7b508246a2 --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDRList.md @@ -0,0 +1,21 @@ + + +# 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..0e4ef129be --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDRSpec.md @@ -0,0 +1,14 @@ + + +# 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..f8bae20c9b --- /dev/null +++ b/kubernetes/docs/V1ServiceCIDRStatus.md @@ -0,0 +1,14 @@ + + +# 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/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index 8135c63f86..70b2efc07d 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -26,7 +26,7 @@ ServiceSpec describes the attributes that a user creates on a service. |**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 topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature. | [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/V1StatefulSetSpec.md b/kubernetes/docs/V1StatefulSetSpec.md index b5aa66c662..88bebdf2b2 100644 --- a/kubernetes/docs/V1StatefulSetSpec.md +++ b/kubernetes/docs/V1StatefulSetSpec.md @@ -15,7 +15,7 @@ A StatefulSetSpec is the specification of a StatefulSet. |**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/V1SuccessPolicy.md b/kubernetes/docs/V1SuccessPolicy.md index 2a69aa79b0..603e12e4e7 100644 --- a/kubernetes/docs/V1SuccessPolicy.md +++ b/kubernetes/docs/V1SuccessPolicy.md @@ -8,7 +8,7 @@ SuccessPolicy describes when a Job can be declared as succeeded based on the suc | 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. | | +|**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 \"SuccessCriteriaMet\" 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/V1Taint.md b/kubernetes/docs/V1Taint.md index d6606eea07..25d9db0e29 100644 --- a/kubernetes/docs/V1Taint.md +++ b/kubernetes/docs/V1Taint.md @@ -10,7 +10,7 @@ The node this Taint is attached to has the \"effect\" on any pod that does not t |------------ | ------------- | ------------- | -------------| |**effect** | **String** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | | |**key** | **String** | Required. The taint key to be applied to a node. | | -|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. | [optional] | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. | [optional] | |**value** | **String** | The taint value corresponding to the taint key. | [optional] | diff --git a/kubernetes/docs/V1Toleration.md b/kubernetes/docs/V1Toleration.md index ef985be05c..e49b644858 100644 --- a/kubernetes/docs/V1Toleration.md +++ b/kubernetes/docs/V1Toleration.md @@ -10,7 +10,7 @@ The pod this Toleration is attached to tolerates any taint that matches the trip |------------ | ------------- | ------------- | -------------| |**effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule 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. | [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 pod can tolerate all taints of a particular category. | [optional] | +|**operator** | **String** | Operator represents a key's relationship to the value. Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators). | [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. | [optional] | |**value** | **String** | Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. | [optional] | diff --git a/kubernetes/docs/V1TopologySpreadConstraint.md b/kubernetes/docs/V1TopologySpreadConstraint.md index c8578f0e1c..797d1be962 100644 --- a/kubernetes/docs/V1TopologySpreadConstraint.md +++ b/kubernetes/docs/V1TopologySpreadConstraint.md @@ -12,8 +12,8 @@ TopologySpreadConstraint specifies how to spread matching pods among the given t |**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. | [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] | +|**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/V1TypedObjectReference.md b/kubernetes/docs/V1TypedObjectReference.md index a9cf38fd0e..4e27fc82e7 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 diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md index 069baa1eab..9e0bbf61b9 100644 --- a/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md +++ b/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md @@ -11,7 +11,7 @@ ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmis |**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] | +|**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/V1Volume.md b/kubernetes/docs/V1Volume.md index ac16b60f05..3fc9b6de2c 100644 --- a/kubernetes/docs/V1Volume.md +++ b/kubernetes/docs/V1Volume.md @@ -25,6 +25,7 @@ Volume represents a named volume in a pod that may be accessed by any container |**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 704beb236b..e05f7ea0ba 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 diff --git a/kubernetes/docs/V1VolumeAttributesClass.md b/kubernetes/docs/V1VolumeAttributesClass.md new file mode 100644 index 0000000000..a5fb09699a --- /dev/null +++ b/kubernetes/docs/V1VolumeAttributesClass.md @@ -0,0 +1,22 @@ + + +# V1VolumeAttributesClass + +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/V1VolumeAttributesClassList.md b/kubernetes/docs/V1VolumeAttributesClassList.md new file mode 100644 index 0000000000..9154b12f02 --- /dev/null +++ b/kubernetes/docs/V1VolumeAttributesClassList.md @@ -0,0 +1,21 @@ + + +# V1VolumeAttributesClassList + +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<V1VolumeAttributesClass>**](V1VolumeAttributesClass.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/V1VolumeError.md b/kubernetes/docs/V1VolumeError.md index 263cd4a036..72838aef5f 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -8,6 +8,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, beta 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** | time represents the time the error was encountered. | [optional] | diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md index 014fce0e0a..4fba00b3d2 100644 --- a/kubernetes/docs/V1VolumeProjection.md +++ b/kubernetes/docs/V1VolumeProjection.md @@ -2,7 +2,7 @@ # 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 @@ -11,6 +11,7 @@ Projection that may be projected along with other supported volume types |**clusterTrustBundle** | [**V1ClusterTrustBundleProjection**](V1ClusterTrustBundleProjection.md) | | [optional] | |**configMap** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | | [optional] | |**downwardAPI** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | | [optional] | +|**podCertificate** | [**V1PodCertificateProjection**](V1PodCertificateProjection.md) | | [optional] | |**secret** | [**V1SecretProjection**](V1SecretProjection.md) | | [optional] | |**serviceAccountToken** | [**V1ServiceAccountTokenProjection**](V1ServiceAccountTokenProjection.md) | | [optional] | diff --git a/kubernetes/docs/V1WorkloadReference.md b/kubernetes/docs/V1WorkloadReference.md new file mode 100644 index 0000000000..46299ed72a --- /dev/null +++ b/kubernetes/docs/V1WorkloadReference.md @@ -0,0 +1,16 @@ + + +# V1WorkloadReference + +WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain. | | +|**podGroup** | **String** | PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label. | | +|**podGroupReplicaKey** | **String** | PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha1ApplyConfiguration.md b/kubernetes/docs/V1alpha1ApplyConfiguration.md new file mode 100644 index 0000000000..23c3eb318b --- /dev/null +++ b/kubernetes/docs/V1alpha1ApplyConfiguration.md @@ -0,0 +1,14 @@ + + +# 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 29f9604b56..0000000000 --- a/kubernetes/docs/V1alpha1AuditAnnotation.md +++ /dev/null @@ -1,15 +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/V1alpha1ExpressionWarning.md b/kubernetes/docs/V1alpha1ExpressionWarning.md deleted file mode 100644 index d659ac1775..0000000000 --- a/kubernetes/docs/V1alpha1ExpressionWarning.md +++ /dev/null @@ -1,15 +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/V1alpha1GangSchedulingPolicy.md b/kubernetes/docs/V1alpha1GangSchedulingPolicy.md new file mode 100644 index 0000000000..eaa80989b7 --- /dev/null +++ b/kubernetes/docs/V1alpha1GangSchedulingPolicy.md @@ -0,0 +1,14 @@ + + +# V1alpha1GangSchedulingPolicy + +GangSchedulingPolicy defines the parameters for gang scheduling. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minCount** | **Integer** | MinCount is the minimum number of pods that must be schedulable or scheduled at the same time for the scheduler to admit the entire group. It must be a positive integer. | | + + + diff --git a/kubernetes/docs/V1alpha1GroupVersionResource.md b/kubernetes/docs/V1alpha1GroupVersionResource.md deleted file mode 100644 index 683e10a2d4..0000000000 --- a/kubernetes/docs/V1alpha1GroupVersionResource.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# 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 c7b3d74517..0000000000 --- a/kubernetes/docs/V1alpha1IPAddress.md +++ /dev/null @@ -1,21 +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 a87df1b682..0000000000 --- a/kubernetes/docs/V1alpha1IPAddressList.md +++ /dev/null @@ -1,21 +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 d7afb1d8c0..0000000000 --- a/kubernetes/docs/V1alpha1IPAddressSpec.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha1IPAddressSpec - -IPAddressSpec describe the attributes in an IP Address. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**parentRef** | [**V1alpha1ParentReference**](V1alpha1ParentReference.md) | | | - - - diff --git a/kubernetes/docs/V1alpha1JSONPatch.md b/kubernetes/docs/V1alpha1JSONPatch.md new file mode 100644 index 0000000000..04c47d1715 --- /dev/null +++ b/kubernetes/docs/V1alpha1JSONPatch.md @@ -0,0 +1,14 @@ + + +# 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 e357a705e5..e7e5e1e2b2 100644 --- a/kubernetes/docs/V1alpha1MatchResources.md +++ b/kubernetes/docs/V1alpha1MatchResources.md @@ -8,11 +8,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 deleted file mode 100644 index b2dda9a96c..0000000000 --- a/kubernetes/docs/V1alpha1MigrationCondition.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# V1alpha1MigrationCondition - -Describes the state of a migration at a certain point. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**lastUpdateTime** | **OffsetDateTime** | 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..403ce75c7c --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicy.md @@ -0,0 +1,21 @@ + + +# 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..e8fd99b4f3 --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBinding.md @@ -0,0 +1,21 @@ + + +# 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..a883fa622c --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBindingList.md @@ -0,0 +1,21 @@ + + +# 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..91222cdf10 --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyBindingSpec.md @@ -0,0 +1,16 @@ + + +# 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..2851fa3740 --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicyList.md @@ -0,0 +1,21 @@ + + +# 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..d481522b45 --- /dev/null +++ b/kubernetes/docs/V1alpha1MutatingAdmissionPolicySpec.md @@ -0,0 +1,20 @@ + + +# 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..a6586f8919 --- /dev/null +++ b/kubernetes/docs/V1alpha1Mutation.md @@ -0,0 +1,16 @@ + + +# 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 a6c1e93e1f..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. | | -|**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/V1alpha1PodGroup.md b/kubernetes/docs/V1alpha1PodGroup.md new file mode 100644 index 0000000000..18fe9b965e --- /dev/null +++ b/kubernetes/docs/V1alpha1PodGroup.md @@ -0,0 +1,15 @@ + + +# V1alpha1PodGroup + +PodGroup represents a set of pods with a common scheduling policy. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name is a unique identifier for the PodGroup within the Workload. It must be a DNS label. This field is immutable. | | +|**policy** | [**V1alpha1PodGroupPolicy**](V1alpha1PodGroupPolicy.md) | | | + + + diff --git a/kubernetes/docs/V1alpha1PodGroupPolicy.md b/kubernetes/docs/V1alpha1PodGroupPolicy.md new file mode 100644 index 0000000000..e5861c06ef --- /dev/null +++ b/kubernetes/docs/V1alpha1PodGroupPolicy.md @@ -0,0 +1,15 @@ + + +# V1alpha1PodGroupPolicy + +PodGroupPolicy defines the scheduling configuration for a PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**basic** | **Object** | Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. | [optional] | +|**gang** | [**V1alpha1GangSchedulingPolicy**](V1alpha1GangSchedulingPolicy.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1alpha1SelfSubjectReview.md b/kubernetes/docs/V1alpha1SelfSubjectReview.md deleted file mode 100644 index 38a1dbfa4c..0000000000 --- a/kubernetes/docs/V1alpha1SelfSubjectReview.md +++ /dev/null @@ -1,21 +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 e9547678c2..0000000000 --- a/kubernetes/docs/V1alpha1SelfSubjectReviewStatus.md +++ /dev/null @@ -1,14 +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/V1alpha1ServiceCIDR.md b/kubernetes/docs/V1alpha1ServiceCIDR.md deleted file mode 100644 index c345989bab..0000000000 --- a/kubernetes/docs/V1alpha1ServiceCIDR.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# V1alpha1ServiceCIDR - -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** | [**V1alpha1ServiceCIDRSpec**](V1alpha1ServiceCIDRSpec.md) | | [optional] | -|**status** | [**V1alpha1ServiceCIDRStatus**](V1alpha1ServiceCIDRStatus.md) | | [optional] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha1ServiceCIDRList.md b/kubernetes/docs/V1alpha1ServiceCIDRList.md deleted file mode 100644 index 8d14cc201c..0000000000 --- a/kubernetes/docs/V1alpha1ServiceCIDRList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1alpha1ServiceCIDRList - -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<V1alpha1ServiceCIDR>**](V1alpha1ServiceCIDR.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/V1alpha1ServiceCIDRSpec.md b/kubernetes/docs/V1alpha1ServiceCIDRSpec.md deleted file mode 100644 index 0c7f9bed80..0000000000 --- a/kubernetes/docs/V1alpha1ServiceCIDRSpec.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha1ServiceCIDRSpec - -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/V1alpha1ServiceCIDRStatus.md b/kubernetes/docs/V1alpha1ServiceCIDRStatus.md deleted file mode 100644 index 7ad106e0bf..0000000000 --- a/kubernetes/docs/V1alpha1ServiceCIDRStatus.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha1ServiceCIDRStatus - -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/V1alpha1StorageVersionMigration.md b/kubernetes/docs/V1alpha1StorageVersionMigration.md deleted file mode 100644 index 9d99fc5ff0..0000000000 --- a/kubernetes/docs/V1alpha1StorageVersionMigration.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# 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 deleted file mode 100644 index cb72c9388f..0000000000 --- a/kubernetes/docs/V1alpha1StorageVersionMigrationList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# 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 deleted file mode 100644 index cd9feb92b7..0000000000 --- a/kubernetes/docs/V1alpha1StorageVersionMigrationSpec.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# 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 deleted file mode 100644 index 3360db4c57..0000000000 --- a/kubernetes/docs/V1alpha1StorageVersionMigrationStatus.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# 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 d8f286e35f..0000000000 --- a/kubernetes/docs/V1alpha1TypeChecking.md +++ /dev/null @@ -1,14 +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/V1alpha1TypedLocalObjectReference.md b/kubernetes/docs/V1alpha1TypedLocalObjectReference.md new file mode 100644 index 0000000000..244b9670c0 --- /dev/null +++ b/kubernetes/docs/V1alpha1TypedLocalObjectReference.md @@ -0,0 +1,16 @@ + + +# V1alpha1TypedLocalObjectReference + +TypedLocalObjectReference allows to reference typed object inside the same namespace. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiGroup** | **String** | APIGroup is the group for the resource being referenced. If APIGroup is empty, the specified Kind must be in the core API group. For any other third-party types, setting APIGroup is required. It must be a DNS subdomain. | [optional] | +|**kind** | **String** | Kind is the type of resource being referenced. It must be a path segment name. | | +|**name** | **String** | Name is the name of resource being referenced. It must be a path segment name. | | + + + diff --git a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md b/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md deleted file mode 100644 index 6a1905b243..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicy.md +++ /dev/null @@ -1,22 +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 60c501e0e8..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBinding.md +++ /dev/null @@ -1,21 +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 0f337b45c9..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingList.md +++ /dev/null @@ -1,21 +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. | | -|**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 6b77ac416f..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyBindingSpec.md +++ /dev/null @@ -1,17 +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 aad2631452..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyList.md +++ /dev/null @@ -1,21 +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. | | -|**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 cde6b73c4b..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicySpec.md +++ /dev/null @@ -1,20 +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 057e3e8b09..0000000000 --- a/kubernetes/docs/V1alpha1ValidatingAdmissionPolicyStatus.md +++ /dev/null @@ -1,16 +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 71d8f595c4..0000000000 --- a/kubernetes/docs/V1alpha1Validation.md +++ /dev/null @@ -1,17 +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 deleted file mode 100644 index baa4c05db6..0000000000 --- a/kubernetes/docs/V1alpha1VolumeAttributesClass.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# 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 deleted file mode 100644 index f7d57358bf..0000000000 --- a/kubernetes/docs/V1alpha1VolumeAttributesClassList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# 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/V1alpha1Workload.md b/kubernetes/docs/V1alpha1Workload.md new file mode 100644 index 0000000000..526049f44d --- /dev/null +++ b/kubernetes/docs/V1alpha1Workload.md @@ -0,0 +1,21 @@ + + +# V1alpha1Workload + +Workload allows for expressing scheduling constraints that should be used when managing lifecycle of workloads from scheduling perspective, including scheduling, preemption, eviction and other phases. + +## 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** | [**V1alpha1WorkloadSpec**](V1alpha1WorkloadSpec.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha1WorkloadList.md b/kubernetes/docs/V1alpha1WorkloadList.md new file mode 100644 index 0000000000..9e53f7ecd0 --- /dev/null +++ b/kubernetes/docs/V1alpha1WorkloadList.md @@ -0,0 +1,21 @@ + + +# V1alpha1WorkloadList + +WorkloadList contains a list of Workload resources. + +## 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<V1alpha1Workload>**](V1alpha1Workload.md) | Items is the list of Workloads. | | +|**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/V1alpha1WorkloadSpec.md b/kubernetes/docs/V1alpha1WorkloadSpec.md new file mode 100644 index 0000000000..3db446f561 --- /dev/null +++ b/kubernetes/docs/V1alpha1WorkloadSpec.md @@ -0,0 +1,15 @@ + + +# V1alpha1WorkloadSpec + +WorkloadSpec defines the desired state of a Workload. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**controllerRef** | [**V1alpha1TypedLocalObjectReference**](V1alpha1TypedLocalObjectReference.md) | | [optional] | +|**podGroups** | [**List<V1alpha1PodGroup>**](V1alpha1PodGroup.md) | PodGroups is the list of pod groups that make up the Workload. The maximum number of pod groups is 8. This field is immutable. | | + + + diff --git a/kubernetes/docs/V1alpha2AllocationResult.md b/kubernetes/docs/V1alpha2AllocationResult.md deleted file mode 100644 index f731d9907f..0000000000 --- a/kubernetes/docs/V1alpha2AllocationResult.md +++ /dev/null @@ -1,16 +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/V1alpha2DriverAllocationResult.md b/kubernetes/docs/V1alpha2DriverAllocationResult.md deleted file mode 100644 index 74b56d66fe..0000000000 --- a/kubernetes/docs/V1alpha2DriverAllocationResult.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2DriverAllocationResult - -DriverAllocationResult contains vendor parameters and the allocation result for one request. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**namedResources** | [**V1alpha2NamedResourcesAllocationResult**](V1alpha2NamedResourcesAllocationResult.md) | | [optional] | -|**vendorRequestParameters** | **Object** | VendorRequestParameters are the per-request configuration parameters from the time that the claim was allocated. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2DriverRequests.md b/kubernetes/docs/V1alpha2DriverRequests.md deleted file mode 100644 index 9dc4680dba..0000000000 --- a/kubernetes/docs/V1alpha2DriverRequests.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1alpha2DriverRequests - -DriverRequests describes all resources that are needed from one particular driver. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**driverName** | **String** | DriverName is the name used by the DRA driver kubelet plugin. | [optional] | -|**requests** | [**List<V1alpha2ResourceRequest>**](V1alpha2ResourceRequest.md) | Requests describes all resources that are needed from the driver. | [optional] | -|**vendorParameters** | **Object** | VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2LeaseCandidate.md b/kubernetes/docs/V1alpha2LeaseCandidate.md new file mode 100644 index 0000000000..67117f7a84 --- /dev/null +++ b/kubernetes/docs/V1alpha2LeaseCandidate.md @@ -0,0 +1,21 @@ + + +# 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..93959ea2bf --- /dev/null +++ b/kubernetes/docs/V1alpha2LeaseCandidateList.md @@ -0,0 +1,21 @@ + + +# 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..a9e94cbdec --- /dev/null +++ b/kubernetes/docs/V1alpha2LeaseCandidateSpec.md @@ -0,0 +1,19 @@ + + +# 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** | 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** | 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/V1alpha2NamedResourcesAllocationResult.md b/kubernetes/docs/V1alpha2NamedResourcesAllocationResult.md deleted file mode 100644 index 752241c596..0000000000 --- a/kubernetes/docs/V1alpha2NamedResourcesAllocationResult.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2NamedResourcesAllocationResult - -NamedResourcesAllocationResult is used in AllocationResultModel. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name is the name of the selected resource instance. | | - - - diff --git a/kubernetes/docs/V1alpha2NamedResourcesAttribute.md b/kubernetes/docs/V1alpha2NamedResourcesAttribute.md deleted file mode 100644 index d6e9b5a927..0000000000 --- a/kubernetes/docs/V1alpha2NamedResourcesAttribute.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1alpha2NamedResourcesAttribute - -NamedResourcesAttribute is a combination of an attribute name and its value. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**bool** | **Boolean** | BoolValue is a true/false value. | [optional] | -|**_int** | **Long** | IntValue is a 64-bit integer. | [optional] | -|**intSlice** | [**V1alpha2NamedResourcesIntSlice**](V1alpha2NamedResourcesIntSlice.md) | | [optional] | -|**name** | **String** | Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain. | | -|**quantity** | **Quantity** | 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] | -|**string** | **String** | StringValue is a string. | [optional] | -|**stringSlice** | [**V1alpha2NamedResourcesStringSlice**](V1alpha2NamedResourcesStringSlice.md) | | [optional] | -|**version** | **String** | VersionValue is a semantic version according to semver.org spec 2.0.0. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2NamedResourcesFilter.md b/kubernetes/docs/V1alpha2NamedResourcesFilter.md deleted file mode 100644 index b794985780..0000000000 --- a/kubernetes/docs/V1alpha2NamedResourcesFilter.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2NamedResourcesFilter - -NamedResourcesFilter is used in ResourceFilterModel. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**selector** | **String** | Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example: attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) && attributes.stringslice[\"b\"].isSorted() | | - - - diff --git a/kubernetes/docs/V1alpha2NamedResourcesInstance.md b/kubernetes/docs/V1alpha2NamedResourcesInstance.md deleted file mode 100644 index 509ce0a4df..0000000000 --- a/kubernetes/docs/V1alpha2NamedResourcesInstance.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2NamedResourcesInstance - -NamedResourcesInstance represents one individual hardware instance that can be selected based on its attributes. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**attributes** | [**List<V1alpha2NamedResourcesAttribute>**](V1alpha2NamedResourcesAttribute.md) | Attributes defines the attributes of this resource instance. The name of each attribute must be unique. | [optional] | -|**name** | **String** | Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain. | | - - - diff --git a/kubernetes/docs/V1alpha2NamedResourcesIntSlice.md b/kubernetes/docs/V1alpha2NamedResourcesIntSlice.md deleted file mode 100644 index 41a80b4d28..0000000000 --- a/kubernetes/docs/V1alpha2NamedResourcesIntSlice.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2NamedResourcesIntSlice - -NamedResourcesIntSlice contains a slice of 64-bit integers. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**ints** | **List<Long>** | Ints is the slice of 64-bit integers. | | - - - diff --git a/kubernetes/docs/V1alpha2NamedResourcesRequest.md b/kubernetes/docs/V1alpha2NamedResourcesRequest.md deleted file mode 100644 index 6188b0814d..0000000000 --- a/kubernetes/docs/V1alpha2NamedResourcesRequest.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2NamedResourcesRequest - -NamedResourcesRequest is used in ResourceRequestModel. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**selector** | **String** | Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example: attributes.quantity[\"a\"].isGreaterThan(quantity(\"0\")) && attributes.stringslice[\"b\"].isSorted() | | - - - diff --git a/kubernetes/docs/V1alpha2NamedResourcesResources.md b/kubernetes/docs/V1alpha2NamedResourcesResources.md deleted file mode 100644 index afa5179ed0..0000000000 --- a/kubernetes/docs/V1alpha2NamedResourcesResources.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2NamedResourcesResources - -NamedResourcesResources is used in ResourceModel. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**instances** | [**List<V1alpha2NamedResourcesInstance>**](V1alpha2NamedResourcesInstance.md) | The list of all individual resources instances currently available. | | - - - diff --git a/kubernetes/docs/V1alpha2NamedResourcesStringSlice.md b/kubernetes/docs/V1alpha2NamedResourcesStringSlice.md deleted file mode 100644 index fc722befc9..0000000000 --- a/kubernetes/docs/V1alpha2NamedResourcesStringSlice.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1alpha2NamedResourcesStringSlice - -NamedResourcesStringSlice contains a slice of strings. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**strings** | **List<String>** | Strings is the slice of strings. | | - - - diff --git a/kubernetes/docs/V1alpha2PodSchedulingContext.md b/kubernetes/docs/V1alpha2PodSchedulingContext.md deleted file mode 100644 index d3aae46b38..0000000000 --- a/kubernetes/docs/V1alpha2PodSchedulingContext.md +++ /dev/null @@ -1,22 +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 8ac4d056a5..0000000000 --- a/kubernetes/docs/V1alpha2PodSchedulingContextList.md +++ /dev/null @@ -1,21 +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 9e8caefe57..0000000000 --- a/kubernetes/docs/V1alpha2PodSchedulingContextSpec.md +++ /dev/null @@ -1,15 +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 5b663055f2..0000000000 --- a/kubernetes/docs/V1alpha2PodSchedulingContextStatus.md +++ /dev/null @@ -1,14 +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 1026b5123c..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaim.md +++ /dev/null @@ -1,22 +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 91132277f3..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimConsumerReference.md +++ /dev/null @@ -1,17 +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 2179d8a915..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimList.md +++ /dev/null @@ -1,21 +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/V1alpha2ResourceClaimParameters.md b/kubernetes/docs/V1alpha2ResourceClaimParameters.md deleted file mode 100644 index f783e4d5b6..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimParameters.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# V1alpha2ResourceClaimParameters - -ResourceClaimParameters defines resource requests for a ResourceClaim in an in-tree format understood by Kubernetes. - -## 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] | -|**driverRequests** | [**List<V1alpha2DriverRequests>**](V1alpha2DriverRequests.md) | DriverRequests describes all resources that are needed for the allocated claim. A single claim may use resources coming from different drivers. For each driver, this array has at most one entry which then may have one or more per-driver requests. May be empty, in which case the claim can always be allocated. | [optional] | -|**generatedFrom** | [**V1alpha2ResourceClaimParametersReference**](V1alpha2ResourceClaimParametersReference.md) | | [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] | -|**shareable** | **Boolean** | Shareable indicates whether the allocated claim is meant to be shareable by multiple consumers at the same time. | [optional] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha2ResourceClaimParametersList.md b/kubernetes/docs/V1alpha2ResourceClaimParametersList.md deleted file mode 100644 index 8887496428..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimParametersList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1alpha2ResourceClaimParametersList - -ResourceClaimParametersList is a collection of ResourceClaimParameters. - -## 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<V1alpha2ResourceClaimParameters>**](V1alpha2ResourceClaimParameters.md) | Items is the list of node resource capacity 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/V1alpha2ResourceClaimParametersReference.md b/kubernetes/docs/V1alpha2ResourceClaimParametersReference.md deleted file mode 100644 index de7638a38c..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimParametersReference.md +++ /dev/null @@ -1,16 +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 53fa5b7abf..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimSchedulingStatus.md +++ /dev/null @@ -1,15 +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 89a080f7f1..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimSpec.md +++ /dev/null @@ -1,16 +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 cc3e56f2eb..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimStatus.md +++ /dev/null @@ -1,17 +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 7e7ddaa6c2..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimTemplate.md +++ /dev/null @@ -1,21 +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 c0049adaa4..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimTemplateList.md +++ /dev/null @@ -1,21 +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 981b580270..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClaimTemplateSpec.md +++ /dev/null @@ -1,15 +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 93ac93f0f1..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClass.md +++ /dev/null @@ -1,24 +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] | -|**structuredParameters** | **Boolean** | If and only if allocation of claims using this class is handled via structured parameters, then StructuredParameters must be set to true. | [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 a9cb253ac8..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClassList.md +++ /dev/null @@ -1,21 +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/V1alpha2ResourceClassParameters.md b/kubernetes/docs/V1alpha2ResourceClassParameters.md deleted file mode 100644 index 2bfcbb0a00..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClassParameters.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# V1alpha2ResourceClassParameters - -ResourceClassParameters defines resource requests for a ResourceClass in an in-tree format understood by Kubernetes. - -## 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] | -|**filters** | [**List<V1alpha2ResourceFilter>**](V1alpha2ResourceFilter.md) | Filters describes additional contraints that must be met when using the class. | [optional] | -|**generatedFrom** | [**V1alpha2ResourceClassParametersReference**](V1alpha2ResourceClassParametersReference.md) | | [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] | -|**vendorParameters** | [**List<V1alpha2VendorParameters>**](V1alpha2VendorParameters.md) | VendorParameters are arbitrary setup parameters for all claims using this class. They are ignored while allocating the claim. There must not be more than one entry per driver. | [optional] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha2ResourceClassParametersList.md b/kubernetes/docs/V1alpha2ResourceClassParametersList.md deleted file mode 100644 index 330765f87b..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClassParametersList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1alpha2ResourceClassParametersList - -ResourceClassParametersList is a collection of ResourceClassParameters. - -## 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<V1alpha2ResourceClassParameters>**](V1alpha2ResourceClassParameters.md) | Items is the list of node resource capacity 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/V1alpha2ResourceClassParametersReference.md b/kubernetes/docs/V1alpha2ResourceClassParametersReference.md deleted file mode 100644 index 444de94d76..0000000000 --- a/kubernetes/docs/V1alpha2ResourceClassParametersReference.md +++ /dev/null @@ -1,17 +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/V1alpha2ResourceFilter.md b/kubernetes/docs/V1alpha2ResourceFilter.md deleted file mode 100644 index 6e0cd5862a..0000000000 --- a/kubernetes/docs/V1alpha2ResourceFilter.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2ResourceFilter - -ResourceFilter is a filter for resources from one particular driver. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**driverName** | **String** | DriverName is the name used by the DRA driver kubelet plugin. | [optional] | -|**namedResources** | [**V1alpha2NamedResourcesFilter**](V1alpha2NamedResourcesFilter.md) | | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2ResourceHandle.md b/kubernetes/docs/V1alpha2ResourceHandle.md deleted file mode 100644 index c36a67546c..0000000000 --- a/kubernetes/docs/V1alpha2ResourceHandle.md +++ /dev/null @@ -1,16 +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] | -|**structuredData** | [**V1alpha2StructuredResourceHandle**](V1alpha2StructuredResourceHandle.md) | | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2ResourceRequest.md b/kubernetes/docs/V1alpha2ResourceRequest.md deleted file mode 100644 index dbb3bbdeb0..0000000000 --- a/kubernetes/docs/V1alpha2ResourceRequest.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2ResourceRequest - -ResourceRequest is a request for resources from one particular driver. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**namedResources** | [**V1alpha2NamedResourcesRequest**](V1alpha2NamedResourcesRequest.md) | | [optional] | -|**vendorParameters** | **Object** | VendorParameters are arbitrary setup parameters for the requested resource. They are ignored while allocating a claim. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2ResourceSlice.md b/kubernetes/docs/V1alpha2ResourceSlice.md deleted file mode 100644 index 285185b4f5..0000000000 --- a/kubernetes/docs/V1alpha2ResourceSlice.md +++ /dev/null @@ -1,23 +0,0 @@ - - -# V1alpha2ResourceSlice - -ResourceSlice provides information about available resources on individual nodes. - -## 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 identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. | | -|**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] | -|**namedResources** | [**V1alpha2NamedResourcesResources**](V1alpha2NamedResourcesResources.md) | | [optional] | -|**nodeName** | **String** | NodeName identifies the node which provides the resources if they are local to a node. A field selector can be used to list only ResourceSlice objects with a certain node name. | [optional] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1alpha2ResourceSliceList.md b/kubernetes/docs/V1alpha2ResourceSliceList.md deleted file mode 100644 index 7191544cb9..0000000000 --- a/kubernetes/docs/V1alpha2ResourceSliceList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1alpha2ResourceSliceList - -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<V1alpha2ResourceSlice>**](V1alpha2ResourceSlice.md) | Items is the list of node resource capacity 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/V1alpha2StructuredResourceHandle.md b/kubernetes/docs/V1alpha2StructuredResourceHandle.md deleted file mode 100644 index 108c1e195b..0000000000 --- a/kubernetes/docs/V1alpha2StructuredResourceHandle.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1alpha2StructuredResourceHandle - -StructuredResourceHandle is the in-tree representation of the allocation result. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**nodeName** | **String** | NodeName is the name of the node providing the necessary resources if the resources are local to a node. | [optional] | -|**results** | [**List<V1alpha2DriverAllocationResult>**](V1alpha2DriverAllocationResult.md) | Results lists all allocated driver resources. | | -|**vendorClaimParameters** | **Object** | VendorClaimParameters are the per-claim configuration parameters from the resource claim parameters at the time that the claim was allocated. | [optional] | -|**vendorClassParameters** | **Object** | VendorClassParameters are the per-claim configuration parameters from the resource class at the time that the claim was allocated. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha2VendorParameters.md b/kubernetes/docs/V1alpha2VendorParameters.md deleted file mode 100644 index 50fe303acc..0000000000 --- a/kubernetes/docs/V1alpha2VendorParameters.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha2VendorParameters - -VendorParameters are opaque parameters for one particular driver. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**driverName** | **String** | DriverName is the name used by the DRA driver kubelet plugin. | [optional] | -|**parameters** | **Object** | Parameters can be arbitrary setup parameters. They are ignored while allocating a claim. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha3DeviceTaint.md b/kubernetes/docs/V1alpha3DeviceTaint.md new file mode 100644 index 0000000000..c2aea34e44 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaint.md @@ -0,0 +1,17 @@ + + +# 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. | | +|**key** | **String** | The taint key to be applied to a device. Must be a label name. | | +|**timeAdded** | **OffsetDateTime** | 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..286178ea26 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRule.md @@ -0,0 +1,22 @@ + + +# 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) | | | +|**status** | [**V1alpha3DeviceTaintRuleStatus**](V1alpha3DeviceTaintRuleStatus.md) | | [optional] | + + +## 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..f2572df656 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRuleList.md @@ -0,0 +1,21 @@ + + +# 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..61343d3744 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRuleSpec.md @@ -0,0 +1,15 @@ + + +# 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/V1alpha3DeviceTaintRuleStatus.md b/kubernetes/docs/V1alpha3DeviceTaintRuleStatus.md new file mode 100644 index 0000000000..b9909ee753 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintRuleStatus.md @@ -0,0 +1,14 @@ + + +# V1alpha3DeviceTaintRuleStatus + +DeviceTaintRuleStatus provides information about an on-going pod eviction. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise (includes the effects which don't cause eviction). - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods in a human-readable format, updated periodically, may change For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. Must have 8 or fewer entries. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3DeviceTaintSelector.md b/kubernetes/docs/V1alpha3DeviceTaintSelector.md new file mode 100644 index 0000000000..b6dd504960 --- /dev/null +++ b/kubernetes/docs/V1alpha3DeviceTaintSelector.md @@ -0,0 +1,16 @@ + + +# 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] | +|**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] | + + + diff --git a/kubernetes/docs/V1beta1AllocatedDeviceStatus.md b/kubernetes/docs/V1beta1AllocatedDeviceStatus.md new file mode 100644 index 0000000000..4a88a511d9 --- /dev/null +++ b/kubernetes/docs/V1beta1AllocatedDeviceStatus.md @@ -0,0 +1,20 @@ + + +# V1beta1AllocatedDeviceStatus + +AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. + +## 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** | 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. It should use only lower case characters. | | +|**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. | | +|**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1AllocationResult.md b/kubernetes/docs/V1beta1AllocationResult.md new file mode 100644 index 0000000000..d094a9fcd4 --- /dev/null +++ b/kubernetes/docs/V1beta1AllocationResult.md @@ -0,0 +1,16 @@ + + +# V1beta1AllocationResult + +AllocationResult contains attributes of an allocated resource. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationTimestamp** | **OffsetDateTime** | AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | +|**devices** | [**V1beta1DeviceAllocationResult**](V1beta1DeviceAllocationResult.md) | | [optional] | +|**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1beta1ApplyConfiguration.md b/kubernetes/docs/V1beta1ApplyConfiguration.md new file mode 100644 index 0000000000..c3828b36aa --- /dev/null +++ b/kubernetes/docs/V1beta1ApplyConfiguration.md @@ -0,0 +1,14 @@ + + +# V1beta1ApplyConfiguration + +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/V1beta1AuditAnnotation.md b/kubernetes/docs/V1beta1AuditAnnotation.md deleted file mode 100644 index 0e6556c238..0000000000 --- a/kubernetes/docs/V1beta1AuditAnnotation.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta1AuditAnnotation - -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/V1beta1BasicDevice.md b/kubernetes/docs/V1beta1BasicDevice.md new file mode 100644 index 0000000000..bf1718d09a --- /dev/null +++ b/kubernetes/docs/V1beta1BasicDevice.md @@ -0,0 +1,24 @@ + + +# 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] | +|**allowMultipleAllocations** | **Boolean** | AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. | [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] | +|**bindingConditions** | **List<String>** | BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [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 maximum number of device counter consumptions per device is 2. | [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 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. 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..5f0476abec --- /dev/null +++ b/kubernetes/docs/V1beta1CELDeviceSelector.md @@ -0,0 +1,14 @@ + + +# 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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/V1beta1CapacityRequestPolicy.md b/kubernetes/docs/V1beta1CapacityRequestPolicy.md new file mode 100644 index 0000000000..f307f629dc --- /dev/null +++ b/kubernetes/docs/V1beta1CapacityRequestPolicy.md @@ -0,0 +1,16 @@ + + +# V1beta1CapacityRequestPolicy + +CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_default** | **Quantity** | 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] | +|**validRange** | [**V1beta1CapacityRequestPolicyRange**](V1beta1CapacityRequestPolicyRange.md) | | [optional] | +|**validValues** | **List<Quantity>** | ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md b/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md new file mode 100644 index 0000000000..e9340ba156 --- /dev/null +++ b/kubernetes/docs/V1beta1CapacityRequestPolicyRange.md @@ -0,0 +1,16 @@ + + +# V1beta1CapacityRequestPolicyRange + +CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**max** | **Quantity** | 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] | +|**min** | **Quantity** | 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. | | +|**step** | **Quantity** | 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/V1beta1CapacityRequirements.md b/kubernetes/docs/V1beta1CapacityRequirements.md new file mode 100644 index 0000000000..b9ec685e7c --- /dev/null +++ b/kubernetes/docs/V1beta1CapacityRequirements.md @@ -0,0 +1,14 @@ + + +# V1beta1CapacityRequirements + +CapacityRequirements defines the capacity requirements for a specific device request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requests** | **Map<String, Quantity>** | Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1ClusterTrustBundle.md b/kubernetes/docs/V1beta1ClusterTrustBundle.md new file mode 100644 index 0000000000..4d93a6183a --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterTrustBundle.md @@ -0,0 +1,21 @@ + + +# 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..0d775698fb --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterTrustBundleList.md @@ -0,0 +1,21 @@ + + +# 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..0bb061d634 --- /dev/null +++ b/kubernetes/docs/V1beta1ClusterTrustBundleSpec.md @@ -0,0 +1,15 @@ + + +# 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..bd1d05e77b --- /dev/null +++ b/kubernetes/docs/V1beta1Counter.md @@ -0,0 +1,14 @@ + + +# V1beta1Counter + +Counter describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **Quantity** | 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..c61f954b98 --- /dev/null +++ b/kubernetes/docs/V1beta1CounterSet.md @@ -0,0 +1,15 @@ + + +# V1beta1CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. 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..18bde8455d --- /dev/null +++ b/kubernetes/docs/V1beta1Device.md @@ -0,0 +1,15 @@ + + +# 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..3a1bc79ab0 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceAllocationConfiguration.md @@ -0,0 +1,16 @@ + + +# 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..f59c75ca4e --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceAllocationResult.md @@ -0,0 +1,15 @@ + + +# 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..1b73622d4c --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceAttribute.md @@ -0,0 +1,17 @@ + + +# 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..48db842276 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceCapacity.md @@ -0,0 +1,15 @@ + + +# V1beta1DeviceCapacity + +DeviceCapacity describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requestPolicy** | [**V1beta1CapacityRequestPolicy**](V1beta1CapacityRequestPolicy.md) | | [optional] | +|**value** | **Quantity** | 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..18a66710f9 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClaim.md @@ -0,0 +1,16 @@ + + +# 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..e01b760839 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClaimConfiguration.md @@ -0,0 +1,15 @@ + + +# 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..d9887f1f63 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClass.md @@ -0,0 +1,21 @@ + + +# 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..b5a02af52d --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClassConfiguration.md @@ -0,0 +1,14 @@ + + +# 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..1e43a864c0 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClassList.md @@ -0,0 +1,21 @@ + + +# 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..dd1447fa9e --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceClassSpec.md @@ -0,0 +1,16 @@ + + +# 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] | +|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. | [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..61643f6568 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceConstraint.md @@ -0,0 +1,16 @@ + + +# V1beta1DeviceConstraint + +DeviceConstraint must have exactly one field set besides Requests. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. | [optional] | +|**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..5ccffca60e --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceCounterConsumption.md @@ -0,0 +1,15 @@ + + +# 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 of counters is 32. | | + + + diff --git a/kubernetes/docs/V1beta1DeviceRequest.md b/kubernetes/docs/V1beta1DeviceRequest.md new file mode 100644 index 0000000000..1038f6039d --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceRequest.md @@ -0,0 +1,22 @@ + + +# 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] | +|**capacity** | [**V1beta1CapacityRequirements**](V1beta1CapacityRequirements.md) | | [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..c566443c91 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md @@ -0,0 +1,23 @@ + + +# 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] | +|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**consumedCapacity** | **Map<String, Quantity>** | ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. | [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. It should use only lower case characters. | | +|**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. | | +|**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. | [optional] | +|**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..983dc12490 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceSelector.md @@ -0,0 +1,14 @@ + + +# 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..7484eb8b0b --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceSubRequest.md @@ -0,0 +1,20 @@ + + +# 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] | +|**capacity** | [**V1beta1CapacityRequirements**](V1beta1CapacityRequirements.md) | | [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..9290c1ad51 --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceTaint.md @@ -0,0 +1,17 @@ + + +# 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. | | +|**key** | **String** | The taint key to be applied to a device. Must be a label name. | | +|**timeAdded** | **OffsetDateTime** | 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..30207519cd --- /dev/null +++ b/kubernetes/docs/V1beta1DeviceToleration.md @@ -0,0 +1,18 @@ + + +# 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/V1beta1ExpressionWarning.md b/kubernetes/docs/V1beta1ExpressionWarning.md deleted file mode 100644 index e48d360e3c..0000000000 --- a/kubernetes/docs/V1beta1ExpressionWarning.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1beta1ExpressionWarning - -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/V1beta1IPAddress.md b/kubernetes/docs/V1beta1IPAddress.md new file mode 100644 index 0000000000..5bf2eb2650 --- /dev/null +++ b/kubernetes/docs/V1beta1IPAddress.md @@ -0,0 +1,21 @@ + + +# 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..0bdda8f590 --- /dev/null +++ b/kubernetes/docs/V1beta1IPAddressList.md @@ -0,0 +1,21 @@ + + +# 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..8c7a0bad07 --- /dev/null +++ b/kubernetes/docs/V1beta1IPAddressSpec.md @@ -0,0 +1,14 @@ + + +# V1beta1IPAddressSpec + +IPAddressSpec describe the attributes in an IP Address. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**parentRef** | [**V1beta1ParentReference**](V1beta1ParentReference.md) | | | + + + diff --git a/kubernetes/docs/V1beta1JSONPatch.md b/kubernetes/docs/V1beta1JSONPatch.md new file mode 100644 index 0000000000..a7343849d1 --- /dev/null +++ b/kubernetes/docs/V1beta1JSONPatch.md @@ -0,0 +1,14 @@ + + +# V1beta1JSONPatch + +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/V1beta1LeaseCandidate.md b/kubernetes/docs/V1beta1LeaseCandidate.md new file mode 100644 index 0000000000..2b35d2ac9f --- /dev/null +++ b/kubernetes/docs/V1beta1LeaseCandidate.md @@ -0,0 +1,21 @@ + + +# 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..2ce131c58e --- /dev/null +++ b/kubernetes/docs/V1beta1LeaseCandidateList.md @@ -0,0 +1,21 @@ + + +# 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..452f5774e0 --- /dev/null +++ b/kubernetes/docs/V1beta1LeaseCandidateSpec.md @@ -0,0 +1,19 @@ + + +# 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** | 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** | 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/V1beta1MutatingAdmissionPolicy.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicy.md new file mode 100644 index 0000000000..b9b546a232 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicy.md @@ -0,0 +1,21 @@ + + +# V1beta1MutatingAdmissionPolicy + +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** | [**V1beta1MutatingAdmissionPolicySpec**](V1beta1MutatingAdmissionPolicySpec.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1MutatingAdmissionPolicyBinding.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBinding.md new file mode 100644 index 0000000000..5e123d7f3e --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBinding.md @@ -0,0 +1,21 @@ + + +# V1beta1MutatingAdmissionPolicyBinding + +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** | [**V1beta1MutatingAdmissionPolicyBindingSpec**](V1beta1MutatingAdmissionPolicyBindingSpec.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingList.md new file mode 100644 index 0000000000..0433620277 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingList.md @@ -0,0 +1,21 @@ + + +# V1beta1MutatingAdmissionPolicyBindingList + +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<V1beta1MutatingAdmissionPolicyBinding>**](V1beta1MutatingAdmissionPolicyBinding.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/V1beta1MutatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingSpec.md new file mode 100644 index 0000000000..29959f54b1 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyBindingSpec.md @@ -0,0 +1,16 @@ + + +# V1beta1MutatingAdmissionPolicyBindingSpec + +MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchResources** | [**V1beta1MatchResources**](V1beta1MatchResources.md) | | [optional] | +|**paramRef** | [**V1beta1ParamRef**](V1beta1ParamRef.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/V1beta1MutatingAdmissionPolicyList.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicyList.md new file mode 100644 index 0000000000..bac386412d --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicyList.md @@ -0,0 +1,21 @@ + + +# V1beta1MutatingAdmissionPolicyList + +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<V1beta1MutatingAdmissionPolicy>**](V1beta1MutatingAdmissionPolicy.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/V1beta1MutatingAdmissionPolicySpec.md b/kubernetes/docs/V1beta1MutatingAdmissionPolicySpec.md new file mode 100644 index 0000000000..500301073c --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingAdmissionPolicySpec.md @@ -0,0 +1,20 @@ + + +# V1beta1MutatingAdmissionPolicySpec + +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<V1beta1MatchCondition>**](V1beta1MatchCondition.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** | [**V1beta1MatchResources**](V1beta1MatchResources.md) | | [optional] | +|**mutations** | [**List<V1beta1Mutation>**](V1beta1Mutation.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** | [**V1beta1ParamKind**](V1beta1ParamKind.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<V1beta1Variable>**](V1beta1Variable.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/V1beta1Mutation.md b/kubernetes/docs/V1beta1Mutation.md new file mode 100644 index 0000000000..b0bcdade81 --- /dev/null +++ b/kubernetes/docs/V1beta1Mutation.md @@ -0,0 +1,16 @@ + + +# V1beta1Mutation + +Mutation specifies the CEL expression which is used to apply the Mutation. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**applyConfiguration** | [**V1beta1ApplyConfiguration**](V1beta1ApplyConfiguration.md) | | [optional] | +|**jsonPatch** | [**V1beta1JSONPatch**](V1beta1JSONPatch.md) | | [optional] | +|**patchType** | **String** | patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. | | + + + diff --git a/kubernetes/docs/V1beta1NetworkDeviceData.md b/kubernetes/docs/V1beta1NetworkDeviceData.md new file mode 100644 index 0000000000..093b89b5b3 --- /dev/null +++ b/kubernetes/docs/V1beta1NetworkDeviceData.md @@ -0,0 +1,16 @@ + + +# 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..89d8ecc2d1 --- /dev/null +++ b/kubernetes/docs/V1beta1OpaqueDeviceConfiguration.md @@ -0,0 +1,15 @@ + + +# 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. It should use only lower case characters. | | +|**parameters** | **Object** | 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..aa16c91be9 --- /dev/null +++ b/kubernetes/docs/V1beta1ParentReference.md @@ -0,0 +1,17 @@ + + +# 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/V1beta1PodCertificateRequest.md b/kubernetes/docs/V1beta1PodCertificateRequest.md new file mode 100644 index 0000000000..d134edbfea --- /dev/null +++ b/kubernetes/docs/V1beta1PodCertificateRequest.md @@ -0,0 +1,22 @@ + + +# V1beta1PodCertificateRequest + +PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes + +## 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** | [**V1beta1PodCertificateRequestSpec**](V1beta1PodCertificateRequestSpec.md) | | | +|**status** | [**V1beta1PodCertificateRequestStatus**](V1beta1PodCertificateRequestStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1PodCertificateRequestList.md b/kubernetes/docs/V1beta1PodCertificateRequestList.md new file mode 100644 index 0000000000..0ed3bbbde2 --- /dev/null +++ b/kubernetes/docs/V1beta1PodCertificateRequestList.md @@ -0,0 +1,21 @@ + + +# V1beta1PodCertificateRequestList + +PodCertificateRequestList is a collection of PodCertificateRequest 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<V1beta1PodCertificateRequest>**](V1beta1PodCertificateRequest.md) | items is a collection of PodCertificateRequest 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/V1beta1PodCertificateRequestSpec.md b/kubernetes/docs/V1beta1PodCertificateRequestSpec.md new file mode 100644 index 0000000000..3bd2998e90 --- /dev/null +++ b/kubernetes/docs/V1beta1PodCertificateRequestSpec.md @@ -0,0 +1,24 @@ + + +# V1beta1PodCertificateRequestSpec + +PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**maxExpirationSeconds** | **Integer** | maxExpirationSeconds is the maximum lifetime permitted for the certificate. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. | [optional] | +|**nodeName** | **String** | nodeName is the name of the node the pod is assigned to. | | +|**nodeUID** | **String** | nodeUID is the UID of the node the pod is assigned to. | | +|**pkixPublicKey** | **byte[]** | pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. | | +|**podName** | **String** | podName is the name of the pod into which the certificate will be mounted. | | +|**podUID** | **String** | podUID is the UID of the pod into which the certificate will be mounted. | | +|**proofOfPossession** | **byte[]** | proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). | | +|**serviceAccountName** | **String** | serviceAccountName is the name of the service account the pod is running as. | | +|**serviceAccountUID** | **String** | serviceAccountUID is the UID of the service account the pod is running as. | | +|**signerName** | **String** | signerName indicates the requested signer. All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented. | | +|**unverifiedUserAnnotations** | **Map<String, String>** | unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1PodCertificateRequestStatus.md b/kubernetes/docs/V1beta1PodCertificateRequestStatus.md new file mode 100644 index 0000000000..20f610e941 --- /dev/null +++ b/kubernetes/docs/V1beta1PodCertificateRequestStatus.md @@ -0,0 +1,18 @@ + + +# V1beta1PodCertificateRequestStatus + +PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**beginRefreshAt** | **OffsetDateTime** | beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary. | [optional] | +|**certificateChain** | **String** | certificateChain is populated with an issued certificate by the signer. 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. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one 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. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. | [optional] | +|**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. | [optional] | +|**notAfter** | **OffsetDateTime** | notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. | [optional] | +|**notBefore** | **OffsetDateTime** | notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1ResourceClaim.md b/kubernetes/docs/V1beta1ResourceClaim.md new file mode 100644 index 0000000000..c165243ebf --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaim.md @@ -0,0 +1,22 @@ + + +# 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..fdb614bd9b --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimConsumerReference.md @@ -0,0 +1,17 @@ + + +# 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..1afbe4d026 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimList.md @@ -0,0 +1,21 @@ + + +# 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..764c5a7d12 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimSpec.md @@ -0,0 +1,14 @@ + + +# 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..64da9f4e08 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimStatus.md @@ -0,0 +1,16 @@ + + +# 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..28706e8131 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimTemplate.md @@ -0,0 +1,21 @@ + + +# 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..c1b7286c02 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimTemplateList.md @@ -0,0 +1,21 @@ + + +# 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..b8fd855988 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceClaimTemplateSpec.md @@ -0,0 +1,15 @@ + + +# 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..b57ba70a69 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourcePool.md @@ -0,0 +1,16 @@ + + +# 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..facf7d6f9b --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceSlice.md @@ -0,0 +1,21 @@ + + +# 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..f1ff13a4da --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceSliceList.md @@ -0,0 +1,21 @@ + + +# 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..6f16ebebd9 --- /dev/null +++ b/kubernetes/docs/V1beta1ResourceSliceSpec.md @@ -0,0 +1,21 @@ + + +# 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. If any device uses taints or consumes counters the limit is 64. Only one of Devices and SharedCounters can be set in a ResourceSlice. | [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. It should use only lower case characters. 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 counter sets must be unique in the ResourcePool. Only one of Devices and SharedCounters can be set in a ResourceSlice. The maximum number of counter sets is 8. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1SelfSubjectReview.md b/kubernetes/docs/V1beta1SelfSubjectReview.md deleted file mode 100644 index 4af7af23d2..0000000000 --- a/kubernetes/docs/V1beta1SelfSubjectReview.md +++ /dev/null @@ -1,21 +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 07510a58b8..0000000000 --- a/kubernetes/docs/V1beta1SelfSubjectReviewStatus.md +++ /dev/null @@ -1,14 +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..66fd83378f --- /dev/null +++ b/kubernetes/docs/V1beta1ServiceCIDR.md @@ -0,0 +1,22 @@ + + +# 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..83dcbd388a --- /dev/null +++ b/kubernetes/docs/V1beta1ServiceCIDRList.md @@ -0,0 +1,21 @@ + + +# 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..55ed028333 --- /dev/null +++ b/kubernetes/docs/V1beta1ServiceCIDRSpec.md @@ -0,0 +1,14 @@ + + +# 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..59c092d85f --- /dev/null +++ b/kubernetes/docs/V1beta1ServiceCIDRStatus.md @@ -0,0 +1,14 @@ + + +# 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/V1beta1StorageVersionMigration.md b/kubernetes/docs/V1beta1StorageVersionMigration.md new file mode 100644 index 0000000000..6dea9e623f --- /dev/null +++ b/kubernetes/docs/V1beta1StorageVersionMigration.md @@ -0,0 +1,22 @@ + + +# V1beta1StorageVersionMigration + +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** | [**V1beta1StorageVersionMigrationSpec**](V1beta1StorageVersionMigrationSpec.md) | | [optional] | +|**status** | [**V1beta1StorageVersionMigrationStatus**](V1beta1StorageVersionMigrationStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta1StorageVersionMigrationList.md b/kubernetes/docs/V1beta1StorageVersionMigrationList.md new file mode 100644 index 0000000000..718fa79000 --- /dev/null +++ b/kubernetes/docs/V1beta1StorageVersionMigrationList.md @@ -0,0 +1,21 @@ + + +# V1beta1StorageVersionMigrationList + +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<V1beta1StorageVersionMigration>**](V1beta1StorageVersionMigration.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/V1beta1StorageVersionMigrationSpec.md b/kubernetes/docs/V1beta1StorageVersionMigrationSpec.md new file mode 100644 index 0000000000..342ddfa891 --- /dev/null +++ b/kubernetes/docs/V1beta1StorageVersionMigrationSpec.md @@ -0,0 +1,14 @@ + + +# V1beta1StorageVersionMigrationSpec + +Spec of the storage version migration. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**resource** | [**V1GroupResource**](V1GroupResource.md) | | | + + + diff --git a/kubernetes/docs/V1beta1StorageVersionMigrationStatus.md b/kubernetes/docs/V1beta1StorageVersionMigrationStatus.md new file mode 100644 index 0000000000..293cb7f48f --- /dev/null +++ b/kubernetes/docs/V1beta1StorageVersionMigrationStatus.md @@ -0,0 +1,15 @@ + + +# V1beta1StorageVersionMigrationStatus + +Status of the storage version migration. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.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/V1beta1TypeChecking.md b/kubernetes/docs/V1beta1TypeChecking.md deleted file mode 100644 index fcf890950c..0000000000 --- a/kubernetes/docs/V1beta1TypeChecking.md +++ /dev/null @@ -1,14 +0,0 @@ - - -# V1beta1TypeChecking - -TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**expressionWarnings** | [**List<V1beta1ExpressionWarning>**](V1beta1ExpressionWarning.md) | The type checking warnings for each expression. | [optional] | - - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicy.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicy.md deleted file mode 100644 index 29f16dc432..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicy.md +++ /dev/null @@ -1,22 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicy - -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** | [**V1beta1ValidatingAdmissionPolicySpec**](V1beta1ValidatingAdmissionPolicySpec.md) | | [optional] | -|**status** | [**V1beta1ValidatingAdmissionPolicyStatus**](V1beta1ValidatingAdmissionPolicyStatus.md) | | [optional] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBinding.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBinding.md deleted file mode 100644 index 41baa1ec36..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBinding.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyBinding - -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** | [**V1beta1ValidatingAdmissionPolicyBindingSpec**](V1beta1ValidatingAdmissionPolicyBindingSpec.md) | | [optional] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesObject - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md deleted file mode 100644 index 84922833b6..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyBindingList - -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<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] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md deleted file mode 100644 index 71b1df3517..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyBindingSpec.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyBindingSpec - -ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. - -## Properties - -| 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] | - - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md deleted file mode 100644 index 2a5bd91006..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyList.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyList - -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<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] | - - -## Implemented Interfaces - -* io.kubernetes.client.common.KubernetesListObject - - diff --git a/kubernetes/docs/V1beta1ValidatingAdmissionPolicySpec.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicySpec.md deleted file mode 100644 index e6595ad77e..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicySpec.md +++ /dev/null @@ -1,20 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicySpec - -ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**auditAnnotations** | [**List<V1beta1AuditAnnotation>**](V1beta1AuditAnnotation.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<V1beta1MatchCondition>**](V1beta1MatchCondition.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** | [**V1beta1MatchResources**](V1beta1MatchResources.md) | | [optional] | -|**paramKind** | [**V1beta1ParamKind**](V1beta1ParamKind.md) | | [optional] | -|**validations** | [**List<V1beta1Validation>**](V1beta1Validation.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<V1beta1Variable>**](V1beta1Variable.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/V1beta1ValidatingAdmissionPolicyStatus.md b/kubernetes/docs/V1beta1ValidatingAdmissionPolicyStatus.md deleted file mode 100644 index d389e47080..0000000000 --- a/kubernetes/docs/V1beta1ValidatingAdmissionPolicyStatus.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1beta1ValidatingAdmissionPolicyStatus - -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** | [**V1beta1TypeChecking**](V1beta1TypeChecking.md) | | [optional] | - - - diff --git a/kubernetes/docs/V1beta1Validation.md b/kubernetes/docs/V1beta1Validation.md deleted file mode 100644 index 16bae0ba96..0000000000 --- a/kubernetes/docs/V1beta1Validation.md +++ /dev/null @@ -1,17 +0,0 @@ - - -# V1beta1Validation - -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/V1beta1VolumeAttributesClass.md b/kubernetes/docs/V1beta1VolumeAttributesClass.md new file mode 100644 index 0000000000..ac7cfb0d38 --- /dev/null +++ b/kubernetes/docs/V1beta1VolumeAttributesClass.md @@ -0,0 +1,22 @@ + + +# 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..cdd7fdff66 --- /dev/null +++ b/kubernetes/docs/V1beta1VolumeAttributesClassList.md @@ -0,0 +1,21 @@ + + +# 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..277819f43c --- /dev/null +++ b/kubernetes/docs/V1beta2AllocatedDeviceStatus.md @@ -0,0 +1,20 @@ + + +# V1beta2AllocatedDeviceStatus + +AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. + +## 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** | 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. It should use only lower case characters. | | +|**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. | | +|**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2AllocationResult.md b/kubernetes/docs/V1beta2AllocationResult.md new file mode 100644 index 0000000000..65feb5be58 --- /dev/null +++ b/kubernetes/docs/V1beta2AllocationResult.md @@ -0,0 +1,16 @@ + + +# V1beta2AllocationResult + +AllocationResult contains attributes of an allocated resource. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationTimestamp** | **OffsetDateTime** | AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | +|**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..486c15c920 --- /dev/null +++ b/kubernetes/docs/V1beta2CELDeviceSelector.md @@ -0,0 +1,14 @@ + + +# 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. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). 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/V1beta2CapacityRequestPolicy.md b/kubernetes/docs/V1beta2CapacityRequestPolicy.md new file mode 100644 index 0000000000..3b54f59c2c --- /dev/null +++ b/kubernetes/docs/V1beta2CapacityRequestPolicy.md @@ -0,0 +1,16 @@ + + +# V1beta2CapacityRequestPolicy + +CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_default** | **Quantity** | 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] | +|**validRange** | [**V1beta2CapacityRequestPolicyRange**](V1beta2CapacityRequestPolicyRange.md) | | [optional] | +|**validValues** | **List<Quantity>** | ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md b/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md new file mode 100644 index 0000000000..c4dfeea8a9 --- /dev/null +++ b/kubernetes/docs/V1beta2CapacityRequestPolicyRange.md @@ -0,0 +1,16 @@ + + +# V1beta2CapacityRequestPolicyRange + +CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**max** | **Quantity** | 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] | +|**min** | **Quantity** | 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. | | +|**step** | **Quantity** | 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/V1beta2CapacityRequirements.md b/kubernetes/docs/V1beta2CapacityRequirements.md new file mode 100644 index 0000000000..ca92735e83 --- /dev/null +++ b/kubernetes/docs/V1beta2CapacityRequirements.md @@ -0,0 +1,14 @@ + + +# V1beta2CapacityRequirements + +CapacityRequirements defines the capacity requirements for a specific device request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requests** | **Map<String, Quantity>** | Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2Counter.md b/kubernetes/docs/V1beta2Counter.md new file mode 100644 index 0000000000..36fddc5d9d --- /dev/null +++ b/kubernetes/docs/V1beta2Counter.md @@ -0,0 +1,14 @@ + + +# V1beta2Counter + +Counter describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **Quantity** | 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..16638ad352 --- /dev/null +++ b/kubernetes/docs/V1beta2CounterSet.md @@ -0,0 +1,15 @@ + + +# V1beta2CounterSet + +CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. 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 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..5c11910b91 --- /dev/null +++ b/kubernetes/docs/V1beta2Device.md @@ -0,0 +1,25 @@ + + +# 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] | +|**allowMultipleAllocations** | **Boolean** | AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. | [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] | +|**bindingConditions** | **List<String>** | BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [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 maximum number of device counter consumptions per device is 2. | [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 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. 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..5b53afc484 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceAllocationConfiguration.md @@ -0,0 +1,16 @@ + + +# 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..8780e5be9b --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceAllocationResult.md @@ -0,0 +1,15 @@ + + +# 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..629d04604e --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceAttribute.md @@ -0,0 +1,17 @@ + + +# 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..0065cdb6fb --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceCapacity.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceCapacity + +DeviceCapacity describes a quantity associated with a device. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requestPolicy** | [**V1beta2CapacityRequestPolicy**](V1beta2CapacityRequestPolicy.md) | | [optional] | +|**value** | **Quantity** | 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..7a37be60b8 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClaim.md @@ -0,0 +1,16 @@ + + +# 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..aa990c8d22 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClaimConfiguration.md @@ -0,0 +1,15 @@ + + +# 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..974d92d4fd --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClass.md @@ -0,0 +1,21 @@ + + +# 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..c5bb75fdf9 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClassConfiguration.md @@ -0,0 +1,14 @@ + + +# 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..98dccee512 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClassList.md @@ -0,0 +1,21 @@ + + +# 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..c27afbaa08 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceClassSpec.md @@ -0,0 +1,16 @@ + + +# 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] | +|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. | [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..12a32935c3 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceConstraint.md @@ -0,0 +1,16 @@ + + +# V1beta2DeviceConstraint + +DeviceConstraint must have exactly one field set besides Requests. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. | [optional] | +|**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..0dc599570e --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceCounterConsumption.md @@ -0,0 +1,15 @@ + + +# 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 of counters is 32. | | + + + diff --git a/kubernetes/docs/V1beta2DeviceRequest.md b/kubernetes/docs/V1beta2DeviceRequest.md new file mode 100644 index 0000000000..41c85909fd --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceRequest.md @@ -0,0 +1,16 @@ + + +# 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..45ecdc6028 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md @@ -0,0 +1,23 @@ + + +# 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] | +|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**consumedCapacity** | **Map<String, Quantity>** | ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. | [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. It should use only lower case characters. | | +|**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. | | +|**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. | [optional] | +|**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..8403d83ab9 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceSelector.md @@ -0,0 +1,14 @@ + + +# 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..92f0007c4c --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceSubRequest.md @@ -0,0 +1,20 @@ + + +# 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] | +|**capacity** | [**V1beta2CapacityRequirements**](V1beta2CapacityRequirements.md) | | [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..e04ebf6e11 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceTaint.md @@ -0,0 +1,17 @@ + + +# 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 None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. | | +|**key** | **String** | The taint key to be applied to a device. Must be a label name. | | +|**timeAdded** | **OffsetDateTime** | 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..e7e124662d --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceToleration.md @@ -0,0 +1,18 @@ + + +# 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..4eb463f794 --- /dev/null +++ b/kubernetes/docs/V1beta2ExactDeviceRequest.md @@ -0,0 +1,20 @@ + + +# 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] | +|**capacity** | [**V1beta2CapacityRequirements**](V1beta2CapacityRequirements.md) | | [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/V1beta2NetworkDeviceData.md b/kubernetes/docs/V1beta2NetworkDeviceData.md new file mode 100644 index 0000000000..99e9e49e33 --- /dev/null +++ b/kubernetes/docs/V1beta2NetworkDeviceData.md @@ -0,0 +1,16 @@ + + +# 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/V1beta2OpaqueDeviceConfiguration.md b/kubernetes/docs/V1beta2OpaqueDeviceConfiguration.md new file mode 100644 index 0000000000..914e2e43f5 --- /dev/null +++ b/kubernetes/docs/V1beta2OpaqueDeviceConfiguration.md @@ -0,0 +1,15 @@ + + +# 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. It should use only lower case characters. | | +|**parameters** | **Object** | 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/V1beta2ResourceClaim.md b/kubernetes/docs/V1beta2ResourceClaim.md new file mode 100644 index 0000000000..f7ed184474 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaim.md @@ -0,0 +1,22 @@ + + +# 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..e28ef407e6 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimConsumerReference.md @@ -0,0 +1,17 @@ + + +# 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..5d421bf628 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimList.md @@ -0,0 +1,21 @@ + + +# 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..3b18da957a --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimSpec.md @@ -0,0 +1,14 @@ + + +# 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..82f76d6076 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimStatus.md @@ -0,0 +1,16 @@ + + +# 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..3193d8c6bb --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimTemplate.md @@ -0,0 +1,21 @@ + + +# 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..aff4f7b674 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimTemplateList.md @@ -0,0 +1,21 @@ + + +# 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..3026b69593 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceClaimTemplateSpec.md @@ -0,0 +1,15 @@ + + +# 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/V1beta2ResourcePool.md b/kubernetes/docs/V1beta2ResourcePool.md new file mode 100644 index 0000000000..80aa46ff3d --- /dev/null +++ b/kubernetes/docs/V1beta2ResourcePool.md @@ -0,0 +1,16 @@ + + +# 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..4c71c184a9 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceSlice.md @@ -0,0 +1,21 @@ + + +# 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..20bc932b3f --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceSliceList.md @@ -0,0 +1,21 @@ + + +# 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..e2a1c75a00 --- /dev/null +++ b/kubernetes/docs/V1beta2ResourceSliceSpec.md @@ -0,0 +1,21 @@ + + +# 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. If any device uses taints or consumes counters the limit is 64. Only one of Devices and SharedCounters can be set in a ResourceSlice. | [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. It should use only lower case characters. 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 counter sets must be unique in the ResourcePool. Only one of Devices and SharedCounters can be set in a ResourceSlice. The maximum number of counter sets is 8. | [optional] | + + + diff --git a/kubernetes/docs/V1beta3ExemptPriorityLevelConfiguration.md b/kubernetes/docs/V1beta3ExemptPriorityLevelConfiguration.md deleted file mode 100644 index c869e954a0..0000000000 --- a/kubernetes/docs/V1beta3ExemptPriorityLevelConfiguration.md +++ /dev/null @@ -1,15 +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 1c17577520..0000000000 --- a/kubernetes/docs/V1beta3FlowDistinguisherMethod.md +++ /dev/null @@ -1,14 +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 65c3f35498..0000000000 --- a/kubernetes/docs/V1beta3FlowSchema.md +++ /dev/null @@ -1,22 +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 a1931e43f5..0000000000 --- a/kubernetes/docs/V1beta3FlowSchemaCondition.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# V1beta3FlowSchemaCondition - -FlowSchemaCondition describes conditions for a FlowSchema. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**lastTransitionTime** | **OffsetDateTime** | `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 9abcff7554..0000000000 --- a/kubernetes/docs/V1beta3FlowSchemaList.md +++ /dev/null @@ -1,21 +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 fd7066851e..0000000000 --- a/kubernetes/docs/V1beta3FlowSchemaSpec.md +++ /dev/null @@ -1,17 +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 26e7a7c3af..0000000000 --- a/kubernetes/docs/V1beta3FlowSchemaStatus.md +++ /dev/null @@ -1,14 +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 785c89d1e6..0000000000 --- a/kubernetes/docs/V1beta3GroupSubject.md +++ /dev/null @@ -1,14 +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 944b1bb27d..0000000000 --- a/kubernetes/docs/V1beta3LimitResponse.md +++ /dev/null @@ -1,15 +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 080a0900ed..0000000000 --- a/kubernetes/docs/V1beta3LimitedPriorityLevelConfiguration.md +++ /dev/null @@ -1,17 +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 a0fbb6164e..0000000000 --- a/kubernetes/docs/V1beta3NonResourcePolicyRule.md +++ /dev/null @@ -1,15 +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 ffa9f8d5ae..0000000000 --- a/kubernetes/docs/V1beta3PolicyRulesWithSubjects.md +++ /dev/null @@ -1,16 +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 f4afa4d3c7..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfiguration.md +++ /dev/null @@ -1,22 +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 c61bd1b846..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationCondition.md +++ /dev/null @@ -1,18 +0,0 @@ - - -# V1beta3PriorityLevelConfigurationCondition - -PriorityLevelConfigurationCondition defines the condition of priority level. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**lastTransitionTime** | **OffsetDateTime** | `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 a3d063d16f..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationList.md +++ /dev/null @@ -1,21 +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 41113adca3..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationReference.md +++ /dev/null @@ -1,14 +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 2642739e3e..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationSpec.md +++ /dev/null @@ -1,16 +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 b00fdece67..0000000000 --- a/kubernetes/docs/V1beta3PriorityLevelConfigurationStatus.md +++ /dev/null @@ -1,14 +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 f783dc286b..0000000000 --- a/kubernetes/docs/V1beta3QueuingConfiguration.md +++ /dev/null @@ -1,16 +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 dd5863a685..0000000000 --- a/kubernetes/docs/V1beta3ResourcePolicyRule.md +++ /dev/null @@ -1,18 +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 47a854ab06..0000000000 --- a/kubernetes/docs/V1beta3ServiceAccountSubject.md +++ /dev/null @@ -1,15 +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 ae6c7f473b..0000000000 --- a/kubernetes/docs/V1beta3Subject.md +++ /dev/null @@ -1,17 +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 fcba6218a3..0000000000 --- a/kubernetes/docs/V1beta3UserSubject.md +++ /dev/null @@ -1,14 +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 6115459481..731cd9b4b4 100644 --- a/kubernetes/docs/V2HPAScalingRules.md +++ b/kubernetes/docs/V2HPAScalingRules.md @@ -2,15 +2,16 @@ # 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 the beta HPAConfigurableTolerance feature gate to be enabled.) ## 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 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 8a3c215866..fb4090f322 100644 --- a/kubernetes/docs/V2MetricSpec.md +++ b/kubernetes/docs/V2MetricSpec.md @@ -13,7 +13,7 @@ MetricSpec specifies how to scale based on a single metric (only `type` and one |**_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 4c790927b2..0572cc327b 100644 --- a/kubernetes/docs/V2MetricStatus.md +++ b/kubernetes/docs/V2MetricStatus.md @@ -13,7 +13,7 @@ MetricStatus describes the last-read state of a single metric. |**_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 c9339b276d..7234d036af 100644 --- a/kubernetes/docs/VersionApi.md +++ b/kubernetes/docs/VersionApi.md @@ -13,7 +13,7 @@ All URIs are relative to *http://localhost* -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 dc1d0666ed..9da6d4c92d 100644 --- a/kubernetes/docs/VersionInfo.md +++ b/kubernetes/docs/VersionInfo.md @@ -10,12 +10,16 @@ Info contains versioning information. how we'll want to distribute that informat |------------ | ------------- | ------------- | -------------| |**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 d30e8a78f7..4bdd6b9cf1 100644 --- a/kubernetes/pom.xml +++ b/kubernetes/pom.xml @@ -9,7 +9,7 @@ io.kubernetes client-java-parent - 21.0.0-SNAPSHOT + 27.0.0-SNAPSHOT ../pom.xml @@ -142,10 +142,6 @@ - - javax.annotation - javax.annotation-api - jakarta.annotation jakarta.annotation-api @@ -154,10 +150,6 @@ io.swagger swagger-annotations - - com.squareup.okhttp3 - okhttp - com.squareup.okhttp3 logging-interceptor @@ -178,19 +170,12 @@ org.apache.commons commons-lang3 - - com.google.code.findbugs - jsr305 - - - jakarta.ws.rs - jakarta.ws.rs-api - + - ch.qos.logback - logback-classic + org.assertj + assertj-core test @@ -198,10 +183,6 @@ junit-jupiter test - - org.assertj - assertj-core - test - + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java index 6dac807a7c..9b7075263b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiCallback.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java index a18ccfe6d4..dd6f5d96cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -60,7 +60,7 @@ */ public class ApiClient { - private String basePath = "http://localhost"; + protected String basePath = "http://localhost"; protected List servers = new ArrayList(Arrays.asList( new ServerConfiguration( "", @@ -70,26 +70,27 @@ public class ApiClient { )); protected Integer serverIndex = 0; protected Map serverVariables = null; - private boolean debugging = false; - private Map defaultHeaderMap = new HashMap(); - private Map defaultCookieMap = new HashMap(); - private String tempFolderPath = null; + protected boolean debugging = false; + protected Map defaultHeaderMap = new HashMap(); + protected Map defaultCookieMap = new HashMap(); + protected String tempFolderPath = null; - private Map authentications; + protected Map authentications; - private DateFormat dateFormat; - private DateFormat datetimeFormat; - private boolean lenientDatetimeFormat; - private int dateLength; + protected DateFormat dateFormat; + protected DateFormat datetimeFormat; + protected boolean lenientDatetimeFormat; + protected int dateLength; - private InputStream sslCaCert; - private boolean verifyingSsl; - private KeyManager[] keyManagers; + protected InputStream sslCaCert; + protected boolean verifyingSsl; + protected KeyManager[] keyManagers; + protected String tlsServerName; - private OkHttpClient httpClient; - private JSON json; + protected OkHttpClient httpClient; + protected JSON json; - private HttpLoggingInterceptor loggingInterceptor; + protected HttpLoggingInterceptor loggingInterceptor; /** * Basic constructor for ApiClient @@ -120,11 +121,11 @@ public ApiClient(OkHttpClient client) { authentications = Collections.unmodifiableMap(authentications); } - private void initHttpClient() { + protected void initHttpClient() { initHttpClient(Collections.emptyList()); } - private void initHttpClient(List interceptors) { + protected void initHttpClient(List interceptors) { OkHttpClient.Builder builder = new OkHttpClient.Builder(); builder.addNetworkInterceptor(getProgressInterceptor()); for (Interceptor interceptor: interceptors) { @@ -134,13 +135,13 @@ private void initHttpClient(List interceptors) { httpClient = builder.build(); } - private void init() { + protected void init() { verifyingSsl = true; json = new JSON(); // Set default User-Agent. - setUserAgent("Kubernetes Java Client/21.0.0-SNAPSHOT"); + setUserAgent("Kubernetes Java Client/25.0.0-SNAPSHOT"); authentications = new HashMap(); } @@ -157,8 +158,8 @@ public String getBasePath() { /** * Set base path * - * @param basePath Base path of the URL (e.g http://localhost - * @return An instance of OkHttpClient + * @param basePath Base path of the URL (e.g http://localhost) + * @return An instance of ApiClient */ public ApiClient setBasePath(String basePath) { this.basePath = basePath; @@ -206,7 +207,7 @@ public OkHttpClient getHttpClient() { * Set HTTP client, which must never be null. * * @param newHttpClient An instance of OkHttpClient - * @return Api Client + * @return ApiClient * @throws java.lang.NullPointerException when newHttpClient is null */ public ApiClient setHttpClient(OkHttpClient newHttpClient) { @@ -301,6 +302,29 @@ public ApiClient setKeyManagers(KeyManager[] managers) { return this; } + /** + * Get TLS server name for SNI (Server Name Indication). + * + * @return The TLS server name + */ + public String getTlsServerName() { + return tlsServerName; + } + + /** + * Set TLS server name for SNI (Server Name Indication). + * This is used to verify the server certificate against a specific hostname + * instead of the hostname in the URL. + * + * @param tlsServerName The TLS server name to use for certificate verification + * @return ApiClient + */ + public ApiClient setTlsServerName(String tlsServerName) { + this.tlsServerName = tlsServerName; + applySslSettings(); + return this; + } + /** *

Getter for the field dateFormat.

* @@ -694,7 +718,7 @@ public List parameterToPair(String name, Object value) { * @param value The value of the parameter. * @return A list of {@code Pair} objects. */ - public List parameterToPairs(String collectionFormat, String name, Collection value) { + public List parameterToPairs(String collectionFormat, String name, Collection value) { List params = new ArrayList(); // preconditions @@ -734,6 +758,31 @@ public List parameterToPairs(String collectionFormat, String name, Collect return params; } + /** + * Formats the specified free-form query parameters to a list of {@code Pair} objects. + * + * @param value The free-form query parameters. + * @return A list of {@code Pair} objects. + */ + public List freeFormParameterToPairs(Object value) { + List params = new ArrayList<>(); + + // preconditions + if (value == null || !(value instanceof Map )) { + return params; + } + + @SuppressWarnings("unchecked") + final Map valuesMap = (Map) value; + + for (Map.Entry entry : valuesMap.entrySet()) { + params.add(new Pair(entry.getKey(), parameterToString(entry.getValue()))); + } + + return params; + } + + /** * Formats the specified collection path parameter to a string value. * @@ -776,7 +825,7 @@ public String collectionPathParameterToString(String collectionFormat, Collectio * @return The sanitized filename */ public String sanitizeFilename(String filename) { - return filename.replaceAll(".*[/\\\\]", ""); + return filename.replaceFirst("^.*[/\\\\]", ""); } /** @@ -886,17 +935,8 @@ public T deserialize(Response response, Type returnType) throws ApiException return (T) downloadFileFromResponse(response); } - String respBody; - try { - if (response.body() != null) - respBody = response.body().string(); - else - respBody = null; - } catch (IOException e) { - throw new ApiException(e); - } - - if (respBody == null || "".equals(respBody)) { + ResponseBody respBody = response.body(); + if (respBody == null) { return null; } @@ -905,17 +945,35 @@ public T deserialize(Response response, Type returnType) throws ApiException // ensuring a default content type contentType = "application/json"; } - if (isJsonMime(contentType)) { - return JSON.deserialize(respBody, returnType); - } else if (returnType.equals(String.class)) { - // Expecting string, return the raw response body. - return (T) respBody; - } else { - throw new ApiException( + try { + if (isJsonMime(contentType)) { + if (returnType.equals(String.class)) { + String respBodyString = respBody.string(); + if (respBodyString.isEmpty()) { + return null; + } + // Use String-based deserialize for String return type with fallback + return JSON.deserialize(respBodyString, returnType); + } else { + // Use InputStream-based deserialize which supports responses > 2GB + return JSON.deserialize(respBody.byteStream(), returnType); + } + } else if (returnType.equals(String.class)) { + String respBodyString = respBody.string(); + if (respBodyString.isEmpty()) { + return null; + } + // Expecting string, return the raw response body. + return (T) respBodyString; + } else { + throw new ApiException( "Content type \"" + contentType + "\" is not supported for type: " + returnType, response.code(), response.headers().toMultimap(), - respBody); + response.body().string()); + } + } catch (IOException e) { + throw new ApiException(e); } } @@ -1172,10 +1230,6 @@ public Call buildCall(String baseUrl, String path, String method, List que * @throws io.kubernetes.client.openapi.ApiException If fail to serialize the request body object */ public Request buildRequest(String baseUrl, String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map cookieParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { - // aggregate queryParams (non-collection) and collectionQueryParams into allQueryParams - List allQueryParams = new ArrayList(queryParams); - allQueryParams.addAll(collectionQueryParams); - final String url = buildUrl(baseUrl, path, queryParams, collectionQueryParams); // prepare HTTP request body @@ -1203,10 +1257,12 @@ public Request buildRequest(String baseUrl, String path, String method, List updatedQueryParams = new ArrayList<>(queryParams); + // update parameters with authentication settings - updateParamsForAuth(authNames, allQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); + updateParamsForAuth(authNames, updatedQueryParams, headerParams, cookieParams, requestBodyToString(reqBody), method, URI.create(url)); - final Request.Builder reqBuilder = new Request.Builder().url(url); + final Request.Builder reqBuilder = new Request.Builder().url(buildUrl(baseUrl, path, updatedQueryParams, collectionQueryParams)); processHeaderParams(headerParams, reqBuilder); processCookieParams(cookieParams, reqBuilder); @@ -1244,7 +1300,8 @@ public String buildUrl(String baseUrl, String path, List queryParams, List if (serverIndex != null) { if (serverIndex < 0 || serverIndex >= servers.size()) { throw new ArrayIndexOutOfBoundsException(String.format( - "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() + java.util.Locale.ROOT, + "Invalid index %d when selecting the host settings. Must be less than %d", serverIndex, servers.size() )); } baseURL = servers.get(serverIndex).URL(serverVariables); @@ -1316,11 +1373,11 @@ public void processHeaderParams(Map headerParams, Request.Builde */ public void processCookieParams(Map cookieParams, Request.Builder reqBuilder) { for (Entry param : cookieParams.entrySet()) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + reqBuilder.addHeader("Cookie", String.format(java.util.Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); } for (Entry param : defaultCookieMap.entrySet()) { if (!cookieParams.containsKey(param.getKey())) { - reqBuilder.addHeader("Cookie", String.format("%s=%s", param.getKey(), param.getValue())); + reqBuilder.addHeader("Cookie", String.format(java.util.Locale.ROOT, "%s=%s", param.getKey(), param.getValue())); } } } @@ -1413,7 +1470,7 @@ public String guessContentTypeFromFile(File file) { * @param key The key of the Header element * @param file The file to add to the Header */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { + protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); @@ -1426,7 +1483,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k * @param key The key of the Header element * @param obj The complex object to add to the Header */ - private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { + protected void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { RequestBody requestBody; if (obj instanceof String) { requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); @@ -1448,7 +1505,7 @@ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String k * Get network interceptor to add it to the httpClient to track download progress for * async requests. */ - private Interceptor getProgressInterceptor() { + protected Interceptor getProgressInterceptor() { return new Interceptor() { @Override public Response intercept(Interceptor.Chain chain) throws IOException { @@ -1469,7 +1526,7 @@ public Response intercept(Interceptor.Chain chain) throws IOException { * Apply SSL related settings to httpClient according to the current values of * verifyingSsl and sslCaCert. */ - private void applySslSettings() { + protected void applySslSettings() { try { TrustManager[] trustManagers; HostnameVerifier hostnameVerifier; @@ -1517,7 +1574,17 @@ public boolean verify(String hostname, SSLSession session) { trustManagerFactory.init(caKeyStore); } trustManagers = trustManagerFactory.getTrustManagers(); - hostnameVerifier = OkHostnameVerifier.INSTANCE; + if (tlsServerName != null && !tlsServerName.isEmpty()) { + hostnameVerifier = new HostnameVerifier() { + @Override + public boolean verify(String hostname, SSLSession session) { + // Verify the certificate against tlsServerName instead of the actual hostname + return OkHostnameVerifier.INSTANCE.verify(tlsServerName, session); + } + }; + } else { + hostnameVerifier = OkHostnameVerifier.INSTANCE; + } } SSLContext sslContext = SSLContext.getInstance("TLS"); @@ -1531,7 +1598,7 @@ public boolean verify(String hostname, SSLSession session) { } } - private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { + protected KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityException { try { KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType()); keyStore.load(null, password); @@ -1548,7 +1615,7 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti * @return The string representation of the HTTP request body * @throws io.kubernetes.client.openapi.ApiException If fail to serialize the request body object into a string */ - private String requestBodyToString(RequestBody requestBody) throws ApiException { + protected String requestBodyToString(RequestBody requestBody) throws ApiException { if (requestBody != null) { try { final Buffer buffer = new Buffer(); 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 0ec7bcf746..905691a165 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -20,7 +20,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-09T20:15:56.920539Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; @@ -160,7 +160,7 @@ public String getResponseBody() { * @return The exception message */ public String getMessage() { - return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", + return String.format(java.util.Locale.ROOT, "Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java index 3228aa6911..2e18434ecd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiResponse.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 56badfd7bc..77885f3f91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,29 +12,51 @@ */ package io.kubernetes.client.openapi; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-09T20:15:56.920539Z[Etc/UTC]", comments = "Generator version: 7.6.0") +import java.util.Objects; +import java.util.concurrent.atomic.AtomicReference; +import java.util.function.Supplier; + +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class Configuration { - public static final String VERSION = "21.0.0-SNAPSHOT"; + public static final String VERSION = "25.0.0-SNAPSHOT"; - private static ApiClient defaultApiClient = new ApiClient(); + private static final AtomicReference defaultApiClient = new AtomicReference<>(); + private static volatile Supplier apiClientFactory = ApiClient::new; - /** - * Get the default API client, which would be used when creating API - * instances without providing an API client. - * - * @return Default API client - */ - public static ApiClient getDefaultApiClient() { - return defaultApiClient; + /** + * Get the default API client, which would be used when creating API instances without providing an API client. + * + * @return Default API client + */ + public static ApiClient getDefaultApiClient() { + ApiClient client = defaultApiClient.get(); + if (client == null) { + client = defaultApiClient.updateAndGet(val -> { + if (val != null) { // changed by another thread + return val; + } + return apiClientFactory.get(); + }); } + return client; + } - /** - * Set the default API client, which would be used when creating API - * instances without providing an API client. - * - * @param apiClient API client - */ - public static void setDefaultApiClient(ApiClient apiClient) { - defaultApiClient = apiClient; - } + /** + * Set the default API client, which would be used when creating API instances without providing an API client. + * + * @param apiClient API client + */ + public static void setDefaultApiClient(ApiClient apiClient) { + defaultApiClient.set(apiClient); + } + + /** + * set the callback used to create new ApiClient objects + */ + public static void setApiClientFactory(Supplier factory) { + apiClientFactory = Objects.requireNonNull(factory); + } + + private Configuration() { + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java index 7b0cf738c6..d2c0afc440 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/GzipRequestInterceptor.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 34acd3db04..7c9c2c380d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,30 +12,33 @@ */ package io.kubernetes.client.openapi; -import com.fasterxml.jackson.databind.util.StdDateFormat; import com.google.gson.Gson; import com.google.gson.GsonBuilder; 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 okio.ByteString; import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; import java.io.StringReader; import java.lang.reflect.Type; +import java.nio.charset.StandardCharsets; import java.text.DateFormat; import java.text.ParseException; +import java.text.ParsePosition; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.time.ZoneId; -import java.time.ZoneOffset; import java.time.format.DateTimeFormatter; import java.time.format.DateTimeFormatterBuilder; import java.time.format.DateTimeParseException; @@ -44,7 +47,6 @@ import java.util.Locale; import java.util.Map; import java.util.HashMap; -import java.util.TimeZone; /* * A JSON utility class @@ -55,15 +57,16 @@ public class JSON { private static Gson gson; private static boolean isLenientOnJson = false; + private static final DateTimeFormatter RFC3339MICRO_FORMATTER = - new DateTimeFormatterBuilder() - .parseDefaulting(ChronoField.OFFSET_SECONDS, 0) - .append(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")) - .optionalStart() - .appendFraction(ChronoField.NANO_OF_SECOND, 6, 6, true) - .optionalEnd() - .appendLiteral("Z") - .toFormatter(); + new DateTimeFormatterBuilder() + .parseDefaulting(ChronoField.OFFSET_SECONDS, 0) + .append(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")) + .optionalStart() + .appendFraction(ChronoField.NANO_OF_SECOND, 6, 6, true) + .optionalEnd() + .appendLiteral("Z") + .toFormatter(); private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); @@ -71,18 +74,14 @@ public class JSON { private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); - private static final StdDateFormat sdf = new StdDateFormat() - .withTimeZone(TimeZone.getTimeZone(ZoneId.systemDefault())) - .withColonInTimeZone(true); - private static final DateTimeFormatter dtf = DateTimeFormatter.ISO_OFFSET_DATE_TIME; - @SuppressWarnings("unchecked") public static GsonBuilder createGson() { - GsonFireBuilder fireBuilder = new GsonFireBuilder(); + GsonFireBuilder fireBuilder = new GsonFireBuilder() + ; GsonBuilder builder = - fireBuilder - .registerPreProcessor(V1Status.class, new V1StatusPreProcessor()) - .createGsonBuilder(); + fireBuilder + .registerPreProcessor(V1Status.class, new V1StatusPreProcessor()) + .createGsonBuilder(); return builder.setExclusionStrategies(new V1MetadataExclusionStrategy()); } @@ -126,12 +125,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.CoreV1Event.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.CoreV1EventList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.CoreV1EventSeries.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.CoreV1ResourceClaim.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.DiscoveryV1EndpointPort.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.EventsV1Event.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.EventsV1EventList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.EventsV1EventSeries.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.FlowcontrolV1Subject.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.RbacV1Subject.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.ResourceV1ResourceClaim.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.StorageV1TokenRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1APIGroup.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1APIGroupList.CustomTypeAdapterFactory()); @@ -146,6 +147,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AWSElasticBlockStoreVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Affinity.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AggregationRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AllocatedDeviceStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AppArmorProfile.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AttachedVolume.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AuditAnnotation.CustomTypeAdapterFactory()); @@ -154,6 +157,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AzureFileVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Binding.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1BoundObjectReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CELDeviceSelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIDriver.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIDriverList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIDriverSpec.CustomTypeAdapterFactory()); @@ -166,6 +170,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIStorageCapacityList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CSIVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Capabilities.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CapacityRequestPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CapacityRequestPolicyRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CapacityRequirements.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CephFSPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CephFSVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CertificateSigningRequest.CustomTypeAdapterFactory()); @@ -175,7 +182,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CinderPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CinderVolumeSource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClaimSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClientIPConfig.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClusterRole.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ClusterRoleBinding.CustomTypeAdapterFactory()); @@ -194,16 +200,22 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ConfigMapProjection.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ConfigMapVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Container.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerExtendedResourceRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerImage.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerPort.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerResizePolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerRestartRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerRestartRuleOnExitCodes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerState.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerStateRunning.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerStateTerminated.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerStateWaiting.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ContainerUser.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ControllerRevision.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ControllerRevisionList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Counter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CounterSet.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CronJob.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CronJobList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1CronJobSpec.CustomTypeAdapterFactory()); @@ -235,6 +247,25 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeploymentSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeploymentStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeploymentStrategy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Device.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceAllocationConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceAllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceCapacity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClaimConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClass.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClassConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClassList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceClassSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceConstraint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceCounterConsumption.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceRequestAllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceSubRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceTaint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DeviceToleration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DownwardAPIProjection.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeFile.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1DownwardAPIVolumeSource.CustomTypeAdapterFactory()); @@ -255,11 +286,15 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1EphemeralVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1EventSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Eviction.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExactDeviceRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExecAction.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExemptPriorityLevelConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExpressionWarning.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ExternalDocumentation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FCVolumeSource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FieldSelectorAttributes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FieldSelectorRequirement.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FileKeySelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlexPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlexVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlockerVolumeSource.CustomTypeAdapterFactory()); @@ -269,12 +304,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlowSchemaList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlowSchemaSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1FlowSchemaStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ForNode.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ForZone.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GRPCAction.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GitRepoVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GlusterfsPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GlusterfsVolumeSource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GroupResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GroupSubject.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HTTPGetAction.CustomTypeAdapterFactory()); @@ -288,9 +325,13 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HostAlias.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HostIP.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HostPathVolumeSource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IPAddress.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IPAddressList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IPAddressSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IPBlock.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ISCSIVolumeSource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ImageVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Ingress.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IngressBackend.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IngressClass.CustomTypeAdapterFactory()); @@ -315,6 +356,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JobTemplateSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1KeyToPath.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LabelSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LabelSelectorAttributes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LabelSelectorRequirement.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Lease.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LeaseList.CustomTypeAdapterFactory()); @@ -327,6 +369,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LimitRangeSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LimitResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LimitedPriorityLevelConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LinuxContainerUser.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ListMeta.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LoadBalancerIngress.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1LoadBalancerStatus.CustomTypeAdapterFactory()); @@ -347,6 +390,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NamespaceList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NamespaceSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NamespaceStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NetworkDeviceData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NetworkPolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NetworkPolicyEgressRule.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NetworkPolicyIngressRule.CustomTypeAdapterFactory()); @@ -361,6 +405,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeConfigSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeConfigStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeDaemonEndpoints.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeFeatures.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeRuntimeHandler.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeRuntimeHandlerFeatures.CustomTypeAdapterFactory()); @@ -369,6 +414,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeSelectorTerm.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeSwapStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeSystemInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NonResourceAttributes.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NonResourcePolicyRule.CustomTypeAdapterFactory()); @@ -376,10 +422,12 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ObjectFieldSelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ObjectMeta.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ObjectReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Overhead.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1OwnerReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ParamKind.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ParamRef.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ParentReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PersistentVolume.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PersistentVolumeClaim.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PersistentVolumeClaimCondition.CustomTypeAdapterFactory()); @@ -396,6 +444,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodAffinity.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodAffinityTerm.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodAntiAffinity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodCertificateProjection.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDNSConfig.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDNSConfigOption.CustomTypeAdapterFactory()); @@ -403,6 +452,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodDisruptionBudgetStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodExtendedResourceClaimStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodFailurePolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodFailurePolicyOnExitCodesRequirement.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodFailurePolicyOnPodConditionsPattern.CustomTypeAdapterFactory()); @@ -451,15 +501,27 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ReplicationControllerSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ReplicationControllerStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceAttributes.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimConsumerReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimTemplate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimTemplateList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceClaimTemplateSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceFieldSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceHealth.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourcePolicyRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourcePool.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceQuota.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceQuotaList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceQuotaSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceQuotaStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceRequirements.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceSlice.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceSliceList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceSliceSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ResourceStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Role.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1RoleBinding.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1RoleBindingList.CustomTypeAdapterFactory()); @@ -503,6 +565,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceAccountSubject.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceAccountTokenProjection.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceBackendPort.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceCIDR.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceCIDRList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceCIDRSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceCIDRStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServicePort.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceSpec.CustomTypeAdapterFactory()); @@ -567,6 +633,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttachmentSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttachmentSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttachmentStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttributesClass.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeAttributesClassList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeDevice.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeMount.CustomTypeAdapterFactory()); @@ -580,130 +648,169 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WebhookConversion.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1AuditAnnotation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WorkloadReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ApplyConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ExpressionWarning.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1GroupVersionResource.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1IPAddress.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1IPAddressList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1IPAddressSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1GangSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1JSONPatch.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MatchCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MatchResources.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MigrationCondition.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBinding.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBindingList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyBindingSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicyList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MutatingAdmissionPolicySpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1Mutation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ParamKind.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ParamRef.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ParentReference.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1SelfSubjectReview.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1SelfSubjectReviewStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1PodGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1PodGroupPolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ServiceCIDR.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ServiceCIDRList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ServiceCIDRSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ServiceCIDRStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersion.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigrationList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigrationSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionMigrationStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1TypeChecking.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBinding.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBindingList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyBindingSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicySpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ValidatingAdmissionPolicyStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1Validation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1TypedLocalObjectReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1Variable.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClass.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1VolumeAttributesClassList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2AllocationResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2DriverAllocationResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2DriverRequests.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2NamedResourcesAllocationResult.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2NamedResourcesAttribute.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2NamedResourcesFilter.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2NamedResourcesInstance.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2NamedResourcesIntSlice.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2NamedResourcesRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2NamedResourcesResources.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2NamedResourcesStringSlice.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContext.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContextList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContextSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodSchedulingContextStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaim.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimConsumerReference.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimParameters.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimParametersList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimParametersReference.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSchedulingStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplate.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplateList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClaimTemplateSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClass.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClassList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClassParameters.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClassParametersList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceClassParametersReference.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceFilter.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceHandle.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceRequest.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceSlice.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2ResourceSliceList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2StructuredResourceHandle.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2VendorParameters.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1AuditAnnotation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ExpressionWarning.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1Workload.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1WorkloadList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1WorkloadSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2LeaseCandidateList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2LeaseCandidateSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1AllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ApplyConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1BasicDevice.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CELDeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CapacityRequestPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CapacityRequestPolicyRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CapacityRequirements.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundle.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundleList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ClusterTrustBundleSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Counter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1CounterSet.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Device.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceAllocationConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceAllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceCapacity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceClaimConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceClass.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceClassConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceClassList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceClassSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceConstraint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceRequestAllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceSubRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceTaint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1DeviceToleration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1IPAddress.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1IPAddressList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1IPAddressSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1JSONPatch.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidateList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1LeaseCandidateSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MatchCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MatchResources.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBinding.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBindingList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBindingSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicySpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Mutation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NetworkDeviceData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ParamKind.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ParamRef.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1SelfSubjectReview.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1SelfSubjectReviewStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1TypeChecking.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBindingList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBindingSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicySpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Validation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ParentReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodCertificateRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodCertificateRequestList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodCertificateRequestSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1PodCertificateRequestStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaimConsumerReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaimList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaimSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaimStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplateList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceClaimTemplateSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourcePool.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceSlice.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceSliceList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ResourceSliceSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDR.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDRList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDRSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ServiceCIDRStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1StorageVersionMigration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1StorageVersionMigrationList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1StorageVersionMigrationSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1StorageVersionMigrationStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Variable.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3ExemptPriorityLevelConfiguration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3FlowDistinguisherMethod.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3FlowSchema.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3FlowSchemaCondition.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3FlowSchemaList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3FlowSchemaSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3FlowSchemaStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3GroupSubject.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3LimitResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3LimitedPriorityLevelConfiguration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3NonResourcePolicyRule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3PolicyRulesWithSubjects.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfiguration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationCondition.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationReference.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3PriorityLevelConfigurationStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3QueuingConfiguration.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3ResourcePolicyRule.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3ServiceAccountSubject.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3Subject.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta3UserSubject.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClass.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1VolumeAttributesClassList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2AllocatedDeviceStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2AllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CELDeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CapacityRequestPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CapacityRequestPolicyRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CapacityRequirements.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2Counter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2CounterSet.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2Device.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceAllocationConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceAllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceAttribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceCapacity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClaimConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClass.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClassConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClassList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceClassSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceConstraint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceRequestAllocationResult.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceTaint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceToleration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ExactDeviceRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2NetworkDeviceData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplateList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplateSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourcePool.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceSlice.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceSliceList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceSliceSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2CrossVersionObjectReference.CustomTypeAdapterFactory()); @@ -794,6 +901,28 @@ public static T deserialize(String body, Type returnType) { } } + /** + * Deserialize the given JSON InputStream to a Java object. + * + * @param Type + * @param inputStream The JSON InputStream + * @param returnType The type to deserialize into + * @return The deserialized Java object + */ + @SuppressWarnings("unchecked") + public static T deserialize(InputStream inputStream, Type returnType) throws IOException { + try (InputStreamReader reader = new InputStreamReader(inputStream, StandardCharsets.UTF_8)) { + if (isLenientOnJson) { + // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) + JsonReader jsonReader = new JsonReader(reader); + jsonReader.setLenient(true); + return gson.fromJson(jsonReader, returnType); + } else { + return gson.fromJson(reader, returnType); + } + } + } + /** * Gson TypeAdapter for Byte Array type */ @@ -803,7 +932,6 @@ public static class ByteArrayAdapter extends TypeAdapter { public void write(JsonWriter out, byte[] value) throws IOException { boolean oldHtmlSafe = out.isHtmlSafe(); out.setHtmlSafe(false); - if (value == null) { out.nullValue(); } else { @@ -970,7 +1098,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(sdf.parse(date).getTime()); + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); } catch (ParseException e) { throw new JsonParseException(e); } @@ -980,7 +1108,7 @@ public java.sql.Date read(JsonReader in) throws IOException { /** * Gson TypeAdapter for java.util.Date type - * If the dateFormat is null, DateTimeFormatter will be used. + * If the dateFormat is null, ISO8601Utils will be used. */ public static class DateTypeAdapter extends TypeAdapter { @@ -1005,7 +1133,7 @@ public void write(JsonWriter out, Date date) throws IOException { if (dateFormat != null) { value = dateFormat.format(date); } else { - value = date.toInstant().atOffset(ZoneOffset.UTC).format(dtf); + value = ISO8601Utils.format(date, true); } out.value(value); } @@ -1024,7 +1152,7 @@ public Date read(JsonReader in) throws IOException { if (dateFormat != null) { return dateFormat.parse(date); } - return sdf.parse(date); + return ISO8601Utils.parse(date, new ParsePosition(0)); } catch (ParseException e) { throw new JsonParseException(e); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java index a15dd8142f..c62ba303df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.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,45 +12,25 @@ */ package io.kubernetes.client.openapi; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-09T20:15:56.920539Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class Pair { - private String name = ""; - private String value = ""; + private final String name; + private final String value; - public Pair (String name, String value) { - setName(name); - setValue(value); - } + public Pair(String name, String value) { + this.name = isValidString(name) ? name : ""; + this.value = isValidString(value) ? value : ""; + } - private void setName(String name) { - if (!isValidString(name)) { - return; - } + public String getName() { + return this.name; + } - this.name = name; - } + public String getValue() { + return this.value; + } - private void setValue(String value) { - if (!isValidString(value)) { - return; - } - - this.value = value; - } - - public String getName() { - return this.name; - } - - public String getValue() { - return this.value; - } - - private boolean isValidString(String arg) { - if (arg == null) { - return false; - } - - return true; - } + private static boolean isValidString(String arg) { + return arg != null; + } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java index e042f2088d..48feafea80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressRequestBody.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java index c239f01743..a7a7717b0b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ProgressResponseBody.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.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 dcc9e1e226..77a54287e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -17,7 +17,7 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-09T20:15:56.920539Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ServerConfiguration { public String URL; public String description; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java index 492e7a9b95..c381249bd7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -17,7 +17,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-09T20:15:56.920539Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java index 855f984370..e098b46691 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -15,7 +15,7 @@ import java.util.Collection; import java.util.Iterator; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-09T20:15:56.920539Z[Etc/UTC]", comments = "Generator version: 7.6.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java index 59cdbb0f7a..dcf108fde2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java index 02d11b6810..4541caf3c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -82,7 +82,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -126,7 +126,8 @@ private okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookCon final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -146,7 +147,7 @@ private okhttp3.Call createMutatingWebhookConfigurationCall(V1MutatingWebhookCon } @SuppressWarnings("rawtypes") - private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 createMutatingWebhookConfiguration(Async)"); @@ -157,13 +158,13 @@ private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(V1Muta } - private ApiResponse createMutatingWebhookConfigurationWithHttpInfo(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createMutatingWebhookConfigurationAsync(V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -172,13 +173,18 @@ private okhttp3.Call createMutatingWebhookConfigurationAsync(V1MutatingWebhookCo } public class APIcreateMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final V1MutatingWebhookConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateMutatingWebhookConfigurationRequest(V1MutatingWebhookConfiguration body) { + private APIcreateMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { this.body = body; } @@ -187,7 +193,7 @@ private APIcreateMutatingWebhookConfigurationRequest(V1MutatingWebhookConfigurat * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIcreateMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -197,7 +203,7 @@ public APIcreateMutatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIcreateMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -207,7 +213,7 @@ public APIcreateMutatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateMutatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIcreateMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -217,7 +223,7 @@ public APIcreateMutatingWebhookConfigurationRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateMutatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIcreateMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -228,7 +234,8 @@ public APIcreateMutatingWebhookConfigurationRequest fieldValidation(String field * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -245,7 +252,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -263,7 +271,8 @@ public V1MutatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -281,7 +290,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -300,7 +310,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -308,10 +319,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateMutatingWebhookConfigurationRequest createMutatingWebhookConfiguration(V1MutatingWebhookConfiguration body) { + public APIcreateMutatingWebhookConfigurationRequest createMutatingWebhookConfiguration(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { return new APIcreateMutatingWebhookConfigurationRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyCall(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -355,7 +366,8 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1ValidatingAdmissionPo final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -375,7 +387,7 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1ValidatingAdmissionPo } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); @@ -386,13 +398,13 @@ private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1Validat } - private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyAsync(V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -401,13 +413,18 @@ private okhttp3.Call createValidatingAdmissionPolicyAsync(V1ValidatingAdmissionP } public class APIcreateValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyRequest(V1ValidatingAdmissionPolicy body) { + private APIcreateValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { this.body = body; } @@ -416,7 +433,7 @@ private APIcreateValidatingAdmissionPolicyRequest(V1ValidatingAdmissionPolicy bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIcreateValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -426,7 +443,7 @@ public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIcreateValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -436,7 +453,7 @@ public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIcreateValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -446,7 +463,7 @@ public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIcreateValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -457,7 +474,8 @@ public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldVal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -474,7 +492,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -492,7 +511,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -510,7 +530,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -529,7 +550,8 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIcreateValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -537,10 +559,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(V1ValidatingAdmissionPolicy body) { + public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { return new APIcreateValidatingAdmissionPolicyRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -584,7 +606,8 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1ValidatingAdmi final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -604,7 +627,7 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1ValidatingAdmi } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); @@ -615,13 +638,13 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1 } - private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -630,13 +653,18 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1ValidatingAdm } public class APIcreateValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyBindingRequest(V1ValidatingAdmissionPolicyBinding body) { + private APIcreateValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { this.body = body; } @@ -645,7 +673,7 @@ private APIcreateValidatingAdmissionPolicyBindingRequest(V1ValidatingAdmissionPo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIcreateValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -655,7 +683,7 @@ public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -665,7 +693,7 @@ public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -675,7 +703,7 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateValidatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -686,7 +714,8 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -703,7 +732,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -721,7 +751,8 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -739,7 +770,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -758,7 +790,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -766,10 +799,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(V1ValidatingAdmissionPolicyBinding body) { + public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { return new APIcreateValidatingAdmissionPolicyBindingRequest(body); } - private okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -813,7 +846,8 @@ private okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhoo final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -833,7 +867,7 @@ private okhttp3.Call createValidatingWebhookConfigurationCall(V1ValidatingWebhoo } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); @@ -844,13 +878,13 @@ private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(V1Va } - private ApiResponse createValidatingWebhookConfigurationWithHttpInfo(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingWebhookConfigurationAsync(V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -859,13 +893,18 @@ private okhttp3.Call createValidatingWebhookConfigurationAsync(V1ValidatingWebho } public class APIcreateValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final V1ValidatingWebhookConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingWebhookConfigurationRequest(V1ValidatingWebhookConfiguration body) { + private APIcreateValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { this.body = body; } @@ -874,7 +913,7 @@ private APIcreateValidatingWebhookConfigurationRequest(V1ValidatingWebhookConfig * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateValidatingWebhookConfigurationRequest */ - public APIcreateValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIcreateValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -884,7 +923,7 @@ public APIcreateValidatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateValidatingWebhookConfigurationRequest */ - public APIcreateValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIcreateValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -894,7 +933,7 @@ public APIcreateValidatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateValidatingWebhookConfigurationRequest */ - public APIcreateValidatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIcreateValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -904,7 +943,7 @@ public APIcreateValidatingWebhookConfigurationRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateValidatingWebhookConfigurationRequest */ - public APIcreateValidatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIcreateValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -915,7 +954,8 @@ public APIcreateValidatingWebhookConfigurationRequest fieldValidation(String fie * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -932,7 +972,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -950,7 +991,8 @@ public V1ValidatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -968,7 +1010,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -987,7 +1030,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+ @@ -995,10 +1039,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingWebhookConfigurationRequest createValidatingWebhookConfiguration(V1ValidatingWebhookConfiguration body) { + public APIcreateValidatingWebhookConfigurationRequest createValidatingWebhookConfiguration(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { return new APIcreateValidatingWebhookConfigurationRequest(body); } - private 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 { + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1043,6 +1087,10 @@ private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1078,7 +1126,8 @@ private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pre final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1098,40 +1147,56 @@ private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pre } @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 { - return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, 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; } public class APIdeleteCollectionMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionMutatingWebhookConfigurationRequest() { @@ -1142,7 +1207,7 @@ private APIdeleteCollectionMutatingWebhookConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1152,7 +1217,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest pretty(String pret * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest _continue(String _continue) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1162,7 +1227,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest _continue(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) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1172,7 +1237,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest dryRun(String dryR * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1182,17 +1247,27 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest fieldSelector(Stri * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest labelSelector(String labelSelector) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1202,7 +1277,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest labelSelector(Stri * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest limit(Integer limit) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1212,7 +1287,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest limit(Integer limi * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1222,7 +1297,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest orphanDependents(B * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1232,7 +1307,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest propagationPolicy( * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1242,7 +1317,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersion(St * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1252,7 +1327,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersionMat * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1262,7 +1337,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest sendInitialEvents( * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1272,7 +1347,7 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest timeoutSeconds(Int * @param body (optional) * @return APIdeleteCollectionMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest body(V1DeleteOptions body) { + public APIdeleteCollectionMutatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1283,14 +1358,15 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest body(V1DeleteOptio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -1298,14 +1374,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1314,14 +1391,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -1330,14 +1408,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingWebhookConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingWebhookConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -1346,7 +1425,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of MutatingWebhookConfiguration * @return APIdeleteCollectionMutatingWebhookConfigurationRequest * @http.response.details - +
+ @@ -1355,7 +1435,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionMutatingWebhookConfigurationRequest deleteCollectionMutatingWebhookConfiguration() { return new APIdeleteCollectionMutatingWebhookConfigurationRequest(); } - private 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 { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1400,6 +1480,10 @@ private 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)); } @@ -1435,7 +1519,8 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1455,40 +1540,56 @@ private 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 { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } public class APIdeleteCollectionValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionValidatingAdmissionPolicyRequest() { @@ -1499,7 +1600,7 @@ private APIdeleteCollectionValidatingAdmissionPolicyRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1509,7 +1610,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1519,7 +1620,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _con * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1529,7 +1630,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1539,17 +1640,27 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1559,7 +1670,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1569,7 +1680,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1579,7 +1690,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Bool * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1589,7 +1700,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(Str * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1599,7 +1710,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(Strin * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1609,7 +1720,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch( * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1619,7 +1730,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boo * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1629,7 +1740,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Intege * @param body (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteCollectionValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1640,14 +1751,15 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest body(V1DeleteOptions * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -1655,14 +1767,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1671,14 +1784,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -1687,14 +1801,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionValidatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -1703,7 +1818,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ValidatingAdmissionPolicy * @return APIdeleteCollectionValidatingAdmissionPolicyRequest * @http.response.details - +
+ @@ -1712,7 +1828,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionValidatingAdmissionPolicyRequest deleteCollectionValidatingAdmissionPolicy() { return new APIdeleteCollectionValidatingAdmissionPolicyRequest(); } - private 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 { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1757,6 +1873,10 @@ private 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)); } @@ -1792,7 +1912,8 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1812,40 +1933,56 @@ private 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 { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } public class APIdeleteCollectionValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { @@ -1856,7 +1993,7 @@ private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1866,7 +2003,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1876,7 +2013,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1886,7 +2023,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1896,17 +2033,27 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector( * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1916,7 +2063,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector( * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1926,7 +2073,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1936,7 +2083,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1946,7 +2093,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPol * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1956,7 +2103,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1966,7 +2113,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1976,7 +2123,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEve * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1986,7 +2133,7 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds * @param body (optional) * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1997,14 +2144,15 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(V1DeleteO * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -2012,14 +2160,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -2028,14 +2177,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -2044,14 +2194,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionValidatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -2060,7 +2211,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ValidatingAdmissionPolicyBinding * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest * @http.response.details - +
+ @@ -2069,7 +2221,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest deleteCollectionValidatingAdmissionPolicyBinding() { return new APIdeleteCollectionValidatingAdmissionPolicyBindingRequest(); } - private 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 { + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2114,6 +2266,10 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(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)); } @@ -2149,7 +2305,8 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String p final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2169,40 +2326,56 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String p } @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 { - return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + 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; } public class APIdeleteCollectionValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionValidatingWebhookConfigurationRequest() { @@ -2213,7 +2386,7 @@ private APIdeleteCollectionValidatingWebhookConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2223,7 +2396,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest pretty(String pr * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest _continue(String _continue) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2233,7 +2406,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest _continue(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) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2243,7 +2416,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest dryRun(String dr * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2253,17 +2426,27 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest fieldSelector(St * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest labelSelector(String labelSelector) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2273,7 +2456,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest labelSelector(St * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest limit(Integer limit) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2283,7 +2466,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest limit(Integer li * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2293,7 +2476,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest orphanDependents * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2303,7 +2486,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest propagationPolic * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2313,7 +2496,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersion( * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2323,7 +2506,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersionM * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2333,7 +2516,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest sendInitialEvent * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2343,7 +2526,7 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest timeoutSeconds(I * @param body (optional) * @return APIdeleteCollectionValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest body(V1DeleteOptions body) { + public APIdeleteCollectionValidatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2354,14 +2537,15 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest body(V1DeleteOpt * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -2369,14 +2553,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -2385,14 +2570,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -2401,14 +2587,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingWebhookConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionValidatingWebhookConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -2417,7 +2604,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of ValidatingWebhookConfiguration * @return APIdeleteCollectionValidatingWebhookConfigurationRequest * @http.response.details - +
+ @@ -2426,7 +2614,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionValidatingWebhookConfigurationRequest deleteCollectionValidatingWebhookConfiguration() { return new APIdeleteCollectionValidatingWebhookConfigurationRequest(); } - private okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2464,6 +2652,10 @@ private okhttp3.Call deleteMutatingWebhookConfigurationCall(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)); } @@ -2475,7 +2667,8 @@ private okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2495,41 +2688,50 @@ private okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String } @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 { + private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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)"); } - return deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteMutatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + 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; } public class APIdeleteMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteMutatingWebhookConfigurationRequest(String name) { + private APIdeleteMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2538,7 +2740,7 @@ private APIdeleteMutatingWebhookConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIdeleteMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2548,7 +2750,7 @@ public APIdeleteMutatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIdeleteMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2558,17 +2760,27 @@ public APIdeleteMutatingWebhookConfigurationRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteMutatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteMutatingWebhookConfigurationRequest + */ + public APIdeleteMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteMutatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2578,7 +2790,7 @@ public APIdeleteMutatingWebhookConfigurationRequest orphanDependents(Boolean orp * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteMutatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2588,7 +2800,7 @@ public APIdeleteMutatingWebhookConfigurationRequest propagationPolicy(String pro * @param body (optional) * @return APIdeleteMutatingWebhookConfigurationRequest */ - public APIdeleteMutatingWebhookConfigurationRequest body(V1DeleteOptions body) { + public APIdeleteMutatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2599,7 +2811,8 @@ public APIdeleteMutatingWebhookConfigurationRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2607,7 +2820,7 @@ public APIdeleteMutatingWebhookConfigurationRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -2615,7 +2828,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -2623,7 +2837,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2632,7 +2846,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -2640,7 +2855,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -2649,7 +2864,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -2657,7 +2873,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteMutatingWebhookConfigurationAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingWebhookConfigurationAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -2667,17 +2883,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the MutatingWebhookConfiguration (required) * @return APIdeleteMutatingWebhookConfigurationRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteMutatingWebhookConfigurationRequest deleteMutatingWebhookConfiguration(String name) { + public APIdeleteMutatingWebhookConfigurationRequest deleteMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { return new APIdeleteMutatingWebhookConfigurationRequest(name); } - private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2715,6 +2932,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2726,7 +2947,8 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2746,41 +2968,50 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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)"); } - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } public class APIdeleteValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyRequest(String name) { + private APIdeleteValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2789,7 +3020,7 @@ private APIdeleteValidatingAdmissionPolicyRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2799,7 +3030,7 @@ public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2809,17 +3040,27 @@ public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteValidatingAdmissionPolicyRequest + */ + public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2829,7 +3070,7 @@ public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphan * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2839,7 +3080,7 @@ public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propag * @param body (optional) * @return APIdeleteValidatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2850,7 +3091,8 @@ public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2858,7 +3100,7 @@ public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -2866,7 +3108,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -2874,7 +3117,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -2883,7 +3126,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -2891,7 +3135,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -2900,7 +3144,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -2908,7 +3153,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteValidatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -2918,17 +3163,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ValidatingAdmissionPolicy (required) * @return APIdeleteValidatingAdmissionPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(String name) { + public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { return new APIdeleteValidatingAdmissionPolicyRequest(name); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2966,6 +3212,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(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)); } @@ -2977,7 +3227,8 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2997,41 +3248,50 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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)"); } - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } public class APIdeleteValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyBindingRequest(String name) { + private APIdeleteValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3040,7 +3300,7 @@ private APIdeleteValidatingAdmissionPolicyBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3050,7 +3310,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3060,17 +3320,27 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3080,7 +3350,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3090,7 +3360,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String * @param body (optional) * @return APIdeleteValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3101,7 +3371,8 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions bod * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3109,7 +3380,7 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions bod
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -3117,7 +3388,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3125,7 +3397,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -3134,7 +3406,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3142,7 +3415,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -3151,7 +3424,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -3159,7 +3433,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteValidatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -3169,17 +3443,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ValidatingAdmissionPolicyBinding (required) * @return APIdeleteValidatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(String name) { + public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { return new APIdeleteValidatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3217,6 +3492,10 @@ private okhttp3.Call deleteValidatingWebhookConfigurationCall(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)); } @@ -3228,7 +3507,8 @@ private okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, Strin final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3248,41 +3528,50 @@ private okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, Strin } @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 { + private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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)"); } - return deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteValidatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + 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; } public class APIdeleteValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingWebhookConfigurationRequest(String name) { + private APIdeleteValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -3291,7 +3580,7 @@ private APIdeleteValidatingWebhookConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIdeleteValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3301,7 +3590,7 @@ public APIdeleteValidatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIdeleteValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3311,17 +3600,27 @@ public APIdeleteValidatingWebhookConfigurationRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteValidatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteValidatingWebhookConfigurationRequest + */ + public APIdeleteValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteValidatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3331,7 +3630,7 @@ public APIdeleteValidatingWebhookConfigurationRequest orphanDependents(Boolean o * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest propagationPolicy(String propagationPolicy) { + public APIdeleteValidatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3341,7 +3640,7 @@ public APIdeleteValidatingWebhookConfigurationRequest propagationPolicy(String p * @param body (optional) * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingWebhookConfigurationRequest body(V1DeleteOptions body) { + public APIdeleteValidatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3352,7 +3651,8 @@ public APIdeleteValidatingWebhookConfigurationRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3360,7 +3660,7 @@ public APIdeleteValidatingWebhookConfigurationRequest body(V1DeleteOptions body)
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -3368,7 +3668,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3376,7 +3677,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -3385,7 +3686,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3393,7 +3695,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -3402,7 +3704,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -3410,7 +3713,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingWebhookConfigurationAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteValidatingWebhookConfigurationAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -3420,14 +3723,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the ValidatingWebhookConfiguration (required) * @return APIdeleteValidatingWebhookConfigurationRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingWebhookConfigurationRequest deleteValidatingWebhookConfiguration(String name) { + public APIdeleteValidatingWebhookConfigurationRequest deleteValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { return new APIdeleteValidatingWebhookConfigurationRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -3458,7 +3762,8 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3508,7 +3813,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3523,7 +3829,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3539,7 +3846,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3555,7 +3863,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3571,7 +3880,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3580,7 +3890,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private 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 { + private okhttp3.Call listMutatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3653,8 +3963,10 @@ private okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3673,19 +3985,19 @@ private okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean } @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 listMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private 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 { + private ApiResponse listMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call listMutatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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(); @@ -3694,16 +4006,27 @@ private okhttp3.Call listMutatingWebhookConfigurationAsync(String pretty, Boolea } public class APIlistMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistMutatingWebhookConfigurationRequest() { @@ -3714,7 +4037,7 @@ private APIlistMutatingWebhookConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIlistMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3724,7 +4047,7 @@ public APIlistMutatingWebhookConfigurationRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistMutatingWebhookConfigurationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -3734,7 +4057,7 @@ public APIlistMutatingWebhookConfigurationRequest allowWatchBookmarks(Boolean al * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest _continue(String _continue) { + public APIlistMutatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -3744,7 +4067,7 @@ public APIlistMutatingWebhookConfigurationRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest fieldSelector(String fieldSelector) { + public APIlistMutatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -3754,7 +4077,7 @@ public APIlistMutatingWebhookConfigurationRequest fieldSelector(String fieldSele * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest labelSelector(String labelSelector) { + public APIlistMutatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -3764,7 +4087,7 @@ public APIlistMutatingWebhookConfigurationRequest labelSelector(String labelSele * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest limit(Integer limit) { + public APIlistMutatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -3774,7 +4097,7 @@ public APIlistMutatingWebhookConfigurationRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest resourceVersion(String resourceVersion) { + public APIlistMutatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -3784,7 +4107,7 @@ public APIlistMutatingWebhookConfigurationRequest resourceVersion(String resourc * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistMutatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3794,7 +4117,7 @@ public APIlistMutatingWebhookConfigurationRequest resourceVersionMatch(String re * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistMutatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3804,7 +4127,7 @@ public APIlistMutatingWebhookConfigurationRequest sendInitialEvents(Boolean send * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistMutatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3814,7 +4137,7 @@ public APIlistMutatingWebhookConfigurationRequest timeoutSeconds(Integer timeout * @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 APIlistMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest watch(Boolean watch) { + public APIlistMutatingWebhookConfigurationRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -3825,7 +4148,8 @@ public APIlistMutatingWebhookConfigurationRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3840,7 +4164,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfigurationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3856,7 +4181,8 @@ public V1MutatingWebhookConfigurationList execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfigurationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3872,7 +4198,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -3888,7 +4215,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -3897,7 +4225,7 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private ApiResponse listValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call listValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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(); @@ -4011,16 +4341,27 @@ private okhttp3.Call listValidatingAdmissionPolicyAsync(String pretty, Boolean a } public class APIlistValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistValidatingAdmissionPolicyRequest() { @@ -4031,7 +4372,7 @@ private APIlistValidatingAdmissionPolicyRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIlistValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4041,7 +4382,7 @@ public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4051,7 +4392,7 @@ public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allow * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIlistValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4061,7 +4402,7 @@ public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIlistValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4071,7 +4412,7 @@ public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelecto * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIlistValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4081,7 +4422,7 @@ public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIlistValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4091,7 +4432,7 @@ public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIlistValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4101,7 +4442,7 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4111,7 +4452,7 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4121,7 +4462,7 @@ public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4131,7 +4472,7 @@ public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSec * @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 APIlistValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest watch(Boolean watch) { + public APIlistValidatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4142,7 +4483,8 @@ public APIlistValidatingAdmissionPolicyRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4157,7 +4499,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4173,7 +4516,8 @@ public V1ValidatingAdmissionPolicyList execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4189,7 +4533,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4205,7 +4550,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -4214,7 +4560,7 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private ApiResponse listValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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(); @@ -4328,16 +4676,27 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(String pretty, Bo } public class APIlistValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistValidatingAdmissionPolicyBindingRequest() { @@ -4348,7 +4707,7 @@ private APIlistValidatingAdmissionPolicyBindingRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIlistValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4358,7 +4717,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4368,7 +4727,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolea * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIlistValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4378,7 +4737,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4388,7 +4747,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String field * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4398,7 +4757,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String label * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIlistValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4408,7 +4767,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4418,7 +4777,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String res * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4428,7 +4787,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(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) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4438,7 +4797,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4448,7 +4807,7 @@ public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer tim * @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 APIlistValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest watch(Boolean watch) { + public APIlistValidatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4459,7 +4818,8 @@ public APIlistValidatingAdmissionPolicyBindingRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4474,7 +4834,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4490,7 +4851,8 @@ public V1ValidatingAdmissionPolicyBindingList execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4506,7 +4868,8 @@ public ApiResponse executeWithHttpInfo() * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4522,7 +4885,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -4531,7 +4895,7 @@ public okhttp3.Call executeAsync(final ApiCallback 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 { + private ApiResponse listValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call listValidatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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(); @@ -4645,16 +5011,27 @@ private okhttp3.Call listValidatingWebhookConfigurationAsync(String pretty, Bool } public class APIlistValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistValidatingWebhookConfigurationRequest() { @@ -4665,7 +5042,7 @@ private APIlistValidatingWebhookConfigurationRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIlistValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4675,7 +5052,7 @@ public APIlistValidatingWebhookConfigurationRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistValidatingWebhookConfigurationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4685,7 +5062,7 @@ public APIlistValidatingWebhookConfigurationRequest allowWatchBookmarks(Boolean * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest _continue(String _continue) { + public APIlistValidatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4695,7 +5072,7 @@ public APIlistValidatingWebhookConfigurationRequest _continue(String _continue) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest fieldSelector(String fieldSelector) { + public APIlistValidatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4705,7 +5082,7 @@ public APIlistValidatingWebhookConfigurationRequest fieldSelector(String fieldSe * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest labelSelector(String labelSelector) { + public APIlistValidatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4715,7 +5092,7 @@ public APIlistValidatingWebhookConfigurationRequest labelSelector(String labelSe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest limit(Integer limit) { + public APIlistValidatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4725,7 +5102,7 @@ public APIlistValidatingWebhookConfigurationRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest resourceVersion(String resourceVersion) { + public APIlistValidatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4735,7 +5112,7 @@ public APIlistValidatingWebhookConfigurationRequest resourceVersion(String resou * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistValidatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4745,7 +5122,7 @@ public APIlistValidatingWebhookConfigurationRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistValidatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4755,7 +5132,7 @@ public APIlistValidatingWebhookConfigurationRequest sendInitialEvents(Boolean se * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistValidatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4765,7 +5142,7 @@ public APIlistValidatingWebhookConfigurationRequest timeoutSeconds(Integer timeo * @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 APIlistValidatingWebhookConfigurationRequest */ - public APIlistValidatingWebhookConfigurationRequest watch(Boolean watch) { + public APIlistValidatingWebhookConfigurationRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4776,7 +5153,8 @@ public APIlistValidatingWebhookConfigurationRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4791,7 +5169,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfigurationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4807,7 +5186,8 @@ public V1ValidatingWebhookConfigurationList execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfigurationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4823,7 +5203,8 @@ public ApiResponse executeWithHttpInfo() t * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4839,7 +5220,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -4848,7 +5230,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchMutatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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); } - private okhttp3.Call patchMutatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4948,15 +5331,22 @@ private okhttp3.Call patchMutatingWebhookConfigurationAsync(String name, V1Patch } public class APIpatchMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchMutatingWebhookConfigurationRequest(String name, V1Patch body) { + private APIpatchMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -4966,7 +5356,7 @@ private APIpatchMutatingWebhookConfigurationRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIpatchMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4976,7 +5366,7 @@ public APIpatchMutatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIpatchMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4986,7 +5376,7 @@ public APIpatchMutatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIpatchMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4996,7 +5386,7 @@ public APIpatchMutatingWebhookConfigurationRequest fieldManager(String fieldMana * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIpatchMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5006,7 +5396,7 @@ public APIpatchMutatingWebhookConfigurationRequest fieldValidation(String fieldV * @param force Force is going to \"force\" Apply 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 APIpatchMutatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest force(Boolean force) { + public APIpatchMutatingWebhookConfigurationRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5017,7 +5407,8 @@ public APIpatchMutatingWebhookConfigurationRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5033,7 +5424,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5050,7 +5442,8 @@ public V1MutatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5067,7 +5460,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5086,17 +5480,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchMutatingWebhookConfigurationRequest patchMutatingWebhookConfiguration(String name, V1Patch body) { + public APIpatchMutatingWebhookConfigurationRequest patchMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchMutatingWebhookConfigurationRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5145,7 +5540,8 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch bod final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5165,7 +5561,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch bod } @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 patchValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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)"); @@ -5181,13 +5577,13 @@ private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(String nam } - private ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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); } - private okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5196,15 +5592,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch bo } public class APIpatchValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { + private APIpatchValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5214,7 +5617,7 @@ private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIpatchValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5224,7 +5627,7 @@ public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIpatchValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5234,7 +5637,7 @@ public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIpatchValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5244,7 +5647,7 @@ public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5254,7 +5657,7 @@ public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldVali * @param force Force is going to \"force\" Apply 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 APIpatchValidatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) { + public APIpatchValidatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5265,7 +5668,8 @@ public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5281,7 +5685,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5298,7 +5703,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5315,7 +5721,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5334,17 +5741,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(String name, V1Patch body) { + public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5393,7 +5801,8 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5413,7 +5822,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa } @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 patchValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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)"); @@ -5429,13 +5838,13 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(Str } - private ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5444,15 +5853,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1P } public class APIpatchValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch body) { + private APIpatchValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5462,7 +5878,7 @@ private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch bod * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIpatchValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5472,7 +5888,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5482,7 +5898,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5492,7 +5908,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5502,7 +5918,7 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fi * @param force Force is going to \"force\" Apply 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 APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) { + public APIpatchValidatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5513,7 +5929,8 @@ public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5529,7 +5946,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5546,7 +5964,8 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5563,7 +5982,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5582,17 +6002,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(String name, V1Patch body) { + public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5641,7 +6062,8 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5661,7 +6083,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat } @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 { + private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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)"); @@ -5677,13 +6099,13 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(Stri } - private ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5692,15 +6114,22 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Pa } public class APIpatchValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyStatusRequest(String name, V1Patch body) { + private APIpatchValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5710,7 +6139,7 @@ private APIpatchValidatingAdmissionPolicyStatusRequest(String name, V1Patch body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIpatchValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5720,7 +6149,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { + public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5730,7 +6159,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { + public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5740,7 +6169,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(String fieldM * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5750,7 +6179,7 @@ public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(String fie * @param force Force is going to \"force\" Apply 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 APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest force(Boolean force) { + public APIpatchValidatingAdmissionPolicyStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -5761,7 +6190,8 @@ public APIpatchValidatingAdmissionPolicyStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -5777,7 +6207,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5794,7 +6225,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5811,7 +6243,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -5830,17 +6263,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIpatchValidatingAdmissionPolicyStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(String name, V1Patch body) { + public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingAdmissionPolicyStatusRequest(name, body); } - private okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5889,7 +6323,8 @@ private okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patc final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5909,7 +6344,7 @@ private okhttp3.Call patchValidatingWebhookConfigurationCall(String name, V1Patc } @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 patchValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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)"); @@ -5925,13 +6360,13 @@ private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(Strin } - private ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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); } - private okhttp3.Call patchValidatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5940,15 +6375,22 @@ private okhttp3.Call patchValidatingWebhookConfigurationAsync(String name, V1Pat } public class APIpatchValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingWebhookConfigurationRequest(String name, V1Patch body) { + private APIpatchValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5958,7 +6400,7 @@ private APIpatchValidatingWebhookConfigurationRequest(String name, V1Patch body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIpatchValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5968,7 +6410,7 @@ public APIpatchValidatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIpatchValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5978,7 +6420,7 @@ public APIpatchValidatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIpatchValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5988,7 +6430,7 @@ public APIpatchValidatingWebhookConfigurationRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIpatchValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5998,7 +6440,7 @@ public APIpatchValidatingWebhookConfigurationRequest fieldValidation(String fiel * @param force Force is going to \"force\" Apply 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 APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchValidatingWebhookConfigurationRequest force(Boolean force) { + public APIpatchValidatingWebhookConfigurationRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -6009,7 +6451,8 @@ public APIpatchValidatingWebhookConfigurationRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6025,7 +6468,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6042,7 +6486,8 @@ public V1ValidatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6059,7 +6504,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -6078,17 +6524,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingWebhookConfigurationRequest patchValidatingWebhookConfiguration(String name, V1Patch body) { + public APIpatchValidatingWebhookConfigurationRequest patchValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchValidatingWebhookConfigurationRequest(name, body); } - private okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6121,7 +6568,8 @@ private okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pr final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6140,7 +6588,7 @@ private okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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)"); @@ -6151,13 +6599,13 @@ private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(String n } - private ApiResponse readMutatingWebhookConfigurationWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readMutatingWebhookConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6166,10 +6614,12 @@ private okhttp3.Call readMutatingWebhookConfigurationAsync(String name, String p } public class APIreadMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadMutatingWebhookConfigurationRequest(String name) { + private APIreadMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6178,7 +6628,7 @@ private APIreadMutatingWebhookConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadMutatingWebhookConfigurationRequest */ - public APIreadMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIreadMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6189,7 +6639,8 @@ public APIreadMutatingWebhookConfigurationRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6204,7 +6655,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6220,7 +6672,8 @@ public V1MutatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6236,7 +6689,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6253,16 +6707,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadMutatingWebhookConfigurationRequest readMutatingWebhookConfiguration(String name) { + public APIreadMutatingWebhookConfigurationRequest readMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { return new APIreadMutatingWebhookConfigurationRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6295,7 +6750,8 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6314,7 +6770,7 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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)"); @@ -6325,13 +6781,13 @@ private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name } - private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6340,10 +6796,12 @@ private okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pret } public class APIreadValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyRequest(String name) { + private APIreadValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6352,7 +6810,7 @@ private APIreadValidatingAdmissionPolicyRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingAdmissionPolicyRequest */ - public APIreadValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIreadValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6363,7 +6821,8 @@ public APIreadValidatingAdmissionPolicyRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6378,7 +6837,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6394,7 +6854,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6410,7 +6871,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6427,16 +6889,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the ValidatingAdmissionPolicy (required) * @return APIreadValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(String name) { + public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingAdmissionPolicyRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6469,7 +6932,8 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6488,7 +6952,7 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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)"); @@ -6499,13 +6963,13 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(Stri } - private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6514,10 +6978,12 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, Stri } public class APIreadValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyBindingRequest(String name) { + private APIreadValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6526,7 +6992,7 @@ private APIreadValidatingAdmissionPolicyBindingRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingAdmissionPolicyBindingRequest */ - public APIreadValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreadValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6537,7 +7003,8 @@ public APIreadValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6552,7 +7019,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6568,7 +7036,8 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6584,7 +7053,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6601,16 +7071,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(String name) { + public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6643,7 +7114,8 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6662,7 +7134,7 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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)"); @@ -6673,13 +7145,13 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(Strin } - private ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6688,10 +7160,12 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(String name, Strin } public class APIreadValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyStatusRequest(String name) { + private APIreadValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6700,7 +7174,7 @@ private APIreadValidatingAdmissionPolicyStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingAdmissionPolicyStatusRequest */ - public APIreadValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreadValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6711,7 +7185,8 @@ public APIreadValidatingAdmissionPolicyStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6726,7 +7201,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6742,7 +7218,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6758,7 +7235,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6775,16 +7253,17 @@ public okhttp3.Call executeAsync(final ApiCallback * @param name name of the ValidatingAdmissionPolicy (required) * @return APIreadValidatingAdmissionPolicyStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(String name) { + public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingAdmissionPolicyStatusRequest(name); } - private okhttp3.Call readValidatingWebhookConfigurationCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6817,7 +7296,8 @@ private okhttp3.Call readValidatingWebhookConfigurationCall(String name, String final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6836,7 +7316,7 @@ private okhttp3.Call readValidatingWebhookConfigurationCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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)"); @@ -6847,13 +7327,13 @@ private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(String } - private ApiResponse readValidatingWebhookConfigurationWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingWebhookConfigurationAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6862,10 +7342,12 @@ private okhttp3.Call readValidatingWebhookConfigurationAsync(String name, String } public class APIreadValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingWebhookConfigurationRequest(String name) { + private APIreadValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -6874,7 +7356,7 @@ private APIreadValidatingWebhookConfigurationRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadValidatingWebhookConfigurationRequest */ - public APIreadValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIreadValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6885,7 +7367,8 @@ public APIreadValidatingWebhookConfigurationRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6900,7 +7383,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6916,7 +7400,8 @@ public V1ValidatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6932,7 +7417,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6949,16 +7435,17 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingWebhookConfigurationRequest readValidatingWebhookConfiguration(String name) { + public APIreadValidatingWebhookConfigurationRequest readValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { return new APIreadValidatingWebhookConfigurationRequest(name); } - private okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7003,7 +7490,8 @@ private okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1Muta final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7023,7 +7511,7 @@ private okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1Muta } @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 replaceMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); @@ -7039,13 +7527,13 @@ private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(Strin } - private ApiResponse replaceMutatingWebhookConfigurationWithHttpInfo(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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); } - private okhttp3.Call replaceMutatingWebhookConfigurationAsync(String name, V1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7054,14 +7542,20 @@ private okhttp3.Call replaceMutatingWebhookConfigurationAsync(String name, V1Mut } public class APIreplaceMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1MutatingWebhookConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceMutatingWebhookConfigurationRequest(String name, V1MutatingWebhookConfiguration body) { + private APIreplaceMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { this.name = name; this.body = body; } @@ -7071,7 +7565,7 @@ private APIreplaceMutatingWebhookConfigurationRequest(String name, V1MutatingWeb * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceMutatingWebhookConfigurationRequest */ - public APIreplaceMutatingWebhookConfigurationRequest pretty(String pretty) { + public APIreplaceMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7081,7 +7575,7 @@ public APIreplaceMutatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceMutatingWebhookConfigurationRequest */ - public APIreplaceMutatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIreplaceMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7091,7 +7585,7 @@ public APIreplaceMutatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceMutatingWebhookConfigurationRequest */ - public APIreplaceMutatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIreplaceMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7101,7 +7595,7 @@ public APIreplaceMutatingWebhookConfigurationRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceMutatingWebhookConfigurationRequest */ - public APIreplaceMutatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIreplaceMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7112,7 +7606,8 @@ public APIreplaceMutatingWebhookConfigurationRequest fieldValidation(String fiel * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7128,7 +7623,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7145,7 +7641,8 @@ public V1MutatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7162,7 +7659,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7181,17 +7679,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceMutatingWebhookConfigurationRequest replaceMutatingWebhookConfiguration(String name, V1MutatingWebhookConfiguration body) { + public APIreplaceMutatingWebhookConfigurationRequest replaceMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { return new APIreplaceMutatingWebhookConfigurationRequest(name, body); } - private okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7236,7 +7735,8 @@ private okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1Validat final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7256,7 +7756,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1Validat } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); @@ -7272,13 +7772,13 @@ private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String n } - private ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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); } - private okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7287,14 +7787,20 @@ private okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1Valida } public class APIreplaceValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyRequest(String name, V1ValidatingAdmissionPolicy body) { + private APIreplaceValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { this.name = name; this.body = body; } @@ -7304,7 +7810,7 @@ private APIreplaceValidatingAdmissionPolicyRequest(String name, V1ValidatingAdmi * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIreplaceValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7314,7 +7820,7 @@ public APIreplaceValidatingAdmissionPolicyRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIreplaceValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7324,7 +7830,7 @@ public APIreplaceValidatingAdmissionPolicyRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIreplaceValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7334,7 +7840,7 @@ public APIreplaceValidatingAdmissionPolicyRequest fieldManager(String fieldManag * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingAdmissionPolicyRequest */ - public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7345,7 +7851,8 @@ public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(String fieldVa * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7361,7 +7868,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7378,7 +7886,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7395,7 +7904,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7414,17 +7924,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplaceValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyRequest replaceValidatingAdmissionPolicy(String name, V1ValidatingAdmissionPolicy body) { + public APIreplaceValidatingAdmissionPolicyRequest replaceValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { return new APIreplaceValidatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7469,7 +7980,8 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1 final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7489,7 +8001,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1 } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); @@ -7505,13 +8017,13 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(S } - private ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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); } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7520,14 +8032,20 @@ private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V } public class APIreplaceValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyBindingRequest(String name, V1ValidatingAdmissionPolicyBinding body) { + private APIreplaceValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { this.name = name; this.body = body; } @@ -7537,7 +8055,7 @@ private APIreplaceValidatingAdmissionPolicyBindingRequest(String name, V1Validat * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7547,7 +8065,7 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7557,7 +8075,7 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7567,7 +8085,7 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(String fie * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7578,7 +8096,8 @@ public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(String * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7594,7 +8113,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7611,7 +8131,8 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7628,7 +8149,8 @@ public ApiResponse executeWithHttpInfo() thr * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7647,17 +8169,18 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyBindingRequest replaceValidatingAdmissionPolicyBinding(String name, V1ValidatingAdmissionPolicyBinding body) { + public APIreplaceValidatingAdmissionPolicyBindingRequest replaceValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { return new APIreplaceValidatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7702,7 +8225,8 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1V final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7722,7 +8246,7 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1V } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); @@ -7738,13 +8262,13 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(St } - private ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7753,14 +8277,20 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1 } public class APIreplaceValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1ValidatingAdmissionPolicy body) { + private APIreplaceValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { this.name = name; this.body = body; } @@ -7770,7 +8300,7 @@ private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1Validati * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -7780,7 +8310,7 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { + public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -7790,7 +8320,7 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { + public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -7800,7 +8330,7 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fiel * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingAdmissionPolicyStatusRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -7811,7 +8341,8 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String f * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -7827,7 +8358,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7844,7 +8376,8 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7861,7 +8394,8 @@ public ApiResponse executeWithHttpInfo() throws Api * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -7880,17 +8414,18 @@ public okhttp3.Call executeAsync(final ApiCallback * @param body (required) * @return APIreplaceValidatingAdmissionPolicyStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyStatusRequest replaceValidatingAdmissionPolicyStatus(String name, V1ValidatingAdmissionPolicy body) { + public APIreplaceValidatingAdmissionPolicyStatusRequest replaceValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { return new APIreplaceValidatingAdmissionPolicyStatusRequest(name, body); } - private okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7935,7 +8470,8 @@ private okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1Va final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -7955,7 +8491,7 @@ private okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1Va } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 replaceValidatingWebhookConfiguration(Async)"); @@ -7971,13 +8507,13 @@ private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(Str } - private ApiResponse replaceValidatingWebhookConfigurationWithHttpInfo(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceValidatingWebhookConfigurationAsync(String name, V1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -7986,14 +8522,20 @@ private okhttp3.Call replaceValidatingWebhookConfigurationAsync(String name, V1V } public class APIreplaceValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1ValidatingWebhookConfiguration body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingWebhookConfigurationRequest(String name, V1ValidatingWebhookConfiguration body) { + private APIreplaceValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { this.name = name; this.body = body; } @@ -8003,7 +8545,7 @@ private APIreplaceValidatingWebhookConfigurationRequest(String name, V1Validatin * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceValidatingWebhookConfigurationRequest */ - public APIreplaceValidatingWebhookConfigurationRequest pretty(String pretty) { + public APIreplaceValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8013,7 +8555,7 @@ public APIreplaceValidatingWebhookConfigurationRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceValidatingWebhookConfigurationRequest */ - public APIreplaceValidatingWebhookConfigurationRequest dryRun(String dryRun) { + public APIreplaceValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8023,7 +8565,7 @@ public APIreplaceValidatingWebhookConfigurationRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceValidatingWebhookConfigurationRequest */ - public APIreplaceValidatingWebhookConfigurationRequest fieldManager(String fieldManager) { + public APIreplaceValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8033,7 +8575,7 @@ public APIreplaceValidatingWebhookConfigurationRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceValidatingWebhookConfigurationRequest */ - public APIreplaceValidatingWebhookConfigurationRequest fieldValidation(String fieldValidation) { + public APIreplaceValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -8044,7 +8586,8 @@ public APIreplaceValidatingWebhookConfigurationRequest fieldValidation(String fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -8060,7 +8603,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8077,7 +8621,8 @@ public V1ValidatingWebhookConfiguration execute() throws ApiException { * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8094,7 +8639,8 @@ public ApiResponse executeWithHttpInfo() throw * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -8113,14 +8659,15 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingWebhookConfigurationRequest replaceValidatingWebhookConfiguration(String name, V1ValidatingWebhookConfiguration body) { + public APIreplaceValidatingWebhookConfigurationRequest replaceValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { return new APIreplaceValidatingWebhookConfigurationRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java index ec7b5d8c02..c4ecde0420 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.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; @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -95,7 +95,7 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmis 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(); @@ -122,7 +122,8 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmis final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -142,48 +143,53 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1alpha1ValidatingAdmis } @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(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); } - return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private 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(); + private ApiResponse createMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyAsync(V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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; } - public class APIcreateValidatingAdmissionPolicyRequest { - private final V1alpha1ValidatingAdmissionPolicy body; + public class APIcreateMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull + private final V1alpha1MutatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyRequest(V1alpha1ValidatingAdmissionPolicy body) { + private APIcreateMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIcreateMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -191,9 +197,9 @@ public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIcreateMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -201,9 +207,9 @@ public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIcreateMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -211,20 +217,21 @@ public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManage /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIcreateMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createValidatingAdmissionPolicy + * Build call for createMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -233,15 +240,16 @@ public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldVal
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createValidatingAdmissionPolicy request - * @return V1alpha1ValidatingAdmissionPolicy + * Execute createMutatingAdmissionPolicy request + * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -249,17 +257,18 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> + * Execute createMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -267,17 +276,18 @@ public V1alpha1ValidatingAdmissionPolicy execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createValidatingAdmissionPolicy request (asynchronously) + * Execute createMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -285,18 +295,19 @@ public ApiResponse executeWithHttpInfo() thro
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createMutatingAdmissionPolicyAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body (required) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest * @http.response.details - +
+ @@ -304,10 +315,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(V1alpha1ValidatingAdmissionPolicy body) { - return new APIcreateValidatingAdmissionPolicyRequest(body); + public APIcreateMutatingAdmissionPolicyRequest createMutatingAdmissionPolicy(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body) { + return new APIcreateMutatingAdmissionPolicyRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -324,7 +335,7 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1Validati 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(); @@ -351,7 +362,8 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1Validati final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -371,48 +383,53 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1alpha1Validati } @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(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); } - return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private 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(); + private ApiResponse createMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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; } - public class APIcreateValidatingAdmissionPolicyBindingRequest { - private final V1alpha1ValidatingAdmissionPolicyBinding body; + public class APIcreateMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull + private final V1alpha1MutatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyBindingRequest(V1alpha1ValidatingAdmissionPolicyBinding body) { + private APIcreateMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIcreateMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -420,9 +437,9 @@ public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIcreateMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -430,9 +447,9 @@ public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -440,20 +457,21 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fiel /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createValidatingAdmissionPolicyBinding + * Build call for createMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -462,15 +480,16 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String f
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createValidatingAdmissionPolicyBinding request - * @return V1alpha1ValidatingAdmissionPolicyBinding + * Execute createMutatingAdmissionPolicyBinding request + * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -478,17 +497,18 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBinding> + * Execute createMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -496,17 +516,18 @@ public V1alpha1ValidatingAdmissionPolicyBinding execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createValidatingAdmissionPolicyBinding request (asynchronously) + * Execute createMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -514,18 +535,19 @@ public ApiResponse executeWithHttpInfo
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyBindingAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createMutatingAdmissionPolicyBindingAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body (required) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+ @@ -533,10 +555,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(V1alpha1ValidatingAdmissionPolicyBinding body) { - return new APIcreateValidatingAdmissionPolicyBindingRequest(body); + public APIcreateMutatingAdmissionPolicyBindingRequest createMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body) { + return new APIcreateMutatingAdmissionPolicyBindingRequest(body); } - private 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 { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -553,7 +575,7 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty 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(); @@ -581,6 +603,10 @@ private 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)); } @@ -616,7 +642,8 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -636,51 +663,67 @@ private 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 { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } - public class APIdeleteCollectionValidatingAdmissionPolicyRequest { + public class APIdeleteCollectionMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionValidatingAdmissionPolicyRequest() { + private APIdeleteCollectionMutatingAdmissionPolicyRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -688,9 +731,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -698,9 +741,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _con /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -708,9 +751,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -718,19 +761,29 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -738,9 +791,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -748,9 +801,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -758,9 +811,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Bool /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -768,9 +821,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(Str /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -778,9 +831,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(Strin /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -788,9 +841,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch( /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -798,9 +851,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boo /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -808,92 +861,97 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Intege /** * Set body * @param body (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionValidatingAdmissionPolicy + * Build call for deleteCollectionMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request + * Execute deleteCollectionMutatingAdmissionPolicy request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request with HTTP info returned + * Execute deleteCollectionMutatingAdmissionPolicy request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request (asynchronously) + * Execute deleteCollectionMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of ValidatingAdmissionPolicy - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * delete collection of MutatingAdmissionPolicy + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionValidatingAdmissionPolicyRequest deleteCollectionValidatingAdmissionPolicy() { - return new APIdeleteCollectionValidatingAdmissionPolicyRequest(); + public APIdeleteCollectionMutatingAdmissionPolicyRequest deleteCollectionMutatingAdmissionPolicy() { + return new APIdeleteCollectionMutatingAdmissionPolicyRequest(); } - private 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 { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -910,7 +968,7 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String 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(); @@ -938,6 +996,10 @@ private 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)); } @@ -973,7 +1035,8 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -993,51 +1056,67 @@ private 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 { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } - public class APIdeleteCollectionValidatingAdmissionPolicyBindingRequest { + public class APIdeleteCollectionMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { + private APIdeleteCollectionMutatingAdmissionPolicyBindingRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1045,9 +1124,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1055,9 +1134,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(Stri /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1065,9 +1144,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1075,19 +1154,29 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector( /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1095,9 +1184,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector( /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1105,9 +1194,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1115,9 +1204,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependen /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1125,9 +1214,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPol /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1135,9 +1224,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1145,9 +1234,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1155,9 +1244,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEve /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1165,92 +1254,97 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds /** * Set body * @param body (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionValidatingAdmissionPolicyBinding + * Build call for deleteCollectionMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request + * Execute deleteCollectionMutatingAdmissionPolicyBinding request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request with HTTP info returned + * Execute deleteCollectionMutatingAdmissionPolicyBinding request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request (asynchronously) + * Execute deleteCollectionMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of ValidatingAdmissionPolicyBinding - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * delete collection of MutatingAdmissionPolicyBinding + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest deleteCollectionValidatingAdmissionPolicyBinding() { - return new APIdeleteCollectionValidatingAdmissionPolicyBindingRequest(); + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest deleteCollectionMutatingAdmissionPolicyBinding() { + return new APIdeleteCollectionMutatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1267,7 +1361,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre 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}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1288,6 +1382,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1299,7 +1397,8 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1319,50 +1418,59 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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)"); } - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } - public class APIdeleteValidatingAdmissionPolicyRequest { + public class APIdeleteMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyRequest(String name) { + private APIdeleteMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1370,9 +1478,9 @@ public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1380,19 +1488,29 @@ public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteMutatingAdmissionPolicyRequest + */ + public APIdeleteMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1400,9 +1518,9 @@ public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphan /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1410,20 +1528,21 @@ public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propag /** * Set body * @param body (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteValidatingAdmissionPolicy + * Build call for deleteMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1431,15 +1550,16 @@ public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteValidatingAdmissionPolicy request + * Execute deleteMutatingAdmissionPolicy request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -1447,16 +1567,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteValidatingAdmissionPolicy request with HTTP info returned + * Execute deleteMutatingAdmissionPolicy request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -1464,16 +1585,17 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteValidatingAdmissionPolicy request (asynchronously) + * Execute deleteMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -1481,27 +1603,28 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIdeleteValidatingAdmissionPolicyRequest + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @return APIdeleteMutatingAdmissionPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(String name) { - return new APIdeleteValidatingAdmissionPolicyRequest(name); + public APIdeleteMutatingAdmissionPolicyRequest deleteMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIdeleteMutatingAdmissionPolicyRequest(name); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1518,7 +1641,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str 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}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1539,6 +1662,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(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)); } @@ -1550,7 +1677,8 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1570,50 +1698,59 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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)"); } - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } - public class APIdeleteValidatingAdmissionPolicyBindingRequest { + public class APIdeleteMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyBindingRequest(String name) { + private APIdeleteMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1621,9 +1758,9 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1631,19 +1768,29 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1651,9 +1798,9 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1661,20 +1808,21 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String /** * Set body * @param body (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteValidatingAdmissionPolicyBinding + * Build call for deleteMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1682,15 +1830,16 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions bod
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteValidatingAdmissionPolicyBinding request + * Execute deleteMutatingAdmissionPolicyBinding request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -1698,16 +1847,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteValidatingAdmissionPolicyBinding request with HTTP info returned + * Execute deleteMutatingAdmissionPolicyBinding request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -1715,16 +1865,17 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteValidatingAdmissionPolicyBinding request (asynchronously) + * Execute deleteMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -1732,25 +1883,26 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(String name) { - return new APIdeleteValidatingAdmissionPolicyBindingRequest(name); + public APIdeleteMutatingAdmissionPolicyBindingRequest deleteMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIdeleteMutatingAdmissionPolicyBindingRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { String basePath = null; @@ -1780,7 +1932,8 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1830,7 +1983,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1845,7 +1999,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1861,7 +2016,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1877,7 +2033,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1893,7 +2050,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1902,7 +2060,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private 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 { + private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1919,7 +2077,7 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean al 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(); @@ -1975,8 +2133,10 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean al "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1995,48 +2155,59 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean al } @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 { - return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private 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(); + private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call listMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } - public class APIlistValidatingAdmissionPolicyRequest { + public class APIlistMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistValidatingAdmissionPolicyRequest() { + private APIlistMutatingAdmissionPolicyRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIlistMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2044,9 +2215,9 @@ public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistMutatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2054,9 +2225,9 @@ public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allow /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIlistMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2064,9 +2235,9 @@ public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIlistMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2074,9 +2245,9 @@ public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelecto /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIlistMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2084,9 +2255,9 @@ public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelecto /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIlistMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2094,9 +2265,9 @@ public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIlistMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2104,9 +2275,9 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVe /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2114,9 +2285,9 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resou /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2124,9 +2295,9 @@ public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendIni /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2134,92 +2305,97 @@ public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSec /** * Set watch * @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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest watch(Boolean watch) { + public APIlistMutatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listValidatingAdmissionPolicy + * Build call for listMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listValidatingAdmissionPolicy request - * @return V1alpha1ValidatingAdmissionPolicyList + * Execute listMutatingAdmissionPolicy request + * @return V1alpha1MutatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyList execute() throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1alpha1MutatingAdmissionPolicyList execute() throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyList> + * Execute listMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listValidatingAdmissionPolicy request (asynchronously) + * Execute listMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ValidatingAdmissionPolicy - * @return APIlistValidatingAdmissionPolicyRequest + * list or watch objects of kind MutatingAdmissionPolicy + * @return APIlistMutatingAdmissionPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistValidatingAdmissionPolicyRequest listValidatingAdmissionPolicy() { - return new APIlistValidatingAdmissionPolicyRequest(); + public APIlistMutatingAdmissionPolicyRequest listMutatingAdmissionPolicy() { + return new APIlistMutatingAdmissionPolicyRequest(); } - private 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 { + private okhttp3.Call listMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2236,7 +2412,7 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boo 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(); @@ -2292,8 +2468,10 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boo "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2312,48 +2490,59 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boo } @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 { - return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private 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(); + private ApiResponse listMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } - public class APIlistValidatingAdmissionPolicyBindingRequest { + public class APIlistMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistValidatingAdmissionPolicyBindingRequest() { + private APIlistMutatingAdmissionPolicyBindingRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIlistMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2361,9 +2550,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistMutatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2371,9 +2560,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolea /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIlistMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2381,9 +2570,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2391,9 +2580,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String field /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2401,9 +2590,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String label /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIlistMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2411,9 +2600,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2421,9 +2610,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String res /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2431,9 +2620,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(Strin /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2441,9 +2630,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2451,92 +2640,97 @@ public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer tim /** * Set watch * @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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest watch(Boolean watch) { + public APIlistMutatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listValidatingAdmissionPolicyBinding + * Build call for listMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listValidatingAdmissionPolicyBinding request - * @return V1alpha1ValidatingAdmissionPolicyBindingList + * Execute listMutatingAdmissionPolicyBinding request + * @return V1alpha1MutatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyBindingList execute() throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1alpha1MutatingAdmissionPolicyBindingList execute() throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBindingList> + * Execute listMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listValidatingAdmissionPolicyBinding request (asynchronously) + * Execute listMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @return APIlistValidatingAdmissionPolicyBindingRequest + * list or watch objects of kind MutatingAdmissionPolicyBinding + * @return APIlistMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistValidatingAdmissionPolicyBindingRequest listValidatingAdmissionPolicyBinding() { - return new APIlistValidatingAdmissionPolicyBindingRequest(); + public APIlistMutatingAdmissionPolicyBindingRequest listMutatingAdmissionPolicyBinding() { + return new APIlistMutatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2553,7 +2747,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch bod 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}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2585,7 +2779,8 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch bod final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2605,46 +2800,53 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch bod } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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)"); } - return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private 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(); + private ApiResponse patchMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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); } - private okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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; } - public class APIpatchValidatingAdmissionPolicyRequest { + public class APIpatchMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { + private APIpatchMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2652,9 +2854,9 @@ private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIpatchMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2662,9 +2864,9 @@ public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIpatchMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2672,9 +2874,9 @@ public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIpatchMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2682,9 +2884,9 @@ public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIpatchMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2692,20 +2894,21 @@ public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldVali /** * Set force * @param force Force is going to \"force\" Apply 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 APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) { + public APIpatchMutatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchValidatingAdmissionPolicy + * Build call for patchMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2713,78 +2916,82 @@ public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchValidatingAdmissionPolicy request - * @return V1alpha1ValidatingAdmissionPolicy + * Execute patchMutatingAdmissionPolicy request + * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> + * Execute patchMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchValidatingAdmissionPolicy request (asynchronously) + * Execute patchMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchMutatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * 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) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(String name, V1Patch body) { - return new APIpatchValidatingAdmissionPolicyRequest(name, body); + public APIpatchMutatingAdmissionPolicyRequest patchMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2801,7 +3008,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa 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}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2833,7 +3040,8 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2853,46 +3061,53 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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)"); } - return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private 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(); + private ApiResponse patchMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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; } - public class APIpatchValidatingAdmissionPolicyBindingRequest { + public class APIpatchMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch body) { + private APIpatchMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2900,9 +3115,9 @@ private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch bod /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIpatchMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2910,9 +3125,9 @@ public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIpatchMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2920,9 +3135,9 @@ public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIpatchMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2930,9 +3145,9 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String field /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIpatchMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2940,20 +3155,21 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fi /** * Set force * @param force Force is going to \"force\" Apply 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 APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) { + public APIpatchMutatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchValidatingAdmissionPolicyBinding + * Build call for patchMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2961,78 +3177,82 @@ public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchValidatingAdmissionPolicyBinding request - * @return V1alpha1ValidatingAdmissionPolicyBinding + * Execute patchMutatingAdmissionPolicyBinding request + * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBinding> + * Execute patchMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchValidatingAdmissionPolicyBinding request (asynchronously) + * Execute patchMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchMutatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * 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) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(String name, V1Patch body) { - return new APIpatchValidatingAdmissionPolicyBindingRequest(name, body); + public APIpatchMutatingAdmissionPolicyBindingRequest patchMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchMutatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3046,10 +3266,10 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3062,26 +3282,11 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat 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)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3089,7 +3294,6 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3097,190 +3301,140 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", 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 { + private okhttp3.Call readMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 patchValidatingAdmissionPolicyStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicy(Async)"); } - return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingAdmissionPolicyCall(name, pretty, _callback); } - private 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(); + private ApiResponse readMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _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; } - public class APIpatchValidatingAdmissionPolicyStatusRequest { + public class APIreadMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; - private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - private Boolean force; - private APIpatchValidatingAdmissionPolicyStatusRequest(String name, V1Patch body) { + private APIreadMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest + * @return APIreadMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreadMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply 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 APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest force(Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchValidatingAdmissionPolicyStatus + * Build call for readMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingAdmissionPolicyCall(name, pretty, _callback); } /** - * Execute patchValidatingAdmissionPolicyStatus request - * @return V1alpha1ValidatingAdmissionPolicy + * Execute readMutatingAdmissionPolicy request + * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> + * Execute readMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readMutatingAdmissionPolicyWithHttpInfo(name, pretty); } /** - * Execute patchValidatingAdmissionPolicyStatus request (asynchronously) + * Execute readMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readMutatingAdmissionPolicyAsync(name, pretty, _callback); } } /** * - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @return APIpatchValidatingAdmissionPolicyStatusRequest + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @return APIreadMutatingAdmissionPolicyRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(String name, V1Patch body) { - return new APIpatchValidatingAdmissionPolicyStatusRequest(name, body); + public APIreadMutatingAdmissionPolicyRequest readMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIreadMutatingAdmissionPolicyRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3297,7 +3451,7 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3313,7 +3467,8 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3332,129 +3487,136 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 readMutatingAdmissionPolicyBinding(Async)"); } - return readValidatingAdmissionPolicyCall(name, pretty, _callback); + return readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); } - private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _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; } - public class APIreadValidatingAdmissionPolicyRequest { + public class APIreadMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyRequest(String name) { + private APIreadMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingAdmissionPolicyRequest + * @return APIreadMutatingAdmissionPolicyBindingRequest */ - public APIreadValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIreadMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readValidatingAdmissionPolicy + * Build call for readMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyCall(name, pretty, _callback); + return readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); } /** - * Execute readValidatingAdmissionPolicy request - * @return V1alpha1ValidatingAdmissionPolicy + * Execute readMutatingAdmissionPolicyBinding request + * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyWithHttpInfo(name, pretty); + public V1alpha1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> + * Execute readMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); } /** - * Execute readValidatingAdmissionPolicy request (asynchronously) + * Execute readMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readMutatingAdmissionPolicyBindingAsync(name, pretty, _callback); } } /** * - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIreadValidatingAdmissionPolicyRequest + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @return APIreadMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(String name) { - return new APIreadValidatingAdmissionPolicyRequest(name); + public APIreadMutatingAdmissionPolicyBindingRequest readMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIreadMutatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3468,10 +3630,10 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin basePath = null; } - Object localVarPostBody = null; + 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}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3484,10 +3646,23 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin 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)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3495,6 +3670,7 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3502,133 +3678,190 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 readValidatingAdmissionPolicyBinding(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 replaceMutatingAdmissionPolicy(Async)"); } - return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + return replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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); } - private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _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; } - public class APIreadValidatingAdmissionPolicyBindingRequest { + public class APIreplaceMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1alpha1MutatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadValidatingAdmissionPolicyBindingRequest(String name) { + private APIreplaceMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body) { this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingAdmissionPolicyBindingRequest + * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreadValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreplaceMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readValidatingAdmissionPolicyBinding + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceMutatingAdmissionPolicyRequest + */ + public APIreplaceMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceMutatingAdmissionPolicyRequest + */ + public APIreplaceMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceMutatingAdmissionPolicyRequest + */ + public APIreplaceMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + return replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readValidatingAdmissionPolicyBinding request - * @return V1alpha1ValidatingAdmissionPolicyBinding + * Execute replaceMutatingAdmissionPolicy request + * @return V1alpha1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public V1alpha1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBinding> + * Execute replaceMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readValidatingAdmissionPolicyBinding request (asynchronously) + * Execute replaceMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyBindingAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceMutatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @return APIreadValidatingAdmissionPolicyBindingRequest + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param body (required) + * @return APIreplaceMutatingAdmissionPolicyRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(String name) { - return new APIreadValidatingAdmissionPolicyBindingRequest(name); + public APIreplaceMutatingAdmissionPolicyRequest replaceMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicy body) { + return new APIreplaceMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3642,10 +3875,10 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String basePath = null; } - Object localVarPostBody = null; + 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}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3658,662 +3891,23 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - 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); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, 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)"); - } - - return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); - - } - - - private 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); - } - - private 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; - } - - public class APIreadValidatingAdmissionPolicyStatusRequest { - private final String name; - private String pretty; - - private APIreadValidatingAdmissionPolicyStatusRequest(String name) { - this.name = name; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingAdmissionPolicyStatusRequest - */ - public APIreadValidatingAdmissionPolicyStatusRequest pretty(String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readValidatingAdmissionPolicyStatus - * @param _callback ApiCallback API callback - * @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 buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - /** - * Execute readValidatingAdmissionPolicyStatus request - * @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 execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); - return localVarResp.getData(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - /** - * Execute readValidatingAdmissionPolicyStatus request with HTTP info returned - * @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 executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); - } - - /** - * Execute readValidatingAdmissionPolicyStatus request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException 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 executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyStatusAsync(name, pretty, _callback); - } - } - - /** - * - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIreadValidatingAdmissionPolicyStatusRequest - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(String name) { - return new APIreadValidatingAdmissionPolicyStatusRequest(name); - } - private okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - 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)); - } - - 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); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, 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)"); - } - - return replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private 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); - } - - private okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreplaceValidatingAdmissionPolicyRequest { - private final String name; - private final V1alpha1ValidatingAdmissionPolicy body; - private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - - private APIreplaceValidatingAdmissionPolicyRequest(String name, V1alpha1ValidatingAdmissionPolicy body) { - this.name = name; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest pretty(String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceValidatingAdmissionPolicy - * @param _callback ApiCallback API callback - * @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 buildCall(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute replaceValidatingAdmissionPolicy request - * @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 execute() throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute replaceValidatingAdmissionPolicy request with HTTP info returned - * @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 executeWithHttpInfo() throws ApiException { - return replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute replaceValidatingAdmissionPolicy request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException 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 executeAsync(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @return APIreplaceValidatingAdmissionPolicyRequest - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIreplaceValidatingAdmissionPolicyRequest replaceValidatingAdmissionPolicy(String name, V1alpha1ValidatingAdmissionPolicy body) { - return new APIreplaceValidatingAdmissionPolicyRequest(name, body); - } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1alpha1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicybindings/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - 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 (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } 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); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1alpha1ValidatingAdmissionPolicyBinding 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)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyBinding(Async)"); - } - - return replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private 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(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1alpha1ValidatingAdmissionPolicyBinding 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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreplaceValidatingAdmissionPolicyBindingRequest { - private final String name; - private final V1alpha1ValidatingAdmissionPolicyBinding body; - private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - - private APIreplaceValidatingAdmissionPolicyBindingRequest(String name, V1alpha1ValidatingAdmissionPolicyBinding body) { - this.name = name; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - */ - public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - */ - public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceValidatingAdmissionPolicyBinding - * @param _callback ApiCallback API callback - * @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 buildCall(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute replaceValidatingAdmissionPolicyBinding request - * @return V1alpha1ValidatingAdmissionPolicyBinding - * @throws ApiException If fail to call 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 V1alpha1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute replaceValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicyBinding> - * @throws ApiException If fail to call 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 executeWithHttpInfo() throws ApiException { - return replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute replaceValidatingAdmissionPolicyBinding request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException 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 executeAsync(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * replace the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param body (required) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIreplaceValidatingAdmissionPolicyBindingRequest replaceValidatingAdmissionPolicyBinding(String name, V1alpha1ValidatingAdmissionPolicyBinding body) { - return new APIreplaceValidatingAdmissionPolicyBindingRequest(name, body); - } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1alpha1/validatingadmissionpolicies/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - 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)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4333,45 +3927,51 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1a } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); } - return replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private 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(); + private ApiResponse replaceMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1alpha1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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; } - public class APIreplaceValidatingAdmissionPolicyStatusRequest { + public class APIreplaceMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; - private final V1alpha1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nonnull + private final V1alpha1MutatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1alpha1ValidatingAdmissionPolicy body) { + private APIreplaceMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body) { this.name = name; this.body = body; } @@ -4379,9 +3979,9 @@ private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1alpha1Va /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreplaceMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4389,9 +3989,9 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { + public APIreplaceMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4399,9 +3999,9 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4409,20 +4009,21 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fiel /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceValidatingAdmissionPolicyStatus + * Build call for replaceMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4430,75 +4031,79 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String f
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceValidatingAdmissionPolicyStatus request - * @return V1alpha1ValidatingAdmissionPolicy + * Execute replaceMutatingAdmissionPolicyBinding request + * @return V1alpha1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1alpha1ValidatingAdmissionPolicy> + * Execute replaceMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1alpha1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceValidatingAdmissionPolicyStatus request (asynchronously) + * Execute replaceMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceMutatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * 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) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyStatusRequest replaceValidatingAdmissionPolicyStatus(String name, V1alpha1ValidatingAdmissionPolicy body) { - return new APIreplaceValidatingAdmissionPolicyStatusRequest(name, body); + public APIreplaceMutatingAdmissionPolicyBindingRequest replaceMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha1MutatingAdmissionPolicyBinding body) { + return new APIreplaceMutatingAdmissionPolicyBindingRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java index 7896f4823b..7e95fda0af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.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.V1beta1ValidatingAdmissionPolicy; -import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBinding; -import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyBindingList; -import io.kubernetes.client.openapi.models.V1beta1ValidatingAdmissionPolicyList; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicy; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBinding; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyBindingList; +import io.kubernetes.client.openapi.models.V1beta1MutatingAdmissionPolicyList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -78,7 +78,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createValidatingAdmissionPolicyCall(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -95,7 +95,7 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1beta1ValidatingAdmiss Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -122,7 +122,8 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1beta1ValidatingAdmiss final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -142,48 +143,53 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(V1beta1ValidatingAdmiss } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); } - return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(V1beta1ValidatingAdmissionPolicy 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(); + private ApiResponse createMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyAsync(V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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; } - public class APIcreateValidatingAdmissionPolicyRequest { - private final V1beta1ValidatingAdmissionPolicy body; + public class APIcreateMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull + private final V1beta1MutatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyRequest(V1beta1ValidatingAdmissionPolicy body) { + private APIcreateMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIcreateMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -191,9 +197,9 @@ public APIcreateValidatingAdmissionPolicyRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIcreateMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -201,9 +207,9 @@ public APIcreateValidatingAdmissionPolicyRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIcreateMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -211,20 +217,21 @@ public APIcreateValidatingAdmissionPolicyRequest fieldManager(String fieldManage /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIcreateMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createValidatingAdmissionPolicy + * Build call for createMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -233,15 +240,16 @@ public APIcreateValidatingAdmissionPolicyRequest fieldValidation(String fieldVal
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicy + * Execute createMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -249,17 +257,18 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * Execute createMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -267,17 +276,18 @@ public V1beta1ValidatingAdmissionPolicy execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createValidatingAdmissionPolicy request (asynchronously) + * Execute createMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -285,18 +295,19 @@ public ApiResponse executeWithHttpInfo() throw
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createMutatingAdmissionPolicyAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicy * @param body (required) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyRequest * @http.response.details - +
+ @@ -304,10 +315,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(V1beta1ValidatingAdmissionPolicy body) { - return new APIcreateValidatingAdmissionPolicyRequest(body); + public APIcreateMutatingAdmissionPolicyRequest createMutatingAdmissionPolicy(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body) { + return new APIcreateMutatingAdmissionPolicyRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -324,7 +335,7 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1beta1Validatin Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -351,7 +362,8 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1beta1Validatin final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -371,48 +383,53 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(V1beta1Validatin } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); } - return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(V1beta1ValidatingAdmissionPolicyBinding 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(); + private ApiResponse createMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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; } - public class APIcreateValidatingAdmissionPolicyBindingRequest { - private final V1beta1ValidatingAdmissionPolicyBinding body; + public class APIcreateMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull + private final V1beta1MutatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyBindingRequest(V1beta1ValidatingAdmissionPolicyBinding body) { + private APIcreateMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIcreateMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -420,9 +437,9 @@ public APIcreateValidatingAdmissionPolicyBindingRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIcreateMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -430,9 +447,9 @@ public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -440,20 +457,21 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(String fiel /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createValidatingAdmissionPolicyBinding + * Build call for createMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -462,15 +480,16 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(String f
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBinding + * Execute createMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -478,17 +497,18 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * Execute createMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -496,17 +516,18 @@ public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createValidatingAdmissionPolicyBinding request (asynchronously) + * Execute createMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -514,18 +535,19 @@ public ApiResponse executeWithHttpInfo(
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyBindingAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createMutatingAdmissionPolicyBindingAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ValidatingAdmissionPolicyBinding + * create a MutatingAdmissionPolicyBinding * @param body (required) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+ @@ -533,10 +555,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(V1beta1ValidatingAdmissionPolicyBinding body) { - return new APIcreateValidatingAdmissionPolicyBindingRequest(body); + public APIcreateMutatingAdmissionPolicyBindingRequest createMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body) { + return new APIcreateMutatingAdmissionPolicyBindingRequest(body); } - private 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 { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -553,7 +575,7 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -581,6 +603,10 @@ private 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)); } @@ -616,7 +642,8 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(String pretty final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -636,51 +663,67 @@ private 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 { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } - public class APIdeleteCollectionValidatingAdmissionPolicyRequest { + public class APIdeleteCollectionMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionValidatingAdmissionPolicyRequest() { + private APIdeleteCollectionMutatingAdmissionPolicyRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -688,9 +731,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(String pretty) /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -698,9 +741,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(String _con /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -708,9 +751,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(String dryRun) /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -718,19 +761,29 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(String /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -738,9 +791,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(String /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -748,9 +801,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(Integer limit) /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -758,9 +811,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(Bool /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -768,9 +821,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(Str /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -778,9 +831,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(Strin /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -788,9 +841,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch( /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -798,9 +851,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(Boo /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -808,92 +861,97 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(Intege /** * Set body * @param body (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteCollectionMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionValidatingAdmissionPolicy + * Build call for deleteCollectionMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request + * Execute deleteCollectionMutatingAdmissionPolicy request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request with HTTP info returned + * Execute deleteCollectionMutatingAdmissionPolicy request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request (asynchronously) + * Execute deleteCollectionMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of ValidatingAdmissionPolicy - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * delete collection of MutatingAdmissionPolicy + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionValidatingAdmissionPolicyRequest deleteCollectionValidatingAdmissionPolicy() { - return new APIdeleteCollectionValidatingAdmissionPolicyRequest(); + public APIdeleteCollectionMutatingAdmissionPolicyRequest deleteCollectionMutatingAdmissionPolicy() { + return new APIdeleteCollectionMutatingAdmissionPolicyRequest(); } - private 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 { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -910,7 +968,7 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -938,6 +996,10 @@ private 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)); } @@ -973,7 +1035,8 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(String final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -993,51 +1056,67 @@ private 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 { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } - public class APIdeleteCollectionValidatingAdmissionPolicyBindingRequest { + public class APIdeleteCollectionMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { + private APIdeleteCollectionMutatingAdmissionPolicyBindingRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1045,9 +1124,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(String /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1055,9 +1134,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(Stri /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1065,9 +1144,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(String /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1075,19 +1154,29 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector( /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1095,9 +1184,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector( /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1105,9 +1194,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(Integer /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1115,9 +1204,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependen /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1125,9 +1214,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPol /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1135,9 +1224,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1145,9 +1234,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1155,9 +1244,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEve /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1165,92 +1254,97 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds /** * Set body * @param body (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionValidatingAdmissionPolicyBinding + * Build call for deleteCollectionMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request + * Execute deleteCollectionMutatingAdmissionPolicyBinding request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request with HTTP info returned + * Execute deleteCollectionMutatingAdmissionPolicyBinding request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request (asynchronously) + * Execute deleteCollectionMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } /** * - * delete collection of ValidatingAdmissionPolicyBinding - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * delete collection of MutatingAdmissionPolicyBinding + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest deleteCollectionValidatingAdmissionPolicyBinding() { - return new APIdeleteCollectionValidatingAdmissionPolicyBindingRequest(); + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest deleteCollectionMutatingAdmissionPolicyBinding() { + return new APIdeleteCollectionMutatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1267,7 +1361,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1288,6 +1382,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -1299,7 +1397,8 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1319,50 +1418,59 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(String name, String pre } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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)"); } - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteValidatingAdmissionPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } - public class APIdeleteValidatingAdmissionPolicyRequest { + public class APIdeleteMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyRequest(String name) { + private APIdeleteMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIdeleteMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1370,9 +1478,9 @@ public APIdeleteValidatingAdmissionPolicyRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIdeleteMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1380,19 +1488,29 @@ public APIdeleteValidatingAdmissionPolicyRequest dryRun(String dryRun) { /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteMutatingAdmissionPolicyRequest + */ + public APIdeleteMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1400,9 +1518,9 @@ public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(Boolean orphan /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propagationPolicy) { + public APIdeleteMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1410,20 +1528,21 @@ public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(String propag /** * Set body * @param body (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIdeleteMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) { + public APIdeleteMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteValidatingAdmissionPolicy + * Build call for deleteMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1431,15 +1550,16 @@ public APIdeleteValidatingAdmissionPolicyRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteValidatingAdmissionPolicy request + * Execute deleteMutatingAdmissionPolicy request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -1447,16 +1567,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteValidatingAdmissionPolicy request with HTTP info returned + * Execute deleteMutatingAdmissionPolicy request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -1464,16 +1585,17 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteValidatingAdmissionPolicy request (asynchronously) + * Execute deleteMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -1481,27 +1603,28 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIdeleteValidatingAdmissionPolicyRequest + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @return APIdeleteMutatingAdmissionPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(String name) { - return new APIdeleteValidatingAdmissionPolicyRequest(name); + public APIdeleteMutatingAdmissionPolicyRequest deleteMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIdeleteMutatingAdmissionPolicyRequest(name); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1518,7 +1641,7 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1539,6 +1662,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(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)); } @@ -1550,7 +1677,8 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1570,50 +1698,59 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(String name, Str } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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)"); } - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } - public class APIdeleteValidatingAdmissionPolicyBindingRequest { + public class APIdeleteMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteValidatingAdmissionPolicyBindingRequest(String name) { + private APIdeleteMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIdeleteMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1621,9 +1758,9 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIdeleteMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1631,19 +1768,29 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1651,9 +1798,9 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(Boolean /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String propagationPolicy) { + public APIdeleteMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1661,20 +1808,21 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(String /** * Set body * @param body (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIdeleteMutatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions body) { + public APIdeleteMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteValidatingAdmissionPolicyBinding + * Build call for deleteMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1682,15 +1830,16 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest body(V1DeleteOptions bod
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteValidatingAdmissionPolicyBinding request + * Execute deleteMutatingAdmissionPolicyBinding request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -1698,16 +1847,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteValidatingAdmissionPolicyBinding request with HTTP info returned + * Execute deleteMutatingAdmissionPolicyBinding request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -1715,16 +1865,17 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteValidatingAdmissionPolicyBinding request (asynchronously) + * Execute deleteMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -1732,25 +1883,26 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteMutatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(String name) { - return new APIdeleteValidatingAdmissionPolicyBindingRequest(name); + public APIdeleteMutatingAdmissionPolicyBindingRequest deleteMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIdeleteMutatingAdmissionPolicyBindingRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { String basePath = null; @@ -1780,7 +1932,8 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1830,7 +1983,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1845,7 +1999,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1861,7 +2016,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1877,7 +2033,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1893,7 +2050,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1902,7 +2060,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private 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 { + private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1919,7 +2077,7 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean al Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1975,8 +2133,10 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean al "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1995,48 +2155,59 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(String pretty, Boolean al } @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 { - return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private 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(); + private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call listMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } - public class APIlistValidatingAdmissionPolicyRequest { + public class APIlistMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistValidatingAdmissionPolicyRequest() { + private APIlistMutatingAdmissionPolicyRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIlistMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2044,9 +2215,9 @@ public APIlistValidatingAdmissionPolicyRequest pretty(String pretty) { /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistMutatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2054,9 +2225,9 @@ public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(Boolean allow /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { + public APIlistMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2064,9 +2235,9 @@ public APIlistValidatingAdmissionPolicyRequest _continue(String _continue) { /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelector) { + public APIlistMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2074,9 +2245,9 @@ public APIlistValidatingAdmissionPolicyRequest fieldSelector(String fieldSelecto /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelector) { + public APIlistMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2084,9 +2255,9 @@ public APIlistValidatingAdmissionPolicyRequest labelSelector(String labelSelecto /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { + public APIlistMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2094,9 +2265,9 @@ public APIlistValidatingAdmissionPolicyRequest limit(Integer limit) { /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVersion) { + public APIlistMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2104,9 +2275,9 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersion(String resourceVe /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2114,9 +2285,9 @@ public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(String resou /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2124,9 +2295,9 @@ public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(Boolean sendIni /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2134,92 +2305,97 @@ public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(Integer timeoutSec /** * Set watch * @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 APIlistValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest watch(Boolean watch) { + public APIlistMutatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listValidatingAdmissionPolicy + * Build call for listMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicyList + * Execute listMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyList execute() throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1beta1MutatingAdmissionPolicyList execute() throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyList> + * Execute listMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listValidatingAdmissionPolicy request (asynchronously) + * Execute listMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ValidatingAdmissionPolicy - * @return APIlistValidatingAdmissionPolicyRequest + * list or watch objects of kind MutatingAdmissionPolicy + * @return APIlistMutatingAdmissionPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistValidatingAdmissionPolicyRequest listValidatingAdmissionPolicy() { - return new APIlistValidatingAdmissionPolicyRequest(); + public APIlistMutatingAdmissionPolicyRequest listMutatingAdmissionPolicy() { + return new APIlistMutatingAdmissionPolicyRequest(); } - private 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 { + private okhttp3.Call listMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2236,7 +2412,7 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boo Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2292,8 +2468,10 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boo "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2312,48 +2490,59 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(String pretty, Boo } @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 { - return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private 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(); + private ApiResponse listMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } - public class APIlistValidatingAdmissionPolicyBindingRequest { + public class APIlistMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistValidatingAdmissionPolicyBindingRequest() { + private APIlistMutatingAdmissionPolicyBindingRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIlistMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2361,9 +2550,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest pretty(String pretty) { /** * Set allowWatchBookmarks * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistMutatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -2371,9 +2560,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(Boolea /** * Set _continue * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue) { + public APIlistMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2381,9 +2570,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest _continue(String _continue /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String fieldSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2391,9 +2580,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(String field /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String labelSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2401,9 +2590,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(String label /** * Set limit * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { + public APIlistMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2411,9 +2600,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest limit(Integer limit) { /** * Set resourceVersion * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String resourceVersion) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2421,9 +2610,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(String res /** * Set resourceVersionMatch * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2431,9 +2620,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(Strin /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2441,9 +2630,9 @@ public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(Boolean /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2451,92 +2640,97 @@ public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(Integer tim /** * Set watch * @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 APIlistValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest watch(Boolean watch) { + public APIlistMutatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listValidatingAdmissionPolicyBinding + * Build call for listMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } /** - * Execute listValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBindingList + * Execute listMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBindingList execute() throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1beta1MutatingAdmissionPolicyBindingList execute() throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBindingList> + * Execute listMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); } /** - * Execute listValidatingAdmissionPolicyBinding request (asynchronously) + * Execute listMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @return APIlistValidatingAdmissionPolicyBindingRequest + * list or watch objects of kind MutatingAdmissionPolicyBinding + * @return APIlistMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistValidatingAdmissionPolicyBindingRequest listValidatingAdmissionPolicyBinding() { - return new APIlistValidatingAdmissionPolicyBindingRequest(); + public APIlistMutatingAdmissionPolicyBindingRequest listMutatingAdmissionPolicyBinding() { + return new APIlistMutatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2553,7 +2747,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch bod Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2585,7 +2779,8 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch bod final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2605,46 +2800,53 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(String name, V1Patch bod } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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)"); } - return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private 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(); + private ApiResponse patchMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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); } - private okhttp3.Call patchValidatingAdmissionPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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; } - public class APIpatchValidatingAdmissionPolicyRequest { + public class APIpatchMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { + private APIpatchMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2652,9 +2854,9 @@ private APIpatchValidatingAdmissionPolicyRequest(String name, V1Patch body) { /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIpatchMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2662,9 +2864,9 @@ public APIpatchValidatingAdmissionPolicyRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { + public APIpatchMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2672,9 +2874,9 @@ public APIpatchValidatingAdmissionPolicyRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { + public APIpatchMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2682,9 +2884,9 @@ public APIpatchValidatingAdmissionPolicyRequest fieldManager(String fieldManager /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { + public APIpatchMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2692,20 +2894,21 @@ public APIpatchValidatingAdmissionPolicyRequest fieldValidation(String fieldVali /** * Set force * @param force Force is going to \"force\" Apply 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 APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) { + public APIpatchMutatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchValidatingAdmissionPolicy + * Build call for patchMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2713,78 +2916,82 @@ public APIpatchValidatingAdmissionPolicyRequest force(Boolean force) {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicy + * Execute patchMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * Execute patchMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchValidatingAdmissionPolicy request (asynchronously) + * Execute patchMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchMutatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * 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) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIpatchMutatingAdmissionPolicyRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(String name, V1Patch body) { - return new APIpatchValidatingAdmissionPolicyRequest(name, body); + public APIpatchMutatingAdmissionPolicyRequest patchMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2801,7 +3008,7 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2833,7 +3040,8 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2853,46 +3061,53 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(String name, V1Pa } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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)"); } - return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private 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(); + private ApiResponse patchMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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; } - public class APIpatchValidatingAdmissionPolicyBindingRequest { + public class APIpatchMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch body) { + private APIpatchMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -2900,9 +3115,9 @@ private APIpatchValidatingAdmissionPolicyBindingRequest(String name, V1Patch bod /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIpatchMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2910,9 +3125,9 @@ public APIpatchValidatingAdmissionPolicyBindingRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { + public APIpatchMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2920,9 +3135,9 @@ public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { + public APIpatchMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2930,9 +3145,9 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(String field /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { + public APIpatchMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2940,20 +3155,21 @@ public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(String fi /** * Set force * @param force Force is going to \"force\" Apply 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 APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) { + public APIpatchMutatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchValidatingAdmissionPolicyBinding + * Build call for patchMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2961,78 +3177,82 @@ public APIpatchValidatingAdmissionPolicyBindingRequest force(Boolean force) {
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBinding + * Execute patchMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * Execute patchMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchValidatingAdmissionPolicyBinding request (asynchronously) + * Execute patchMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchMutatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * 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) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIpatchMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(String name, V1Patch body) { - return new APIpatchValidatingAdmissionPolicyBindingRequest(name, body); + public APIpatchMutatingAdmissionPolicyBindingRequest patchMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchMutatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3046,10 +3266,10 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3062,26 +3282,11 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat 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)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3089,7 +3294,6 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3097,190 +3301,140 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(String name, V1Pat } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", 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 { + private okhttp3.Call readMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 patchValidatingAdmissionPolicyStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicy(Async)"); } - return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingAdmissionPolicyCall(name, pretty, _callback); } - private 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(); + private ApiResponse readMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _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; } - public class APIpatchValidatingAdmissionPolicyStatusRequest { + public class APIreadMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; - private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - private Boolean force; - private APIpatchValidatingAdmissionPolicyStatusRequest(String name, V1Patch body) { + private APIreadMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest + * @return APIreadMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreadMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply 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 APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest force(Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchValidatingAdmissionPolicyStatus + * Build call for readMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingAdmissionPolicyCall(name, pretty, _callback); } /** - * Execute patchValidatingAdmissionPolicyStatus request - * @return V1beta1ValidatingAdmissionPolicy + * Execute readMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * Execute readMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readMutatingAdmissionPolicyWithHttpInfo(name, pretty); } /** - * Execute patchValidatingAdmissionPolicyStatus request (asynchronously) + * Execute readMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readMutatingAdmissionPolicyAsync(name, pretty, _callback); } } /** * - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @return APIpatchValidatingAdmissionPolicyStatusRequest + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @return APIreadMutatingAdmissionPolicyRequest * @http.response.details - +
+ -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(String name, V1Patch body) { - return new APIpatchValidatingAdmissionPolicyStatusRequest(name, body); + public APIreadMutatingAdmissionPolicyRequest readMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIreadMutatingAdmissionPolicyRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3297,7 +3451,7 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3313,7 +3467,8 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3332,129 +3487,136 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(String name, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 readMutatingAdmissionPolicyBinding(Async)"); } - return readValidatingAdmissionPolicyCall(name, pretty, _callback); + return readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); } - private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _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; } - public class APIreadValidatingAdmissionPolicyRequest { + public class APIreadMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyRequest(String name) { + private APIreadMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingAdmissionPolicyRequest + * @return APIreadMutatingAdmissionPolicyBindingRequest */ - public APIreadValidatingAdmissionPolicyRequest pretty(String pretty) { + public APIreadMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readValidatingAdmissionPolicy + * Build call for readMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyCall(name, pretty, _callback); + return readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); } /** - * Execute readValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicy + * Execute readMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyWithHttpInfo(name, pretty); + public V1beta1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * Execute readMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); } /** - * Execute readValidatingAdmissionPolicy request (asynchronously) + * Execute readMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readMutatingAdmissionPolicyBindingAsync(name, pretty, _callback); } } /** * - * read the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIreadValidatingAdmissionPolicyRequest + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @return APIreadMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(String name) { - return new APIreadValidatingAdmissionPolicyRequest(name); + public APIreadMutatingAdmissionPolicyBindingRequest readMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIreadMutatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3468,10 +3630,10 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3484,10 +3646,23 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin 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)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3495,6 +3670,7 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3502,133 +3678,190 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(String name, Strin } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 readValidatingAdmissionPolicyBinding(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 replaceMutatingAdmissionPolicy(Async)"); } - return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + return replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(String name, String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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); } - private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _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; } - public class APIreadValidatingAdmissionPolicyBindingRequest { + public class APIreplaceMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1beta1MutatingAdmissionPolicy body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadValidatingAdmissionPolicyBindingRequest(String name) { + private APIreplaceMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body) { this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingAdmissionPolicyBindingRequest + * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreadValidatingAdmissionPolicyBindingRequest pretty(String pretty) { + public APIreplaceMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readValidatingAdmissionPolicyBinding + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceMutatingAdmissionPolicyRequest + */ + public APIreplaceMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceMutatingAdmissionPolicyRequest + */ + public APIreplaceMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceMutatingAdmissionPolicyRequest + */ + public APIreplaceMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + return replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBinding + * Execute replaceMutatingAdmissionPolicy request + * @return V1beta1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public V1beta1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> + * Execute replaceMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readValidatingAdmissionPolicyBinding request (asynchronously) + * Execute replaceMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyBindingAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceMutatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @return APIreadValidatingAdmissionPolicyBindingRequest + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param body (required) + * @return APIreplaceMutatingAdmissionPolicyRequest * @http.response.details - +
+ +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(String name) { - return new APIreadValidatingAdmissionPolicyBindingRequest(name); + public APIreplaceMutatingAdmissionPolicyRequest replaceMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicy body) { + return new APIreplaceMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3642,10 +3875,10 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status" + String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3658,662 +3891,23 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(String name, String localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - 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); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, 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)"); - } - - return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); - - } - - - private 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); - } - - private 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; - } - - public class APIreadValidatingAdmissionPolicyStatusRequest { - private final String name; - private String pretty; - - private APIreadValidatingAdmissionPolicyStatusRequest(String name) { - this.name = name; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingAdmissionPolicyStatusRequest - */ - public APIreadValidatingAdmissionPolicyStatusRequest pretty(String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readValidatingAdmissionPolicyStatus - * @param _callback ApiCallback API callback - * @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 buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - /** - * Execute readValidatingAdmissionPolicyStatus request - * @return V1beta1ValidatingAdmissionPolicy - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); - return localVarResp.getData(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - /** - * Execute readValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call the 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 executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); - } - - /** - * Execute readValidatingAdmissionPolicyStatus request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException 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 executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyStatusAsync(name, pretty, _callback); - } - } - - /** - * - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIreadValidatingAdmissionPolicyStatusRequest - * @http.response.details - - - - -
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(String name) { - return new APIreadValidatingAdmissionPolicyStatusRequest(name); - } - private okhttp3.Call replaceValidatingAdmissionPolicyCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - 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)); - } - - 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); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyValidateBeforeCall(String name, V1beta1ValidatingAdmissionPolicy 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)"); - } - - return replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private ApiResponse replaceValidatingAdmissionPolicyWithHttpInfo(String name, V1beta1ValidatingAdmissionPolicy 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); - } - - private okhttp3.Call replaceValidatingAdmissionPolicyAsync(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreplaceValidatingAdmissionPolicyRequest { - private final String name; - private final V1beta1ValidatingAdmissionPolicy body; - private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - - private APIreplaceValidatingAdmissionPolicyRequest(String name, V1beta1ValidatingAdmissionPolicy body) { - this.name = name; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest pretty(String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceValidatingAdmissionPolicyRequest - */ - public APIreplaceValidatingAdmissionPolicyRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceValidatingAdmissionPolicy - * @param _callback ApiCallback API callback - * @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 buildCall(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute replaceValidatingAdmissionPolicy request - * @return V1beta1ValidatingAdmissionPolicy - * @throws ApiException If fail to call 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 V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute replaceValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> - * @throws ApiException If fail to call 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 executeWithHttpInfo() throws ApiException { - return replaceValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute replaceValidatingAdmissionPolicy request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException 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 executeAsync(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * replace the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @return APIreplaceValidatingAdmissionPolicyRequest - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIreplaceValidatingAdmissionPolicyRequest replaceValidatingAdmissionPolicy(String name, V1beta1ValidatingAdmissionPolicy body) { - return new APIreplaceValidatingAdmissionPolicyRequest(name, body); - } - private okhttp3.Call replaceValidatingAdmissionPolicyBindingCall(String name, V1beta1ValidatingAdmissionPolicyBinding body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - 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 (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } 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); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyBindingValidateBeforeCall(String name, V1beta1ValidatingAdmissionPolicyBinding 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)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingAdmissionPolicyBinding(Async)"); - } - - return replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private ApiResponse replaceValidatingAdmissionPolicyBindingWithHttpInfo(String name, V1beta1ValidatingAdmissionPolicyBinding 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); - } - - private okhttp3.Call replaceValidatingAdmissionPolicyBindingAsync(String name, V1beta1ValidatingAdmissionPolicyBinding 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(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreplaceValidatingAdmissionPolicyBindingRequest { - private final String name; - private final V1beta1ValidatingAdmissionPolicyBinding body; - private String pretty; - private String dryRun; - private String fieldManager; - private String fieldValidation; - - private APIreplaceValidatingAdmissionPolicyBindingRequest(String name, V1beta1ValidatingAdmissionPolicyBinding body) { - this.name = name; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - */ - public APIreplaceValidatingAdmissionPolicyBindingRequest pretty(String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - */ - public APIreplaceValidatingAdmissionPolicyBindingRequest dryRun(String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldManager(String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - */ - public APIreplaceValidatingAdmissionPolicyBindingRequest fieldValidation(String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceValidatingAdmissionPolicyBinding - * @param _callback ApiCallback API callback - * @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 buildCall(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute replaceValidatingAdmissionPolicyBinding request - * @return V1beta1ValidatingAdmissionPolicyBinding - * @throws ApiException If fail to call 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 V1beta1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute replaceValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicyBinding> - * @throws ApiException If fail to call 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 executeWithHttpInfo() throws ApiException { - return replaceValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute replaceValidatingAdmissionPolicyBinding request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException 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 executeAsync(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * replace the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param body (required) - * @return APIreplaceValidatingAdmissionPolicyBindingRequest - * @http.response.details - - - - - -
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIreplaceValidatingAdmissionPolicyBindingRequest replaceValidatingAdmissionPolicyBinding(String name, V1beta1ValidatingAdmissionPolicyBinding body) { - return new APIreplaceValidatingAdmissionPolicyBindingRequest(name, body); - } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - 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)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4333,45 +3927,51 @@ private okhttp3.Call replaceValidatingAdmissionPolicyStatusCall(String name, V1b } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceValidatingAdmissionPolicyStatusValidateBeforeCall(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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)"); } - return replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceValidatingAdmissionPolicyStatusWithHttpInfo(String name, V1beta1ValidatingAdmissionPolicy 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(); + private ApiResponse replaceMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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); } - private okhttp3.Call replaceValidatingAdmissionPolicyStatusAsync(String name, V1beta1ValidatingAdmissionPolicy body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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; } - public class APIreplaceValidatingAdmissionPolicyStatusRequest { + public class APIreplaceMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull private final String name; - private final V1beta1ValidatingAdmissionPolicy body; + @jakarta.annotation.Nonnull + private final V1beta1MutatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1beta1ValidatingAdmissionPolicy body) { + private APIreplaceMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body) { this.name = name; this.body = body; } @@ -4379,9 +3979,9 @@ private APIreplaceValidatingAdmissionPolicyStatusRequest(String name, V1beta1Val /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { + public APIreplaceMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4389,9 +3989,9 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest pretty(String pretty) { /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { + public APIreplaceMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4399,9 +3999,9 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest dryRun(String dryRun) { /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fieldManager) { + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -4409,20 +4009,21 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldManager(String fiel /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceValidatingAdmissionPolicyStatus + * Build call for replaceMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4430,75 +4031,79 @@ public APIreplaceValidatingAdmissionPolicyStatusRequest fieldValidation(String f
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceValidatingAdmissionPolicyStatus request - * @return V1beta1ValidatingAdmissionPolicy + * Execute replaceMutatingAdmissionPolicyBinding request + * @return V1beta1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1beta1ValidatingAdmissionPolicy> + * Execute replaceMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1beta1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceValidatingAdmissionPolicyStatus request (asynchronously) + * Execute replaceMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceValidatingAdmissionPolicyStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceMutatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * 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) - * @return APIreplaceValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceValidatingAdmissionPolicyStatusRequest replaceValidatingAdmissionPolicyStatus(String name, V1beta1ValidatingAdmissionPolicy body) { - return new APIreplaceValidatingAdmissionPolicyStatusRequest(name, body); + public APIreplaceMutatingAdmissionPolicyBindingRequest replaceMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta1MutatingAdmissionPolicyBinding body) { + return new APIreplaceMutatingAdmissionPolicyBindingRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java index 951e53394e..cec4b6d83c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java index 992bbb0928..f229e99ba7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCustomResourceDefinitionCall(@jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -120,7 +120,8 @@ private okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefiniti final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +141,7 @@ private okhttp3.Call createCustomResourceDefinitionCall(V1CustomResourceDefiniti } @SuppressWarnings("rawtypes") - private okhttp3.Call createCustomResourceDefinitionValidateBeforeCall(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 createCustomResourceDefinition(Async)"); @@ -151,13 +152,13 @@ private okhttp3.Call createCustomResourceDefinitionValidateBeforeCall(V1CustomRe } - private ApiResponse createCustomResourceDefinitionWithHttpInfo(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createCustomResourceDefinitionValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createCustomResourceDefinitionAsync(V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createCustomResourceDefinitionValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -166,13 +167,18 @@ private okhttp3.Call createCustomResourceDefinitionAsync(V1CustomResourceDefinit } public class APIcreateCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final V1CustomResourceDefinition body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateCustomResourceDefinitionRequest(V1CustomResourceDefinition body) { + private APIcreateCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull V1CustomResourceDefinition body) { this.body = body; } @@ -181,7 +187,7 @@ private APIcreateCustomResourceDefinitionRequest(V1CustomResourceDefinition body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateCustomResourceDefinitionRequest */ - public APIcreateCustomResourceDefinitionRequest pretty(String pretty) { + public APIcreateCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -191,7 +197,7 @@ public APIcreateCustomResourceDefinitionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateCustomResourceDefinitionRequest */ - public APIcreateCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIcreateCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -201,7 +207,7 @@ public APIcreateCustomResourceDefinitionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateCustomResourceDefinitionRequest */ - public APIcreateCustomResourceDefinitionRequest fieldManager(String fieldManager) { + public APIcreateCustomResourceDefinitionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -211,7 +217,7 @@ public APIcreateCustomResourceDefinitionRequest fieldManager(String fieldManager * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateCustomResourceDefinitionRequest */ - public APIcreateCustomResourceDefinitionRequest fieldValidation(String fieldValidation) { + public APIcreateCustomResourceDefinitionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -222,7 +228,8 @@ public APIcreateCustomResourceDefinitionRequest fieldValidation(String fieldVali * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -239,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -257,7 +265,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -275,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -294,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIcreateCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -302,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateCustomResourceDefinitionRequest createCustomResourceDefinition(V1CustomResourceDefinition body) { + public APIcreateCustomResourceDefinitionRequest createCustomResourceDefinition(@jakarta.annotation.Nonnull V1CustomResourceDefinition body) { return new APIcreateCustomResourceDefinitionRequest(body); } - private 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 { + private okhttp3.Call deleteCollectionCustomResourceDefinitionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -350,6 +361,10 @@ private 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)); } @@ -385,7 +400,8 @@ private okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -405,40 +421,56 @@ private 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 { - return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } public class APIdeleteCollectionCustomResourceDefinitionRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionCustomResourceDefinitionRequest() { @@ -449,7 +481,7 @@ private APIdeleteCollectionCustomResourceDefinitionRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest pretty(String pretty) { + public APIdeleteCollectionCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -459,7 +491,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest pretty(String pretty) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest _continue(String _continue) { + public APIdeleteCollectionCustomResourceDefinitionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -469,7 +501,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest _continue(String _cont * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIdeleteCollectionCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -479,7 +511,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest dryRun(String dryRun) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionCustomResourceDefinitionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -489,17 +521,27 @@ public APIdeleteCollectionCustomResourceDefinitionRequest fieldSelector(String f * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionCustomResourceDefinitionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionCustomResourceDefinitionRequest + */ + public APIdeleteCollectionCustomResourceDefinitionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest labelSelector(String labelSelector) { + public APIdeleteCollectionCustomResourceDefinitionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -509,7 +551,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest labelSelector(String l * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest limit(Integer limit) { + public APIdeleteCollectionCustomResourceDefinitionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -519,7 +561,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionCustomResourceDefinitionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -529,7 +571,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest orphanDependents(Boole * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionCustomResourceDefinitionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -539,7 +581,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest propagationPolicy(Stri * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -549,7 +591,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersion(String * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -559,7 +601,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest resourceVersionMatch(S * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionCustomResourceDefinitionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -569,7 +611,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest sendInitialEvents(Bool * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionCustomResourceDefinitionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -579,7 +621,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest timeoutSeconds(Integer * @param body (optional) * @return APIdeleteCollectionCustomResourceDefinitionRequest */ - public APIdeleteCollectionCustomResourceDefinitionRequest body(V1DeleteOptions body) { + public APIdeleteCollectionCustomResourceDefinitionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -590,14 +632,15 @@ public APIdeleteCollectionCustomResourceDefinitionRequest body(V1DeleteOptions b * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -605,14 +648,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -621,14 +665,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -637,14 +682,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionCustomResourceDefinitionAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCustomResourceDefinitionAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -653,7 +699,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of CustomResourceDefinition * @return APIdeleteCollectionCustomResourceDefinitionRequest * @http.response.details - +
+ @@ -662,7 +709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionCustomResourceDefinitionRequest deleteCollectionCustomResourceDefinition() { return new APIdeleteCollectionCustomResourceDefinitionRequest(); } - private okhttp3.Call deleteCustomResourceDefinitionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCustomResourceDefinitionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -700,6 +747,10 @@ private okhttp3.Call deleteCustomResourceDefinitionCall(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)); } @@ -711,7 +762,8 @@ private okhttp3.Call deleteCustomResourceDefinitionCall(String name, String pret final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -731,41 +783,50 @@ private okhttp3.Call deleteCustomResourceDefinitionCall(String name, String pret } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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 deleteCustomResourceDefinition(Async)"); } - return deleteCustomResourceDefinitionCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteCustomResourceDefinitionCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteCustomResourceDefinitionAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } public class APIdeleteCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCustomResourceDefinitionRequest(String name) { + private APIdeleteCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -774,7 +835,7 @@ private APIdeleteCustomResourceDefinitionRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest pretty(String pretty) { + public APIdeleteCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -784,7 +845,7 @@ public APIdeleteCustomResourceDefinitionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIdeleteCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -794,17 +855,27 @@ public APIdeleteCustomResourceDefinitionRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCustomResourceDefinitionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCustomResourceDefinitionRequest + */ + public APIdeleteCustomResourceDefinitionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCustomResourceDefinitionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -814,7 +885,7 @@ public APIdeleteCustomResourceDefinitionRequest orphanDependents(Boolean orphanD * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCustomResourceDefinitionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -824,7 +895,7 @@ public APIdeleteCustomResourceDefinitionRequest propagationPolicy(String propaga * @param body (optional) * @return APIdeleteCustomResourceDefinitionRequest */ - public APIdeleteCustomResourceDefinitionRequest body(V1DeleteOptions body) { + public APIdeleteCustomResourceDefinitionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -835,7 +906,8 @@ public APIdeleteCustomResourceDefinitionRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -843,7 +915,7 @@ public APIdeleteCustomResourceDefinitionRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCustomResourceDefinitionCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteCustomResourceDefinitionCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -851,7 +923,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -859,7 +932,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -868,7 +941,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -876,7 +950,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -885,7 +959,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -893,7 +968,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCustomResourceDefinitionAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteCustomResourceDefinitionAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -903,14 +978,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the CustomResourceDefinition (required) * @return APIdeleteCustomResourceDefinitionRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCustomResourceDefinitionRequest deleteCustomResourceDefinition(String name) { + public APIdeleteCustomResourceDefinitionRequest deleteCustomResourceDefinition(@jakarta.annotation.Nonnull String name) { return new APIdeleteCustomResourceDefinitionRequest(name); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -941,7 +1017,8 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -991,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1006,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1022,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1038,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1054,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1063,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listCustomResourceDefinitionCall(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 listCustomResourceDefinitionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1136,8 +1218,10 @@ private okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean all "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1156,19 +1240,19 @@ private okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean all } @SuppressWarnings("rawtypes") - private okhttp3.Call listCustomResourceDefinitionValidateBeforeCall(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 listCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listCustomResourceDefinitionWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCustomResourceDefinitionAsync(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 listCustomResourceDefinitionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1177,16 +1261,27 @@ private okhttp3.Call listCustomResourceDefinitionAsync(String pretty, Boolean al } public class APIlistCustomResourceDefinitionRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistCustomResourceDefinitionRequest() { @@ -1197,7 +1292,7 @@ private APIlistCustomResourceDefinitionRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest pretty(String pretty) { + public APIlistCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1207,7 +1302,7 @@ public APIlistCustomResourceDefinitionRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistCustomResourceDefinitionRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1217,7 +1312,7 @@ public APIlistCustomResourceDefinitionRequest allowWatchBookmarks(Boolean allowW * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest _continue(String _continue) { + public APIlistCustomResourceDefinitionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1227,7 +1322,7 @@ public APIlistCustomResourceDefinitionRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest fieldSelector(String fieldSelector) { + public APIlistCustomResourceDefinitionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1237,7 +1332,7 @@ public APIlistCustomResourceDefinitionRequest fieldSelector(String fieldSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest labelSelector(String labelSelector) { + public APIlistCustomResourceDefinitionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1247,7 +1342,7 @@ public APIlistCustomResourceDefinitionRequest labelSelector(String labelSelector * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest limit(Integer limit) { + public APIlistCustomResourceDefinitionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1257,7 +1352,7 @@ public APIlistCustomResourceDefinitionRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest resourceVersion(String resourceVersion) { + public APIlistCustomResourceDefinitionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1267,7 +1362,7 @@ public APIlistCustomResourceDefinitionRequest resourceVersion(String resourceVer * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistCustomResourceDefinitionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1277,7 +1372,7 @@ public APIlistCustomResourceDefinitionRequest resourceVersionMatch(String resour * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistCustomResourceDefinitionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1287,7 +1382,7 @@ public APIlistCustomResourceDefinitionRequest sendInitialEvents(Boolean sendInit * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistCustomResourceDefinitionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1297,7 +1392,7 @@ public APIlistCustomResourceDefinitionRequest timeoutSeconds(Integer timeoutSeco * @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 APIlistCustomResourceDefinitionRequest */ - public APIlistCustomResourceDefinitionRequest watch(Boolean watch) { + public APIlistCustomResourceDefinitionRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1308,7 +1403,8 @@ public APIlistCustomResourceDefinitionRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1323,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinitionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1339,7 +1436,8 @@ public V1CustomResourceDefinitionList execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinitionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1355,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throws * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1371,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ @@ -1380,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback patchCustomResourceDefinitionWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCustomResourceDefinitionAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1480,15 +1581,22 @@ private okhttp3.Call patchCustomResourceDefinitionAsync(String name, V1Patch bod } public class APIpatchCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchCustomResourceDefinitionRequest(String name, V1Patch body) { + private APIpatchCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1498,7 +1606,7 @@ private APIpatchCustomResourceDefinitionRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest pretty(String pretty) { + public APIpatchCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1508,7 +1616,7 @@ public APIpatchCustomResourceDefinitionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIpatchCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1518,7 +1626,7 @@ public APIpatchCustomResourceDefinitionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest fieldManager(String fieldManager) { + public APIpatchCustomResourceDefinitionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1528,7 +1636,7 @@ public APIpatchCustomResourceDefinitionRequest fieldManager(String fieldManager) * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest fieldValidation(String fieldValidation) { + public APIpatchCustomResourceDefinitionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1538,7 +1646,7 @@ public APIpatchCustomResourceDefinitionRequest fieldValidation(String fieldValid * @param force Force is going to \"force\" Apply 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 APIpatchCustomResourceDefinitionRequest */ - public APIpatchCustomResourceDefinitionRequest force(Boolean force) { + public APIpatchCustomResourceDefinitionRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1549,7 +1657,8 @@ public APIpatchCustomResourceDefinitionRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1565,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1582,7 +1692,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1599,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1618,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIpatchCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCustomResourceDefinitionRequest patchCustomResourceDefinition(String name, V1Patch body) { + public APIpatchCustomResourceDefinitionRequest patchCustomResourceDefinition(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCustomResourceDefinitionRequest(name, body); } - private okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1677,7 +1790,8 @@ private okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, V1Patc final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1697,7 +1811,7 @@ private okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, V1Patc } @SuppressWarnings("rawtypes") - private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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 patchCustomResourceDefinitionStatus(Async)"); @@ -1713,13 +1827,13 @@ private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(Strin } - private ApiResponse patchCustomResourceDefinitionStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchCustomResourceDefinitionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchCustomResourceDefinitionStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1728,15 +1842,22 @@ private okhttp3.Call patchCustomResourceDefinitionStatusAsync(String name, V1Pat } public class APIpatchCustomResourceDefinitionStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchCustomResourceDefinitionStatusRequest(String name, V1Patch body) { + private APIpatchCustomResourceDefinitionStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1746,7 +1867,7 @@ private APIpatchCustomResourceDefinitionStatusRequest(String name, V1Patch body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest pretty(String pretty) { + public APIpatchCustomResourceDefinitionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1756,7 +1877,7 @@ public APIpatchCustomResourceDefinitionStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest dryRun(String dryRun) { + public APIpatchCustomResourceDefinitionStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1766,7 +1887,7 @@ public APIpatchCustomResourceDefinitionStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest fieldManager(String fieldManager) { + public APIpatchCustomResourceDefinitionStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1776,7 +1897,7 @@ public APIpatchCustomResourceDefinitionStatusRequest fieldManager(String fieldMa * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest fieldValidation(String fieldValidation) { + public APIpatchCustomResourceDefinitionStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1786,7 +1907,7 @@ public APIpatchCustomResourceDefinitionStatusRequest fieldValidation(String fiel * @param force Force is going to \"force\" Apply 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 APIpatchCustomResourceDefinitionStatusRequest */ - public APIpatchCustomResourceDefinitionStatusRequest force(Boolean force) { + public APIpatchCustomResourceDefinitionStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1797,7 +1918,8 @@ public APIpatchCustomResourceDefinitionStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1813,7 +1935,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1830,7 +1953,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1847,7 +1971,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1866,17 +1991,18 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIpatchCustomResourceDefinitionStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchCustomResourceDefinitionStatusRequest patchCustomResourceDefinitionStatus(String name, V1Patch body) { + public APIpatchCustomResourceDefinitionStatusRequest patchCustomResourceDefinitionStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchCustomResourceDefinitionStatusRequest(name, body); } - private okhttp3.Call readCustomResourceDefinitionCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1909,7 +2035,8 @@ private okhttp3.Call readCustomResourceDefinitionCall(String name, String pretty final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1928,7 +2055,7 @@ private okhttp3.Call readCustomResourceDefinitionCall(String name, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call readCustomResourceDefinitionValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 readCustomResourceDefinition(Async)"); @@ -1939,13 +2066,13 @@ private okhttp3.Call readCustomResourceDefinitionValidateBeforeCall(String name, } - private ApiResponse readCustomResourceDefinitionWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readCustomResourceDefinitionValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readCustomResourceDefinitionAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readCustomResourceDefinitionValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1954,10 +2081,12 @@ private okhttp3.Call readCustomResourceDefinitionAsync(String name, String prett } public class APIreadCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadCustomResourceDefinitionRequest(String name) { + private APIreadCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1966,7 +2095,7 @@ private APIreadCustomResourceDefinitionRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadCustomResourceDefinitionRequest */ - public APIreadCustomResourceDefinitionRequest pretty(String pretty) { + public APIreadCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1977,7 +2106,8 @@ public APIreadCustomResourceDefinitionRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1992,7 +2122,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2008,7 +2139,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2024,7 +2156,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2041,16 +2174,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param name name of the CustomResourceDefinition (required) * @return APIreadCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadCustomResourceDefinitionRequest readCustomResourceDefinition(String name) { + public APIreadCustomResourceDefinitionRequest readCustomResourceDefinition(@jakarta.annotation.Nonnull String name) { return new APIreadCustomResourceDefinitionRequest(name); } - private okhttp3.Call readCustomResourceDefinitionStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2083,7 +2217,8 @@ private okhttp3.Call readCustomResourceDefinitionStatusCall(String name, String final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2102,7 +2237,7 @@ private okhttp3.Call readCustomResourceDefinitionStatusCall(String name, String } @SuppressWarnings("rawtypes") - private okhttp3.Call readCustomResourceDefinitionStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 readCustomResourceDefinitionStatus(Async)"); @@ -2113,13 +2248,13 @@ private okhttp3.Call readCustomResourceDefinitionStatusValidateBeforeCall(String } - private ApiResponse readCustomResourceDefinitionStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readCustomResourceDefinitionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readCustomResourceDefinitionStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readCustomResourceDefinitionStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readCustomResourceDefinitionStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2128,10 +2263,12 @@ private okhttp3.Call readCustomResourceDefinitionStatusAsync(String name, String } public class APIreadCustomResourceDefinitionStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadCustomResourceDefinitionStatusRequest(String name) { + private APIreadCustomResourceDefinitionStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2140,7 +2277,7 @@ private APIreadCustomResourceDefinitionStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadCustomResourceDefinitionStatusRequest */ - public APIreadCustomResourceDefinitionStatusRequest pretty(String pretty) { + public APIreadCustomResourceDefinitionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2151,7 +2288,8 @@ public APIreadCustomResourceDefinitionStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2166,7 +2304,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2182,7 +2321,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2198,7 +2338,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2215,16 +2356,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param name name of the CustomResourceDefinition (required) * @return APIreadCustomResourceDefinitionStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadCustomResourceDefinitionStatusRequest readCustomResourceDefinitionStatus(String name) { + public APIreadCustomResourceDefinitionStatusRequest readCustomResourceDefinitionStatus(@jakarta.annotation.Nonnull String name) { return new APIreadCustomResourceDefinitionStatusRequest(name); } - private okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2269,7 +2411,8 @@ private okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1CustomRe final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2289,7 +2432,7 @@ private okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1CustomRe } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 replaceCustomResourceDefinition(Async)"); @@ -2305,13 +2448,13 @@ private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(String na } - private ApiResponse replaceCustomResourceDefinitionWithHttpInfo(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceCustomResourceDefinitionAsync(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2320,14 +2463,20 @@ private okhttp3.Call replaceCustomResourceDefinitionAsync(String name, V1CustomR } public class APIreplaceCustomResourceDefinitionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1CustomResourceDefinition body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCustomResourceDefinitionRequest(String name, V1CustomResourceDefinition body) { + private APIreplaceCustomResourceDefinitionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body) { this.name = name; this.body = body; } @@ -2337,7 +2486,7 @@ private APIreplaceCustomResourceDefinitionRequest(String name, V1CustomResourceD * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceCustomResourceDefinitionRequest */ - public APIreplaceCustomResourceDefinitionRequest pretty(String pretty) { + public APIreplaceCustomResourceDefinitionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2347,7 +2496,7 @@ public APIreplaceCustomResourceDefinitionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceCustomResourceDefinitionRequest */ - public APIreplaceCustomResourceDefinitionRequest dryRun(String dryRun) { + public APIreplaceCustomResourceDefinitionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2357,7 +2506,7 @@ public APIreplaceCustomResourceDefinitionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceCustomResourceDefinitionRequest */ - public APIreplaceCustomResourceDefinitionRequest fieldManager(String fieldManager) { + public APIreplaceCustomResourceDefinitionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2367,7 +2516,7 @@ public APIreplaceCustomResourceDefinitionRequest fieldManager(String fieldManage * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceCustomResourceDefinitionRequest */ - public APIreplaceCustomResourceDefinitionRequest fieldValidation(String fieldValidation) { + public APIreplaceCustomResourceDefinitionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2378,7 +2527,8 @@ public APIreplaceCustomResourceDefinitionRequest fieldValidation(String fieldVal * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2394,7 +2544,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2411,7 +2562,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2428,7 +2580,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2447,17 +2600,18 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIreplaceCustomResourceDefinitionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceCustomResourceDefinitionRequest replaceCustomResourceDefinition(String name, V1CustomResourceDefinition body) { + public APIreplaceCustomResourceDefinitionRequest replaceCustomResourceDefinition(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body) { return new APIreplaceCustomResourceDefinitionRequest(name, body); } - private okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2502,7 +2656,8 @@ private okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1Cu final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2522,7 +2677,7 @@ private okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1Cu } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 replaceCustomResourceDefinitionStatus(Async)"); @@ -2538,13 +2693,13 @@ private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(Str } - private ApiResponse replaceCustomResourceDefinitionStatusWithHttpInfo(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceCustomResourceDefinitionStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceCustomResourceDefinitionStatusAsync(String name, V1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2553,14 +2708,20 @@ private okhttp3.Call replaceCustomResourceDefinitionStatusAsync(String name, V1C } public class APIreplaceCustomResourceDefinitionStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1CustomResourceDefinition body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceCustomResourceDefinitionStatusRequest(String name, V1CustomResourceDefinition body) { + private APIreplaceCustomResourceDefinitionStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body) { this.name = name; this.body = body; } @@ -2570,7 +2731,7 @@ private APIreplaceCustomResourceDefinitionStatusRequest(String name, V1CustomRes * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceCustomResourceDefinitionStatusRequest */ - public APIreplaceCustomResourceDefinitionStatusRequest pretty(String pretty) { + public APIreplaceCustomResourceDefinitionStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2580,7 +2741,7 @@ public APIreplaceCustomResourceDefinitionStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceCustomResourceDefinitionStatusRequest */ - public APIreplaceCustomResourceDefinitionStatusRequest dryRun(String dryRun) { + public APIreplaceCustomResourceDefinitionStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2590,7 +2751,7 @@ public APIreplaceCustomResourceDefinitionStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceCustomResourceDefinitionStatusRequest */ - public APIreplaceCustomResourceDefinitionStatusRequest fieldManager(String fieldManager) { + public APIreplaceCustomResourceDefinitionStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2600,7 +2761,7 @@ public APIreplaceCustomResourceDefinitionStatusRequest fieldManager(String field * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceCustomResourceDefinitionStatusRequest */ - public APIreplaceCustomResourceDefinitionStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceCustomResourceDefinitionStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2611,7 +2772,8 @@ public APIreplaceCustomResourceDefinitionStatusRequest fieldValidation(String fi * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2627,7 +2789,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2644,7 +2807,8 @@ public V1CustomResourceDefinition execute() throws ApiException { * @return ApiResponse<V1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2661,7 +2825,8 @@ public ApiResponse executeWithHttpInfo() throws ApiE * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2680,14 +2845,15 @@ public okhttp3.Call executeAsync(final ApiCallback _ * @param body (required) * @return APIreplaceCustomResourceDefinitionStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceCustomResourceDefinitionStatusRequest replaceCustomResourceDefinitionStatus(String name, V1CustomResourceDefinition body) { + public APIreplaceCustomResourceDefinitionStatusRequest replaceCustomResourceDefinitionStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1CustomResourceDefinition body) { return new APIreplaceCustomResourceDefinitionStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java index 832fc258bb..b7e644a81d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java index 00102cc259..e0dd3c9dfa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAPIServiceCall(@jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -120,7 +120,8 @@ private okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, Stri final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -140,7 +141,7 @@ private okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call createAPIServiceValidateBeforeCall(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAPIServiceValidateBeforeCall(@jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 createAPIService(Async)"); @@ -151,13 +152,13 @@ private okhttp3.Call createAPIServiceValidateBeforeCall(V1APIService body, Strin } - private ApiResponse createAPIServiceWithHttpInfo(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createAPIServiceAsync(V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createAPIServiceAsync(@jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -166,13 +167,18 @@ private okhttp3.Call createAPIServiceAsync(V1APIService body, String pretty, Str } public class APIcreateAPIServiceRequest { + @jakarta.annotation.Nonnull private final V1APIService body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateAPIServiceRequest(V1APIService body) { + private APIcreateAPIServiceRequest(@jakarta.annotation.Nonnull V1APIService body) { this.body = body; } @@ -181,7 +187,7 @@ private APIcreateAPIServiceRequest(V1APIService body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateAPIServiceRequest */ - public APIcreateAPIServiceRequest pretty(String pretty) { + public APIcreateAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -191,7 +197,7 @@ public APIcreateAPIServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateAPIServiceRequest */ - public APIcreateAPIServiceRequest dryRun(String dryRun) { + public APIcreateAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -201,7 +207,7 @@ public APIcreateAPIServiceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateAPIServiceRequest */ - public APIcreateAPIServiceRequest fieldManager(String fieldManager) { + public APIcreateAPIServiceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -211,7 +217,7 @@ public APIcreateAPIServiceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateAPIServiceRequest */ - public APIcreateAPIServiceRequest fieldValidation(String fieldValidation) { + public APIcreateAPIServiceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -222,7 +228,8 @@ public APIcreateAPIServiceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -239,7 +246,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -257,7 +265,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -275,7 +284,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -294,7 +304,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIcreateAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -302,10 +313,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateAPIServiceRequest createAPIService(V1APIService body) { + public APIcreateAPIServiceRequest createAPIService(@jakarta.annotation.Nonnull V1APIService body) { return new APIcreateAPIServiceRequest(body); } - private okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAPIServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -343,6 +354,10 @@ private okhttp3.Call deleteAPIServiceCall(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)); } @@ -354,7 +369,8 @@ private okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dry final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -374,41 +390,50 @@ private okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dry } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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 deleteAPIService(Async)"); } - return deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteAPIServiceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteAPIServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } public class APIdeleteAPIServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteAPIServiceRequest(String name) { + private APIdeleteAPIServiceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -417,7 +442,7 @@ private APIdeleteAPIServiceRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest pretty(String pretty) { + public APIdeleteAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -427,7 +452,7 @@ public APIdeleteAPIServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest dryRun(String dryRun) { + public APIdeleteAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -437,17 +462,27 @@ public APIdeleteAPIServiceRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteAPIServiceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteAPIServiceRequest + */ + public APIdeleteAPIServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteAPIServiceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -457,7 +492,7 @@ public APIdeleteAPIServiceRequest orphanDependents(Boolean orphanDependents) { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteAPIServiceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -467,7 +502,7 @@ public APIdeleteAPIServiceRequest propagationPolicy(String propagationPolicy) { * @param body (optional) * @return APIdeleteAPIServiceRequest */ - public APIdeleteAPIServiceRequest body(V1DeleteOptions body) { + public APIdeleteAPIServiceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -478,7 +513,8 @@ public APIdeleteAPIServiceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -486,7 +522,7 @@ public APIdeleteAPIServiceRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -494,7 +530,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -502,7 +539,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -511,7 +548,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -519,7 +557,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -528,7 +566,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -536,7 +575,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteAPIServiceAsync(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteAPIServiceAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -546,17 +585,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param name name of the APIService (required) * @return APIdeleteAPIServiceRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteAPIServiceRequest deleteAPIService(String name) { + public APIdeleteAPIServiceRequest deleteAPIService(@jakarta.annotation.Nonnull String name) { return new APIdeleteAPIServiceRequest(name); } - private 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 { + private okhttp3.Call deleteCollectionAPIServiceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -601,6 +641,10 @@ private okhttp3.Call deleteCollectionAPIServiceCall(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)); } @@ -636,7 +680,8 @@ private okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _conti final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -656,40 +701,56 @@ private okhttp3.Call deleteCollectionAPIServiceCall(String pretty, String _conti } @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 { - return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionAPIServiceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionAPIServiceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } public class APIdeleteCollectionAPIServiceRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; private APIdeleteCollectionAPIServiceRequest() { @@ -700,7 +761,7 @@ private APIdeleteCollectionAPIServiceRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest pretty(String pretty) { + public APIdeleteCollectionAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -710,7 +771,7 @@ public APIdeleteCollectionAPIServiceRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest _continue(String _continue) { + public APIdeleteCollectionAPIServiceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -720,7 +781,7 @@ public APIdeleteCollectionAPIServiceRequest _continue(String _continue) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest dryRun(String dryRun) { + public APIdeleteCollectionAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -730,7 +791,7 @@ public APIdeleteCollectionAPIServiceRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionAPIServiceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -740,17 +801,27 @@ public APIdeleteCollectionAPIServiceRequest fieldSelector(String fieldSelector) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionAPIServiceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionAPIServiceRequest + */ + public APIdeleteCollectionAPIServiceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest labelSelector(String labelSelector) { + public APIdeleteCollectionAPIServiceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -760,7 +831,7 @@ public APIdeleteCollectionAPIServiceRequest labelSelector(String labelSelector) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest limit(Integer limit) { + public APIdeleteCollectionAPIServiceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -770,7 +841,7 @@ public APIdeleteCollectionAPIServiceRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionAPIServiceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -780,7 +851,7 @@ public APIdeleteCollectionAPIServiceRequest orphanDependents(Boolean orphanDepen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionAPIServiceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -790,7 +861,7 @@ public APIdeleteCollectionAPIServiceRequest propagationPolicy(String propagation * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionAPIServiceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -800,7 +871,7 @@ public APIdeleteCollectionAPIServiceRequest resourceVersion(String resourceVersi * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionAPIServiceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -810,7 +881,7 @@ public APIdeleteCollectionAPIServiceRequest resourceVersionMatch(String resource * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionAPIServiceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -820,7 +891,7 @@ public APIdeleteCollectionAPIServiceRequest sendInitialEvents(Boolean sendInitia * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionAPIServiceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -830,7 +901,7 @@ public APIdeleteCollectionAPIServiceRequest timeoutSeconds(Integer timeoutSecond * @param body (optional) * @return APIdeleteCollectionAPIServiceRequest */ - public APIdeleteCollectionAPIServiceRequest body(V1DeleteOptions body) { + public APIdeleteCollectionAPIServiceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -841,14 +912,15 @@ public APIdeleteCollectionAPIServiceRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -856,14 +928,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -872,14 +945,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -888,14 +962,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionAPIServiceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionAPIServiceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -904,7 +979,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * delete collection of APIService * @return APIdeleteCollectionAPIServiceRequest * @http.response.details - +
+ @@ -941,7 +1017,8 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -991,7 +1068,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1006,7 +1084,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1022,7 +1101,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1038,7 +1118,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1054,7 +1135,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1063,7 +1145,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listAPIServiceCall(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 listAPIServiceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1136,8 +1218,10 @@ private okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmar "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1156,19 +1240,19 @@ private okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmar } @SuppressWarnings("rawtypes") - private okhttp3.Call listAPIServiceValidateBeforeCall(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 listAPIServiceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listAPIServiceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listAPIServiceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listAPIServiceAsync(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 listAPIServiceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1177,16 +1261,27 @@ private okhttp3.Call listAPIServiceAsync(String pretty, Boolean allowWatchBookma } public class APIlistAPIServiceRequest { + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistAPIServiceRequest() { @@ -1197,7 +1292,7 @@ private APIlistAPIServiceRequest() { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest pretty(String pretty) { + public APIlistAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1207,7 +1302,7 @@ public APIlistAPIServiceRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistAPIServiceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -1217,7 +1312,7 @@ public APIlistAPIServiceRequest allowWatchBookmarks(Boolean allowWatchBookmarks) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest _continue(String _continue) { + public APIlistAPIServiceRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1227,7 +1322,7 @@ public APIlistAPIServiceRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest fieldSelector(String fieldSelector) { + public APIlistAPIServiceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1237,7 +1332,7 @@ public APIlistAPIServiceRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest labelSelector(String labelSelector) { + public APIlistAPIServiceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1247,7 +1342,7 @@ public APIlistAPIServiceRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest limit(Integer limit) { + public APIlistAPIServiceRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1257,7 +1352,7 @@ public APIlistAPIServiceRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest resourceVersion(String resourceVersion) { + public APIlistAPIServiceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1267,7 +1362,7 @@ public APIlistAPIServiceRequest resourceVersion(String resourceVersion) { * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistAPIServiceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1277,7 +1372,7 @@ public APIlistAPIServiceRequest resourceVersionMatch(String resourceVersionMatch * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistAPIServiceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1287,7 +1382,7 @@ public APIlistAPIServiceRequest sendInitialEvents(Boolean sendInitialEvents) { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistAPIServiceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1297,7 +1392,7 @@ public APIlistAPIServiceRequest timeoutSeconds(Integer timeoutSeconds) { * @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 APIlistAPIServiceRequest */ - public APIlistAPIServiceRequest watch(Boolean watch) { + public APIlistAPIServiceRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -1308,7 +1403,8 @@ public APIlistAPIServiceRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1323,7 +1419,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIServiceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1339,7 +1436,8 @@ public V1APIServiceList execute() throws ApiException { * @return ApiResponse<V1APIServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1355,7 +1453,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1371,7 +1470,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind APIService * @return APIlistAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1380,7 +1480,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistAPIServiceRequest listAPIService() { return new APIlistAPIServiceRequest(); } - private okhttp3.Call patchAPIServiceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1429,7 +1529,8 @@ private okhttp3.Call patchAPIServiceCall(String name, V1Patch body, String prett final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1449,7 +1550,7 @@ private okhttp3.Call patchAPIServiceCall(String name, V1Patch body, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call patchAPIServiceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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 patchAPIService(Async)"); @@ -1465,13 +1566,13 @@ private okhttp3.Call patchAPIServiceValidateBeforeCall(String name, V1Patch body } - private ApiResponse patchAPIServiceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchAPIServiceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1480,15 +1581,22 @@ private okhttp3.Call patchAPIServiceAsync(String name, V1Patch body, String pret } public class APIpatchAPIServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchAPIServiceRequest(String name, V1Patch body) { + private APIpatchAPIServiceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1498,7 +1606,7 @@ private APIpatchAPIServiceRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest pretty(String pretty) { + public APIpatchAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1508,7 +1616,7 @@ public APIpatchAPIServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest dryRun(String dryRun) { + public APIpatchAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1518,7 +1626,7 @@ public APIpatchAPIServiceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest fieldManager(String fieldManager) { + public APIpatchAPIServiceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1528,7 +1636,7 @@ public APIpatchAPIServiceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest fieldValidation(String fieldValidation) { + public APIpatchAPIServiceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1538,7 +1646,7 @@ public APIpatchAPIServiceRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply 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 APIpatchAPIServiceRequest */ - public APIpatchAPIServiceRequest force(Boolean force) { + public APIpatchAPIServiceRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1549,7 +1657,8 @@ public APIpatchAPIServiceRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -1565,7 +1674,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1582,7 +1692,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1599,7 +1710,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1618,17 +1730,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchAPIServiceRequest patchAPIService(String name, V1Patch body) { + public APIpatchAPIServiceRequest patchAPIService(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchAPIServiceRequest(name, body); } - private okhttp3.Call patchAPIServiceStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1677,7 +1790,8 @@ private okhttp3.Call patchAPIServiceStatusCall(String name, V1Patch body, String final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1697,7 +1811,7 @@ private okhttp3.Call patchAPIServiceStatusCall(String name, V1Patch body, String } @SuppressWarnings("rawtypes") - private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable 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 patchAPIServiceStatus(Async)"); @@ -1713,13 +1827,13 @@ private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(String name, V1Patc } - private ApiResponse patchAPIServiceStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force) throws ApiException { + private ApiResponse patchAPIServiceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { okhttp3.Call localVarCall = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchAPIServiceStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, String fieldValidation, Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchAPIServiceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1728,15 +1842,22 @@ private okhttp3.Call patchAPIServiceStatusAsync(String name, V1Patch body, Strin } public class APIpatchAPIServiceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1Patch body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; + @jakarta.annotation.Nullable private Boolean force; - private APIpatchAPIServiceStatusRequest(String name, V1Patch body) { + private APIpatchAPIServiceStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -1746,7 +1867,7 @@ private APIpatchAPIServiceStatusRequest(String name, V1Patch body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest pretty(String pretty) { + public APIpatchAPIServiceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1756,7 +1877,7 @@ public APIpatchAPIServiceStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest dryRun(String dryRun) { + public APIpatchAPIServiceStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1766,7 +1887,7 @@ public APIpatchAPIServiceStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @return APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest fieldManager(String fieldManager) { + public APIpatchAPIServiceStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1776,7 +1897,7 @@ public APIpatchAPIServiceStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest fieldValidation(String fieldValidation) { + public APIpatchAPIServiceStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1786,7 +1907,7 @@ public APIpatchAPIServiceStatusRequest fieldValidation(String fieldValidation) { * @param force Force is going to \"force\" Apply 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 APIpatchAPIServiceStatusRequest */ - public APIpatchAPIServiceStatusRequest force(Boolean force) { + public APIpatchAPIServiceStatusRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } @@ -1797,7 +1918,8 @@ public APIpatchAPIServiceStatusRequest force(Boolean force) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1813,7 +1935,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1830,7 +1953,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1847,7 +1971,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1866,17 +1991,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIpatchAPIServiceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchAPIServiceStatusRequest patchAPIServiceStatus(String name, V1Patch body) { + public APIpatchAPIServiceStatusRequest patchAPIServiceStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { return new APIpatchAPIServiceStatusRequest(name, body); } - private okhttp3.Call readAPIServiceCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1909,7 +2035,8 @@ private okhttp3.Call readAPIServiceCall(String name, String pretty, final ApiCal final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1928,7 +2055,7 @@ private okhttp3.Call readAPIServiceCall(String name, String pretty, final ApiCal } @SuppressWarnings("rawtypes") - private okhttp3.Call readAPIServiceValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 readAPIService(Async)"); @@ -1939,13 +2066,13 @@ private okhttp3.Call readAPIServiceValidateBeforeCall(String name, String pretty } - private ApiResponse readAPIServiceWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readAPIServiceValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readAPIServiceAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readAPIServiceValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1954,10 +2081,12 @@ private okhttp3.Call readAPIServiceAsync(String name, String pretty, final ApiCa } public class APIreadAPIServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadAPIServiceRequest(String name) { + private APIreadAPIServiceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -1966,7 +2095,7 @@ private APIreadAPIServiceRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadAPIServiceRequest */ - public APIreadAPIServiceRequest pretty(String pretty) { + public APIreadAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1977,7 +2106,8 @@ public APIreadAPIServiceRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1992,7 +2122,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2008,7 +2139,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2024,7 +2156,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2041,16 +2174,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param name name of the APIService (required) * @return APIreadAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadAPIServiceRequest readAPIService(String name) { + public APIreadAPIServiceRequest readAPIService(@jakarta.annotation.Nonnull String name) { return new APIreadAPIServiceRequest(name); } - private okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2083,7 +2217,8 @@ private okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2102,7 +2237,7 @@ private okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final } @SuppressWarnings("rawtypes") - private okhttp3.Call readAPIServiceStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable 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 readAPIServiceStatus(Async)"); @@ -2113,13 +2248,13 @@ private okhttp3.Call readAPIServiceStatusValidateBeforeCall(String name, String } - private ApiResponse readAPIServiceStatusWithHttpInfo(String name, String pretty) throws ApiException { + private ApiResponse readAPIServiceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { okhttp3.Call localVarCall = readAPIServiceStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readAPIServiceStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readAPIServiceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = readAPIServiceStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2128,10 +2263,12 @@ private okhttp3.Call readAPIServiceStatusAsync(String name, String pretty, final } public class APIreadAPIServiceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nullable private String pretty; - private APIreadAPIServiceStatusRequest(String name) { + private APIreadAPIServiceStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } @@ -2140,7 +2277,7 @@ private APIreadAPIServiceStatusRequest(String name) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreadAPIServiceStatusRequest */ - public APIreadAPIServiceStatusRequest pretty(String pretty) { + public APIreadAPIServiceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2151,7 +2288,8 @@ public APIreadAPIServiceStatusRequest pretty(String pretty) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2166,7 +2304,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2182,7 +2321,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2198,7 +2338,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -2215,16 +2356,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param name name of the APIService (required) * @return APIreadAPIServiceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIreadAPIServiceStatusRequest readAPIServiceStatus(String name) { + public APIreadAPIServiceStatusRequest readAPIServiceStatus(@jakarta.annotation.Nonnull String name) { return new APIreadAPIServiceStatusRequest(name); } - private okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2269,7 +2411,8 @@ private okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, Strin final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2289,7 +2432,7 @@ private okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceAPIServiceValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 replaceAPIService(Async)"); @@ -2305,13 +2448,13 @@ private okhttp3.Call replaceAPIServiceValidateBeforeCall(String name, V1APIServi } - private ApiResponse replaceAPIServiceWithHttpInfo(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceAPIServiceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceAPIServiceAsync(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2320,14 +2463,20 @@ private okhttp3.Call replaceAPIServiceAsync(String name, V1APIService body, Stri } public class APIreplaceAPIServiceRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1APIService body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceAPIServiceRequest(String name, V1APIService body) { + private APIreplaceAPIServiceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body) { this.name = name; this.body = body; } @@ -2337,7 +2486,7 @@ private APIreplaceAPIServiceRequest(String name, V1APIService body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceAPIServiceRequest */ - public APIreplaceAPIServiceRequest pretty(String pretty) { + public APIreplaceAPIServiceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2347,7 +2496,7 @@ public APIreplaceAPIServiceRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceAPIServiceRequest */ - public APIreplaceAPIServiceRequest dryRun(String dryRun) { + public APIreplaceAPIServiceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2357,7 +2506,7 @@ public APIreplaceAPIServiceRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceAPIServiceRequest */ - public APIreplaceAPIServiceRequest fieldManager(String fieldManager) { + public APIreplaceAPIServiceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2367,7 +2516,7 @@ public APIreplaceAPIServiceRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceAPIServiceRequest */ - public APIreplaceAPIServiceRequest fieldValidation(String fieldValidation) { + public APIreplaceAPIServiceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2378,7 +2527,8 @@ public APIreplaceAPIServiceRequest fieldValidation(String fieldValidation) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2394,7 +2544,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2411,7 +2562,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2428,7 +2580,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2447,17 +2600,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceAPIServiceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceAPIServiceRequest replaceAPIService(String name, V1APIService body) { + public APIreplaceAPIServiceRequest replaceAPIService(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body) { return new APIreplaceAPIServiceRequest(name, body); } - private okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2502,7 +2656,8 @@ private okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2522,7 +2677,7 @@ private okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 replaceAPIServiceStatus(Async)"); @@ -2538,13 +2693,13 @@ private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1AP } - private ApiResponse replaceAPIServiceStatusWithHttpInfo(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse replaceAPIServiceStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceAPIServiceStatusAsync(String name, V1APIService body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceAPIServiceStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -2553,14 +2708,20 @@ private okhttp3.Call replaceAPIServiceStatusAsync(String name, V1APIService body } public class APIreplaceAPIServiceStatusRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final V1APIService body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceAPIServiceStatusRequest(String name, V1APIService body) { + private APIreplaceAPIServiceStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body) { this.name = name; this.body = body; } @@ -2570,7 +2731,7 @@ private APIreplaceAPIServiceStatusRequest(String name, V1APIService body) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIreplaceAPIServiceStatusRequest */ - public APIreplaceAPIServiceStatusRequest pretty(String pretty) { + public APIreplaceAPIServiceStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2580,7 +2741,7 @@ public APIreplaceAPIServiceStatusRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIreplaceAPIServiceStatusRequest */ - public APIreplaceAPIServiceStatusRequest dryRun(String dryRun) { + public APIreplaceAPIServiceStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2590,7 +2751,7 @@ public APIreplaceAPIServiceStatusRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIreplaceAPIServiceStatusRequest */ - public APIreplaceAPIServiceStatusRequest fieldManager(String fieldManager) { + public APIreplaceAPIServiceStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2600,7 +2761,7 @@ public APIreplaceAPIServiceStatusRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIreplaceAPIServiceStatusRequest */ - public APIreplaceAPIServiceStatusRequest fieldValidation(String fieldValidation) { + public APIreplaceAPIServiceStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -2611,7 +2772,8 @@ public APIreplaceAPIServiceStatusRequest fieldValidation(String fieldValidation) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -2627,7 +2789,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2644,7 +2807,8 @@ public V1APIService execute() throws ApiException { * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2661,7 +2825,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -2680,14 +2845,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIreplaceAPIServiceStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreplaceAPIServiceStatusRequest replaceAPIServiceStatus(String name, V1APIService body) { + public APIreplaceAPIServiceStatusRequest replaceAPIServiceStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1APIService body) { return new APIreplaceAPIServiceStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java index 1362148023..fbdc31040c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApisApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -149,7 +149,8 @@ private APIgetAPIVersionsRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroupList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroupList execute() throws ApiException { * @return ApiResponse<V1APIGroupList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th * get available API versions * @return APIgetAPIVersionsRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java index 76609a3477..8efc324f2b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsApi.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -149,7 +149,8 @@ private APIgetAPIGroupRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -164,7 +165,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -180,7 +182,8 @@ public V1APIGroup execute() throws ApiException { * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -196,7 +199,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -212,7 +216,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws * get information of a group * @return APIgetAPIGroupRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java index 0eb9868d26..620131b7e1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java @@ -1,5 +1,5 @@ /* -Copyright 2024 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -85,7 +85,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -130,7 +130,8 @@ private okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1 final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -150,7 +151,7 @@ private okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1 } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 createNamespacedControllerRevision(Async)"); @@ -166,13 +167,13 @@ private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String } - private ApiResponse createNamespacedControllerRevisionWithHttpInfo(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedControllerRevisionAsync(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -181,14 +182,20 @@ private okhttp3.Call createNamespacedControllerRevisionAsync(String namespace, V } public class APIcreateNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ControllerRevision body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedControllerRevisionRequest(String namespace, V1ControllerRevision body) { + private APIcreateNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body) { this.namespace = namespace; this.body = body; } @@ -198,7 +205,7 @@ private APIcreateNamespacedControllerRevisionRequest(String namespace, V1Control * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedControllerRevisionRequest */ - public APIcreateNamespacedControllerRevisionRequest pretty(String pretty) { + public APIcreateNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -208,7 +215,7 @@ public APIcreateNamespacedControllerRevisionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedControllerRevisionRequest */ - public APIcreateNamespacedControllerRevisionRequest dryRun(String dryRun) { + public APIcreateNamespacedControllerRevisionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -218,7 +225,7 @@ public APIcreateNamespacedControllerRevisionRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedControllerRevisionRequest */ - public APIcreateNamespacedControllerRevisionRequest fieldManager(String fieldManager) { + public APIcreateNamespacedControllerRevisionRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -228,7 +235,7 @@ public APIcreateNamespacedControllerRevisionRequest fieldManager(String fieldMan * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedControllerRevisionRequest */ - public APIcreateNamespacedControllerRevisionRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedControllerRevisionRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -239,7 +246,8 @@ public APIcreateNamespacedControllerRevisionRequest fieldValidation(String field * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -256,7 +264,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -274,7 +283,8 @@ public V1ControllerRevision execute() throws ApiException { * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -292,7 +302,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -312,7 +323,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callba * @param body (required) * @return APIcreateNamespacedControllerRevisionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -320,10 +332,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedControllerRevisionRequest createNamespacedControllerRevision(String namespace, V1ControllerRevision body) { + public APIcreateNamespacedControllerRevisionRequest createNamespacedControllerRevision(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ControllerRevision body) { return new APIcreateNamespacedControllerRevisionRequest(namespace, body); } - private okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -368,7 +380,8 @@ private okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -388,7 +401,7 @@ private okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 createNamespacedDaemonSet(Async)"); @@ -404,13 +417,13 @@ private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespac } - private ApiResponse createNamespacedDaemonSetWithHttpInfo(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedDaemonSetAsync(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -419,14 +432,20 @@ private okhttp3.Call createNamespacedDaemonSetAsync(String namespace, V1DaemonSe } public class APIcreateNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1DaemonSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedDaemonSetRequest(String namespace, V1DaemonSet body) { + private APIcreateNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body) { this.namespace = namespace; this.body = body; } @@ -436,7 +455,7 @@ private APIcreateNamespacedDaemonSetRequest(String namespace, V1DaemonSet body) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedDaemonSetRequest */ - public APIcreateNamespacedDaemonSetRequest pretty(String pretty) { + public APIcreateNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -446,7 +465,7 @@ public APIcreateNamespacedDaemonSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedDaemonSetRequest */ - public APIcreateNamespacedDaemonSetRequest dryRun(String dryRun) { + public APIcreateNamespacedDaemonSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -456,7 +475,7 @@ public APIcreateNamespacedDaemonSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedDaemonSetRequest */ - public APIcreateNamespacedDaemonSetRequest fieldManager(String fieldManager) { + public APIcreateNamespacedDaemonSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -466,7 +485,7 @@ public APIcreateNamespacedDaemonSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedDaemonSetRequest */ - public APIcreateNamespacedDaemonSetRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedDaemonSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -477,7 +496,8 @@ public APIcreateNamespacedDaemonSetRequest fieldValidation(String fieldValidatio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -494,7 +514,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -512,7 +533,8 @@ public V1DaemonSet execute() throws ApiException { * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -530,7 +552,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -550,7 +573,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw * @param body (required) * @return APIcreateNamespacedDaemonSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -558,10 +582,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedDaemonSetRequest createNamespacedDaemonSet(String namespace, V1DaemonSet body) { + public APIcreateNamespacedDaemonSetRequest createNamespacedDaemonSet(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1DaemonSet body) { return new APIcreateNamespacedDaemonSetRequest(namespace, body); } - private okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -606,7 +630,8 @@ private okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deployme final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -626,7 +651,7 @@ private okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deployme } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 createNamespacedDeployment(Async)"); @@ -642,13 +667,13 @@ private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespa } - private ApiResponse createNamespacedDeploymentWithHttpInfo(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedDeploymentAsync(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -657,14 +682,20 @@ private okhttp3.Call createNamespacedDeploymentAsync(String namespace, V1Deploym } public class APIcreateNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1Deployment body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedDeploymentRequest(String namespace, V1Deployment body) { + private APIcreateNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body) { this.namespace = namespace; this.body = body; } @@ -674,7 +705,7 @@ private APIcreateNamespacedDeploymentRequest(String namespace, V1Deployment body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedDeploymentRequest */ - public APIcreateNamespacedDeploymentRequest pretty(String pretty) { + public APIcreateNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -684,7 +715,7 @@ public APIcreateNamespacedDeploymentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedDeploymentRequest */ - public APIcreateNamespacedDeploymentRequest dryRun(String dryRun) { + public APIcreateNamespacedDeploymentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -694,7 +725,7 @@ public APIcreateNamespacedDeploymentRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedDeploymentRequest */ - public APIcreateNamespacedDeploymentRequest fieldManager(String fieldManager) { + public APIcreateNamespacedDeploymentRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -704,7 +735,7 @@ public APIcreateNamespacedDeploymentRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedDeploymentRequest */ - public APIcreateNamespacedDeploymentRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedDeploymentRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -715,7 +746,8 @@ public APIcreateNamespacedDeploymentRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -732,7 +764,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -750,7 +783,8 @@ public V1Deployment execute() throws ApiException { * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -768,7 +802,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -788,7 +823,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIcreateNamespacedDeploymentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -796,10 +832,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedDeploymentRequest createNamespacedDeployment(String namespace, V1Deployment body) { + public APIcreateNamespacedDeploymentRequest createNamespacedDeployment(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Deployment body) { return new APIcreateNamespacedDeploymentRequest(namespace, body); } - private okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -844,7 +880,8 @@ private okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaS final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -864,7 +901,7 @@ private okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaS } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 createNamespacedReplicaSet(Async)"); @@ -880,13 +917,13 @@ private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespa } - private ApiResponse createNamespacedReplicaSetWithHttpInfo(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedReplicaSetAsync(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -895,14 +932,20 @@ private okhttp3.Call createNamespacedReplicaSetAsync(String namespace, V1Replica } public class APIcreateNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1ReplicaSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedReplicaSetRequest(String namespace, V1ReplicaSet body) { + private APIcreateNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body) { this.namespace = namespace; this.body = body; } @@ -912,7 +955,7 @@ private APIcreateNamespacedReplicaSetRequest(String namespace, V1ReplicaSet body * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedReplicaSetRequest */ - public APIcreateNamespacedReplicaSetRequest pretty(String pretty) { + public APIcreateNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -922,7 +965,7 @@ public APIcreateNamespacedReplicaSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedReplicaSetRequest */ - public APIcreateNamespacedReplicaSetRequest dryRun(String dryRun) { + public APIcreateNamespacedReplicaSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -932,7 +975,7 @@ public APIcreateNamespacedReplicaSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedReplicaSetRequest */ - public APIcreateNamespacedReplicaSetRequest fieldManager(String fieldManager) { + public APIcreateNamespacedReplicaSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -942,7 +985,7 @@ public APIcreateNamespacedReplicaSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedReplicaSetRequest */ - public APIcreateNamespacedReplicaSetRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedReplicaSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -953,7 +996,8 @@ public APIcreateNamespacedReplicaSetRequest fieldValidation(String fieldValidati * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -970,7 +1014,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -988,7 +1033,8 @@ public V1ReplicaSet execute() throws ApiException { * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1006,7 +1052,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1026,7 +1073,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro * @param body (required) * @return APIcreateNamespacedReplicaSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1034,10 +1082,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedReplicaSetRequest createNamespacedReplicaSet(String namespace, V1ReplicaSet body) { + public APIcreateNamespacedReplicaSetRequest createNamespacedReplicaSet(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1ReplicaSet body) { return new APIcreateNamespacedReplicaSetRequest(namespace, body); } - private okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1082,7 +1130,8 @@ private okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1Statefu final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1102,7 +1151,7 @@ private okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1Statefu } @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable 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 createNamespacedStatefulSet(Async)"); @@ -1118,13 +1167,13 @@ private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namesp } - private ApiResponse createNamespacedStatefulSetWithHttpInfo(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation) throws ApiException { + private ApiResponse createNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -1133,14 +1182,20 @@ private okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1Statef } public class APIcreateNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nonnull private final V1StatefulSet body; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldManager; + @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateNamespacedStatefulSetRequest(String namespace, V1StatefulSet body) { + private APIcreateNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body) { this.namespace = namespace; this.body = body; } @@ -1150,7 +1205,7 @@ private APIcreateNamespacedStatefulSetRequest(String namespace, V1StatefulSet bo * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIcreateNamespacedStatefulSetRequest */ - public APIcreateNamespacedStatefulSetRequest pretty(String pretty) { + public APIcreateNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1160,7 +1215,7 @@ public APIcreateNamespacedStatefulSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIcreateNamespacedStatefulSetRequest */ - public APIcreateNamespacedStatefulSetRequest dryRun(String dryRun) { + public APIcreateNamespacedStatefulSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1170,7 +1225,7 @@ public APIcreateNamespacedStatefulSetRequest dryRun(String dryRun) { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return APIcreateNamespacedStatefulSetRequest */ - public APIcreateNamespacedStatefulSetRequest fieldManager(String fieldManager) { + public APIcreateNamespacedStatefulSetRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -1180,7 +1235,7 @@ public APIcreateNamespacedStatefulSetRequest fieldManager(String fieldManager) { * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) * @return APIcreateNamespacedStatefulSetRequest */ - public APIcreateNamespacedStatefulSetRequest fieldValidation(String fieldValidation) { + public APIcreateNamespacedStatefulSetRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -1191,7 +1246,8 @@ public APIcreateNamespacedStatefulSetRequest fieldValidation(String fieldValidat * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -1208,7 +1264,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1226,7 +1283,8 @@ public V1StatefulSet execute() throws ApiException { * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1244,7 +1302,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1264,7 +1323,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr * @param body (required) * @return APIcreateNamespacedStatefulSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
+
+ @@ -1272,10 +1332,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIcreateNamespacedStatefulSetRequest createNamespacedStatefulSet(String namespace, V1StatefulSet body) { + public APIcreateNamespacedStatefulSetRequest createNamespacedStatefulSet(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body) { return new APIcreateNamespacedStatefulSetRequest(namespace, body); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1321,6 +1381,10 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(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)); } @@ -1356,7 +1420,8 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String nam final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1376,49 +1441,66 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String nam } @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(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 deleteCollectionNamespacedControllerRevision(Async)"); } - return deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } public class APIdeleteCollectionNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedControllerRevisionRequest(String namespace) { + private APIdeleteCollectionNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1427,7 +1509,7 @@ private APIdeleteCollectionNamespacedControllerRevisionRequest(String namespace) * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1437,7 +1519,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest pretty(String pret * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedControllerRevisionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1447,7 +1529,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest _continue(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) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedControllerRevisionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1457,7 +1539,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest dryRun(String dryR * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedControllerRevisionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1467,17 +1549,27 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest fieldSelector(Stri * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedControllerRevisionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedControllerRevisionRequest + */ + public APIdeleteCollectionNamespacedControllerRevisionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedControllerRevisionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1487,7 +1579,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest labelSelector(Stri * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedControllerRevisionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1497,7 +1589,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest limit(Integer limi * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedControllerRevisionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1507,7 +1599,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest orphanDependents(B * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedControllerRevisionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1517,7 +1609,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest propagationPolicy( * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1527,7 +1619,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersion(St * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1537,7 +1629,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest resourceVersionMat * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedControllerRevisionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1547,7 +1639,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest sendInitialEvents( * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedControllerRevisionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1557,7 +1649,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest timeoutSeconds(Int * @param body (optional) * @return APIdeleteCollectionNamespacedControllerRevisionRequest */ - public APIdeleteCollectionNamespacedControllerRevisionRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedControllerRevisionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1568,14 +1660,15 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest body(V1DeleteOptio * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -1583,14 +1676,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1599,14 +1693,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -1615,14 +1710,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedControllerRevisionAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedControllerRevisionAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -1632,16 +1728,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedControllerRevisionRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedControllerRevisionRequest deleteCollectionNamespacedControllerRevision(String namespace) { + public APIdeleteCollectionNamespacedControllerRevisionRequest deleteCollectionNamespacedControllerRevision(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedControllerRevisionRequest(namespace); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1687,6 +1784,10 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(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)); } @@ -1722,7 +1823,8 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, S final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1742,49 +1844,66 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, S } @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(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 deleteCollectionNamespacedDaemonSet(Async)"); } - return deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } public class APIdeleteCollectionNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedDaemonSetRequest(String namespace) { + private APIdeleteCollectionNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -1793,7 +1912,7 @@ private APIdeleteCollectionNamespacedDaemonSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1803,7 +1922,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedDaemonSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1813,7 +1932,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest _continue(String _continue) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedDaemonSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1823,7 +1942,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedDaemonSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1833,17 +1952,27 @@ public APIdeleteCollectionNamespacedDaemonSetRequest fieldSelector(String fieldS * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedDaemonSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedDaemonSetRequest + */ + public APIdeleteCollectionNamespacedDaemonSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedDaemonSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1853,7 +1982,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest labelSelector(String labelS * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedDaemonSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1863,7 +1992,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedDaemonSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1873,7 +2002,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest orphanDependents(Boolean or * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedDaemonSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1883,7 +2012,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest propagationPolicy(String pr * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1893,7 +2022,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersion(String reso * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1903,7 +2032,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest resourceVersionMatch(String * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedDaemonSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -1913,7 +2042,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest sendInitialEvents(Boolean s * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedDaemonSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -1923,7 +2052,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest timeoutSeconds(Integer time * @param body (optional) * @return APIdeleteCollectionNamespacedDaemonSetRequest */ - public APIdeleteCollectionNamespacedDaemonSetRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedDaemonSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -1934,14 +2063,15 @@ public APIdeleteCollectionNamespacedDaemonSetRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -1949,14 +2079,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -1965,14 +2096,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -1981,14 +2113,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedDaemonSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDaemonSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -1998,16 +2131,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedDaemonSetRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedDaemonSetRequest deleteCollectionNamespacedDaemonSet(String namespace) { + public APIdeleteCollectionNamespacedDaemonSetRequest deleteCollectionNamespacedDaemonSet(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedDaemonSetRequest(namespace); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2053,6 +2187,10 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentCall(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)); } @@ -2088,7 +2226,8 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2108,49 +2247,66 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, } @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(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 deleteCollectionNamespacedDeployment(Async)"); } - return deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } public class APIdeleteCollectionNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedDeploymentRequest(String namespace) { + private APIdeleteCollectionNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2159,7 +2315,7 @@ private APIdeleteCollectionNamespacedDeploymentRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2169,7 +2325,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedDeploymentRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2179,7 +2335,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest _continue(String _continue * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedDeploymentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2189,7 +2345,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedDeploymentRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2199,17 +2355,27 @@ public APIdeleteCollectionNamespacedDeploymentRequest fieldSelector(String field * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedDeploymentRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedDeploymentRequest + */ + public APIdeleteCollectionNamespacedDeploymentRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedDeploymentRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2219,7 +2385,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest labelSelector(String label * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedDeploymentRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2229,7 +2395,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedDeploymentRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2239,7 +2405,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest orphanDependents(Boolean o * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedDeploymentRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2249,7 +2415,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest propagationPolicy(String p * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedDeploymentRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2259,7 +2425,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest resourceVersion(String res * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedDeploymentRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2269,7 +2435,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest resourceVersionMatch(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) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedDeploymentRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2279,7 +2445,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedDeploymentRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2289,7 +2455,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest timeoutSeconds(Integer tim * @param body (optional) * @return APIdeleteCollectionNamespacedDeploymentRequest */ - public APIdeleteCollectionNamespacedDeploymentRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedDeploymentRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2300,14 +2466,15 @@ public APIdeleteCollectionNamespacedDeploymentRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -2315,14 +2482,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -2331,14 +2499,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -2347,14 +2516,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedDeploymentAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDeploymentAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -2364,16 +2534,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedDeploymentRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedDeploymentRequest deleteCollectionNamespacedDeployment(String namespace) { + public APIdeleteCollectionNamespacedDeploymentRequest deleteCollectionNamespacedDeployment(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedDeploymentRequest(namespace); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2419,6 +2590,10 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(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)); } @@ -2454,7 +2629,8 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2474,49 +2650,66 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, } @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(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 deleteCollectionNamespacedReplicaSet(Async)"); } - return deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } public class APIdeleteCollectionNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedReplicaSetRequest(String namespace) { + private APIdeleteCollectionNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2525,7 +2718,7 @@ private APIdeleteCollectionNamespacedReplicaSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2535,7 +2728,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedReplicaSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2545,7 +2738,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest _continue(String _continue * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedReplicaSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2555,7 +2748,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedReplicaSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2565,17 +2758,27 @@ public APIdeleteCollectionNamespacedReplicaSetRequest fieldSelector(String field * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedReplicaSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedReplicaSetRequest + */ + public APIdeleteCollectionNamespacedReplicaSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedReplicaSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2585,7 +2788,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest labelSelector(String label * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedReplicaSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2595,7 +2798,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedReplicaSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2605,7 +2808,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest orphanDependents(Boolean o * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedReplicaSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2615,7 +2818,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest propagationPolicy(String p * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2625,7 +2828,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersion(String res * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2635,7 +2838,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest resourceVersionMatch(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) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedReplicaSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -2645,7 +2848,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedReplicaSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2655,7 +2858,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest timeoutSeconds(Integer tim * @param body (optional) * @return APIdeleteCollectionNamespacedReplicaSetRequest */ - public APIdeleteCollectionNamespacedReplicaSetRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedReplicaSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -2666,14 +2869,15 @@ public APIdeleteCollectionNamespacedReplicaSetRequest body(V1DeleteOptions body) * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -2681,14 +2885,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -2697,14 +2902,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -2713,14 +2919,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedReplicaSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedReplicaSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -2730,16 +2937,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedReplicaSetRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedReplicaSetRequest deleteCollectionNamespacedReplicaSet(String namespace) { + public APIdeleteCollectionNamespacedReplicaSetRequest deleteCollectionNamespacedReplicaSet(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedReplicaSetRequest(namespace); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2785,6 +2993,10 @@ private 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)); } @@ -2820,7 +3032,8 @@ private okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2840,49 +3053,66 @@ private 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(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 deleteCollectionNamespacedStatefulSet(Async)"); } - return deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } - private 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); + private ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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); } - private 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 { + private okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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; } public class APIdeleteCollectionNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedStatefulSetRequest(String namespace) { + private APIdeleteCollectionNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -2891,7 +3121,7 @@ private APIdeleteCollectionNamespacedStatefulSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest pretty(String pretty) { + public APIdeleteCollectionNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2901,7 +3131,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest pretty(String pretty) { * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest _continue(String _continue) { + public APIdeleteCollectionNamespacedStatefulSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2911,7 +3141,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest _continue(String _continu * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest dryRun(String dryRun) { + public APIdeleteCollectionNamespacedStatefulSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2921,7 +3151,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest dryRun(String dryRun) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest fieldSelector(String fieldSelector) { + public APIdeleteCollectionNamespacedStatefulSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2931,17 +3161,27 @@ public APIdeleteCollectionNamespacedStatefulSetRequest fieldSelector(String fiel * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedStatefulSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedStatefulSetRequest + */ + public APIdeleteCollectionNamespacedStatefulSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest labelSelector(String labelSelector) { + public APIdeleteCollectionNamespacedStatefulSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2951,7 +3191,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest labelSelector(String labe * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest limit(Integer limit) { + public APIdeleteCollectionNamespacedStatefulSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2961,7 +3201,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest limit(Integer limit) { * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteCollectionNamespacedStatefulSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2971,7 +3211,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest orphanDependents(Boolean * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteCollectionNamespacedStatefulSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2981,7 +3221,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest propagationPolicy(String * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersion(String resourceVersion) { + public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2991,7 +3231,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersion(String re * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -3001,7 +3241,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest resourceVersionMatch(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) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedStatefulSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -3011,7 +3251,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest sendInitialEvents(Boolean * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedStatefulSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -3021,7 +3261,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest timeoutSeconds(Integer ti * @param body (optional) * @return APIdeleteCollectionNamespacedStatefulSetRequest */ - public APIdeleteCollectionNamespacedStatefulSetRequest body(V1DeleteOptions body) { + public APIdeleteCollectionNamespacedStatefulSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3032,14 +3272,15 @@ public APIdeleteCollectionNamespacedStatefulSetRequest body(V1DeleteOptions body * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } /** @@ -3047,14 +3288,15 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); return localVarResp.getData(); } @@ -3063,14 +3305,15 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); } /** @@ -3079,14 +3322,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedStatefulSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedStatefulSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); } } @@ -3096,16 +3340,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteCollectionNamespacedStatefulSetRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedStatefulSetRequest deleteCollectionNamespacedStatefulSet(String namespace) { + public APIdeleteCollectionNamespacedStatefulSetRequest deleteCollectionNamespacedStatefulSet(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedStatefulSetRequest(namespace); } - private okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3144,6 +3389,10 @@ private okhttp3.Call deleteNamespacedControllerRevisionCall(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)); } @@ -3155,7 +3404,8 @@ private okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3175,7 +3425,7 @@ private okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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 deleteNamespacedControllerRevision(Async)"); @@ -3186,36 +3436,46 @@ private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedControllerRevision(Async)"); } - return deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } public class APIdeleteNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedControllerRevisionRequest(String name, String namespace) { + private APIdeleteNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3225,7 +3485,7 @@ private APIdeleteNamespacedControllerRevisionRequest(String name, String namespa * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest pretty(String pretty) { + public APIdeleteNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3235,7 +3495,7 @@ public APIdeleteNamespacedControllerRevisionRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest dryRun(String dryRun) { + public APIdeleteNamespacedControllerRevisionRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3245,17 +3505,27 @@ public APIdeleteNamespacedControllerRevisionRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedControllerRevisionRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedControllerRevisionRequest + */ + public APIdeleteNamespacedControllerRevisionRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedControllerRevisionRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3265,7 +3535,7 @@ public APIdeleteNamespacedControllerRevisionRequest orphanDependents(Boolean orp * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedControllerRevisionRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3275,7 +3545,7 @@ public APIdeleteNamespacedControllerRevisionRequest propagationPolicy(String pro * @param body (optional) * @return APIdeleteNamespacedControllerRevisionRequest */ - public APIdeleteNamespacedControllerRevisionRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedControllerRevisionRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3286,7 +3556,8 @@ public APIdeleteNamespacedControllerRevisionRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3294,7 +3565,7 @@ public APIdeleteNamespacedControllerRevisionRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -3302,7 +3573,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3310,7 +3582,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -3319,7 +3591,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3327,7 +3600,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -3336,7 +3609,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -3344,7 +3618,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedControllerRevisionAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedControllerRevisionAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -3355,17 +3629,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedControllerRevisionRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedControllerRevisionRequest deleteNamespacedControllerRevision(String name, String namespace) { + public APIdeleteNamespacedControllerRevisionRequest deleteNamespacedControllerRevision(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedControllerRevisionRequest(name, namespace); } - private okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3404,6 +3679,10 @@ private 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)); } @@ -3415,7 +3694,8 @@ private okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3435,7 +3715,7 @@ private 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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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 deleteNamespacedDaemonSet(Async)"); @@ -3446,36 +3726,46 @@ private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDaemonSet(Async)"); } - return deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } public class APIdeleteNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedDaemonSetRequest(String name, String namespace) { + private APIdeleteNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3485,7 +3775,7 @@ private APIdeleteNamespacedDaemonSetRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest pretty(String pretty) { + public APIdeleteNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3495,7 +3785,7 @@ public APIdeleteNamespacedDaemonSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest dryRun(String dryRun) { + public APIdeleteNamespacedDaemonSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3505,17 +3795,27 @@ public APIdeleteNamespacedDaemonSetRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedDaemonSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedDaemonSetRequest + */ + public APIdeleteNamespacedDaemonSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedDaemonSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3525,7 +3825,7 @@ public APIdeleteNamespacedDaemonSetRequest orphanDependents(Boolean orphanDepend * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedDaemonSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3535,7 +3835,7 @@ public APIdeleteNamespacedDaemonSetRequest propagationPolicy(String propagationP * @param body (optional) * @return APIdeleteNamespacedDaemonSetRequest */ - public APIdeleteNamespacedDaemonSetRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedDaemonSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3546,7 +3846,8 @@ public APIdeleteNamespacedDaemonSetRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3554,7 +3855,7 @@ public APIdeleteNamespacedDaemonSetRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -3562,7 +3863,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3570,7 +3872,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -3579,7 +3881,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3587,7 +3890,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -3596,7 +3899,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -3604,7 +3908,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedDaemonSetAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedDaemonSetAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -3615,17 +3919,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedDaemonSetRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedDaemonSetRequest deleteNamespacedDaemonSet(String name, String namespace) { + public APIdeleteNamespacedDaemonSetRequest deleteNamespacedDaemonSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedDaemonSetRequest(name, namespace); } - private okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3664,6 +3969,10 @@ private okhttp3.Call deleteNamespacedDeploymentCall(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)); } @@ -3675,7 +3984,8 @@ private okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespac final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3695,7 +4005,7 @@ private okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespac } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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 deleteNamespacedDeployment(Async)"); @@ -3706,36 +4016,46 @@ private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDeployment(Async)"); } - return deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } public class APIdeleteNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedDeploymentRequest(String name, String namespace) { + private APIdeleteNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -3745,7 +4065,7 @@ private APIdeleteNamespacedDeploymentRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest pretty(String pretty) { + public APIdeleteNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3755,7 +4075,7 @@ public APIdeleteNamespacedDeploymentRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest dryRun(String dryRun) { + public APIdeleteNamespacedDeploymentRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3765,17 +4085,27 @@ public APIdeleteNamespacedDeploymentRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedDeploymentRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedDeploymentRequest + */ + public APIdeleteNamespacedDeploymentRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedDeploymentRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3785,7 +4115,7 @@ public APIdeleteNamespacedDeploymentRequest orphanDependents(Boolean orphanDepen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedDeploymentRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3795,7 +4125,7 @@ public APIdeleteNamespacedDeploymentRequest propagationPolicy(String propagation * @param body (optional) * @return APIdeleteNamespacedDeploymentRequest */ - public APIdeleteNamespacedDeploymentRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedDeploymentRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -3806,7 +4136,8 @@ public APIdeleteNamespacedDeploymentRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -3814,7 +4145,7 @@ public APIdeleteNamespacedDeploymentRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -3822,7 +4153,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3830,7 +4162,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -3839,7 +4171,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -3847,7 +4180,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -3856,7 +4189,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -3864,7 +4198,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedDeploymentAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedDeploymentAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -3875,17 +4209,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedDeploymentRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedDeploymentRequest deleteNamespacedDeployment(String name, String namespace) { + public APIdeleteNamespacedDeploymentRequest deleteNamespacedDeployment(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedDeploymentRequest(name, namespace); } - private okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3924,6 +4259,10 @@ private okhttp3.Call deleteNamespacedReplicaSetCall(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)); } @@ -3935,7 +4274,8 @@ private okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespac final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3955,7 +4295,7 @@ private okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespac } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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 deleteNamespacedReplicaSet(Async)"); @@ -3966,36 +4306,46 @@ private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedReplicaSet(Async)"); } - return deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } public class APIdeleteNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedReplicaSetRequest(String name, String namespace) { + private APIdeleteNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -4005,7 +4355,7 @@ private APIdeleteNamespacedReplicaSetRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest pretty(String pretty) { + public APIdeleteNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4015,7 +4365,7 @@ public APIdeleteNamespacedReplicaSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest dryRun(String dryRun) { + public APIdeleteNamespacedReplicaSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4025,17 +4375,27 @@ public APIdeleteNamespacedReplicaSetRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedReplicaSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedReplicaSetRequest + */ + public APIdeleteNamespacedReplicaSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedReplicaSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -4045,7 +4405,7 @@ public APIdeleteNamespacedReplicaSetRequest orphanDependents(Boolean orphanDepen * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedReplicaSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -4055,7 +4415,7 @@ public APIdeleteNamespacedReplicaSetRequest propagationPolicy(String propagation * @param body (optional) * @return APIdeleteNamespacedReplicaSetRequest */ - public APIdeleteNamespacedReplicaSetRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedReplicaSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -4066,7 +4426,8 @@ public APIdeleteNamespacedReplicaSetRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4074,7 +4435,7 @@ public APIdeleteNamespacedReplicaSetRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -4082,7 +4443,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -4090,7 +4452,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -4099,7 +4461,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -4107,7 +4470,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -4116,7 +4479,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -4124,7 +4488,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedReplicaSetAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedReplicaSetAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -4135,17 +4499,18 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedReplicaSetRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedReplicaSetRequest deleteNamespacedReplicaSet(String name, String namespace) { + public APIdeleteNamespacedReplicaSetRequest deleteNamespacedReplicaSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedReplicaSetRequest(name, namespace); } - private okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4184,6 +4549,10 @@ private okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespa localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -4195,7 +4564,8 @@ private okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespa final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4215,7 +4585,7 @@ private okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespa } @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(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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 deleteNamespacedStatefulSet(Async)"); @@ -4226,36 +4596,46 @@ private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedStatefulSet(Async)"); } - return deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private 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); + private ApiResponse deleteNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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); } - private okhttp3.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable 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; } public class APIdeleteNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String dryRun; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable private Boolean orphanDependents; + @jakarta.annotation.Nullable private String propagationPolicy; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedStatefulSetRequest(String name, String namespace) { + private APIdeleteNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -4265,7 +4645,7 @@ private APIdeleteNamespacedStatefulSetRequest(String name, String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest pretty(String pretty) { + public APIdeleteNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4275,7 +4655,7 @@ public APIdeleteNamespacedStatefulSetRequest pretty(String pretty) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest dryRun(String dryRun) { + public APIdeleteNamespacedStatefulSetRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -4285,17 +4665,27 @@ public APIdeleteNamespacedStatefulSetRequest dryRun(String dryRun) { * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest gracePeriodSeconds(Integer gracePeriodSeconds) { + public APIdeleteNamespacedStatefulSetRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedStatefulSetRequest + */ + public APIdeleteNamespacedStatefulSetRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest orphanDependents(Boolean orphanDependents) { + public APIdeleteNamespacedStatefulSetRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -4305,7 +4695,7 @@ public APIdeleteNamespacedStatefulSetRequest orphanDependents(Boolean orphanDepe * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest propagationPolicy(String propagationPolicy) { + public APIdeleteNamespacedStatefulSetRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -4315,7 +4705,7 @@ public APIdeleteNamespacedStatefulSetRequest propagationPolicy(String propagatio * @param body (optional) * @return APIdeleteNamespacedStatefulSetRequest */ - public APIdeleteNamespacedStatefulSetRequest body(V1DeleteOptions body) { + public APIdeleteNamespacedStatefulSetRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } @@ -4326,7 +4716,8 @@ public APIdeleteNamespacedStatefulSetRequest body(V1DeleteOptions body) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4334,7 +4725,7 @@ public APIdeleteNamespacedStatefulSetRequest body(V1DeleteOptions body) {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** @@ -4342,7 +4733,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -4350,7 +4742,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + ApiResponse localVarResp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } @@ -4359,7 +4751,8 @@ public V1Status execute() throws ApiException { * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
+ @@ -4367,7 +4760,7 @@ public V1Status execute() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** @@ -4376,7 +4769,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - +
+ @@ -4384,7 +4778,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException {
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedStatefulSetAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedStatefulSetAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } @@ -4395,14 +4789,15 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIdeleteNamespacedStatefulSetRequest * @http.response.details - +
+
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteNamespacedStatefulSetRequest deleteNamespacedStatefulSet(String name, String namespace) { + public APIdeleteNamespacedStatefulSetRequest deleteNamespacedStatefulSet(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { return new APIdeleteNamespacedStatefulSetRequest(name, namespace); } private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { @@ -4433,7 +4828,8 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api final String[] localVarAccepts = { "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4483,7 +4879,8 @@ private APIgetAPIResourcesRequest() { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -4498,7 +4895,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4514,7 +4912,8 @@ public V1APIResourceList execute() throws ApiException { * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4530,7 +4929,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4546,7 +4946,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * get available resources * @return APIgetAPIResourcesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4555,7 +4956,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listControllerRevisionForAllNamespacesCall(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 listControllerRevisionForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4628,8 +5029,10 @@ private okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWat "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4648,19 +5051,19 @@ private okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWat } @SuppressWarnings("rawtypes") - private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(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 listControllerRevisionForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listControllerRevisionForAllNamespacesAsync(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 listControllerRevisionForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4669,16 +5072,27 @@ private okhttp3.Call listControllerRevisionForAllNamespacesAsync(Boolean allowWa } public class APIlistControllerRevisionForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistControllerRevisionForAllNamespacesRequest() { @@ -4689,7 +5103,7 @@ private APIlistControllerRevisionForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistControllerRevisionForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4699,7 +5113,7 @@ public APIlistControllerRevisionForAllNamespacesRequest allowWatchBookmarks(Bool * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest _continue(String _continue) { + public APIlistControllerRevisionForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4709,7 +5123,7 @@ public APIlistControllerRevisionForAllNamespacesRequest _continue(String _contin * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistControllerRevisionForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4719,7 +5133,7 @@ public APIlistControllerRevisionForAllNamespacesRequest fieldSelector(String fie * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistControllerRevisionForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4729,7 +5143,7 @@ public APIlistControllerRevisionForAllNamespacesRequest labelSelector(String lab * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest limit(Integer limit) { + public APIlistControllerRevisionForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4739,7 +5153,7 @@ public APIlistControllerRevisionForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest pretty(String pretty) { + public APIlistControllerRevisionForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4749,7 +5163,7 @@ public APIlistControllerRevisionForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistControllerRevisionForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4759,7 +5173,7 @@ public APIlistControllerRevisionForAllNamespacesRequest resourceVersion(String r * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistControllerRevisionForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4769,7 +5183,7 @@ public APIlistControllerRevisionForAllNamespacesRequest resourceVersionMatch(Str * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistControllerRevisionForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -4779,7 +5193,7 @@ public APIlistControllerRevisionForAllNamespacesRequest sendInitialEvents(Boolea * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistControllerRevisionForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4789,7 +5203,7 @@ public APIlistControllerRevisionForAllNamespacesRequest timeoutSeconds(Integer t * @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 APIlistControllerRevisionForAllNamespacesRequest */ - public APIlistControllerRevisionForAllNamespacesRequest watch(Boolean watch) { + public APIlistControllerRevisionForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -4800,7 +5214,8 @@ public APIlistControllerRevisionForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4815,7 +5230,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4831,7 +5247,8 @@ public V1ControllerRevisionList execute() throws ApiException { * @return ApiResponse<V1ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4847,7 +5264,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4863,7 +5281,8 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * list or watch objects of kind ControllerRevision * @return APIlistControllerRevisionForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -4872,7 +5291,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistControllerRevisionForAllNamespacesRequest listControllerRevisionForAllNamespaces() { return new APIlistControllerRevisionForAllNamespacesRequest(); } - private okhttp3.Call listDaemonSetForAllNamespacesCall(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 listDaemonSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4945,8 +5364,10 @@ private okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmar "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4965,19 +5386,19 @@ private okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmar } @SuppressWarnings("rawtypes") - private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(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 listDaemonSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDaemonSetForAllNamespacesAsync(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 listDaemonSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -4986,16 +5407,27 @@ private okhttp3.Call listDaemonSetForAllNamespacesAsync(Boolean allowWatchBookma } public class APIlistDaemonSetForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistDaemonSetForAllNamespacesRequest() { @@ -5006,7 +5438,7 @@ private APIlistDaemonSetForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistDaemonSetForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5016,7 +5448,7 @@ public APIlistDaemonSetForAllNamespacesRequest allowWatchBookmarks(Boolean allow * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest _continue(String _continue) { + public APIlistDaemonSetForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5026,7 +5458,7 @@ public APIlistDaemonSetForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistDaemonSetForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5036,7 +5468,7 @@ public APIlistDaemonSetForAllNamespacesRequest fieldSelector(String fieldSelecto * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistDaemonSetForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5046,7 +5478,7 @@ public APIlistDaemonSetForAllNamespacesRequest labelSelector(String labelSelecto * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest limit(Integer limit) { + public APIlistDaemonSetForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5056,7 +5488,7 @@ public APIlistDaemonSetForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest pretty(String pretty) { + public APIlistDaemonSetForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5066,7 +5498,7 @@ public APIlistDaemonSetForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistDaemonSetForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5076,7 +5508,7 @@ public APIlistDaemonSetForAllNamespacesRequest resourceVersion(String resourceVe * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistDaemonSetForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5086,7 +5518,7 @@ public APIlistDaemonSetForAllNamespacesRequest resourceVersionMatch(String resou * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistDaemonSetForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5096,7 +5528,7 @@ public APIlistDaemonSetForAllNamespacesRequest sendInitialEvents(Boolean sendIni * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistDaemonSetForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5106,7 +5538,7 @@ public APIlistDaemonSetForAllNamespacesRequest timeoutSeconds(Integer timeoutSec * @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 APIlistDaemonSetForAllNamespacesRequest */ - public APIlistDaemonSetForAllNamespacesRequest watch(Boolean watch) { + public APIlistDaemonSetForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5117,7 +5549,8 @@ public APIlistDaemonSetForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5132,7 +5565,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5148,7 +5582,8 @@ public V1DaemonSetList execute() throws ApiException { * @return ApiResponse<V1DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5164,7 +5599,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5180,7 +5616,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * list or watch objects of kind DaemonSet * @return APIlistDaemonSetForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5189,7 +5626,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistDaemonSetForAllNamespacesRequest listDaemonSetForAllNamespaces() { return new APIlistDaemonSetForAllNamespacesRequest(); } - private okhttp3.Call listDeploymentForAllNamespacesCall(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 listDeploymentForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5262,8 +5699,10 @@ private okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookma "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5282,19 +5721,19 @@ private okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookma } @SuppressWarnings("rawtypes") - private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(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 listDeploymentForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { return listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); } - private ApiResponse listDeploymentForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, String resourceVersionMatch, Boolean sendInitialEvents, Integer timeoutSeconds, Boolean watch) throws ApiException { + private ApiResponse listDeploymentForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDeploymentForAllNamespacesAsync(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 listDeploymentForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5303,16 +5742,27 @@ private okhttp3.Call listDeploymentForAllNamespacesAsync(Boolean allowWatchBookm } public class APIlistDeploymentForAllNamespacesRequest { + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; private APIlistDeploymentForAllNamespacesRequest() { @@ -5323,7 +5773,7 @@ private APIlistDeploymentForAllNamespacesRequest() { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistDeploymentForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5333,7 +5783,7 @@ public APIlistDeploymentForAllNamespacesRequest allowWatchBookmarks(Boolean allo * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest _continue(String _continue) { + public APIlistDeploymentForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5343,7 +5793,7 @@ public APIlistDeploymentForAllNamespacesRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest fieldSelector(String fieldSelector) { + public APIlistDeploymentForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5353,7 +5803,7 @@ public APIlistDeploymentForAllNamespacesRequest fieldSelector(String fieldSelect * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest labelSelector(String labelSelector) { + public APIlistDeploymentForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5363,7 +5813,7 @@ public APIlistDeploymentForAllNamespacesRequest labelSelector(String labelSelect * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest limit(Integer limit) { + public APIlistDeploymentForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5373,7 +5823,7 @@ public APIlistDeploymentForAllNamespacesRequest limit(Integer limit) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest pretty(String pretty) { + public APIlistDeploymentForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5383,7 +5833,7 @@ public APIlistDeploymentForAllNamespacesRequest pretty(String pretty) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest resourceVersion(String resourceVersion) { + public APIlistDeploymentForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5393,7 +5843,7 @@ public APIlistDeploymentForAllNamespacesRequest resourceVersion(String resourceV * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistDeploymentForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5403,7 +5853,7 @@ public APIlistDeploymentForAllNamespacesRequest resourceVersionMatch(String reso * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistDeploymentForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5413,7 +5863,7 @@ public APIlistDeploymentForAllNamespacesRequest sendInitialEvents(Boolean sendIn * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistDeploymentForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5423,7 +5873,7 @@ public APIlistDeploymentForAllNamespacesRequest timeoutSeconds(Integer timeoutSe * @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 APIlistDeploymentForAllNamespacesRequest */ - public APIlistDeploymentForAllNamespacesRequest watch(Boolean watch) { + public APIlistDeploymentForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5434,7 +5884,8 @@ public APIlistDeploymentForAllNamespacesRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5449,7 +5900,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5465,7 +5917,8 @@ public V1DeploymentList execute() throws ApiException { * @return ApiResponse<V1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5481,7 +5934,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5497,7 +5951,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * list or watch objects of kind Deployment * @return APIlistDeploymentForAllNamespacesRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5506,7 +5961,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistDeploymentForAllNamespacesRequest listDeploymentForAllNamespaces() { return new APIlistDeploymentForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedControllerRevisionCall(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 listNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5580,8 +6035,10 @@ private okhttp3.Call listNamespacedControllerRevisionCall(String namespace, Stri "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5600,7 +6057,7 @@ private okhttp3.Call listNamespacedControllerRevisionCall(String namespace, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(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 listNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 listNamespacedControllerRevision(Async)"); @@ -5611,13 +6068,13 @@ private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(String n } - private ApiResponse listNamespacedControllerRevisionWithHttpInfo(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 { + private ApiResponse listNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedControllerRevisionAsync(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 listNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5626,20 +6083,32 @@ private okhttp3.Call listNamespacedControllerRevisionAsync(String namespace, Str } public class APIlistNamespacedControllerRevisionRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedControllerRevisionRequest(String namespace) { + private APIlistNamespacedControllerRevisionRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -5648,7 +6117,7 @@ private APIlistNamespacedControllerRevisionRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest pretty(String pretty) { + public APIlistNamespacedControllerRevisionRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5658,7 +6127,7 @@ public APIlistNamespacedControllerRevisionRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedControllerRevisionRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5668,7 +6137,7 @@ public APIlistNamespacedControllerRevisionRequest allowWatchBookmarks(Boolean al * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest _continue(String _continue) { + public APIlistNamespacedControllerRevisionRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5678,7 +6147,7 @@ public APIlistNamespacedControllerRevisionRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedControllerRevisionRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5688,7 +6157,7 @@ public APIlistNamespacedControllerRevisionRequest fieldSelector(String fieldSele * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest labelSelector(String labelSelector) { + public APIlistNamespacedControllerRevisionRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5698,7 +6167,7 @@ public APIlistNamespacedControllerRevisionRequest labelSelector(String labelSele * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest limit(Integer limit) { + public APIlistNamespacedControllerRevisionRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -5708,7 +6177,7 @@ public APIlistNamespacedControllerRevisionRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedControllerRevisionRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5718,7 +6187,7 @@ public APIlistNamespacedControllerRevisionRequest resourceVersion(String resourc * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedControllerRevisionRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5728,7 +6197,7 @@ public APIlistNamespacedControllerRevisionRequest resourceVersionMatch(String re * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedControllerRevisionRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -5738,7 +6207,7 @@ public APIlistNamespacedControllerRevisionRequest sendInitialEvents(Boolean send * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedControllerRevisionRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5748,7 +6217,7 @@ public APIlistNamespacedControllerRevisionRequest timeoutSeconds(Integer timeout * @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 APIlistNamespacedControllerRevisionRequest */ - public APIlistNamespacedControllerRevisionRequest watch(Boolean watch) { + public APIlistNamespacedControllerRevisionRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -5759,7 +6228,8 @@ public APIlistNamespacedControllerRevisionRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5774,7 +6244,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5790,7 +6261,8 @@ public V1ControllerRevisionList execute() throws ApiException { * @return ApiResponse<V1ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5806,7 +6278,8 @@ public ApiResponse executeWithHttpInfo() throws ApiExc * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -5823,16 +6296,17 @@ public okhttp3.Call executeAsync(final ApiCallback _ca * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedControllerRevisionRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedControllerRevisionRequest listNamespacedControllerRevision(String namespace) { + public APIlistNamespacedControllerRevisionRequest listNamespacedControllerRevision(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedControllerRevisionRequest(namespace); } - private okhttp3.Call listNamespacedDaemonSetCall(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 listNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5906,8 +6380,10 @@ private okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -5926,7 +6402,7 @@ private okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(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 listNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 listNamespacedDaemonSet(Async)"); @@ -5937,13 +6413,13 @@ private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, } - private ApiResponse listNamespacedDaemonSetWithHttpInfo(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 { + private ApiResponse listNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedDaemonSetAsync(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 listNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -5952,20 +6428,32 @@ private okhttp3.Call listNamespacedDaemonSetAsync(String namespace, String prett } public class APIlistNamespacedDaemonSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedDaemonSetRequest(String namespace) { + private APIlistNamespacedDaemonSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -5974,7 +6462,7 @@ private APIlistNamespacedDaemonSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest pretty(String pretty) { + public APIlistNamespacedDaemonSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5984,7 +6472,7 @@ public APIlistNamespacedDaemonSetRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedDaemonSetRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5994,7 +6482,7 @@ public APIlistNamespacedDaemonSetRequest allowWatchBookmarks(Boolean allowWatchB * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest _continue(String _continue) { + public APIlistNamespacedDaemonSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6004,7 +6492,7 @@ public APIlistNamespacedDaemonSetRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedDaemonSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6014,7 +6502,7 @@ public APIlistNamespacedDaemonSetRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest labelSelector(String labelSelector) { + public APIlistNamespacedDaemonSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6024,7 +6512,7 @@ public APIlistNamespacedDaemonSetRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest limit(Integer limit) { + public APIlistNamespacedDaemonSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6034,7 +6522,7 @@ public APIlistNamespacedDaemonSetRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedDaemonSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6044,7 +6532,7 @@ public APIlistNamespacedDaemonSetRequest resourceVersion(String resourceVersion) * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedDaemonSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6054,7 +6542,7 @@ public APIlistNamespacedDaemonSetRequest resourceVersionMatch(String resourceVer * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedDaemonSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6064,7 +6552,7 @@ public APIlistNamespacedDaemonSetRequest sendInitialEvents(Boolean sendInitialEv * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedDaemonSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6074,7 +6562,7 @@ public APIlistNamespacedDaemonSetRequest timeoutSeconds(Integer timeoutSeconds) * @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 APIlistNamespacedDaemonSetRequest */ - public APIlistNamespacedDaemonSetRequest watch(Boolean watch) { + public APIlistNamespacedDaemonSetRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -6085,7 +6573,8 @@ public APIlistNamespacedDaemonSetRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6100,7 +6589,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6116,7 +6606,8 @@ public V1DaemonSetList execute() throws ApiException { * @return ApiResponse<V1DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6132,7 +6623,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6149,16 +6641,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedDaemonSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedDaemonSetRequest listNamespacedDaemonSet(String namespace) { + public APIlistNamespacedDaemonSetRequest listNamespacedDaemonSet(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedDaemonSetRequest(namespace); } - private okhttp3.Call listNamespacedDeploymentCall(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 listNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6232,8 +6725,10 @@ private okhttp3.Call listNamespacedDeploymentCall(String namespace, String prett "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6252,7 +6747,7 @@ private okhttp3.Call listNamespacedDeploymentCall(String namespace, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(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 listNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 listNamespacedDeployment(Async)"); @@ -6263,13 +6758,13 @@ private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(String namespace } - private ApiResponse listNamespacedDeploymentWithHttpInfo(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 { + private ApiResponse listNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedDeploymentAsync(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 listNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6278,20 +6773,32 @@ private okhttp3.Call listNamespacedDeploymentAsync(String namespace, String pret } public class APIlistNamespacedDeploymentRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedDeploymentRequest(String namespace) { + private APIlistNamespacedDeploymentRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -6300,7 +6807,7 @@ private APIlistNamespacedDeploymentRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest pretty(String pretty) { + public APIlistNamespacedDeploymentRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6310,7 +6817,7 @@ public APIlistNamespacedDeploymentRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedDeploymentRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6320,7 +6827,7 @@ public APIlistNamespacedDeploymentRequest allowWatchBookmarks(Boolean allowWatch * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest _continue(String _continue) { + public APIlistNamespacedDeploymentRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6330,7 +6837,7 @@ public APIlistNamespacedDeploymentRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedDeploymentRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6340,7 +6847,7 @@ public APIlistNamespacedDeploymentRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest labelSelector(String labelSelector) { + public APIlistNamespacedDeploymentRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6350,7 +6857,7 @@ public APIlistNamespacedDeploymentRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest limit(Integer limit) { + public APIlistNamespacedDeploymentRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6360,7 +6867,7 @@ public APIlistNamespacedDeploymentRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedDeploymentRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6370,7 +6877,7 @@ public APIlistNamespacedDeploymentRequest resourceVersion(String resourceVersion * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedDeploymentRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6380,7 +6887,7 @@ public APIlistNamespacedDeploymentRequest resourceVersionMatch(String resourceVe * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedDeploymentRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6390,7 +6897,7 @@ public APIlistNamespacedDeploymentRequest sendInitialEvents(Boolean sendInitialE * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedDeploymentRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6400,7 +6907,7 @@ public APIlistNamespacedDeploymentRequest timeoutSeconds(Integer timeoutSeconds) * @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 APIlistNamespacedDeploymentRequest */ - public APIlistNamespacedDeploymentRequest watch(Boolean watch) { + public APIlistNamespacedDeploymentRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -6411,7 +6918,8 @@ public APIlistNamespacedDeploymentRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6426,7 +6934,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6442,7 +6951,8 @@ public V1DeploymentList execute() throws ApiException { * @return ApiResponse<V1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6458,7 +6968,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6475,16 +6986,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedDeploymentRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedDeploymentRequest listNamespacedDeployment(String namespace) { + public APIlistNamespacedDeploymentRequest listNamespacedDeployment(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedDeploymentRequest(namespace); } - private okhttp3.Call listNamespacedReplicaSetCall(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 listNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6558,8 +7070,10 @@ private okhttp3.Call listNamespacedReplicaSetCall(String namespace, String prett "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6578,7 +7092,7 @@ private okhttp3.Call listNamespacedReplicaSetCall(String namespace, String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(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 listNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 listNamespacedReplicaSet(Async)"); @@ -6589,13 +7103,13 @@ private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(String namespace } - private ApiResponse listNamespacedReplicaSetWithHttpInfo(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 { + private ApiResponse listNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedReplicaSetAsync(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 listNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6604,20 +7118,32 @@ private okhttp3.Call listNamespacedReplicaSetAsync(String namespace, String pret } public class APIlistNamespacedReplicaSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedReplicaSetRequest(String namespace) { + private APIlistNamespacedReplicaSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -6626,7 +7152,7 @@ private APIlistNamespacedReplicaSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest pretty(String pretty) { + public APIlistNamespacedReplicaSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6636,7 +7162,7 @@ public APIlistNamespacedReplicaSetRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedReplicaSetRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6646,7 +7172,7 @@ public APIlistNamespacedReplicaSetRequest allowWatchBookmarks(Boolean allowWatch * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest _continue(String _continue) { + public APIlistNamespacedReplicaSetRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -6656,7 +7182,7 @@ public APIlistNamespacedReplicaSetRequest _continue(String _continue) { * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest fieldSelector(String fieldSelector) { + public APIlistNamespacedReplicaSetRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -6666,7 +7192,7 @@ public APIlistNamespacedReplicaSetRequest fieldSelector(String fieldSelector) { * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest labelSelector(String labelSelector) { + public APIlistNamespacedReplicaSetRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -6676,7 +7202,7 @@ public APIlistNamespacedReplicaSetRequest labelSelector(String labelSelector) { * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest limit(Integer limit) { + public APIlistNamespacedReplicaSetRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -6686,7 +7212,7 @@ public APIlistNamespacedReplicaSetRequest limit(Integer limit) { * @param resourceVersion resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest resourceVersion(String resourceVersion) { + public APIlistNamespacedReplicaSetRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -6696,7 +7222,7 @@ public APIlistNamespacedReplicaSetRequest resourceVersion(String resourceVersion * @param resourceVersionMatch resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest resourceVersionMatch(String resourceVersionMatch) { + public APIlistNamespacedReplicaSetRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -6706,7 +7232,7 @@ public APIlistNamespacedReplicaSetRequest resourceVersionMatch(String resourceVe * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest sendInitialEvents(Boolean sendInitialEvents) { + public APIlistNamespacedReplicaSetRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } @@ -6716,7 +7242,7 @@ public APIlistNamespacedReplicaSetRequest sendInitialEvents(Boolean sendInitialE * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @return APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest timeoutSeconds(Integer timeoutSeconds) { + public APIlistNamespacedReplicaSetRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -6726,7 +7252,7 @@ public APIlistNamespacedReplicaSetRequest timeoutSeconds(Integer timeoutSeconds) * @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 APIlistNamespacedReplicaSetRequest */ - public APIlistNamespacedReplicaSetRequest watch(Boolean watch) { + public APIlistNamespacedReplicaSetRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } @@ -6737,7 +7263,8 @@ public APIlistNamespacedReplicaSetRequest watch(Boolean watch) { * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - +
+ @@ -6752,7 +7279,8 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { * @return V1ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6768,7 +7296,8 @@ public V1ReplicaSetList execute() throws ApiException { * @return ApiResponse<V1ReplicaSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6784,7 +7313,8 @@ public ApiResponse executeWithHttpInfo() throws ApiException { * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+ @@ -6801,16 +7331,17 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) * @param namespace object name and auth scope, such as for teams and projects (required) * @return APIlistNamespacedReplicaSetRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+
+
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public APIlistNamespacedReplicaSetRequest listNamespacedReplicaSet(String namespace) { + public APIlistNamespacedReplicaSetRequest listNamespacedReplicaSet(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedReplicaSetRequest(namespace); } - private okhttp3.Call listNamespacedStatefulSetCall(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 listNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6884,8 +7415,10 @@ private okhttp3.Call listNamespacedStatefulSetCall(String namespace, String pret "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", + "application/cbor", "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -6904,7 +7437,7 @@ private okhttp3.Call listNamespacedStatefulSetCall(String namespace, String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(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 listNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable 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 listNamespacedStatefulSet(Async)"); @@ -6915,13 +7448,13 @@ private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(String namespac } - private ApiResponse listNamespacedStatefulSetWithHttpInfo(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 { + private ApiResponse listNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedStatefulSetAsync(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 listNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); @@ -6930,20 +7463,32 @@ private okhttp3.Call listNamespacedStatefulSetAsync(String namespace, String pre } public class APIlistNamespacedStatefulSetRequest { + @jakarta.annotation.Nonnull private final String namespace; + @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable private String _continue; + @jakarta.annotation.Nullable private String fieldSelector; + @jakarta.annotation.Nullable private String labelSelector; + @jakarta.annotation.Nullable private Integer limit; + @jakarta.annotation.Nullable private String resourceVersion; + @jakarta.annotation.Nullable private String resourceVersionMatch; + @jakarta.annotation.Nullable private Boolean sendInitialEvents; + @jakarta.annotation.Nullable private Integer timeoutSeconds; + @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedStatefulSetRequest(String namespace) { + private APIlistNamespacedStatefulSetRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } @@ -6952,7 +7497,7 @@ private APIlistNamespacedStatefulSetRequest(String namespace) { * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest pretty(String pretty) { + public APIlistNamespacedStatefulSetRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6962,7 +7507,7 @@ public APIlistNamespacedStatefulSetRequest pretty(String pretty) { * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional) * @return APIlistNamespacedStatefulSetRequest */ - public APIlistNamespacedStatefulSetRequest allowWatchBookmarks(Boolean allowWatchBookmarks) { + public APIlistNamespacedStatefulSetRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -6972,7 +7517,7 @@ public APIlistNamespacedStatefulSetRequest allowWatchBookmarks(Boolean allowWatc * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @return APIlistNamespacedStatefulSetRequest {"code":"deadline_exceeded","msg":"operation timed out"}